diff --git a/.config/1espt/PipelineAutobaseliningConfig.yml b/.config/1espt/PipelineAutobaseliningConfig.yml new file mode 100644 index 000000000..4b9969c37 --- /dev/null +++ b/.config/1espt/PipelineAutobaseliningConfig.yml @@ -0,0 +1,14 @@ +## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details. + +pipelines: + 98194: + retail: + source: + credscan: + lastModifiedDate: 2023-12-06 + eslint: + lastModifiedDate: 2023-12-06 + psscriptanalyzer: + lastModifiedDate: 2023-12-06 + armory: + lastModifiedDate: 2023-12-06 diff --git a/.config/tsaoptions.json b/.config/tsaoptions.json new file mode 100644 index 000000000..38fe35171 --- /dev/null +++ b/.config/tsaoptions.json @@ -0,0 +1,8 @@ +{ + "instanceUrl": "https://microsoft.visualstudio.com", + "projectName": "os", + "areaPath": "OS\\Windows Client and Services\\WinPD\\DEEP-Developer Experience, Ecosystem and Partnerships\\AmUse- App Metadata and User Setup Experience\\Projections\\Cppwinrt", + "notificationAliases": [ "cpp4uwpt@microsoft.com" ], + "ignoreBranchName": true, + "codebaseName": "cppwinrt" +} diff --git a/.gdn/.gdnsettings b/.gdn/.gdnsettings new file mode 100644 index 000000000..156408362 --- /dev/null +++ b/.gdn/.gdnsettings @@ -0,0 +1,7 @@ +{ + "files": { }, + "folders": { }, + "overwriteLogs": true, + "telemetryFlushTimeout": 10, + "variables": { } +} \ No newline at end of file diff --git a/.gdn/.gitignore b/.gdn/.gitignore new file mode 100644 index 000000000..decb1055f --- /dev/null +++ b/.gdn/.gitignore @@ -0,0 +1,11 @@ +## Ignore Guardian internal files +.r/ +rc/ +rs/ +i/ +p/ +c/ +o/ + +## Ignore Guardian Local settings +LocalSettings.gdn.json \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..8097faf37 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +* text=auto +* text eol=lf +*.png -text +*.exe -text diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..748763028 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,54 @@ +name: Bug report +description: File a bug report about cppwinrt +title: "Bug:" +labels: [bug] +assignees: [] +body: + - type: markdown + attributes: + value: "Thank you for filing a bug report! 🐛" + - type: input + attributes: + label: Version + description: What is the version of cppwinrt you're using? + placeholder: You can find the exact version by running `cppwinrt.exe`. + - type: textarea + attributes: + label: Summary + description: > + Please provide a short summary of the bug, along with any information + you feel relevant to replicating the bug. + - type: textarea + attributes: + label: Reproducible example + description: > + Please provide all code needed to reproduce the issue. + placeholder: | + #include "winrt/Windows.Foundation.h" + + using namespace winrt; + using namespace Windows::Foundation; + + int main() + { + Uri uri(L"https://kennykerr.ca"); + printf("%ls\n", uri.ToString().c_str()); + } + render: cpp + - type: textarea + attributes: + label: Expected behavior + description: "I expected to see this happen:" + - type: textarea + attributes: + label: Actual behavior + description: "Instead, this happened:" + - type: textarea + attributes: + label: Additional comments + description: Is there anything else you'd like to share? + validations: + required: false + - type: markdown + attributes: + value: "Thank you! ©️➕➕" diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..d32d2339d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: false +contact_links: + - name: Visual Studio or C++ question + url: https://developercommunity.visualstudio.com/cpp + about: Your open channel to Microsoft engineering teams + - name: Windows API question + url: https://docs.microsoft.com/en-us/answers/topics/windows-api.html + about: Please ask questions about the Windows API on Microsoft Q&A diff --git a/.github/actions/setup-llvm-mingw/action.yml b/.github/actions/setup-llvm-mingw/action.yml new file mode 100644 index 000000000..d36b48a75 --- /dev/null +++ b/.github/actions/setup-llvm-mingw/action.yml @@ -0,0 +1,79 @@ +name: 'Set up llvm-mingw toolchain' +description: 'Set up llvm-mingw toolchain' +inputs: + llvm-mingw-version: + description: 'llvm-mingw version' + required: true + default: '20220906' + host-arch: + description: 'llvm-mingw toolchain host architecture (e.g. i686, x86_64)' + required: true + default: 'x86_64' +outputs: + llvm-path: + description: "The path in which llvm-mingw is installed to" + value: ${{ ((runner.os == 'Windows') && steps.setup-llvm.outputs.llvm-path) || steps.setup-llvm-linux.outputs.llvm-path }} +runs: + using: "composite" + steps: + - name: Cache llvm-mingw (Windows) + id: cache-llvm + if: runner.os == 'Windows' + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + with: + path: .llvm-mingw + key: llvm-mingw-${{ runner.os }}-${{ inputs.llvm-mingw-version }}-${{ inputs.host-arch }} + + - name: Install llvm-mingw ${{ inputs.llvm-mingw-version }} (Windows ${{ inputs.host-arch }}) + if: runner.os == 'Windows' && steps.cache-llvm.outputs.cache-hit != 'true' + shell: pwsh + run: | + $llvm_mingw_version = "${{ inputs.llvm-mingw-version }}" + $llvm_arch = "${{ inputs.host-arch }}" + Invoke-WebRequest "https://github.com/mstorsjo/llvm-mingw/releases/download/${llvm_mingw_version}/llvm-mingw-${llvm_mingw_version}-ucrt-${llvm_arch}.zip" -OutFile llvm-mingw.zip + 7z x llvm-mingw.zip -o"$pwd\.llvm-mingw" + rm llvm-mingw.zip + + - name: Set up llvm-mingw (Windows) + id: setup-llvm + if: runner.os == 'Windows' + shell: pwsh + run: | + $llvm_mingw_version = "${{ inputs.llvm-mingw-version }}" + $llvm_arch = "${{ inputs.host-arch }}" + if (!(Test-Path "$pwd\.llvm-mingw\llvm-mingw-${llvm_mingw_version}-ucrt-${llvm_arch}\bin\clang++.exe")) { return 1 } + Add-Content $env:GITHUB_OUTPUT "llvm-path=$pwd\.llvm-mingw\llvm-mingw-${llvm_mingw_version}-ucrt-${llvm_arch}" + Add-Content $env:GITHUB_PATH "$pwd\.llvm-mingw\llvm-mingw-${llvm_mingw_version}-ucrt-${llvm_arch}\bin" + # for the ASAN runtime DLL: + Add-Content $env:GITHUB_PATH "$pwd\.llvm-mingw\llvm-mingw-${llvm_mingw_version}-ucrt-${llvm_arch}\${llvm_arch}-w64-mingw32\bin" + + - name: Cache llvm-mingw (Linux) + id: cache-llvm-linux + if: runner.os == 'Linux' + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + with: + path: /opt/llvm-mingw + key: llvm-mingw-${{ runner.os }}-${{ inputs.llvm-mingw-version }}-${{ inputs.host-arch }} + + - name: Install llvm-mingw ${{ inputs.llvm-mingw-version }} (Linux ${{ inputs.host-arch }}) + if: runner.os == 'Linux' && steps.cache-llvm-linux.outputs.cache-hit != 'true' + shell: bash + run: | + llvm_mingw_version="${{ inputs.llvm-mingw-version }}" + llvm_arch="${{ inputs.host-arch }}" + mkdir -p /opt/llvm-mingw + cd /opt/llvm-mingw + curl -L https://github.com/mstorsjo/llvm-mingw/releases/download/20220906/llvm-mingw-${llvm_mingw_version}-ucrt-ubuntu-18.04-${llvm_arch}.tar.xz | tar xJ --strip-components=1 + + - name: Set up llvm-mingw (Linux) + id: setup-llvm-linux + if: runner.os == 'Linux' + shell: bash + run: | + cd /opt/llvm-mingw + if [ ! -x bin/clang++ ]; then + echo "$PWD/bin/clang++ not found or not executable!" + exit 1 + fi + echo "llvm-path=$PWD/llvm-mingw" >> $GITHUB_OUTPUT + echo "$PWD/bin" >> $GITHUB_PATH diff --git a/.github/actions/setup-llvm-msvc/action.yml b/.github/actions/setup-llvm-msvc/action.yml new file mode 100644 index 000000000..e5a696a9f --- /dev/null +++ b/.github/actions/setup-llvm-msvc/action.yml @@ -0,0 +1,48 @@ +name: 'Set up LLVM for MSVC' +description: 'Set up upstream LLVM for targeting MSVC ABI' +inputs: + llvm-version: + description: 'LLVM version' + required: true + default: '17.0.5' +outputs: + llvm-path: + description: "The path in which LLVM is installed to" + value: ${{ steps.setup-llvm.outputs.llvm-path }} +runs: + using: "composite" + steps: + - name: Cache LLVM and tools + id: cache-llvm + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + with: + path: | + .LLVM + .llvm-utils + key: llvm-msvc-${{ runner.os }}-${{ inputs.llvm-version }} + + - name: Install LLVM ${{ inputs.llvm-version }} + if: steps.cache-llvm.outputs.cache-hit != 'true' + shell: pwsh + run: | + Invoke-WebRequest "https://github.com/llvm/llvm-project/releases/download/llvmorg-${{ inputs.llvm-version }}/LLVM-${{ inputs.llvm-version }}-win64.exe" -OutFile LLVM-installer.exe + .\LLVM-installer.exe /S "/D=$pwd\.LLVM" | Out-Null + rm LLVM-installer.exe + + # Not using the LLVM tools that comes with MSVC. + - name: Download LLVM build tools for msbuild + if: steps.cache-llvm.outputs.cache-hit != 'true' + shell: pwsh + run: | + Invoke-WebRequest "https://github.com/zufuliu/llvm-utils/releases/download/v22.09/LLVM_VS2017.zip" -OutFile LLVM_VS2017.zip + 7z x -y "LLVM_VS2017.zip" -o"$pwd\.llvm-utils\" + rm LLVM_VS2017.zip + + - name: Set up LLVM build tools for msbuild + id: setup-llvm + shell: pwsh + run: | + if (!(Test-Path "$pwd\.LLVM\bin\clang-cl.exe")) { exit 1 } + Add-Content $env:GITHUB_PATH "$pwd\.LLVM\bin" + Add-Content $env:GITHUB_OUTPUT "llvm-path=$pwd\.LLVM" + cmd /c ".llvm-utils\LLVM_VS2017\install.bat" 1 diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..9557baa7a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "cargo" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + cooldown: + default-days: 7 diff --git a/.github/instructions/cppwinrt.instructions.md b/.github/instructions/cppwinrt.instructions.md new file mode 100644 index 000000000..eae2fc3c6 --- /dev/null +++ b/.github/instructions/cppwinrt.instructions.md @@ -0,0 +1,58 @@ +# C++/WinRT Codebase — Agent Instructions + +## Repository Structure + +- `cppwinrt/` — The cppwinrt.exe code generator (C++ source) + - `main.cpp` — CLI parsing, namespace iteration, SCC detection, .ixx orchestration + - `file_writers.h` — All file generation functions (headers, .ixx modules, component stubs) + - `code_writers.h` — Code-level writing utilities (guards, namespace wrappers, type writers) + - `type_writers.h` — Type formatting (ABI signatures, names, GUIDs) + - `component_writers.h` — Component authoring code generation + - `helpers.h` — Metadata reading helpers + - `settings.h` — Global settings populated from CLI args + - `text_writer.h` — Core text writer infrastructure +- `strings/` — String literal `.h` files embedded by the prebuild step. Changes require: delete prebuild.exe → rebuild solution +- `nuget/` — MSBuild targets, props, and NuGet packaging + - `Microsoft.Windows.CppWinRT.targets` — Main MSBuild integration (projections, module support) +- `test/` — Test projects + - `test/test_cpp20_module/` — Standalone module test (in main solution) + - `test/nuget/` — NuGet integration tests (multi-project module chain) +- `docs/` — Documentation +- `natvis/` — Visual Studio debug visualizer (includes strings/*.h in its pch.h — add new files there too) + +## Build Process + +- Use VS Developer Shell for correct toolset environment +- `cmake --build build --config Release --target cppwinrt` for cppwinrt.exe (or MSBuild: `msbuild cppwinrt\cppwinrt.vcxproj /p:Configuration=Release /p:Platform=x64`) +- NuGet tests: `msbuild test\nuget\NuGetTest.sln /p:Configuration=Release /p:Platform=x64` +- Module test projects require v145 toolset (VS 2026). Directory.Build.Props selects v145 when VisualStudioVersion >= 18.0 (VS 2026) and falls back to v143 otherwise; override `` in the Configuration PropertyGroup to force a specific toolset + +## Key Patterns + +### Prebuild Embedding +The `strings/*.h` files are embedded as string literals by the prebuild step. If you modify any `strings/*.h` file, you must delete `prebuild.exe` and rebuild the entire solution for changes to take effect. + +### Module Guard Macros +- `WINRT_IMPL_BUILD_MODULE` — Defined in .ixx global fragment. Makes `WINRT_EXPORT` expand to `export extern "C++"` and suppresses `#include` of dependencies +- `WINRT_IMPORT_MODULE` — Defined by consumers who import modules. Makes namespace headers and base.h no-op (types come from module import) +- `WINRT_EXPORT` — Empty in header mode, `export extern "C++"` in module mode. Defined in `winrt/base_macros.h` +- `WINRT_IMPL_STD_EXPORT` — Empty in header mode, `extern "C++"` (without export) in module mode. Used for `namespace std` specializations + +### Generated Header Structure +Each namespace produces four header files: +- `impl/.0.h` — Forward declarations, ABIs, GUIDs, categories +- `impl/.1.h` — Interface definitions +- `impl/.2.h` — Delegates, structs, class implementations +- `.h` — Public API surface (consume definitions, class wrappers, operators) + +### Dependency Collection +When generating headers with `-modules`, writer.depends is inspected after each header to build a namespace dependency graph. This graph drives SCC detection and module import lists. + +## Common Gotchas + +- Module IFCs are NOT compatible across toolset versions — always clean rebuild when switching +- PCH and modules can coexist but PCH should NOT include winrt headers when using modules +- `/ifcSearchDir` works for the module dependency scanner to find IFCs, but cross-component modules may need explicit `/reference "name=path.ifc"` flags +- `import std;` requires `BuildStlModules=true` +- `strings/base_macros.h` is the single source of truth for shared macros (generated as `winrt/base_macros.h`). New macros go in `base_macros.h` only +- When adding, removing, or heavily refactoring `strings/*.h` files, always rebuild the natvis project (`natvis/cppwinrtvisualizer.sln`) to verify — it includes strings/*.h directly in its pch.h diff --git a/.github/instructions/modules.instructions.md b/.github/instructions/modules.instructions.md new file mode 100644 index 000000000..3deee2955 --- /dev/null +++ b/.github/instructions/modules.instructions.md @@ -0,0 +1,40 @@ +# C++/WinRT Modules — Agent Instructions + +## Module Architecture (v2 — Per-Namespace) + +Each WinRT namespace gets its own C++20 named module (`winrt.`). Base infrastructure is in `winrt_base` and `winrt_numerics`. + +### Code Generator Flow + +1. `-modules` flag enables .ixx generation in cppwinrt.exe +2. `-module_include`/`-module_exclude` filter which namespaces get modules +3. Headers are generated with dependency tracking (deps_ptr parameter) +4. Tarjan's SCC algorithm detects cyclic namespace groups +5. Standalone namespaces get individual .ixx; cyclic groups get consolidated SCC owner + re-export stubs + +### MSBuild Flow + +1. `CppWinRTBuildModule=true` adds `-modules` to cppwinrt.exe invocations +2. `CppWinRTAddModuleInterfaces` discovers `$(GeneratedFilesDir)winrt\*.ixx` and adds to ClCompile +3. `CppWinRTConsumeModule` metadata on ProjectReference controls per-reference IFC sharing +4. `CppWinRTResolveModuleReferences` calls `CppWinRTGetModuleOutputs` on tagged references +5. Platform projection suppresses `-modules` when consuming pre-built IFCs + +### Critical Invariants + +- Module guards are unconditional in codegen — `-modules` controls .ixx generation and component codegen (module.g.cpp, stub .cpp) +- SCC owner is alphabetically first namespace in the cycle +- All .ixx filenames use `winrt` prefix: `winrt.Windows.Foundation.ixx`, `winrt_base.ixx` +- Shared macros live in `strings/base_module.h` → generates `winrt/macros.h`. `base_macros.h` includes it via `#include "winrt/macros.h"` + +### Testing Changes + +After modifying cppwinrt.exe code: +1. Rebuild cppwinrt.exe: `msbuild cppwinrt\cppwinrt.vcxproj /p:Configuration=Release /p:Platform=x64` +2. Run standalone test: build `test_cpp20_module` in main solution +3. Run NuGet tests: `msbuild test\nuget\NuGetTest.sln /p:Configuration=Release /p:Platform=x64` + +After modifying targets: +1. Clean NuGet test obj dirs +2. Build with `/v:normal` and check "Module providers:" diagnostic messages +3. Inspect `.rsp` files in `obj/` to verify correct `-modules` flag placement diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000..88999e247 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,3 @@ +What's this all about? + +Fixes: #0000 ⬅️ Be sure to refer to an existing issue here! diff --git a/.github/workflows/check-line-endings.yml b/.github/workflows/check-line-endings.yml new file mode 100644 index 000000000..3891aec09 --- /dev/null +++ b/.github/workflows/check-line-endings.yml @@ -0,0 +1,32 @@ +name: Check Line Endings + +on: + pull_request: + push: + branches: + - master + +jobs: + check-line-endings: + name: Enforce .gitattributes line endings + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Check for line ending violations + run: | + # Re-normalize all files according to .gitattributes + git add --renormalize . + + # Check if renormalization changed anything + if git diff --cached --name-only | grep -q .; then + echo "::error::The following files have line endings that don't match .gitattributes settings:" + git diff --cached --name-only + echo "" + echo "To fix, run:" + echo " git add --renormalize ." + echo " git commit -m 'Normalize line endings'" + exit 1 + fi + + echo "All files have correct line endings." diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..5e2677fed --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,405 @@ +name: CI Tests + +on: + pull_request: + push: + branches: + - master + +jobs: + test-msvc-cppwinrt-build: + name: '${{ matrix.compiler }}: Build (${{ matrix.arch }}, ${{ matrix.config }}, ${{ matrix.toolchain.platform_toolset }})' + strategy: + matrix: + compiler: [MSVC, clang-cl] + arch: [x86, x64, arm64] + config: [Debug, Release] + toolchain: + - image: windows-2025-vs2026 + platform_toolset: v145 + exclude: + - arch: arm64 + config: Debug + - compiler: clang-cl + arch: arm64 + - compiler: clang-cl + config: Release + runs-on: ${{ matrix.toolchain.image }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Download nuget + run: | + mkdir ".\.nuget" + Invoke-WebRequest "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile ".\.nuget\nuget.exe" + + - name: Find VsDevCmd.bat + run: | + $VSDevCmd = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere" -latest -find Common7\tools\VSDevCmd.bat + if (!$VSDevCmd) { exit 1 } + echo "Using VSDevCmd: ${VSDevCmd}" + Add-Content $env:GITHUB_ENV "VSDevCmd=$VSDevCmd" + + - name: Prepare build flags + run: | + $target_configuration = "${{ matrix.config }}" + $target_platform = "${{ matrix.arch }}" + $target_version = "999.999.999.999" + $props = "Configuration=$target_configuration,Platform=$target_platform,CppWinRTBuildVersion=$target_version" + if ("${{ matrix.compiler }}" -eq "clang-cl") { + $props += ",Clang=1,PlatformToolset=ClangCl" + } else { + $props += ",PlatformToolset=${{ matrix.toolchain.platform_toolset }}" + } + Add-Content $env:GITHUB_ENV "msbuild_config_props=/p:$props" + + - name: Restore nuget packages + run: | + cmd /c "$env:VSDevCmd" "&" nuget restore cppwinrt.sln + + - name: Build fast_fwd + run: | + cmd /c "$env:VSDevCmd" "&" msbuild /m /clp:ForceConsoleColor "$env:msbuild_config_props" cppwinrt.sln /t:fast_fwd + + - name: Build x86 prebuild tool + if: matrix.arch == 'arm64' + run: | + cmd /c "$env:VSDevCmd" "&" msbuild /m /clp:ForceConsoleColor "$env:msbuild_config_props" /p:Platform=x86 cppwinrt.sln /t:cppwinrt + + - name: Build cppwinrt + run: | + cmd /c "$env:VSDevCmd" "&" msbuild /m /clp:ForceConsoleColor "$env:msbuild_config_props" cppwinrt.sln /t:cppwinrt + + - name: Upload built executables + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: msvc-build-${{ matrix.compiler}}-${{ matrix.arch }}-${{ matrix.config }}-${{ matrix.toolchain.platform_toolset }}-bin + path: | + _build/${{ matrix.arch }}/${{ matrix.config }}/*.exe + _build/${{ matrix.arch }}/${{ matrix.config }}/*.dll + _build/${{ matrix.arch }}/${{ matrix.config }}/*.winmd + _build/${{ matrix.arch }}/${{ matrix.config }}/*.lib + _build/${{ matrix.arch }}/${{ matrix.config }}/*.pdb + + - name: Run cppwinrt to build projection + if: matrix.arch != 'arm64' + run: | + $target_configuration = "${{ matrix.config }}" + $target_platform = "${{ matrix.arch }}" + & "_build\$target_platform\$target_configuration\cppwinrt.exe" -in local -out _build\$target_platform\$target_configuration -verbose + + test-msvc-cppwinrt-test: + name: '${{ matrix.compiler }}: Test [${{ matrix.test_exe }}] (${{ matrix.arch }}, ${{ matrix.config }}, ${{ matrix.toolchain.platform_toolset }})' + needs: test-msvc-cppwinrt-build + strategy: + fail-fast: false + matrix: + compiler: [MSVC, clang-cl] + arch: [x86, x64, arm64] + config: [Debug, Release] + test_exe: [test, test_nocoro, test_cpp20, test_cpp20_no_sourcelocation, test_cpp20_module, test_fast, test_slow, test_old, test_module_lock_custom, test_module_lock_none] + toolchain: + - image: windows-2025-vs2026 + platform_toolset: v145 + exclude: + - arch: arm64 + config: Debug + - compiler: clang-cl + arch: arm64 + - compiler: clang-cl + config: Release + # C++20 named modules require the MSVC v145 toolset; clang-cl is not supported. + - compiler: clang-cl + test_exe: test_cpp20_module + runs-on: ${{ matrix.toolchain.image }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Fetch cppwinrt executables + if: matrix.arch != 'arm64' + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: msvc-build-${{ matrix.compiler}}-${{ matrix.arch }}-${{ matrix.config }}-${{ matrix.toolchain.platform_toolset }}-bin + path: _build/${{ matrix.arch }}/${{ matrix.config }}/ + + - name: Fetch x86 cppwinrt executables (arm64 only) + if: matrix.arch == 'arm64' + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: msvc-build-${{ matrix.compiler}}-x86-Release-${{ matrix.toolchain.platform_toolset }}-bin + path: _build/x86/Release/ + + - name: Download nuget + run: | + mkdir ".\.nuget" + Invoke-WebRequest "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile ".\.nuget\nuget.exe" + + - name: Find VsDevCmd.bat + run: | + $VSDevCmd = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere" -latest -find Common7\tools\VSDevCmd.bat + if (!$VSDevCmd) { exit 1 } + echo "Using VSDevCmd: ${VSDevCmd}" + Add-Content $env:GITHUB_ENV "VSDevCmd=$VSDevCmd" + + - name: Prepare build flags + run: | + $target_configuration = "${{ matrix.config }}" + $target_platform = "${{ matrix.arch }}" + $target_version = "999.999.999.999" + $props = "Configuration=$target_configuration,Platform=$target_platform,CppWinRTBuildVersion=$target_version" + if ("${{ matrix.compiler }}" -eq "clang-cl") { + $props += ",Clang=1,PlatformToolset=ClangCl" + } else { + $props += ",PlatformToolset=${{ matrix.toolchain.platform_toolset }}" + } + Add-Content $env:GITHUB_ENV "msbuild_config_props=/p:$props" + + - name: Restore nuget packages + run: | + cmd /c "$env:VSDevCmd" "&" nuget restore cppwinrt.sln + + - name: Remove cppwinrt dependency from all test projects + run: | + # HACK: We already have a built exe, so we want to avoid rebuilding cppwinrt + mv cppwinrt.sln cppwinrt.sln.orig + Get-Content cppwinrt.sln.orig | + Where-Object { -not $_.Contains("{D613FB39-5035-4043-91E2-BAB323908AF4} = {D613FB39-5035-4043-91E2-BAB323908AF4}") } | + Set-Content cppwinrt.sln + + - name: Patch catch.hpp to make it build with ANSI colour + run: | + # HACK: Remove include and the isatty call in catch.hpp to make ANSI colour build work + mv test/catch.hpp test/catch.hpp.orig + Get-Content test/catch.hpp.orig | + Where-Object { -not $_.Contains("#include ") } | + ForEach-Object { + $_.Replace("isatty(STDOUT_FILENO)", "false") + } | + Set-Content test/catch.hpp + + - name: Run cppwinrt to build projection + run: | + $target_configuration = "${{ matrix.config }}" + $target_platform = "${{ matrix.arch }}" + $cppwinrt_path = "_build\$target_platform\$target_configuration\cppwinrt.exe" + if ($target_platform -eq "arm64") { + $cppwinrt_path = "_build\x86\Release\cppwinrt.exe" + } + & $cppwinrt_path -in local -out _build\$target_platform\$target_configuration -verbose + + - name: Build test '${{ matrix.test_exe }}' + run: | + $test_proj = "${{ matrix.test_exe }}" + if ($test_proj -eq "test_old") { + $test_proj = "old_tests\test_old" + } + + cmd /c "$env:VSDevCmd" "&" msbuild /m /clp:ForceConsoleColor /p:TestsUseAnsiColor=1 "$env:msbuild_config_props" cppwinrt.sln /t:test\$test_proj + + - name: Run tests in '${{ matrix.test_exe }}' one by one + if: matrix.compiler == 'clang-cl' + run: | + $target_configuration = "${{ matrix.config }}" + $target_platform = "${{ matrix.arch }}" + $test_exe = "${{ matrix.test_exe }}" + $test_path = "_build\$target_platform\$target_configuration\$test_exe.exe" + if (!(Test-Path $test_path)) { + echo "::error::Test $test_exe is missing." + exit 1 + } + $test_names = @( & $test_path --list-test-names-only ) + $failed_tests = 0 + foreach ($test_name in $test_names) { + echo "::group::Running test $test_name" + $escaped = $test_name.Replace("\", "\\").Replace(",", "\,").Replace("[", "\[") + & $test_path --use-colour yes --warn NoTests "$escaped" + echo "::endgroup::" + if ($LastExitCode -ne 0) { + $failed_tests += 1 + # Add a newline in case test exited abnormally without newline + echo "" + echo "::error::Test $test_exe/'$test_name' failed with exit code $LastExitCode!" + } + } + if ($failed_tests -eq 0) { + echo "All tests in $test_exe passed." + } else { + echo "$failed_tests failed in $test_exe." + exit 1 + } + + - name: Run test '${{ matrix.test_exe }}' + if: matrix.arch != 'arm64' + run: | + $target_configuration = "${{ matrix.config }}" + $target_platform = "${{ matrix.arch }}" + $test_exe = "${{ matrix.test_exe }}" + $test_path = "_build\$target_platform\$target_configuration\$test_exe.exe" + if (!(Test-Path $test_path)) { + echo "::error::Test $test_exe is missing." + exit 1 + } + & $test_path --use-colour yes + + - name: Upload arm64 test executables + if: matrix.arch == 'arm64' + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: msvc-tests-${{ matrix.test_exe }}-${{ matrix.compiler }}-${{ matrix.arch }}-${{ matrix.config }}-${{ matrix.toolchain.platform_toolset }}-bin + path: | + _build/${{ matrix.arch }}/${{ matrix.config }}/*.exe + _build/${{ matrix.arch }}/${{ matrix.config }}/*.dll + _build/${{ matrix.arch }}/${{ matrix.config }}/*.winmd + _build/${{ matrix.arch }}/${{ matrix.config }}/*.lib + _build/${{ matrix.arch }}/${{ matrix.config }}/*.pdb + + build-linux-cross-cppwinrt: + name: 'cross: Cross-build from Linux' + strategy: + matrix: + arch: [i686, x86_64] + runs-on: ubuntu-22.04 + env: + CMAKE_COLOR_DIAGNOSTICS: 1 + CLICOLOR_FORCE: 1 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Install cross compiler + run: | + arch=${{ matrix.arch }} + sudo apt-get install g++-mingw-w64-${arch/_/-} + sudo update-alternatives --set "${{ matrix.arch }}-w64-mingw32-gcc" "/usr/bin/${{ matrix.arch }}-w64-mingw32-gcc-posix" + sudo update-alternatives --set "${{ matrix.arch }}-w64-mingw32-g++" "/usr/bin/${{ matrix.arch }}-w64-mingw32-g++-posix" + + - name: Cross-build cppwinrt + run: | + cmake -S . -B build/cross_x64/ --toolchain cross-mingw-toolchain.cmake \ + -DCMAKE_SYSTEM_PROCESSOR=${{ matrix.arch }} \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_CXX_FLAGS="-static" \ + -DCMAKE_INSTALL_PREFIX=$PWD/install/ + cmake --build build/cross_x64/ --target install -j2 + + - name: Upload cppwinrt.exe + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: cross-build-${{ matrix.arch }}-bin + path: install/bin/cppwinrt.exe + + build-msvc-natvis: + name: 'Build natvis' + strategy: + matrix: + arch: [x86, x64, arm64] + config: [Release] + Deployment: [Component, Standalone] + runs-on: windows-2025-vs2026 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Download nuget + run: | + mkdir ".\.nuget" + Invoke-WebRequest "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile ".\.nuget\nuget.exe" + + - name: Find VsDevCmd.bat + run: | + $VSDevCmd = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere" -latest -find Common7\tools\VSDevCmd.bat + if (!$VSDevCmd) { exit 1 } + echo "Using VSDevCmd: ${VSDevCmd}" + Add-Content $env:GITHUB_ENV "VSDevCmd=$VSDevCmd" + + - name: Prepare build flags + run: | + $target_configuration = "${{ matrix.config }}" + $target_platform = "${{ matrix.arch }}" + $target_version = "999.999.999.999" + Add-Content $env:GITHUB_ENV "msbuild_config_props=/p:Configuration=$target_configuration,Platform=$target_platform,CppWinRTBuildVersion=$target_version,PlatformToolset=v145" + + - name: Restore nuget packages + run: | + cmd /c "$env:VSDevCmd" "&" nuget restore natvis\cppwinrtvisualizer.sln + + - name: Build natvis + run: | + cmd /c "$env:VSDevCmd" "&" msbuild /m /clp:ForceConsoleColor "$env:msbuild_config_props" /p:Deployment=${{ matrix.Deployment }} natvis\cppwinrtvisualizer.sln + + build-msvc-nuget-test: + name: 'Build nuget test (${{ matrix.arch }}, ${{ matrix.toolchain.platform_toolset }})' + needs: test-msvc-cppwinrt-build + strategy: + matrix: + compiler: + - MSVC + arch: [x86, x64] + config: [Release] + toolchain: + - image: windows-2025-vs2026 + platform_toolset: v145 + runs-on: ${{ matrix.toolchain.image }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Fetch cppwinrt executables + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: msvc-build-${{ matrix.compiler}}-${{ matrix.arch }}-${{ matrix.config }}-${{ matrix.toolchain.platform_toolset }}-bin + path: _build/${{ matrix.arch }}/${{ matrix.config }}/ + + - name: Download nuget + run: | + mkdir ".\.nuget" + Invoke-WebRequest "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile ".\.nuget\nuget.exe" + + - name: Find VsDevCmd.bat + run: | + $VSDevCmd = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere" -latest -find Common7\tools\VSDevCmd.bat + if (!$VSDevCmd) { exit 1 } + echo "Using VSDevCmd: ${VSDevCmd}" + Add-Content $env:GITHUB_ENV "VSDevCmd=$VSDevCmd" + + - name: Prepare build flags + run: | + $target_configuration = "${{ matrix.config }}" + $target_platform = "${{ matrix.arch }}" + $target_version = "999.999.999.999" + Add-Content $env:GITHUB_ENV "msbuild_config_props=/p:Configuration=$target_configuration,Platform=$target_platform,CppWinRTBuildVersion=$target_version,PlatformToolset=${{ matrix.toolchain.platform_toolset }}" + + - name: Restore nuget packages + run: | + cmd /c "$env:VSDevCmd" "&" nuget restore test\nuget\NugetTest.sln + + - name: Run cppwinrt to build projection + run: | + $target_configuration = "${{ matrix.config }}" + $target_platform = "${{ matrix.arch }}" + & "_build\$target_platform\$target_configuration\cppwinrt.exe" -in local -out _build\$target_platform\$target_configuration -verbose + + - name: Run nuget test + run: | + cmd /c "$env:VSDevCmd" "&" msbuild /m /clp:ForceConsoleColor "$env:msbuild_config_props" test\nuget\NugetTest.sln + + build-nuget: + name: Build nuget package with MSVC + runs-on: windows-2025-vs2026 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Package + run: | + $VSDevCmd = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere" -latest -find Common7\tools\VSDevCmd.bat + if (!$VSDevCmd) { exit 1 } + echo "Using VSDevCmd: ${VSDevCmd}" + cmd /c "${VSDevCmd}" "&" nuget.exe restore cppwinrt.sln + cmd /c "${VSDevCmd}" "&" build_nuget.cmd + if (!(Test-Path "*.nupkg")) { + echo "::error::Output nuget package not found!" + exit 1 + } + + - name: Upload nuget package artifact + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: package + path: "*.nupkg" diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..9493fdad5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +.nuget +.vscode +.vs +*.user +*_i.c +*_p.c +*.c +*.nupkg +test*.xml +test*_results.txt +test_failures.txt +build +packages +Debug +Release +Generated Files +obj +vsix/LICENSE diff --git a/.pipelines/OneBranch.Official.yml b/.pipelines/OneBranch.Official.yml new file mode 100644 index 000000000..158d3bf4e --- /dev/null +++ b/.pipelines/OneBranch.Official.yml @@ -0,0 +1,157 @@ +parameters: # parameters are shown up in ADO UI in a build queue time +- name: 'debug' + displayName: 'Enable debug output' + type: boolean + default: false + +variables: +- template: variables/version.yml + parameters: + OfficialBuild: true +- template: variables/OneBranchVariables.yml + parameters: + debug: ${{ parameters.debug }} + +name: 3.0.$(date:yyMMdd)$(rev:.r) + +trigger: none + +resources: + repositories: + - repository: templates + type: git + name: OneBranch.Pipelines/GovernedTemplates + ref: refs/heads/main + +extends: + template: v2/Microsoft.Official.yml@templates + parameters: + platform: + name: 'windows_undocked' + product: 'build_tools' + + featureFlags: + WindowsHostVersion: + Version: 2022 + + cloudvault: + enabled: false + + globalSdl: + isNativeCode: true + asyncSdl: + enabled: true + tsa: + enabled: true + codeql: + compiled: + enabled: true + tsaEnabled: true + + stages: + - stage: build + jobs: + - template: .pipelines/jobs/OneBranchBuild.yml@self + parameters: + BuildConfiguration: $(BuildConfiguration) + BuildVersion: $(BuildVersion) + OfficialBuild: true + + - stage: vpack + dependsOn: build + jobs: + - job: Compiler_vpack + pool: + type: windows + variables: + ob_outputDirectory: '$(Build.SourcesDirectory)\out' + ob_createvpack_enabled: true + ob_createvpack_packagename: CppWinRT.Compiler + ob_createvpack_owneralias: cpp4uwpt + ob_createvpack_description: C++/WinRT Compiler + ob_createvpack_provData: true + ob_createvpack_versionAs: parts + ob_createvpack_majorVer: $(MajorVersion) + ob_createvpack_minorVer: $(MinorVersion) + ob_createvpack_patchVer: $(PatchVersion) + ob_createvpack_metadata: $(Build.SourceBranchName).x86.$(Build.BuildNumber).$(Build.SourceVersion) + ob_createvpack_target: $(OSBuildToolsRoot)\cppwinrt + + steps: + - task: UseDotNet@2 + continueOnError: true + inputs: + packageType: 'runtime' + version: '6.x' + performMultiLevelLookup: true + + - task: DownloadPipelineArtifact@2 + displayName: 'Download x86 artifacts' + inputs: + artifactName: 'drop_build_x86' + targetPath: '$(Build.SourcesDirectory)/x86' + + - task: DownloadPipelineArtifact@2 + displayName: 'Download x64 artifacts' + inputs: + artifactName: 'drop_build_x64' + targetPath: '$(Build.SourcesDirectory)/x64' + + - task: DownloadPipelineArtifact@2 + displayName: 'Download arm64 artifacts' + inputs: + artifactName: 'drop_build_arm64' + targetPath: '$(Build.SourcesDirectory)/arm64' + + - task: CopyFiles@2 + displayName: 'Stage compiler vpack contents' + inputs: + SourceFolder: $(Build.SourcesDirectory)/x86/cppwinrt + Contents: | + cppwinrt.exe + cppwinrt.pdb + TargetFolder: $(ob_outputDirectory) + + - task: CmdLine@2 + displayName: 'Stage MSBuild vpack contents' + inputs: + script: | + set TargetDir=$(ob_outputDirectory) + cd %TargetDir% + + copy $(Build.SourcesDirectory)\vsix\Microsoft.Cpp.CppWinRT.props + copy $(Build.SourcesDirectory)\nuget\Microsoft.Windows.CppWinRT.props Microsoft.Cpp.CppWinRTEnabled.props + copy $(Build.SourcesDirectory)\nuget\Microsoft.Windows.CppWinRT.targets Microsoft.Cpp.CppWinRTEnabled.targets + copy $(Build.SourcesDirectory)\nuget\CppWinrtRules.Project.xml CppWinrtRules.Project.xml + echo d | xcopy $(Build.SourcesDirectory)\x86\cppwinrt_fast_forwarder.lib build\native\lib\i386 + echo d | xcopy $(Build.SourcesDirectory)\x86\cppwinrt_fast_forwarder.lib build\native\lib\Win32 + echo d | xcopy $(Build.SourcesDirectory)\x64\cppwinrt_fast_forwarder.lib build\native\lib\amd64 + echo d | xcopy $(Build.SourcesDirectory)\x64\cppwinrt_fast_forwarder.lib build\native\lib\x64 + echo d | xcopy $(Build.SourcesDirectory)\arm64\cppwinrt_fast_forwarder.lib build\native\lib\arm64 + + - stage: NuGet + dependsOn: build + jobs: + - template: .pipelines/jobs/OneBranchNuGet.yml@self + parameters: + BuildConfiguration: $(BuildConfiguration) + NugetPackageVersion: $(NugetPackageVersion) + OfficialBuild: true + + - stage: Test + dependsOn: build + jobs: + - template: .pipelines/jobs/OneBranchTest.yml@self + parameters: + BuildConfiguration: $(BuildConfiguration) + BuildVersion: $(BuildVersion) + + - stage: Vsix + dependsOn: NuGet + jobs: + - template: .pipelines/jobs/OneBranchVsix.yml@self + parameters: + BuildConfiguration: $(BuildConfiguration) + BuildVersion: $(BuildVersion) + NugetPackageVersion: $(NugetPackageVersion) + OfficialBuild: true diff --git a/.pipelines/OneBranch.PullRequest.yml b/.pipelines/OneBranch.PullRequest.yml new file mode 100644 index 000000000..d92dccaa2 --- /dev/null +++ b/.pipelines/OneBranch.PullRequest.yml @@ -0,0 +1,76 @@ +parameters: +- name: 'debug' + displayName: 'Enable debug output' + type: boolean + default: false + +variables: +- template: variables/version.yml +- template: variables/OneBranchVariables.yml + parameters: + debug: ${{ parameters.debug }} + +name: PullRequest_3.0.$(date:yyMMdd)$(rev:.r) + +trigger: none + +pool: + type: windows + +resources: + repositories: + - repository: templates + type: git + name: OneBranch.Pipelines/GovernedTemplates + ref: refs/heads/main + +extends: + template: v2/Microsoft.NonOfficial.yml@templates + parameters: + platform: + name: 'windows_undocked' + product: 'build_tools' + + featureFlags: + WindowsHostVersion: + Version: 2022 + + globalSdl: + isNativeCode: true + tsa: + enabled: false + sbom: + enabled: true + + stages: + - stage: build + jobs: + - template: .pipelines/jobs/OneBranchBuild.yml@self + parameters: + BuildConfiguration: $(BuildConfiguration) + BuildVersion: $(BuildVersion) + + - stage: NuGet + dependsOn: build + jobs: + - template: .pipelines/jobs/OneBranchNuGet.yml@self + parameters: + BuildConfiguration: $(BuildConfiguration) + NugetPackageVersion: $(NugetPackageVersion) + + - stage: Test + dependsOn: build + jobs: + - template: .pipelines/jobs/OneBranchTest.yml@self + parameters: + BuildConfiguration: $(BuildConfiguration) + BuildVersion: $(BuildVersion) + + - stage: Vsix + dependsOn: NuGet + jobs: + - template: .pipelines/jobs/OneBranchVsix.yml@self + parameters: + BuildConfiguration: $(BuildConfiguration) + BuildVersion: $(BuildVersion) + NugetPackageVersion: $(NugetPackageVersion) diff --git a/.pipelines/build.yml b/.pipelines/build.yml new file mode 100644 index 000000000..ebe8ad041 --- /dev/null +++ b/.pipelines/build.yml @@ -0,0 +1,640 @@ +# 'Allow scripts to access the OAuth token' was selected in pipeline. Add the following YAML to any steps requiring access: +# env: +# MY_ACCESS_TOKEN: $(System.AccessToken) +# Variable 'MajorVersion' was defined in the Variables tab +# Variable 'MinorVersion' was defined in the Variables tab +trigger: + branches: + include: + - refs/heads/master + batch: True +schedules: +- cron: 0 18 * * * + branches: + include: + - refs/heads/master +name: $(MajorVersion).$(MinorVersion).$(date:yyMMdd)$(rev:.r) + +variables: + manualRelease: $[and(eq(variables['BuildConfiguration'], 'release'), in(variables['Build.Reason'], 'Manual'))] + +jobs: +- job: BuildBinaries + pool: + name: Azure Pipelines + vmImage: 'windows-2022' + demands: + - msbuild + strategy: + matrix: + x86: + buildPlatform: 'x86' + x64: + buildPlatform: 'x64' + arm64: + buildPlatform: 'arm64' + + steps: + - checkout: self + clean: true + persistCredentials: True + + - task: NuGetToolInstaller@1 + displayName: Use NuGet 6.0.2 + continueOnError: True + inputs: + versionSpec: 6.0.2 + + - task: NuGetCommand@2 + displayName: NuGet restore + inputs: + command: 'restore' + feedsToUse: config + nugetConfigPath: NuGet.config + + - task: CmdLine@2 + displayName: Build Tools + inputs: + script: | + if "%VSCMD_VER%"=="" ( + pushd c: + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" >nul 2>&1 + popd + ) + + build_test_all.cmd $(BuildPlatform) $(BuildConfiguration) $(Build.BuildNumber) true + failOnStderr: true + + - task: ComponentGovernanceComponentDetection@0 + displayName: Component Detection + condition: eq(variables['BuildPlatform'], 'x64') + + - task: PublishTestResults@2 + displayName: Publish Test Results + enabled: False + + - task: CopyFiles@2 + displayName: Stage cppwinrt.* + condition: and(eq(variables['BuildPlatform'], 'x86'), eq(variables.manualRelease, 'true')) + inputs: + SourceFolder: $(Build.SourcesDirectory)\_build\$(BuildPlatform)\$(BuildConfiguration) + Contents: | + cppwinrt.exe + cppwinrt.pdb + TargetFolder: $(Build.ArtifactStagingDirectory)\cppwinrt + + - task: CopyFiles@2 + displayName: Stage Component cppwinrtvisualizer.* + condition: and(or(eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildPlatform'], 'x64'), eq(variables['BuildPlatform'], 'arm64')), eq(variables.manualRelease, 'true')) + inputs: + SourceFolder: $(Build.SourcesDirectory)\natvis\$(BuildPlatform)\$(BuildConfiguration)\Component + Contents: | + cppwinrtvisualizer.dll + cppwinrtvisualizer.pdb + cppwinrtvisualizer.vsdconfig + TargetFolder: $(Build.ArtifactStagingDirectory)\Component + + - task: CopyFiles@2 + displayName: Stage Standalone cppwinrtvisualizer.* + condition: and(or(eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildPlatform'], 'x64'), eq(variables['BuildPlatform'], 'arm64')), eq(variables.manualRelease, 'true')) + inputs: + SourceFolder: $(Build.SourcesDirectory)\natvis\$(BuildPlatform)\$(BuildConfiguration)\Standalone + Contents: | + cppwinrtvisualizer.dll + cppwinrtvisualizer.pdb + cppwinrtvisualizer.vsdconfig + TargetFolder: $(Build.ArtifactStagingDirectory)\Standalone + + - task: CopyFiles@2 + displayName: Stage cppwinrt_fast_forwarder.lib + condition: eq(variables.manualRelease, 'true') + inputs: + SourceFolder: $(Build.SourcesDirectory)\_build\$(BuildPlatform)\$(BuildConfiguration) + Contents: cppwinrt_fast_forwarder.lib + TargetFolder: $(Build.ArtifactStagingDirectory) + + - task: ManifestGeneratorTask@0 + displayName: 'Manifest Generator ' + condition: and(eq(variables['BuildPlatform'], 'x86'), eq(variables.manualRelease, 'true')) + inputs: + BuildDropPath: $(Build.ArtifactStagingDirectory)\cppwinrt + + - task: PublishPipelineArtifact@0 + displayName: Publish Artifacts + condition: eq(variables.manualRelease, 'true') + inputs: + artifactName: $(BuildConfiguration)_$(BuildPlatform) + targetPath: $(Build.ArtifactStagingDirectory) + + - task: PublishSymbols@2 + displayName: Publish symbols + condition: eq(variables.manualRelease, 'true') + inputs: + SymbolsFolder: $(Build.ArtifactStagingDirectory) + SearchPattern: '**/*.pdb' + SymbolServerType: TeamServices + SymbolsProduct: CppWinRT + +- job: BuildInternal + displayName: Build Internal Packages (VPacks) + dependsOn: BuildBinaries + condition: and(succeeded(), ne(variables['SkipInternalPackages'], 'true'), eq(variables.manualRelease, 'true')) + pool: + name: Azure Pipelines + vmImage: 'windows-2022' + steps: + - checkout: self + clean: true + persistCredentials: True + + - task: PkgESSetupBuild@12 + displayName: Package ES - Setup Build + inputs: + branchVersionExcludeBranch: master + disableWorkspace: true + disableMsbuildVersion: true + disableBuildTools: true + + - task: DownloadPipelineArtifact@1 + displayName: Download x86 Artifacts + inputs: + artifactName: $(BuildConfiguration)_x86 + downloadPath: $(Build.SourcesDirectory)\x86 + + - task: DownloadPipelineArtifact@1 + displayName: Download x64 Artifacts + inputs: + artifactName: $(BuildConfiguration)_x64 + downloadPath: $(Build.SourcesDirectory)\x64 + + - task: DownloadPipelineArtifact@1 + displayName: Download arm64 Artifacts + inputs: + artifactName: $(BuildConfiguration)_arm64 + downloadPath: $(Build.SourcesDirectory)\arm64 + + - task: CmdLine@2 + displayName: Parse PatchVersion + inputs: + script: 'for /f "tokens=3,4 delims=." %%i in ("$(Build.BuildNumber)") do @echo ##vso[task.setvariable variable=PatchVersion;]%%i%%j ' + failOnStderr: true + + - task: CmdLine@2 + displayName: Copy compiler contents for internal signing + inputs: + script: | + md $(Build.SourcesDirectory)\x86\tempsign + echo Build Sources Directory: + dir $(Build.SourcesDirectory) + echo x86 + dir $(Build.SourcesDirectory)\x86 + echo cppwinrt + dir $(Build.SourcesDirectory)\x86\cppwinrt + xcopy $(Build.SourcesDirectory)\x86\cppwinrt\*.* $(Build.SourcesDirectory)\x86\tempsign /icefzy + + - task: EsrpCodeSigning@2 + displayName: Sign Compiler vPack for internal use + inputs: + ConnectedServiceName: bf601a97-455d-4977-b248-07b90c96eed9 + FolderPath: $(Build.SourcesDirectory)\x86\tempsign + signConfigType: inlineSignParams + inlineOperation: | + [ + { + "KeyCode" : "CP-458204", + "OperationCode" : "SigntoolSign", + "Parameters" : { + "OpusName" : "Windows Build Tools Internal", + "OpusInfo" : "http://www.microsoft.com", + "FileDigest" : "/fd \"SHA256\"", + "PageHash" : "/NPH", + "TimeStamp" : "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" + }, + "ToolName" : "sign", + "ToolVersion" : "1.0" + }, + { + "KeyCode" : "CP-458204", + "OperationCode" : "SigntoolVerify", + "Parameters" : {}, + "ToolName" : "sign", + "ToolVersion" : "1.0" + } + ] + + - task: PkgESVPack@12 + displayName: 'Publish Compiler VPack ' + inputs: + serviceType: drop + versionAs: parts + sourceDirectory: $(Build.SourcesDirectory)\x86\tempsign + description: C++/WinRT Compiler + pushPkgName: CppWinRT.Compiler + target: $(OSBuildToolsRoot)\cppwinrt + provData: false + majorVer: $(MajorVersion) + minorVer: $(MinorVersion) + patchVer: $(PatchVersion) + prereleaseVer: $(Build.SourceBranchName).x86.$(BuildConfiguration).$(Build.BuildNumber).$(Build.SourceVersion) + signSbom: false + + - task: CmdLine@2 + displayName: Delete internal compiler copy + inputs: + script: | + rd $(Build.SourcesDirectory)\x86\tempsign /q /s + + - task: CopyFiles@2 + displayName: Stage CppWinRT.Compiler.man + inputs: + SourceFolder: $(XES_VPACKMANIFESTDIRECTORY) + Contents: $(XES_VPACKMANIFESTNAME) + TargetFolder: $(Build.ArtifactStagingDirectory) + + - task: CmdLine@2 + displayName: Stage MSBuild vpack + inputs: + script: "set TargetDir=$(Build.SourcesDirectory)\\msbuild\nrd /s /q %TargetDir% >nul 2>&1\nmd %TargetDir%\ncd %TargetDir%\n\ncopy $(Build.SourcesDirectory)\\vsix\\Microsoft.Cpp.CppWinRT.props\ncopy $(Build.SourcesDirectory)\\nuget\\Microsoft.Windows.CppWinRT.props Microsoft.Cpp.CppWinRTEnabled.props \ncopy $(Build.SourcesDirectory)\\nuget\\Microsoft.Windows.CppWinRT.targets Microsoft.Cpp.CppWinRTEnabled.targets\ncopy $(Build.SourcesDirectory)\\nuget\\CppWinrtRules.Project.xml CppWinrtRules.Project.xml\necho d | xcopy $(Build.SourcesDirectory)\\x86\\cppwinrt_fast_forwarder.lib build\\native\\lib\\i386\necho d | xcopy $(Build.SourcesDirectory)\\x86\\cppwinrt_fast_forwarder.lib build\\native\\lib\\Win32\necho d | xcopy $(Build.SourcesDirectory)\\x64\\cppwinrt_fast_forwarder.lib build\\native\\lib\\amd64\necho d | xcopy $(Build.SourcesDirectory)\\x64\\cppwinrt_fast_forwarder.lib build\\native\\lib\\x64\necho d | xcopy $(Build.SourcesDirectory)\\arm64\\cppwinrt_fast_forwarder.lib build\\native\\lib\\arm64\n" + failOnStderr: true + + - task: PkgESVPack@12 + displayName: Publish MSBuild VPack + inputs: + serviceType: drop + versionAs: parts + sourceDirectory: $(Build.SourcesDirectory)\msbuild + description: C++/WinRT MSBuild + pushPkgName: CppWinRT.MSBuild + target: $(OSBuildToolsRoot)\cppwinrt + provData: false + majorVer: $(MajorVersion) + minorVer: $(MinorVersion) + patchVer: $(PatchVersion) + prereleaseVer: $(Build.SourceBranchName).$(Build.BuildNumber).$(Build.SourceVersion) + signSbom: false + + - task: CopyFiles@2 + displayName: Stage CppWinRT.MSBuild.man + inputs: + SourceFolder: $(XES_VPACKMANIFESTDIRECTORY) + Contents: $(XES_VPACKMANIFESTNAME) + TargetFolder: $(Build.ArtifactStagingDirectory) + + - task: CmdLine@2 + displayName: Stage OSBuildTools.Manifest Update + enabled: False + inputs: + script: | + copy $(Build.SourcesDirectory)\src\package\cppwinrt\vpack\GitCheckin.json + copy $(Build.SourcesDirectory)\vpack\*.man OSBuildTools.Manifest.Update + type OSBuildTools.Manifest.Update + workingDirectory: $(Build.ArtifactStagingDirectory) + failOnStderr: true + + - task: PublishPipelineArtifact@0 + displayName: Publish Update Manifests + inputs: + artifactName: VPack + targetPath: $(Build.ArtifactStagingDirectory) + +- job: BuildExternal + displayName: Build External Packages (NuGet, VSIX) + cancelTimeoutInMinutes: 1 + dependsOn: BuildBinaries + condition: and(succeeded(), eq(variables.manualRelease, 'true')) + pool: + name: Azure Pipelines + vmImage: 'windows-2022' + steps: + - checkout: self + clean: true + persistCredentials: True + + - task: NuGetToolInstaller@1 + displayName: Use NuGet 6.0.2 + continueOnError: True + inputs: + versionSpec: 6.0.2 + + - task: NuGetCommand@2 + displayName: NuGet restore + inputs: + command: 'restore' + feedsToUse: config + nugetConfigPath: NuGet.config + + - task: DownloadPipelineArtifact@1 + displayName: Download x86 Artifacts + inputs: + artifactName: $(BuildConfiguration)_x86 + downloadPath: $(Build.SourcesDirectory)\x86 + + - task: DownloadPipelineArtifact@1 + displayName: Download x64 Artifacts + inputs: + artifactName: $(BuildConfiguration)_x64 + downloadPath: $(Build.SourcesDirectory)\x64 + + - task: DownloadPipelineArtifact@1 + displayName: Download arm64 Artifacts + inputs: + artifactName: $(BuildConfiguration)_arm64 + downloadPath: $(Build.SourcesDirectory)\arm64 + + - task: EsrpCodeSigning@2 + displayName: ESRP CodeSigning NatVis + inputs: + ConnectedServiceName: 81cc6790-027c-4ef3-928d-65e8b96a691a + FolderPath: $(Build.SourcesDirectory) + Pattern: | + x86\cppwinrt\cppwinrt.exe + x86\Component\cppwinrtvisualizer.dll + x64\Component\cppwinrtvisualizer.dll + arm64\Component\cppwinrtvisualizer.dll + x86\Standalone\cppwinrtvisualizer.dll + x64\Standalone\cppwinrtvisualizer.dll + UseMinimatch: true + signConfigType: inlineSignParams + inlineOperation: | + [ + { + "keyCode": "CP-230012", + "operationSetCode": "SigntoolSign", + "parameters": [ + { + "parameterName": "OpusName", + "parameterValue": "Microsoft" + }, + { + "parameterName": "OpusInfo", + "parameterValue": "http://www.microsoft.com" + }, + { + "parameterName": "PageHash", + "parameterValue": "/NPH" + }, + { + "parameterName": "FileDigest", + "parameterValue": "/fd sha256" + }, + { + "parameterName": "TimeStamp", + "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" + } + ], + "toolName": "signtool.exe", + "toolVersion": "6.2.9304.0" + } + ] + + - task: CmdLine@2 + displayName: Stage Signed Binaries + inputs: + script: | + echo F|xcopy /S /Q /Y /F x86\cppwinrt\cppwinrt.exe $(Build.ArtifactStagingDirectory)\x86\cppwinrt.exe + echo F|xcopy /S /Q /Y /F x86\Component\cppwinrtvisualizer.dll $(Build.ArtifactStagingDirectory)\x86\Component\cppwinrtvisualizer.dll + echo F|xcopy /S /Q /Y /F x64\Component\cppwinrtvisualizer.dll $(Build.ArtifactStagingDirectory)\x64\Component\cppwinrtvisualizer.dll + echo F|xcopy /S /Q /Y /F arm64\Component\cppwinrtvisualizer.dll $(Build.ArtifactStagingDirectory)\arm64\Component\cppwinrtvisualizer.dll + echo F|xcopy /S /Q /Y /F x86\Standalone\cppwinrtvisualizer.dll $(Build.ArtifactStagingDirectory)\x86\Standalone\cppwinrtvisualizer.dll + echo F|xcopy /S /Q /Y /F x64\Standalone\cppwinrtvisualizer.dll $(Build.ArtifactStagingDirectory)\x64\Standalone\cppwinrtvisualizer.dll + echo F|xcopy /S /Q /Y /F arm64\Standalone\cppwinrtvisualizer.dll $(Build.ArtifactStagingDirectory)\arm64\Standalone\cppwinrtvisualizer.dll + workingDirectory: $(Build.SourcesDirectory) + failOnStderr: true + + - task: CmdLine@2 + displayName: Stage cppwinrtvisualizer.vsdconfig + inputs: + script: | + copy $(Build.SourcesDirectory)\x86\Component\cppwinrtvisualizer.vsdconfig x86\Component\cppwinrtvisualizer.vsdconfig + copy $(Build.SourcesDirectory)\x86\Standalone\cppwinrtvisualizer.vsdconfig x86\Standalone\cppwinrtvisualizer.vsdconfig + workingDirectory: $(Build.ArtifactStagingDirectory) + failOnStderr: true + + - task: NuGetCommand@2 + displayName: Build NuGet + inputs: + command: pack + searchPatternPack: nuget/Microsoft.Windows.CppWinRT.nuspec + versioningScheme: byBuildNumber + buildProperties: 'target_version=$(Build.BuildNumber);cppwinrt_exe=$(Build.ArtifactStagingDirectory)\x86\cppwinrt.exe;cppwinrt_fast_fwd_x86=$(Build.SourcesDirectory)\x86\cppwinrt_fast_forwarder.lib;cppwinrt_fast_fwd_x64=$(Build.SourcesDirectory)\x64\cppwinrt_fast_forwarder.lib;cppwinrt_fast_fwd_arm64=$(Build.SourcesDirectory)\arm64\cppwinrt_fast_forwarder.lib ' + + - task: ComponentGovernanceComponentDetection@0 + displayName: Component Detection + + - task: EsrpCodeSigning@2 + displayName: ESRP CodeSigning Nuget Package + inputs: + ConnectedServiceName: 81cc6790-027c-4ef3-928d-65e8b96a691a + FolderPath: $(Build.ArtifactStagingDirectory) + Pattern: Microsoft.Windows.CppWinRT.*.nupkg + UseMinimatch: true + signConfigType: inlineSignParams + inlineOperation: | + [ + { + "KeyCode" : "CP-401405", + "OperationCode" : "NuGetSign", + "Parameters" : {}, + "ToolName" : "sign", + "ToolVersion" : "1.0" + }, + { + "KeyCode" : "CP-401405", + "OperationCode" : "NuGetVerify", + "Parameters" : {}, + "ToolName" : "sign", + "ToolVersion" : "1.0" + } + ] + + - task: PkgESNuGetPublisher@0 + displayName: Publish NuGet Package + inputs: + searchPattern: $(System.ArtifactsDirectory)\Microsoft.Windows.CppWinRT.$(Build.BuildNumber).nupkg + nuGetFeedType: internal + feedName: https://microsoft.pkgs.visualstudio.com/_packaging/CppWinRT/nuget/v3/index.json + + - task: VSBuild@1 + displayName: Build Component VSIXes + inputs: + solution: vsix/vsix.sln + msbuildArgs: /p:Deployment=Component,CppWinRTVersion=$(Build.BuildNumber),NatvisDirx86=$(Build.ArtifactStagingDirectory)\x86\Component\,NatvisDirx64=$(Build.ArtifactStagingDirectory)\x64\Component\,NatvisDirarm64=$(Build.ArtifactStagingDirectory)\arm64\Component\,NupkgDir=$(Build.ArtifactStagingDirectory) /restore + platform: Any CPU + configuration: Release + + - task: ExtractFiles@1 + displayName: Extract Component VSIX files for signing + inputs: + archiveFilePatterns: $(Build.SourcesDirectory)\vsix\Dev17\bin\Release\Component\Microsoft.Windows.CppWinRT.Dev17.vsix + destinationFolder: $(Agent.TempDirectory)\Microsoft.Windows.CppWinRT.Dev17.vsix + overwriteExistingFiles: true + + - task: EsrpCodeSigning@2 + displayName: ESRP CodeSign VSIX contents + inputs: + ConnectedServiceName: 81cc6790-027c-4ef3-928d-65e8b96a691a + FolderPath: $(Agent.TempDirectory)\Microsoft.Windows.CppWinRT.Dev17.vsix + Pattern: '**/Microsoft.Windows.CppWinRT.*.dll' + UseMinimatch: true + signConfigType: inlineSignParams + inlineOperation: | + [ + { + "keyCode": "CP-230012", + "operationSetCode": "SigntoolSign", + "parameters": [ + { + "parameterName": "OpusName", + "parameterValue": "Microsoft" + }, + { + "parameterName": "OpusInfo", + "parameterValue": "http://www.microsoft.com" + }, + { + "parameterName": "PageHash", + "parameterValue": "/NPH" + }, + { + "parameterName": "FileDigest", + "parameterValue": "/fd sha256" + }, + { + "parameterName": "TimeStamp", + "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" + } + ], + "toolName": "signtool.exe", + "toolVersion": "6.2.9304.0" + } + ] + - task: ArchiveFiles@2 + displayName: Repack signed VSIX contents + inputs: + rootFolderOrFile: $(Agent.TempDirectory)\Microsoft.Windows.CppWinRT.Dev17.vsix + includeRootFolder: false + archiveFile: $(Build.SourcesDirectory)\vsix\Dev17\bin\Release\Component\Microsoft.Windows.CppWinRT.Dev17.vsix + + - task: VSBuild@1 + displayName: Build Standalone VSIXes + inputs: + solution: vsix/vsix.sln + msbuildArgs: /p:Deployment=Standalone,CppWinRTVersion=$(Build.BuildNumber),NatvisDirx86=$(Build.ArtifactStagingDirectory)\x86\Standalone\,NatvisDirx64=$(Build.ArtifactStagingDirectory)\x64\Standalone\,NatvisDirarm64=$(Build.ArtifactStagingDirectory)\arm64\Standalone\,NupkgDir=$(Build.ArtifactStagingDirectory) /restore + platform: x86 + configuration: Release + + - task: EsrpCodeSigning@2 + displayName: ESRP CodeSigning VSIX + inputs: + ConnectedServiceName: 81cc6790-027c-4ef3-928d-65e8b96a691a + FolderPath: $(Build.SourcesDirectory)\vsix\ + Pattern: | + Dev16\bin\Release\Component\Microsoft.Windows.CppWinRT.vsix + Dev16\bin\Release\Standalone\Microsoft.Windows.CppWinRT.vsix + Dev17\bin\Release\Component\Microsoft.Windows.CppWinRT.Dev17.vsix + Dev17\bin\Release\Standalone\Microsoft.Windows.CppWinRT.Dev17.vsix + UseMinimatch: true + signConfigType: inlineSignParams + inlineOperation: | + [ + { + "KeyCode" : "CP-233016", + "OperationCode" : "OpcSign", + "Parameters" : { + "FileDigest" : "/fd SHA256" + }, + "ToolName" : "sign", + "ToolVersion" : "1.0" + }, + { + "KeyCode" : "CP-233016", + "OperationCode" : "OpcVerify", + "Parameters" : {}, + "ToolName" : "sign", + "ToolVersion" : "1.0" + } + ] + + - task: CmdLine@2 + displayName: Stage Component VSIX (Dev17) + inputs: + script: | + echo F|xcopy /S /Q /Y /F Microsoft.Windows.CppWinRT.Dev17.vsix $(Build.ArtifactStagingDirectory)\Component\Dev17\Microsoft.Windows.CppWinRT.Dev17.vsix + echo F|xcopy /S /Q /Y /F Microsoft.Windows.CppWinRT.Dev17.json $(Build.ArtifactStagingDirectory)\Component\Dev17\Microsoft.Windows.CppWinRT.Dev17.json + echo F|xcopy /S /Q /Y /F Microsoft.Windows.CppWinRT.Dev17.pdb $(Build.ArtifactStagingDirectory)\Component\Dev17\Microsoft.Windows.CppWinRT.Dev17.pdb + workingDirectory: $(Build.SourcesDirectory)\vsix\Dev17\bin\Release\Component + failOnStderr: true + + - task: CopyFiles@2 + displayName: Stage Component VSIX Manifest (Dev17) + inputs: + SourceFolder: $(Build.SourcesDirectory)\vsix + Contents: | + extension.manifest.json + overview.md + TargetFolder: $(Build.ArtifactStagingDirectory)\Component\Dev17 + OverWrite: true + + - task: CmdLine@2 + displayName: Stage Standalone VSIX (Dev16) + inputs: + script: echo F|xcopy /S /Q /Y /F Microsoft.Windows.CppWinRT.vsix $(Build.ArtifactStagingDirectory)\Standalone\Dev16\Microsoft.Windows.CppWinRT.vsix + workingDirectory: $(Build.SourcesDirectory)\vsix\Dev16\bin\$(BuildConfiguration)\Standalone + failOnStderr: true + + - task: CopyFiles@2 + displayName: Stage Standalone VSIX Manifest (Dev16) + inputs: + SourceFolder: $(Build.SourcesDirectory)\vsix + Contents: | + extension.manifest.json + overview.md + TargetFolder: $(Build.ArtifactStagingDirectory)\Standalone\Dev16 + OverWrite: true + + - task: CmdLine@2 + displayName: Stage Standalone VSIX (Dev17) + inputs: + script: echo F|xcopy /S /Q /Y /F Microsoft.Windows.CppWinRT.Dev17.vsix $(Build.ArtifactStagingDirectory)\Standalone\Dev17\Microsoft.Windows.CppWinRT.Dev17.vsix + workingDirectory: $(Build.SourcesDirectory)\vsix\Dev17\bin\$(BuildConfiguration)\Standalone + failOnStderr: true + + - task: CopyFiles@2 + displayName: Stage Standalone VSIX Manifest (Dev17) + inputs: + SourceFolder: $(Build.SourcesDirectory)\vsix + Contents: | + extension.manifest.json + overview.md + TargetFolder: $(Build.ArtifactStagingDirectory)\Standalone\Dev17 + OverWrite: true + + - task: ManifestGeneratorTask@0 + displayName: SBOM for Dev16 + inputs: + BuildDropPath: $(Build.ArtifactStagingDirectory)\Standalone\Dev16 + + - task: ManifestGeneratorTask@0 + displayName: SBOM for Dev17 Standalone + inputs: + BuildDropPath: $(Build.ArtifactStagingDirectory)\Standalone\Dev17 + + - task: ManifestGeneratorTask@0 + displayName: SBOM for Dev17 Component + inputs: + BuildDropPath: $(Build.ArtifactStagingDirectory)\Component\Dev17 + + - task: PublishPipelineArtifact@0 + displayName: Publish VSIX + inputs: + artifactName: Publish + targetPath: $(Build.ArtifactStagingDirectory) + + - task: PublishSymbols@2 + displayName: Publish Component VSIX symbols + inputs: + SymbolsFolder: $(Build.ArtifactStagingDirectory) + SearchPattern: '**/Microsoft.Windows.CppWinRT.Dev17.pdb' + SymbolServerType: TeamServices + SymbolsProduct: CppWinRT +... diff --git a/.pipelines/jobs/OneBranchBuild.yml b/.pipelines/jobs/OneBranchBuild.yml new file mode 100644 index 000000000..dfee85edf --- /dev/null +++ b/.pipelines/jobs/OneBranchBuild.yml @@ -0,0 +1,147 @@ +parameters: + - name: BuildConfiguration + type: string + - name: BuildVersion + type: string + - name: OutputDirectory + type: string + default: '$(Build.SourcesDirectory)\out' + - name: OfficialBuild + type: boolean + default: false + +jobs: +- job: + pool: + type: windows + strategy: + matrix: + x86: + BuildPlatform: 'x86' + x64: + BuildPlatform: 'x64' + arm64: + BuildPlatform: 'arm64' + + variables: + ob_outputDirectory: ${{ parameters.OutputDirectory }} + ob_artifactSuffix: $(BuildPlatform) + StagingFolder: $(ob_outputDirectory) + + ${{ if eq(parameters.OfficialBuild, 'false') }}: + ob_sdl_codeSignValidation_excludes: '-|**\*.exe;-|**\*.dll' + + ob_sdl_prefast_enabled: true + ob_sdl_prefast_runDuring: "Guardian" + ob_sdl_checkCompliantCompilerWarnings: true + + ob_symbolsPublishing_enabled: ${{ parameters.OfficialBuild }} + ob_symbolsPublishing_symbolsFolder: '$(ob_outputDirectory)' + ob_symbolsPublishing_searchPattern: '**\*.pdb' + ob_symbolsPublishing_indexSources: true + + steps: + - task: UseDotNet@2 + continueOnError: true + inputs: + packageType: 'runtime' + version: '6.x' + performMultiLevelLookup: true + + - task: NuGetCommand@2 + displayName: NuGet restore cppwinrt.sln + inputs: + command: 'restore' + restoreSolution: '$(Build.SourcesDirectory)\cppwinrt.sln' + feedsToUse: config + nugetConfigPath: NuGet.config + + - task: VSBuild@1 + displayName: Build fast_fwd + inputs: + solution: $(Build.SourcesDirectory)\cppwinrt.sln + msbuildArgs: /t:fast_fwd /m /p:CppWinRTBuildVersion=${{ parameters.BuildVersion }},clean_intermediate_files=true + platform: $(BuildPlatform) + configuration: ${{ parameters.BuildConfiguration }} + + - task: CopyFiles@2 + displayName: Stage cppwinrt_fast_forwarder.lib + inputs: + SourceFolder: $(Build.SourcesDirectory)\_build\$(BuildPlatform)\$(BuildConfiguration) + Contents: cppwinrt_fast_forwarder.lib + TargetFolder: $(StagingFolder) + + - task: NuGetCommand@2 + displayName: NuGet restore cppwinrtvisualizer.sln + inputs: + command: 'restore' + restoreSolution: '$(Build.SourcesDirectory)\natvis\cppwinrtvisualizer.sln' + feedsToUse: config + nugetConfigPath: NuGet.config + + - task: VSBuild@1 + displayName: Build Component visualizer + condition: or(eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildPlatform'], 'x64'), eq(variables['BuildPlatform'], 'arm64')) + inputs: + solution: $(Build.SourcesDirectory)\natvis\cppwinrtvisualizer.sln + msbuildArgs: /m /p:Deployment=Component,CppWinRTBuildVersion=${{ parameters.BuildVersion }},clean_intermediate_files=true + platform: $(BuildPlatform) + configuration: ${{ parameters.BuildConfiguration }} + + - task: VSBuild@1 + displayName: Build Standalone visualizer + condition: or(eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildPlatform'], 'x64'), eq(variables['BuildPlatform'], 'arm64')) + inputs: + solution: $(Build.SourcesDirectory)\natvis\cppwinrtvisualizer.sln + msbuildArgs: /m /p:Deployment=Standalone,CppWinRTBuildVersion=${{ parameters.BuildVersion }},clean_intermediate_files=true + platform: $(BuildPlatform) + configuration: ${{ parameters.BuildConfiguration }} + + - task: CopyFiles@2 + displayName: Stage Component cppwinrtvisualizer.* + condition: or(eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildPlatform'], 'x64'), eq(variables['BuildPlatform'], 'arm64')) + inputs: + SourceFolder: $(Build.SourcesDirectory)\natvis\$(BuildPlatform)\$(BuildConfiguration)\Component + Contents: | + cppwinrtvisualizer.dll + cppwinrtvisualizer.pdb + cppwinrtvisualizer.vsdconfig + TargetFolder: $(StagingFolder)\Component + + - task: CopyFiles@2 + displayName: Stage Standalone cppwinrtvisualizer.* + condition: or(eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildPlatform'], 'x64'), eq(variables['BuildPlatform'], 'arm64')) + inputs: + SourceFolder: $(Build.SourcesDirectory)\natvis\$(BuildPlatform)\$(BuildConfiguration)\Standalone + Contents: | + cppwinrtvisualizer.dll + cppwinrtvisualizer.pdb + cppwinrtvisualizer.vsdconfig + TargetFolder: $(StagingFolder)\Standalone + + - task: VSBuild@1 + displayName: Build cppwinrt + condition: or(eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildPlatform'], 'x64')) + inputs: + solution: $(Build.SourcesDirectory)\cppwinrt.sln + msbuildArgs: /t:cppwinrt /m /p:CppWinRTBuildVersion=${{ parameters.BuildVersion }},clean_intermediate_files=true + platform: $(BuildPlatform) + configuration: ${{ parameters.BuildConfiguration }} + + - task: CopyFiles@2 + displayName: Stage cppwinrt.* + inputs: + SourceFolder: $(Build.SourcesDirectory)\_build\$(BuildPlatform)\$(BuildConfiguration) + Contents: | + cppwinrt.exe + cppwinrt.pdb + TargetFolder: $(StagingFolder)\cppwinrt + + - task: onebranch.pipeline.signing@1 + displayName: '🔒 Onebranch Signing for cppwinrt binaries' + condition: eq(${{ parameters.OfficialBuild }}, 'true') + inputs: + command: sign + signing_profile: external_distribution + files_to_sign: '**/*.dll;**/*.exe' + search_root: $(StagingFolder) diff --git a/.pipelines/jobs/OneBranchNuGet.yml b/.pipelines/jobs/OneBranchNuGet.yml new file mode 100644 index 000000000..36ec3144b --- /dev/null +++ b/.pipelines/jobs/OneBranchNuGet.yml @@ -0,0 +1,75 @@ +# Build the NuGet package +parameters: + - name: BuildConfiguration + type: string + - name: NugetPackageVersion + type: string + - name: OfficialBuild + type: boolean + default: false + +jobs: + - job: + pool: + type: windows + + variables: + ob_outputDirectory: '$(Build.SourcesDirectory)\out' + PackageVersion: ${{ parameters.NugetPackageVersion }} + + ob_sdl_prefast_enabled: true + ob_sdl_prefast_runDuring: 'Guardian' + ob_sdl_checkCompliantCompilerWarnings: true + + steps: + - task: UseDotNet@2 + continueOnError: true + inputs: + packageType: 'runtime' + version: '6.x' + performMultiLevelLookup: true + + - task: NuGetToolInstaller@1 + displayName: Use NuGet 6.0.2 + continueOnError: True + inputs: + versionSpec: 6.0.2 + + - task: DownloadPipelineArtifact@1 + displayName: 'Download x86 artifacts' + inputs: + artifactName: 'drop_build_x86' + targetPath: '$(Build.SourcesDirectory)/x86' + + - task: DownloadPipelineArtifact@1 + displayName: 'Download x64 artifacts' + inputs: + artifactName: 'drop_build_x64' + targetPath: '$(Build.SourcesDirectory)/x64' + + - task: DownloadPipelineArtifact@1 + displayName: 'Download arm64 artifacts' + inputs: + artifactName: 'drop_build_arm64' + targetPath: '$(Build.SourcesDirectory)/arm64' + + - task: NuGetCommand@2 + displayName: 'Build NuGet package' + inputs: + command: 'custom' + arguments: 'pack nuget/Microsoft.Windows.CppWinRT.nuspec -NonInteractive -OutputDirectory $(ob_outputDirectory)\packages -Properties Configuration=release;cppwinrt_exe=$(Build.SourcesDirectory)\x86\cppwinrt\cppwinrt.exe;cppwinrt_fast_fwd_x86=$(Build.SourcesDirectory)\x86\cppwinrt_fast_forwarder.lib;cppwinrt_fast_fwd_x64=$(Build.SourcesDirectory)\x64\cppwinrt_fast_forwarder.lib;cppwinrt_fast_fwd_arm64=$(Build.SourcesDirectory)\arm64\cppwinrt_fast_forwarder.lib;target_version=$(PackageVersion) -Version $(PackageVersion) -Verbosity Detailed' + + - task: onebranch.pipeline.signing@1 + displayName: '🔒 Onebranch Signing for NuGet package' + condition: eq(${{ parameters.OfficialBuild }}, 'true') + inputs: + command: sign + signing_profile: external_distribution + files_to_sign: 'Microsoft.Windows.CppWinRT.*.nupkg' + search_root: $(ob_outputDirectory)\packages + + - task: NuGetCommand@2 + displayName: 'Publish NuGet package' + inputs: + command: 'custom' + arguments: 'push $(ob_outputDirectory)\packages\Microsoft.Windows.CppWinRT.$(PackageVersion).nupkg -NonInteractive -Source https://microsoft.pkgs.visualstudio.com/_packaging/CppWinRT/nuget/v3/index.json -ApiKey VSTS' diff --git a/.pipelines/jobs/OneBranchTest.yml b/.pipelines/jobs/OneBranchTest.yml new file mode 100644 index 000000000..2fb3a4bd1 --- /dev/null +++ b/.pipelines/jobs/OneBranchTest.yml @@ -0,0 +1,123 @@ +parameters: + - name: BuildConfiguration + type: string + - name: BuildVersion + type: string + +jobs: +- job: + pool: + type: windows + isCustom: true + name: 'Azure Pipelines' + vmImage: 'windows-2022' # (or 2019) + strategy: + matrix: + test.x86: + TestExe: 'test' + TestProject: 'test' + BuildPlatform: 'x86' + test_nocoro.x86: + TestExe: 'test_nocoro' + TestProject: 'test_nocoro' + BuildPlatform: 'x86' + test_cpp20.x86: + TestExe: 'test_cpp20' + TestProject: 'test_cpp20' + BuildPlatform: 'x86' + test_cpp20_no_sourcelocation.x86: + TestExe: 'test_cpp20_no_sourcelocation' + TestProject: 'test_cpp20_no_sourcelocation' + BuildPlatform: 'x86' + test_fast.x86: + TestExe: 'test_fast' + TestProject: 'test_fast' + BuildPlatform: 'x86' + test_slow.x86: + TestExe: 'test_slow' + TestProject: 'test_slow' + BuildPlatform: 'x86' + test_old.x86: + TestExe: 'test_old' + TestProject: 'old_tests\test_old' + BuildPlatform: 'x86' + test_module_lock_custom.x86: + TestExe: 'test_module_lock_custom' + TestProject: 'test_module_lock_custom' + BuildPlatform: 'x86' + test_module_lock_none.x86: + TestExe: 'test_module_lock_none' + TestProject: 'test_module_lock_none' + BuildPlatform: 'x86' + + variables: + ob_outputDirectory: $(Build.SourcesDirectory)\out + ob_artifactSuffix: $(TestExe).$(BuildPlatform) + ob_sdl_codeSignValidation_excludes: '-|**\*.exe;-|**\*.dll' + + ob_sdl_prefast_enabled: true + ob_sdl_prefast_runDuring: 'Build' + ob_sdl_checkCompliantCompilerWarnings: true + + BuildPath: '$(Build.SourcesDirectory)/_build/$(BuildPlatform)/${{ parameters.BuildConfiguration }}' + + steps: + - task: UseDotNet@2 + continueOnError: true + inputs: + packageType: 'runtime' + version: '6.x' + performMultiLevelLookup: true + + - task: DownloadPipelineArtifact@2 + displayName: 'Download cppwinrt executable' + inputs: + artifactName: 'drop_build_$(BuildPlatform)' + targetPath: '$(Pipeline.Workspace)' + + - task: CopyFiles@2 + displayName: 'Patch cppwinrt executable into build directory' + inputs: + sourceFolder: '$(Pipeline.Workspace)' + Contents: '**\cppwinrt.exe' + TargetFolder: $(BuildPath) + flattenFolders: true + + - task: NuGetCommand@2 + displayName: NuGet restore cppwinrt.sln + inputs: + command: 'restore' + restoreSolution: '$(Build.SourcesDirectory)\cppwinrt.sln' + feedsToUse: config + nugetConfigPath: NuGet.config + + - task: PowerShell@2 + displayName: Remove cppwinrt dependency from test projects + inputs: + targetType: inline + script: | + # Hack-ish: We already have a built exe, so we want to avoid rebuilding cppwinrt + mv cppwinrt.sln cppwinrt.sln.orig + Get-Content cppwinrt.sln.orig | + Where-Object { -not $_.Contains("{D613FB39-5035-4043-91E2-BAB323908AF4} = {D613FB39-5035-4043-91E2-BAB323908AF4}") } | + Set-Content cppwinrt.sln + "Modified contents" + Get-Content cppwinrt.sln + + - task: CmdLine@2 + displayName: Run cppwinrt to build projection + inputs: + script: $(BuildPath)\cppwinrt.exe -in local -out $(BuildPath) -verbose + + - task: VSBuild@1 + displayName: Build test + inputs: + solution: $(Build.SourcesDirectory)\cppwinrt.sln + msbuildArgs: /t:test\$(TestProject) /m /p:CppWinRTBuildVersion=${{ parameters.BuildVersion }},clean_intermediate_files=true /bl:$(ob_outputDirectory)\output.binlog + platform: $(BuildPlatform) + configuration: ${{ parameters.BuildConfiguration }} + + - task: CmdLine@2 + displayName: Run test + inputs: + script: $(BuildPath)\$(TestExe).exe diff --git a/.pipelines/jobs/OneBranchVsix.yml b/.pipelines/jobs/OneBranchVsix.yml new file mode 100644 index 000000000..696b7e292 --- /dev/null +++ b/.pipelines/jobs/OneBranchVsix.yml @@ -0,0 +1,149 @@ +parameters: + - name: BuildConfiguration + type: string + - name: BuildVersion + type: string + - name: NugetPackageVersion + type: string + - name: OfficialBuild + type: boolean + default: false + +jobs: +- job: + pool: + type: windows + strategy: + matrix: + Standalone: + Deployment: 'Standalone' + VsVersion: 'Dev17' + VsixFilename: Microsoft.Windows.CppWinRT.$(VsVersion) + Component: + Deployment: 'Component' + VsVersion: 'Dev17' + VsixFilename: Microsoft.Windows.CppWinRT.$(VsVersion) + Dev16: + Deployment: 'Standalone' + VsVersion: 'Dev16' + VsixFilename: Microsoft.Windows.CppWinRT + + variables: + ob_outputDirectory: $(Build.SourcesDirectory)\out + ob_artifactSuffix: $(VsVersion)_$(Deployment) + + BuildFolder: $(Build.SourcesDirectory)\vsix\$(VsVersion)\bin\${{ parameters.BuildConfiguration }}\$(Deployment) + + ob_symbolsPublishing_enabled: true + ob_symbolsPublishing_symbolsFolder: '$(ob_outputDirectory)' + ob_symbolsPublishing_searchPattern: '**\*.pdb' + ob_symbolsPublishing_indexSources: true + + ob_sdl_prefast_enabled: true + ob_sdl_prefast_runDuring: 'Build' + ob_sdl_checkCompliantCompilerWarnings: true + + steps: + - task: UseDotNet@2 + continueOnError: true + inputs: + packageType: 'sdk' + version: '6.x' + performMultiLevelLookup: true + + - task: NuGetToolInstaller@1 + displayName: Use NuGet 6.0.2 + continueOnError: True + inputs: + versionSpec: 6.0.2 + + - task: NuGetCommand@2 + displayName: NuGet restore + inputs: + command: 'restore' + restoreSolution: '$(Build.SourcesDirectory)\vsix\vsix.sln' + feedsToUse: config + nugetConfigPath: NuGet.config + + - task: DownloadPipelineArtifact@2 + displayName: 'Download x86 binaries' + inputs: + artifactName: 'drop_build_x86' + targetPath: '$(Build.SourcesDirectory)\x86' + + - task: DownloadPipelineArtifact@2 + displayName: 'Download x64 binaries' + inputs: + artifactName: 'drop_build_x64' + targetPath: '$(Build.SourcesDirectory)\x64' + + - task: DownloadPipelineArtifact@2 + displayName: 'Download arm64 binaries' + inputs: + artifactName: 'drop_build_arm64' + targetPath: '$(Build.SourcesDirectory)\arm64' + + - task: DownloadPipelineArtifact@2 + displayName: 'Download NuGet' + inputs: + artifactName: 'drop_NuGet_' + targetPath: '$(Pipeline.Workspace)\nuget' + + - task: VSBuild@1 + displayName: Build VSIX + inputs: + solution: $(Build.SourcesDirectory)\vsix\vsix.sln + msbuildArgs: /t:vsix_$(VsVersion) /m /p:CppWinRTVersion=${{ parameters.BuildVersion }},NugetPackageVersion=${{ parameters.NugetPackageVersion }},clean_intermediate_files=true,Deployment=$(Deployment),NatvisDirx86=$(Build.SourcesDirectory)\x86\$(Deployment)\,NatvisDirx64=$(Build.SourcesDirectory)\x64\$(Deployment)\,NatvisDirarm64=$(Build.SourcesDirectory)\arm64\$(Deployment)\,NupkgDir=$(Pipeline.Workspace)\nuget\packages /bl:$(ob_outputDirectory)\output.binlog + platform: 'Any CPU' + configuration: ${{ parameters.BuildConfiguration }} + + - task: ExtractFiles@1 + displayName: Extract VSIX contents for signing + inputs: + archiveFilePatterns: '$(BuildFolder)\$(VsixFilename).vsix' + destinationFolder: '$(Agent.TempDirectory)\$(VsixFilename)' + overwriteExistingFiles: true + + - task: onebranch.pipeline.signing@1 + displayName: '🔒 Onebranch Signing for VSIX contents' + condition: eq(${{ parameters.OfficialBuild }}, 'true') + inputs: + command: sign + signing_profile: external_distribution + files_to_sign: '**\*.dll' + search_root: '$(Agent.TempDirectory)\$(VsixFilename)' + + - task: ArchiveFiles@2 + displayName: 'Repack signed VSIX contents' + inputs: + rootFolderOrFile: '$(Agent.TempDirectory)\$(VsixFilename)' + includeRootFolder: false + archiveFile: '$(ob_outputDirectory)\$(VsixFilename).vsix' + + - task: onebranch.pipeline.signing@1 + displayName: '🔒 Onebranch Signing for VSIX' + condition: eq(${{ parameters.OfficialBuild }}, 'true') + inputs: + command: sign + signing_profile: external_distribution + files_to_sign: '$(VsixFilename).vsix' + search_root: '$(ob_outputDirectory)' + + - task: CopyFiles@2 + displayName: Stage VSIX Manifest + inputs: + SourceFolder: '$(Build.SourcesDirectory)\vsix' + Contents: | + extension.manifest.json + overview.md + TargetFolder: '$(ob_outputDirectory)' + + - task: CopyFiles@2 + displayName: Stage VSIX json and symbols + inputs: + SourceFolder: $(Buildfolder) + Contents: | + $(VsixFilename).pdb + $(VsixFilename).json + TargetFolder: '$(ob_outputDirectory)' + diff --git a/.pipelines/sync-mirror.yml b/.pipelines/sync-mirror.yml new file mode 100644 index 000000000..f7be6296d --- /dev/null +++ b/.pipelines/sync-mirror.yml @@ -0,0 +1,67 @@ +# Sync branches in a mirror repository to a base repo by running this pipeline +# from the mirror repo, and supplying the base repo as a parameter +name: $(BuildDefinitionName)_$(date:yyMMdd)$(rev:.r) + +parameters: + - name: "SourceToTargetBranches" + type: object + default: + master: master + - name: "SourceRepository" + type: string + default: "https://github.com/microsoft/cppwinrt.git" + +resources: + repositories: + - repository: 1ESPipelineTemplates + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release +extends: + template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates + parameters: + pool: + name: Azure-Pipelines-1ESPT-ExDShared + image: windows-2022 + os: windows + customBuildTags: + - ES365AIMigrationTooling + stages: + - stage: stage + jobs: + - job: SyncMirror + strategy: + matrix: + ${{ each branches in parameters.SourceToTargetBranches }}: + ${{ branches.key }}: + SourceBranch: ${{ branches.key }} + TargetBranch: ${{ branches.value }} + dependsOn: [] + steps: + - checkout: self + persistCredentials: true + + - task: PowerShell@2 + inputs: + targetType: 'inline' + script: | + Write-Host "SourceBranch " + "$(SourceBranch)" + Write-Host "TargetBranch " + "$(TargetBranch)" + + $repo = "${{ parameters.SourceRepository }}" + git remote add sourcerepo $repo + git remote + + $target = "$(TargetBranch)" + git fetch origin $target + git checkout $target + git pull origin $target + + $source = "$(SourceBranch)" + git fetch sourcerepo $source + git pull sourcerepo $source + + - task: CmdLine@2 + inputs: + script: | + git push diff --git a/.pipelines/variables/OneBranchVariables.yml b/.pipelines/variables/OneBranchVariables.yml new file mode 100644 index 000000000..ff7a98adb --- /dev/null +++ b/.pipelines/variables/OneBranchVariables.yml @@ -0,0 +1,16 @@ +parameters: +- name: 'debug' + displayName: 'Enable debug output' + type: boolean + default: false + +variables: + system.debug: ${{ parameters.debug }} + ENABLE_PRS_DELAYSIGN: 1 + NUGET_XMLDOC_MODE: none + + # Docker image which is used to build the project https://aka.ms/obpipelines/containers + WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2022/vse2022:latest' + + Codeql.Enabled: true # CodeQL once every 3 days on the default branch for all languages its applicable to in that pipeline. + GDN_USE_DOTNET: true \ No newline at end of file diff --git a/.pipelines/variables/version.yml b/.pipelines/variables/version.yml new file mode 100644 index 000000000..46a535ee0 --- /dev/null +++ b/.pipelines/variables/version.yml @@ -0,0 +1,17 @@ +parameters: + - name: OfficialBuild + type: boolean + default: false + +variables: + MajorVersion: "3" + MinorVersion: "0" + VersionDate: $[format('{0:yyMMdd}', pipeline.startTime)] + VersionCounter: $[counter(variables['VersionDate'], 1)] + BuildVersion: $(MajorVersion).$(MinorVersion).$(VersionDate).$(VersionCounter) + PatchVersion: $(VersionDate)$(VersionCounter) + + ${{ if eq(parameters.OfficialBuild, true) }}: + NugetPackageVersion: $(BuildVersion) + ${{ else }}: + NugetPackageVersion: $(BuildVersion)-unofficial diff --git a/.runsettings b/.runsettings new file mode 100644 index 000000000..5f10e44f8 --- /dev/null +++ b/.runsettings @@ -0,0 +1,24 @@ + + + + .\TestResults + 60000 + true + + + + + + + Single + (?i:Test) + true + on + true + Verbose + AdditionalInfo + ShortInfo + , + 20000 + + \ No newline at end of file diff --git a/10.0.14393.0/Samples/AsyncReader/AsyncReader.sln b/10.0.14393.0/Samples/AsyncReader/AsyncReader.sln deleted file mode 100644 index 41ff13743..000000000 --- a/10.0.14393.0/Samples/AsyncReader/AsyncReader.sln +++ /dev/null @@ -1,28 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AsyncReader", "AsyncReader.vcxproj", "{079790FD-97A0-428D-BF8D-83D24C1D6A56}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x64.ActiveCfg = Debug|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x64.Build.0 = Debug|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x86.ActiveCfg = Debug|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x86.Build.0 = Debug|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x64.ActiveCfg = Release|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x64.Build.0 = Release|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x86.ActiveCfg = Release|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/10.0.14393.0/Samples/AsyncReader/AsyncReader.vcxproj b/10.0.14393.0/Samples/AsyncReader/AsyncReader.vcxproj deleted file mode 100644 index 79c42d214..000000000 --- a/10.0.14393.0/Samples/AsyncReader/AsyncReader.vcxproj +++ /dev/null @@ -1,206 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {079790FD-97A0-428D-BF8D-83D24C1D6A56} - Win32Proj - Console - 10.0.14393.0 - - - - Application - true - v140 - Unicode - x64 - - - Application - true - v140 - Unicode - x64 - - - Application - false - v140 - true - Unicode - x64 - - - Application - false - v140 - true - Unicode - x64 - - - - - - - - - - - - - - - - - - - - - true - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - true - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - false - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - false - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - - Use - Level4 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - ProgramDatabase - Default - 4702 - - - Console - true - - - copy message.txt $(OutDir) - - - - - Use - Level4 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - ProgramDatabase - Default - 4702 - - - Console - true - - - copy message.txt $(OutDir) - - - - - Level4 - Use - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4702 - - - Console - true - true - true - - - copy message.txt $(OutDir) - - - - - Level4 - Use - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4702 - - - Console - true - true - true - - - copy message.txt $(OutDir) - - - - - - Create - Create - Create - Create - - - - - - - - - - - - \ No newline at end of file diff --git a/10.0.14393.0/Samples/AsyncReader/Main.cpp b/10.0.14393.0/Samples/AsyncReader/Main.cpp deleted file mode 100644 index efcf1a3b7..000000000 --- a/10.0.14393.0/Samples/AsyncReader/Main.cpp +++ /dev/null @@ -1,95 +0,0 @@ -#include "pch.h" - -using namespace winrt; -using namespace Windows::Foundation; - -struct file -{ - file(wchar_t const * const filename) : - m_handle(create(filename)), - m_io(get(m_handle)) - { - } - - auto read(uint64_t const offset, void * const buffer, size_t const size) - { - return m_io.start([=, handle = get(m_handle)](OVERLAPPED & overlapped) - { - overlapped.Offset = static_cast(offset); - overlapped.OffsetHigh = offset >> 32; - - if (!ReadFile(handle, buffer, static_cast(size), nullptr, &overlapped)) - { - const DWORD error = GetLastError(); - - if (error != ERROR_IO_PENDING) - { - throw hresult_error(HRESULT_FROM_WIN32(error)); - } - } - }); - } - -private: - - struct file_traits - { - using type = HANDLE; - - static type invalid() noexcept - { - return INVALID_HANDLE_VALUE; - } - - static void close(type value) noexcept - { - WINRT_VERIFY(CloseHandle(value)); - } - }; - - using file_handle = handle; - - static file_handle create(wchar_t const * const filename) - { - file_handle handle = CreateFile(filename, - GENERIC_READ, - 0, - nullptr, - OPEN_EXISTING, - FILE_FLAG_OVERLAPPED, - nullptr); - - if (!handle) - { - throw_last_error(); - } - - return handle; - } - - file_handle m_handle; - resumable_io m_io; -}; - -IAsyncAction sample() -{ - file reader(L"message.txt"); - - std::array buffer; - uint64_t offset = 0; - - while (uint32_t const bytes = co_await reader.read(offset, buffer.data(), buffer.size())) - { - printf("%.*s", bytes, buffer.data()); - offset += bytes; - } - - printf("\n"); -} - -int main() -{ - initialize(); - - sample().get(); -} diff --git a/10.0.14393.0/Samples/AsyncReader/message.txt b/10.0.14393.0/Samples/AsyncReader/message.txt deleted file mode 100644 index e463eb2c3..000000000 --- a/10.0.14393.0/Samples/AsyncReader/message.txt +++ /dev/null @@ -1,3 +0,0 @@ -https://github.com/microsoft/cppwinrt - -C++/WinRT is a standard C++ language projection for the Windows Runtime implemented solely in header files. It allows you to both author and consume Windows Runtime APIs using any standards-compliant C++ compiler. C++/WinRT is designed to provide C++ developers with first-class access to the modern Windows API. diff --git a/10.0.14393.0/Samples/AsyncReader/pch.h b/10.0.14393.0/Samples/AsyncReader/pch.h deleted file mode 100644 index febe8e023..000000000 --- a/10.0.14393.0/Samples/AsyncReader/pch.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#pragma comment(lib, "windowsapp") - -#include "winrt/base.h" diff --git a/10.0.14393.0/Samples/Blocks/App.cpp b/10.0.14393.0/Samples/Blocks/App.cpp deleted file mode 100644 index 9dcea7482..000000000 --- a/10.0.14393.0/Samples/Blocks/App.cpp +++ /dev/null @@ -1,151 +0,0 @@ -#include "pch.h" - -using namespace winrt; - -using namespace Windows; -using namespace Windows::ApplicationModel::Core; -using namespace Windows::Foundation::Numerics; -using namespace Windows::UI; -using namespace Windows::UI::Core; -using namespace Windows::UI::Composition; - -struct App : implements -{ - CompositionTarget m_target{ nullptr }; - VisualCollection m_visuals{ nullptr }; - Visual m_selected{ nullptr }; - float2 m_offset{}; - - IFrameworkView CreateView() - { - return *this; - } - - void Initialize(CoreApplicationView const &) - { - } - - void Load(hstring_ref) - { - } - - void Uninitialize() - { - } - - void Run() - { - CoreWindow window = CoreWindow::GetForCurrentThread(); - window.Activate(); - - CoreDispatcher dispatcher = window.Dispatcher(); - dispatcher.ProcessEvents(CoreProcessEventsOption::ProcessUntilQuit); - } - - void SetWindow(CoreWindow const & window) - { - Compositor compositor; - ContainerVisual root = compositor.CreateContainerVisual(); - m_target = compositor.CreateTargetForCurrentView(); - m_target.Root(root); - m_visuals = root.Children(); - - window.PointerPressed({ this, &App::OnPointerPressed }); - window.PointerMoved({ this, &App::OnPointerMoved }); - - window.PointerReleased([&](auto && ...) - { - m_selected = nullptr; - }); - } - - void OnPointerPressed(IInspectable const &, PointerEventArgs const & args) - { - float2 const point = args.CurrentPoint().Position(); - - for (Visual visual : m_visuals) - { - float3 const offset = visual.Offset(); - float2 const size = visual.Size(); - - if (point.x >= offset.x && - point.x < offset.x + size.x && - point.y >= offset.y && - point.y < offset.y + size.y) - { - m_selected = visual; - m_offset.x = offset.x - point.x; - m_offset.y = offset.y - point.y; - } - } - - if (m_selected) - { - m_visuals.Remove(m_selected); - m_visuals.InsertAtTop(m_selected); - } - else - { - AddVisual(point); - } - } - - void OnPointerMoved(IInspectable const &, PointerEventArgs const & args) - { - if (m_selected) - { - float2 const point = args.CurrentPoint().Position(); - - m_selected.Offset( - { - point.x + m_offset.x, - point.y + m_offset.y, - 0.0f - }); - } - } - - void AddVisual(float2 const point) - { - Compositor compositor = m_visuals.Compositor(); - SpriteVisual visual = compositor.CreateSpriteVisual(); - - static Color colors[] = - { - { 0xDC, 0x5B, 0x9B, 0xD5 }, - { 0xDC, 0xED, 0x7D, 0x31 }, - { 0xDC, 0x70, 0xAD, 0x47 }, - { 0xDC, 0xFF, 0xC0, 0x00 } - }; - - static unsigned last = 0; - unsigned const next = ++last % _countof(colors); - visual.Brush(compositor.CreateColorBrush(colors[next])); - - float const BlockSize = 100.0f; - - visual.Size( - { - BlockSize, - BlockSize - }); - - visual.Offset( - { - point.x - BlockSize / 2.0f, - point.y - BlockSize / 2.0f, - 0.0f, - }); - - m_visuals.InsertAtTop(visual); - - m_selected = visual; - m_offset.x = -BlockSize / 2.0f; - m_offset.y = -BlockSize / 2.0f; - } -}; - -int __stdcall wWinMain(HINSTANCE, HINSTANCE, PWSTR, int) -{ - CoreApplication::Run(App()); -} diff --git a/10.0.14393.0/Samples/Blocks/App.winmd b/10.0.14393.0/Samples/Blocks/App.winmd deleted file mode 100644 index af05904ab..000000000 Binary files a/10.0.14393.0/Samples/Blocks/App.winmd and /dev/null differ diff --git a/10.0.14393.0/Samples/Blocks/Assets/Logo.scale-100.png b/10.0.14393.0/Samples/Blocks/Assets/Logo.scale-100.png deleted file mode 100644 index e26771cb3..000000000 Binary files a/10.0.14393.0/Samples/Blocks/Assets/Logo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/Blocks/Assets/SmallLogo.scale-100.png b/10.0.14393.0/Samples/Blocks/Assets/SmallLogo.scale-100.png deleted file mode 100644 index 1eb0d9d52..000000000 Binary files a/10.0.14393.0/Samples/Blocks/Assets/SmallLogo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/Blocks/Assets/SplashScreen.scale-100.png b/10.0.14393.0/Samples/Blocks/Assets/SplashScreen.scale-100.png deleted file mode 100644 index c951e031b..000000000 Binary files a/10.0.14393.0/Samples/Blocks/Assets/SplashScreen.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/Blocks/Assets/StoreLogo.scale-100.png b/10.0.14393.0/Samples/Blocks/Assets/StoreLogo.scale-100.png deleted file mode 100644 index dcb672712..000000000 Binary files a/10.0.14393.0/Samples/Blocks/Assets/StoreLogo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/Blocks/Assets/WideLogo.scale-100.png b/10.0.14393.0/Samples/Blocks/Assets/WideLogo.scale-100.png deleted file mode 100644 index 9dd94b628..000000000 Binary files a/10.0.14393.0/Samples/Blocks/Assets/WideLogo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/Blocks/Blocks.sln b/10.0.14393.0/Samples/Blocks/Blocks.sln deleted file mode 100644 index 9b17135b7..000000000 --- a/10.0.14393.0/Samples/Blocks/Blocks.sln +++ /dev/null @@ -1,40 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Blocks", "Blocks.vcxproj", "{1F93D330-56FC-4497-BBDE-1807301B5C79}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|ARM = Debug|ARM - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|ARM = Release|ARM - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|ARM.ActiveCfg = Debug|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|ARM.Build.0 = Debug|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|ARM.Deploy.0 = Debug|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x64.ActiveCfg = Debug|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x64.Build.0 = Debug|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x64.Deploy.0 = Debug|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x86.ActiveCfg = Debug|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x86.Build.0 = Debug|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x86.Deploy.0 = Debug|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|ARM.ActiveCfg = Release|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|ARM.Build.0 = Release|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|ARM.Deploy.0 = Release|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x64.ActiveCfg = Release|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x64.Build.0 = Release|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x64.Deploy.0 = Release|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x86.ActiveCfg = Release|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x86.Build.0 = Release|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x86.Deploy.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/10.0.14393.0/Samples/Blocks/Blocks.vcxproj b/10.0.14393.0/Samples/Blocks/Blocks.vcxproj deleted file mode 100644 index 12a62d54b..000000000 --- a/10.0.14393.0/Samples/Blocks/Blocks.vcxproj +++ /dev/null @@ -1,297 +0,0 @@ - - - - {1f93d330-56fc-4497-bbde-1807301b5c79} - App - en-US - 14.0 - true - Windows Store - 8.2 - 10.0.10166.0 - 10.0.10166.0 - 10.0.14393.0 - 10.0.14393.0 - - - - - Debug - ARM - - - Debug - Win32 - - - Debug - x64 - - - Release - ARM - - - Release - Win32 - - - Release - x64 - - - - Application - true - v140 - x64 - - - Application - true - v140 - x64 - - - Application - true - v140 - x64 - - - Application - false - true - v140 - x64 - - - Application - false - true - v140 - x64 - - - Application - false - true - v140 - x64 - - - - - - - - - - - - - - - - - - - - - - - - - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - - - - Designer - - - - - - - - - - - - - Create - Create - Create - Create - Create - Create - - - - - - \ No newline at end of file diff --git a/10.0.14393.0/Samples/Blocks/Package.appxmanifest b/10.0.14393.0/Samples/Blocks/Package.appxmanifest deleted file mode 100644 index 9b8bb4a45..000000000 --- a/10.0.14393.0/Samples/Blocks/Package.appxmanifest +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - App - Microsoft - Assets\StoreLogo.png - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/10.0.14393.0/Samples/Blocks/pch.h b/10.0.14393.0/Samples/Blocks/pch.h deleted file mode 100644 index 00c293fc3..000000000 --- a/10.0.14393.0/Samples/Blocks/pch.h +++ /dev/null @@ -1,8 +0,0 @@ -#pragma once - -#pragma comment(lib, "windowsapp") - -#include "winrt/Windows.ApplicationModel.Core.h" -#include "winrt/Windows.UI.Core.h" -#include "winrt/Windows.UI.Composition.h" -#include "winrt/Windows.UI.Input.h" diff --git a/10.0.14393.0/Samples/CL/build.bat b/10.0.14393.0/Samples/CL/build.bat deleted file mode 100644 index ac5df9ff2..000000000 --- a/10.0.14393.0/Samples/CL/build.bat +++ /dev/null @@ -1 +0,0 @@ -cl main.cpp /I ..\.. /EHsc /std:c++latest /d1permissive- diff --git a/10.0.14393.0/Samples/CL/main.cpp b/10.0.14393.0/Samples/CL/main.cpp deleted file mode 100644 index 9b33abde5..000000000 --- a/10.0.14393.0/Samples/CL/main.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#pragma comment(lib, "windowsapp") - -#include "winrt\base.h" - -using namespace winrt; - -int main() -{ - initialize(); -} diff --git a/10.0.14393.0/Samples/JustCoroutines/JustCoroutines.sln b/10.0.14393.0/Samples/JustCoroutines/JustCoroutines.sln deleted file mode 100644 index b22a61c3e..000000000 --- a/10.0.14393.0/Samples/JustCoroutines/JustCoroutines.sln +++ /dev/null @@ -1,28 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "JustCoroutines", "JustCoroutines.vcxproj", "{079790FD-97A0-428D-BF8D-83D24C1D6A56}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x64.ActiveCfg = Debug|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x64.Build.0 = Debug|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x86.ActiveCfg = Debug|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x86.Build.0 = Debug|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x64.ActiveCfg = Release|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x64.Build.0 = Release|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x86.ActiveCfg = Release|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/10.0.14393.0/Samples/JustCoroutines/JustCoroutines.vcxproj b/10.0.14393.0/Samples/JustCoroutines/JustCoroutines.vcxproj deleted file mode 100644 index 6f285a1f5..000000000 --- a/10.0.14393.0/Samples/JustCoroutines/JustCoroutines.vcxproj +++ /dev/null @@ -1,191 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {079790FD-97A0-428D-BF8D-83D24C1D6A56} - Win32Proj - Console - 10.0.14393.0 - - - - Application - true - v140 - Unicode - x64 - - - Application - true - v140 - Unicode - x64 - - - Application - false - v140 - true - Unicode - x64 - - - Application - false - v140 - true - Unicode - x64 - - - - - - - - - - - - - - - - - - - - - true - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - true - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - false - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - false - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - - Use - Level4 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - ProgramDatabase - Default - 4702 - - - Console - true - - - - - Use - Level4 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - ProgramDatabase - Default - 4702 - - - Console - true - - - - - Level4 - Use - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4702 - - - Console - true - true - true - - - - - Level4 - Use - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4702 - - - Console - true - true - true - - - - - - Create - Create - Create - Create - - - - - - - - - \ No newline at end of file diff --git a/10.0.14393.0/Samples/JustCoroutines/Main.cpp b/10.0.14393.0/Samples/JustCoroutines/Main.cpp deleted file mode 100644 index 952677012..000000000 --- a/10.0.14393.0/Samples/JustCoroutines/Main.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include "pch.h" - -namespace winrt::ABI::Windows::Foundation -{ - template <> struct __declspec(uuid("3a14233f-a037-4ac0-a0ad-c4bb0bbf0111")) __declspec(novtable) AsyncActionProgressHandler : impl_AsyncActionProgressHandler {}; - template <> struct __declspec(uuid("3a14233f-a037-4ac0-a0ad-c4bb0bbf0112")) __declspec(novtable) AsyncActionWithProgressCompletedHandler : impl_AsyncActionWithProgressCompletedHandler {}; - template <> struct __declspec(uuid("3a14233f-a037-4ac0-a0ad-c4bb0bbf0113")) __declspec(novtable) AsyncOperationProgressHandler : impl_AsyncOperationProgressHandler {}; - template <> struct __declspec(uuid("3a14233f-a037-4ac0-a0ad-c4bb0bbf0114")) __declspec(novtable) AsyncOperationWithProgressCompletedHandler : impl_AsyncOperationWithProgressCompletedHandler {}; - template <> struct __declspec(uuid("3a14233f-a037-4ac0-a0ad-c4bb0bbf0115")) __declspec(novtable) AsyncOperationCompletedHandler : impl_AsyncOperationCompletedHandler {}; - template <> struct __declspec(uuid("3a14233f-a037-4ac0-a0ad-c4bb0bbf0116")) __declspec(novtable) IAsyncActionWithProgress : impl_IAsyncActionWithProgress {}; - template <> struct __declspec(uuid("3a14233f-a037-4ac0-a0ad-c4bb0bbf0117")) __declspec(novtable) IAsyncOperation : impl_IAsyncOperation {}; - template <> struct __declspec(uuid("3a14233f-a037-4ac0-a0ad-c4bb0bbf0118")) __declspec(novtable) IAsyncOperationWithProgress : impl_IAsyncOperationWithProgress {}; -} - -using namespace std::chrono; -using namespace winrt; -using namespace Windows::Foundation; - -IAsyncOperationWithProgress Produce() -{ - co_await resume_background(); - - auto progress = co_await get_progress_token; - - int total = 0; - - for (int i = 0; i != 5; ++i) - { - progress(i); - total += i; - co_await 500ms; - } - - return total; -} - -IAsyncAction Consume() -{ - auto async = Produce(); - - async.Progress([](auto const & /*sender*/, int args) - { - printf("progress %d\n", args); - }); - - printf("total %d\n", co_await async); -} - -int main() -{ - initialize(); - - Consume().get(); -} diff --git a/10.0.14393.0/Samples/JustCoroutines/pch.h b/10.0.14393.0/Samples/JustCoroutines/pch.h deleted file mode 100644 index f0b016408..000000000 --- a/10.0.14393.0/Samples/JustCoroutines/pch.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#pragma comment(lib, "windowsapp") - -#include "winrt/base.h" diff --git a/10.0.14393.0/Samples/Ocr/Main.cpp b/10.0.14393.0/Samples/Ocr/Main.cpp deleted file mode 100644 index 1bb594dfa..000000000 --- a/10.0.14393.0/Samples/Ocr/Main.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include "pch.h" - -using namespace winrt; -using namespace std::chrono; - -using namespace Windows::Foundation; -using namespace Windows::Storage; -using namespace Windows::Storage::Streams; -using namespace Windows::Graphics::Imaging; -using namespace Windows::Media::Ocr; - -hstring MessagePath() -{ - wchar_t buffer[1024]{}; - GetCurrentDirectory(_countof(buffer), buffer); - check_hresult(PathCchAppendEx(buffer, _countof(buffer), L"message.png", PATHCCH_ALLOW_LONG_PATHS)); - return buffer; -} - -IAsyncOperation AsyncSample() -{ - StorageFile file = co_await StorageFile::GetFileFromPathAsync(MessagePath()); - IRandomAccessStream stream = co_await file.OpenAsync(FileAccessMode::Read); - - BitmapDecoder decoder = co_await BitmapDecoder::CreateAsync(stream); - SoftwareBitmap bitmap = co_await decoder.GetSoftwareBitmapAsync(); - - OcrEngine engine = OcrEngine::TryCreateFromUserProfileLanguages(); - OcrResult result = co_await engine.RecognizeAsync(bitmap); - return result.Text(); -} - -int main() -{ - initialize(); - - try - { - printf("%ls\n", AsyncSample().get().c_str()); - } - catch (hresult_error const & e) - { - printf("hresult_error: (0x%8X) %ls\n", e.code(), e.message().c_str()); - } -} diff --git a/10.0.14393.0/Samples/Ocr/Ocr.sln b/10.0.14393.0/Samples/Ocr/Ocr.sln deleted file mode 100644 index 09178768e..000000000 --- a/10.0.14393.0/Samples/Ocr/Ocr.sln +++ /dev/null @@ -1,28 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ocr", "Ocr.vcxproj", "{079790FD-97A0-428D-BF8D-83D24C1D6A56}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x64.ActiveCfg = Debug|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x64.Build.0 = Debug|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x86.ActiveCfg = Debug|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x86.Build.0 = Debug|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x64.ActiveCfg = Release|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x64.Build.0 = Release|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x86.ActiveCfg = Release|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/10.0.14393.0/Samples/Ocr/Ocr.vcxproj b/10.0.14393.0/Samples/Ocr/Ocr.vcxproj deleted file mode 100644 index ce8b30d73..000000000 --- a/10.0.14393.0/Samples/Ocr/Ocr.vcxproj +++ /dev/null @@ -1,206 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {079790FD-97A0-428D-BF8D-83D24C1D6A56} - Win32Proj - Console - 10.0.14393.0 - - - - Application - true - v140 - Unicode - x64 - - - Application - true - v140 - Unicode - x64 - - - Application - false - v140 - true - Unicode - x64 - - - Application - false - v140 - true - Unicode - x64 - - - - - - - - - - - - - - - - - - - - - true - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - true - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - false - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - false - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - - Use - Level4 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - ProgramDatabase - Default - 4702 - - - Console - true - - - copy message.png $(OutDir) - - - - - Use - Level4 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - ProgramDatabase - Default - 4702 - - - Console - true - - - copy message.png $(OutDir) - - - - - Level4 - Use - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4702 - - - Console - true - true - true - - - copy message.png $(OutDir) - - - - - Level4 - Use - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4702 - - - Console - true - true - true - - - copy message.png $(OutDir) - - - - - - Create - Create - Create - Create - - - - - - - - - - - - diff --git a/10.0.14393.0/Samples/Ocr/message.png b/10.0.14393.0/Samples/Ocr/message.png deleted file mode 100644 index bdea615c2..000000000 Binary files a/10.0.14393.0/Samples/Ocr/message.png and /dev/null differ diff --git a/10.0.14393.0/Samples/Ocr/pch.h b/10.0.14393.0/Samples/Ocr/pch.h deleted file mode 100644 index 565b43076..000000000 --- a/10.0.14393.0/Samples/Ocr/pch.h +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once - -#pragma comment(lib, "windowsapp") -#pragma comment(lib, "pathcch") - -#include "winrt/Windows.Storage.Streams.h" -#include "winrt/Windows.Graphics.Imaging.h" -#include "winrt/Windows.Media.Ocr.h" -#include "winrt/Windows.Networking.Sockets.h" - -#include diff --git a/10.0.14393.0/Samples/Syndication/Main.cpp b/10.0.14393.0/Samples/Syndication/Main.cpp deleted file mode 100644 index ccc543610..000000000 --- a/10.0.14393.0/Samples/Syndication/Main.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "pch.h" - -using namespace winrt; - -using namespace Windows::Foundation; -using namespace Windows::Web::Syndication; - -IAsyncAction Sample() -{ - Uri uri(L"http://kennykerr.ca/feed"); - SyndicationClient client; - SyndicationFeed feed = co_await client.RetrieveFeedAsync(uri); - - for (SyndicationItem item : feed.Items()) - { - hstring title = item.Title().Text(); - - printf("%ls\n", title.c_str()); - } -} - -int main() -{ - initialize(); - - Sample().get(); -} diff --git a/10.0.14393.0/Samples/Syndication/Syndication.sln b/10.0.14393.0/Samples/Syndication/Syndication.sln deleted file mode 100644 index 0c58937ed..000000000 --- a/10.0.14393.0/Samples/Syndication/Syndication.sln +++ /dev/null @@ -1,28 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Syndication", "Syndication.vcxproj", "{079790FD-97A0-428D-BF8D-83D24C1D6A56}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x64.ActiveCfg = Debug|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x64.Build.0 = Debug|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x86.ActiveCfg = Debug|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Debug|x86.Build.0 = Debug|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x64.ActiveCfg = Release|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x64.Build.0 = Release|x64 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x86.ActiveCfg = Release|Win32 - {079790FD-97A0-428D-BF8D-83D24C1D6A56}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/10.0.14393.0/Samples/Syndication/Syndication.vcxproj b/10.0.14393.0/Samples/Syndication/Syndication.vcxproj deleted file mode 100644 index 19f795dee..000000000 --- a/10.0.14393.0/Samples/Syndication/Syndication.vcxproj +++ /dev/null @@ -1,191 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {079790FD-97A0-428D-BF8D-83D24C1D6A56} - Win32Proj - Console - 10.0.14393.0 - - - - Application - true - v140 - Unicode - x64 - - - Application - true - v140 - Unicode - x64 - - - Application - false - v140 - true - Unicode - x64 - - - Application - false - v140 - true - Unicode - x64 - - - - - - - - - - - - - - - - - - - - - true - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - true - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - false - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - false - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - - Use - Level4 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - ProgramDatabase - Default - 4702 - - - Console - true - - - - - Use - Level4 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - ProgramDatabase - Default - 4702 - - - Console - true - - - - - Level4 - Use - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4702 - - - Console - true - true - true - - - - - Level4 - Use - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - false - pch.h - ..\.. - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4702 - - - Console - true - true - true - - - - - - Create - Create - Create - Create - - - - - - - - - diff --git a/10.0.14393.0/Samples/Syndication/pch.h b/10.0.14393.0/Samples/Syndication/pch.h deleted file mode 100644 index fbb976297..000000000 --- a/10.0.14393.0/Samples/Syndication/pch.h +++ /dev/null @@ -1,6 +0,0 @@ -#pragma once - -#pragma comment(lib, "windowsapp") - -#include "winrt/Windows.Foundation.h" -#include "winrt/Windows.Web.Syndication.h" diff --git a/10.0.14393.0/Samples/Video/App.cpp b/10.0.14393.0/Samples/Video/App.cpp deleted file mode 100644 index 3d1ecb76a..000000000 --- a/10.0.14393.0/Samples/Video/App.cpp +++ /dev/null @@ -1,97 +0,0 @@ -#include "pch.h" - -using namespace winrt; - -using namespace Windows::ApplicationModel::Core; -using namespace Windows::Foundation; -using namespace Windows::UI::Core; -using namespace Windows::UI::Composition; -using namespace Windows::Media::Core; -using namespace Windows::Media::Playback; -using namespace Windows::Storage; -using namespace Windows::Storage::Pickers; - -struct App : implements -{ - IFrameworkView CreateView() - { - return *this; - } - - void Initialize(CoreApplicationView const &) - { - } - - void Load(hstring_ref) - { - } - - void Uninitialize() - { - } - - void Run() - { - CoreWindow window = CoreWindow::GetForCurrentThread(); - window.Activate(); - - CoreDispatcher dispatcher = window.Dispatcher(); - dispatcher.ProcessEvents(CoreProcessEventsOption::ProcessUntilQuit); - } - - void SetWindow(CoreWindow const & window) - { - m_activated = window.Activated(auto_revoke, { this, &App::OnActivated }); - } - - fire_and_forget OnActivated(CoreWindow window, WindowActivatedEventArgs) - { - m_activated.revoke(); - - Compositor compositor; - SpriteVisual visual = compositor.CreateSpriteVisual(); - Rect bounds = window.Bounds(); - visual.Size({ bounds.Width, bounds.Height }); - m_target = compositor.CreateTargetForCurrentView(); - m_target.Root(visual); - - FileOpenPicker picker; - picker.SuggestedStartLocation(PickerLocationId::VideosLibrary); - picker.FileTypeFilter().Append(L".mp4"); - StorageFile file = await picker.PickSingleFileAsync(); - - if (!file) - { - CoreApplication::Exit(); - return; - } - - MediaSource source = MediaSource::CreateFromStorageFile(file); - MediaPlayer player; - player.Source(MediaPlaybackItem(source)); - MediaPlayerSurface surface = player.GetSurface(compositor); - visual.Brush(compositor.CreateSurfaceBrush(surface.CompositionSurface())); - player.Play(); - - window.PointerPressed([=](auto && ...) - { - static bool playing = true; - playing = !playing; - - playing ? player.Play() : player.Pause(); - }); - - window.SizeChanged([=](auto &&, WindowSizeChangedEventArgs const & args) - { - visual.Size(args.Size()); - }); - } - - CoreWindow::Activated_revoker m_activated; - CompositionTarget m_target{ nullptr }; -}; - -int __stdcall wWinMain(HINSTANCE, HINSTANCE, PWSTR, int) -{ - CoreApplication::Run(App()); -} diff --git a/10.0.14393.0/Samples/Video/App.winmd b/10.0.14393.0/Samples/Video/App.winmd deleted file mode 100644 index af05904ab..000000000 Binary files a/10.0.14393.0/Samples/Video/App.winmd and /dev/null differ diff --git a/10.0.14393.0/Samples/Video/Assets/Logo.scale-100.png b/10.0.14393.0/Samples/Video/Assets/Logo.scale-100.png deleted file mode 100644 index e26771cb3..000000000 Binary files a/10.0.14393.0/Samples/Video/Assets/Logo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/Video/Assets/SmallLogo.scale-100.png b/10.0.14393.0/Samples/Video/Assets/SmallLogo.scale-100.png deleted file mode 100644 index 1eb0d9d52..000000000 Binary files a/10.0.14393.0/Samples/Video/Assets/SmallLogo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/Video/Assets/SplashScreen.scale-100.png b/10.0.14393.0/Samples/Video/Assets/SplashScreen.scale-100.png deleted file mode 100644 index c951e031b..000000000 Binary files a/10.0.14393.0/Samples/Video/Assets/SplashScreen.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/Video/Assets/StoreLogo.scale-100.png b/10.0.14393.0/Samples/Video/Assets/StoreLogo.scale-100.png deleted file mode 100644 index dcb672712..000000000 Binary files a/10.0.14393.0/Samples/Video/Assets/StoreLogo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/Video/Assets/WideLogo.scale-100.png b/10.0.14393.0/Samples/Video/Assets/WideLogo.scale-100.png deleted file mode 100644 index 9dd94b628..000000000 Binary files a/10.0.14393.0/Samples/Video/Assets/WideLogo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/Video/Package.appxmanifest b/10.0.14393.0/Samples/Video/Package.appxmanifest deleted file mode 100644 index fb76cdf07..000000000 --- a/10.0.14393.0/Samples/Video/Package.appxmanifest +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - App - Microsoft - Assets\StoreLogo.png - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/10.0.14393.0/Samples/Video/Video.sln b/10.0.14393.0/Samples/Video/Video.sln deleted file mode 100644 index 2131e440f..000000000 --- a/10.0.14393.0/Samples/Video/Video.sln +++ /dev/null @@ -1,40 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Video", "Video.vcxproj", "{1F93D330-56FC-4497-BBDE-1807301B5C79}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|ARM = Debug|ARM - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|ARM = Release|ARM - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|ARM.ActiveCfg = Debug|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|ARM.Build.0 = Debug|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|ARM.Deploy.0 = Debug|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x64.ActiveCfg = Debug|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x64.Build.0 = Debug|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x64.Deploy.0 = Debug|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x86.ActiveCfg = Debug|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x86.Build.0 = Debug|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x86.Deploy.0 = Debug|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|ARM.ActiveCfg = Release|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|ARM.Build.0 = Release|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|ARM.Deploy.0 = Release|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x64.ActiveCfg = Release|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x64.Build.0 = Release|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x64.Deploy.0 = Release|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x86.ActiveCfg = Release|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x86.Build.0 = Release|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x86.Deploy.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/10.0.14393.0/Samples/Video/Video.vcxproj b/10.0.14393.0/Samples/Video/Video.vcxproj deleted file mode 100644 index 383aea863..000000000 --- a/10.0.14393.0/Samples/Video/Video.vcxproj +++ /dev/null @@ -1,297 +0,0 @@ - - - - {1f93d330-56fc-4497-bbde-1807301b5c79} - App - en-US - 14.0 - true - Windows Store - 8.2 - 10.0.10166.0 - 10.0.10166.0 - 10.0.14393.0 - 10.0.14393.0 - - - - - Debug - ARM - - - Debug - Win32 - - - Debug - x64 - - - Release - ARM - - - Release - Win32 - - - Release - x64 - - - - Application - true - v140 - x64 - - - Application - true - v140 - x64 - - - Application - true - v140 - x64 - - - Application - false - true - v140 - x64 - - - Application - false - true - v140 - x64 - - - Application - false - true - v140 - x64 - - - - - - - - - - - - - - - - - - - - - - - - - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- %(AdditionalOptions) - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - - - - Designer - - - - - - - - - - - - - Create - Create - Create - Create - Create - Create - - - - - - \ No newline at end of file diff --git a/10.0.14393.0/Samples/Video/pch.h b/10.0.14393.0/Samples/Video/pch.h deleted file mode 100644 index de146110a..000000000 --- a/10.0.14393.0/Samples/Video/pch.h +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#pragma comment(lib, "windowsapp") - -#include "winrt/Windows.ApplicationModel.Core.h" -#include "winrt/Windows.Foundation.h" -#include "winrt/Windows.UI.Core.h" -#include "winrt/Windows.UI.Composition.h" -#include "winrt/Windows.Media.Core.h" -#include "winrt/Windows.Media.Playback.h" -#include "winrt/Windows.Storage.Pickers.h" -#include "winrt/Windows.Graphics.Imaging.h" diff --git a/10.0.14393.0/Samples/XamlCode/App.cpp b/10.0.14393.0/Samples/XamlCode/App.cpp deleted file mode 100644 index 190a74fca..000000000 --- a/10.0.14393.0/Samples/XamlCode/App.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include "pch.h" - -using namespace winrt; - -using namespace Windows::ApplicationModel::Activation; -using namespace Windows::Foundation; -using namespace Windows::UI; -using namespace Windows::UI::Xaml; -using namespace Windows::UI::Xaml::Controls; -using namespace Windows::UI::Xaml::Media; -using namespace Windows::Storage; -using namespace Windows::Storage::Streams; -using namespace Windows::Graphics::Imaging; -using namespace Windows::Media::Ocr; -using namespace Windows::Storage::Pickers; - -struct App : ApplicationT -{ - void OnLaunched(LaunchActivatedEventArgs const &) - { - TextBlock block; - - block.FontFamily(FontFamily(L"Segoe UI Semibold")); - block.FontSize(72.0); - block.Foreground(SolidColorBrush(Colors::Orange())); - block.VerticalAlignment(VerticalAlignment::Center); - block.TextAlignment(TextAlignment::Center); - block.TextWrapping(TextWrapping::Wrap); - - Window window = Window::Current(); - window.Content(block); - window.Activate(); - - Async(block); - } - - fire_and_forget Async(TextBlock block) - { - FileOpenPicker picker; - picker.FileTypeFilter().Append(L".png"); - picker.SuggestedStartLocation(PickerLocationId::PicturesLibrary); - auto file = co_await picker.PickSingleFileAsync(); - - if (file == nullptr) - { - return; - } - - thread_context ui_thread; - co_await resume_background(); - - auto stream = co_await file.OpenAsync(FileAccessMode::Read); - auto decoder = co_await BitmapDecoder::CreateAsync(stream); - auto bitmap = co_await decoder.GetSoftwareBitmapAsync(); - auto engine = OcrEngine::TryCreateFromUserProfileLanguages(); - auto result = co_await engine.RecognizeAsync(bitmap); - - co_await ui_thread; - block.Text(result.Text()); - } -}; - -int __stdcall wWinMain(HINSTANCE, HINSTANCE, PWSTR, int) -{ - Application::Start([](auto &&) { make(); }); -} diff --git a/10.0.14393.0/Samples/XamlCode/App.winmd b/10.0.14393.0/Samples/XamlCode/App.winmd deleted file mode 100644 index af05904ab..000000000 Binary files a/10.0.14393.0/Samples/XamlCode/App.winmd and /dev/null differ diff --git a/10.0.14393.0/Samples/XamlCode/Assets/Logo.scale-100.png b/10.0.14393.0/Samples/XamlCode/Assets/Logo.scale-100.png deleted file mode 100644 index e26771cb3..000000000 Binary files a/10.0.14393.0/Samples/XamlCode/Assets/Logo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/XamlCode/Assets/SmallLogo.scale-100.png b/10.0.14393.0/Samples/XamlCode/Assets/SmallLogo.scale-100.png deleted file mode 100644 index 1eb0d9d52..000000000 Binary files a/10.0.14393.0/Samples/XamlCode/Assets/SmallLogo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/XamlCode/Assets/SplashScreen.scale-100.png b/10.0.14393.0/Samples/XamlCode/Assets/SplashScreen.scale-100.png deleted file mode 100644 index c951e031b..000000000 Binary files a/10.0.14393.0/Samples/XamlCode/Assets/SplashScreen.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/XamlCode/Assets/StoreLogo.scale-100.png b/10.0.14393.0/Samples/XamlCode/Assets/StoreLogo.scale-100.png deleted file mode 100644 index dcb672712..000000000 Binary files a/10.0.14393.0/Samples/XamlCode/Assets/StoreLogo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/XamlCode/Assets/WideLogo.scale-100.png b/10.0.14393.0/Samples/XamlCode/Assets/WideLogo.scale-100.png deleted file mode 100644 index 9dd94b628..000000000 Binary files a/10.0.14393.0/Samples/XamlCode/Assets/WideLogo.scale-100.png and /dev/null differ diff --git a/10.0.14393.0/Samples/XamlCode/Message.png b/10.0.14393.0/Samples/XamlCode/Message.png deleted file mode 100644 index 88bb10e72..000000000 Binary files a/10.0.14393.0/Samples/XamlCode/Message.png and /dev/null differ diff --git a/10.0.14393.0/Samples/XamlCode/Package.appxmanifest b/10.0.14393.0/Samples/XamlCode/Package.appxmanifest deleted file mode 100644 index bf6c1048d..000000000 --- a/10.0.14393.0/Samples/XamlCode/Package.appxmanifest +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - App - Microsoft - Assets\StoreLogo.png - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/10.0.14393.0/Samples/XamlCode/XamlCode.sln b/10.0.14393.0/Samples/XamlCode/XamlCode.sln deleted file mode 100644 index cc4068d30..000000000 --- a/10.0.14393.0/Samples/XamlCode/XamlCode.sln +++ /dev/null @@ -1,40 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "XamlCode", "XamlCode.vcxproj", "{1F93D330-56FC-4497-BBDE-1807301B5C79}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|ARM = Debug|ARM - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|ARM = Release|ARM - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|ARM.ActiveCfg = Debug|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|ARM.Build.0 = Debug|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|ARM.Deploy.0 = Debug|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x64.ActiveCfg = Debug|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x64.Build.0 = Debug|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x64.Deploy.0 = Debug|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x86.ActiveCfg = Debug|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x86.Build.0 = Debug|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Debug|x86.Deploy.0 = Debug|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|ARM.ActiveCfg = Release|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|ARM.Build.0 = Release|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|ARM.Deploy.0 = Release|ARM - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x64.ActiveCfg = Release|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x64.Build.0 = Release|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x64.Deploy.0 = Release|x64 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x86.ActiveCfg = Release|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x86.Build.0 = Release|Win32 - {1F93D330-56FC-4497-BBDE-1807301B5C79}.Release|x86.Deploy.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/10.0.14393.0/Samples/XamlCode/XamlCode.vcxproj b/10.0.14393.0/Samples/XamlCode/XamlCode.vcxproj deleted file mode 100644 index 561b83f29..000000000 --- a/10.0.14393.0/Samples/XamlCode/XamlCode.vcxproj +++ /dev/null @@ -1,298 +0,0 @@ - - - - {1f93d330-56fc-4497-bbde-1807301b5c79} - App - en-US - 14.0 - true - Windows Store - 8.2 - 10.0.10166.0 - 10.0.10166.0 - 10.0.14393.0 - 10.0.14393.0 - - - - - Debug - ARM - - - Debug - Win32 - - - Debug - x64 - - - Release - ARM - - - Release - Win32 - - - Release - x64 - - - - Application - true - v140 - x64 - - - Application - true - v140 - x64 - - - Application - true - v140 - x64 - - - Application - false - true - v140 - x64 - - - Application - false - true - v140 - x64 - - - Application - false - true - v140 - x64 - - - - - - - - - - - - - - - - - - - - - - - - - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - $(Configuration)\$(Platform)\ - $(Configuration)\$(Platform)\temp\ - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - /bigobj /await /std:c++latest /d1permissive- - 4453;28204 - ..\..;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) - Level4 - false - - - - - - - - - - - - - - copy App.winmd $(OutDir)App.winmd - - - - - - - - Designer - - - - - - - - - - - - - - Create - Create - Create - Create - Create - Create - - - - - - \ No newline at end of file diff --git a/10.0.14393.0/Samples/XamlCode/pch.h b/10.0.14393.0/Samples/XamlCode/pch.h deleted file mode 100644 index 4ae1de948..000000000 --- a/10.0.14393.0/Samples/XamlCode/pch.h +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#pragma comment(lib, "windowsapp") - -#include "winrt/Windows.ApplicationModel.Activation.h" -#include "winrt/Windows.Foundation.h" -#include "winrt/Windows.UI.Xaml.Controls.h" -#include "winrt/Windows.UI.Xaml.Media.h" -#include "winrt/Windows.Storage.Streams.h" -#include "winrt/Windows.Graphics.Imaging.h" -#include "winrt/Windows.Media.Ocr.h" -#include "winrt/Windows.Storage.Pickers.h" -#include "winrt/Windows.Networking.h" diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Activation.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Activation.h deleted file mode 100644 index ca35e507f..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Activation.h +++ /dev/null @@ -1,2030 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Appointments.AppointmentsProvider.3.h" -#include "internal/Windows.ApplicationModel.UserDataAccounts.Provider.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.UI.ViewManagement.3.h" -#include "internal/Windows.ApplicationModel.Search.3.h" -#include "internal/Windows.ApplicationModel.DataTransfer.ShareTarget.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Search.3.h" -#include "internal/Windows.Storage.Pickers.Provider.3.h" -#include "internal/Windows.Storage.Provider.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Security.Authentication.Web.3.h" -#include "internal/Windows.Security.Authentication.Web.Provider.3.h" -#include "internal/Windows.ApplicationModel.Background.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Media.SpeechRecognition.3.h" -#include "internal/Windows.Devices.Printers.Extensions.3.h" -#include "internal/Windows.ApplicationModel.Calls.3.h" -#include "internal/Windows.ApplicationModel.Contacts.Provider.3.h" -#include "internal/Windows.ApplicationModel.Contacts.3.h" -#include "internal/Windows.ApplicationModel.Wallet.3.h" -#include "internal/Windows.ApplicationModel.Activation.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Activation::ActivationKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreviousExecutionState(Windows::ApplicationModel::Activation::ApplicationExecutionState * value) noexcept override - { - try - { - *value = detach(this->shim().PreviousExecutionState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SplashScreen(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SplashScreen()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentlyShownApplicationViewId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentlyShownApplicationViewId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Verb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Verb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AddAppointmentOperation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AddAppointmentOperation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoveAppointmentOperation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoveAppointmentOperation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ReplaceAppointmentOperation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReplaceAppointmentOperation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InstanceStartDate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InstanceStartDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoamingId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RoamingId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TimeToShow(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimeToShow()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TaskInstance(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TaskInstance()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CachedFileUpdaterUI(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CachedFileUpdaterUI()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VideoDeviceController(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoDeviceController()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoDeviceExtension(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoDeviceExtension()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Verb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Verb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServiceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceUserId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceUserId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Address(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Address()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServiceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceUserId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceUserId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContactPickerUI(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactPickerUI()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServiceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceUserId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceUserId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServiceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceUserId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceUserId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Verb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Verb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContinuationData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContinuationData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceInformationId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformationId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Verb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Verb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Files(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Files()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Verb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Verb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CallerPackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CallerPackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NeighboringFilesQuery(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NeighboringFilesQuery()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FileOpenPickerUI(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FileOpenPickerUI()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CallerPackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CallerPackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Files(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Files()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FileSavePickerUI(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FileSavePickerUI()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CallerPackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CallerPackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EnterpriseId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EnterpriseId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_File(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().File()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Folder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Folder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Arguments(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Arguments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TileId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TileId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TileActivatedInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TileActivatedInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Info(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Info()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CallUI(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CallUI()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PickerOperationId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PickerOperationId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrelaunchActivated(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PrelaunchActivated()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Workflow(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Workflow()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Configuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Configuration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CallerPackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CallerPackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProtocolForResultsOperation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProtocolForResultsOperation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SharedContext(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SharedContext()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LinguisticDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LinguisticDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ShareOperation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShareOperation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ImageLocation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImageLocation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Dismissed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().Dismissed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Dismissed(event_token cookie) noexcept override - { - try - { - this->shim().Dismissed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RecentlyShownNotifications(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RecentlyShownNotifications()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Argument(abi_arg_out argument) noexcept override - { - try - { - *argument = detach(this->shim().Argument()); - return S_OK; - } - catch (...) - { - *argument = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserInput(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserInput()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Operation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Operation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ViewSwitcher(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ViewSwitcher()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Result(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Result()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActionKind(Windows::ApplicationModel::Wallet::WalletActionKind * value) noexcept override - { - try - { - *value = detach(this->shim().ActionKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActionId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActionId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Operation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Operation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WebAuthenticationResult(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().WebAuthenticationResult()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Activation { - -template Windows::Foundation::Rect impl_ISplashScreen::ImageLocation() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_ImageLocation(put(value))); - return value; -} - -template event_token impl_ISplashScreen::Dismissed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_Dismissed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ISplashScreen::Dismissed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Activation::ISplashScreen::remove_Dismissed, Dismissed(handler)); -} - -template void impl_ISplashScreen::Dismissed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Dismissed(cookie)); -} - -template Windows::ApplicationModel::Activation::ActivationKind impl_IActivatedEventArgs::Kind() const -{ - Windows::ApplicationModel::Activation::ActivationKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::ApplicationModel::Activation::ApplicationExecutionState impl_IActivatedEventArgs::PreviousExecutionState() const -{ - Windows::ApplicationModel::Activation::ApplicationExecutionState value {}; - check_hresult(static_cast(static_cast(*this))->get_PreviousExecutionState(&value)); - return value; -} - -template Windows::ApplicationModel::Activation::SplashScreen impl_IActivatedEventArgs::SplashScreen() const -{ - Windows::ApplicationModel::Activation::SplashScreen value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SplashScreen(put(value))); - return value; -} - -template hstring impl_IAppointmentsProviderActivatedEventArgs::Verb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Verb(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation impl_IAppointmentsProviderAddAppointmentActivatedEventArgs::AddAppointmentOperation() const -{ - Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AddAppointmentOperation(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation impl_IAppointmentsProviderReplaceAppointmentActivatedEventArgs::ReplaceAppointmentOperation() const -{ - Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ReplaceAppointmentOperation(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation impl_IAppointmentsProviderRemoveAppointmentActivatedEventArgs::RemoveAppointmentOperation() const -{ - Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoveAppointmentOperation(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs::InstanceStartDate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InstanceStartDate(put(value))); - return value; -} - -template hstring impl_IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs::LocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LocalId(put(value))); - return value; -} - -template hstring impl_IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs::RoamingId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RoamingId(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IAppointmentsProviderShowTimeFrameActivatedEventArgs::TimeToShow() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeToShow(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IAppointmentsProviderShowTimeFrameActivatedEventArgs::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template Windows::ApplicationModel::UserDataAccounts::Provider::IUserDataAccountProviderOperation impl_IUserDataAccountProviderActivatedEventArgs::Operation() const -{ - Windows::ApplicationModel::UserDataAccounts::Provider::IUserDataAccountProviderOperation value; - check_hresult(static_cast(static_cast(*this))->get_Operation(put(value))); - return value; -} - -template Windows::System::User impl_IActivatedEventArgsWithUser::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template int32_t impl_IApplicationViewActivatedEventArgs::CurrentlyShownApplicationViewId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentlyShownApplicationViewId(&value)); - return value; -} - -template Windows::UI::ViewManagement::ActivationViewSwitcher impl_IViewSwitcherProvider::ViewSwitcher() const -{ - Windows::UI::ViewManagement::ActivationViewSwitcher value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ViewSwitcher(put(value))); - return value; -} - -template bool impl_IPrelaunchActivatedEventArgs::PrelaunchActivated() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PrelaunchActivated(&value)); - return value; -} - -template hstring impl_ILaunchActivatedEventArgs::Arguments() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Arguments(put(value))); - return value; -} - -template hstring impl_ILaunchActivatedEventArgs::TileId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TileId(put(value))); - return value; -} - -template Windows::ApplicationModel::Activation::TileActivatedInfo impl_ILaunchActivatedEventArgs2::TileActivatedInfo() const -{ - Windows::ApplicationModel::Activation::TileActivatedInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TileActivatedInfo(put(value))); - return value; -} - -template hstring impl_ISearchActivatedEventArgs::QueryText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QueryText(put(value))); - return value; -} - -template hstring impl_ISearchActivatedEventArgs::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template Windows::ApplicationModel::Search::SearchPaneQueryLinguisticDetails impl_ISearchActivatedEventArgsWithLinguisticDetails::LinguisticDetails() const -{ - Windows::ApplicationModel::Search::SearchPaneQueryLinguisticDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LinguisticDetails(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::ShareTarget::ShareOperation impl_IShareTargetActivatedEventArgs::ShareOperation() const -{ - Windows::ApplicationModel::DataTransfer::ShareTarget::ShareOperation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ShareOperation(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IFileActivatedEventArgs::Files() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Files(put(value))); - return value; -} - -template hstring impl_IFileActivatedEventArgs::Verb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Verb(put(value))); - return value; -} - -template Windows::Storage::Search::StorageFileQueryResult impl_IFileActivatedEventArgsWithNeighboringFiles::NeighboringFilesQuery() const -{ - Windows::Storage::Search::StorageFileQueryResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NeighboringFilesQuery(put(value))); - return value; -} - -template hstring impl_IFileActivatedEventArgsWithCallerPackageFamilyName::CallerPackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CallerPackageFamilyName(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IProtocolActivatedEventArgs::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template hstring impl_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData::CallerPackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CallerPackageFamilyName(put(value))); - return value; -} - -template Windows::Foundation::Collections::ValueSet impl_IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData::Data() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template Windows::System::ProtocolForResultsOperation impl_IProtocolForResultsActivatedEventArgs::ProtocolForResultsOperation() const -{ - Windows::System::ProtocolForResultsOperation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProtocolForResultsOperation(put(value))); - return value; -} - -template Windows::Storage::Pickers::Provider::FileOpenPickerUI impl_IFileOpenPickerActivatedEventArgs::FileOpenPickerUI() const -{ - Windows::Storage::Pickers::Provider::FileOpenPickerUI value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FileOpenPickerUI(put(value))); - return value; -} - -template hstring impl_IFileOpenPickerActivatedEventArgs2::CallerPackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CallerPackageFamilyName(put(value))); - return value; -} - -template Windows::Storage::Pickers::Provider::FileSavePickerUI impl_IFileSavePickerActivatedEventArgs::FileSavePickerUI() const -{ - Windows::Storage::Pickers::Provider::FileSavePickerUI value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FileSavePickerUI(put(value))); - return value; -} - -template hstring impl_IFileSavePickerActivatedEventArgs2::CallerPackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CallerPackageFamilyName(put(value))); - return value; -} - -template hstring impl_IFileSavePickerActivatedEventArgs2::EnterpriseId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EnterpriseId(put(value))); - return value; -} - -template Windows::Storage::Provider::CachedFileUpdaterUI impl_ICachedFileUpdaterActivatedEventArgs::CachedFileUpdaterUI() const -{ - Windows::Storage::Provider::CachedFileUpdaterUI value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CachedFileUpdaterUI(put(value))); - return value; -} - -template hstring impl_IDeviceActivatedEventArgs::DeviceInformationId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformationId(put(value))); - return value; -} - -template hstring impl_IDeviceActivatedEventArgs::Verb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Verb(put(value))); - return value; -} - -template hstring impl_IPickerReturnedActivatedEventArgs::PickerOperationId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PickerOperationId(put(value))); - return value; -} - -template Windows::IInspectable impl_IRestrictedLaunchActivatedEventArgs::SharedContext() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_SharedContext(put(value))); - return value; -} - -template Windows::IInspectable impl_ILockScreenActivatedEventArgs::Info() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Info(put(value))); - return value; -} - -template Windows::Foundation::Collections::ValueSet impl_IContinuationActivatedEventArgs::ContinuationData() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContinuationData(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IFileOpenPickerContinuationEventArgs::Files() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Files(put(value))); - return value; -} - -template Windows::Storage::StorageFile impl_IFileSavePickerContinuationEventArgs::File() const -{ - Windows::Storage::StorageFile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_File(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IFolderPickerContinuationEventArgs::Folder() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Folder(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::WebAuthenticationResult impl_IWebAuthenticationBrokerContinuationEventArgs::WebAuthenticationResult() const -{ - Windows::Security::Authentication::Web::WebAuthenticationResult result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WebAuthenticationResult(put(result))); - return result; -} - -template Windows::Security::Authentication::Web::Provider::IWebAccountProviderOperation impl_IWebAccountProviderActivatedEventArgs::Operation() const -{ - Windows::Security::Authentication::Web::Provider::IWebAccountProviderOperation value; - check_hresult(static_cast(static_cast(*this))->get_Operation(put(value))); - return value; -} - -template hstring impl_IToastNotificationActivatedEventArgs::Argument() const -{ - hstring argument; - check_hresult(static_cast(static_cast(*this))->get_Argument(put(argument))); - return argument; -} - -template Windows::Foundation::Collections::ValueSet impl_IToastNotificationActivatedEventArgs::UserInput() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UserInput(put(value))); - return value; -} - -template hstring impl_IDialReceiverActivatedEventArgs::AppName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ITileActivatedInfo::RecentlyShownNotifications() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_RecentlyShownNotifications(put(value))); - return value; -} - -template Windows::ApplicationModel::Background::IBackgroundTaskInstance impl_IBackgroundActivatedEventArgs::TaskInstance() const -{ - Windows::ApplicationModel::Background::IBackgroundTaskInstance value; - check_hresult(static_cast(static_cast(*this))->get_TaskInstance(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IDevicePairingActivatedEventArgs::DeviceInformation() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformation(put(value))); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionResult impl_IVoiceCommandActivatedEventArgs::Result() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Result(put(value))); - return value; -} - -template Windows::Devices::Printers::Extensions::PrintTaskConfiguration impl_IPrintTaskSettingsActivatedEventArgs::Configuration() const -{ - Windows::Devices::Printers::Extensions::PrintTaskConfiguration value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Configuration(put(value))); - return value; -} - -template Windows::Devices::Printers::Extensions::Print3DWorkflow impl_IPrint3DWorkflowActivatedEventArgs::Workflow() const -{ - Windows::Devices::Printers::Extensions::Print3DWorkflow value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Workflow(put(value))); - return value; -} - -template Windows::ApplicationModel::Calls::LockScreenCallUI impl_ILockScreenCallActivatedEventArgs::CallUI() const -{ - Windows::ApplicationModel::Calls::LockScreenCallUI value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CallUI(put(value))); - return value; -} - -template Windows::IInspectable impl_ICameraSettingsActivatedEventArgs::VideoDeviceController() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_VideoDeviceController(put(value))); - return value; -} - -template Windows::IInspectable impl_ICameraSettingsActivatedEventArgs::VideoDeviceExtension() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_VideoDeviceExtension(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::Provider::ContactPickerUI impl_IContactPickerActivatedEventArgs::ContactPickerUI() const -{ - Windows::ApplicationModel::Contacts::Provider::ContactPickerUI value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContactPickerUI(put(value))); - return value; -} - -template hstring impl_IContactActivatedEventArgs::Verb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Verb(put(value))); - return value; -} - -template hstring impl_IContactCallActivatedEventArgs::ServiceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceId(put(value))); - return value; -} - -template hstring impl_IContactCallActivatedEventArgs::ServiceUserId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceUserId(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::Contact impl_IContactCallActivatedEventArgs::Contact() const -{ - Windows::ApplicationModel::Contacts::Contact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template hstring impl_IContactMessageActivatedEventArgs::ServiceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceId(put(value))); - return value; -} - -template hstring impl_IContactMessageActivatedEventArgs::ServiceUserId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceUserId(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::Contact impl_IContactMessageActivatedEventArgs::Contact() const -{ - Windows::ApplicationModel::Contacts::Contact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactAddress impl_IContactMapActivatedEventArgs::Address() const -{ - Windows::ApplicationModel::Contacts::ContactAddress value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Address(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::Contact impl_IContactMapActivatedEventArgs::Contact() const -{ - Windows::ApplicationModel::Contacts::Contact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template hstring impl_IContactPostActivatedEventArgs::ServiceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceId(put(value))); - return value; -} - -template hstring impl_IContactPostActivatedEventArgs::ServiceUserId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceUserId(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::Contact impl_IContactPostActivatedEventArgs::Contact() const -{ - Windows::ApplicationModel::Contacts::Contact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template hstring impl_IContactVideoCallActivatedEventArgs::ServiceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceId(put(value))); - return value; -} - -template hstring impl_IContactVideoCallActivatedEventArgs::ServiceUserId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceUserId(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::Contact impl_IContactVideoCallActivatedEventArgs::Contact() const -{ - Windows::ApplicationModel::Contacts::Contact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template hstring impl_IContactsProviderActivatedEventArgs::Verb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Verb(put(value))); - return value; -} - -template hstring impl_IWalletActionActivatedEventArgs::ItemId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ItemId(put(value))); - return value; -} - -template Windows::ApplicationModel::Wallet::WalletActionKind impl_IWalletActionActivatedEventArgs::ActionKind() const -{ - Windows::ApplicationModel::Wallet::WalletActionKind value {}; - check_hresult(static_cast(static_cast(*this))->get_ActionKind(&value)); - return value; -} - -template hstring impl_IWalletActionActivatedEventArgs::ActionId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ActionId(put(value))); - return value; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.AppExtensions.h b/10.0.14393.0/winrt/Windows.ApplicationModel.AppExtensions.h deleted file mode 100644 index e3fd68cd0..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.AppExtensions.h +++ /dev/null @@ -1,736 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.AppExtensions.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetExtensionPropertiesAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetExtensionPropertiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPublicFolderAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPublicFolderAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindAllAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAllAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestRemovePackageAsync(abi_arg_in packageFullName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestRemovePackageAsync(*reinterpret_cast(&packageFullName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PackageInstalled(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PackageInstalled(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PackageInstalled(event_token token) noexcept override - { - try - { - this->shim().PackageInstalled(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PackageUpdating(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PackageUpdating(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PackageUpdating(event_token token) noexcept override - { - try - { - this->shim().PackageUpdating(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PackageUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PackageUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PackageUpdated(event_token token) noexcept override - { - try - { - this->shim().PackageUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PackageUninstalling(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PackageUninstalling(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PackageUninstalling(event_token token) noexcept override - { - try - { - this->shim().PackageUninstalling(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PackageStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PackageStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PackageStatusChanged(event_token token) noexcept override - { - try - { - this->shim().PackageStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Open(abi_arg_in appExtensionName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Open(*reinterpret_cast(&appExtensionName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppExtensionName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppExtensionName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Extensions(abi_arg_out> values) noexcept override - { - try - { - *values = detach(this->shim().Extensions()); - return S_OK; - } - catch (...) - { - *values = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppExtensionName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppExtensionName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppExtensionName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppExtensionName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppExtensionName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppExtensionName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Extensions(abi_arg_out> values) noexcept override - { - try - { - *values = detach(this->shim().Extensions()); - return S_OK; - } - catch (...) - { - *values = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppExtensionName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppExtensionName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::AppExtensions { - -template Windows::ApplicationModel::AppExtensions::AppExtensionCatalog impl_IAppExtensionCatalogStatics::Open(hstring_ref appExtensionName) const -{ - Windows::ApplicationModel::AppExtensions::AppExtensionCatalog value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Open(get(appExtensionName), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppExtensionCatalog::FindAllAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppExtensionCatalog::RequestRemovePackageAsync(hstring_ref packageFullName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestRemovePackageAsync(get(packageFullName), put(operation))); - return operation; -} - -template event_token impl_IAppExtensionCatalog::PackageInstalled(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PackageInstalled(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppExtensionCatalog::PackageInstalled(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::AppExtensions::IAppExtensionCatalog::remove_PackageInstalled, PackageInstalled(handler)); -} - -template void impl_IAppExtensionCatalog::PackageInstalled(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PackageInstalled(token)); -} - -template event_token impl_IAppExtensionCatalog::PackageUpdating(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PackageUpdating(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppExtensionCatalog::PackageUpdating(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::AppExtensions::IAppExtensionCatalog::remove_PackageUpdating, PackageUpdating(handler)); -} - -template void impl_IAppExtensionCatalog::PackageUpdating(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PackageUpdating(token)); -} - -template event_token impl_IAppExtensionCatalog::PackageUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PackageUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppExtensionCatalog::PackageUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::AppExtensions::IAppExtensionCatalog::remove_PackageUpdated, PackageUpdated(handler)); -} - -template void impl_IAppExtensionCatalog::PackageUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PackageUpdated(token)); -} - -template event_token impl_IAppExtensionCatalog::PackageUninstalling(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PackageUninstalling(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppExtensionCatalog::PackageUninstalling(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::AppExtensions::IAppExtensionCatalog::remove_PackageUninstalling, PackageUninstalling(handler)); -} - -template void impl_IAppExtensionCatalog::PackageUninstalling(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PackageUninstalling(token)); -} - -template event_token impl_IAppExtensionCatalog::PackageStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PackageStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppExtensionCatalog::PackageStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::AppExtensions::IAppExtensionCatalog::remove_PackageStatusChanged, PackageStatusChanged(handler)); -} - -template void impl_IAppExtensionCatalog::PackageStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PackageStatusChanged(token)); -} - -template hstring impl_IAppExtension::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IAppExtension::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IAppExtension::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template Windows::ApplicationModel::Package impl_IAppExtension::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -template Windows::ApplicationModel::AppInfo impl_IAppExtension::AppInfo() const -{ - Windows::ApplicationModel::AppInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppInfo(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAppExtension::GetExtensionPropertiesAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetExtensionPropertiesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppExtension::GetPublicFolderAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPublicFolderAsync(put(operation))); - return operation; -} - -template hstring impl_IAppExtensionPackageInstalledEventArgs::AppExtensionName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppExtensionName(put(value))); - return value; -} - -template Windows::ApplicationModel::Package impl_IAppExtensionPackageInstalledEventArgs::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAppExtensionPackageInstalledEventArgs::Extensions() const -{ - Windows::Foundation::Collections::IVectorView values; - check_hresult(static_cast(static_cast(*this))->get_Extensions(put(values))); - return values; -} - -template hstring impl_IAppExtensionPackageUpdatingEventArgs::AppExtensionName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppExtensionName(put(value))); - return value; -} - -template Windows::ApplicationModel::Package impl_IAppExtensionPackageUpdatingEventArgs::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -template hstring impl_IAppExtensionPackageUpdatedEventArgs::AppExtensionName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppExtensionName(put(value))); - return value; -} - -template Windows::ApplicationModel::Package impl_IAppExtensionPackageUpdatedEventArgs::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAppExtensionPackageUpdatedEventArgs::Extensions() const -{ - Windows::Foundation::Collections::IVectorView values; - check_hresult(static_cast(static_cast(*this))->get_Extensions(put(values))); - return values; -} - -template hstring impl_IAppExtensionPackageUninstallingEventArgs::AppExtensionName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppExtensionName(put(value))); - return value; -} - -template Windows::ApplicationModel::Package impl_IAppExtensionPackageUninstallingEventArgs::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -template hstring impl_IAppExtensionPackageStatusChangedEventArgs::AppExtensionName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppExtensionName(put(value))); - return value; -} - -template Windows::ApplicationModel::Package impl_IAppExtensionPackageStatusChangedEventArgs::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -inline Windows::ApplicationModel::AppExtensions::AppExtensionCatalog AppExtensionCatalog::Open(hstring_ref appExtensionName) -{ - return get_activation_factory().Open(appExtensionName); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.AppService.h b/10.0.14393.0/winrt/Windows.ApplicationModel.AppService.h deleted file mode 100644 index c0d362bdf..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.AppService.h +++ /dev/null @@ -1,606 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.System.RemoteSystems.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.AppService.3.h" -#include "Windows.ApplicationModel.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindAppServiceProvidersAsync(abi_arg_in appServiceName, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAppServiceProvidersAsync(*reinterpret_cast(&appServiceName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::ApplicationModel::AppService::AppServiceClosedStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppServiceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppServiceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppServiceName(abi_arg_in value) noexcept override - { - try - { - this->shim().AppServiceName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PackageFamilyName(abi_arg_in value) noexcept override - { - try - { - this->shim().PackageFamilyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().OpenAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendMessageAsync(abi_arg_in message, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SendMessageAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RequestReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RequestReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RequestReceived(event_token token) noexcept override - { - try - { - this->shim().RequestReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ServiceClosed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ServiceClosed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ServiceClosed(event_token token) noexcept override - { - try - { - this->shim().ServiceClosed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OpenRemoteAsync(abi_arg_in remoteSystemConnectionRequest, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().OpenRemoteAsync(*reinterpret_cast(&remoteSystemConnectionRequest))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_User(abi_arg_in value) noexcept override - { - try - { - this->shim().User(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendResponseAsync(abi_arg_in message, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SendResponseAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::ApplicationModel::AppService::AppServiceResponseStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallerPackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CallerPackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppServiceConnection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppServiceConnection()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsRemoteSystemConnection(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRemoteSystemConnection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::AppService { - -template void impl_IAppServiceDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::ApplicationModel::AppService::AppServiceClosedStatus impl_IAppServiceClosedEventArgs::Status() const -{ - Windows::ApplicationModel::AppService::AppServiceClosedStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::ApplicationModel::AppService::AppServiceRequest impl_IAppServiceRequestReceivedEventArgs::Request() const -{ - Windows::ApplicationModel::AppService::AppServiceRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::ApplicationModel::AppService::AppServiceDeferral impl_IAppServiceRequestReceivedEventArgs::GetDeferral() const -{ - Windows::ApplicationModel::AppService::AppServiceDeferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAppServiceConnection2::OpenRemoteAsync(const Windows::System::RemoteSystems::RemoteSystemConnectionRequest & remoteSystemConnectionRequest) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_OpenRemoteAsync(get(remoteSystemConnectionRequest), put(operation))); - return operation; -} - -template Windows::System::User impl_IAppServiceConnection2::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template void impl_IAppServiceConnection2::User(const Windows::System::User & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_User(get(value))); -} - -template hstring impl_IAppServiceTriggerDetails::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template hstring impl_IAppServiceTriggerDetails::CallerPackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CallerPackageFamilyName(put(value))); - return value; -} - -template Windows::ApplicationModel::AppService::AppServiceConnection impl_IAppServiceTriggerDetails::AppServiceConnection() const -{ - Windows::ApplicationModel::AppService::AppServiceConnection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppServiceConnection(put(value))); - return value; -} - -template bool impl_IAppServiceTriggerDetails2::IsRemoteSystemConnection() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRemoteSystemConnection(&value)); - return value; -} - -template Windows::Foundation::Collections::ValueSet impl_IAppServiceRequest::Message() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAppServiceRequest::SendResponseAsync(const Windows::Foundation::Collections::ValueSet & message) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SendResponseAsync(get(message), put(operation))); - return operation; -} - -template Windows::Foundation::Collections::ValueSet impl_IAppServiceResponse::Message() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template Windows::ApplicationModel::AppService::AppServiceResponseStatus impl_IAppServiceResponse::Status() const -{ - Windows::ApplicationModel::AppService::AppServiceResponseStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppServiceCatalogStatics::FindAppServiceProvidersAsync(hstring_ref appServiceName) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAppServiceProvidersAsync(get(appServiceName), put(operation))); - return operation; -} - -template hstring impl_IAppServiceConnection::AppServiceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppServiceName(put(value))); - return value; -} - -template void impl_IAppServiceConnection::AppServiceName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppServiceName(get(value))); -} - -template hstring impl_IAppServiceConnection::PackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PackageFamilyName(put(value))); - return value; -} - -template void impl_IAppServiceConnection::PackageFamilyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PackageFamilyName(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_IAppServiceConnection::OpenAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_OpenAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppServiceConnection::SendMessageAsync(const Windows::Foundation::Collections::ValueSet & message) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SendMessageAsync(get(message), put(operation))); - return operation; -} - -template event_token impl_IAppServiceConnection::RequestReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RequestReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppServiceConnection::RequestReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::AppService::IAppServiceConnection::remove_RequestReceived, RequestReceived(handler)); -} - -template void impl_IAppServiceConnection::RequestReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RequestReceived(token)); -} - -template event_token impl_IAppServiceConnection::ServiceClosed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ServiceClosed(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppServiceConnection::ServiceClosed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::AppService::IAppServiceConnection::remove_ServiceClosed, ServiceClosed(handler)); -} - -template void impl_IAppServiceConnection::ServiceClosed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ServiceClosed(token)); -} - -inline Windows::Foundation::IAsyncOperation> AppServiceCatalog::FindAppServiceProvidersAsync(hstring_ref appServiceName) -{ - return get_activation_factory().FindAppServiceProvidersAsync(appServiceName); -} - -inline AppServiceConnection::AppServiceConnection() : - AppServiceConnection(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Appointments.AppointmentsProvider.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Appointments.AppointmentsProvider.h deleted file mode 100644 index ee9c4eed3..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Appointments.AppointmentsProvider.h +++ /dev/null @@ -1,576 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.ApplicationModel.Appointments.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Appointments.AppointmentsProvider.3.h" -#include "Windows.ApplicationModel.Appointments.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppointmentInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourcePackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourcePackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompleted(abi_arg_in itemId) noexcept override - { - try - { - this->shim().ReportCompleted(*reinterpret_cast(&itemId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCanceled() noexcept override - { - try - { - this->shim().ReportCanceled(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportError(abi_arg_in value) noexcept override - { - try - { - this->shim().ReportError(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DismissUI() noexcept override - { - try - { - this->shim().DismissUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AddAppointment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AddAppointment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReplaceAppointment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReplaceAppointment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoveAppointment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoveAppointment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowTimeFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShowTimeFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ShowAppointmentDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShowAppointmentDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppointmentId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstanceStartDate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InstanceStartDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourcePackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourcePackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompleted() noexcept override - { - try - { - this->shim().ReportCompleted(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCanceled() noexcept override - { - try - { - this->shim().ReportCanceled(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportError(abi_arg_in value) noexcept override - { - try - { - this->shim().ReportError(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DismissUI() noexcept override - { - try - { - this->shim().DismissUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppointmentId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppointmentInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstanceStartDate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InstanceStartDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourcePackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourcePackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompleted(abi_arg_in itemId) noexcept override - { - try - { - this->shim().ReportCompleted(*reinterpret_cast(&itemId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCanceled() noexcept override - { - try - { - this->shim().ReportCanceled(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportError(abi_arg_in value) noexcept override - { - try - { - this->shim().ReportError(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DismissUI() noexcept override - { - try - { - this->shim().DismissUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Appointments::AppointmentsProvider { - -template hstring impl_IAppointmentsProviderLaunchActionVerbsStatics::AddAppointment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AddAppointment(put(value))); - return value; -} - -template hstring impl_IAppointmentsProviderLaunchActionVerbsStatics::ReplaceAppointment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ReplaceAppointment(put(value))); - return value; -} - -template hstring impl_IAppointmentsProviderLaunchActionVerbsStatics::RemoveAppointment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoveAppointment(put(value))); - return value; -} - -template hstring impl_IAppointmentsProviderLaunchActionVerbsStatics::ShowTimeFrame() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ShowTimeFrame(put(value))); - return value; -} - -template hstring impl_IAppointmentsProviderLaunchActionVerbsStatics2::ShowAppointmentDetails() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ShowAppointmentDetails(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::Appointment impl_IAddAppointmentOperation::AppointmentInformation() const -{ - Windows::ApplicationModel::Appointments::Appointment value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppointmentInformation(put(value))); - return value; -} - -template hstring impl_IAddAppointmentOperation::SourcePackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SourcePackageFamilyName(put(value))); - return value; -} - -template void impl_IAddAppointmentOperation::ReportCompleted(hstring_ref itemId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompleted(get(itemId))); -} - -template void impl_IAddAppointmentOperation::ReportCanceled() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCanceled()); -} - -template void impl_IAddAppointmentOperation::ReportError(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportError(get(value))); -} - -template void impl_IAddAppointmentOperation::DismissUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DismissUI()); -} - -template hstring impl_IReplaceAppointmentOperation::AppointmentId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentId(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::Appointment impl_IReplaceAppointmentOperation::AppointmentInformation() const -{ - Windows::ApplicationModel::Appointments::Appointment value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppointmentInformation(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IReplaceAppointmentOperation::InstanceStartDate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InstanceStartDate(put(value))); - return value; -} - -template hstring impl_IReplaceAppointmentOperation::SourcePackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SourcePackageFamilyName(put(value))); - return value; -} - -template void impl_IReplaceAppointmentOperation::ReportCompleted(hstring_ref itemId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompleted(get(itemId))); -} - -template void impl_IReplaceAppointmentOperation::ReportCanceled() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCanceled()); -} - -template void impl_IReplaceAppointmentOperation::ReportError(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportError(get(value))); -} - -template void impl_IReplaceAppointmentOperation::DismissUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DismissUI()); -} - -template hstring impl_IRemoveAppointmentOperation::AppointmentId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentId(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IRemoveAppointmentOperation::InstanceStartDate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InstanceStartDate(put(value))); - return value; -} - -template hstring impl_IRemoveAppointmentOperation::SourcePackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SourcePackageFamilyName(put(value))); - return value; -} - -template void impl_IRemoveAppointmentOperation::ReportCompleted() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompleted()); -} - -template void impl_IRemoveAppointmentOperation::ReportCanceled() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCanceled()); -} - -template void impl_IRemoveAppointmentOperation::ReportError(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportError(get(value))); -} - -template void impl_IRemoveAppointmentOperation::DismissUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DismissUI()); -} - -inline hstring AppointmentsProviderLaunchActionVerbs::AddAppointment() -{ - return get_activation_factory().AddAppointment(); -} - -inline hstring AppointmentsProviderLaunchActionVerbs::ReplaceAppointment() -{ - return get_activation_factory().ReplaceAppointment(); -} - -inline hstring AppointmentsProviderLaunchActionVerbs::RemoveAppointment() -{ - return get_activation_factory().RemoveAppointment(); -} - -inline hstring AppointmentsProviderLaunchActionVerbs::ShowTimeFrame() -{ - return get_activation_factory().ShowTimeFrame(); -} - -inline hstring AppointmentsProviderLaunchActionVerbs::ShowAppointmentDetails() -{ - return get_activation_factory().ShowAppointmentDetails(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Appointments.DataProvider.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Appointments.DataProvider.h deleted file mode 100644 index 20ab16a03..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Appointments.DataProvider.h +++ /dev/null @@ -1,1545 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Appointments.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.Appointments.DataProvider.3.h" -#include "Windows.ApplicationModel.Appointments.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppointmentCalendarLocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentCalendarLocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppointmentLocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentLocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppointmentOriginalStartTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentOriginalStartTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Comment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Comment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NotifyInvitees(bool * value) noexcept override - { - try - { - *value = detach(this->shim().NotifyInvitees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppointmentCalendarLocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentCalendarLocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Appointment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Appointment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NotifyInvitees(bool * value) noexcept override - { - try - { - *value = detach(this->shim().NotifyInvitees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChangedProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ChangedProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_in createdOrUpdatedAppointment, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync(*reinterpret_cast(&createdOrUpdatedAppointment))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppointmentCalendarLocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentCalendarLocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppointmentLocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentLocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppointmentOriginalStartTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentOriginalStartTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Invitees(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Invitees()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForwardHeader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForwardHeader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Comment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Comment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppointmentCalendarLocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentCalendarLocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppointmentLocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentLocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppointmentOriginalStartTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentOriginalStartTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewStartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewStartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Comment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Comment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppointmentCalendarLocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentCalendarLocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppointmentCalendarLocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentCalendarLocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppointmentLocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentLocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppointmentOriginalStartTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentOriginalStartTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Response(Windows::ApplicationModel::Appointments::AppointmentParticipantResponse * response) noexcept override - { - try - { - *response = detach(this->shim().Response()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Comment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Comment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SendUpdate(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SendUpdate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_SyncRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SyncRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SyncRequested(event_token token) noexcept override - { - try - { - this->shim().SyncRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CreateOrUpdateAppointmentRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CreateOrUpdateAppointmentRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CreateOrUpdateAppointmentRequested(event_token token) noexcept override - { - try - { - this->shim().CreateOrUpdateAppointmentRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CancelMeetingRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CancelMeetingRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CancelMeetingRequested(event_token token) noexcept override - { - try - { - this->shim().CancelMeetingRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ForwardMeetingRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ForwardMeetingRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ForwardMeetingRequested(event_token token) noexcept override - { - try - { - this->shim().ForwardMeetingRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ProposeNewTimeForMeetingRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ProposeNewTimeForMeetingRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ProposeNewTimeForMeetingRequested(event_token token) noexcept override - { - try - { - this->shim().ProposeNewTimeForMeetingRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UpdateMeetingResponseRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UpdateMeetingResponseRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UpdateMeetingResponseRequested(event_token token) noexcept override - { - try - { - this->shim().UpdateMeetingResponseRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Connection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Connection()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Appointments::DataProvider { - -template Windows::ApplicationModel::Appointments::DataProvider::AppointmentDataProviderConnection impl_IAppointmentDataProviderTriggerDetails::Connection() const -{ - Windows::ApplicationModel::Appointments::DataProvider::AppointmentDataProviderConnection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Connection(put(value))); - return value; -} - -template event_token impl_IAppointmentDataProviderConnection::SyncRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SyncRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppointmentDataProviderConnection::SyncRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Appointments::DataProvider::IAppointmentDataProviderConnection::remove_SyncRequested, SyncRequested(handler)); -} - -template void impl_IAppointmentDataProviderConnection::SyncRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SyncRequested(token)); -} - -template event_token impl_IAppointmentDataProviderConnection::CreateOrUpdateAppointmentRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CreateOrUpdateAppointmentRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppointmentDataProviderConnection::CreateOrUpdateAppointmentRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Appointments::DataProvider::IAppointmentDataProviderConnection::remove_CreateOrUpdateAppointmentRequested, CreateOrUpdateAppointmentRequested(handler)); -} - -template void impl_IAppointmentDataProviderConnection::CreateOrUpdateAppointmentRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CreateOrUpdateAppointmentRequested(token)); -} - -template event_token impl_IAppointmentDataProviderConnection::CancelMeetingRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CancelMeetingRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppointmentDataProviderConnection::CancelMeetingRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Appointments::DataProvider::IAppointmentDataProviderConnection::remove_CancelMeetingRequested, CancelMeetingRequested(handler)); -} - -template void impl_IAppointmentDataProviderConnection::CancelMeetingRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CancelMeetingRequested(token)); -} - -template event_token impl_IAppointmentDataProviderConnection::ForwardMeetingRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ForwardMeetingRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppointmentDataProviderConnection::ForwardMeetingRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Appointments::DataProvider::IAppointmentDataProviderConnection::remove_ForwardMeetingRequested, ForwardMeetingRequested(handler)); -} - -template void impl_IAppointmentDataProviderConnection::ForwardMeetingRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ForwardMeetingRequested(token)); -} - -template event_token impl_IAppointmentDataProviderConnection::ProposeNewTimeForMeetingRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ProposeNewTimeForMeetingRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppointmentDataProviderConnection::ProposeNewTimeForMeetingRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Appointments::DataProvider::IAppointmentDataProviderConnection::remove_ProposeNewTimeForMeetingRequested, ProposeNewTimeForMeetingRequested(handler)); -} - -template void impl_IAppointmentDataProviderConnection::ProposeNewTimeForMeetingRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ProposeNewTimeForMeetingRequested(token)); -} - -template event_token impl_IAppointmentDataProviderConnection::UpdateMeetingResponseRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UpdateMeetingResponseRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppointmentDataProviderConnection::UpdateMeetingResponseRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Appointments::DataProvider::IAppointmentDataProviderConnection::remove_UpdateMeetingResponseRequested, UpdateMeetingResponseRequested(handler)); -} - -template void impl_IAppointmentDataProviderConnection::UpdateMeetingResponseRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UpdateMeetingResponseRequested(token)); -} - -template void impl_IAppointmentDataProviderConnection::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template hstring impl_IAppointmentCalendarSyncManagerSyncRequest::AppointmentCalendarLocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentCalendarLocalId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarSyncManagerSyncRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarSyncManagerSyncRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IAppointmentCalendarCreateOrUpdateAppointmentRequest::AppointmentCalendarLocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentCalendarLocalId(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::Appointment impl_IAppointmentCalendarCreateOrUpdateAppointmentRequest::Appointment() const -{ - Windows::ApplicationModel::Appointments::Appointment value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Appointment(put(value))); - return value; -} - -template bool impl_IAppointmentCalendarCreateOrUpdateAppointmentRequest::NotifyInvitees() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_NotifyInvitees(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAppointmentCalendarCreateOrUpdateAppointmentRequest::ChangedProperties() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ChangedProperties(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarCreateOrUpdateAppointmentRequest::ReportCompletedAsync(const Windows::ApplicationModel::Appointments::Appointment & createdOrUpdatedAppointment) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(get(createdOrUpdatedAppointment), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarCreateOrUpdateAppointmentRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IAppointmentCalendarCancelMeetingRequest::AppointmentCalendarLocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentCalendarLocalId(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarCancelMeetingRequest::AppointmentLocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentLocalId(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAppointmentCalendarCancelMeetingRequest::AppointmentOriginalStartTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentOriginalStartTime(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarCancelMeetingRequest::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarCancelMeetingRequest::Comment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Comment(put(value))); - return value; -} - -template bool impl_IAppointmentCalendarCancelMeetingRequest::NotifyInvitees() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_NotifyInvitees(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarCancelMeetingRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarCancelMeetingRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IAppointmentCalendarForwardMeetingRequest::AppointmentCalendarLocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentCalendarLocalId(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarForwardMeetingRequest::AppointmentLocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentLocalId(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAppointmentCalendarForwardMeetingRequest::AppointmentOriginalStartTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentOriginalStartTime(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAppointmentCalendarForwardMeetingRequest::Invitees() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Invitees(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarForwardMeetingRequest::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarForwardMeetingRequest::ForwardHeader() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ForwardHeader(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarForwardMeetingRequest::Comment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Comment(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarForwardMeetingRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarForwardMeetingRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IAppointmentCalendarProposeNewTimeForMeetingRequest::AppointmentCalendarLocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentCalendarLocalId(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarProposeNewTimeForMeetingRequest::AppointmentLocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentLocalId(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAppointmentCalendarProposeNewTimeForMeetingRequest::AppointmentOriginalStartTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentOriginalStartTime(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IAppointmentCalendarProposeNewTimeForMeetingRequest::NewStartTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_NewStartTime(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IAppointmentCalendarProposeNewTimeForMeetingRequest::NewDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_NewDuration(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarProposeNewTimeForMeetingRequest::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarProposeNewTimeForMeetingRequest::Comment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Comment(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarProposeNewTimeForMeetingRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarProposeNewTimeForMeetingRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IAppointmentCalendarUpdateMeetingResponseRequest::AppointmentCalendarLocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentCalendarLocalId(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarUpdateMeetingResponseRequest::AppointmentLocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentLocalId(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAppointmentCalendarUpdateMeetingResponseRequest::AppointmentOriginalStartTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentOriginalStartTime(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::AppointmentParticipantResponse impl_IAppointmentCalendarUpdateMeetingResponseRequest::Response() const -{ - Windows::ApplicationModel::Appointments::AppointmentParticipantResponse response {}; - check_hresult(static_cast(static_cast(*this))->get_Response(&response)); - return response; -} - -template hstring impl_IAppointmentCalendarUpdateMeetingResponseRequest::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendarUpdateMeetingResponseRequest::Comment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Comment(put(value))); - return value; -} - -template bool impl_IAppointmentCalendarUpdateMeetingResponseRequest::SendUpdate() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SendUpdate(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarUpdateMeetingResponseRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendarUpdateMeetingResponseRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarSyncManagerSyncRequest impl_IAppointmentCalendarSyncManagerSyncRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarSyncManagerSyncRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IAppointmentCalendarSyncManagerSyncRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarCreateOrUpdateAppointmentRequest impl_IAppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarCreateOrUpdateAppointmentRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IAppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarCancelMeetingRequest impl_IAppointmentCalendarCancelMeetingRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarCancelMeetingRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IAppointmentCalendarCancelMeetingRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarForwardMeetingRequest impl_IAppointmentCalendarForwardMeetingRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarForwardMeetingRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IAppointmentCalendarForwardMeetingRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarProposeNewTimeForMeetingRequest impl_IAppointmentCalendarProposeNewTimeForMeetingRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarProposeNewTimeForMeetingRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IAppointmentCalendarProposeNewTimeForMeetingRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarUpdateMeetingResponseRequest impl_IAppointmentCalendarUpdateMeetingResponseRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Appointments::DataProvider::AppointmentCalendarUpdateMeetingResponseRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IAppointmentCalendarUpdateMeetingResponseRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Appointments.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Appointments.h deleted file mode 100644 index 8feb2ae07..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Appointments.h +++ /dev/null @@ -1,5168 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Popups.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.ApplicationModel.Appointments.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StartTime(abi_arg_in value) noexcept override - { - try - { - this->shim().StartTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Duration(abi_arg_in value) noexcept override - { - try - { - this->shim().Duration(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Location(abi_arg_in value) noexcept override - { - try - { - this->shim().Location(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Subject(abi_arg_in value) noexcept override - { - try - { - this->shim().Subject(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Details(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Details()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Details(abi_arg_in value) noexcept override - { - try - { - this->shim().Details(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Reminder(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Reminder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Reminder(abi_arg_in> value) noexcept override - { - try - { - this->shim().Reminder(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Organizer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Organizer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Organizer(abi_arg_in value) noexcept override - { - try - { - this->shim().Organizer(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Invitees(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Invitees()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Recurrence(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Recurrence()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Recurrence(abi_arg_in value) noexcept override - { - try - { - this->shim().Recurrence(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BusyStatus(Windows::ApplicationModel::Appointments::AppointmentBusyStatus * value) noexcept override - { - try - { - *value = detach(this->shim().BusyStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BusyStatus(Windows::ApplicationModel::Appointments::AppointmentBusyStatus value) noexcept override - { - try - { - this->shim().BusyStatus(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllDay(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllDay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllDay(bool value) noexcept override - { - try - { - this->shim().AllDay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sensitivity(Windows::ApplicationModel::Appointments::AppointmentSensitivity * value) noexcept override - { - try - { - *value = detach(this->shim().Sensitivity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Sensitivity(Windows::ApplicationModel::Appointments::AppointmentSensitivity value) noexcept override - { - try - { - this->shim().Sensitivity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Uri(abi_arg_in value) noexcept override - { - try - { - this->shim().Uri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoamingId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RoamingId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RoamingId(abi_arg_in value) noexcept override - { - try - { - this->shim().RoamingId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OriginalStartTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().OriginalStartTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsResponseRequested(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsResponseRequested()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsResponseRequested(bool value) noexcept override - { - try - { - this->shim().IsResponseRequested(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowNewTimeProposal(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowNewTimeProposal()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowNewTimeProposal(bool value) noexcept override - { - try - { - this->shim().AllowNewTimeProposal(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OnlineMeetingLink(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OnlineMeetingLink()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OnlineMeetingLink(abi_arg_in value) noexcept override - { - try - { - this->shim().OnlineMeetingLink(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReplyTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ReplyTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReplyTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().ReplyTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserResponse(Windows::ApplicationModel::Appointments::AppointmentParticipantResponse * value) noexcept override - { - try - { - *value = detach(this->shim().UserResponse()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UserResponse(Windows::ApplicationModel::Appointments::AppointmentParticipantResponse value) noexcept override - { - try - { - this->shim().UserResponse(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasInvitees(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasInvitees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCanceledMeeting(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceledMeeting()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsCanceledMeeting(bool value) noexcept override - { - try - { - this->shim().IsCanceledMeeting(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOrganizedByUser(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOrganizedByUser()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOrganizedByUser(bool value) noexcept override - { - try - { - this->shim().IsOrganizedByUser(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeNumber(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteChangeNumber(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().RemoteChangeNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteChangeNumber(uint64_t value) noexcept override - { - try - { - this->shim().RemoteChangeNumber(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DetailsKind(Windows::ApplicationModel::Appointments::AppointmentDetailsKind * value) noexcept override - { - try - { - *value = detach(this->shim().DetailsKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DetailsKind(Windows::ApplicationModel::Appointments::AppointmentDetailsKind value) noexcept override - { - try - { - this->shim().DetailsKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHidden(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHidden()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherAppReadAccess(Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppReadAccess * value) noexcept override - { - try - { - *value = detach(this->shim().OtherAppReadAccess()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OtherAppReadAccess(Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppReadAccess value) noexcept override - { - try - { - this->shim().OtherAppReadAccess(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherAppWriteAccess(Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppWriteAccess * value) noexcept override - { - try - { - *value = detach(this->shim().OtherAppWriteAccess()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OtherAppWriteAccess(Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppWriteAccess value) noexcept override - { - try - { - this->shim().OtherAppWriteAccess(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SummaryCardView(Windows::ApplicationModel::Appointments::AppointmentSummaryCardView * value) noexcept override - { - try - { - *value = detach(this->shim().SummaryCardView()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SummaryCardView(Windows::ApplicationModel::Appointments::AppointmentSummaryCardView value) noexcept override - { - try - { - this->shim().SummaryCardView(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAppointmentsAsync(abi_arg_in rangeStart, abi_arg_in rangeLength, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAppointmentsAsync(*reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAppointmentsAsyncWithOptions(abi_arg_in rangeStart, abi_arg_in rangeLength, abi_arg_in options, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAppointmentsAsync(*reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindExceptionsFromMasterAsync(abi_arg_in masterLocalId, abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().FindExceptionsFromMasterAsync(*reinterpret_cast(&masterLocalId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllInstancesAsync(abi_arg_in masterLocalId, abi_arg_in rangeStart, abi_arg_in rangeLength, abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().FindAllInstancesAsync(*reinterpret_cast(&masterLocalId), *reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllInstancesAsyncWithOptions(abi_arg_in masterLocalId, abi_arg_in rangeStart, abi_arg_in rangeLength, abi_arg_in pOptions, abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().FindAllInstancesAsync(*reinterpret_cast(&masterLocalId), *reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength), *reinterpret_cast(&pOptions))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppointmentAsync(abi_arg_in localId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetAppointmentAsync(*reinterpret_cast(&localId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppointmentInstanceAsync(abi_arg_in localId, abi_arg_in instanceStartTime, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetAppointmentInstanceAsync(*reinterpret_cast(&localId), *reinterpret_cast(&instanceStartTime))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindUnexpandedAppointmentsAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindUnexpandedAppointmentsAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindUnexpandedAppointmentsAsyncWithOptions(abi_arg_in options, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindUnexpandedAppointmentsAsync(*reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().DeleteAsync()); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsync(abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().SaveAsync()); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAppointmentAsync(abi_arg_in localId, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().DeleteAppointmentAsync(*reinterpret_cast(&localId))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAppointmentInstanceAsync(abi_arg_in localId, abi_arg_in instanceStartTime, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().DeleteAppointmentInstanceAsync(*reinterpret_cast(&localId), *reinterpret_cast(&instanceStartTime))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAppointmentAsync(abi_arg_in pAppointment, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().SaveAppointmentAsync(*reinterpret_cast(&pAppointment))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SyncManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SyncManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayColor(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsHidden(bool value) noexcept override - { - try - { - this->shim().IsHidden(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserDataAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserDataAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanCreateOrUpdateAppointments(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanCreateOrUpdateAppointments()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanCreateOrUpdateAppointments(bool value) noexcept override - { - try - { - this->shim().CanCreateOrUpdateAppointments(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanCancelMeetings(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanCancelMeetings()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanCancelMeetings(bool value) noexcept override - { - try - { - this->shim().CanCancelMeetings(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanForwardMeetings(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanForwardMeetings()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanForwardMeetings(bool value) noexcept override - { - try - { - this->shim().CanForwardMeetings(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanProposeNewTimeForMeetings(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanProposeNewTimeForMeetings()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanProposeNewTimeForMeetings(bool value) noexcept override - { - try - { - this->shim().CanProposeNewTimeForMeetings(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanUpdateMeetingResponses(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanUpdateMeetingResponses()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanUpdateMeetingResponses(bool value) noexcept override - { - try - { - this->shim().CanUpdateMeetingResponses(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanNotifyInvitees(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanNotifyInvitees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanNotifyInvitees(bool value) noexcept override - { - try - { - this->shim().CanNotifyInvitees(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MustNofityInvitees(bool * value) noexcept override - { - try - { - *value = detach(this->shim().MustNofityInvitees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MustNofityInvitees(bool value) noexcept override - { - try - { - this->shim().MustNofityInvitees(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryCreateOrUpdateAppointmentAsync(abi_arg_in appointment, bool notifyInvitees, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryCreateOrUpdateAppointmentAsync(*reinterpret_cast(&appointment), notifyInvitees)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryCancelMeetingAsync(abi_arg_in meeting, abi_arg_in subject, abi_arg_in comment, bool notifyInvitees, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryCancelMeetingAsync(*reinterpret_cast(&meeting), *reinterpret_cast(&subject), *reinterpret_cast(&comment), notifyInvitees)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryForwardMeetingAsync(abi_arg_in meeting, abi_arg_in> invitees, abi_arg_in subject, abi_arg_in forwardHeader, abi_arg_in comment, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryForwardMeetingAsync(*reinterpret_cast(&meeting), *reinterpret_cast *>(&invitees), *reinterpret_cast(&subject), *reinterpret_cast(&forwardHeader), *reinterpret_cast(&comment))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryProposeNewTimeForMeetingAsync(abi_arg_in meeting, abi_arg_in newStartTime, abi_arg_in newDuration, abi_arg_in subject, abi_arg_in comment, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryProposeNewTimeForMeetingAsync(*reinterpret_cast(&meeting), *reinterpret_cast(&newStartTime), *reinterpret_cast(&newDuration), *reinterpret_cast(&subject), *reinterpret_cast(&comment))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryUpdateMeetingResponseAsync(abi_arg_in meeting, Windows::ApplicationModel::Appointments::AppointmentParticipantResponse response, abi_arg_in subject, abi_arg_in comment, bool sendUpdate, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryUpdateMeetingResponseAsync(*reinterpret_cast(&meeting), response, *reinterpret_cast(&subject), *reinterpret_cast(&comment), sendUpdate)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RegisterSyncManagerAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().RegisterSyncManagerAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::ApplicationModel::Appointments::AppointmentCalendarSyncStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastSuccessfulSyncTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastSuccessfulSyncTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastAttemptedSyncTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastAttemptedSyncTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SyncAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SyncAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SyncStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SyncStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SyncStatusChanged(event_token token) noexcept override - { - try - { - this->shim().SyncStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Status(Windows::ApplicationModel::Appointments::AppointmentCalendarSyncStatus value) noexcept override - { - try - { - this->shim().Status(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LastSuccessfulSyncTime(abi_arg_in value) noexcept override - { - try - { - this->shim().LastSuccessfulSyncTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LastAttemptedSyncTime(abi_arg_in value) noexcept override - { - try - { - this->shim().LastAttemptedSyncTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::ApplicationModel::Appointments::AppointmentConflictType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Date(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Date()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Appointment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Appointment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExceptionProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExceptionProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDeleted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDeleted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Role(Windows::ApplicationModel::Appointments::AppointmentParticipantRole * value) noexcept override - { - try - { - *value = detach(this->shim().Role()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Role(Windows::ApplicationModel::Appointments::AppointmentParticipantRole value) noexcept override - { - try - { - this->shim().Role(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Response(Windows::ApplicationModel::Appointments::AppointmentParticipantResponse * value) noexcept override - { - try - { - *value = detach(this->shim().Response()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Response(Windows::ApplicationModel::Appointments::AppointmentParticipantResponse value) noexcept override - { - try - { - this->shim().Response(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowAddAppointmentAsync(abi_arg_in appointment, abi_arg_in selection, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ShowAddAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAddAppointmentWithPlacementAsync(abi_arg_in appointment, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ShowAddAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&selection), preferredPlacement)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowReplaceAppointmentAsync(abi_arg_in appointmentId, abi_arg_in appointment, abi_arg_in selection, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowReplaceAppointmentWithPlacementAsync(abi_arg_in appointmentId, abi_arg_in appointment, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection), preferredPlacement)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowReplaceAppointmentWithPlacementAndDateAsync(abi_arg_in appointmentId, abi_arg_in appointment, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_in instanceStartDate, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection), preferredPlacement, *reinterpret_cast(&instanceStartDate))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowRemoveAppointmentAsync(abi_arg_in appointmentId, abi_arg_in selection, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowRemoveAppointmentWithPlacementAsync(abi_arg_in appointmentId, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection), preferredPlacement)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowRemoveAppointmentWithPlacementAndDateAsync(abi_arg_in appointmentId, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_in instanceStartDate, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection), preferredPlacement, *reinterpret_cast(&instanceStartDate))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowTimeFrameAsync(abi_arg_in timeToShow, abi_arg_in duration, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ShowTimeFrameAsync(*reinterpret_cast(&timeToShow), *reinterpret_cast(&duration))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAppointmentDetailsAsync(abi_arg_in appointmentId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&appointmentId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAppointmentDetailsWithDateAsync(abi_arg_in appointmentId, abi_arg_in instanceStartDate, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&instanceStartDate))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowEditNewAppointmentAsync(abi_arg_in appointment, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ShowEditNewAppointmentAsync(*reinterpret_cast(&appointment))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestStoreAsync(Windows::ApplicationModel::Appointments::AppointmentStoreAccessType options, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestStoreAsync(options)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowAddAppointmentAsync(abi_arg_in appointment, abi_arg_in selection, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowAddAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAddAppointmentWithPlacementAsync(abi_arg_in appointment, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowAddAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&selection), preferredPlacement)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowReplaceAppointmentAsync(abi_arg_in appointmentId, abi_arg_in appointment, abi_arg_in selection, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowReplaceAppointmentWithPlacementAsync(abi_arg_in appointmentId, abi_arg_in appointment, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection), preferredPlacement)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowReplaceAppointmentWithPlacementAndDateAsync(abi_arg_in appointmentId, abi_arg_in appointment, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_in instanceStartDate, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection), preferredPlacement, *reinterpret_cast(&instanceStartDate))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowRemoveAppointmentAsync(abi_arg_in appointmentId, abi_arg_in selection, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowRemoveAppointmentWithPlacementAsync(abi_arg_in appointmentId, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection), preferredPlacement)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowRemoveAppointmentWithPlacementAndDateAsync(abi_arg_in appointmentId, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_in instanceStartDate, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection), preferredPlacement, *reinterpret_cast(&instanceStartDate))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowTimeFrameAsync(abi_arg_in timeToShow, abi_arg_in duration, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().ShowTimeFrameAsync(*reinterpret_cast(&timeToShow), *reinterpret_cast(&duration))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowAppointmentDetailsAsync(abi_arg_in appointmentId, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&appointmentId))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAppointmentDetailsWithDateAsync(abi_arg_in appointmentId, abi_arg_in instanceStartDate, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&instanceStartDate))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowEditNewAppointmentAsync(abi_arg_in appointment, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowEditNewAppointmentAsync(*reinterpret_cast(&appointment))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestStoreAsync(Windows::ApplicationModel::Appointments::AppointmentStoreAccessType options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestStoreAsync(options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForUser(abi_arg_in user, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Address(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Address()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Address(abi_arg_in value) noexcept override - { - try - { - this->shim().Address(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Reminder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reminder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BusyStatus(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BusyStatus()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sensitivity(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sensitivity()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OriginalStartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OriginalStartTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsResponseRequested(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsResponseRequested()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowNewTimeProposal(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AllowNewTimeProposal()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllDay(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AllDay()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Details(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Details()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OnlineMeetingLink(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OnlineMeetingLink()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReplyTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReplyTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Organizer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Organizer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserResponse(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserResponse()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasInvitees(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HasInvitees()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCanceledMeeting(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceledMeeting()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOrganizedByUser(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsOrganizedByUser()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Recurrence(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Recurrence()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Invitees(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Invitees()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DefaultProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChangeNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteChangeNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteChangeNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DetailsKind(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DetailsKind()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Unit(Windows::ApplicationModel::Appointments::AppointmentRecurrenceUnit * value) noexcept override - { - try - { - *value = detach(this->shim().Unit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Unit(Windows::ApplicationModel::Appointments::AppointmentRecurrenceUnit value) noexcept override - { - try - { - this->shim().Unit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Occurrences(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Occurrences()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Occurrences(abi_arg_in> value) noexcept override - { - try - { - this->shim().Occurrences(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Until(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Until()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Until(abi_arg_in> value) noexcept override - { - try - { - this->shim().Until(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Interval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Interval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Interval(uint32_t value) noexcept override - { - try - { - this->shim().Interval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DaysOfWeek(Windows::ApplicationModel::Appointments::AppointmentDaysOfWeek * value) noexcept override - { - try - { - *value = detach(this->shim().DaysOfWeek()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DaysOfWeek(Windows::ApplicationModel::Appointments::AppointmentDaysOfWeek value) noexcept override - { - try - { - this->shim().DaysOfWeek(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WeekOfMonth(Windows::ApplicationModel::Appointments::AppointmentWeekOfMonth * value) noexcept override - { - try - { - *value = detach(this->shim().WeekOfMonth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WeekOfMonth(Windows::ApplicationModel::Appointments::AppointmentWeekOfMonth value) noexcept override - { - try - { - this->shim().WeekOfMonth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Month(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Month()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Month(uint32_t value) noexcept override - { - try - { - this->shim().Month(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Day(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Day()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Day(uint32_t value) noexcept override - { - try - { - this->shim().Day(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RecurrenceType(Windows::ApplicationModel::Appointments::RecurrenceType * value) noexcept override - { - try - { - *value = detach(this->shim().RecurrenceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeZone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimeZone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TimeZone(abi_arg_in value) noexcept override - { - try - { - this->shim().TimeZone(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CalendarIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeTracker(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChangeTracker()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAppointmentCalendarAsync(abi_arg_in name, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateAppointmentCalendarAsync(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppointmentCalendarAsync(abi_arg_in calendarId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetAppointmentCalendarAsync(*reinterpret_cast(&calendarId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppointmentAsync(abi_arg_in localId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetAppointmentAsync(*reinterpret_cast(&localId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppointmentInstanceAsync(abi_arg_in localId, abi_arg_in instanceStartTime, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetAppointmentInstanceAsync(*reinterpret_cast(&localId), *reinterpret_cast(&instanceStartTime))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAppointmentCalendarsAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAppointmentCalendarsAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAppointmentCalendarsAsyncWithOptions(Windows::ApplicationModel::Appointments::FindAppointmentCalendarsOptions options, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAppointmentCalendarsAsync(options)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAppointmentsAsync(abi_arg_in rangeStart, abi_arg_in rangeLength, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAppointmentsAsync(*reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAppointmentsAsyncWithOptions(abi_arg_in rangeStart, abi_arg_in rangeLength, abi_arg_in options, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAppointmentsAsync(*reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindConflictAsync(abi_arg_in appointment, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FindConflictAsync(*reinterpret_cast(&appointment))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindConflictAsyncWithInstanceStart(abi_arg_in appointment, abi_arg_in instanceStartTime, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FindConflictAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&instanceStartTime))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveAppointmentAsync(abi_arg_in appointment, abi_arg_in destinationCalendar, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().MoveAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&destinationCalendar))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAddAppointmentAsync(abi_arg_in appointment, abi_arg_in selection, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowAddAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowReplaceAppointmentAsync(abi_arg_in localId, abi_arg_in appointment, abi_arg_in selection, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&localId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowReplaceAppointmentWithPlacementAndDateAsync(abi_arg_in localId, abi_arg_in appointment, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_in instanceStartDate, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&localId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection), preferredPlacement, *reinterpret_cast(&instanceStartDate))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowRemoveAppointmentAsync(abi_arg_in localId, abi_arg_in selection, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&localId), *reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowRemoveAppointmentWithPlacementAndDateAsync(abi_arg_in localId, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_in instanceStartDate, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&localId), *reinterpret_cast(&selection), preferredPlacement, *reinterpret_cast(&instanceStartDate))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAppointmentDetailsAsync(abi_arg_in localId, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&localId))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAppointmentDetailsWithDateAsync(abi_arg_in localId, abi_arg_in instanceStartDate, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&localId), *reinterpret_cast(&instanceStartDate))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowEditNewAppointmentAsync(abi_arg_in appointment, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowEditNewAppointmentAsync(*reinterpret_cast(&appointment))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindLocalIdsFromRoamingIdAsync(abi_arg_in roamingId, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindLocalIdsFromRoamingIdAsync(*reinterpret_cast(&roamingId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_StoreChanged(abi_arg_in> pHandler, event_token * pToken) noexcept override - { - try - { - *pToken = detach(this->shim().StoreChanged(*reinterpret_cast *>(&pHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StoreChanged(event_token token) noexcept override - { - try - { - this->shim().StoreChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAppointmentCalendarInAccountAsync(abi_arg_in name, abi_arg_in userDataAccountId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateAppointmentCalendarAsync(*reinterpret_cast(&name), *reinterpret_cast(&userDataAccountId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Appointment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Appointment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChangeType(Windows::ApplicationModel::Appointments::AppointmentStoreChangeType * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppointmentCalendar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentCalendar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcceptChanges() noexcept override - { - try - { - this->shim().AcceptChanges(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcceptChangesThrough(abi_arg_in lastChangeToAccept) noexcept override - { - try - { - this->shim().AcceptChangesThrough(*reinterpret_cast(&lastChangeToAccept)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetChangeReader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetChangeReader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Enable() noexcept override - { - try - { - this->shim().Enable(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Reset() noexcept override - { - try - { - this->shim().Reset(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CalendarIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CalendarIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FetchProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FetchProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncludeHidden(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeHidden()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncludeHidden(bool value) noexcept override - { - try - { - this->shim().IncludeHidden(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxCount(uint32_t value) noexcept override - { - try - { - this->shim().MaxCount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Appointments { - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerStatics::ShowAddAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowAddAppointmentAsync(get(appointment), get(selection), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerStatics::ShowAddAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowAddAppointmentWithPlacementAsync(get(appointment), get(selection), preferredPlacement, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerStatics::ShowReplaceAppointmentAsync(hstring_ref appointmentId, const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowReplaceAppointmentAsync(get(appointmentId), get(appointment), get(selection), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerStatics::ShowReplaceAppointmentAsync(hstring_ref appointmentId, const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowReplaceAppointmentWithPlacementAsync(get(appointmentId), get(appointment), get(selection), preferredPlacement, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerStatics::ShowReplaceAppointmentAsync(hstring_ref appointmentId, const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::Foundation::DateTime & instanceStartDate) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowReplaceAppointmentWithPlacementAndDateAsync(get(appointmentId), get(appointment), get(selection), preferredPlacement, get(instanceStartDate), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerStatics::ShowRemoveAppointmentAsync(hstring_ref appointmentId, const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowRemoveAppointmentAsync(get(appointmentId), get(selection), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerStatics::ShowRemoveAppointmentAsync(hstring_ref appointmentId, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowRemoveAppointmentWithPlacementAsync(get(appointmentId), get(selection), preferredPlacement, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerStatics::ShowRemoveAppointmentAsync(hstring_ref appointmentId, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::Foundation::DateTime & instanceStartDate) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowRemoveAppointmentWithPlacementAndDateAsync(get(appointmentId), get(selection), preferredPlacement, get(instanceStartDate), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentManagerStatics::ShowTimeFrameAsync(const Windows::Foundation::DateTime & timeToShow, const Windows::Foundation::TimeSpan & duration) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_ShowTimeFrameAsync(get(timeToShow), get(duration), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentManagerStatics2::ShowAppointmentDetailsAsync(hstring_ref appointmentId) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_ShowAppointmentDetailsAsync(get(appointmentId), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentManagerStatics2::ShowAppointmentDetailsAsync(hstring_ref appointmentId, const Windows::Foundation::DateTime & instanceStartDate) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_ShowAppointmentDetailsWithDateAsync(get(appointmentId), get(instanceStartDate), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerStatics2::ShowEditNewAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowEditNewAppointmentAsync(get(appointment), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerStatics2::RequestStoreAsync(Windows::ApplicationModel::Appointments::AppointmentStoreAccessType options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(options, put(operation))); - return operation; -} - -template Windows::ApplicationModel::Appointments::AppointmentManagerForUser impl_IAppointmentManagerStatics3::GetForUser(const Windows::System::User & user) const -{ - Windows::ApplicationModel::Appointments::AppointmentManagerForUser result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForUser(get(user), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerForUser::ShowAddAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ShowAddAppointmentAsync(get(appointment), get(selection), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerForUser::ShowAddAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ShowAddAppointmentWithPlacementAsync(get(appointment), get(selection), preferredPlacement, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerForUser::ShowReplaceAppointmentAsync(hstring_ref appointmentId, const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ShowReplaceAppointmentAsync(get(appointmentId), get(appointment), get(selection), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerForUser::ShowReplaceAppointmentAsync(hstring_ref appointmentId, const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ShowReplaceAppointmentWithPlacementAsync(get(appointmentId), get(appointment), get(selection), preferredPlacement, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerForUser::ShowReplaceAppointmentAsync(hstring_ref appointmentId, const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::Foundation::DateTime & instanceStartDate) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ShowReplaceAppointmentWithPlacementAndDateAsync(get(appointmentId), get(appointment), get(selection), preferredPlacement, get(instanceStartDate), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerForUser::ShowRemoveAppointmentAsync(hstring_ref appointmentId, const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ShowRemoveAppointmentAsync(get(appointmentId), get(selection), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerForUser::ShowRemoveAppointmentAsync(hstring_ref appointmentId, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ShowRemoveAppointmentWithPlacementAsync(get(appointmentId), get(selection), preferredPlacement, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerForUser::ShowRemoveAppointmentAsync(hstring_ref appointmentId, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::Foundation::DateTime & instanceStartDate) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ShowRemoveAppointmentWithPlacementAndDateAsync(get(appointmentId), get(selection), preferredPlacement, get(instanceStartDate), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentManagerForUser::ShowTimeFrameAsync(const Windows::Foundation::DateTime & timeToShow, const Windows::Foundation::TimeSpan & duration) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ShowTimeFrameAsync(get(timeToShow), get(duration), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentManagerForUser::ShowAppointmentDetailsAsync(hstring_ref appointmentId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ShowAppointmentDetailsAsync(get(appointmentId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentManagerForUser::ShowAppointmentDetailsAsync(hstring_ref appointmentId, const Windows::Foundation::DateTime & instanceStartDate) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ShowAppointmentDetailsWithDateAsync(get(appointmentId), get(instanceStartDate), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerForUser::ShowEditNewAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ShowEditNewAppointmentAsync(get(appointment), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentManagerForUser::RequestStoreAsync(Windows::ApplicationModel::Appointments::AppointmentStoreAccessType options) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(options, put(result))); - return result; -} - -template Windows::System::User impl_IAppointmentManagerForUser::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template hstring impl_IAppointmentParticipant::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IAppointmentParticipant::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IAppointmentParticipant::Address() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Address(put(value))); - return value; -} - -template void impl_IAppointmentParticipant::Address(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Address(get(value))); -} - -template Windows::ApplicationModel::Appointments::AppointmentParticipantRole impl_IAppointmentInvitee::Role() const -{ - Windows::ApplicationModel::Appointments::AppointmentParticipantRole value {}; - check_hresult(static_cast(static_cast(*this))->get_Role(&value)); - return value; -} - -template void impl_IAppointmentInvitee::Role(Windows::ApplicationModel::Appointments::AppointmentParticipantRole value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Role(value)); -} - -template Windows::ApplicationModel::Appointments::AppointmentParticipantResponse impl_IAppointmentInvitee::Response() const -{ - Windows::ApplicationModel::Appointments::AppointmentParticipantResponse value {}; - check_hresult(static_cast(static_cast(*this))->get_Response(&value)); - return value; -} - -template void impl_IAppointmentInvitee::Response(Windows::ApplicationModel::Appointments::AppointmentParticipantResponse value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Response(value)); -} - -template Windows::ApplicationModel::Appointments::AppointmentRecurrenceUnit impl_IAppointmentRecurrence::Unit() const -{ - Windows::ApplicationModel::Appointments::AppointmentRecurrenceUnit value {}; - check_hresult(static_cast(static_cast(*this))->get_Unit(&value)); - return value; -} - -template void impl_IAppointmentRecurrence::Unit(Windows::ApplicationModel::Appointments::AppointmentRecurrenceUnit value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Unit(value)); -} - -template Windows::Foundation::IReference impl_IAppointmentRecurrence::Occurrences() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Occurrences(put(value))); - return value; -} - -template void impl_IAppointmentRecurrence::Occurrences(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Occurrences(get(value))); -} - -template Windows::Foundation::IReference impl_IAppointmentRecurrence::Until() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Until(put(value))); - return value; -} - -template void impl_IAppointmentRecurrence::Until(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Until(get(value))); -} - -template uint32_t impl_IAppointmentRecurrence::Interval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Interval(&value)); - return value; -} - -template void impl_IAppointmentRecurrence::Interval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Interval(value)); -} - -template Windows::ApplicationModel::Appointments::AppointmentDaysOfWeek impl_IAppointmentRecurrence::DaysOfWeek() const -{ - Windows::ApplicationModel::Appointments::AppointmentDaysOfWeek value {}; - check_hresult(static_cast(static_cast(*this))->get_DaysOfWeek(&value)); - return value; -} - -template void impl_IAppointmentRecurrence::DaysOfWeek(Windows::ApplicationModel::Appointments::AppointmentDaysOfWeek value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DaysOfWeek(value)); -} - -template Windows::ApplicationModel::Appointments::AppointmentWeekOfMonth impl_IAppointmentRecurrence::WeekOfMonth() const -{ - Windows::ApplicationModel::Appointments::AppointmentWeekOfMonth value {}; - check_hresult(static_cast(static_cast(*this))->get_WeekOfMonth(&value)); - return value; -} - -template void impl_IAppointmentRecurrence::WeekOfMonth(Windows::ApplicationModel::Appointments::AppointmentWeekOfMonth value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WeekOfMonth(value)); -} - -template uint32_t impl_IAppointmentRecurrence::Month() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Month(&value)); - return value; -} - -template void impl_IAppointmentRecurrence::Month(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Month(value)); -} - -template uint32_t impl_IAppointmentRecurrence::Day() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Day(&value)); - return value; -} - -template void impl_IAppointmentRecurrence::Day(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Day(value)); -} - -template Windows::ApplicationModel::Appointments::RecurrenceType impl_IAppointmentRecurrence2::RecurrenceType() const -{ - Windows::ApplicationModel::Appointments::RecurrenceType value {}; - check_hresult(static_cast(static_cast(*this))->get_RecurrenceType(&value)); - return value; -} - -template hstring impl_IAppointmentRecurrence2::TimeZone() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TimeZone(put(value))); - return value; -} - -template void impl_IAppointmentRecurrence2::TimeZone(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TimeZone(get(value))); -} - -template hstring impl_IAppointmentRecurrence3::CalendarIdentifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CalendarIdentifier(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IAppointment::StartTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template void impl_IAppointment::StartTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartTime(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IAppointment::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template void impl_IAppointment::Duration(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Duration(get(value))); -} - -template hstring impl_IAppointment::Location() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template void impl_IAppointment::Location(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Location(get(value))); -} - -template hstring impl_IAppointment::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template void impl_IAppointment::Subject(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Subject(get(value))); -} - -template hstring impl_IAppointment::Details() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Details(put(value))); - return value; -} - -template void impl_IAppointment::Details(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Details(get(value))); -} - -template Windows::Foundation::IReference impl_IAppointment::Reminder() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Reminder(put(value))); - return value; -} - -template void impl_IAppointment::Reminder(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Reminder(get(value))); -} - -template Windows::ApplicationModel::Appointments::AppointmentOrganizer impl_IAppointment::Organizer() const -{ - Windows::ApplicationModel::Appointments::AppointmentOrganizer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Organizer(put(value))); - return value; -} - -template void impl_IAppointment::Organizer(const Windows::ApplicationModel::Appointments::AppointmentOrganizer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Organizer(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IAppointment::Invitees() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Invitees(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::AppointmentRecurrence impl_IAppointment::Recurrence() const -{ - Windows::ApplicationModel::Appointments::AppointmentRecurrence value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Recurrence(put(value))); - return value; -} - -template void impl_IAppointment::Recurrence(const Windows::ApplicationModel::Appointments::AppointmentRecurrence & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Recurrence(get(value))); -} - -template Windows::ApplicationModel::Appointments::AppointmentBusyStatus impl_IAppointment::BusyStatus() const -{ - Windows::ApplicationModel::Appointments::AppointmentBusyStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_BusyStatus(&value)); - return value; -} - -template void impl_IAppointment::BusyStatus(Windows::ApplicationModel::Appointments::AppointmentBusyStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BusyStatus(value)); -} - -template bool impl_IAppointment::AllDay() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllDay(&value)); - return value; -} - -template void impl_IAppointment::AllDay(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllDay(value)); -} - -template Windows::ApplicationModel::Appointments::AppointmentSensitivity impl_IAppointment::Sensitivity() const -{ - Windows::ApplicationModel::Appointments::AppointmentSensitivity value {}; - check_hresult(static_cast(static_cast(*this))->get_Sensitivity(&value)); - return value; -} - -template void impl_IAppointment::Sensitivity(Windows::ApplicationModel::Appointments::AppointmentSensitivity value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Sensitivity(value)); -} - -template Windows::Foundation::Uri impl_IAppointment::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template void impl_IAppointment::Uri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Uri(get(value))); -} - -template hstring impl_IAppointment2::LocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LocalId(put(value))); - return value; -} - -template hstring impl_IAppointment2::CalendarId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CalendarId(put(value))); - return value; -} - -template hstring impl_IAppointment2::RoamingId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RoamingId(put(value))); - return value; -} - -template void impl_IAppointment2::RoamingId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RoamingId(get(value))); -} - -template Windows::Foundation::IReference impl_IAppointment2::OriginalStartTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_OriginalStartTime(put(value))); - return value; -} - -template bool impl_IAppointment2::IsResponseRequested() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsResponseRequested(&value)); - return value; -} - -template void impl_IAppointment2::IsResponseRequested(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsResponseRequested(value)); -} - -template bool impl_IAppointment2::AllowNewTimeProposal() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowNewTimeProposal(&value)); - return value; -} - -template void impl_IAppointment2::AllowNewTimeProposal(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowNewTimeProposal(value)); -} - -template hstring impl_IAppointment2::OnlineMeetingLink() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OnlineMeetingLink(put(value))); - return value; -} - -template void impl_IAppointment2::OnlineMeetingLink(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OnlineMeetingLink(get(value))); -} - -template Windows::Foundation::IReference impl_IAppointment2::ReplyTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ReplyTime(put(value))); - return value; -} - -template void impl_IAppointment2::ReplyTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReplyTime(get(value))); -} - -template Windows::ApplicationModel::Appointments::AppointmentParticipantResponse impl_IAppointment2::UserResponse() const -{ - Windows::ApplicationModel::Appointments::AppointmentParticipantResponse value {}; - check_hresult(static_cast(static_cast(*this))->get_UserResponse(&value)); - return value; -} - -template void impl_IAppointment2::UserResponse(Windows::ApplicationModel::Appointments::AppointmentParticipantResponse value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UserResponse(value)); -} - -template bool impl_IAppointment2::HasInvitees() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasInvitees(&value)); - return value; -} - -template bool impl_IAppointment2::IsCanceledMeeting() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceledMeeting(&value)); - return value; -} - -template void impl_IAppointment2::IsCanceledMeeting(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsCanceledMeeting(value)); -} - -template bool impl_IAppointment2::IsOrganizedByUser() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOrganizedByUser(&value)); - return value; -} - -template void impl_IAppointment2::IsOrganizedByUser(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOrganizedByUser(value)); -} - -template uint64_t impl_IAppointment3::ChangeNumber() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeNumber(&value)); - return value; -} - -template uint64_t impl_IAppointment3::RemoteChangeNumber() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RemoteChangeNumber(&value)); - return value; -} - -template void impl_IAppointment3::RemoteChangeNumber(uint64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteChangeNumber(value)); -} - -template Windows::ApplicationModel::Appointments::AppointmentDetailsKind impl_IAppointment3::DetailsKind() const -{ - Windows::ApplicationModel::Appointments::AppointmentDetailsKind value {}; - check_hresult(static_cast(static_cast(*this))->get_DetailsKind(&value)); - return value; -} - -template void impl_IAppointment3::DetailsKind(Windows::ApplicationModel::Appointments::AppointmentDetailsKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DetailsKind(value)); -} - -template Windows::Foundation::Collections::IVector impl_IFindAppointmentsOptions::CalendarIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_CalendarIds(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IFindAppointmentsOptions::FetchProperties() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_FetchProperties(put(value))); - return value; -} - -template bool impl_IFindAppointmentsOptions::IncludeHidden() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeHidden(&value)); - return value; -} - -template void impl_IFindAppointmentsOptions::IncludeHidden(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncludeHidden(value)); -} - -template uint32_t impl_IFindAppointmentsOptions::MaxCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxCount(&value)); - return value; -} - -template void impl_IFindAppointmentsOptions::MaxCount(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxCount(value)); -} - -template Windows::UI::Color impl_IAppointmentCalendar::DisplayColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_DisplayColor(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendar::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IAppointmentCalendar::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IAppointmentCalendar::LocalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LocalId(put(value))); - return value; -} - -template bool impl_IAppointmentCalendar::IsHidden() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsHidden(&value)); - return value; -} - -template Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppReadAccess impl_IAppointmentCalendar::OtherAppReadAccess() const -{ - Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppReadAccess value {}; - check_hresult(static_cast(static_cast(*this))->get_OtherAppReadAccess(&value)); - return value; -} - -template void impl_IAppointmentCalendar::OtherAppReadAccess(Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppReadAccess value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OtherAppReadAccess(value)); -} - -template Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppWriteAccess impl_IAppointmentCalendar::OtherAppWriteAccess() const -{ - Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppWriteAccess value {}; - check_hresult(static_cast(static_cast(*this))->get_OtherAppWriteAccess(&value)); - return value; -} - -template void impl_IAppointmentCalendar::OtherAppWriteAccess(Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppWriteAccess value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OtherAppWriteAccess(value)); -} - -template hstring impl_IAppointmentCalendar::SourceDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SourceDisplayName(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::AppointmentSummaryCardView impl_IAppointmentCalendar::SummaryCardView() const -{ - Windows::ApplicationModel::Appointments::AppointmentSummaryCardView value {}; - check_hresult(static_cast(static_cast(*this))->get_SummaryCardView(&value)); - return value; -} - -template void impl_IAppointmentCalendar::SummaryCardView(Windows::ApplicationModel::Appointments::AppointmentSummaryCardView value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SummaryCardView(value)); -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentCalendar::FindAppointmentsAsync(const Windows::Foundation::DateTime & rangeStart, const Windows::Foundation::TimeSpan & rangeLength) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAppointmentsAsync(get(rangeStart), get(rangeLength), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentCalendar::FindAppointmentsAsync(const Windows::Foundation::DateTime & rangeStart, const Windows::Foundation::TimeSpan & rangeLength, const Windows::ApplicationModel::Appointments::FindAppointmentsOptions & options) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAppointmentsAsyncWithOptions(get(rangeStart), get(rangeLength), get(options), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentCalendar::FindExceptionsFromMasterAsync(hstring_ref masterLocalId) const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_FindExceptionsFromMasterAsync(get(masterLocalId), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentCalendar::FindAllInstancesAsync(hstring_ref masterLocalId, const Windows::Foundation::DateTime & rangeStart, const Windows::Foundation::TimeSpan & rangeLength) const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_FindAllInstancesAsync(get(masterLocalId), get(rangeStart), get(rangeLength), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentCalendar::FindAllInstancesAsync(hstring_ref masterLocalId, const Windows::Foundation::DateTime & rangeStart, const Windows::Foundation::TimeSpan & rangeLength, const Windows::ApplicationModel::Appointments::FindAppointmentsOptions & pOptions) const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_FindAllInstancesAsyncWithOptions(get(masterLocalId), get(rangeStart), get(rangeLength), get(pOptions), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentCalendar::GetAppointmentAsync(hstring_ref localId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetAppointmentAsync(get(localId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentCalendar::GetAppointmentInstanceAsync(hstring_ref localId, const Windows::Foundation::DateTime & instanceStartTime) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetAppointmentInstanceAsync(get(localId), get(instanceStartTime), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentCalendar::FindUnexpandedAppointmentsAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindUnexpandedAppointmentsAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentCalendar::FindUnexpandedAppointmentsAsync(const Windows::ApplicationModel::Appointments::FindAppointmentsOptions & options) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindUnexpandedAppointmentsAsyncWithOptions(get(options), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendar::DeleteAsync() const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendar::SaveAsync() const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsync(put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendar::DeleteAppointmentAsync(hstring_ref localId) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAppointmentAsync(get(localId), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendar::DeleteAppointmentInstanceAsync(hstring_ref localId, const Windows::Foundation::DateTime & instanceStartTime) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAppointmentInstanceAsync(get(localId), get(instanceStartTime), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendar::SaveAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & pAppointment) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_SaveAppointmentAsync(get(pAppointment), put(asyncAction))); - return asyncAction; -} - -template Windows::ApplicationModel::Appointments::AppointmentCalendarSyncManager impl_IAppointmentCalendar2::SyncManager() const -{ - Windows::ApplicationModel::Appointments::AppointmentCalendarSyncManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SyncManager(put(value))); - return value; -} - -template hstring impl_IAppointmentCalendar2::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template void impl_IAppointmentCalendar2::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template void impl_IAppointmentCalendar2::DisplayColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayColor(get(value))); -} - -template void impl_IAppointmentCalendar2::IsHidden(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsHidden(value)); -} - -template hstring impl_IAppointmentCalendar2::UserDataAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserDataAccountId(put(value))); - return value; -} - -template bool impl_IAppointmentCalendar2::CanCreateOrUpdateAppointments() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanCreateOrUpdateAppointments(&value)); - return value; -} - -template void impl_IAppointmentCalendar2::CanCreateOrUpdateAppointments(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanCreateOrUpdateAppointments(value)); -} - -template bool impl_IAppointmentCalendar2::CanCancelMeetings() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanCancelMeetings(&value)); - return value; -} - -template void impl_IAppointmentCalendar2::CanCancelMeetings(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanCancelMeetings(value)); -} - -template bool impl_IAppointmentCalendar2::CanForwardMeetings() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanForwardMeetings(&value)); - return value; -} - -template void impl_IAppointmentCalendar2::CanForwardMeetings(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanForwardMeetings(value)); -} - -template bool impl_IAppointmentCalendar2::CanProposeNewTimeForMeetings() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanProposeNewTimeForMeetings(&value)); - return value; -} - -template void impl_IAppointmentCalendar2::CanProposeNewTimeForMeetings(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanProposeNewTimeForMeetings(value)); -} - -template bool impl_IAppointmentCalendar2::CanUpdateMeetingResponses() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanUpdateMeetingResponses(&value)); - return value; -} - -template void impl_IAppointmentCalendar2::CanUpdateMeetingResponses(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanUpdateMeetingResponses(value)); -} - -template bool impl_IAppointmentCalendar2::CanNotifyInvitees() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanNotifyInvitees(&value)); - return value; -} - -template void impl_IAppointmentCalendar2::CanNotifyInvitees(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanNotifyInvitees(value)); -} - -template bool impl_IAppointmentCalendar2::MustNofityInvitees() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_MustNofityInvitees(&value)); - return value; -} - -template void impl_IAppointmentCalendar2::MustNofityInvitees(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MustNofityInvitees(value)); -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentCalendar2::TryCreateOrUpdateAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment, bool notifyInvitees) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryCreateOrUpdateAppointmentAsync(get(appointment), notifyInvitees, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentCalendar2::TryCancelMeetingAsync(const Windows::ApplicationModel::Appointments::Appointment & meeting, hstring_ref subject, hstring_ref comment, bool notifyInvitees) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryCancelMeetingAsync(get(meeting), get(subject), get(comment), notifyInvitees, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentCalendar2::TryForwardMeetingAsync(const Windows::ApplicationModel::Appointments::Appointment & meeting, const Windows::Foundation::Collections::IIterable & invitees, hstring_ref subject, hstring_ref forwardHeader, hstring_ref comment) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryForwardMeetingAsync(get(meeting), get(invitees), get(subject), get(forwardHeader), get(comment), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentCalendar2::TryProposeNewTimeForMeetingAsync(const Windows::ApplicationModel::Appointments::Appointment & meeting, const Windows::Foundation::DateTime & newStartTime, const Windows::Foundation::TimeSpan & newDuration, hstring_ref subject, hstring_ref comment) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryProposeNewTimeForMeetingAsync(get(meeting), get(newStartTime), get(newDuration), get(subject), get(comment), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentCalendar2::TryUpdateMeetingResponseAsync(const Windows::ApplicationModel::Appointments::Appointment & meeting, Windows::ApplicationModel::Appointments::AppointmentParticipantResponse response, hstring_ref subject, hstring_ref comment, bool sendUpdate) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryUpdateMeetingResponseAsync(get(meeting), response, get(subject), get(comment), sendUpdate, put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentCalendar3::RegisterSyncManagerAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_RegisterSyncManagerAsync(put(result))); - return result; -} - -template Windows::ApplicationModel::Appointments::AppointmentCalendarSyncStatus impl_IAppointmentCalendarSyncManager::Status() const -{ - Windows::ApplicationModel::Appointments::AppointmentCalendarSyncStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IAppointmentCalendarSyncManager::LastSuccessfulSyncTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_LastSuccessfulSyncTime(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IAppointmentCalendarSyncManager::LastAttemptedSyncTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_LastAttemptedSyncTime(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentCalendarSyncManager::SyncAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_SyncAsync(put(result))); - return result; -} - -template event_token impl_IAppointmentCalendarSyncManager::SyncStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SyncStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppointmentCalendarSyncManager::SyncStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Appointments::IAppointmentCalendarSyncManager::remove_SyncStatusChanged, SyncStatusChanged(handler)); -} - -template void impl_IAppointmentCalendarSyncManager::SyncStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SyncStatusChanged(token)); -} - -template void impl_IAppointmentCalendarSyncManager2::Status(Windows::ApplicationModel::Appointments::AppointmentCalendarSyncStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Status(value)); -} - -template void impl_IAppointmentCalendarSyncManager2::LastSuccessfulSyncTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LastSuccessfulSyncTime(get(value))); -} - -template void impl_IAppointmentCalendarSyncManager2::LastAttemptedSyncTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LastAttemptedSyncTime(get(value))); -} - -template hstring impl_IAppointmentPropertiesStatics::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::Location() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::StartTime() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::Duration() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::Reminder() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Reminder(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::BusyStatus() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BusyStatus(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::Sensitivity() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sensitivity(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::OriginalStartTime() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OriginalStartTime(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::IsResponseRequested() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IsResponseRequested(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::AllowNewTimeProposal() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AllowNewTimeProposal(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::AllDay() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AllDay(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::Details() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Details(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::OnlineMeetingLink() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OnlineMeetingLink(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::ReplyTime() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ReplyTime(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::Organizer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Organizer(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::UserResponse() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserResponse(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::HasInvitees() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HasInvitees(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::IsCanceledMeeting() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IsCanceledMeeting(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::IsOrganizedByUser() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IsOrganizedByUser(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::Recurrence() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Recurrence(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::Uri() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics::Invitees() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Invitees(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IAppointmentPropertiesStatics::DefaultProperties() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DefaultProperties(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics2::ChangeNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ChangeNumber(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics2::RemoteChangeNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteChangeNumber(put(value))); - return value; -} - -template hstring impl_IAppointmentPropertiesStatics2::DetailsKind() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DetailsKind(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::AppointmentConflictType impl_IAppointmentConflictResult::Type() const -{ - Windows::ApplicationModel::Appointments::AppointmentConflictType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IAppointmentConflictResult::Date() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Date(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::Appointment impl_IAppointmentStoreChange::Appointment() const -{ - Windows::ApplicationModel::Appointments::Appointment value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Appointment(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::AppointmentStoreChangeType impl_IAppointmentStoreChange::ChangeType() const -{ - Windows::ApplicationModel::Appointments::AppointmentStoreChangeType value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeType(&value)); - return value; -} - -template Windows::ApplicationModel::Appointments::AppointmentCalendar impl_IAppointmentStoreChange2::AppointmentCalendar() const -{ - Windows::ApplicationModel::Appointments::AppointmentCalendar value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppointmentCalendar(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentStoreChangeReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(result))); - return result; -} - -template void impl_IAppointmentStoreChangeReader::AcceptChanges() const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptChanges()); -} - -template void impl_IAppointmentStoreChangeReader::AcceptChangesThrough(const Windows::ApplicationModel::Appointments::AppointmentStoreChange & lastChangeToAccept) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptChangesThrough(get(lastChangeToAccept))); -} - -template Windows::ApplicationModel::Appointments::AppointmentStoreChangeReader impl_IAppointmentStoreChangeTracker::GetChangeReader() const -{ - Windows::ApplicationModel::Appointments::AppointmentStoreChangeReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetChangeReader(put(value))); - return value; -} - -template void impl_IAppointmentStoreChangeTracker::Enable() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Enable()); -} - -template void impl_IAppointmentStoreChangeTracker::Reset() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Reset()); -} - -template Windows::ApplicationModel::Appointments::AppointmentStoreChangedDeferral impl_IAppointmentStoreChangedEventArgs::GetDeferral() const -{ - Windows::ApplicationModel::Appointments::AppointmentStoreChangedDeferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -template void impl_IAppointmentStoreChangedDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::ApplicationModel::Appointments::AppointmentStoreChangeTracker impl_IAppointmentStore::ChangeTracker() const -{ - Windows::ApplicationModel::Appointments::AppointmentStoreChangeTracker value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChangeTracker(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::CreateAppointmentCalendarAsync(hstring_ref name) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateAppointmentCalendarAsync(get(name), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::GetAppointmentCalendarAsync(hstring_ref calendarId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetAppointmentCalendarAsync(get(calendarId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::GetAppointmentAsync(hstring_ref localId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetAppointmentAsync(get(localId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::GetAppointmentInstanceAsync(hstring_ref localId, const Windows::Foundation::DateTime & instanceStartTime) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetAppointmentInstanceAsync(get(localId), get(instanceStartTime), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentStore::FindAppointmentCalendarsAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAppointmentCalendarsAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentStore::FindAppointmentCalendarsAsync(Windows::ApplicationModel::Appointments::FindAppointmentCalendarsOptions options) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAppointmentCalendarsAsyncWithOptions(options, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentStore::FindAppointmentsAsync(const Windows::Foundation::DateTime & rangeStart, const Windows::Foundation::TimeSpan & rangeLength) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAppointmentsAsync(get(rangeStart), get(rangeLength), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentStore::FindAppointmentsAsync(const Windows::Foundation::DateTime & rangeStart, const Windows::Foundation::TimeSpan & rangeLength, const Windows::ApplicationModel::Appointments::FindAppointmentsOptions & options) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAppointmentsAsyncWithOptions(get(rangeStart), get(rangeLength), get(options), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::FindConflictAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FindConflictAsync(get(appointment), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::FindConflictAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::DateTime & instanceStartTime) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FindConflictAsyncWithInstanceStart(get(appointment), get(instanceStartTime), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentStore::MoveAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::ApplicationModel::Appointments::AppointmentCalendar & destinationCalendar) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_MoveAppointmentAsync(get(appointment), get(destinationCalendar), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::ShowAddAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowAddAppointmentAsync(get(appointment), get(selection), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::ShowReplaceAppointmentAsync(hstring_ref localId, const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowReplaceAppointmentAsync(get(localId), get(appointment), get(selection), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::ShowReplaceAppointmentAsync(hstring_ref localId, const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::Foundation::DateTime & instanceStartDate) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowReplaceAppointmentWithPlacementAndDateAsync(get(localId), get(appointment), get(selection), preferredPlacement, get(instanceStartDate), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::ShowRemoveAppointmentAsync(hstring_ref localId, const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowRemoveAppointmentAsync(get(localId), get(selection), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::ShowRemoveAppointmentAsync(hstring_ref localId, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::Foundation::DateTime & instanceStartDate) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowRemoveAppointmentWithPlacementAndDateAsync(get(localId), get(selection), preferredPlacement, get(instanceStartDate), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentStore::ShowAppointmentDetailsAsync(hstring_ref localId) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_ShowAppointmentDetailsAsync(get(localId), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncAction impl_IAppointmentStore::ShowAppointmentDetailsAsync(hstring_ref localId, const Windows::Foundation::DateTime & instanceStartDate) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_ShowAppointmentDetailsWithDateAsync(get(localId), get(instanceStartDate), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore::ShowEditNewAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowEditNewAppointmentAsync(get(appointment), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppointmentStore::FindLocalIdsFromRoamingIdAsync(hstring_ref roamingId) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindLocalIdsFromRoamingIdAsync(get(roamingId), put(operation))); - return operation; -} - -template event_token impl_IAppointmentStore2::StoreChanged(const Windows::Foundation::TypedEventHandler & pHandler) const -{ - event_token pToken {}; - check_hresult(static_cast(static_cast(*this))->add_StoreChanged(get(pHandler), &pToken)); - return pToken; -} - -template event_revoker impl_IAppointmentStore2::StoreChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & pHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Appointments::IAppointmentStore2::remove_StoreChanged, StoreChanged(pHandler)); -} - -template void impl_IAppointmentStore2::StoreChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StoreChanged(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IAppointmentStore2::CreateAppointmentCalendarAsync(hstring_ref name, hstring_ref userDataAccountId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateAppointmentCalendarInAccountAsync(get(name), get(userDataAccountId), put(operation))); - return operation; -} - -template Windows::ApplicationModel::Appointments::Appointment impl_IAppointmentException::Appointment() const -{ - Windows::ApplicationModel::Appointments::Appointment value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Appointment(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAppointmentException::ExceptionProperties() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ExceptionProperties(put(value))); - return value; -} - -template bool impl_IAppointmentException::IsDeleted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDeleted(&value)); - return value; -} - -inline Appointment::Appointment() : - Appointment(activate_instance()) -{} - -inline AppointmentInvitee::AppointmentInvitee() : - AppointmentInvitee(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation AppointmentManager::ShowAddAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection) -{ - return get_activation_factory().ShowAddAppointmentAsync(appointment, selection); -} - -inline Windows::Foundation::IAsyncOperation AppointmentManager::ShowAddAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) -{ - return get_activation_factory().ShowAddAppointmentAsync(appointment, selection, preferredPlacement); -} - -inline Windows::Foundation::IAsyncOperation AppointmentManager::ShowReplaceAppointmentAsync(hstring_ref appointmentId, const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection) -{ - return get_activation_factory().ShowReplaceAppointmentAsync(appointmentId, appointment, selection); -} - -inline Windows::Foundation::IAsyncOperation AppointmentManager::ShowReplaceAppointmentAsync(hstring_ref appointmentId, const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) -{ - return get_activation_factory().ShowReplaceAppointmentAsync(appointmentId, appointment, selection, preferredPlacement); -} - -inline Windows::Foundation::IAsyncOperation AppointmentManager::ShowReplaceAppointmentAsync(hstring_ref appointmentId, const Windows::ApplicationModel::Appointments::Appointment & appointment, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::Foundation::DateTime & instanceStartDate) -{ - return get_activation_factory().ShowReplaceAppointmentAsync(appointmentId, appointment, selection, preferredPlacement, instanceStartDate); -} - -inline Windows::Foundation::IAsyncOperation AppointmentManager::ShowRemoveAppointmentAsync(hstring_ref appointmentId, const Windows::Foundation::Rect & selection) -{ - return get_activation_factory().ShowRemoveAppointmentAsync(appointmentId, selection); -} - -inline Windows::Foundation::IAsyncOperation AppointmentManager::ShowRemoveAppointmentAsync(hstring_ref appointmentId, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) -{ - return get_activation_factory().ShowRemoveAppointmentAsync(appointmentId, selection, preferredPlacement); -} - -inline Windows::Foundation::IAsyncOperation AppointmentManager::ShowRemoveAppointmentAsync(hstring_ref appointmentId, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::Foundation::DateTime & instanceStartDate) -{ - return get_activation_factory().ShowRemoveAppointmentAsync(appointmentId, selection, preferredPlacement, instanceStartDate); -} - -inline Windows::Foundation::IAsyncAction AppointmentManager::ShowTimeFrameAsync(const Windows::Foundation::DateTime & timeToShow, const Windows::Foundation::TimeSpan & duration) -{ - return get_activation_factory().ShowTimeFrameAsync(timeToShow, duration); -} - -inline Windows::Foundation::IAsyncAction AppointmentManager::ShowAppointmentDetailsAsync(hstring_ref appointmentId) -{ - return get_activation_factory().ShowAppointmentDetailsAsync(appointmentId); -} - -inline Windows::Foundation::IAsyncAction AppointmentManager::ShowAppointmentDetailsAsync(hstring_ref appointmentId, const Windows::Foundation::DateTime & instanceStartDate) -{ - return get_activation_factory().ShowAppointmentDetailsAsync(appointmentId, instanceStartDate); -} - -inline Windows::Foundation::IAsyncOperation AppointmentManager::ShowEditNewAppointmentAsync(const Windows::ApplicationModel::Appointments::Appointment & appointment) -{ - return get_activation_factory().ShowEditNewAppointmentAsync(appointment); -} - -inline Windows::Foundation::IAsyncOperation AppointmentManager::RequestStoreAsync(Windows::ApplicationModel::Appointments::AppointmentStoreAccessType options) -{ - return get_activation_factory().RequestStoreAsync(options); -} - -inline Windows::ApplicationModel::Appointments::AppointmentManagerForUser AppointmentManager::GetForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetForUser(user); -} - -inline AppointmentOrganizer::AppointmentOrganizer() : - AppointmentOrganizer(activate_instance()) -{} - -inline hstring AppointmentProperties::Subject() -{ - return get_activation_factory().Subject(); -} - -inline hstring AppointmentProperties::Location() -{ - return get_activation_factory().Location(); -} - -inline hstring AppointmentProperties::StartTime() -{ - return get_activation_factory().StartTime(); -} - -inline hstring AppointmentProperties::Duration() -{ - return get_activation_factory().Duration(); -} - -inline hstring AppointmentProperties::Reminder() -{ - return get_activation_factory().Reminder(); -} - -inline hstring AppointmentProperties::BusyStatus() -{ - return get_activation_factory().BusyStatus(); -} - -inline hstring AppointmentProperties::Sensitivity() -{ - return get_activation_factory().Sensitivity(); -} - -inline hstring AppointmentProperties::OriginalStartTime() -{ - return get_activation_factory().OriginalStartTime(); -} - -inline hstring AppointmentProperties::IsResponseRequested() -{ - return get_activation_factory().IsResponseRequested(); -} - -inline hstring AppointmentProperties::AllowNewTimeProposal() -{ - return get_activation_factory().AllowNewTimeProposal(); -} - -inline hstring AppointmentProperties::AllDay() -{ - return get_activation_factory().AllDay(); -} - -inline hstring AppointmentProperties::Details() -{ - return get_activation_factory().Details(); -} - -inline hstring AppointmentProperties::OnlineMeetingLink() -{ - return get_activation_factory().OnlineMeetingLink(); -} - -inline hstring AppointmentProperties::ReplyTime() -{ - return get_activation_factory().ReplyTime(); -} - -inline hstring AppointmentProperties::Organizer() -{ - return get_activation_factory().Organizer(); -} - -inline hstring AppointmentProperties::UserResponse() -{ - return get_activation_factory().UserResponse(); -} - -inline hstring AppointmentProperties::HasInvitees() -{ - return get_activation_factory().HasInvitees(); -} - -inline hstring AppointmentProperties::IsCanceledMeeting() -{ - return get_activation_factory().IsCanceledMeeting(); -} - -inline hstring AppointmentProperties::IsOrganizedByUser() -{ - return get_activation_factory().IsOrganizedByUser(); -} - -inline hstring AppointmentProperties::Recurrence() -{ - return get_activation_factory().Recurrence(); -} - -inline hstring AppointmentProperties::Uri() -{ - return get_activation_factory().Uri(); -} - -inline hstring AppointmentProperties::Invitees() -{ - return get_activation_factory().Invitees(); -} - -inline Windows::Foundation::Collections::IVector AppointmentProperties::DefaultProperties() -{ - return get_activation_factory().DefaultProperties(); -} - -inline hstring AppointmentProperties::ChangeNumber() -{ - return get_activation_factory().ChangeNumber(); -} - -inline hstring AppointmentProperties::RemoteChangeNumber() -{ - return get_activation_factory().RemoteChangeNumber(); -} - -inline hstring AppointmentProperties::DetailsKind() -{ - return get_activation_factory().DetailsKind(); -} - -inline AppointmentRecurrence::AppointmentRecurrence() : - AppointmentRecurrence(activate_instance()) -{} - -inline FindAppointmentsOptions::FindAppointmentsOptions() : - FindAppointmentsOptions(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Background.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Background.h deleted file mode 100644 index ebdb4bdb1..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Background.h +++ /dev/null @@ -1,3078 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Devices.Sms.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Storage.Provider.3.h" -#include "internal/Windows.Devices.Bluetooth.Background.3.h" -#include "internal/Windows.Networking.Sockets.3.h" -#include "internal/Windows.Networking.3.h" -#include "internal/Windows.Devices.Bluetooth.GenericAttributeProfile.3.h" -#include "internal/Windows.Devices.Bluetooth.3.h" -#include "internal/Windows.Devices.Bluetooth.Advertisement.3.h" -#include "internal/Windows.Devices.Sensors.3.h" -#include "internal/Windows.UI.Notifications.3.h" -#include "internal/Windows.ApplicationModel.Calls.Background.3.h" -#include "internal/Windows.Devices.SmartCards.3.h" -#include "internal/Windows.ApplicationModel.Background.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::ApplicationModel::Background { - -template BackgroundTaskCanceledEventHandler::BackgroundTaskCanceledEventHandler(L lambda) : - BackgroundTaskCanceledEventHandler(impl::make_delegate, BackgroundTaskCanceledEventHandler>(std::forward(lambda))) -{} - -template BackgroundTaskCanceledEventHandler::BackgroundTaskCanceledEventHandler(F * function) : - BackgroundTaskCanceledEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template BackgroundTaskCanceledEventHandler::BackgroundTaskCanceledEventHandler(O * object, M method) : - BackgroundTaskCanceledEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void BackgroundTaskCanceledEventHandler::operator()(const Windows::ApplicationModel::Background::IBackgroundTaskInstance & sender, Windows::ApplicationModel::Background::BackgroundTaskCancellationReason reason) const -{ - check_hresult((*this)->abi_Invoke(get(sender), reason)); -} - -template BackgroundTaskCompletedEventHandler::BackgroundTaskCompletedEventHandler(L lambda) : - BackgroundTaskCompletedEventHandler(impl::make_delegate, BackgroundTaskCompletedEventHandler>(std::forward(lambda))) -{} - -template BackgroundTaskCompletedEventHandler::BackgroundTaskCompletedEventHandler(F * function) : - BackgroundTaskCompletedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template BackgroundTaskCompletedEventHandler::BackgroundTaskCompletedEventHandler(O * object, M method) : - BackgroundTaskCompletedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void BackgroundTaskCompletedEventHandler::operator()(const Windows::ApplicationModel::Background::BackgroundTaskRegistration & sender, const Windows::ApplicationModel::Background::BackgroundTaskCompletedEventArgs & args) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(args))); -} - -template BackgroundTaskProgressEventHandler::BackgroundTaskProgressEventHandler(L lambda) : - BackgroundTaskProgressEventHandler(impl::make_delegate, BackgroundTaskProgressEventHandler>(std::forward(lambda))) -{} - -template BackgroundTaskProgressEventHandler::BackgroundTaskProgressEventHandler(F * function) : - BackgroundTaskProgressEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template BackgroundTaskProgressEventHandler::BackgroundTaskProgressEventHandler(O * object, M method) : - BackgroundTaskProgressEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void BackgroundTaskProgressEventHandler::operator()(const Windows::ApplicationModel::Background::BackgroundTaskRegistration & sender, const Windows::ApplicationModel::Background::BackgroundTaskProgressEventArgs & args) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(args))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SubscribedActivities(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SubscribedActivities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedActivities(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedActivities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t reportIntervalInMilliseconds, abi_arg_out activityTrigger) noexcept override - { - try - { - *activityTrigger = detach(this->shim().Create(reportIntervalInMilliseconds)); - return S_OK; - } - catch (...) - { - *activityTrigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAccessStatus(Windows::ApplicationModel::Background::AlarmAccessStatus * status) noexcept override - { - try - { - *status = detach(this->shim().GetAccessStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAsyncWithArguments(abi_arg_in arguments, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAsync(*reinterpret_cast(&arguments))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Arguments(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Arguments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessForApplicationAsync(abi_arg_in applicationId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestAccessAsync(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAccess() noexcept override - { - try - { - this->shim().RemoveAccess(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAccessForApplication(abi_arg_in applicationId) noexcept override - { - try - { - this->shim().RemoveAccess(*reinterpret_cast(&applicationId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAccessStatus(Windows::ApplicationModel::Background::BackgroundAccessStatus * status) noexcept override - { - try - { - *status = detach(this->shim().GetAccessStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAccessStatusForApplication(abi_arg_in applicationId, Windows::ApplicationModel::Background::BackgroundAccessStatus * status) noexcept override - { - try - { - *status = detach(this->shim().GetAccessStatus(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Run(abi_arg_in taskInstance) noexcept override - { - try - { - this->shim().Run(*reinterpret_cast(&taskInstance)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_TaskEntryPoint(abi_arg_in value) noexcept override - { - try - { - this->shim().TaskEntryPoint(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TaskEntryPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TaskEntryPoint()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetTrigger(abi_arg_in trigger) noexcept override - { - try - { - this->shim().SetTrigger(*reinterpret_cast(&trigger)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddCondition(abi_arg_in condition) noexcept override - { - try - { - this->shim().AddCondition(*reinterpret_cast(&condition)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Register(abi_arg_out task) noexcept override - { - try - { - *task = detach(this->shim().Register()); - return S_OK; - } - catch (...) - { - *task = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_CancelOnConditionLoss(bool value) noexcept override - { - try - { - this->shim().CancelOnConditionLoss(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CancelOnConditionLoss(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CancelOnConditionLoss()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_IsNetworkRequested(bool value) noexcept override - { - try - { - this->shim().IsNetworkRequested(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsNetworkRequested(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsNetworkRequested()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InstanceId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().InstanceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckResult() noexcept override - { - try - { - this->shim().CheckResult(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InstanceId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().InstanceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Task(abi_arg_out task) noexcept override - { - try - { - *task = detach(this->shim().Task()); - return S_OK; - } - catch (...) - { - *task = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Progress(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Progress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Progress(uint32_t value) noexcept override - { - try - { - this->shim().Progress(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TriggerDetails(abi_arg_out triggerDetails) noexcept override - { - try - { - *triggerDetails = detach(this->shim().TriggerDetails()); - return S_OK; - } - catch (...) - { - *triggerDetails = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Canceled(abi_arg_in cancelHandler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().Canceled(*reinterpret_cast(&cancelHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Canceled(event_token cookie) noexcept override - { - try - { - this->shim().Canceled(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuspendedCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SuspendedCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetThrottleCount(Windows::ApplicationModel::Background::BackgroundTaskThrottleCounter counter, uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetThrottleCount(counter)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InstanceId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().InstanceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Progress(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Progress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TaskId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TaskId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Progress(abi_arg_in handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().Progress(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Progress(event_token cookie) noexcept override - { - try - { - this->shim().Progress(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Completed(abi_arg_in handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().Completed(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Completed(event_token cookie) noexcept override - { - try - { - this->shim().Completed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Unregister(bool cancelTask) noexcept override - { - try - { - this->shim().Unregister(cancelTask); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Trigger(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Trigger()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllTasks(abi_arg_out> tasks) noexcept override - { - try - { - *tasks = detach(this->shim().AllTasks()); - return S_OK; - } - catch (...) - { - *tasks = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentBackgroundWorkCost(Windows::ApplicationModel::Background::BackgroundWorkCostValue * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentBackgroundWorkCost()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Advertisement(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Advertisement()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MinSamplingInterval(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinSamplingInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxSamplingInterval(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxSamplingInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinOutOfRangeTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinOutOfRangeTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxOutOfRangeTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxOutOfRangeTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SignalStrengthFilter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SignalStrengthFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SignalStrengthFilter(abi_arg_in value) noexcept override - { - try - { - this->shim().SignalStrengthFilter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdvertisementFilter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdvertisementFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AdvertisementFilter(abi_arg_in value) noexcept override - { - try - { - this->shim().AdvertisementFilter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UpdateTarget(Windows::Storage::Provider::CachedFileTarget * value) noexcept override - { - try - { - *value = detach(this->shim().UpdateTarget()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpdateRequest(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UpdateRequest()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanRequestUserInput(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanRequestUserInput()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WaitInterval(abi_arg_out waitInterval) noexcept override - { - try - { - *waitInterval = detach(this->shim().WaitInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in waitInterval, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(*reinterpret_cast(&waitInterval))); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanMaintainConnection(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanMaintainConnection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaintainConnection(bool * value) noexcept override - { - try - { - *value = detach(this->shim().MaintainConnection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaintainConnection(bool value) noexcept override - { - try - { - this->shim().MaintainConnection(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> deviceChangeTrigger) noexcept override - { - try - { - *deviceChangeTrigger = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *deviceChangeTrigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TriggerQualifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TriggerQualifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OneShot(bool * oneShot) noexcept override - { - try - { - *oneShot = detach(this->shim().OneShot()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in triggerQualifier, bool oneShot, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(*reinterpret_cast(&triggerQualifier), oneShot)); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAsyncSimple(abi_arg_in deviceId, abi_arg_in expectedDuration, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAsync(*reinterpret_cast(&deviceId), *reinterpret_cast(&expectedDuration))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAsyncWithArguments(abi_arg_in deviceId, abi_arg_in expectedDuration, abi_arg_in arguments, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAsync(*reinterpret_cast(&deviceId), *reinterpret_cast(&expectedDuration), *reinterpret_cast(&arguments))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAsyncSimple(abi_arg_in deviceId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAsyncWithArguments(abi_arg_in deviceId, abi_arg_in arguments, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAsync(*reinterpret_cast(&deviceId), *reinterpret_cast(&arguments))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Characteristic(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Characteristic()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in characteristic, abi_arg_out gattCharacteristicNotificationTrigger) noexcept override - { - try - { - *gattCharacteristicNotificationTrigger = detach(this->shim().Create(*reinterpret_cast(&characteristic))); - return S_OK; - } - catch (...) - { - *gattCharacteristicNotificationTrigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TriggerType(Windows::ApplicationModel::Background::LocationTriggerType * triggerType) noexcept override - { - try - { - *triggerType = detach(this->shim().TriggerType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::ApplicationModel::Background::LocationTriggerType triggerType, abi_arg_out locationTrigger) noexcept override - { - try - { - *locationTrigger = detach(this->shim().Create(triggerType)); - return S_OK; - } - catch (...) - { - *locationTrigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FreshnessTime(uint32_t * freshnessTime) noexcept override - { - try - { - *freshnessTime = detach(this->shim().FreshnessTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OneShot(bool * oneShot) noexcept override - { - try - { - *oneShot = detach(this->shim().OneShot()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t freshnessTime, bool oneShot, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(freshnessTime, oneShot)); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAsyncWithArguments(abi_arg_in arguments, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAsync(*reinterpret_cast(&arguments))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in networkAccountId, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(*reinterpret_cast(&networkAccountId))); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OneShot(bool * value) noexcept override - { - try - { - *value = detach(this->shim().OneShot()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TriggerType(Windows::ApplicationModel::Calls::Background::PhoneTriggerType * result) noexcept override - { - try - { - *result = detach(this->shim().TriggerType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::ApplicationModel::Calls::Background::PhoneTriggerType type, bool oneShot, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(type, oneShot)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in applicationId, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InboundConnection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InboundConnection()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutboundConnection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutboundConnection()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowMultipleConnections(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowMultipleConnections()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowMultipleConnections(bool value) noexcept override - { - try - { - this->shim().AllowMultipleConnections(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtectionLevel(Windows::Networking::Sockets::SocketProtectionLevel * value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProtectionLevel(Windows::Networking::Sockets::SocketProtectionLevel value) noexcept override - { - try - { - this->shim().ProtectionLevel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteHostName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteHostName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteHostName(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteHostName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in threshold, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(*reinterpret_cast(&threshold))); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TriggerType(Windows::Devices::SmartCards::SmartCardTriggerType * triggerType) noexcept override - { - try - { - *triggerType = detach(this->shim().TriggerType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::Devices::SmartCards::SmartCardTriggerType triggerType, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(triggerType)); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in filterRules, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&filterRules))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsWakeFromLowPowerSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsWakeFromLowPowerSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in storageLibrary, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&storageLibrary))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromLibraries(abi_arg_in> storageLibraries, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromLibraries(*reinterpret_cast *>(&storageLibraries))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConditionType(Windows::ApplicationModel::Background::SystemConditionType * conditionType) noexcept override - { - try - { - *conditionType = detach(this->shim().ConditionType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::ApplicationModel::Background::SystemConditionType conditionType, abi_arg_out condition) noexcept override - { - try - { - *condition = detach(this->shim().Create(conditionType)); - return S_OK; - } - catch (...) - { - *condition = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OneShot(bool * oneShot) noexcept override - { - try - { - *oneShot = detach(this->shim().OneShot()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TriggerType(Windows::ApplicationModel::Background::SystemTriggerType * triggerType) noexcept override - { - try - { - *triggerType = detach(this->shim().TriggerType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::ApplicationModel::Background::SystemTriggerType triggerType, bool oneShot, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(triggerType, oneShot)); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FreshnessTime(uint32_t * freshnessTime) noexcept override - { - try - { - *freshnessTime = detach(this->shim().FreshnessTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OneShot(bool * oneShot) noexcept override - { - try - { - *oneShot = detach(this->shim().OneShot()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t freshnessTime, bool oneShot, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(freshnessTime, oneShot)); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in applicationId, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in applicationId, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::UI::Notifications::NotificationKinds notificationKinds, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().Create(notificationKinds)); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Background { - -template Windows::Foundation::Collections::ValueSet impl_IApplicationTriggerDetails::Arguments() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Arguments(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBackgroundExecutionManagerStatics::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBackgroundExecutionManagerStatics::RequestAccessAsync(hstring_ref applicationId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessForApplicationAsync(get(applicationId), put(operation))); - return operation; -} - -template void impl_IBackgroundExecutionManagerStatics::RemoveAccess() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveAccess()); -} - -template void impl_IBackgroundExecutionManagerStatics::RemoveAccess(hstring_ref applicationId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveAccessForApplication(get(applicationId))); -} - -template Windows::ApplicationModel::Background::BackgroundAccessStatus impl_IBackgroundExecutionManagerStatics::GetAccessStatus() const -{ - Windows::ApplicationModel::Background::BackgroundAccessStatus status {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAccessStatus(&status)); - return status; -} - -template Windows::ApplicationModel::Background::BackgroundAccessStatus impl_IBackgroundExecutionManagerStatics::GetAccessStatus(hstring_ref applicationId) const -{ - Windows::ApplicationModel::Background::BackgroundAccessStatus status {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAccessStatusForApplication(get(applicationId), &status)); - return status; -} - -template GUID impl_IBackgroundTaskInstance::InstanceId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_InstanceId(&value)); - return value; -} - -template Windows::ApplicationModel::Background::BackgroundTaskRegistration impl_IBackgroundTaskInstance::Task() const -{ - Windows::ApplicationModel::Background::BackgroundTaskRegistration task { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Task(put(task))); - return task; -} - -template uint32_t impl_IBackgroundTaskInstance::Progress() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Progress(&value)); - return value; -} - -template void impl_IBackgroundTaskInstance::Progress(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Progress(value)); -} - -template Windows::IInspectable impl_IBackgroundTaskInstance::TriggerDetails() const -{ - Windows::IInspectable triggerDetails; - check_hresult(static_cast(static_cast(*this))->get_TriggerDetails(put(triggerDetails))); - return triggerDetails; -} - -template event_token impl_IBackgroundTaskInstance::Canceled(const Windows::ApplicationModel::Background::BackgroundTaskCanceledEventHandler & cancelHandler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_Canceled(get(cancelHandler), &cookie)); - return cookie; -} - -template event_revoker impl_IBackgroundTaskInstance::Canceled(auto_revoke_t, const Windows::ApplicationModel::Background::BackgroundTaskCanceledEventHandler & cancelHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Background::IBackgroundTaskInstance::remove_Canceled, Canceled(cancelHandler)); -} - -template void impl_IBackgroundTaskInstance::Canceled(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Canceled(cookie)); -} - -template uint32_t impl_IBackgroundTaskInstance::SuspendedCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SuspendedCount(&value)); - return value; -} - -template Windows::ApplicationModel::Background::BackgroundTaskDeferral impl_IBackgroundTaskInstance::GetDeferral() const -{ - Windows::ApplicationModel::Background::BackgroundTaskDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template Windows::ApplicationModel::Background::BackgroundWorkCostValue impl_IBackgroundWorkCostStatics::CurrentBackgroundWorkCost() const -{ - Windows::ApplicationModel::Background::BackgroundWorkCostValue value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentBackgroundWorkCost(&value)); - return value; -} - -template void impl_IBackgroundTaskDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template uint32_t impl_IBackgroundTaskInstance2::GetThrottleCount(Windows::ApplicationModel::Background::BackgroundTaskThrottleCounter counter) const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetThrottleCount(counter, &value)); - return value; -} - -template Windows::System::User impl_IBackgroundTaskInstance4::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template void impl_IBackgroundTask::Run(const Windows::ApplicationModel::Background::IBackgroundTaskInstance & taskInstance) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Run(get(taskInstance))); -} - -template GUID impl_IBackgroundTaskRegistration::TaskId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TaskId(&value)); - return value; -} - -template hstring impl_IBackgroundTaskRegistration::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template event_token impl_IBackgroundTaskRegistration::Progress(const Windows::ApplicationModel::Background::BackgroundTaskProgressEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_Progress(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IBackgroundTaskRegistration::Progress(auto_revoke_t, const Windows::ApplicationModel::Background::BackgroundTaskProgressEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Background::IBackgroundTaskRegistration::remove_Progress, Progress(handler)); -} - -template void impl_IBackgroundTaskRegistration::Progress(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Progress(cookie)); -} - -template event_token impl_IBackgroundTaskRegistration::Completed(const Windows::ApplicationModel::Background::BackgroundTaskCompletedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_Completed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IBackgroundTaskRegistration::Completed(auto_revoke_t, const Windows::ApplicationModel::Background::BackgroundTaskCompletedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Background::IBackgroundTaskRegistration::remove_Completed, Completed(handler)); -} - -template void impl_IBackgroundTaskRegistration::Completed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Completed(cookie)); -} - -template void impl_IBackgroundTaskRegistration::Unregister(bool cancelTask) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Unregister(cancelTask)); -} - -template Windows::ApplicationModel::Background::IBackgroundTrigger impl_IBackgroundTaskRegistration2::Trigger() const -{ - Windows::ApplicationModel::Background::IBackgroundTrigger value; - check_hresult(static_cast(static_cast(*this))->get_Trigger(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IApplicationTrigger::RequestAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IApplicationTrigger::RequestAsync(const Windows::Foundation::Collections::ValueSet & arguments) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAsyncWithArguments(get(arguments), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaProcessingTrigger::RequestAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaProcessingTrigger::RequestAsync(const Windows::Foundation::Collections::ValueSet & arguments) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAsyncWithArguments(get(arguments), put(result))); - return result; -} - -template Windows::Foundation::Collections::IMapView impl_IBackgroundTaskRegistrationStatics::AllTasks() const -{ - Windows::Foundation::Collections::IMapView tasks; - check_hresult(static_cast(static_cast(*this))->get_AllTasks(put(tasks))); - return tasks; -} - -template void impl_IBackgroundTaskBuilder::TaskEntryPoint(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TaskEntryPoint(get(value))); -} - -template hstring impl_IBackgroundTaskBuilder::TaskEntryPoint() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TaskEntryPoint(put(value))); - return value; -} - -template void impl_IBackgroundTaskBuilder::SetTrigger(const Windows::ApplicationModel::Background::IBackgroundTrigger & trigger) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetTrigger(get(trigger))); -} - -template void impl_IBackgroundTaskBuilder::AddCondition(const Windows::ApplicationModel::Background::IBackgroundCondition & condition) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddCondition(get(condition))); -} - -template void impl_IBackgroundTaskBuilder::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template hstring impl_IBackgroundTaskBuilder::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::ApplicationModel::Background::BackgroundTaskRegistration impl_IBackgroundTaskBuilder::Register() const -{ - Windows::ApplicationModel::Background::BackgroundTaskRegistration task { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Register(put(task))); - return task; -} - -template void impl_IBackgroundTaskBuilder2::CancelOnConditionLoss(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CancelOnConditionLoss(value)); -} - -template bool impl_IBackgroundTaskBuilder2::CancelOnConditionLoss() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CancelOnConditionLoss(&value)); - return value; -} - -template void impl_IBackgroundTaskBuilder3::IsNetworkRequested(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsNetworkRequested(value)); -} - -template bool impl_IBackgroundTaskBuilder3::IsNetworkRequested() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsNetworkRequested(&value)); - return value; -} - -template GUID impl_IBackgroundTaskCompletedEventArgs::InstanceId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_InstanceId(&value)); - return value; -} - -template void impl_IBackgroundTaskCompletedEventArgs::CheckResult() const -{ - check_hresult(static_cast(static_cast(*this))->abi_CheckResult()); -} - -template GUID impl_IBackgroundTaskProgressEventArgs::InstanceId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_InstanceId(&value)); - return value; -} - -template uint32_t impl_IBackgroundTaskProgressEventArgs::Progress() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Progress(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IContentPrefetchTrigger::WaitInterval() const -{ - Windows::Foundation::TimeSpan waitInterval {}; - check_hresult(static_cast(static_cast(*this))->get_WaitInterval(put(waitInterval))); - return waitInterval; -} - -template Windows::ApplicationModel::Background::ContentPrefetchTrigger impl_IContentPrefetchTriggerFactory::Create(const Windows::Foundation::TimeSpan & waitInterval) const -{ - Windows::ApplicationModel::Background::ContentPrefetchTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(waitInterval), put(trigger))); - return trigger; -} - -template Windows::ApplicationModel::Background::SmsMessageReceivedTrigger impl_ISmsMessageReceivedTriggerFactory::Create(const Windows::Devices::Sms::SmsFilterRules & filterRules) const -{ - Windows::ApplicationModel::Background::SmsMessageReceivedTrigger value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(filterRules), put(value))); - return value; -} - -template Windows::ApplicationModel::Background::StorageLibraryContentChangedTrigger impl_IStorageLibraryContentChangedTriggerStatics::Create(const Windows::Storage::StorageLibrary & storageLibrary) const -{ - Windows::ApplicationModel::Background::StorageLibraryContentChangedTrigger result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(storageLibrary), put(result))); - return result; -} - -template Windows::ApplicationModel::Background::StorageLibraryContentChangedTrigger impl_IStorageLibraryContentChangedTriggerStatics::CreateFromLibraries(const Windows::Foundation::Collections::IIterable & storageLibraries) const -{ - Windows::ApplicationModel::Background::StorageLibraryContentChangedTrigger result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromLibraries(get(storageLibraries), put(result))); - return result; -} - -template bool impl_ISystemTrigger::OneShot() const -{ - bool oneShot {}; - check_hresult(static_cast(static_cast(*this))->get_OneShot(&oneShot)); - return oneShot; -} - -template Windows::ApplicationModel::Background::SystemTriggerType impl_ISystemTrigger::TriggerType() const -{ - Windows::ApplicationModel::Background::SystemTriggerType triggerType {}; - check_hresult(static_cast(static_cast(*this))->get_TriggerType(&triggerType)); - return triggerType; -} - -template Windows::ApplicationModel::Background::SystemTrigger impl_ISystemTriggerFactory::Create(Windows::ApplicationModel::Background::SystemTriggerType triggerType, bool oneShot) const -{ - Windows::ApplicationModel::Background::SystemTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(triggerType, oneShot, put(trigger))); - return trigger; -} - -template Windows::ApplicationModel::Background::SystemConditionType impl_ISystemCondition::ConditionType() const -{ - Windows::ApplicationModel::Background::SystemConditionType conditionType {}; - check_hresult(static_cast(static_cast(*this))->get_ConditionType(&conditionType)); - return conditionType; -} - -template Windows::ApplicationModel::Background::SystemCondition impl_ISystemConditionFactory::Create(Windows::ApplicationModel::Background::SystemConditionType conditionType) const -{ - Windows::ApplicationModel::Background::SystemCondition condition { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(conditionType, put(condition))); - return condition; -} - -template hstring impl_INetworkOperatorNotificationTrigger::NetworkAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NetworkAccountId(put(value))); - return value; -} - -template Windows::ApplicationModel::Background::NetworkOperatorNotificationTrigger impl_INetworkOperatorNotificationTriggerFactory::Create(hstring_ref networkAccountId) const -{ - Windows::ApplicationModel::Background::NetworkOperatorNotificationTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(networkAccountId), put(trigger))); - return trigger; -} - -template hstring impl_IDeviceManufacturerNotificationTrigger::TriggerQualifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TriggerQualifier(put(value))); - return value; -} - -template bool impl_IDeviceManufacturerNotificationTrigger::OneShot() const -{ - bool oneShot {}; - check_hresult(static_cast(static_cast(*this))->get_OneShot(&oneShot)); - return oneShot; -} - -template Windows::ApplicationModel::Background::DeviceManufacturerNotificationTrigger impl_IDeviceManufacturerNotificationTriggerFactory::Create(hstring_ref triggerQualifier, bool oneShot) const -{ - Windows::ApplicationModel::Background::DeviceManufacturerNotificationTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(triggerQualifier), oneShot, put(trigger))); - return trigger; -} - -template Windows::Storage::Provider::CachedFileTarget impl_ICachedFileUpdaterTriggerDetails::UpdateTarget() const -{ - Windows::Storage::Provider::CachedFileTarget value {}; - check_hresult(static_cast(static_cast(*this))->get_UpdateTarget(&value)); - return value; -} - -template Windows::Storage::Provider::FileUpdateRequest impl_ICachedFileUpdaterTriggerDetails::UpdateRequest() const -{ - Windows::Storage::Provider::FileUpdateRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UpdateRequest(put(value))); - return value; -} - -template bool impl_ICachedFileUpdaterTriggerDetails::CanRequestUserInput() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanRequestUserInput(&value)); - return value; -} - -template uint32_t impl_ITimeTrigger::FreshnessTime() const -{ - uint32_t freshnessTime {}; - check_hresult(static_cast(static_cast(*this))->get_FreshnessTime(&freshnessTime)); - return freshnessTime; -} - -template bool impl_ITimeTrigger::OneShot() const -{ - bool oneShot {}; - check_hresult(static_cast(static_cast(*this))->get_OneShot(&oneShot)); - return oneShot; -} - -template Windows::ApplicationModel::Background::TimeTrigger impl_ITimeTriggerFactory::Create(uint32_t freshnessTime, bool oneShot) const -{ - Windows::ApplicationModel::Background::TimeTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(freshnessTime, oneShot, put(trigger))); - return trigger; -} - -template uint32_t impl_IMaintenanceTrigger::FreshnessTime() const -{ - uint32_t freshnessTime {}; - check_hresult(static_cast(static_cast(*this))->get_FreshnessTime(&freshnessTime)); - return freshnessTime; -} - -template bool impl_IMaintenanceTrigger::OneShot() const -{ - bool oneShot {}; - check_hresult(static_cast(static_cast(*this))->get_OneShot(&oneShot)); - return oneShot; -} - -template Windows::ApplicationModel::Background::MaintenanceTrigger impl_IMaintenanceTriggerFactory::Create(uint32_t freshnessTime, bool oneShot) const -{ - Windows::ApplicationModel::Background::MaintenanceTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(freshnessTime, oneShot, put(trigger))); - return trigger; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceUseTrigger::RequestAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAsyncSimple(get(deviceId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceUseTrigger::RequestAsync(hstring_ref deviceId, hstring_ref arguments) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAsyncWithArguments(get(deviceId), get(arguments), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceServicingTrigger::RequestAsync(hstring_ref deviceId, const Windows::Foundation::TimeSpan & expectedDuration) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAsyncSimple(get(deviceId), get(expectedDuration), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceServicingTrigger::RequestAsync(hstring_ref deviceId, const Windows::Foundation::TimeSpan & expectedDuration, hstring_ref arguments) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAsyncWithArguments(get(deviceId), get(expectedDuration), get(arguments), put(result))); - return result; -} - -template Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation impl_IRfcommConnectionTrigger::InboundConnection() const -{ - Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InboundConnection(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::Background::RfcommOutboundConnectionInformation impl_IRfcommConnectionTrigger::OutboundConnection() const -{ - Windows::Devices::Bluetooth::Background::RfcommOutboundConnectionInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OutboundConnection(put(value))); - return value; -} - -template bool impl_IRfcommConnectionTrigger::AllowMultipleConnections() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowMultipleConnections(&value)); - return value; -} - -template void impl_IRfcommConnectionTrigger::AllowMultipleConnections(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowMultipleConnections(value)); -} - -template Windows::Networking::Sockets::SocketProtectionLevel impl_IRfcommConnectionTrigger::ProtectionLevel() const -{ - Windows::Networking::Sockets::SocketProtectionLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtectionLevel(&value)); - return value; -} - -template void impl_IRfcommConnectionTrigger::ProtectionLevel(Windows::Networking::Sockets::SocketProtectionLevel value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProtectionLevel(value)); -} - -template Windows::Networking::HostName impl_IRfcommConnectionTrigger::RemoteHostName() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoteHostName(put(value))); - return value; -} - -template void impl_IRfcommConnectionTrigger::RemoteHostName(const Windows::Networking::HostName & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteHostName(get(value))); -} - -template hstring impl_IDeviceConnectionChangeTrigger::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template bool impl_IDeviceConnectionChangeTrigger::CanMaintainConnection() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanMaintainConnection(&value)); - return value; -} - -template bool impl_IDeviceConnectionChangeTrigger::MaintainConnection() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_MaintainConnection(&value)); - return value; -} - -template void impl_IDeviceConnectionChangeTrigger::MaintainConnection(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaintainConnection(value)); -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceConnectionChangeTriggerStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation deviceChangeTrigger; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(deviceChangeTrigger))); - return deviceChangeTrigger; -} - -template Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic impl_IGattCharacteristicNotificationTrigger::Characteristic() const -{ - Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Characteristic(put(value))); - return value; -} - -template Windows::ApplicationModel::Background::GattCharacteristicNotificationTrigger impl_IGattCharacteristicNotificationTriggerFactory::Create(const Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic & characteristic) const -{ - Windows::ApplicationModel::Background::GattCharacteristicNotificationTrigger gattCharacteristicNotificationTrigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(characteristic), put(gattCharacteristicNotificationTrigger))); - return gattCharacteristicNotificationTrigger; -} - -template Windows::Foundation::TimeSpan impl_IBluetoothLEAdvertisementWatcherTrigger::MinSamplingInterval() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MinSamplingInterval(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IBluetoothLEAdvertisementWatcherTrigger::MaxSamplingInterval() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxSamplingInterval(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IBluetoothLEAdvertisementWatcherTrigger::MinOutOfRangeTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MinOutOfRangeTimeout(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IBluetoothLEAdvertisementWatcherTrigger::MaxOutOfRangeTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxOutOfRangeTimeout(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothSignalStrengthFilter impl_IBluetoothLEAdvertisementWatcherTrigger::SignalStrengthFilter() const -{ - Windows::Devices::Bluetooth::BluetoothSignalStrengthFilter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SignalStrengthFilter(put(value))); - return value; -} - -template void impl_IBluetoothLEAdvertisementWatcherTrigger::SignalStrengthFilter(const Windows::Devices::Bluetooth::BluetoothSignalStrengthFilter & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SignalStrengthFilter(get(value))); -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter impl_IBluetoothLEAdvertisementWatcherTrigger::AdvertisementFilter() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AdvertisementFilter(put(value))); - return value; -} - -template void impl_IBluetoothLEAdvertisementWatcherTrigger::AdvertisementFilter(const Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AdvertisementFilter(get(value))); -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement impl_IBluetoothLEAdvertisementPublisherTrigger::Advertisement() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Advertisement(put(value))); - return value; -} - -template Windows::ApplicationModel::Background::LocationTriggerType impl_ILocationTrigger::TriggerType() const -{ - Windows::ApplicationModel::Background::LocationTriggerType triggerType {}; - check_hresult(static_cast(static_cast(*this))->get_TriggerType(&triggerType)); - return triggerType; -} - -template Windows::ApplicationModel::Background::LocationTrigger impl_ILocationTriggerFactory::Create(Windows::ApplicationModel::Background::LocationTriggerType triggerType) const -{ - Windows::ApplicationModel::Background::LocationTrigger locationTrigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(triggerType, put(locationTrigger))); - return locationTrigger; -} - -template Windows::Foundation::Collections::IVector impl_IActivitySensorTrigger::SubscribedActivities() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SubscribedActivities(put(value))); - return value; -} - -template uint32_t impl_IActivitySensorTrigger::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IActivitySensorTrigger::SupportedActivities() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedActivities(put(value))); - return value; -} - -template uint32_t impl_IActivitySensorTrigger::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template Windows::ApplicationModel::Background::ActivitySensorTrigger impl_IActivitySensorTriggerFactory::Create(uint32_t reportIntervalInMilliseconds) const -{ - Windows::ApplicationModel::Background::ActivitySensorTrigger activityTrigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(reportIntervalInMilliseconds, put(activityTrigger))); - return activityTrigger; -} - -template Windows::ApplicationModel::Background::SensorDataThresholdTrigger impl_ISensorDataThresholdTriggerFactory::Create(const Windows::Devices::Sensors::ISensorDataThreshold & threshold) const -{ - Windows::ApplicationModel::Background::SensorDataThresholdTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(threshold), put(trigger))); - return trigger; -} - -template bool impl_ISocketActivityTrigger::IsWakeFromLowPowerSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsWakeFromLowPowerSupported(&value)); - return value; -} - -template Windows::ApplicationModel::Background::PushNotificationTrigger impl_IPushNotificationTriggerFactory::Create(hstring_ref applicationId) const -{ - Windows::ApplicationModel::Background::PushNotificationTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(applicationId), put(trigger))); - return trigger; -} - -template Windows::ApplicationModel::Background::ToastNotificationHistoryChangedTrigger impl_IToastNotificationHistoryChangedTriggerFactory::Create(hstring_ref applicationId) const -{ - Windows::ApplicationModel::Background::ToastNotificationHistoryChangedTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(applicationId), put(trigger))); - return trigger; -} - -template Windows::ApplicationModel::Background::ToastNotificationActionTrigger impl_IToastNotificationActionTriggerFactory::Create(hstring_ref applicationId) const -{ - Windows::ApplicationModel::Background::ToastNotificationActionTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(applicationId), put(trigger))); - return trigger; -} - -template Windows::ApplicationModel::Background::UserNotificationChangedTrigger impl_IUserNotificationChangedTriggerFactory::Create(Windows::UI::Notifications::NotificationKinds notificationKinds) const -{ - Windows::ApplicationModel::Background::UserNotificationChangedTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(notificationKinds, put(trigger))); - return trigger; -} - -template Windows::Foundation::IAsyncOperation impl_IAlarmApplicationManagerStatics::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(operation))); - return operation; -} - -template Windows::ApplicationModel::Background::AlarmAccessStatus impl_IAlarmApplicationManagerStatics::GetAccessStatus() const -{ - Windows::ApplicationModel::Background::AlarmAccessStatus status {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAccessStatus(&status)); - return status; -} - -template bool impl_IPhoneTrigger::OneShot() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_OneShot(&value)); - return value; -} - -template Windows::ApplicationModel::Calls::Background::PhoneTriggerType impl_IPhoneTrigger::TriggerType() const -{ - Windows::ApplicationModel::Calls::Background::PhoneTriggerType result {}; - check_hresult(static_cast(static_cast(*this))->get_TriggerType(&result)); - return result; -} - -template Windows::ApplicationModel::Background::PhoneTrigger impl_IPhoneTriggerFactory::Create(Windows::ApplicationModel::Calls::Background::PhoneTriggerType type, bool oneShot) const -{ - Windows::ApplicationModel::Background::PhoneTrigger result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(type, oneShot, put(result))); - return result; -} - -template Windows::Devices::SmartCards::SmartCardTriggerType impl_ISmartCardTrigger::TriggerType() const -{ - Windows::Devices::SmartCards::SmartCardTriggerType triggerType {}; - check_hresult(static_cast(static_cast(*this))->get_TriggerType(&triggerType)); - return triggerType; -} - -template Windows::ApplicationModel::Background::SmartCardTrigger impl_ISmartCardTriggerFactory::Create(Windows::Devices::SmartCards::SmartCardTriggerType triggerType) const -{ - Windows::ApplicationModel::Background::SmartCardTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(triggerType, put(trigger))); - return trigger; -} - -inline ActivitySensorTrigger::ActivitySensorTrigger(uint32_t reportIntervalInMilliseconds) : - ActivitySensorTrigger(get_activation_factory().Create(reportIntervalInMilliseconds)) -{} - -inline Windows::Foundation::IAsyncOperation AlarmApplicationManager::RequestAccessAsync() -{ - return get_activation_factory().RequestAccessAsync(); -} - -inline Windows::ApplicationModel::Background::AlarmAccessStatus AlarmApplicationManager::GetAccessStatus() -{ - return get_activation_factory().GetAccessStatus(); -} - -inline ApplicationTrigger::ApplicationTrigger() : - ApplicationTrigger(activate_instance()) -{} - -inline AppointmentStoreNotificationTrigger::AppointmentStoreNotificationTrigger() : - AppointmentStoreNotificationTrigger(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation BackgroundExecutionManager::RequestAccessAsync() -{ - return get_activation_factory().RequestAccessAsync(); -} - -inline Windows::Foundation::IAsyncOperation BackgroundExecutionManager::RequestAccessAsync(hstring_ref applicationId) -{ - return get_activation_factory().RequestAccessAsync(applicationId); -} - -inline void BackgroundExecutionManager::RemoveAccess() -{ - get_activation_factory().RemoveAccess(); -} - -inline void BackgroundExecutionManager::RemoveAccess(hstring_ref applicationId) -{ - get_activation_factory().RemoveAccess(applicationId); -} - -inline Windows::ApplicationModel::Background::BackgroundAccessStatus BackgroundExecutionManager::GetAccessStatus() -{ - return get_activation_factory().GetAccessStatus(); -} - -inline Windows::ApplicationModel::Background::BackgroundAccessStatus BackgroundExecutionManager::GetAccessStatus(hstring_ref applicationId) -{ - return get_activation_factory().GetAccessStatus(applicationId); -} - -inline BackgroundTaskBuilder::BackgroundTaskBuilder() : - BackgroundTaskBuilder(activate_instance()) -{} - -inline Windows::Foundation::Collections::IMapView BackgroundTaskRegistration::AllTasks() -{ - return get_activation_factory().AllTasks(); -} - -inline Windows::ApplicationModel::Background::BackgroundWorkCostValue BackgroundWorkCost::CurrentBackgroundWorkCost() -{ - return get_activation_factory().CurrentBackgroundWorkCost(); -} - -inline BluetoothLEAdvertisementPublisherTrigger::BluetoothLEAdvertisementPublisherTrigger() : - BluetoothLEAdvertisementPublisherTrigger(activate_instance()) -{} - -inline BluetoothLEAdvertisementWatcherTrigger::BluetoothLEAdvertisementWatcherTrigger() : - BluetoothLEAdvertisementWatcherTrigger(activate_instance()) -{} - -inline CachedFileUpdaterTrigger::CachedFileUpdaterTrigger() : - CachedFileUpdaterTrigger(activate_instance()) -{} - -inline ChatMessageNotificationTrigger::ChatMessageNotificationTrigger() : - ChatMessageNotificationTrigger(activate_instance()) -{} - -inline ChatMessageReceivedNotificationTrigger::ChatMessageReceivedNotificationTrigger() : - ChatMessageReceivedNotificationTrigger(activate_instance()) -{} - -inline CommunicationBlockingAppSetAsActiveTrigger::CommunicationBlockingAppSetAsActiveTrigger() : - CommunicationBlockingAppSetAsActiveTrigger(activate_instance()) -{} - -inline ContactStoreNotificationTrigger::ContactStoreNotificationTrigger() : - ContactStoreNotificationTrigger(activate_instance()) -{} - -inline ContentPrefetchTrigger::ContentPrefetchTrigger() : - ContentPrefetchTrigger(activate_instance()) -{} - -inline ContentPrefetchTrigger::ContentPrefetchTrigger(const Windows::Foundation::TimeSpan & waitInterval) : - ContentPrefetchTrigger(get_activation_factory().Create(waitInterval)) -{} - -inline Windows::Foundation::IAsyncOperation DeviceConnectionChangeTrigger::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline DeviceManufacturerNotificationTrigger::DeviceManufacturerNotificationTrigger(hstring_ref triggerQualifier, bool oneShot) : - DeviceManufacturerNotificationTrigger(get_activation_factory().Create(triggerQualifier, oneShot)) -{} - -inline DeviceServicingTrigger::DeviceServicingTrigger() : - DeviceServicingTrigger(activate_instance()) -{} - -inline DeviceUseTrigger::DeviceUseTrigger() : - DeviceUseTrigger(activate_instance()) -{} - -inline EmailStoreNotificationTrigger::EmailStoreNotificationTrigger() : - EmailStoreNotificationTrigger(activate_instance()) -{} - -inline GattCharacteristicNotificationTrigger::GattCharacteristicNotificationTrigger(const Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic & characteristic) : - GattCharacteristicNotificationTrigger(get_activation_factory().Create(characteristic)) -{} - -inline LocationTrigger::LocationTrigger(Windows::ApplicationModel::Background::LocationTriggerType triggerType) : - LocationTrigger(get_activation_factory().Create(triggerType)) -{} - -inline MaintenanceTrigger::MaintenanceTrigger(uint32_t freshnessTime, bool oneShot) : - MaintenanceTrigger(get_activation_factory().Create(freshnessTime, oneShot)) -{} - -inline MediaProcessingTrigger::MediaProcessingTrigger() : - MediaProcessingTrigger(activate_instance()) -{} - -inline MobileBroadbandDeviceServiceNotificationTrigger::MobileBroadbandDeviceServiceNotificationTrigger() : - MobileBroadbandDeviceServiceNotificationTrigger(activate_instance()) -{} - -inline MobileBroadbandPinLockStateChangeTrigger::MobileBroadbandPinLockStateChangeTrigger() : - MobileBroadbandPinLockStateChangeTrigger(activate_instance()) -{} - -inline MobileBroadbandRadioStateChangeTrigger::MobileBroadbandRadioStateChangeTrigger() : - MobileBroadbandRadioStateChangeTrigger(activate_instance()) -{} - -inline MobileBroadbandRegistrationStateChangeTrigger::MobileBroadbandRegistrationStateChangeTrigger() : - MobileBroadbandRegistrationStateChangeTrigger(activate_instance()) -{} - -inline NetworkOperatorHotspotAuthenticationTrigger::NetworkOperatorHotspotAuthenticationTrigger() : - NetworkOperatorHotspotAuthenticationTrigger(activate_instance()) -{} - -inline NetworkOperatorNotificationTrigger::NetworkOperatorNotificationTrigger(hstring_ref networkAccountId) : - NetworkOperatorNotificationTrigger(get_activation_factory().Create(networkAccountId)) -{} - -inline PhoneTrigger::PhoneTrigger(Windows::ApplicationModel::Calls::Background::PhoneTriggerType type, bool oneShot) : - PhoneTrigger(get_activation_factory().Create(type, oneShot)) -{} - -inline PushNotificationTrigger::PushNotificationTrigger() : - PushNotificationTrigger(activate_instance()) -{} - -inline PushNotificationTrigger::PushNotificationTrigger(hstring_ref applicationId) : - PushNotificationTrigger(get_activation_factory().Create(applicationId)) -{} - -inline RcsEndUserMessageAvailableTrigger::RcsEndUserMessageAvailableTrigger() : - RcsEndUserMessageAvailableTrigger(activate_instance()) -{} - -inline RfcommConnectionTrigger::RfcommConnectionTrigger() : - RfcommConnectionTrigger(activate_instance()) -{} - -inline SecondaryAuthenticationFactorAuthenticationTrigger::SecondaryAuthenticationFactorAuthenticationTrigger() : - SecondaryAuthenticationFactorAuthenticationTrigger(activate_instance()) -{} - -inline SensorDataThresholdTrigger::SensorDataThresholdTrigger(const Windows::Devices::Sensors::ISensorDataThreshold & threshold) : - SensorDataThresholdTrigger(get_activation_factory().Create(threshold)) -{} - -inline SmartCardTrigger::SmartCardTrigger(Windows::Devices::SmartCards::SmartCardTriggerType triggerType) : - SmartCardTrigger(get_activation_factory().Create(triggerType)) -{} - -inline SmsMessageReceivedTrigger::SmsMessageReceivedTrigger(const Windows::Devices::Sms::SmsFilterRules & filterRules) : - SmsMessageReceivedTrigger(get_activation_factory().Create(filterRules)) -{} - -inline SocketActivityTrigger::SocketActivityTrigger() : - SocketActivityTrigger(activate_instance()) -{} - -inline Windows::ApplicationModel::Background::StorageLibraryContentChangedTrigger StorageLibraryContentChangedTrigger::Create(const Windows::Storage::StorageLibrary & storageLibrary) -{ - return get_activation_factory().Create(storageLibrary); -} - -inline Windows::ApplicationModel::Background::StorageLibraryContentChangedTrigger StorageLibraryContentChangedTrigger::CreateFromLibraries(const Windows::Foundation::Collections::IIterable & storageLibraries) -{ - return get_activation_factory().CreateFromLibraries(storageLibraries); -} - -inline SystemCondition::SystemCondition(Windows::ApplicationModel::Background::SystemConditionType conditionType) : - SystemCondition(get_activation_factory().Create(conditionType)) -{} - -inline SystemTrigger::SystemTrigger(Windows::ApplicationModel::Background::SystemTriggerType triggerType, bool oneShot) : - SystemTrigger(get_activation_factory().Create(triggerType, oneShot)) -{} - -inline TimeTrigger::TimeTrigger(uint32_t freshnessTime, bool oneShot) : - TimeTrigger(get_activation_factory().Create(freshnessTime, oneShot)) -{} - -inline ToastNotificationActionTrigger::ToastNotificationActionTrigger() : - ToastNotificationActionTrigger(activate_instance()) -{} - -inline ToastNotificationActionTrigger::ToastNotificationActionTrigger(hstring_ref applicationId) : - ToastNotificationActionTrigger(get_activation_factory().Create(applicationId)) -{} - -inline ToastNotificationHistoryChangedTrigger::ToastNotificationHistoryChangedTrigger() : - ToastNotificationHistoryChangedTrigger(activate_instance()) -{} - -inline ToastNotificationHistoryChangedTrigger::ToastNotificationHistoryChangedTrigger(hstring_ref applicationId) : - ToastNotificationHistoryChangedTrigger(get_activation_factory().Create(applicationId)) -{} - -inline UserNotificationChangedTrigger::UserNotificationChangedTrigger(Windows::UI::Notifications::NotificationKinds notificationKinds) : - UserNotificationChangedTrigger(get_activation_factory().Create(notificationKinds)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Calls.Background.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Calls.Background.h deleted file mode 100644 index c14ec1a65..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Calls.Background.h +++ /dev/null @@ -1,258 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.ApplicationModel.Calls.Background.3.h" -#include "Windows.ApplicationModel.Calls.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PhoneNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhoneNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().LineId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallBlockedReason(Windows::ApplicationModel::Calls::Background::PhoneCallBlockedReason * value) noexcept override - { - try - { - *value = detach(this->shim().CallBlockedReason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequestId(GUID * result) noexcept override - { - try - { - *result = detach(this->shim().RequestId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneNumber(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().PhoneNumber()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LineId(GUID * result) noexcept override - { - try - { - *result = detach(this->shim().LineId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChangeType(Windows::ApplicationModel::Calls::Background::PhoneLineChangeKind * result) noexcept override - { - try - { - *result = detach(this->shim().ChangeType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HasLinePropertyChanged(Windows::ApplicationModel::Calls::Background::PhoneLineProperties lineProperty, bool * result) noexcept override - { - try - { - *result = detach(this->shim().HasLinePropertyChanged(lineProperty)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LineId(GUID * result) noexcept override - { - try - { - *result = detach(this->shim().LineId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VoicemailCount(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().VoicemailCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OperatorMessage(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().OperatorMessage()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Calls::Background { - -template hstring impl_IPhoneCallBlockedTriggerDetails::PhoneNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PhoneNumber(put(value))); - return value; -} - -template GUID impl_IPhoneCallBlockedTriggerDetails::LineId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_LineId(&value)); - return value; -} - -template Windows::ApplicationModel::Calls::Background::PhoneCallBlockedReason impl_IPhoneCallBlockedTriggerDetails::CallBlockedReason() const -{ - Windows::ApplicationModel::Calls::Background::PhoneCallBlockedReason value {}; - check_hresult(static_cast(static_cast(*this))->get_CallBlockedReason(&value)); - return value; -} - -template GUID impl_IPhoneCallOriginDataRequestTriggerDetails::RequestId() const -{ - GUID result {}; - check_hresult(static_cast(static_cast(*this))->get_RequestId(&result)); - return result; -} - -template hstring impl_IPhoneCallOriginDataRequestTriggerDetails::PhoneNumber() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_PhoneNumber(put(result))); - return result; -} - -template GUID impl_IPhoneNewVoicemailMessageTriggerDetails::LineId() const -{ - GUID result {}; - check_hresult(static_cast(static_cast(*this))->get_LineId(&result)); - return result; -} - -template int32_t impl_IPhoneNewVoicemailMessageTriggerDetails::VoicemailCount() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->get_VoicemailCount(&result)); - return result; -} - -template hstring impl_IPhoneNewVoicemailMessageTriggerDetails::OperatorMessage() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_OperatorMessage(put(result))); - return result; -} - -template GUID impl_IPhoneLineChangedTriggerDetails::LineId() const -{ - GUID result {}; - check_hresult(static_cast(static_cast(*this))->get_LineId(&result)); - return result; -} - -template Windows::ApplicationModel::Calls::Background::PhoneLineChangeKind impl_IPhoneLineChangedTriggerDetails::ChangeType() const -{ - Windows::ApplicationModel::Calls::Background::PhoneLineChangeKind result {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeType(&result)); - return result; -} - -template bool impl_IPhoneLineChangedTriggerDetails::HasLinePropertyChanged(Windows::ApplicationModel::Calls::Background::PhoneLineProperties lineProperty) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_HasLinePropertyChanged(lineProperty, &result)); - return result; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Calls.Provider.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Calls.Provider.h deleted file mode 100644 index 8761d6a6c..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Calls.Provider.h +++ /dev/null @@ -1,337 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Calls.Provider.3.h" -#include "Windows.ApplicationModel.Calls.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Category(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Category()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Category(abi_arg_in value) noexcept override - { - try - { - this->shim().Category(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CategoryDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CategoryDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CategoryDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().CategoryDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Location(abi_arg_in value) noexcept override - { - try - { - this->shim().Location(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayPicture(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayPicture()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayPicture(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayPicture(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsCurrentAppActiveCallOriginApp(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCurrentAppActiveCallOriginApp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowPhoneCallOriginSettingsUI() noexcept override - { - try - { - this->shim().ShowPhoneCallOriginSettingsUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetCallOrigin(GUID requestId, abi_arg_in callOrigin) noexcept override - { - try - { - this->shim().SetCallOrigin(requestId, *reinterpret_cast(&callOrigin)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestSetAsActiveCallOriginAppAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestSetAsActiveCallOriginAppAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Calls::Provider { - -template hstring impl_IPhoneCallOrigin::Category() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Category(put(value))); - return value; -} - -template void impl_IPhoneCallOrigin::Category(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Category(get(value))); -} - -template hstring impl_IPhoneCallOrigin::CategoryDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CategoryDescription(put(value))); - return value; -} - -template void impl_IPhoneCallOrigin::CategoryDescription(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CategoryDescription(get(value))); -} - -template hstring impl_IPhoneCallOrigin::Location() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template void impl_IPhoneCallOrigin::Location(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Location(get(value))); -} - -template hstring impl_IPhoneCallOrigin2::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IPhoneCallOrigin2::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template Windows::Storage::StorageFile impl_IPhoneCallOrigin3::DisplayPicture() const -{ - Windows::Storage::StorageFile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisplayPicture(put(value))); - return value; -} - -template void impl_IPhoneCallOrigin3::DisplayPicture(const Windows::Storage::StorageFile & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayPicture(get(value))); -} - -template bool impl_IPhoneCallOriginManagerStatics::IsCurrentAppActiveCallOriginApp() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCurrentAppActiveCallOriginApp(&value)); - return value; -} - -template void impl_IPhoneCallOriginManagerStatics::ShowPhoneCallOriginSettingsUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowPhoneCallOriginSettingsUI()); -} - -template void impl_IPhoneCallOriginManagerStatics::SetCallOrigin(GUID requestId, const Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin & callOrigin) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetCallOrigin(requestId, get(callOrigin))); -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneCallOriginManagerStatics2::RequestSetAsActiveCallOriginAppAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestSetAsActiveCallOriginAppAsync(put(result))); - return result; -} - -inline PhoneCallOrigin::PhoneCallOrigin() : - PhoneCallOrigin(activate_instance()) -{} - -inline bool PhoneCallOriginManager::IsCurrentAppActiveCallOriginApp() -{ - return get_activation_factory().IsCurrentAppActiveCallOriginApp(); -} - -inline void PhoneCallOriginManager::ShowPhoneCallOriginSettingsUI() -{ - get_activation_factory().ShowPhoneCallOriginSettingsUI(); -} - -inline void PhoneCallOriginManager::SetCallOrigin(GUID requestId, const Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin & callOrigin) -{ - get_activation_factory().SetCallOrigin(requestId, callOrigin); -} - -inline Windows::Foundation::IAsyncOperation PhoneCallOriginManager::RequestSetAsActiveCallOriginAppAsync() -{ - return get_activation_factory().RequestSetAsActiveCallOriginAppAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Calls.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Calls.h deleted file mode 100644 index c9f85d4ff..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Calls.h +++ /dev/null @@ -1,3893 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.ApplicationModel.Contacts.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.ApplicationModel.Calls.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AcceptedMedia(Windows::ApplicationModel::Calls::VoipPhoneCallMedia * value) noexcept override - { - try - { - *value = detach(this->shim().AcceptedMedia()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RejectReason(Windows::ApplicationModel::Calls::VoipPhoneCallRejectReason * value) noexcept override - { - try - { - *value = detach(this->shim().RejectReason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_State(Windows::ApplicationModel::Calls::VoipPhoneCallState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Dismiss() noexcept override - { - try - { - this->shim().Dismiss(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EndRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EndRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EndRequested(event_token token) noexcept override - { - try - { - this->shim().EndRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token token) noexcept override - { - try - { - this->shim().Closed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallTitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CallTitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CallTitle(abi_arg_in value) noexcept override - { - try - { - this->shim().CallTitle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Muted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Muted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BlockUnknownNumbers(bool * value) noexcept override - { - try - { - *value = detach(this->shim().BlockUnknownNumbers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BlockUnknownNumbers(bool value) noexcept override - { - try - { - this->shim().BlockUnknownNumbers(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BlockPrivateNumbers(bool * value) noexcept override - { - try - { - *value = detach(this->shim().BlockPrivateNumbers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BlockPrivateNumbers(bool value) noexcept override - { - try - { - this->shim().BlockPrivateNumbers(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetCallBlockingListAsync(abi_arg_in> phoneNumberList, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SetCallBlockingListAsync(*reinterpret_cast *>(&phoneNumberList))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Address(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Address()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Address(abi_arg_in value) noexcept override - { - try - { - this->shim().Address(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Duration(abi_arg_in> value) noexcept override - { - try - { - this->shim().Duration(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCallerIdBlocked(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCallerIdBlocked()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsCallerIdBlocked(bool value) noexcept override - { - try - { - this->shim().IsCallerIdBlocked(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEmergency(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEmergency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsEmergency(bool value) noexcept override - { - try - { - this->shim().IsEmergency(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsIncoming(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIncoming()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsIncoming(bool value) noexcept override - { - try - { - this->shim().IsIncoming(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMissed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMissed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsMissed(bool value) noexcept override - { - try - { - this->shim().IsMissed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRinging(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRinging()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsRinging(bool value) noexcept override - { - try - { - this->shim().IsRinging(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSeen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSeen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSeen(bool value) noexcept override - { - try - { - this->shim().IsSeen(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSuppressed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSuppressed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSuppressed(bool value) noexcept override - { - try - { - this->shim().IsSuppressed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVoicemail(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVoicemail()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsVoicemail(bool value) noexcept override - { - try - { - this->shim().IsVoicemail(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Media(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryMedia * value) noexcept override - { - try - { - *value = detach(this->shim().Media()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Media(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryMedia value) noexcept override - { - try - { - this->shim().Media(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherAppReadAccess(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryOtherAppReadAccess * value) noexcept override - { - try - { - *value = detach(this->shim().OtherAppReadAccess()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OtherAppReadAccess(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryOtherAppReadAccess value) noexcept override - { - try - { - this->shim().OtherAppReadAccess(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SourceId(abi_arg_in value) noexcept override - { - try - { - this->shim().SourceId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceIdKind(Windows::ApplicationModel::Calls::PhoneCallHistorySourceIdKind * value) noexcept override - { - try - { - *value = detach(this->shim().SourceIdKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SourceIdKind(Windows::ApplicationModel::Calls::PhoneCallHistorySourceIdKind value) noexcept override - { - try - { - this->shim().SourceIdKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StartTime(abi_arg_in value) noexcept override - { - try - { - this->shim().StartTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContactId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContactId(abi_arg_in value) noexcept override - { - try - { - this->shim().ContactId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RawAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RawAddress(abi_arg_in value) noexcept override - { - try - { - this->shim().RawAddress(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawAddressKind(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind * value) noexcept override - { - try - { - *value = detach(this->shim().RawAddressKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RawAddressKind(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind value) noexcept override - { - try - { - this->shim().RawAddressKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in rawAddress, Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind rawAddressKind, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&rawAddress), rawAddressKind)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DesiredMedia(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryDesiredMedia * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredMedia()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredMedia(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryDesiredMedia value) noexcept override - { - try - { - this->shim().DesiredMedia(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SourceIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestStoreAsync(Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType accessType, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestStoreAsync(accessType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestStoreAsync(Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType accessType, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestStoreAsync(accessType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForUser(abi_arg_in user, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetEntryAsync(abi_arg_in callHistoryEntryId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetEntryAsync(*reinterpret_cast(&callHistoryEntryId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEntryReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetEntryReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEntryReaderWithOptions(abi_arg_in queryOptions, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetEntryReader(*reinterpret_cast(&queryOptions))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveEntryAsync(abi_arg_in callHistoryEntry, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveEntryAsync(*reinterpret_cast(&callHistoryEntry))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteEntryAsync(abi_arg_in callHistoryEntry, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DeleteEntryAsync(*reinterpret_cast(&callHistoryEntry))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteEntriesAsync(abi_arg_in> callHistoryEntries, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DeleteEntriesAsync(*reinterpret_cast *>(&callHistoryEntries))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkEntryAsSeenAsync(abi_arg_in callHistoryEntry, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkEntryAsSeenAsync(*reinterpret_cast(&callHistoryEntry))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkEntriesAsSeenAsync(abi_arg_in> callHistoryEntries, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkEntriesAsSeenAsync(*reinterpret_cast *>(&callHistoryEntries))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUnseenCountAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetUnseenCountAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkAllAsSeenAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkAllAsSeenAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSourcesUnseenCountAsync(abi_arg_in> sourceIds, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetSourcesUnseenCountAsync(*reinterpret_cast *>(&sourceIds))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkSourcesAsSeenAsync(abi_arg_in> sourceIds, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkSourcesAsSeenAsync(*reinterpret_cast *>(&sourceIds))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowPhoneCallUI(abi_arg_in phoneNumber, abi_arg_in displayName) noexcept override - { - try - { - this->shim().ShowPhoneCallUI(*reinterpret_cast(&phoneNumber), *reinterpret_cast(&displayName)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_CallStateChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CallStateChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CallStateChanged(event_token token) noexcept override - { - try - { - this->shim().CallStateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCallActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCallActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCallIncoming(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCallIncoming()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowPhoneCallSettingsUI() noexcept override - { - try - { - this->shim().ShowPhoneCallSettingsUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestStoreAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestStoreAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsEmergencyPhoneNumberAsync(abi_arg_in number, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().IsEmergencyPhoneNumberAsync(*reinterpret_cast(&number))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultLineAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDefaultLineAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestLineWatcher(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().RequestLineWatcher()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsVideoCallingCapable(bool * pValue) noexcept override - { - try - { - *pValue = detach(this->shim().IsVideoCallingCapable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCapabilitiesAsync(abi_arg_in phoneNumber, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetCapabilitiesAsync(*reinterpret_cast(&phoneNumber))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Number(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Number()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Number(abi_arg_in value) noexcept override - { - try - { - this->shim().Number(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Contact(abi_arg_in value) noexcept override - { - try - { - this->shim().Contact(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContactPhone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactPhone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContactPhone(abi_arg_in value) noexcept override - { - try - { - this->shim().ContactPhone(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Media(Windows::ApplicationModel::Calls::PhoneCallMedia * value) noexcept override - { - try - { - *value = detach(this->shim().Media()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Media(Windows::ApplicationModel::Calls::PhoneCallMedia value) noexcept override - { - try - { - this->shim().Media(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioEndpoint(Windows::ApplicationModel::Calls::PhoneAudioRoutingEndpoint * value) noexcept override - { - try - { - *value = detach(this->shim().AudioEndpoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioEndpoint(Windows::ApplicationModel::Calls::PhoneAudioRoutingEndpoint value) noexcept override - { - try - { - this->shim().AudioEndpoint(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_LineChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LineChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LineChanged(event_token token) noexcept override - { - try - { - this->shim().LineChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkState(Windows::ApplicationModel::Calls::PhoneNetworkState * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Voicemail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Voicemail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CellularDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CellularDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Transport(Windows::ApplicationModel::Calls::PhoneLineTransport * value) noexcept override - { - try - { - *value = detach(this->shim().Transport()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanDial(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanDial()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportsTile(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsTile()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoCallingCapabilities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoCallingCapabilities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineConfiguration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LineConfiguration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsImmediateDialNumberAsync(abi_arg_in number, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().IsImmediateDialNumberAsync(*reinterpret_cast(&number))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Dial(abi_arg_in number, abi_arg_in displayName) noexcept override - { - try - { - this->shim().Dial(*reinterpret_cast(&number), *reinterpret_cast(&displayName)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DialWithOptions(abi_arg_in options) noexcept override - { - try - { - this->shim().DialWithOptions(*reinterpret_cast(&options)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SimState(Windows::ApplicationModel::Calls::PhoneSimState * value) noexcept override - { - try - { - *value = detach(this->shim().SimState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SimSlotIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SimSlotIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsModemOn(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsModemOn()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RegistrationRejectCode(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RegistrationRejectCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNetworkOperatorDisplayText(Windows::ApplicationModel::Calls::PhoneLineNetworkOperatorDisplayTextLocation location, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetNetworkOperatorDisplayText(location)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsVideoCallingEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVideoCallingEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(GUID lineId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(lineId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LineAdded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LineAdded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LineAdded(event_token token) noexcept override - { - try - { - this->shim().LineAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LineRemoved(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LineRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LineRemoved(event_token token) noexcept override - { - try - { - this->shim().LineRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LineUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LineUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LineUpdated(event_token token) noexcept override - { - try - { - this->shim().LineUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnumerationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnumerationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnumerationCompleted(event_token token) noexcept override - { - try - { - this->shim().EnumerationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::ApplicationModel::Calls::PhoneLineWatcherStatus * status) noexcept override - { - try - { - *status = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LineId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().LineId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Number(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Number()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MessageCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::ApplicationModel::Calls::PhoneVoicemailType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DialVoicemailAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DialVoicemailAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReserveCallResourcesAsync(abi_arg_in taskEntryPoint, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ReserveCallResourcesAsync(*reinterpret_cast(&taskEntryPoint))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MuteStateChanged(abi_arg_in> muteChangeHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MuteStateChanged(*reinterpret_cast *>(&muteChangeHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MuteStateChanged(event_token token) noexcept override - { - try - { - this->shim().MuteStateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestNewIncomingCall(abi_arg_in context, abi_arg_in contactName, abi_arg_in contactNumber, abi_arg_in contactImage, abi_arg_in serviceName, abi_arg_in brandingImage, abi_arg_in callDetails, abi_arg_in ringtone, Windows::ApplicationModel::Calls::VoipPhoneCallMedia media, abi_arg_in ringTimeout, abi_arg_out call) noexcept override - { - try - { - *call = detach(this->shim().RequestNewIncomingCall(*reinterpret_cast(&context), *reinterpret_cast(&contactName), *reinterpret_cast(&contactNumber), *reinterpret_cast(&contactImage), *reinterpret_cast(&serviceName), *reinterpret_cast(&brandingImage), *reinterpret_cast(&callDetails), *reinterpret_cast(&ringtone), media, *reinterpret_cast(&ringTimeout))); - return S_OK; - } - catch (...) - { - *call = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestNewOutgoingCall(abi_arg_in context, abi_arg_in contactName, abi_arg_in serviceName, Windows::ApplicationModel::Calls::VoipPhoneCallMedia media, abi_arg_out call) noexcept override - { - try - { - *call = detach(this->shim().RequestNewOutgoingCall(*reinterpret_cast(&context), *reinterpret_cast(&contactName), *reinterpret_cast(&serviceName), media)); - return S_OK; - } - catch (...) - { - *call = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyMuted() noexcept override - { - try - { - this->shim().NotifyMuted(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyUnmuted() noexcept override - { - try - { - this->shim().NotifyUnmuted(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestOutgoingUpgradeToVideoCall(GUID callUpgradeGuid, abi_arg_in context, abi_arg_in contactName, abi_arg_in serviceName, abi_arg_out call) noexcept override - { - try - { - *call = detach(this->shim().RequestOutgoingUpgradeToVideoCall(callUpgradeGuid, *reinterpret_cast(&context), *reinterpret_cast(&contactName), *reinterpret_cast(&serviceName))); - return S_OK; - } - catch (...) - { - *call = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestIncomingUpgradeToVideoCall(abi_arg_in context, abi_arg_in contactName, abi_arg_in contactNumber, abi_arg_in contactImage, abi_arg_in serviceName, abi_arg_in brandingImage, abi_arg_in callDetails, abi_arg_in ringtone, abi_arg_in ringTimeout, abi_arg_out call) noexcept override - { - try - { - *call = detach(this->shim().RequestIncomingUpgradeToVideoCall(*reinterpret_cast(&context), *reinterpret_cast(&contactName), *reinterpret_cast(&contactNumber), *reinterpret_cast(&contactImage), *reinterpret_cast(&serviceName), *reinterpret_cast(&brandingImage), *reinterpret_cast(&callDetails), *reinterpret_cast(&ringtone), *reinterpret_cast(&ringTimeout))); - return S_OK; - } - catch (...) - { - *call = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TerminateCellularCall(GUID callUpgradeGuid) noexcept override - { - try - { - this->shim().TerminateCellularCall(callUpgradeGuid); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CancelUpgrade(GUID callUpgradeGuid) noexcept override - { - try - { - this->shim().CancelUpgrade(callUpgradeGuid); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out coordinator) noexcept override - { - try - { - *coordinator = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *coordinator = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_EndRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EndRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EndRequested(event_token token) noexcept override - { - try - { - this->shim().EndRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_HoldRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().HoldRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HoldRequested(event_token token) noexcept override - { - try - { - this->shim().HoldRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ResumeRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ResumeRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ResumeRequested(event_token token) noexcept override - { - try - { - this->shim().ResumeRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AnswerRequested(abi_arg_in> acceptHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AnswerRequested(*reinterpret_cast *>(&acceptHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AnswerRequested(event_token token) noexcept override - { - try - { - this->shim().AnswerRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RejectRequested(abi_arg_in> rejectHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RejectRequested(*reinterpret_cast *>(&rejectHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RejectRequested(event_token token) noexcept override - { - try - { - this->shim().RejectRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyCallHeld() noexcept override - { - try - { - this->shim().NotifyCallHeld(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyCallActive() noexcept override - { - try - { - this->shim().NotifyCallActive(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyCallEnded() noexcept override - { - try - { - this->shim().NotifyCallEnded(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContactName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContactName(abi_arg_in value) noexcept override - { - try - { - this->shim().ContactName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StartTime(abi_arg_in value) noexcept override - { - try - { - this->shim().StartTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallMedia(Windows::ApplicationModel::Calls::VoipPhoneCallMedia * value) noexcept override - { - try - { - *value = detach(this->shim().CallMedia()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CallMedia(Windows::ApplicationModel::Calls::VoipPhoneCallMedia value) noexcept override - { - try - { - this->shim().CallMedia(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyCallReady() noexcept override - { - try - { - this->shim().NotifyCallReady(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Calls { - -template Windows::ApplicationModel::Calls::VoipPhoneCallState impl_ICallStateChangeEventArgs::State() const -{ - Windows::ApplicationModel::Calls::VoipPhoneCallState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template Windows::ApplicationModel::Calls::VoipPhoneCallMedia impl_ICallAnswerEventArgs::AcceptedMedia() const -{ - Windows::ApplicationModel::Calls::VoipPhoneCallMedia value {}; - check_hresult(static_cast(static_cast(*this))->get_AcceptedMedia(&value)); - return value; -} - -template Windows::ApplicationModel::Calls::VoipPhoneCallRejectReason impl_ICallRejectEventArgs::RejectReason() const -{ - Windows::ApplicationModel::Calls::VoipPhoneCallRejectReason value {}; - check_hresult(static_cast(static_cast(*this))->get_RejectReason(&value)); - return value; -} - -template event_token impl_IVoipPhoneCall::EndRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EndRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IVoipPhoneCall::EndRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IVoipPhoneCall::remove_EndRequested, EndRequested(handler)); -} - -template void impl_IVoipPhoneCall::EndRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EndRequested(token)); -} - -template event_token impl_IVoipPhoneCall::HoldRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_HoldRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IVoipPhoneCall::HoldRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IVoipPhoneCall::remove_HoldRequested, HoldRequested(handler)); -} - -template void impl_IVoipPhoneCall::HoldRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HoldRequested(token)); -} - -template event_token impl_IVoipPhoneCall::ResumeRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ResumeRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IVoipPhoneCall::ResumeRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IVoipPhoneCall::remove_ResumeRequested, ResumeRequested(handler)); -} - -template void impl_IVoipPhoneCall::ResumeRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ResumeRequested(token)); -} - -template event_token impl_IVoipPhoneCall::AnswerRequested(const Windows::Foundation::TypedEventHandler & acceptHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AnswerRequested(get(acceptHandler), &token)); - return token; -} - -template event_revoker impl_IVoipPhoneCall::AnswerRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & acceptHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IVoipPhoneCall::remove_AnswerRequested, AnswerRequested(acceptHandler)); -} - -template void impl_IVoipPhoneCall::AnswerRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AnswerRequested(token)); -} - -template event_token impl_IVoipPhoneCall::RejectRequested(const Windows::Foundation::TypedEventHandler & rejectHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RejectRequested(get(rejectHandler), &token)); - return token; -} - -template event_revoker impl_IVoipPhoneCall::RejectRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & rejectHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IVoipPhoneCall::remove_RejectRequested, RejectRequested(rejectHandler)); -} - -template void impl_IVoipPhoneCall::RejectRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RejectRequested(token)); -} - -template void impl_IVoipPhoneCall::NotifyCallHeld() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyCallHeld()); -} - -template void impl_IVoipPhoneCall::NotifyCallActive() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyCallActive()); -} - -template void impl_IVoipPhoneCall::NotifyCallEnded() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyCallEnded()); -} - -template hstring impl_IVoipPhoneCall::ContactName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContactName(put(value))); - return value; -} - -template void impl_IVoipPhoneCall::ContactName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContactName(get(value))); -} - -template Windows::Foundation::DateTime impl_IVoipPhoneCall::StartTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template void impl_IVoipPhoneCall::StartTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartTime(get(value))); -} - -template Windows::ApplicationModel::Calls::VoipPhoneCallMedia impl_IVoipPhoneCall::CallMedia() const -{ - Windows::ApplicationModel::Calls::VoipPhoneCallMedia value {}; - check_hresult(static_cast(static_cast(*this))->get_CallMedia(&value)); - return value; -} - -template void impl_IVoipPhoneCall::CallMedia(Windows::ApplicationModel::Calls::VoipPhoneCallMedia value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CallMedia(value)); -} - -template void impl_IVoipPhoneCall::NotifyCallReady() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyCallReady()); -} - -template bool impl_IMuteChangeEventArgs::Muted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Muted(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IVoipCallCoordinator::ReserveCallResourcesAsync(hstring_ref taskEntryPoint) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ReserveCallResourcesAsync(get(taskEntryPoint), put(operation))); - return operation; -} - -template event_token impl_IVoipCallCoordinator::MuteStateChanged(const Windows::Foundation::TypedEventHandler & muteChangeHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MuteStateChanged(get(muteChangeHandler), &token)); - return token; -} - -template event_revoker impl_IVoipCallCoordinator::MuteStateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & muteChangeHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IVoipCallCoordinator::remove_MuteStateChanged, MuteStateChanged(muteChangeHandler)); -} - -template void impl_IVoipCallCoordinator::MuteStateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MuteStateChanged(token)); -} - -template Windows::ApplicationModel::Calls::VoipPhoneCall impl_IVoipCallCoordinator::RequestNewIncomingCall(hstring_ref context, hstring_ref contactName, hstring_ref contactNumber, const Windows::Foundation::Uri & contactImage, hstring_ref serviceName, const Windows::Foundation::Uri & brandingImage, hstring_ref callDetails, const Windows::Foundation::Uri & ringtone, Windows::ApplicationModel::Calls::VoipPhoneCallMedia media, const Windows::Foundation::TimeSpan & ringTimeout) const -{ - Windows::ApplicationModel::Calls::VoipPhoneCall call { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_RequestNewIncomingCall(get(context), get(contactName), get(contactNumber), get(contactImage), get(serviceName), get(brandingImage), get(callDetails), get(ringtone), media, get(ringTimeout), put(call))); - return call; -} - -template Windows::ApplicationModel::Calls::VoipPhoneCall impl_IVoipCallCoordinator::RequestNewOutgoingCall(hstring_ref context, hstring_ref contactName, hstring_ref serviceName, Windows::ApplicationModel::Calls::VoipPhoneCallMedia media) const -{ - Windows::ApplicationModel::Calls::VoipPhoneCall call { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_RequestNewOutgoingCall(get(context), get(contactName), get(serviceName), media, put(call))); - return call; -} - -template void impl_IVoipCallCoordinator::NotifyMuted() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyMuted()); -} - -template void impl_IVoipCallCoordinator::NotifyUnmuted() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyUnmuted()); -} - -template Windows::ApplicationModel::Calls::VoipPhoneCall impl_IVoipCallCoordinator::RequestOutgoingUpgradeToVideoCall(GUID callUpgradeGuid, hstring_ref context, hstring_ref contactName, hstring_ref serviceName) const -{ - Windows::ApplicationModel::Calls::VoipPhoneCall call { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_RequestOutgoingUpgradeToVideoCall(callUpgradeGuid, get(context), get(contactName), get(serviceName), put(call))); - return call; -} - -template Windows::ApplicationModel::Calls::VoipPhoneCall impl_IVoipCallCoordinator::RequestIncomingUpgradeToVideoCall(hstring_ref context, hstring_ref contactName, hstring_ref contactNumber, const Windows::Foundation::Uri & contactImage, hstring_ref serviceName, const Windows::Foundation::Uri & brandingImage, hstring_ref callDetails, const Windows::Foundation::Uri & ringtone, const Windows::Foundation::TimeSpan & ringTimeout) const -{ - Windows::ApplicationModel::Calls::VoipPhoneCall call { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_RequestIncomingUpgradeToVideoCall(get(context), get(contactName), get(contactNumber), get(contactImage), get(serviceName), get(brandingImage), get(callDetails), get(ringtone), get(ringTimeout), put(call))); - return call; -} - -template void impl_IVoipCallCoordinator::TerminateCellularCall(GUID callUpgradeGuid) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TerminateCellularCall(callUpgradeGuid)); -} - -template void impl_IVoipCallCoordinator::CancelUpgrade(GUID callUpgradeGuid) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CancelUpgrade(callUpgradeGuid)); -} - -template Windows::ApplicationModel::Calls::VoipCallCoordinator impl_IVoipCallCoordinatorStatics::GetDefault() const -{ - Windows::ApplicationModel::Calls::VoipCallCoordinator coordinator { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(coordinator))); - return coordinator; -} - -template hstring impl_IPhoneCallHistoryEntry::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress impl_IPhoneCallHistoryEntry::Address() const -{ - Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Address(put(value))); - return value; -} - -template void impl_IPhoneCallHistoryEntry::Address(const Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Address(get(value))); -} - -template Windows::Foundation::IReference impl_IPhoneCallHistoryEntry::Duration() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template void impl_IPhoneCallHistoryEntry::Duration(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Duration(get(value))); -} - -template bool impl_IPhoneCallHistoryEntry::IsCallerIdBlocked() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCallerIdBlocked(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntry::IsCallerIdBlocked(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsCallerIdBlocked(value)); -} - -template bool impl_IPhoneCallHistoryEntry::IsEmergency() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEmergency(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntry::IsEmergency(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsEmergency(value)); -} - -template bool impl_IPhoneCallHistoryEntry::IsIncoming() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsIncoming(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntry::IsIncoming(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsIncoming(value)); -} - -template bool impl_IPhoneCallHistoryEntry::IsMissed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMissed(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntry::IsMissed(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsMissed(value)); -} - -template bool impl_IPhoneCallHistoryEntry::IsRinging() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRinging(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntry::IsRinging(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsRinging(value)); -} - -template bool impl_IPhoneCallHistoryEntry::IsSeen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSeen(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntry::IsSeen(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSeen(value)); -} - -template bool impl_IPhoneCallHistoryEntry::IsSuppressed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSuppressed(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntry::IsSuppressed(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSuppressed(value)); -} - -template bool impl_IPhoneCallHistoryEntry::IsVoicemail() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVoicemail(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntry::IsVoicemail(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsVoicemail(value)); -} - -template Windows::ApplicationModel::Calls::PhoneCallHistoryEntryMedia impl_IPhoneCallHistoryEntry::Media() const -{ - Windows::ApplicationModel::Calls::PhoneCallHistoryEntryMedia value {}; - check_hresult(static_cast(static_cast(*this))->get_Media(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntry::Media(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryMedia value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Media(value)); -} - -template Windows::ApplicationModel::Calls::PhoneCallHistoryEntryOtherAppReadAccess impl_IPhoneCallHistoryEntry::OtherAppReadAccess() const -{ - Windows::ApplicationModel::Calls::PhoneCallHistoryEntryOtherAppReadAccess value {}; - check_hresult(static_cast(static_cast(*this))->get_OtherAppReadAccess(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntry::OtherAppReadAccess(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryOtherAppReadAccess value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OtherAppReadAccess(value)); -} - -template hstring impl_IPhoneCallHistoryEntry::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template void impl_IPhoneCallHistoryEntry::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template hstring impl_IPhoneCallHistoryEntry::SourceDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SourceDisplayName(put(value))); - return value; -} - -template hstring impl_IPhoneCallHistoryEntry::SourceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SourceId(put(value))); - return value; -} - -template void impl_IPhoneCallHistoryEntry::SourceId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SourceId(get(value))); -} - -template Windows::ApplicationModel::Calls::PhoneCallHistorySourceIdKind impl_IPhoneCallHistoryEntry::SourceIdKind() const -{ - Windows::ApplicationModel::Calls::PhoneCallHistorySourceIdKind value {}; - check_hresult(static_cast(static_cast(*this))->get_SourceIdKind(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntry::SourceIdKind(Windows::ApplicationModel::Calls::PhoneCallHistorySourceIdKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SourceIdKind(value)); -} - -template Windows::Foundation::DateTime impl_IPhoneCallHistoryEntry::StartTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template void impl_IPhoneCallHistoryEntry::StartTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartTime(get(value))); -} - -template hstring impl_IPhoneCallHistoryEntryAddress::ContactId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContactId(put(value))); - return value; -} - -template void impl_IPhoneCallHistoryEntryAddress::ContactId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContactId(get(value))); -} - -template hstring impl_IPhoneCallHistoryEntryAddress::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IPhoneCallHistoryEntryAddress::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IPhoneCallHistoryEntryAddress::RawAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RawAddress(put(value))); - return value; -} - -template void impl_IPhoneCallHistoryEntryAddress::RawAddress(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RawAddress(get(value))); -} - -template Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind impl_IPhoneCallHistoryEntryAddress::RawAddressKind() const -{ - Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind value {}; - check_hresult(static_cast(static_cast(*this))->get_RawAddressKind(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntryAddress::RawAddressKind(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RawAddressKind(value)); -} - -template Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress impl_IPhoneCallHistoryEntryAddressFactory::Create(hstring_ref rawAddress, Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind rawAddressKind) const -{ - Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(rawAddress), rawAddressKind, put(result))); - return result; -} - -template Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryDesiredMedia impl_IPhoneCallHistoryEntryQueryOptions::DesiredMedia() const -{ - Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryDesiredMedia value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredMedia(&value)); - return value; -} - -template void impl_IPhoneCallHistoryEntryQueryOptions::DesiredMedia(Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryDesiredMedia value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredMedia(value)); -} - -template Windows::Foundation::Collections::IVector impl_IPhoneCallHistoryEntryQueryOptions::SourceIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SourceIds(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IPhoneCallHistoryEntryReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneCallHistoryStore::GetEntryAsync(hstring_ref callHistoryEntryId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetEntryAsync(get(callHistoryEntryId), put(result))); - return result; -} - -template Windows::ApplicationModel::Calls::PhoneCallHistoryEntryReader impl_IPhoneCallHistoryStore::GetEntryReader() const -{ - Windows::ApplicationModel::Calls::PhoneCallHistoryEntryReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetEntryReader(put(result))); - return result; -} - -template Windows::ApplicationModel::Calls::PhoneCallHistoryEntryReader impl_IPhoneCallHistoryStore::GetEntryReader(const Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryOptions & queryOptions) const -{ - Windows::ApplicationModel::Calls::PhoneCallHistoryEntryReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetEntryReaderWithOptions(get(queryOptions), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IPhoneCallHistoryStore::SaveEntryAsync(const Windows::ApplicationModel::Calls::PhoneCallHistoryEntry & callHistoryEntry) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveEntryAsync(get(callHistoryEntry), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IPhoneCallHistoryStore::DeleteEntryAsync(const Windows::ApplicationModel::Calls::PhoneCallHistoryEntry & callHistoryEntry) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteEntryAsync(get(callHistoryEntry), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IPhoneCallHistoryStore::DeleteEntriesAsync(const Windows::Foundation::Collections::IIterable & callHistoryEntries) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteEntriesAsync(get(callHistoryEntries), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IPhoneCallHistoryStore::MarkEntryAsSeenAsync(const Windows::ApplicationModel::Calls::PhoneCallHistoryEntry & callHistoryEntry) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkEntryAsSeenAsync(get(callHistoryEntry), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IPhoneCallHistoryStore::MarkEntriesAsSeenAsync(const Windows::Foundation::Collections::IIterable & callHistoryEntries) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkEntriesAsSeenAsync(get(callHistoryEntries), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneCallHistoryStore::GetUnseenCountAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetUnseenCountAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IPhoneCallHistoryStore::MarkAllAsSeenAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkAllAsSeenAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneCallHistoryStore::GetSourcesUnseenCountAsync(const Windows::Foundation::Collections::IIterable & sourceIds) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetSourcesUnseenCountAsync(get(sourceIds), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IPhoneCallHistoryStore::MarkSourcesAsSeenAsync(const Windows::Foundation::Collections::IIterable & sourceIds) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkSourcesAsSeenAsync(get(sourceIds), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneCallHistoryManagerStatics::RequestStoreAsync(Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType accessType) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(accessType, put(result))); - return result; -} - -template Windows::ApplicationModel::Calls::PhoneCallHistoryManagerForUser impl_IPhoneCallHistoryManagerStatics2::GetForUser(const Windows::System::User & user) const -{ - Windows::ApplicationModel::Calls::PhoneCallHistoryManagerForUser result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForUser(get(user), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneCallHistoryManagerForUser::RequestStoreAsync(Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType accessType) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(accessType, put(result))); - return result; -} - -template Windows::System::User impl_IPhoneCallHistoryManagerForUser::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template void impl_ILockScreenCallEndCallDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::ApplicationModel::Calls::LockScreenCallEndCallDeferral impl_ILockScreenCallEndRequestedEventArgs::GetDeferral() const -{ - Windows::ApplicationModel::Calls::LockScreenCallEndCallDeferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ILockScreenCallEndRequestedEventArgs::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template void impl_ILockScreenCallUI::Dismiss() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Dismiss()); -} - -template event_token impl_ILockScreenCallUI::EndRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EndRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ILockScreenCallUI::EndRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::ILockScreenCallUI::remove_EndRequested, EndRequested(handler)); -} - -template void impl_ILockScreenCallUI::EndRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EndRequested(token)); -} - -template event_token impl_ILockScreenCallUI::Closed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(handler), &token)); - return token; -} - -template event_revoker impl_ILockScreenCallUI::Closed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::ILockScreenCallUI::remove_Closed, Closed(handler)); -} - -template void impl_ILockScreenCallUI::Closed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(token)); -} - -template hstring impl_ILockScreenCallUI::CallTitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CallTitle(put(value))); - return value; -} - -template void impl_ILockScreenCallUI::CallTitle(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CallTitle(get(value))); -} - -template hstring impl_IPhoneVoicemail::Number() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Number(put(value))); - return value; -} - -template int32_t impl_IPhoneVoicemail::MessageCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageCount(&value)); - return value; -} - -template Windows::ApplicationModel::Calls::PhoneVoicemailType impl_IPhoneVoicemail::Type() const -{ - Windows::ApplicationModel::Calls::PhoneVoicemailType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IPhoneVoicemail::DialVoicemailAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DialVoicemailAsync(put(result))); - return result; -} - -template hstring impl_IPhoneDialOptions::Number() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Number(put(value))); - return value; -} - -template void impl_IPhoneDialOptions::Number(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Number(get(value))); -} - -template hstring impl_IPhoneDialOptions::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IPhoneDialOptions::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template Windows::ApplicationModel::Contacts::Contact impl_IPhoneDialOptions::Contact() const -{ - Windows::ApplicationModel::Contacts::Contact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template void impl_IPhoneDialOptions::Contact(const Windows::ApplicationModel::Contacts::Contact & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Contact(get(value))); -} - -template Windows::ApplicationModel::Contacts::ContactPhone impl_IPhoneDialOptions::ContactPhone() const -{ - Windows::ApplicationModel::Contacts::ContactPhone value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContactPhone(put(value))); - return value; -} - -template void impl_IPhoneDialOptions::ContactPhone(const Windows::ApplicationModel::Contacts::ContactPhone & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContactPhone(get(value))); -} - -template Windows::ApplicationModel::Calls::PhoneCallMedia impl_IPhoneDialOptions::Media() const -{ - Windows::ApplicationModel::Calls::PhoneCallMedia value {}; - check_hresult(static_cast(static_cast(*this))->get_Media(&value)); - return value; -} - -template void impl_IPhoneDialOptions::Media(Windows::ApplicationModel::Calls::PhoneCallMedia value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Media(value)); -} - -template Windows::ApplicationModel::Calls::PhoneAudioRoutingEndpoint impl_IPhoneDialOptions::AudioEndpoint() const -{ - Windows::ApplicationModel::Calls::PhoneAudioRoutingEndpoint value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioEndpoint(&value)); - return value; -} - -template void impl_IPhoneDialOptions::AudioEndpoint(Windows::ApplicationModel::Calls::PhoneAudioRoutingEndpoint value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioEndpoint(value)); -} - -template Windows::ApplicationModel::Calls::PhoneSimState impl_IPhoneLineCellularDetails::SimState() const -{ - Windows::ApplicationModel::Calls::PhoneSimState value {}; - check_hresult(static_cast(static_cast(*this))->get_SimState(&value)); - return value; -} - -template int32_t impl_IPhoneLineCellularDetails::SimSlotIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SimSlotIndex(&value)); - return value; -} - -template bool impl_IPhoneLineCellularDetails::IsModemOn() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsModemOn(&value)); - return value; -} - -template int32_t impl_IPhoneLineCellularDetails::RegistrationRejectCode() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RegistrationRejectCode(&value)); - return value; -} - -template hstring impl_IPhoneLineCellularDetails::GetNetworkOperatorDisplayText(Windows::ApplicationModel::Calls::PhoneLineNetworkOperatorDisplayTextLocation location) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetNetworkOperatorDisplayText(location, put(value))); - return value; -} - -template event_token impl_IPhoneLine::LineChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LineChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPhoneLine::LineChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IPhoneLine::remove_LineChanged, LineChanged(handler)); -} - -template void impl_IPhoneLine::LineChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LineChanged(token)); -} - -template GUID impl_IPhoneLine::Id() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::UI::Color impl_IPhoneLine::DisplayColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_DisplayColor(put(value))); - return value; -} - -template Windows::ApplicationModel::Calls::PhoneNetworkState impl_IPhoneLine::NetworkState() const -{ - Windows::ApplicationModel::Calls::PhoneNetworkState value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkState(&value)); - return value; -} - -template hstring impl_IPhoneLine::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template Windows::ApplicationModel::Calls::PhoneVoicemail impl_IPhoneLine::Voicemail() const -{ - Windows::ApplicationModel::Calls::PhoneVoicemail value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Voicemail(put(value))); - return value; -} - -template hstring impl_IPhoneLine::NetworkName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NetworkName(put(value))); - return value; -} - -template Windows::ApplicationModel::Calls::PhoneLineCellularDetails impl_IPhoneLine::CellularDetails() const -{ - Windows::ApplicationModel::Calls::PhoneLineCellularDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CellularDetails(put(value))); - return value; -} - -template Windows::ApplicationModel::Calls::PhoneLineTransport impl_IPhoneLine::Transport() const -{ - Windows::ApplicationModel::Calls::PhoneLineTransport value {}; - check_hresult(static_cast(static_cast(*this))->get_Transport(&value)); - return value; -} - -template bool impl_IPhoneLine::CanDial() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanDial(&value)); - return value; -} - -template bool impl_IPhoneLine::SupportsTile() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsTile(&value)); - return value; -} - -template Windows::ApplicationModel::Calls::PhoneCallVideoCapabilities impl_IPhoneLine::VideoCallingCapabilities() const -{ - Windows::ApplicationModel::Calls::PhoneCallVideoCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoCallingCapabilities(put(value))); - return value; -} - -template Windows::ApplicationModel::Calls::PhoneLineConfiguration impl_IPhoneLine::LineConfiguration() const -{ - Windows::ApplicationModel::Calls::PhoneLineConfiguration value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LineConfiguration(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneLine::IsImmediateDialNumberAsync(hstring_ref number) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_IsImmediateDialNumberAsync(get(number), put(result))); - return result; -} - -template void impl_IPhoneLine::Dial(hstring_ref number, hstring_ref displayName) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Dial(get(number), get(displayName))); -} - -template void impl_IPhoneLine::DialWithOptions(const Windows::ApplicationModel::Calls::PhoneDialOptions & options) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DialWithOptions(get(options))); -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneCallStore::IsEmergencyPhoneNumberAsync(hstring_ref number) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_IsEmergencyPhoneNumberAsync(get(number), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneCallStore::GetDefaultLineAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultLineAsync(put(result))); - return result; -} - -template Windows::ApplicationModel::Calls::PhoneLineWatcher impl_IPhoneCallStore::RequestLineWatcher() const -{ - Windows::ApplicationModel::Calls::PhoneLineWatcher result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_RequestLineWatcher(put(result))); - return result; -} - -template bool impl_IPhoneLineConfiguration::IsVideoCallingEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVideoCallingEnabled(&value)); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IPhoneLineConfiguration::ExtendedProperties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedProperties(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneLineStatics::FromIdAsync(GUID lineId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(lineId, put(result))); - return result; -} - -template void impl_IPhoneLineWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IPhoneLineWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template event_token impl_IPhoneLineWatcher::LineAdded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LineAdded(get(handler), &token)); - return token; -} - -template event_revoker impl_IPhoneLineWatcher::LineAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IPhoneLineWatcher::remove_LineAdded, LineAdded(handler)); -} - -template void impl_IPhoneLineWatcher::LineAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LineAdded(token)); -} - -template event_token impl_IPhoneLineWatcher::LineRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LineRemoved(get(handler), &token)); - return token; -} - -template event_revoker impl_IPhoneLineWatcher::LineRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IPhoneLineWatcher::remove_LineRemoved, LineRemoved(handler)); -} - -template void impl_IPhoneLineWatcher::LineRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LineRemoved(token)); -} - -template event_token impl_IPhoneLineWatcher::LineUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LineUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_IPhoneLineWatcher::LineUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IPhoneLineWatcher::remove_LineUpdated, LineUpdated(handler)); -} - -template void impl_IPhoneLineWatcher::LineUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LineUpdated(token)); -} - -template event_token impl_IPhoneLineWatcher::EnumerationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnumerationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IPhoneLineWatcher::EnumerationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IPhoneLineWatcher::remove_EnumerationCompleted, EnumerationCompleted(handler)); -} - -template void impl_IPhoneLineWatcher::EnumerationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnumerationCompleted(token)); -} - -template event_token impl_IPhoneLineWatcher::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IPhoneLineWatcher::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IPhoneLineWatcher::remove_Stopped, Stopped(handler)); -} - -template void impl_IPhoneLineWatcher::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template Windows::ApplicationModel::Calls::PhoneLineWatcherStatus impl_IPhoneLineWatcher::Status() const -{ - Windows::ApplicationModel::Calls::PhoneLineWatcherStatus status {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&status)); - return status; -} - -template GUID impl_IPhoneLineWatcherEventArgs::LineId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_LineId(&value)); - return value; -} - -template void impl_IPhoneCallManagerStatics::ShowPhoneCallUI(hstring_ref phoneNumber, hstring_ref displayName) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowPhoneCallUI(get(phoneNumber), get(displayName))); -} - -template event_token impl_IPhoneCallManagerStatics2::CallStateChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CallStateChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPhoneCallManagerStatics2::CallStateChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2::remove_CallStateChanged, CallStateChanged(handler)); -} - -template void impl_IPhoneCallManagerStatics2::CallStateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CallStateChanged(token)); -} - -template bool impl_IPhoneCallManagerStatics2::IsCallActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCallActive(&value)); - return value; -} - -template bool impl_IPhoneCallManagerStatics2::IsCallIncoming() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCallIncoming(&value)); - return value; -} - -template void impl_IPhoneCallManagerStatics2::ShowPhoneCallSettingsUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowPhoneCallSettingsUI()); -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneCallManagerStatics2::RequestStoreAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(put(result))); - return result; -} - -template bool impl_IPhoneCallVideoCapabilities::IsVideoCallingCapable() const -{ - bool pValue {}; - check_hresult(static_cast(static_cast(*this))->get_IsVideoCallingCapable(&pValue)); - return pValue; -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneCallVideoCapabilitiesManagerStatics::GetCapabilitiesAsync(hstring_ref phoneNumber) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetCapabilitiesAsync(get(phoneNumber), put(result))); - return result; -} - -template bool impl_IPhoneCallBlockingStatics::BlockUnknownNumbers() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_BlockUnknownNumbers(&value)); - return value; -} - -template void impl_IPhoneCallBlockingStatics::BlockUnknownNumbers(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BlockUnknownNumbers(value)); -} - -template bool impl_IPhoneCallBlockingStatics::BlockPrivateNumbers() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_BlockPrivateNumbers(&value)); - return value; -} - -template void impl_IPhoneCallBlockingStatics::BlockPrivateNumbers(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BlockPrivateNumbers(value)); -} - -template Windows::Foundation::IAsyncOperation impl_IPhoneCallBlockingStatics::SetCallBlockingListAsync(const Windows::Foundation::Collections::IIterable & phoneNumberList) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_SetCallBlockingListAsync(get(phoneNumberList), put(result))); - return result; -} - -inline bool PhoneCallBlocking::BlockUnknownNumbers() -{ - return get_activation_factory().BlockUnknownNumbers(); -} - -inline void PhoneCallBlocking::BlockUnknownNumbers(bool value) -{ - get_activation_factory().BlockUnknownNumbers(value); -} - -inline bool PhoneCallBlocking::BlockPrivateNumbers() -{ - return get_activation_factory().BlockPrivateNumbers(); -} - -inline void PhoneCallBlocking::BlockPrivateNumbers(bool value) -{ - get_activation_factory().BlockPrivateNumbers(value); -} - -inline Windows::Foundation::IAsyncOperation PhoneCallBlocking::SetCallBlockingListAsync(const Windows::Foundation::Collections::IIterable & phoneNumberList) -{ - return get_activation_factory().SetCallBlockingListAsync(phoneNumberList); -} - -inline PhoneCallHistoryEntry::PhoneCallHistoryEntry() : - PhoneCallHistoryEntry(activate_instance()) -{} - -inline PhoneCallHistoryEntryAddress::PhoneCallHistoryEntryAddress() : - PhoneCallHistoryEntryAddress(activate_instance()) -{} - -inline PhoneCallHistoryEntryAddress::PhoneCallHistoryEntryAddress(hstring_ref rawAddress, Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind rawAddressKind) : - PhoneCallHistoryEntryAddress(get_activation_factory().Create(rawAddress, rawAddressKind)) -{} - -inline PhoneCallHistoryEntryQueryOptions::PhoneCallHistoryEntryQueryOptions() : - PhoneCallHistoryEntryQueryOptions(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation PhoneCallHistoryManager::RequestStoreAsync(Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType accessType) -{ - return get_activation_factory().RequestStoreAsync(accessType); -} - -inline Windows::ApplicationModel::Calls::PhoneCallHistoryManagerForUser PhoneCallHistoryManager::GetForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetForUser(user); -} - -inline void PhoneCallManager::ShowPhoneCallUI(hstring_ref phoneNumber, hstring_ref displayName) -{ - get_activation_factory().ShowPhoneCallUI(phoneNumber, displayName); -} - -inline event_token PhoneCallManager::CallStateChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().CallStateChanged(handler); -} - -inline factory_event_revoker PhoneCallManager::CallStateChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2::remove_CallStateChanged, factory.CallStateChanged(handler) }; -} - -inline void PhoneCallManager::CallStateChanged(event_token token) -{ - get_activation_factory().CallStateChanged(token); -} - -inline bool PhoneCallManager::IsCallActive() -{ - return get_activation_factory().IsCallActive(); -} - -inline bool PhoneCallManager::IsCallIncoming() -{ - return get_activation_factory().IsCallIncoming(); -} - -inline void PhoneCallManager::ShowPhoneCallSettingsUI() -{ - get_activation_factory().ShowPhoneCallSettingsUI(); -} - -inline Windows::Foundation::IAsyncOperation PhoneCallManager::RequestStoreAsync() -{ - return get_activation_factory().RequestStoreAsync(); -} - -inline Windows::Foundation::IAsyncOperation PhoneCallVideoCapabilitiesManager::GetCapabilitiesAsync(hstring_ref phoneNumber) -{ - return get_activation_factory().GetCapabilitiesAsync(phoneNumber); -} - -inline PhoneDialOptions::PhoneDialOptions() : - PhoneDialOptions(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation PhoneLine::FromIdAsync(GUID lineId) -{ - return get_activation_factory().FromIdAsync(lineId); -} - -inline Windows::ApplicationModel::Calls::VoipCallCoordinator VoipCallCoordinator::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Chat.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Chat.h deleted file mode 100644 index 90628e1a2..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Chat.h +++ /dev/null @@ -1,5088 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Media.MediaProperties.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Security.Credentials.3.h" -#include "internal/Windows.ApplicationModel.Chat.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsOnline(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsOnline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsChatCapable(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsChatCapable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFileTransferCapable(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsFileTransferCapable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGeoLocationPushCapable(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsGeoLocationPushCapable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsIntegratedMessagingCapable(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsIntegratedMessagingCapable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCachedCapabilitiesAsync(abi_arg_in address, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetCachedCapabilitiesAsync(*reinterpret_cast(&address))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCapabilitiesFromNetworkAsync(abi_arg_in address, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetCapabilitiesFromNetworkAsync(*reinterpret_cast(&address))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HasUnreadMessages(bool * result) noexcept override - { - try - { - *result = detach(this->shim().HasUnreadMessages()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Subject(abi_arg_in value) noexcept override - { - try - { - this->shim().Subject(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsConversationMuted(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsConversationMuted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsConversationMuted(bool value) noexcept override - { - try - { - this->shim().IsConversationMuted(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MostRecentMessageId(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MostRecentMessageId()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Participants(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().Participants()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ThreadingInfo(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ThreadingInfo()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DeleteAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkAllMessagesAsReadAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkMessagesAsReadAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkMessagesAsReadAsync(abi_arg_in value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkMessagesAsReadAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyLocalParticipantComposing(abi_arg_in transportId, abi_arg_in participantAddress, bool isComposing) noexcept override - { - try - { - this->shim().NotifyLocalParticipantComposing(*reinterpret_cast(&transportId), *reinterpret_cast(&participantAddress), isComposing); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyRemoteParticipantComposing(abi_arg_in transportId, abi_arg_in participantAddress, bool isComposing) noexcept override - { - try - { - this->shim().NotifyRemoteParticipantComposing(*reinterpret_cast(&transportId), *reinterpret_cast(&participantAddress), isComposing); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RemoteParticipantComposingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RemoteParticipantComposingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RemoteParticipantComposingChanged(event_token token) noexcept override - { - try - { - this->shim().RemoteParticipantComposingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanModifyParticipants(bool * result) noexcept override - { - try - { - *result = detach(this->shim().CanModifyParticipants()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanModifyParticipants(bool value) noexcept override - { - try - { - this->shim().CanModifyParticipants(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadBatchWithCountAsync(int32_t count, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().ReadBatchAsync(count)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContactId(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ContactId()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContactId(abi_arg_in value) noexcept override - { - try - { - this->shim().ContactId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Custom(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Custom()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Custom(abi_arg_in value) noexcept override - { - try - { - this->shim().Custom(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConversationId(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ConversationId()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ConversationId(abi_arg_in value) noexcept override - { - try - { - this->shim().ConversationId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Participants(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().Participants()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Chat::ChatConversationThreadingKind * result) noexcept override - { - try - { - *result = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Kind(Windows::ApplicationModel::Chat::ChatConversationThreadingKind value) noexcept override - { - try - { - this->shim().Kind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemKind(Windows::ApplicationModel::Chat::ChatItemKind * result) noexcept override - { - try - { - *result = detach(this->shim().ItemKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Attachments(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Attachments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Body(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Body()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Body(abi_arg_in value) noexcept override - { - try - { - this->shim().Body(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_From(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().From()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsForwardingDisabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsForwardingDisabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsIncoming(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIncoming()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRead(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRead()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalTimestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalTimestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkTimestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkTimestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Recipients(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Recipients()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecipientSendStatuses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RecipientSendStatuses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::ApplicationModel::Chat::ChatMessageStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportFriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransportFriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransportId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransportId(abi_arg_in value) noexcept override - { - try - { - this->shim().TransportId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EstimatedDownloadSize(uint64_t * result) noexcept override - { - try - { - *result = detach(this->shim().EstimatedDownloadSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EstimatedDownloadSize(uint64_t value) noexcept override - { - try - { - this->shim().EstimatedDownloadSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_From(abi_arg_in value) noexcept override - { - try - { - this->shim().From(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAutoReply(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsAutoReply()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsAutoReply(bool value) noexcept override - { - try - { - this->shim().IsAutoReply(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsForwardingDisabled(bool value) noexcept override - { - try - { - this->shim().IsForwardingDisabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsReplyDisabled(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsReplyDisabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsIncoming(bool value) noexcept override - { - try - { - this->shim().IsIncoming(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsRead(bool value) noexcept override - { - try - { - this->shim().IsRead(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSeen(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsSeen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSeen(bool value) noexcept override - { - try - { - this->shim().IsSeen(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSimMessage(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsSimMessage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LocalTimestamp(abi_arg_in value) noexcept override - { - try - { - this->shim().LocalTimestamp(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageKind(Windows::ApplicationModel::Chat::ChatMessageKind * result) noexcept override - { - try - { - *result = detach(this->shim().MessageKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MessageKind(Windows::ApplicationModel::Chat::ChatMessageKind value) noexcept override - { - try - { - this->shim().MessageKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageOperatorKind(Windows::ApplicationModel::Chat::ChatMessageOperatorKind * result) noexcept override - { - try - { - *result = detach(this->shim().MessageOperatorKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MessageOperatorKind(Windows::ApplicationModel::Chat::ChatMessageOperatorKind value) noexcept override - { - try - { - this->shim().MessageOperatorKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NetworkTimestamp(abi_arg_in value) noexcept override - { - try - { - this->shim().NetworkTimestamp(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsReceivedDuringQuietHours(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsReceivedDuringQuietHours()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsReceivedDuringQuietHours(bool value) noexcept override - { - try - { - this->shim().IsReceivedDuringQuietHours(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Status(Windows::ApplicationModel::Chat::ChatMessageStatus value) noexcept override - { - try - { - this->shim().Status(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Subject(abi_arg_in value) noexcept override - { - try - { - this->shim().Subject(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShouldSuppressNotification(bool * result) noexcept override - { - try - { - *result = detach(this->shim().ShouldSuppressNotification()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShouldSuppressNotification(bool value) noexcept override - { - try - { - this->shim().ShouldSuppressNotification(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ThreadingInfo(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ThreadingInfo()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ThreadingInfo(abi_arg_in value) noexcept override - { - try - { - this->shim().ThreadingInfo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecipientsDeliveryInfos(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RecipientsDeliveryInfos()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SyncId(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SyncId()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SyncId(abi_arg_in value) noexcept override - { - try - { - this->shim().SyncId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DataStreamReference(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataStreamReference()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataStreamReference(abi_arg_in value) noexcept override - { - try - { - this->shim().DataStreamReference(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GroupId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GroupId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GroupId(uint32_t value) noexcept override - { - try - { - this->shim().GroupId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MimeType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MimeType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MimeType(abi_arg_in value) noexcept override - { - try - { - this->shim().MimeType(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Thumbnail(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbnail(abi_arg_in value) noexcept override - { - try - { - this->shim().Thumbnail(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransferProgress(double * result) noexcept override - { - try - { - *result = detach(this->shim().TransferProgress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransferProgress(double value) noexcept override - { - try - { - this->shim().TransferProgress(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OriginalFileName(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().OriginalFileName()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OriginalFileName(abi_arg_in value) noexcept override - { - try - { - this->shim().OriginalFileName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateChatMessageAttachment(abi_arg_in mimeType, abi_arg_in dataStreamReference, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateChatMessageAttachment(*reinterpret_cast(&mimeType), *reinterpret_cast(&dataStreamReference))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_MarkMessageAsBlockedAsync(abi_arg_in localChatMessageId, bool blocked, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MarkMessageAsBlockedAsync(*reinterpret_cast(&localChatMessageId), blocked)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeType(Windows::ApplicationModel::Chat::ChatMessageChangeType * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AcceptChanges() noexcept override - { - try - { - this->shim().AcceptChanges(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcceptChangesThrough(abi_arg_in lastChangeToAcknowledge) noexcept override - { - try - { - this->shim().AcceptChangesThrough(*reinterpret_cast(&lastChangeToAcknowledge)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Enable() noexcept override - { - try - { - this->shim().Enable(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetChangeReader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetChangeReader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Reset() noexcept override - { - try - { - this->shim().Reset(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RegisterTransportAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RegisterTransportAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTransportAsync(abi_arg_in transportId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetTransportAsync(*reinterpret_cast(&transportId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetTransportsAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().GetTransportsAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestStoreAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequestStoreAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowComposeSmsMessageAsync(abi_arg_in message, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShowComposeSmsMessageAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowSmsSettings() noexcept override - { - try - { - this->shim().ShowSmsSettings(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestSyncManagerAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestSyncManagerAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChatMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChatMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ShouldDisplayToast(bool * result) noexcept override - { - try - { - *result = detach(this->shim().ShouldDisplayToast()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShouldUpdateDetailText(bool * result) noexcept override - { - try - { - *result = detach(this->shim().ShouldUpdateDetailText()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShouldUpdateBadge(bool * result) noexcept override - { - try - { - *result = detach(this->shim().ShouldUpdateBadge()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShouldUpdateActionCenter(bool * result) noexcept override - { - try - { - *result = detach(this->shim().ShouldUpdateActionCenter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadBatchWithCountAsync(int32_t count, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().ReadBatchAsync(count)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeTracker(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChangeTracker()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteMessageAsync(abi_arg_in localMessageId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeleteMessageAsync(*reinterpret_cast(&localMessageId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DownloadMessageAsync(abi_arg_in localChatMessageId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DownloadMessageAsync(*reinterpret_cast(&localChatMessageId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageAsync(abi_arg_in localChatMessageId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetMessageAsync(*reinterpret_cast(&localChatMessageId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageReader1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetMessageReader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageReader2(abi_arg_in recentTimeLimit, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetMessageReader(*reinterpret_cast(&recentTimeLimit))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkMessageReadAsync(abi_arg_in localChatMessageId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MarkMessageReadAsync(*reinterpret_cast(&localChatMessageId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetrySendMessageAsync(abi_arg_in localChatMessageId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RetrySendMessageAsync(*reinterpret_cast(&localChatMessageId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendMessageAsync(abi_arg_in chatMessage, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SendMessageAsync(*reinterpret_cast(&chatMessage))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ValidateMessage(abi_arg_in chatMessage, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ValidateMessage(*reinterpret_cast(&chatMessage))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MessageChanged(abi_arg_in> value, event_token * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().MessageChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MessageChanged(event_token value) noexcept override - { - try - { - this->shim().MessageChanged(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ForwardMessageAsync(abi_arg_in localChatMessageId, abi_arg_in> addresses, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ForwardMessageAsync(*reinterpret_cast(&localChatMessageId), *reinterpret_cast *>(&addresses))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationAsync(abi_arg_in conversationId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationAsync(*reinterpret_cast(&conversationId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationForTransportsAsync(abi_arg_in conversationId, abi_arg_in> transportIds, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationAsync(*reinterpret_cast(&conversationId), *reinterpret_cast *>(&transportIds))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationFromThreadingInfoAsync(abi_arg_in threadingInfo, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationFromThreadingInfoAsync(*reinterpret_cast(&threadingInfo))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationForTransportsReader(abi_arg_in> transportIds, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationReader(*reinterpret_cast *>(&transportIds))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageByRemoteIdAsync(abi_arg_in transportId, abi_arg_in remoteId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageByRemoteIdAsync(*reinterpret_cast(&transportId), *reinterpret_cast(&remoteId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUnseenCountAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetUnseenCountAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUnseenCountForTransportsReaderAsync(abi_arg_in> transportIds, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetUnseenCountAsync(*reinterpret_cast *>(&transportIds))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkAsSeenAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkAsSeenAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkAsSeenForTransportsAsync(abi_arg_in> transportIds, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkAsSeenAsync(*reinterpret_cast *>(&transportIds))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSearchReader(abi_arg_in value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetSearchReader(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveMessageAsync(abi_arg_in chatMessage, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveMessageAsync(*reinterpret_cast(&chatMessage))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryCancelDownloadMessageAsync(abi_arg_in localChatMessageId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryCancelDownloadMessageAsync(*reinterpret_cast(&localChatMessageId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryCancelSendMessageAsync(abi_arg_in localChatMessageId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryCancelSendMessageAsync(*reinterpret_cast(&localChatMessageId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StoreChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StoreChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StoreChanged(event_token token) noexcept override - { - try - { - this->shim().StoreChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetMessageBySyncIdAsync(abi_arg_in syncId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageBySyncIdAsync(*reinterpret_cast(&syncId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Chat::ChatStoreChangedEventKind * result) noexcept override - { - try - { - *result = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsAppSetAsNotificationProvider(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAppSetAsNotificationProvider()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportFriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransportFriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransportId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestSetAsNotificationProviderAsync(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RequestSetAsNotificationProviderAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Configuration(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Configuration()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportKind(Windows::ApplicationModel::Chat::ChatMessageTransportKind * result) noexcept override - { - try - { - *result = detach(this->shim().TransportKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxAttachmentCount(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().MaxAttachmentCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxMessageSizeInKilobytes(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().MaxMessageSizeInKilobytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxRecipientCount(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().MaxRecipientCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedVideoFormat(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SupportedVideoFormat()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedProperties(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ExtendedProperties()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxPartCount(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxPartCount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PartCount(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PartCount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemainingCharacterCountInPart(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RemainingCharacterCountInPart()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::ApplicationModel::Chat::ChatMessageValidationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SearchString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SearchString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SearchString(abi_arg_in value) noexcept override - { - try - { - this->shim().SearchString(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TransportAddress(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TransportAddress()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransportAddress(abi_arg_in value) noexcept override - { - try - { - this->shim().TransportAddress(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeliveryTime(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().DeliveryTime()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DeliveryTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().DeliveryTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadTime(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ReadTime()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReadTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().ReadTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportErrorCodeCategory(Windows::ApplicationModel::Chat::ChatTransportErrorCodeCategory * result) noexcept override - { - try - { - *result = detach(this->shim().TransportErrorCodeCategory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportInterpretedErrorCode(Windows::ApplicationModel::Chat::ChatTransportInterpretedErrorCode * result) noexcept override - { - try - { - *result = detach(this->shim().TransportInterpretedErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportErrorCode(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().TransportErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsErrorPermanent(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsErrorPermanent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::ApplicationModel::Chat::ChatMessageStatus * result) noexcept override - { - try - { - *result = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadBatchWithCountAsync(int32_t count, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().ReadBatchAsync(count)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSyncEnabled(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsSyncEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSyncEnabled(bool value) noexcept override - { - try - { - this->shim().IsSyncEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RestoreHistorySpan(Windows::ApplicationModel::Chat::ChatRestoreHistorySpan * result) noexcept override - { - try - { - *result = detach(this->shim().RestoreHistorySpan()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RestoreHistorySpan(Windows::ApplicationModel::Chat::ChatRestoreHistorySpan value) noexcept override - { - try - { - this->shim().RestoreHistorySpan(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Configuration(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Configuration()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AssociateAccountAsync(abi_arg_in webAccount, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().AssociateAccountAsync(*reinterpret_cast(&webAccount))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnassociateAccountAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UnassociateAccountAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsAccountAssociated(abi_arg_in webAccount, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsAccountAssociated(*reinterpret_cast(&webAccount))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartSync() noexcept override - { - try - { - this->shim().StartSync(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetConfigurationAsync(abi_arg_in configuration, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SetConfigurationAsync(*reinterpret_cast(&configuration))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TransportId(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TransportId()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPinRequired(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsPinRequired()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Actions(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().Actions()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendResponseAsync(abi_arg_in action, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SendResponseAsync(*reinterpret_cast(&action))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendResponseWithPinAsync(abi_arg_in action, abi_arg_in pin, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SendResponseWithPinAsync(*reinterpret_cast(&action), *reinterpret_cast(&pin))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Label(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Label()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsMessageAvailable(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsMessageAvailable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Message(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_MessageAvailableChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MessageAvailableChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MessageAvailableChanged(event_token token) noexcept override - { - try - { - this->shim().MessageAvailableChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetEndUserMessageManager(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetEndUserMessageManager()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTransportsAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().GetTransportsAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTransportAsync(abi_arg_in transportId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetTransportAsync(*reinterpret_cast(&transportId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LeaveConversationAsync(abi_arg_in conversation, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LeaveConversationAsync(*reinterpret_cast(&conversation))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServiceKind(Windows::ApplicationModel::Chat::RcsServiceKind * result) noexcept override - { - try - { - *result = detach(this->shim().ServiceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExtendedProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportFriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransportFriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransportId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Configuration(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Configuration()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsStoreAndForwardEnabled(Windows::ApplicationModel::Chat::RcsServiceKind serviceKind, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsStoreAndForwardEnabled(serviceKind)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsServiceKindSupported(Windows::ApplicationModel::Chat::RcsServiceKind serviceKind, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsServiceKindSupported(serviceKind)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ServiceKindSupportedChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ServiceKindSupportedChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ServiceKindSupportedChanged(event_token token) noexcept override - { - try - { - this->shim().ServiceKindSupportedChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxAttachmentCount(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().MaxAttachmentCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxMessageSizeInKilobytes(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().MaxMessageSizeInKilobytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxGroupMessageSizeInKilobytes(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().MaxGroupMessageSizeInKilobytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxRecipientCount(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().MaxRecipientCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxFileSizeInKilobytes(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().MaxFileSizeInKilobytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WarningFileSizeInKilobytes(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().WarningFileSizeInKilobytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TransportId(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TransportId()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ParticipantAddress(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ParticipantAddress()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsComposing(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsComposing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Chat { - -template bool impl_IChatMessageTransport::IsAppSetAsNotificationProvider() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAppSetAsNotificationProvider(&value)); - return value; -} - -template bool impl_IChatMessageTransport::IsActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActive(&value)); - return value; -} - -template hstring impl_IChatMessageTransport::TransportFriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TransportFriendlyName(put(value))); - return value; -} - -template hstring impl_IChatMessageTransport::TransportId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TransportId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IChatMessageTransport::RequestSetAsNotificationProviderAsync() const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_RequestSetAsNotificationProviderAsync(put(value))); - return value; -} - -template Windows::ApplicationModel::Chat::ChatMessageTransportConfiguration impl_IChatMessageTransport2::Configuration() const -{ - Windows::ApplicationModel::Chat::ChatMessageTransportConfiguration result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Configuration(put(result))); - return result; -} - -template Windows::ApplicationModel::Chat::ChatMessageTransportKind impl_IChatMessageTransport2::TransportKind() const -{ - Windows::ApplicationModel::Chat::ChatMessageTransportKind result {}; - check_hresult(static_cast(static_cast(*this))->get_TransportKind(&result)); - return result; -} - -template int32_t impl_IChatMessageTransportConfiguration::MaxAttachmentCount() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->get_MaxAttachmentCount(&result)); - return result; -} - -template int32_t impl_IChatMessageTransportConfiguration::MaxMessageSizeInKilobytes() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->get_MaxMessageSizeInKilobytes(&result)); - return result; -} - -template int32_t impl_IChatMessageTransportConfiguration::MaxRecipientCount() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->get_MaxRecipientCount(&result)); - return result; -} - -template Windows::Media::MediaProperties::MediaEncodingProfile impl_IChatMessageTransportConfiguration::SupportedVideoFormat() const -{ - Windows::Media::MediaProperties::MediaEncodingProfile result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SupportedVideoFormat(put(result))); - return result; -} - -template Windows::Foundation::Collections::IMapView impl_IChatMessageTransportConfiguration::ExtendedProperties() const -{ - Windows::Foundation::Collections::IMapView result; - check_hresult(static_cast(static_cast(*this))->get_ExtendedProperties(put(result))); - return result; -} - -template Windows::ApplicationModel::Chat::ChatMessageChangeType impl_IChatMessageChange::ChangeType() const -{ - Windows::ApplicationModel::Chat::ChatMessageChangeType value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeType(&value)); - return value; -} - -template Windows::ApplicationModel::Chat::ChatMessage impl_IChatMessageChange::Message() const -{ - Windows::ApplicationModel::Chat::ChatMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template void impl_IChatMessageChangeReader::AcceptChanges() const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptChanges()); -} - -template void impl_IChatMessageChangeReader::AcceptChangesThrough(const Windows::ApplicationModel::Chat::ChatMessageChange & lastChangeToAcknowledge) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptChangesThrough(get(lastChangeToAcknowledge))); -} - -template Windows::Foundation::IAsyncOperation> impl_IChatMessageChangeReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(value))); - return value; -} - -template void impl_IChatMessageChangeTracker::Enable() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Enable()); -} - -template Windows::ApplicationModel::Chat::ChatMessageChangeReader impl_IChatMessageChangeTracker::GetChangeReader() const -{ - Windows::ApplicationModel::Chat::ChatMessageChangeReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetChangeReader(put(value))); - return value; -} - -template void impl_IChatMessageChangeTracker::Reset() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Reset()); -} - -template Windows::Foundation::IReference impl_IChatMessageValidationResult::MaxPartCount() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxPartCount(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IChatMessageValidationResult::PartCount() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_PartCount(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IChatMessageValidationResult::RemainingCharacterCountInPart() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_RemainingCharacterCountInPart(put(value))); - return value; -} - -template Windows::ApplicationModel::Chat::ChatMessageValidationStatus impl_IChatMessageValidationResult::Status() const -{ - Windows::ApplicationModel::Chat::ChatMessageValidationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IChatMessage::Attachments() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Attachments(put(value))); - return value; -} - -template hstring impl_IChatMessage::Body() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Body(put(value))); - return value; -} - -template void impl_IChatMessage::Body(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Body(get(value))); -} - -template hstring impl_IChatMessage::From() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_From(put(value))); - return value; -} - -template hstring impl_IChatMessage::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template bool impl_IChatMessage::IsForwardingDisabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsForwardingDisabled(&value)); - return value; -} - -template bool impl_IChatMessage::IsIncoming() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsIncoming(&value)); - return value; -} - -template bool impl_IChatMessage::IsRead() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRead(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IChatMessage::LocalTimestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_LocalTimestamp(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IChatMessage::NetworkTimestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkTimestamp(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IChatMessage::Recipients() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Recipients(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IChatMessage::RecipientSendStatuses() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_RecipientSendStatuses(put(value))); - return value; -} - -template Windows::ApplicationModel::Chat::ChatMessageStatus impl_IChatMessage::Status() const -{ - Windows::ApplicationModel::Chat::ChatMessageStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template hstring impl_IChatMessage::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template hstring impl_IChatMessage::TransportFriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TransportFriendlyName(put(value))); - return value; -} - -template hstring impl_IChatMessage::TransportId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TransportId(put(value))); - return value; -} - -template void impl_IChatMessage::TransportId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransportId(get(value))); -} - -template hstring impl_IChatMessage3::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template uint64_t impl_IChatMessage2::EstimatedDownloadSize() const -{ - uint64_t result {}; - check_hresult(static_cast(static_cast(*this))->get_EstimatedDownloadSize(&result)); - return result; -} - -template void impl_IChatMessage2::EstimatedDownloadSize(uint64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EstimatedDownloadSize(value)); -} - -template void impl_IChatMessage2::From(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_From(get(value))); -} - -template bool impl_IChatMessage2::IsAutoReply() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsAutoReply(&result)); - return result; -} - -template void impl_IChatMessage2::IsAutoReply(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsAutoReply(value)); -} - -template void impl_IChatMessage2::IsForwardingDisabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsForwardingDisabled(value)); -} - -template bool impl_IChatMessage2::IsReplyDisabled() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsReplyDisabled(&result)); - return result; -} - -template void impl_IChatMessage2::IsIncoming(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsIncoming(value)); -} - -template void impl_IChatMessage2::IsRead(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsRead(value)); -} - -template bool impl_IChatMessage2::IsSeen() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsSeen(&result)); - return result; -} - -template void impl_IChatMessage2::IsSeen(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSeen(value)); -} - -template bool impl_IChatMessage2::IsSimMessage() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsSimMessage(&result)); - return result; -} - -template void impl_IChatMessage2::LocalTimestamp(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LocalTimestamp(get(value))); -} - -template Windows::ApplicationModel::Chat::ChatMessageKind impl_IChatMessage2::MessageKind() const -{ - Windows::ApplicationModel::Chat::ChatMessageKind result {}; - check_hresult(static_cast(static_cast(*this))->get_MessageKind(&result)); - return result; -} - -template void impl_IChatMessage2::MessageKind(Windows::ApplicationModel::Chat::ChatMessageKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MessageKind(value)); -} - -template Windows::ApplicationModel::Chat::ChatMessageOperatorKind impl_IChatMessage2::MessageOperatorKind() const -{ - Windows::ApplicationModel::Chat::ChatMessageOperatorKind result {}; - check_hresult(static_cast(static_cast(*this))->get_MessageOperatorKind(&result)); - return result; -} - -template void impl_IChatMessage2::MessageOperatorKind(Windows::ApplicationModel::Chat::ChatMessageOperatorKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MessageOperatorKind(value)); -} - -template void impl_IChatMessage2::NetworkTimestamp(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NetworkTimestamp(get(value))); -} - -template bool impl_IChatMessage2::IsReceivedDuringQuietHours() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsReceivedDuringQuietHours(&result)); - return result; -} - -template void impl_IChatMessage2::IsReceivedDuringQuietHours(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsReceivedDuringQuietHours(value)); -} - -template void impl_IChatMessage2::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template void impl_IChatMessage2::Status(Windows::ApplicationModel::Chat::ChatMessageStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Status(value)); -} - -template void impl_IChatMessage2::Subject(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Subject(get(value))); -} - -template bool impl_IChatMessage2::ShouldSuppressNotification() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_ShouldSuppressNotification(&result)); - return result; -} - -template void impl_IChatMessage2::ShouldSuppressNotification(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShouldSuppressNotification(value)); -} - -template Windows::ApplicationModel::Chat::ChatConversationThreadingInfo impl_IChatMessage2::ThreadingInfo() const -{ - Windows::ApplicationModel::Chat::ChatConversationThreadingInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ThreadingInfo(put(result))); - return result; -} - -template void impl_IChatMessage2::ThreadingInfo(const Windows::ApplicationModel::Chat::ChatConversationThreadingInfo & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ThreadingInfo(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IChatMessage2::RecipientsDeliveryInfos() const -{ - Windows::Foundation::Collections::IVector result; - check_hresult(static_cast(static_cast(*this))->get_RecipientsDeliveryInfos(put(result))); - return result; -} - -template hstring impl_IChatMessage4::SyncId() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_SyncId(put(result))); - return result; -} - -template void impl_IChatMessage4::SyncId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SyncId(get(value))); -} - -template hstring impl_IChatQueryOptions::SearchString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_SearchString(put(result))); - return result; -} - -template void impl_IChatQueryOptions::SearchString(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SearchString(get(value))); -} - -template Windows::ApplicationModel::Chat::ChatMessageChangeTracker impl_IChatMessageStore::ChangeTracker() const -{ - Windows::ApplicationModel::Chat::ChatMessageChangeTracker value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChangeTracker(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IChatMessageStore::DeleteMessageAsync(hstring_ref localMessageId) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_DeleteMessageAsync(get(localMessageId), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IChatMessageStore::DownloadMessageAsync(hstring_ref localChatMessageId) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_DownloadMessageAsync(get(localChatMessageId), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageStore::GetMessageAsync(hstring_ref localChatMessageId) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageAsync(get(localChatMessageId), put(value))); - return value; -} - -template Windows::ApplicationModel::Chat::ChatMessageReader impl_IChatMessageStore::GetMessageReader() const -{ - Windows::ApplicationModel::Chat::ChatMessageReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageReader1(put(value))); - return value; -} - -template Windows::ApplicationModel::Chat::ChatMessageReader impl_IChatMessageStore::GetMessageReader(const Windows::Foundation::TimeSpan & recentTimeLimit) const -{ - Windows::ApplicationModel::Chat::ChatMessageReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageReader2(get(recentTimeLimit), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IChatMessageStore::MarkMessageReadAsync(hstring_ref localChatMessageId) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_MarkMessageReadAsync(get(localChatMessageId), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IChatMessageStore::RetrySendMessageAsync(hstring_ref localChatMessageId) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_RetrySendMessageAsync(get(localChatMessageId), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IChatMessageStore::SendMessageAsync(const Windows::ApplicationModel::Chat::ChatMessage & chatMessage) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_SendMessageAsync(get(chatMessage), put(value))); - return value; -} - -template Windows::ApplicationModel::Chat::ChatMessageValidationResult impl_IChatMessageStore::ValidateMessage(const Windows::ApplicationModel::Chat::ChatMessage & chatMessage) const -{ - Windows::ApplicationModel::Chat::ChatMessageValidationResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ValidateMessage(get(chatMessage), put(value))); - return value; -} - -template event_token impl_IChatMessageStore::MessageChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token returnValue {}; - check_hresult(static_cast(static_cast(*this))->add_MessageChanged(get(value), &returnValue)); - return returnValue; -} - -template event_revoker impl_IChatMessageStore::MessageChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Chat::IChatMessageStore::remove_MessageChanged, MessageChanged(value)); -} - -template void impl_IChatMessageStore::MessageChanged(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MessageChanged(value)); -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageStore2::ForwardMessageAsync(hstring_ref localChatMessageId, const Windows::Foundation::Collections::IIterable & addresses) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ForwardMessageAsync(get(localChatMessageId), get(addresses), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageStore2::GetConversationAsync(hstring_ref conversationId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationAsync(get(conversationId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageStore2::GetConversationAsync(hstring_ref conversationId, const Windows::Foundation::Collections::IIterable & transportIds) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationForTransportsAsync(get(conversationId), get(transportIds), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageStore2::GetConversationFromThreadingInfoAsync(const Windows::ApplicationModel::Chat::ChatConversationThreadingInfo & threadingInfo) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationFromThreadingInfoAsync(get(threadingInfo), put(result))); - return result; -} - -template Windows::ApplicationModel::Chat::ChatConversationReader impl_IChatMessageStore2::GetConversationReader() const -{ - Windows::ApplicationModel::Chat::ChatConversationReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationReader(put(result))); - return result; -} - -template Windows::ApplicationModel::Chat::ChatConversationReader impl_IChatMessageStore2::GetConversationReader(const Windows::Foundation::Collections::IIterable & transportIds) const -{ - Windows::ApplicationModel::Chat::ChatConversationReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationForTransportsReader(get(transportIds), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageStore2::GetMessageByRemoteIdAsync(hstring_ref transportId, hstring_ref remoteId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageByRemoteIdAsync(get(transportId), get(remoteId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageStore2::GetUnseenCountAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetUnseenCountAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageStore2::GetUnseenCountAsync(const Windows::Foundation::Collections::IIterable & transportIds) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetUnseenCountForTransportsReaderAsync(get(transportIds), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IChatMessageStore2::MarkAsSeenAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkAsSeenAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IChatMessageStore2::MarkAsSeenAsync(const Windows::Foundation::Collections::IIterable & transportIds) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkAsSeenForTransportsAsync(get(transportIds), put(result))); - return result; -} - -template Windows::ApplicationModel::Chat::ChatSearchReader impl_IChatMessageStore2::GetSearchReader(const Windows::ApplicationModel::Chat::ChatQueryOptions & value) const -{ - Windows::ApplicationModel::Chat::ChatSearchReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetSearchReader(get(value), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IChatMessageStore2::SaveMessageAsync(const Windows::ApplicationModel::Chat::ChatMessage & chatMessage) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveMessageAsync(get(chatMessage), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageStore2::TryCancelDownloadMessageAsync(hstring_ref localChatMessageId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryCancelDownloadMessageAsync(get(localChatMessageId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageStore2::TryCancelSendMessageAsync(hstring_ref localChatMessageId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryCancelSendMessageAsync(get(localChatMessageId), put(result))); - return result; -} - -template event_token impl_IChatMessageStore2::StoreChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StoreChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IChatMessageStore2::StoreChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Chat::IChatMessageStore2::remove_StoreChanged, StoreChanged(handler)); -} - -template void impl_IChatMessageStore2::StoreChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StoreChanged(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageStore3::GetMessageBySyncIdAsync(hstring_ref syncId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageBySyncIdAsync(get(syncId), put(result))); - return result; -} - -template hstring impl_IChatMessageStoreChangedEventArgs::Id() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_Id(put(result))); - return result; -} - -template Windows::ApplicationModel::Chat::ChatStoreChangedEventKind impl_IChatMessageStoreChangedEventArgs::Kind() const -{ - Windows::ApplicationModel::Chat::ChatStoreChangedEventKind result {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&result)); - return result; -} - -template Windows::ApplicationModel::Chat::ChatMessageChangedDeferral impl_IChatMessageChangedEventArgs::GetDeferral() const -{ - Windows::ApplicationModel::Chat::ChatMessageChangedDeferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -template void impl_IChatMessageChangedDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::Foundation::IAsyncAction impl_IChatMessageBlockingStatic::MarkMessageAsBlockedAsync(hstring_ref localChatMessageId, bool blocked) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_MarkMessageAsBlockedAsync(get(localChatMessageId), blocked, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IChatMessageManagerStatic::GetTransportsAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_GetTransportsAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageManagerStatic::RequestStoreAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IChatMessageManagerStatic::ShowComposeSmsMessageAsync(const Windows::ApplicationModel::Chat::ChatMessage & message) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_ShowComposeSmsMessageAsync(get(message), put(value))); - return value; -} - -template void impl_IChatMessageManagerStatic::ShowSmsSettings() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowSmsSettings()); -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageManager2Statics::RegisterTransportAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RegisterTransportAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageManager2Statics::GetTransportAsync(hstring_ref transportId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetTransportAsync(get(transportId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatMessageManagerStatics3::RequestSyncManagerAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestSyncManagerAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IChatMessageReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IChatMessageReader2::ReadBatchAsync(int32_t count) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchWithCountAsync(count, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IChatSearchReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IChatSearchReader::ReadBatchAsync(int32_t count) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchWithCountAsync(count, put(result))); - return result; -} - -template Windows::ApplicationModel::Chat::ChatItemKind impl_IChatItem::ItemKind() const -{ - Windows::ApplicationModel::Chat::ChatItemKind result {}; - check_hresult(static_cast(static_cast(*this))->get_ItemKind(&result)); - return result; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IChatMessageAttachment::DataStreamReference() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_DataStreamReference(put(value))); - return value; -} - -template void impl_IChatMessageAttachment::DataStreamReference(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataStreamReference(get(value))); -} - -template uint32_t impl_IChatMessageAttachment::GroupId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_GroupId(&value)); - return value; -} - -template void impl_IChatMessageAttachment::GroupId(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GroupId(value)); -} - -template hstring impl_IChatMessageAttachment::MimeType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MimeType(put(value))); - return value; -} - -template void impl_IChatMessageAttachment::MimeType(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MimeType(get(value))); -} - -template hstring impl_IChatMessageAttachment::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_IChatMessageAttachment::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IChatMessageAttachment2::Thumbnail() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference result; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(result))); - return result; -} - -template void impl_IChatMessageAttachment2::Thumbnail(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbnail(get(value))); -} - -template double impl_IChatMessageAttachment2::TransferProgress() const -{ - double result {}; - check_hresult(static_cast(static_cast(*this))->get_TransferProgress(&result)); - return result; -} - -template void impl_IChatMessageAttachment2::TransferProgress(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransferProgress(value)); -} - -template hstring impl_IChatMessageAttachment2::OriginalFileName() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_OriginalFileName(put(result))); - return result; -} - -template void impl_IChatMessageAttachment2::OriginalFileName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OriginalFileName(get(value))); -} - -template Windows::ApplicationModel::Chat::ChatMessageAttachment impl_IChatMessageAttachmentFactory::CreateChatMessageAttachment(hstring_ref mimeType, const Windows::Storage::Streams::IRandomAccessStreamReference & dataStreamReference) const -{ - Windows::ApplicationModel::Chat::ChatMessageAttachment value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateChatMessageAttachment(get(mimeType), get(dataStreamReference), put(value))); - return value; -} - -template Windows::ApplicationModel::Chat::ChatMessage impl_IChatMessageNotificationTriggerDetails::ChatMessage() const -{ - Windows::ApplicationModel::Chat::ChatMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChatMessage(put(value))); - return value; -} - -template bool impl_IChatMessageNotificationTriggerDetails2::ShouldDisplayToast() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_ShouldDisplayToast(&result)); - return result; -} - -template bool impl_IChatMessageNotificationTriggerDetails2::ShouldUpdateDetailText() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_ShouldUpdateDetailText(&result)); - return result; -} - -template bool impl_IChatMessageNotificationTriggerDetails2::ShouldUpdateBadge() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_ShouldUpdateBadge(&result)); - return result; -} - -template bool impl_IChatMessageNotificationTriggerDetails2::ShouldUpdateActionCenter() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_ShouldUpdateActionCenter(&result)); - return result; -} - -template bool impl_IChatCapabilities::IsOnline() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsOnline(&result)); - return result; -} - -template bool impl_IChatCapabilities::IsChatCapable() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsChatCapable(&result)); - return result; -} - -template bool impl_IChatCapabilities::IsFileTransferCapable() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsFileTransferCapable(&result)); - return result; -} - -template bool impl_IChatCapabilities::IsGeoLocationPushCapable() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsGeoLocationPushCapable(&result)); - return result; -} - -template bool impl_IChatCapabilities::IsIntegratedMessagingCapable() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsIntegratedMessagingCapable(&result)); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatCapabilitiesManagerStatics::GetCachedCapabilitiesAsync(hstring_ref address) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetCachedCapabilitiesAsync(get(address), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IChatCapabilitiesManagerStatics::GetCapabilitiesFromNetworkAsync(hstring_ref address) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetCapabilitiesFromNetworkAsync(get(address), put(result))); - return result; -} - -template hstring impl_IChatRecipientDeliveryInfo::TransportAddress() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_TransportAddress(put(result))); - return result; -} - -template void impl_IChatRecipientDeliveryInfo::TransportAddress(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransportAddress(get(value))); -} - -template Windows::Foundation::IReference impl_IChatRecipientDeliveryInfo::DeliveryTime() const -{ - Windows::Foundation::IReference result; - check_hresult(static_cast(static_cast(*this))->get_DeliveryTime(put(result))); - return result; -} - -template void impl_IChatRecipientDeliveryInfo::DeliveryTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DeliveryTime(get(value))); -} - -template Windows::Foundation::IReference impl_IChatRecipientDeliveryInfo::ReadTime() const -{ - Windows::Foundation::IReference result; - check_hresult(static_cast(static_cast(*this))->get_ReadTime(put(result))); - return result; -} - -template void impl_IChatRecipientDeliveryInfo::ReadTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReadTime(get(value))); -} - -template Windows::ApplicationModel::Chat::ChatTransportErrorCodeCategory impl_IChatRecipientDeliveryInfo::TransportErrorCodeCategory() const -{ - Windows::ApplicationModel::Chat::ChatTransportErrorCodeCategory result {}; - check_hresult(static_cast(static_cast(*this))->get_TransportErrorCodeCategory(&result)); - return result; -} - -template Windows::ApplicationModel::Chat::ChatTransportInterpretedErrorCode impl_IChatRecipientDeliveryInfo::TransportInterpretedErrorCode() const -{ - Windows::ApplicationModel::Chat::ChatTransportInterpretedErrorCode result {}; - check_hresult(static_cast(static_cast(*this))->get_TransportInterpretedErrorCode(&result)); - return result; -} - -template int32_t impl_IChatRecipientDeliveryInfo::TransportErrorCode() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->get_TransportErrorCode(&result)); - return result; -} - -template bool impl_IChatRecipientDeliveryInfo::IsErrorPermanent() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsErrorPermanent(&result)); - return result; -} - -template Windows::ApplicationModel::Chat::ChatMessageStatus impl_IChatRecipientDeliveryInfo::Status() const -{ - Windows::ApplicationModel::Chat::ChatMessageStatus result {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&result)); - return result; -} - -template hstring impl_IChatConversationThreadingInfo::ContactId() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_ContactId(put(result))); - return result; -} - -template void impl_IChatConversationThreadingInfo::ContactId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContactId(get(value))); -} - -template hstring impl_IChatConversationThreadingInfo::Custom() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_Custom(put(result))); - return result; -} - -template void impl_IChatConversationThreadingInfo::Custom(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Custom(get(value))); -} - -template hstring impl_IChatConversationThreadingInfo::ConversationId() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_ConversationId(put(result))); - return result; -} - -template void impl_IChatConversationThreadingInfo::ConversationId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ConversationId(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IChatConversationThreadingInfo::Participants() const -{ - Windows::Foundation::Collections::IVector result; - check_hresult(static_cast(static_cast(*this))->get_Participants(put(result))); - return result; -} - -template Windows::ApplicationModel::Chat::ChatConversationThreadingKind impl_IChatConversationThreadingInfo::Kind() const -{ - Windows::ApplicationModel::Chat::ChatConversationThreadingKind result {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&result)); - return result; -} - -template void impl_IChatConversationThreadingInfo::Kind(Windows::ApplicationModel::Chat::ChatConversationThreadingKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Kind(value)); -} - -template Windows::Foundation::IAsyncOperation> impl_IChatConversationReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IChatConversationReader::ReadBatchAsync(int32_t count) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchWithCountAsync(count, put(result))); - return result; -} - -template bool impl_IChatConversation::HasUnreadMessages() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_HasUnreadMessages(&result)); - return result; -} - -template hstring impl_IChatConversation::Id() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_Id(put(result))); - return result; -} - -template hstring impl_IChatConversation::Subject() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(result))); - return result; -} - -template void impl_IChatConversation::Subject(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Subject(get(value))); -} - -template bool impl_IChatConversation::IsConversationMuted() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsConversationMuted(&result)); - return result; -} - -template void impl_IChatConversation::IsConversationMuted(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsConversationMuted(value)); -} - -template hstring impl_IChatConversation::MostRecentMessageId() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_MostRecentMessageId(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IChatConversation::Participants() const -{ - Windows::Foundation::Collections::IVector result; - check_hresult(static_cast(static_cast(*this))->get_Participants(put(result))); - return result; -} - -template Windows::ApplicationModel::Chat::ChatConversationThreadingInfo impl_IChatConversation::ThreadingInfo() const -{ - Windows::ApplicationModel::Chat::ChatConversationThreadingInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ThreadingInfo(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IChatConversation::DeleteAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(put(result))); - return result; -} - -template Windows::ApplicationModel::Chat::ChatMessageReader impl_IChatConversation::GetMessageReader() const -{ - Windows::ApplicationModel::Chat::ChatMessageReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageReader(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IChatConversation::MarkMessagesAsReadAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkAllMessagesAsReadAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IChatConversation::MarkMessagesAsReadAsync(const Windows::Foundation::DateTime & value) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkMessagesAsReadAsync(get(value), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IChatConversation::SaveAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsync(put(result))); - return result; -} - -template void impl_IChatConversation::NotifyLocalParticipantComposing(hstring_ref transportId, hstring_ref participantAddress, bool isComposing) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyLocalParticipantComposing(get(transportId), get(participantAddress), isComposing)); -} - -template void impl_IChatConversation::NotifyRemoteParticipantComposing(hstring_ref transportId, hstring_ref participantAddress, bool isComposing) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyRemoteParticipantComposing(get(transportId), get(participantAddress), isComposing)); -} - -template event_token impl_IChatConversation::RemoteParticipantComposingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RemoteParticipantComposingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IChatConversation::RemoteParticipantComposingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Chat::IChatConversation::remove_RemoteParticipantComposingChanged, RemoteParticipantComposingChanged(handler)); -} - -template void impl_IChatConversation::RemoteParticipantComposingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RemoteParticipantComposingChanged(token)); -} - -template bool impl_IChatConversation2::CanModifyParticipants() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_CanModifyParticipants(&result)); - return result; -} - -template void impl_IChatConversation2::CanModifyParticipants(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanModifyParticipants(value)); -} - -template hstring impl_IRemoteParticipantComposingChangedEventArgs::TransportId() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_TransportId(put(result))); - return result; -} - -template hstring impl_IRemoteParticipantComposingChangedEventArgs::ParticipantAddress() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_ParticipantAddress(put(result))); - return result; -} - -template bool impl_IRemoteParticipantComposingChangedEventArgs::IsComposing() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsComposing(&result)); - return result; -} - -template Windows::ApplicationModel::Chat::ChatSyncConfiguration impl_IChatSyncManager::Configuration() const -{ - Windows::ApplicationModel::Chat::ChatSyncConfiguration result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Configuration(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IChatSyncManager::AssociateAccountAsync(const Windows::Security::Credentials::WebAccount & webAccount) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_AssociateAccountAsync(get(webAccount), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IChatSyncManager::UnassociateAccountAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_UnassociateAccountAsync(put(result))); - return result; -} - -template bool impl_IChatSyncManager::IsAccountAssociated(const Windows::Security::Credentials::WebAccount & webAccount) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsAccountAssociated(get(webAccount), &result)); - return result; -} - -template void impl_IChatSyncManager::StartSync() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartSync()); -} - -template Windows::Foundation::IAsyncAction impl_IChatSyncManager::SetConfigurationAsync(const Windows::ApplicationModel::Chat::ChatSyncConfiguration & configuration) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SetConfigurationAsync(get(configuration), put(result))); - return result; -} - -template bool impl_IChatSyncConfiguration::IsSyncEnabled() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsSyncEnabled(&result)); - return result; -} - -template void impl_IChatSyncConfiguration::IsSyncEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSyncEnabled(value)); -} - -template Windows::ApplicationModel::Chat::ChatRestoreHistorySpan impl_IChatSyncConfiguration::RestoreHistorySpan() const -{ - Windows::ApplicationModel::Chat::ChatRestoreHistorySpan result {}; - check_hresult(static_cast(static_cast(*this))->get_RestoreHistorySpan(&result)); - return result; -} - -template void impl_IChatSyncConfiguration::RestoreHistorySpan(Windows::ApplicationModel::Chat::ChatRestoreHistorySpan value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RestoreHistorySpan(value)); -} - -template Windows::ApplicationModel::Chat::RcsServiceKind impl_IRcsServiceKindSupportedChangedEventArgs::ServiceKind() const -{ - Windows::ApplicationModel::Chat::RcsServiceKind result {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceKind(&result)); - return result; -} - -template Windows::ApplicationModel::Chat::RcsEndUserMessageManager impl_IRcsManagerStatics::GetEndUserMessageManager() const -{ - Windows::ApplicationModel::Chat::RcsEndUserMessageManager result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetEndUserMessageManager(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IRcsManagerStatics::GetTransportsAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_GetTransportsAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IRcsManagerStatics::GetTransportAsync(hstring_ref transportId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetTransportAsync(get(transportId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IRcsManagerStatics::LeaveConversationAsync(const Windows::ApplicationModel::Chat::ChatConversation & conversation) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_LeaveConversationAsync(get(conversation), put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IRcsTransport::ExtendedProperties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedProperties(put(value))); - return value; -} - -template bool impl_IRcsTransport::IsActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActive(&value)); - return value; -} - -template hstring impl_IRcsTransport::TransportFriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TransportFriendlyName(put(value))); - return value; -} - -template hstring impl_IRcsTransport::TransportId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TransportId(put(value))); - return value; -} - -template Windows::ApplicationModel::Chat::RcsTransportConfiguration impl_IRcsTransport::Configuration() const -{ - Windows::ApplicationModel::Chat::RcsTransportConfiguration result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Configuration(put(result))); - return result; -} - -template bool impl_IRcsTransport::IsStoreAndForwardEnabled(Windows::ApplicationModel::Chat::RcsServiceKind serviceKind) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsStoreAndForwardEnabled(serviceKind, &result)); - return result; -} - -template bool impl_IRcsTransport::IsServiceKindSupported(Windows::ApplicationModel::Chat::RcsServiceKind serviceKind) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsServiceKindSupported(serviceKind, &result)); - return result; -} - -template event_token impl_IRcsTransport::ServiceKindSupportedChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ServiceKindSupportedChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IRcsTransport::ServiceKindSupportedChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Chat::IRcsTransport::remove_ServiceKindSupportedChanged, ServiceKindSupportedChanged(handler)); -} - -template void impl_IRcsTransport::ServiceKindSupportedChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ServiceKindSupportedChanged(token)); -} - -template int32_t impl_IRcsTransportConfiguration::MaxAttachmentCount() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->get_MaxAttachmentCount(&result)); - return result; -} - -template int32_t impl_IRcsTransportConfiguration::MaxMessageSizeInKilobytes() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->get_MaxMessageSizeInKilobytes(&result)); - return result; -} - -template int32_t impl_IRcsTransportConfiguration::MaxGroupMessageSizeInKilobytes() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->get_MaxGroupMessageSizeInKilobytes(&result)); - return result; -} - -template int32_t impl_IRcsTransportConfiguration::MaxRecipientCount() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->get_MaxRecipientCount(&result)); - return result; -} - -template int32_t impl_IRcsTransportConfiguration::MaxFileSizeInKilobytes() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->get_MaxFileSizeInKilobytes(&result)); - return result; -} - -template int32_t impl_IRcsTransportConfiguration::WarningFileSizeInKilobytes() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->get_WarningFileSizeInKilobytes(&result)); - return result; -} - -template event_token impl_IRcsEndUserMessageManager::MessageAvailableChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MessageAvailableChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IRcsEndUserMessageManager::MessageAvailableChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Chat::IRcsEndUserMessageManager::remove_MessageAvailableChanged, MessageAvailableChanged(handler)); -} - -template void impl_IRcsEndUserMessageManager::MessageAvailableChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MessageAvailableChanged(token)); -} - -template hstring impl_IRcsEndUserMessageAction::Label() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_Label(put(result))); - return result; -} - -template hstring impl_IRcsEndUserMessage::TransportId() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_TransportId(put(result))); - return result; -} - -template hstring impl_IRcsEndUserMessage::Title() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_Title(put(result))); - return result; -} - -template hstring impl_IRcsEndUserMessage::Text() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_Text(put(result))); - return result; -} - -template bool impl_IRcsEndUserMessage::IsPinRequired() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsPinRequired(&result)); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_IRcsEndUserMessage::Actions() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->get_Actions(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IRcsEndUserMessage::SendResponseAsync(const Windows::ApplicationModel::Chat::RcsEndUserMessageAction & action) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SendResponseAsync(get(action), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IRcsEndUserMessage::SendResponseWithPinAsync(const Windows::ApplicationModel::Chat::RcsEndUserMessageAction & action, hstring_ref pin) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SendResponseWithPinAsync(get(action), get(pin), put(result))); - return result; -} - -template bool impl_IRcsEndUserMessageAvailableEventArgs::IsMessageAvailable() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->get_IsMessageAvailable(&result)); - return result; -} - -template Windows::ApplicationModel::Chat::RcsEndUserMessage impl_IRcsEndUserMessageAvailableEventArgs::Message() const -{ - Windows::ApplicationModel::Chat::RcsEndUserMessage result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Message(put(result))); - return result; -} - -template hstring impl_IRcsEndUserMessageAvailableTriggerDetails::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template hstring impl_IRcsEndUserMessageAvailableTriggerDetails::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -inline Windows::Foundation::IAsyncOperation ChatCapabilitiesManager::GetCachedCapabilitiesAsync(hstring_ref address) -{ - return get_activation_factory().GetCachedCapabilitiesAsync(address); -} - -inline Windows::Foundation::IAsyncOperation ChatCapabilitiesManager::GetCapabilitiesFromNetworkAsync(hstring_ref address) -{ - return get_activation_factory().GetCapabilitiesFromNetworkAsync(address); -} - -inline ChatConversationThreadingInfo::ChatConversationThreadingInfo() : - ChatConversationThreadingInfo(activate_instance()) -{} - -inline ChatMessage::ChatMessage() : - ChatMessage(activate_instance()) -{} - -inline ChatMessageAttachment::ChatMessageAttachment(hstring_ref mimeType, const Windows::Storage::Streams::IRandomAccessStreamReference & dataStreamReference) : - ChatMessageAttachment(get_activation_factory().CreateChatMessageAttachment(mimeType, dataStreamReference)) -{} - -inline Windows::Foundation::IAsyncAction ChatMessageBlocking::MarkMessageAsBlockedAsync(hstring_ref localChatMessageId, bool blocked) -{ - return get_activation_factory().MarkMessageAsBlockedAsync(localChatMessageId, blocked); -} - -inline Windows::Foundation::IAsyncOperation ChatMessageManager::RegisterTransportAsync() -{ - return get_activation_factory().RegisterTransportAsync(); -} - -inline Windows::Foundation::IAsyncOperation ChatMessageManager::GetTransportAsync(hstring_ref transportId) -{ - return get_activation_factory().GetTransportAsync(transportId); -} - -inline Windows::Foundation::IAsyncOperation> ChatMessageManager::GetTransportsAsync() -{ - return get_activation_factory().GetTransportsAsync(); -} - -inline Windows::Foundation::IAsyncOperation ChatMessageManager::RequestStoreAsync() -{ - return get_activation_factory().RequestStoreAsync(); -} - -inline Windows::Foundation::IAsyncAction ChatMessageManager::ShowComposeSmsMessageAsync(const Windows::ApplicationModel::Chat::ChatMessage & message) -{ - return get_activation_factory().ShowComposeSmsMessageAsync(message); -} - -inline void ChatMessageManager::ShowSmsSettings() -{ - get_activation_factory().ShowSmsSettings(); -} - -inline Windows::Foundation::IAsyncOperation ChatMessageManager::RequestSyncManagerAsync() -{ - return get_activation_factory().RequestSyncManagerAsync(); -} - -inline ChatQueryOptions::ChatQueryOptions() : - ChatQueryOptions(activate_instance()) -{} - -inline ChatRecipientDeliveryInfo::ChatRecipientDeliveryInfo() : - ChatRecipientDeliveryInfo(activate_instance()) -{} - -inline Windows::ApplicationModel::Chat::RcsEndUserMessageManager RcsManager::GetEndUserMessageManager() -{ - return get_activation_factory().GetEndUserMessageManager(); -} - -inline Windows::Foundation::IAsyncOperation> RcsManager::GetTransportsAsync() -{ - return get_activation_factory().GetTransportsAsync(); -} - -inline Windows::Foundation::IAsyncOperation RcsManager::GetTransportAsync(hstring_ref transportId) -{ - return get_activation_factory().GetTransportAsync(transportId); -} - -inline Windows::Foundation::IAsyncAction RcsManager::LeaveConversationAsync(const Windows::ApplicationModel::Chat::ChatConversation & conversation) -{ - return get_activation_factory().LeaveConversationAsync(conversation); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.CommunicationBlocking.h b/10.0.14393.0/winrt/Windows.ApplicationModel.CommunicationBlocking.h deleted file mode 100644 index c762c0ded..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.CommunicationBlocking.h +++ /dev/null @@ -1,254 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.CommunicationBlocking.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsBlockingActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBlockingActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsBlockedNumberAsync(abi_arg_in number, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().IsBlockedNumberAsync(*reinterpret_cast(&number))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowBlockNumbersUI(abi_arg_in> phoneNumbers, bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowBlockNumbersUI(*reinterpret_cast *>(&phoneNumbers))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowUnblockNumbersUI(abi_arg_in> phoneNumbers, bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowUnblockNumbersUI(*reinterpret_cast *>(&phoneNumbers))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowBlockedCallsUI() noexcept override - { - try - { - this->shim().ShowBlockedCallsUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowBlockedMessagesUI() noexcept override - { - try - { - this->shim().ShowBlockedMessagesUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsCurrentAppActiveBlockingApp(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCurrentAppActiveBlockingApp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowCommunicationBlockingSettingsUI() noexcept override - { - try - { - this->shim().ShowCommunicationBlockingSettingsUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestSetAsActiveBlockingAppAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestSetAsActiveBlockingAppAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::CommunicationBlocking { - -template bool impl_ICommunicationBlockingAppManagerStatics::IsCurrentAppActiveBlockingApp() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCurrentAppActiveBlockingApp(&value)); - return value; -} - -template void impl_ICommunicationBlockingAppManagerStatics::ShowCommunicationBlockingSettingsUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowCommunicationBlockingSettingsUI()); -} - -template Windows::Foundation::IAsyncOperation impl_ICommunicationBlockingAppManagerStatics2::RequestSetAsActiveBlockingAppAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestSetAsActiveBlockingAppAsync(put(result))); - return result; -} - -template bool impl_ICommunicationBlockingAccessManagerStatics::IsBlockingActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsBlockingActive(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICommunicationBlockingAccessManagerStatics::IsBlockedNumberAsync(hstring_ref number) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_IsBlockedNumberAsync(get(number), put(result))); - return result; -} - -template bool impl_ICommunicationBlockingAccessManagerStatics::ShowBlockNumbersUI(const Windows::Foundation::Collections::IIterable & phoneNumbers) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_ShowBlockNumbersUI(get(phoneNumbers), &value)); - return value; -} - -template bool impl_ICommunicationBlockingAccessManagerStatics::ShowUnblockNumbersUI(const Windows::Foundation::Collections::IIterable & phoneNumbers) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_ShowUnblockNumbersUI(get(phoneNumbers), &value)); - return value; -} - -template void impl_ICommunicationBlockingAccessManagerStatics::ShowBlockedCallsUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowBlockedCallsUI()); -} - -template void impl_ICommunicationBlockingAccessManagerStatics::ShowBlockedMessagesUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowBlockedMessagesUI()); -} - -inline bool CommunicationBlockingAccessManager::IsBlockingActive() -{ - return get_activation_factory().IsBlockingActive(); -} - -inline Windows::Foundation::IAsyncOperation CommunicationBlockingAccessManager::IsBlockedNumberAsync(hstring_ref number) -{ - return get_activation_factory().IsBlockedNumberAsync(number); -} - -inline bool CommunicationBlockingAccessManager::ShowBlockNumbersUI(const Windows::Foundation::Collections::IIterable & phoneNumbers) -{ - return get_activation_factory().ShowBlockNumbersUI(phoneNumbers); -} - -inline bool CommunicationBlockingAccessManager::ShowUnblockNumbersUI(const Windows::Foundation::Collections::IIterable & phoneNumbers) -{ - return get_activation_factory().ShowUnblockNumbersUI(phoneNumbers); -} - -inline void CommunicationBlockingAccessManager::ShowBlockedCallsUI() -{ - get_activation_factory().ShowBlockedCallsUI(); -} - -inline void CommunicationBlockingAccessManager::ShowBlockedMessagesUI() -{ - get_activation_factory().ShowBlockedMessagesUI(); -} - -inline bool CommunicationBlockingAppManager::IsCurrentAppActiveBlockingApp() -{ - return get_activation_factory().IsCurrentAppActiveBlockingApp(); -} - -inline void CommunicationBlockingAppManager::ShowCommunicationBlockingSettingsUI() -{ - get_activation_factory().ShowCommunicationBlockingSettingsUI(); -} - -inline Windows::Foundation::IAsyncOperation CommunicationBlockingAppManager::RequestSetAsActiveBlockingAppAsync() -{ - return get_activation_factory().RequestSetAsActiveBlockingAppAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Contacts.DataProvider.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Contacts.DataProvider.h deleted file mode 100644 index ea4ba399b..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Contacts.DataProvider.h +++ /dev/null @@ -1,463 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Contacts.3.h" -#include "internal/Windows.ApplicationModel.Contacts.DataProvider.3.h" -#include "Windows.ApplicationModel.Contacts.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall add_SyncRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SyncRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SyncRequested(event_token token) noexcept override - { - try - { - this->shim().SyncRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ServerSearchReadBatchRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ServerSearchReadBatchRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ServerSearchReadBatchRequested(event_token token) noexcept override - { - try - { - this->shim().ServerSearchReadBatchRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Connection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Connection()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SessionId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SessionId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContactListId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactListId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Options(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Options()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuggestedBatchSize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SuggestedBatchSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveContactAsync(abi_arg_in contact, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveContactAsync(*reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(Windows::ApplicationModel::Contacts::ContactBatchStatus batchStatus, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync(batchStatus)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContactListId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactListId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Contacts::DataProvider { - -template Windows::ApplicationModel::Contacts::DataProvider::ContactDataProviderConnection impl_IContactDataProviderTriggerDetails::Connection() const -{ - Windows::ApplicationModel::Contacts::DataProvider::ContactDataProviderConnection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Connection(put(value))); - return value; -} - -template event_token impl_IContactDataProviderConnection::SyncRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SyncRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IContactDataProviderConnection::SyncRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Contacts::DataProvider::IContactDataProviderConnection::remove_SyncRequested, SyncRequested(handler)); -} - -template void impl_IContactDataProviderConnection::SyncRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SyncRequested(token)); -} - -template event_token impl_IContactDataProviderConnection::ServerSearchReadBatchRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ServerSearchReadBatchRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IContactDataProviderConnection::ServerSearchReadBatchRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Contacts::DataProvider::IContactDataProviderConnection::remove_ServerSearchReadBatchRequested, ServerSearchReadBatchRequested(handler)); -} - -template void impl_IContactDataProviderConnection::ServerSearchReadBatchRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ServerSearchReadBatchRequested(token)); -} - -template void impl_IContactDataProviderConnection::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template hstring impl_IContactListSyncManagerSyncRequest::ContactListId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContactListId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IContactListSyncManagerSyncRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IContactListSyncManagerSyncRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IContactListServerSearchReadBatchRequest::SessionId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SessionId(put(value))); - return value; -} - -template hstring impl_IContactListServerSearchReadBatchRequest::ContactListId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContactListId(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactQueryOptions impl_IContactListServerSearchReadBatchRequest::Options() const -{ - Windows::ApplicationModel::Contacts::ContactQueryOptions value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Options(put(value))); - return value; -} - -template uint32_t impl_IContactListServerSearchReadBatchRequest::SuggestedBatchSize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SuggestedBatchSize(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IContactListServerSearchReadBatchRequest::SaveContactAsync(const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveContactAsync(get(contact), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IContactListServerSearchReadBatchRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IContactListServerSearchReadBatchRequest::ReportFailedAsync(Windows::ApplicationModel::Contacts::ContactBatchStatus batchStatus) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(batchStatus, put(result))); - return result; -} - -template Windows::ApplicationModel::Contacts::DataProvider::ContactListSyncManagerSyncRequest impl_IContactListSyncManagerSyncRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Contacts::DataProvider::ContactListSyncManagerSyncRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IContactListSyncManagerSyncRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::DataProvider::ContactListServerSearchReadBatchRequest impl_IContactListServerSearchReadBatchRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Contacts::DataProvider::ContactListServerSearchReadBatchRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IContactListServerSearchReadBatchRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Contacts.Provider.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Contacts.Provider.h deleted file mode 100644 index 1ea3c657d..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Contacts.Provider.h +++ /dev/null @@ -1,238 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.ApplicationModel.Contacts.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Contacts.Provider.3.h" -#include "Windows.ApplicationModel.Contacts.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddContact(abi_arg_in id, abi_arg_in contact, Windows::ApplicationModel::Contacts::Provider::AddContactResult * result) noexcept override - { - try - { - *result = detach(this->shim().AddContact(*reinterpret_cast(&id), *reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveContact(abi_arg_in id) noexcept override - { - try - { - this->shim().RemoveContact(*reinterpret_cast(&id)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ContainsContact(abi_arg_in id, bool * isContained) noexcept override - { - try - { - *isContained = detach(this->shim().ContainsContact(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredFields(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DesiredFields()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionMode(Windows::ApplicationModel::Contacts::ContactSelectionMode * value) noexcept override - { - try - { - *value = detach(this->shim().SelectionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContactRemoved(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ContactRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContactRemoved(event_token token) noexcept override - { - try - { - this->shim().ContactRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddContact(abi_arg_in contact, Windows::ApplicationModel::Contacts::Provider::AddContactResult * result) noexcept override - { - try - { - *result = detach(this->shim().AddContact(*reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredFieldsWithContactFieldType(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DesiredFieldsWithContactFieldType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Contacts::Provider { - -template hstring impl_IContactRemovedEventArgs::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::Provider::AddContactResult impl_IContactPickerUI::AddContact(hstring_ref id, const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - Windows::ApplicationModel::Contacts::Provider::AddContactResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_AddContact(get(id), get(contact), &result)); - return result; -} - -template void impl_IContactPickerUI::RemoveContact(hstring_ref id) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveContact(get(id))); -} - -template bool impl_IContactPickerUI::ContainsContact(hstring_ref id) const -{ - bool isContained {}; - check_hresult(static_cast(static_cast(*this))->abi_ContainsContact(get(id), &isContained)); - return isContained; -} - -template Windows::Foundation::Collections::IVectorView impl_IContactPickerUI::DesiredFields() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_DesiredFields(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactSelectionMode impl_IContactPickerUI::SelectionMode() const -{ - Windows::ApplicationModel::Contacts::ContactSelectionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectionMode(&value)); - return value; -} - -template event_token impl_IContactPickerUI::ContactRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ContactRemoved(get(handler), &token)); - return token; -} - -template event_revoker impl_IContactPickerUI::ContactRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Contacts::Provider::IContactPickerUI::remove_ContactRemoved, ContactRemoved(handler)); -} - -template void impl_IContactPickerUI::ContactRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContactRemoved(token)); -} - -template Windows::ApplicationModel::Contacts::Provider::AddContactResult impl_IContactPickerUI2::AddContact(const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - Windows::ApplicationModel::Contacts::Provider::AddContactResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_AddContact(get(contact), &result)); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IContactPickerUI2::DesiredFieldsWithContactFieldType() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DesiredFieldsWithContactFieldType(put(value))); - return value; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Contacts.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Contacts.h deleted file mode 100644 index 3ae43e431..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Contacts.h +++ /dev/null @@ -1,8275 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.ViewManagement.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Popups.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.ApplicationModel.Contacts.3.h" -#include "Windows.ApplicationModel.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindRawContactsAsync(abi_arg_in contact, abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().FindRawContactsAsync(*reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryLinkContactsAsync(abi_arg_in primaryContact, abi_arg_in secondaryContact, abi_arg_out> contact) noexcept override - { - try - { - *contact = detach(this->shim().TryLinkContactsAsync(*reinterpret_cast(&primaryContact), *reinterpret_cast(&secondaryContact))); - return S_OK; - } - catch (...) - { - *contact = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnlinkRawContactAsync(abi_arg_in contact, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UnlinkRawContactAsync(*reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetPreferredSourceForPictureAsync(abi_arg_in aggregateContact, abi_arg_in rawContact, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TrySetPreferredSourceForPictureAsync(*reinterpret_cast(&aggregateContact), *reinterpret_cast(&rawContact))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetRemoteIdentificationInformationAsync(abi_arg_in contactListId, abi_arg_in remoteSourceId, abi_arg_in accountId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SetRemoteIdentificationInformationAsync(*reinterpret_cast(&contactListId), *reinterpret_cast(&remoteSourceId), *reinterpret_cast(&accountId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbnail(abi_arg_in value) noexcept override - { - try - { - this->shim().Thumbnail(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Fields(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Fields()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Id(abi_arg_in value) noexcept override - { - try - { - this->shim().Id(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Notes(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Notes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Notes(abi_arg_in value) noexcept override - { - try - { - this->shim().Notes(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Phones(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Phones()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Emails(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Emails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Addresses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Addresses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectedServiceAccounts(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ConnectedServiceAccounts()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImportantDates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ImportantDates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataSuppliers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DataSuppliers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JobInfo(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().JobInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SignificantOthers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SignificantOthers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Websites(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Websites()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProviderProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProviderProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContactListId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactListId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayPictureUserUpdateTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayPictureUserUpdateTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayPictureUserUpdateTime(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayPictureUserUpdateTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMe(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMe()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AggregateId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AggregateId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RingToneToken(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RingToneToken()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RingToneToken(abi_arg_in value) noexcept override - { - try - { - this->shim().RingToneToken(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDisplayPictureManuallySet(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDisplayPictureManuallySet()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LargeDisplayPicture(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LargeDisplayPicture()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmallDisplayPicture(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmallDisplayPicture()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceDisplayPicture(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceDisplayPicture()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SourceDisplayPicture(abi_arg_in value) noexcept override - { - try - { - this->shim().SourceDisplayPicture(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextToneToken(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextToneToken()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextToneToken(abi_arg_in value) noexcept override - { - try - { - this->shim().TextToneToken(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAggregate(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAggregate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FullName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FullName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayNameOverride(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayNameOverride()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayNameOverride(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayNameOverride(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Nickname(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Nickname()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Nickname(abi_arg_in value) noexcept override - { - try - { - this->shim().Nickname(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SortName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SortName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StreetAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StreetAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StreetAddress(abi_arg_in value) noexcept override - { - try - { - this->shim().StreetAddress(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Locality(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Locality()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Locality(abi_arg_in value) noexcept override - { - try - { - this->shim().Locality(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Region(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Region()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Region(abi_arg_in value) noexcept override - { - try - { - this->shim().Region(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Country(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Country()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Country(abi_arg_in value) noexcept override - { - try - { - this->shim().Country(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PostalCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PostalCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PostalCode(abi_arg_in value) noexcept override - { - try - { - this->shim().PostalCode(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Contacts::ContactAddressKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Kind(Windows::ApplicationModel::Contacts::ContactAddressKind value) noexcept override - { - try - { - this->shim().Kind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AnnotationListId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AnnotationListId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContactId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContactId(abi_arg_in value) noexcept override - { - try - { - this->shim().ContactId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedOperations(Windows::ApplicationModel::Contacts::ContactAnnotationOperations * value) noexcept override - { - try - { - *value = detach(this->shim().SupportedOperations()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SupportedOperations(Windows::ApplicationModel::Contacts::ContactAnnotationOperations value) noexcept override - { - try - { - this->shim().SupportedOperations(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDisabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDisabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProviderProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProviderProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProviderPackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProviderPackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserDataAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserDataAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeleteAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySaveAnnotationAsync(abi_arg_in annotation, abi_arg_out> ppResult) noexcept override - { - try - { - *ppResult = detach(this->shim().TrySaveAnnotationAsync(*reinterpret_cast(&annotation))); - return S_OK; - } - catch (...) - { - *ppResult = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAnnotationAsync(abi_arg_in annotationId, abi_arg_out> annotation) noexcept override - { - try - { - *annotation = detach(this->shim().GetAnnotationAsync(*reinterpret_cast(&annotationId))); - return S_OK; - } - catch (...) - { - *annotation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAnnotationsByRemoteIdAsync(abi_arg_in remoteId, abi_arg_out>> annotations) noexcept override - { - try - { - *annotations = detach(this->shim().FindAnnotationsByRemoteIdAsync(*reinterpret_cast(&remoteId))); - return S_OK; - } - catch (...) - { - *annotations = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAnnotationsAsync(abi_arg_out>> annotations) noexcept override - { - try - { - *annotations = detach(this->shim().FindAnnotationsAsync()); - return S_OK; - } - catch (...) - { - *annotations = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAnnotationAsync(abi_arg_in annotation, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeleteAnnotationAsync(*reinterpret_cast(&annotation))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindContactIdsByEmailAsync(abi_arg_in emailAddress, abi_arg_out>> contactIds) noexcept override - { - try - { - *contactIds = detach(this->shim().FindContactIdsByEmailAsync(*reinterpret_cast(&emailAddress))); - return S_OK; - } - catch (...) - { - *contactIds = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindContactIdsByPhoneNumberAsync(abi_arg_in phoneNumber, abi_arg_out>> contactIds) noexcept override - { - try - { - *contactIds = detach(this->shim().FindContactIdsByPhoneNumberAsync(*reinterpret_cast(&phoneNumber))); - return S_OK; - } - catch (...) - { - *contactIds = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAnnotationsForContactAsync(abi_arg_in contact, abi_arg_out>> annotations) noexcept override - { - try - { - *annotations = detach(this->shim().FindAnnotationsForContactAsync(*reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - *annotations = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisableAnnotationAsync(abi_arg_in annotation, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisableAnnotationAsync(*reinterpret_cast(&annotation))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAnnotationListAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateAnnotationListAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAnnotationListInAccountAsync(abi_arg_in userDataAccountId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateAnnotationListAsync(*reinterpret_cast(&userDataAccountId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAnnotationListAsync(abi_arg_in annotationListId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetAnnotationListAsync(*reinterpret_cast(&annotationListId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAnnotationListsAsync(abi_arg_out>> lists) noexcept override - { - try - { - *lists = detach(this->shim().FindAnnotationListsAsync()); - return S_OK; - } - catch (...) - { - *lists = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Contacts(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Contacts()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::ApplicationModel::Contacts::ContactBatchStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetData(abi_arg_in contact) noexcept override - { - try - { - this->shim().SetData(*reinterpret_cast(&contact)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderKind(Windows::ApplicationModel::Contacts::ContactCardHeaderKind * value) noexcept override - { - try - { - *value = detach(this->shim().HeaderKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderKind(Windows::ApplicationModel::Contacts::ContactCardHeaderKind value) noexcept override - { - try - { - this->shim().HeaderKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InitialTabKind(Windows::ApplicationModel::Contacts::ContactCardTabKind * value) noexcept override - { - try - { - *value = detach(this->shim().InitialTabKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InitialTabKind(Windows::ApplicationModel::Contacts::ContactCardTabKind value) noexcept override - { - try - { - this->shim().InitialTabKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServerSearchContactListIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServerSearchContactListIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeType(Windows::ApplicationModel::Contacts::ContactChangeType * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AcceptChanges() noexcept override - { - try - { - this->shim().AcceptChanges(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcceptChangesThrough(abi_arg_in lastChangeToAccept) noexcept override - { - try - { - this->shim().AcceptChangesThrough(*reinterpret_cast(&lastChangeToAccept)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Enable() noexcept override - { - try - { - this->shim().Enable(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetChangeReader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetChangeReader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Reset() noexcept override - { - try - { - this->shim().Reset(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Id(abi_arg_in value) noexcept override - { - try - { - this->shim().Id(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ServiceName(abi_arg_in value) noexcept override - { - try - { - this->shim().ServiceName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Day(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Day()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Day(abi_arg_in> value) noexcept override - { - try - { - this->shim().Day(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Month(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Month()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Month(abi_arg_in> value) noexcept override - { - try - { - this->shim().Month(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Year(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Year()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Year(abi_arg_in> value) noexcept override - { - try - { - this->shim().Year(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Contacts::ContactDateKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Kind(Windows::ApplicationModel::Contacts::ContactDateKind value) noexcept override - { - try - { - this->shim().Kind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Address(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Address()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Address(abi_arg_in value) noexcept override - { - try - { - this->shim().Address(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Contacts::ContactEmailKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Kind(Windows::ApplicationModel::Contacts::ContactEmailKind value) noexcept override - { - try - { - this->shim().Kind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::ApplicationModel::Contacts::ContactFieldType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Category(Windows::ApplicationModel::Contacts::ContactFieldCategory * value) noexcept override - { - try - { - *value = detach(this->shim().Category()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateField_Default(abi_arg_in value, Windows::ApplicationModel::Contacts::ContactFieldType type, abi_arg_out field) noexcept override - { - try - { - *field = detach(this->shim().CreateField(*reinterpret_cast(&value), type)); - return S_OK; - } - catch (...) - { - *field = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateField_Category(abi_arg_in value, Windows::ApplicationModel::Contacts::ContactFieldType type, Windows::ApplicationModel::Contacts::ContactFieldCategory category, abi_arg_out field) noexcept override - { - try - { - *field = detach(this->shim().CreateField(*reinterpret_cast(&value), type, category)); - return S_OK; - } - catch (...) - { - *field = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateField_Custom(abi_arg_in name, abi_arg_in value, Windows::ApplicationModel::Contacts::ContactFieldType type, Windows::ApplicationModel::Contacts::ContactFieldCategory category, abi_arg_out field) noexcept override - { - try - { - *field = detach(this->shim().CreateField(*reinterpret_cast(&name), *reinterpret_cast(&value), type, category)); - return S_OK; - } - catch (...) - { - *field = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetThumbnailAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetThumbnailAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Emails(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Emails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PhoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Locations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Locations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstantMessages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InstantMessages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomFields(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CustomFields()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_QueryCustomFields(abi_arg_in customName, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().QueryCustomFields(*reinterpret_cast(&customName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UserName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Service(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Service()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LaunchUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LaunchUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstantMessage_Default(abi_arg_in userName, abi_arg_out field) noexcept override - { - try - { - *field = detach(this->shim().CreateInstantMessage(*reinterpret_cast(&userName))); - return S_OK; - } - catch (...) - { - *field = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstantMessage_Category(abi_arg_in userName, Windows::ApplicationModel::Contacts::ContactFieldCategory category, abi_arg_out field) noexcept override - { - try - { - *field = detach(this->shim().CreateInstantMessage(*reinterpret_cast(&userName), category)); - return S_OK; - } - catch (...) - { - *field = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstantMessage_All(abi_arg_in userName, Windows::ApplicationModel::Contacts::ContactFieldCategory category, abi_arg_in service, abi_arg_in displayText, abi_arg_in verb, abi_arg_out field) noexcept override - { - try - { - *field = detach(this->shim().CreateInstantMessage(*reinterpret_cast(&userName), category, *reinterpret_cast(&service), *reinterpret_cast(&displayText), *reinterpret_cast(&verb))); - return S_OK; - } - catch (...) - { - *field = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CompanyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompanyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CompanyName(abi_arg_in value) noexcept override - { - try - { - this->shim().CompanyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompanyYomiName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompanyYomiName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CompanyYomiName(abi_arg_in value) noexcept override - { - try - { - this->shim().CompanyYomiName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Department(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Department()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Department(abi_arg_in value) noexcept override - { - try - { - this->shim().Department(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Manager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Manager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Manager(abi_arg_in value) noexcept override - { - try - { - this->shim().Manager(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Office(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Office()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Office(abi_arg_in value) noexcept override - { - try - { - this->shim().Office(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompanyAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompanyAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CompanyAddress(abi_arg_in value) noexcept override - { - try - { - this->shim().CompanyAddress(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Call(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Call()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Map(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Map()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Post(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Post()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoCall(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoCall()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHidden(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHidden()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsHidden(bool value) noexcept override - { - try - { - this->shim().IsHidden(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherAppReadAccess(Windows::ApplicationModel::Contacts::ContactListOtherAppReadAccess * value) noexcept override - { - try - { - *value = detach(this->shim().OtherAppReadAccess()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OtherAppReadAccess(Windows::ApplicationModel::Contacts::ContactListOtherAppReadAccess value) noexcept override - { - try - { - this->shim().OtherAppReadAccess(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherAppWriteAccess(Windows::ApplicationModel::Contacts::ContactListOtherAppWriteAccess * value) noexcept override - { - try - { - *value = detach(this->shim().OtherAppWriteAccess()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OtherAppWriteAccess(Windows::ApplicationModel::Contacts::ContactListOtherAppWriteAccess value) noexcept override - { - try - { - this->shim().OtherAppWriteAccess(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChangeTracker(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChangeTracker()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SyncManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SyncManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportsServerSearch(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsServerSearch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserDataAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserDataAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContactChanged(abi_arg_in> value, event_token * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ContactChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContactChanged(event_token value) noexcept override - { - try - { - this->shim().ContactChanged(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsync(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().SaveAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().DeleteAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetContactFromRemoteIdAsync(abi_arg_in remoteId, abi_arg_out> contact) noexcept override - { - try - { - *contact = detach(this->shim().GetContactFromRemoteIdAsync(*reinterpret_cast(&remoteId))); - return S_OK; - } - catch (...) - { - *contact = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMeContactAsync(abi_arg_out> meContact) noexcept override - { - try - { - *meContact = detach(this->shim().GetMeContactAsync()); - return S_OK; - } - catch (...) - { - *meContact = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetContactReader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetContactReader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetContactReaderWithOptions(abi_arg_in options, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetContactReader(*reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveContactAsync(abi_arg_in contact, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SaveContactAsync(*reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteContactAsync(abi_arg_in contact, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeleteContactAsync(*reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetContactAsync(abi_arg_in contactId, abi_arg_out> contacts) noexcept override - { - try - { - *contacts = detach(this->shim().GetContactAsync(*reinterpret_cast(&contactId))); - return S_OK; - } - catch (...) - { - *contacts = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RegisterSyncManagerAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().RegisterSyncManagerAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SupportsServerSearch(bool value) noexcept override - { - try - { - this->shim().SupportsServerSearch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SyncConstraints(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SyncConstraints()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanSyncDescriptions(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanSyncDescriptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanSyncDescriptions(bool value) noexcept override - { - try - { - this->shim().CanSyncDescriptions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxHomePhoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxHomePhoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxHomePhoneNumbers(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxHomePhoneNumbers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxMobilePhoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxMobilePhoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxMobilePhoneNumbers(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxMobilePhoneNumbers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxWorkPhoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxWorkPhoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxWorkPhoneNumbers(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxWorkPhoneNumbers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxOtherPhoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxOtherPhoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxOtherPhoneNumbers(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxOtherPhoneNumbers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPagerPhoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxPagerPhoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxPagerPhoneNumbers(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxPagerPhoneNumbers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxBusinessFaxPhoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxBusinessFaxPhoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxBusinessFaxPhoneNumbers(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxBusinessFaxPhoneNumbers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxHomeFaxPhoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxHomeFaxPhoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxHomeFaxPhoneNumbers(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxHomeFaxPhoneNumbers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxCompanyPhoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxCompanyPhoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxCompanyPhoneNumbers(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxCompanyPhoneNumbers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxAssistantPhoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxAssistantPhoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxAssistantPhoneNumbers(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxAssistantPhoneNumbers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxRadioPhoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxRadioPhoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxRadioPhoneNumbers(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxRadioPhoneNumbers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPersonalEmailAddresses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxPersonalEmailAddresses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxPersonalEmailAddresses(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxPersonalEmailAddresses(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxWorkEmailAddresses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxWorkEmailAddresses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxWorkEmailAddresses(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxWorkEmailAddresses(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxOtherEmailAddresses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxOtherEmailAddresses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxOtherEmailAddresses(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxOtherEmailAddresses(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxHomeAddresses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxHomeAddresses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxHomeAddresses(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxHomeAddresses(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxWorkAddresses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxWorkAddresses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxWorkAddresses(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxWorkAddresses(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxOtherAddresses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxOtherAddresses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxOtherAddresses(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxOtherAddresses(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxBirthdayDates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxBirthdayDates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxBirthdayDates(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxBirthdayDates(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxAnniversaryDates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxAnniversaryDates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxAnniversaryDates(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxAnniversaryDates(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxOtherDates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxOtherDates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxOtherDates(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxOtherDates(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxOtherRelationships(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxOtherRelationships()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxOtherRelationships(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxOtherRelationships(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxSpouseRelationships(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxSpouseRelationships()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxSpouseRelationships(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxSpouseRelationships(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPartnerRelationships(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxPartnerRelationships()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxPartnerRelationships(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxPartnerRelationships(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxSiblingRelationships(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxSiblingRelationships()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxSiblingRelationships(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxSiblingRelationships(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxParentRelationships(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxParentRelationships()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxParentRelationships(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxParentRelationships(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxChildRelationships(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxChildRelationships()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxChildRelationships(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxChildRelationships(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxJobInfo(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxJobInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxJobInfo(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxJobInfo(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxWebsites(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxWebsites()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxWebsites(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxWebsites(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::ApplicationModel::Contacts::ContactListSyncStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastSuccessfulSyncTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastSuccessfulSyncTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastAttemptedSyncTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastAttemptedSyncTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SyncAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SyncAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SyncStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SyncStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SyncStatusChanged(event_token token) noexcept override - { - try - { - this->shim().SyncStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Status(Windows::ApplicationModel::Contacts::ContactListSyncStatus value) noexcept override - { - try - { - this->shim().Status(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LastSuccessfulSyncTime(abi_arg_in value) noexcept override - { - try - { - this->shim().LastSuccessfulSyncTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LastAttemptedSyncTime(abi_arg_in value) noexcept override - { - try - { - this->shim().LastAttemptedSyncTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UnstructuredAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UnstructuredAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Street(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Street()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_City(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().City()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Region(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Region()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Country(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Country()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PostalCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PostalCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateLocation_Default(abi_arg_in unstructuredAddress, abi_arg_out field) noexcept override - { - try - { - *field = detach(this->shim().CreateLocation(*reinterpret_cast(&unstructuredAddress))); - return S_OK; - } - catch (...) - { - *field = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateLocation_Category(abi_arg_in unstructuredAddress, Windows::ApplicationModel::Contacts::ContactFieldCategory category, abi_arg_out field) noexcept override - { - try - { - *field = detach(this->shim().CreateLocation(*reinterpret_cast(&unstructuredAddress), category)); - return S_OK; - } - catch (...) - { - *field = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateLocation_All(abi_arg_in unstructuredAddress, Windows::ApplicationModel::Contacts::ContactFieldCategory category, abi_arg_in street, abi_arg_in city, abi_arg_in region, abi_arg_in country, abi_arg_in postalCode, abi_arg_out field) noexcept override - { - try - { - *field = detach(this->shim().CreateLocation(*reinterpret_cast(&unstructuredAddress), category, *reinterpret_cast(&street), *reinterpret_cast(&city), *reinterpret_cast(®ion), *reinterpret_cast(&country), *reinterpret_cast(&postalCode))); - return S_OK; - } - catch (...) - { - *field = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ConvertContactToVCardAsync(abi_arg_in contact, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ConvertContactToVCardAsync(*reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertContactToVCardAsyncWithMaxBytes(abi_arg_in contact, uint32_t maxBytes, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ConvertContactToVCardAsync(*reinterpret_cast(&contact), maxBytes)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertVCardToContactAsync(abi_arg_in vCard, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ConvertVCardToContactAsync(*reinterpret_cast(&vCard))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestStoreAsync(Windows::ApplicationModel::Contacts::ContactStoreAccessType accessType, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestStoreAsync(accessType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAnnotationStoreAsync(Windows::ApplicationModel::Contacts::ContactAnnotationStoreAccessType accessType, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAnnotationStoreAsync(accessType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemDisplayNameOrder(Windows::ApplicationModel::Contacts::ContactNameOrder * value) noexcept override - { - try - { - *value = detach(this->shim().SystemDisplayNameOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SystemDisplayNameOrder(Windows::ApplicationModel::Contacts::ContactNameOrder value) noexcept override - { - try - { - this->shim().SystemDisplayNameOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemSortOrder(Windows::ApplicationModel::Contacts::ContactNameOrder * value) noexcept override - { - try - { - *value = detach(this->shim().SystemSortOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SystemSortOrder(Windows::ApplicationModel::Contacts::ContactNameOrder value) noexcept override - { - try - { - this->shim().SystemSortOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowContactCard(abi_arg_in contact, abi_arg_in selection) noexcept override - { - try - { - this->shim().ShowContactCard(*reinterpret_cast(&contact), *reinterpret_cast(&selection)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowContactCardWithPlacement(abi_arg_in contact, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement) noexcept override - { - try - { - this->shim().ShowContactCard(*reinterpret_cast(&contact), *reinterpret_cast(&selection), preferredPlacement); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowDelayLoadedContactCard(abi_arg_in contact, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_out dataLoader) noexcept override - { - try - { - *dataLoader = detach(this->shim().ShowDelayLoadedContactCard(*reinterpret_cast(&contact), *reinterpret_cast(&selection), preferredPlacement)); - return S_OK; - } - catch (...) - { - *dataLoader = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestStoreAsync(abi_arg_out> store) noexcept override - { - try - { - *store = detach(this->shim().RequestStoreAsync()); - return S_OK; - } - catch (...) - { - *store = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ConvertContactToVCardAsync(abi_arg_in contact, abi_arg_out> vCard) noexcept override - { - try - { - *vCard = detach(this->shim().ConvertContactToVCardAsync(*reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - *vCard = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertContactToVCardAsyncWithMaxBytes(abi_arg_in contact, uint32_t maxBytes, abi_arg_out> vCard) noexcept override - { - try - { - *vCard = detach(this->shim().ConvertContactToVCardAsync(*reinterpret_cast(&contact), maxBytes)); - return S_OK; - } - catch (...) - { - *vCard = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertVCardToContactAsync(abi_arg_in vCard, abi_arg_out> contact) noexcept override - { - try - { - *contact = detach(this->shim().ConvertVCardToContactAsync(*reinterpret_cast(&vCard))); - return S_OK; - } - catch (...) - { - *contact = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestStoreAsyncWithAccessType(Windows::ApplicationModel::Contacts::ContactStoreAccessType accessType, abi_arg_out> store) noexcept override - { - try - { - *store = detach(this->shim().RequestStoreAsync(accessType)); - return S_OK; - } - catch (...) - { - *store = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAnnotationStoreAsync(Windows::ApplicationModel::Contacts::ContactAnnotationStoreAccessType accessType, abi_arg_out> store) noexcept override - { - try - { - *store = detach(this->shim().RequestAnnotationStoreAsync(accessType)); - return S_OK; - } - catch (...) - { - *store = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsShowContactCardSupported(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsShowContactCardSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowContactCardWithOptions(abi_arg_in contact, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_in contactCardOptions) noexcept override - { - try - { - this->shim().ShowContactCard(*reinterpret_cast(&contact), *reinterpret_cast(&selection), preferredPlacement, *reinterpret_cast(&contactCardOptions)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsShowDelayLoadedContactCardSupported(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsShowDelayLoadedContactCardSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowDelayLoadedContactCardWithOptions(abi_arg_in contact, abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_in contactCardOptions, abi_arg_out dataLoader) noexcept override - { - try - { - *dataLoader = detach(this->shim().ShowDelayLoadedContactCard(*reinterpret_cast(&contact), *reinterpret_cast(&selection), preferredPlacement, *reinterpret_cast(&contactCardOptions))); - return S_OK; - } - catch (...) - { - *dataLoader = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowFullContactCard(abi_arg_in contact, abi_arg_in fullContactCardOptions) noexcept override - { - try - { - this->shim().ShowFullContactCard(*reinterpret_cast(&contact), *reinterpret_cast(&fullContactCardOptions)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemDisplayNameOrder(Windows::ApplicationModel::Contacts::ContactNameOrder * value) noexcept override - { - try - { - *value = detach(this->shim().SystemDisplayNameOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SystemDisplayNameOrder(Windows::ApplicationModel::Contacts::ContactNameOrder value) noexcept override - { - try - { - this->shim().SystemDisplayNameOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemSortOrder(Windows::ApplicationModel::Contacts::ContactNameOrder * value) noexcept override - { - try - { - *value = detach(this->shim().SystemSortOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SystemSortOrder(Windows::ApplicationModel::Contacts::ContactNameOrder value) noexcept override - { - try - { - this->shim().SystemSortOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForUser(abi_arg_in user, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Field(Windows::ApplicationModel::Contacts::ContactMatchReasonKind * value) noexcept override - { - try - { - *value = detach(this->shim().Field()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Segments(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Segments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FirstName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FirstName(abi_arg_in value) noexcept override - { - try - { - this->shim().FirstName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LastName(abi_arg_in value) noexcept override - { - try - { - this->shim().LastName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MiddleName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MiddleName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MiddleName(abi_arg_in value) noexcept override - { - try - { - this->shim().MiddleName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YomiGivenName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YomiGivenName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_YomiGivenName(abi_arg_in value) noexcept override - { - try - { - this->shim().YomiGivenName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YomiFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YomiFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_YomiFamilyName(abi_arg_in value) noexcept override - { - try - { - this->shim().YomiFamilyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HonorificNameSuffix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HonorificNameSuffix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HonorificNameSuffix(abi_arg_in value) noexcept override - { - try - { - this->shim().HonorificNameSuffix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HonorificNamePrefix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HonorificNamePrefix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HonorificNamePrefix(abi_arg_in value) noexcept override - { - try - { - this->shim().HonorificNamePrefix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YomiDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YomiDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Number(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Number()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Number(abi_arg_in value) noexcept override - { - try - { - this->shim().Number(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Contacts::ContactPhoneKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Kind(Windows::ApplicationModel::Contacts::ContactPhoneKind value) noexcept override - { - try - { - this->shim().Kind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CommitButtonText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommitButtonText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CommitButtonText(abi_arg_in value) noexcept override - { - try - { - this->shim().CommitButtonText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionMode(Windows::ApplicationModel::Contacts::ContactSelectionMode * value) noexcept override - { - try - { - *value = detach(this->shim().SelectionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionMode(Windows::ApplicationModel::Contacts::ContactSelectionMode value) noexcept override - { - try - { - this->shim().SelectionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredFields(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DesiredFields()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickSingleContactAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().PickSingleContactAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickMultipleContactsAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().PickMultipleContactsAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DesiredFieldsWithContactFieldType(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DesiredFieldsWithContactFieldType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickContactAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().PickContactAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickContactsAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().PickContactsAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextSearch(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextSearch()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContactListIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ContactListIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncludeContactsFromHiddenLists(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeContactsFromHiddenLists()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncludeContactsFromHiddenLists(bool value) noexcept override - { - try - { - this->shim().IncludeContactsFromHiddenLists(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredFields(Windows::ApplicationModel::Contacts::ContactQueryDesiredFields * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredFields()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredFields(Windows::ApplicationModel::Contacts::ContactQueryDesiredFields value) noexcept override - { - try - { - this->shim().DesiredFields(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredOperations(Windows::ApplicationModel::Contacts::ContactAnnotationOperations * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredOperations()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredOperations(Windows::ApplicationModel::Contacts::ContactAnnotationOperations value) noexcept override - { - try - { - this->shim().DesiredOperations(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AnnotationListIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AnnotationListIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithText(abi_arg_in text, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithText(*reinterpret_cast(&text))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithTextAndFields(abi_arg_in text, Windows::ApplicationModel::Contacts::ContactQuerySearchFields fields, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithTextAndFields(*reinterpret_cast(&text), fields)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Fields(Windows::ApplicationModel::Contacts::ContactQuerySearchFields * value) noexcept override - { - try - { - *value = detach(this->shim().Fields()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Fields(Windows::ApplicationModel::Contacts::ContactQuerySearchFields value) noexcept override - { - try - { - this->shim().Fields(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SearchScope(Windows::ApplicationModel::Contacts::ContactQuerySearchScope * value) noexcept override - { - try - { - *value = detach(this->shim().SearchScope()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SearchScope(Windows::ApplicationModel::Contacts::ContactQuerySearchScope value) noexcept override - { - try - { - this->shim().SearchScope(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMatchingPropertiesWithMatchReason(abi_arg_in contact, abi_arg_out> ppRetVal) noexcept override - { - try - { - *ppRetVal = detach(this->shim().GetMatchingPropertiesWithMatchReason(*reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - *ppRetVal = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Relationship(Windows::ApplicationModel::Contacts::ContactRelationship * value) noexcept override - { - try - { - *value = detach(this->shim().Relationship()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Relationship(Windows::ApplicationModel::Contacts::ContactRelationship value) noexcept override - { - try - { - this->shim().Relationship(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindContactsAsync(abi_arg_out>> contacts) noexcept override - { - try - { - *contacts = detach(this->shim().FindContactsAsync()); - return S_OK; - } - catch (...) - { - *contacts = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindContactsWithSearchTextAsync(abi_arg_in searchText, abi_arg_out>> contacts) noexcept override - { - try - { - *contacts = detach(this->shim().FindContactsAsync(*reinterpret_cast(&searchText))); - return S_OK; - } - catch (...) - { - *contacts = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetContactAsync(abi_arg_in contactId, abi_arg_out> contacts) noexcept override - { - try - { - *contacts = detach(this->shim().GetContactAsync(*reinterpret_cast(&contactId))); - return S_OK; - } - catch (...) - { - *contacts = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeTracker(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChangeTracker()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContactChanged(abi_arg_in> value, event_token * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ContactChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContactChanged(event_token value) noexcept override - { - try - { - this->shim().ContactChanged(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AggregateContactManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AggregateContactManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindContactListsAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().FindContactListsAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetContactListAsync(abi_arg_in contactListId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetContactListAsync(*reinterpret_cast(&contactListId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateContactListAsync(abi_arg_in displayName, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateContactListAsync(*reinterpret_cast(&displayName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMeContactAsync(abi_arg_out> meContact) noexcept override - { - try - { - *meContact = detach(this->shim().GetMeContactAsync()); - return S_OK; - } - catch (...) - { - *meContact = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetContactReader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetContactReader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetContactReaderWithOptions(abi_arg_in options, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetContactReader(*reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateContactListInAccountAsync(abi_arg_in displayName, abi_arg_in userDataAccountId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateContactListAsync(*reinterpret_cast(&displayName), *reinterpret_cast(&userDataAccountId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Uri(abi_arg_in value) noexcept override - { - try - { - this->shim().Uri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RawValue(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RawValue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RawValue(abi_arg_in value) noexcept override - { - try - { - this->shim().RawValue(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DesiredRemainingView(Windows::UI::ViewManagement::ViewSizePreference * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredRemainingView()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredRemainingView(Windows::UI::ViewManagement::ViewSizePreference value) noexcept override - { - try - { - this->shim().DesiredRemainingView(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Email(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Email()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhoneNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstantMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InstantMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertNameToType(abi_arg_in name, Windows::ApplicationModel::Contacts::ContactFieldType * type) noexcept override - { - try - { - *type = detach(this->shim().ConvertNameToType(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertTypeToName(Windows::ApplicationModel::Contacts::ContactFieldType type, abi_arg_out name) noexcept override - { - try - { - *name = detach(this->shim().ConvertTypeToName(type)); - return S_OK; - } - catch (...) - { - *name = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Contacts { - -template Windows::ApplicationModel::Contacts::ContactCardHeaderKind impl_IContactCardOptions::HeaderKind() const -{ - Windows::ApplicationModel::Contacts::ContactCardHeaderKind value {}; - check_hresult(static_cast(static_cast(*this))->get_HeaderKind(&value)); - return value; -} - -template void impl_IContactCardOptions::HeaderKind(Windows::ApplicationModel::Contacts::ContactCardHeaderKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderKind(value)); -} - -template Windows::ApplicationModel::Contacts::ContactCardTabKind impl_IContactCardOptions::InitialTabKind() const -{ - Windows::ApplicationModel::Contacts::ContactCardTabKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InitialTabKind(&value)); - return value; -} - -template void impl_IContactCardOptions::InitialTabKind(Windows::ApplicationModel::Contacts::ContactCardTabKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InitialTabKind(value)); -} - -template Windows::Foundation::Collections::IVector impl_IContactCardOptions2::ServerSearchContactListIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ServerSearchContactListIds(put(value))); - return value; -} - -template Windows::UI::ViewManagement::ViewSizePreference impl_IFullContactCardOptions::DesiredRemainingView() const -{ - Windows::UI::ViewManagement::ViewSizePreference value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredRemainingView(&value)); - return value; -} - -template void impl_IFullContactCardOptions::DesiredRemainingView(Windows::UI::ViewManagement::ViewSizePreference value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredRemainingView(value)); -} - -template void impl_IContactManagerStatics::ShowContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::Foundation::Rect & selection) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowContactCard(get(contact), get(selection))); -} - -template void impl_IContactManagerStatics::ShowContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowContactCardWithPlacement(get(contact), get(selection), preferredPlacement)); -} - -template Windows::ApplicationModel::Contacts::ContactCardDelayedDataLoader impl_IContactManagerStatics::ShowDelayLoadedContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - Windows::ApplicationModel::Contacts::ContactCardDelayedDataLoader dataLoader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ShowDelayLoadedContactCard(get(contact), get(selection), preferredPlacement, put(dataLoader))); - return dataLoader; -} - -template Windows::Foundation::IAsyncOperation impl_IContactManagerStatics2::RequestStoreAsync() const -{ - Windows::Foundation::IAsyncOperation store; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(put(store))); - return store; -} - -template Windows::Foundation::IAsyncOperation impl_IContactManagerStatics3::ConvertContactToVCardAsync(const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - Windows::Foundation::IAsyncOperation vCard; - check_hresult(static_cast(static_cast(*this))->abi_ConvertContactToVCardAsync(get(contact), put(vCard))); - return vCard; -} - -template Windows::Foundation::IAsyncOperation impl_IContactManagerStatics3::ConvertContactToVCardAsync(const Windows::ApplicationModel::Contacts::Contact & contact, uint32_t maxBytes) const -{ - Windows::Foundation::IAsyncOperation vCard; - check_hresult(static_cast(static_cast(*this))->abi_ConvertContactToVCardAsyncWithMaxBytes(get(contact), maxBytes, put(vCard))); - return vCard; -} - -template Windows::Foundation::IAsyncOperation impl_IContactManagerStatics3::ConvertVCardToContactAsync(const Windows::Storage::Streams::IRandomAccessStreamReference & vCard) const -{ - Windows::Foundation::IAsyncOperation contact; - check_hresult(static_cast(static_cast(*this))->abi_ConvertVCardToContactAsync(get(vCard), put(contact))); - return contact; -} - -template Windows::Foundation::IAsyncOperation impl_IContactManagerStatics3::RequestStoreAsync(Windows::ApplicationModel::Contacts::ContactStoreAccessType accessType) const -{ - Windows::Foundation::IAsyncOperation store; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsyncWithAccessType(accessType, put(store))); - return store; -} - -template Windows::Foundation::IAsyncOperation impl_IContactManagerStatics3::RequestAnnotationStoreAsync(Windows::ApplicationModel::Contacts::ContactAnnotationStoreAccessType accessType) const -{ - Windows::Foundation::IAsyncOperation store; - check_hresult(static_cast(static_cast(*this))->abi_RequestAnnotationStoreAsync(accessType, put(store))); - return store; -} - -template bool impl_IContactManagerStatics3::IsShowContactCardSupported() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsShowContactCardSupported(&result)); - return result; -} - -template void impl_IContactManagerStatics3::ShowContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::ApplicationModel::Contacts::ContactCardOptions & contactCardOptions) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowContactCardWithOptions(get(contact), get(selection), preferredPlacement, get(contactCardOptions))); -} - -template bool impl_IContactManagerStatics3::IsShowDelayLoadedContactCardSupported() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsShowDelayLoadedContactCardSupported(&result)); - return result; -} - -template Windows::ApplicationModel::Contacts::ContactCardDelayedDataLoader impl_IContactManagerStatics3::ShowDelayLoadedContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::ApplicationModel::Contacts::ContactCardOptions & contactCardOptions) const -{ - Windows::ApplicationModel::Contacts::ContactCardDelayedDataLoader dataLoader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ShowDelayLoadedContactCardWithOptions(get(contact), get(selection), preferredPlacement, get(contactCardOptions), put(dataLoader))); - return dataLoader; -} - -template void impl_IContactManagerStatics3::ShowFullContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::ApplicationModel::Contacts::FullContactCardOptions & fullContactCardOptions) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowFullContactCard(get(contact), get(fullContactCardOptions))); -} - -template Windows::ApplicationModel::Contacts::ContactNameOrder impl_IContactManagerStatics3::SystemDisplayNameOrder() const -{ - Windows::ApplicationModel::Contacts::ContactNameOrder value {}; - check_hresult(static_cast(static_cast(*this))->get_SystemDisplayNameOrder(&value)); - return value; -} - -template void impl_IContactManagerStatics3::SystemDisplayNameOrder(Windows::ApplicationModel::Contacts::ContactNameOrder value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SystemDisplayNameOrder(value)); -} - -template Windows::ApplicationModel::Contacts::ContactNameOrder impl_IContactManagerStatics3::SystemSortOrder() const -{ - Windows::ApplicationModel::Contacts::ContactNameOrder value {}; - check_hresult(static_cast(static_cast(*this))->get_SystemSortOrder(&value)); - return value; -} - -template void impl_IContactManagerStatics3::SystemSortOrder(Windows::ApplicationModel::Contacts::ContactNameOrder value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SystemSortOrder(value)); -} - -template Windows::ApplicationModel::Contacts::ContactManagerForUser impl_IContactManagerStatics4::GetForUser(const Windows::System::User & user) const -{ - Windows::ApplicationModel::Contacts::ContactManagerForUser result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForUser(get(user), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IContactManagerForUser::ConvertContactToVCardAsync(const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ConvertContactToVCardAsync(get(contact), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IContactManagerForUser::ConvertContactToVCardAsync(const Windows::ApplicationModel::Contacts::Contact & contact, uint32_t maxBytes) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ConvertContactToVCardAsyncWithMaxBytes(get(contact), maxBytes, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IContactManagerForUser::ConvertVCardToContactAsync(const Windows::Storage::Streams::IRandomAccessStreamReference & vCard) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ConvertVCardToContactAsync(get(vCard), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IContactManagerForUser::RequestStoreAsync(Windows::ApplicationModel::Contacts::ContactStoreAccessType accessType) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(accessType, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IContactManagerForUser::RequestAnnotationStoreAsync(Windows::ApplicationModel::Contacts::ContactAnnotationStoreAccessType accessType) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAnnotationStoreAsync(accessType, put(result))); - return result; -} - -template Windows::ApplicationModel::Contacts::ContactNameOrder impl_IContactManagerForUser::SystemDisplayNameOrder() const -{ - Windows::ApplicationModel::Contacts::ContactNameOrder value {}; - check_hresult(static_cast(static_cast(*this))->get_SystemDisplayNameOrder(&value)); - return value; -} - -template void impl_IContactManagerForUser::SystemDisplayNameOrder(Windows::ApplicationModel::Contacts::ContactNameOrder value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SystemDisplayNameOrder(value)); -} - -template Windows::ApplicationModel::Contacts::ContactNameOrder impl_IContactManagerForUser::SystemSortOrder() const -{ - Windows::ApplicationModel::Contacts::ContactNameOrder value {}; - check_hresult(static_cast(static_cast(*this))->get_SystemSortOrder(&value)); - return value; -} - -template void impl_IContactManagerForUser::SystemSortOrder(Windows::ApplicationModel::Contacts::ContactNameOrder value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SystemSortOrder(value)); -} - -template Windows::System::User impl_IContactManagerForUser::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IAggregateContactManager::FindRawContactsAsync(const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_FindRawContactsAsync(get(contact), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAggregateContactManager::TryLinkContactsAsync(const Windows::ApplicationModel::Contacts::Contact & primaryContact, const Windows::ApplicationModel::Contacts::Contact & secondaryContact) const -{ - Windows::Foundation::IAsyncOperation contact; - check_hresult(static_cast(static_cast(*this))->abi_TryLinkContactsAsync(get(primaryContact), get(secondaryContact), put(contact))); - return contact; -} - -template Windows::Foundation::IAsyncAction impl_IAggregateContactManager::UnlinkRawContactAsync(const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_UnlinkRawContactAsync(get(contact), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAggregateContactManager::TrySetPreferredSourceForPictureAsync(const Windows::ApplicationModel::Contacts::Contact & aggregateContact, const Windows::ApplicationModel::Contacts::Contact & rawContact) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_TrySetPreferredSourceForPictureAsync(get(aggregateContact), get(rawContact), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IAggregateContactManager2::SetRemoteIdentificationInformationAsync(hstring_ref contactListId, hstring_ref remoteSourceId, hstring_ref accountId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SetRemoteIdentificationInformationAsync(get(contactListId), get(remoteSourceId), get(accountId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactAnnotationStore::FindContactIdsByEmailAsync(hstring_ref emailAddress) const -{ - Windows::Foundation::IAsyncOperation> contactIds; - check_hresult(static_cast(static_cast(*this))->abi_FindContactIdsByEmailAsync(get(emailAddress), put(contactIds))); - return contactIds; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactAnnotationStore::FindContactIdsByPhoneNumberAsync(hstring_ref phoneNumber) const -{ - Windows::Foundation::IAsyncOperation> contactIds; - check_hresult(static_cast(static_cast(*this))->abi_FindContactIdsByPhoneNumberAsync(get(phoneNumber), put(contactIds))); - return contactIds; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactAnnotationStore::FindAnnotationsForContactAsync(const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - Windows::Foundation::IAsyncOperation> annotations; - check_hresult(static_cast(static_cast(*this))->abi_FindAnnotationsForContactAsync(get(contact), put(annotations))); - return annotations; -} - -template Windows::Foundation::IAsyncAction impl_IContactAnnotationStore::DisableAnnotationAsync(const Windows::ApplicationModel::Contacts::ContactAnnotation & annotation) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_DisableAnnotationAsync(get(annotation), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactAnnotationStore::CreateAnnotationListAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateAnnotationListAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactAnnotationStore::CreateAnnotationListAsync(hstring_ref userDataAccountId) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateAnnotationListInAccountAsync(get(userDataAccountId), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactAnnotationStore::GetAnnotationListAsync(hstring_ref annotationListId) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetAnnotationListAsync(get(annotationListId), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactAnnotationStore::FindAnnotationListsAsync() const -{ - Windows::Foundation::IAsyncOperation> lists; - check_hresult(static_cast(static_cast(*this))->abi_FindAnnotationListsAsync(put(lists))); - return lists; -} - -template hstring impl_IContactAnnotationList::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IContactAnnotationList::ProviderPackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProviderPackageFamilyName(put(value))); - return value; -} - -template hstring impl_IContactAnnotationList::UserDataAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserDataAccountId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IContactAnnotationList::DeleteAsync() const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactAnnotationList::TrySaveAnnotationAsync(const Windows::ApplicationModel::Contacts::ContactAnnotation & annotation) const -{ - Windows::Foundation::IAsyncOperation ppResult; - check_hresult(static_cast(static_cast(*this))->abi_TrySaveAnnotationAsync(get(annotation), put(ppResult))); - return ppResult; -} - -template Windows::Foundation::IAsyncOperation impl_IContactAnnotationList::GetAnnotationAsync(hstring_ref annotationId) const -{ - Windows::Foundation::IAsyncOperation annotation; - check_hresult(static_cast(static_cast(*this))->abi_GetAnnotationAsync(get(annotationId), put(annotation))); - return annotation; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactAnnotationList::FindAnnotationsByRemoteIdAsync(hstring_ref remoteId) const -{ - Windows::Foundation::IAsyncOperation> annotations; - check_hresult(static_cast(static_cast(*this))->abi_FindAnnotationsByRemoteIdAsync(get(remoteId), put(annotations))); - return annotations; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactAnnotationList::FindAnnotationsAsync() const -{ - Windows::Foundation::IAsyncOperation> annotations; - check_hresult(static_cast(static_cast(*this))->abi_FindAnnotationsAsync(put(annotations))); - return annotations; -} - -template Windows::Foundation::IAsyncAction impl_IContactAnnotationList::DeleteAnnotationAsync(const Windows::ApplicationModel::Contacts::ContactAnnotation & annotation) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAnnotationAsync(get(annotation), put(value))); - return value; -} - -template hstring impl_IContactAnnotation::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IContactAnnotation::AnnotationListId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AnnotationListId(put(value))); - return value; -} - -template hstring impl_IContactAnnotation::ContactId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContactId(put(value))); - return value; -} - -template void impl_IContactAnnotation::ContactId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContactId(get(value))); -} - -template hstring impl_IContactAnnotation::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template void impl_IContactAnnotation::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template Windows::ApplicationModel::Contacts::ContactAnnotationOperations impl_IContactAnnotation::SupportedOperations() const -{ - Windows::ApplicationModel::Contacts::ContactAnnotationOperations value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportedOperations(&value)); - return value; -} - -template void impl_IContactAnnotation::SupportedOperations(Windows::ApplicationModel::Contacts::ContactAnnotationOperations value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SupportedOperations(value)); -} - -template bool impl_IContactAnnotation::IsDisabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDisabled(&value)); - return value; -} - -template Windows::Foundation::Collections::ValueSet impl_IContactAnnotation::ProviderProperties() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProviderProperties(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactStore::FindContactsAsync() const -{ - Windows::Foundation::IAsyncOperation> contacts; - check_hresult(static_cast(static_cast(*this))->abi_FindContactsAsync(put(contacts))); - return contacts; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactStore::FindContactsAsync(hstring_ref searchText) const -{ - Windows::Foundation::IAsyncOperation> contacts; - check_hresult(static_cast(static_cast(*this))->abi_FindContactsWithSearchTextAsync(get(searchText), put(contacts))); - return contacts; -} - -template Windows::Foundation::IAsyncOperation impl_IContactStore::GetContactAsync(hstring_ref contactId) const -{ - Windows::Foundation::IAsyncOperation contacts; - check_hresult(static_cast(static_cast(*this))->abi_GetContactAsync(get(contactId), put(contacts))); - return contacts; -} - -template Windows::ApplicationModel::Contacts::ContactChangeTracker impl_IContactStore2::ChangeTracker() const -{ - Windows::ApplicationModel::Contacts::ContactChangeTracker value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChangeTracker(put(value))); - return value; -} - -template event_token impl_IContactStore2::ContactChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token returnValue {}; - check_hresult(static_cast(static_cast(*this))->add_ContactChanged(get(value), &returnValue)); - return returnValue; -} - -template event_revoker impl_IContactStore2::ContactChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Contacts::IContactStore2::remove_ContactChanged, ContactChanged(value)); -} - -template void impl_IContactStore2::ContactChanged(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContactChanged(value)); -} - -template Windows::ApplicationModel::Contacts::AggregateContactManager impl_IContactStore2::AggregateContactManager() const -{ - Windows::ApplicationModel::Contacts::AggregateContactManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AggregateContactManager(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactStore2::FindContactListsAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_FindContactListsAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactStore2::GetContactListAsync(hstring_ref contactListId) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetContactListAsync(get(contactListId), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactStore2::CreateContactListAsync(hstring_ref displayName) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateContactListAsync(get(displayName), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactStore2::GetMeContactAsync() const -{ - Windows::Foundation::IAsyncOperation meContact; - check_hresult(static_cast(static_cast(*this))->abi_GetMeContactAsync(put(meContact))); - return meContact; -} - -template Windows::ApplicationModel::Contacts::ContactReader impl_IContactStore2::GetContactReader() const -{ - Windows::ApplicationModel::Contacts::ContactReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetContactReader(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactReader impl_IContactStore2::GetContactReader(const Windows::ApplicationModel::Contacts::ContactQueryOptions & options) const -{ - Windows::ApplicationModel::Contacts::ContactReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetContactReaderWithOptions(get(options), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactStore2::CreateContactListAsync(hstring_ref displayName, hstring_ref userDataAccountId) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateContactListInAccountAsync(get(displayName), get(userDataAccountId), put(value))); - return value; -} - -template hstring impl_IContactList::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IContactList::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IContactList::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IContactList::SourceDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SourceDisplayName(put(value))); - return value; -} - -template bool impl_IContactList::IsHidden() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsHidden(&value)); - return value; -} - -template void impl_IContactList::IsHidden(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsHidden(value)); -} - -template Windows::ApplicationModel::Contacts::ContactListOtherAppReadAccess impl_IContactList::OtherAppReadAccess() const -{ - Windows::ApplicationModel::Contacts::ContactListOtherAppReadAccess value {}; - check_hresult(static_cast(static_cast(*this))->get_OtherAppReadAccess(&value)); - return value; -} - -template void impl_IContactList::OtherAppReadAccess(Windows::ApplicationModel::Contacts::ContactListOtherAppReadAccess value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OtherAppReadAccess(value)); -} - -template Windows::ApplicationModel::Contacts::ContactListOtherAppWriteAccess impl_IContactList::OtherAppWriteAccess() const -{ - Windows::ApplicationModel::Contacts::ContactListOtherAppWriteAccess value {}; - check_hresult(static_cast(static_cast(*this))->get_OtherAppWriteAccess(&value)); - return value; -} - -template void impl_IContactList::OtherAppWriteAccess(Windows::ApplicationModel::Contacts::ContactListOtherAppWriteAccess value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OtherAppWriteAccess(value)); -} - -template Windows::ApplicationModel::Contacts::ContactChangeTracker impl_IContactList::ChangeTracker() const -{ - Windows::ApplicationModel::Contacts::ContactChangeTracker value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChangeTracker(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactListSyncManager impl_IContactList::SyncManager() const -{ - Windows::ApplicationModel::Contacts::ContactListSyncManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SyncManager(put(value))); - return value; -} - -template bool impl_IContactList::SupportsServerSearch() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsServerSearch(&value)); - return value; -} - -template hstring impl_IContactList::UserDataAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserDataAccountId(put(value))); - return value; -} - -template event_token impl_IContactList::ContactChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token returnValue {}; - check_hresult(static_cast(static_cast(*this))->add_ContactChanged(get(value), &returnValue)); - return returnValue; -} - -template event_revoker impl_IContactList::ContactChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Contacts::IContactList::remove_ContactChanged, ContactChanged(value)); -} - -template void impl_IContactList::ContactChanged(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContactChanged(value)); -} - -template Windows::Foundation::IAsyncAction impl_IContactList::SaveAsync() const -{ - Windows::Foundation::IAsyncAction returnValue; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsync(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncAction impl_IContactList::DeleteAsync() const -{ - Windows::Foundation::IAsyncAction returnValue; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IContactList::GetContactFromRemoteIdAsync(hstring_ref remoteId) const -{ - Windows::Foundation::IAsyncOperation contact; - check_hresult(static_cast(static_cast(*this))->abi_GetContactFromRemoteIdAsync(get(remoteId), put(contact))); - return contact; -} - -template Windows::Foundation::IAsyncOperation impl_IContactList::GetMeContactAsync() const -{ - Windows::Foundation::IAsyncOperation meContact; - check_hresult(static_cast(static_cast(*this))->abi_GetMeContactAsync(put(meContact))); - return meContact; -} - -template Windows::ApplicationModel::Contacts::ContactReader impl_IContactList::GetContactReader() const -{ - Windows::ApplicationModel::Contacts::ContactReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetContactReader(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactReader impl_IContactList::GetContactReader(const Windows::ApplicationModel::Contacts::ContactQueryOptions & options) const -{ - Windows::ApplicationModel::Contacts::ContactReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetContactReaderWithOptions(get(options), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IContactList::SaveContactAsync(const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_SaveContactAsync(get(contact), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IContactList::DeleteContactAsync(const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_DeleteContactAsync(get(contact), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactList::GetContactAsync(hstring_ref contactId) const -{ - Windows::Foundation::IAsyncOperation contacts; - check_hresult(static_cast(static_cast(*this))->abi_GetContactAsync(get(contactId), put(contacts))); - return contacts; -} - -template Windows::Foundation::IAsyncAction impl_IContactList2::RegisterSyncManagerAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_RegisterSyncManagerAsync(put(result))); - return result; -} - -template void impl_IContactList2::SupportsServerSearch(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SupportsServerSearch(value)); -} - -template Windows::ApplicationModel::Contacts::ContactListSyncConstraints impl_IContactList2::SyncConstraints() const -{ - Windows::ApplicationModel::Contacts::ContactListSyncConstraints value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SyncConstraints(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactListSyncStatus impl_IContactListSyncManager::Status() const -{ - Windows::ApplicationModel::Contacts::ContactListSyncStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IContactListSyncManager::LastSuccessfulSyncTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_LastSuccessfulSyncTime(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IContactListSyncManager::LastAttemptedSyncTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_LastAttemptedSyncTime(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactListSyncManager::SyncAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_SyncAsync(put(result))); - return result; -} - -template event_token impl_IContactListSyncManager::SyncStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SyncStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IContactListSyncManager::SyncStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Contacts::IContactListSyncManager::remove_SyncStatusChanged, SyncStatusChanged(handler)); -} - -template void impl_IContactListSyncManager::SyncStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SyncStatusChanged(token)); -} - -template void impl_IContactListSyncManager2::Status(Windows::ApplicationModel::Contacts::ContactListSyncStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Status(value)); -} - -template void impl_IContactListSyncManager2::LastSuccessfulSyncTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LastSuccessfulSyncTime(get(value))); -} - -template void impl_IContactListSyncManager2::LastAttemptedSyncTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LastAttemptedSyncTime(get(value))); -} - -template bool impl_IContactListSyncConstraints::CanSyncDescriptions() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanSyncDescriptions(&value)); - return value; -} - -template void impl_IContactListSyncConstraints::CanSyncDescriptions(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanSyncDescriptions(value)); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxHomePhoneNumbers() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxHomePhoneNumbers(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxHomePhoneNumbers(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxHomePhoneNumbers(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxMobilePhoneNumbers() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxMobilePhoneNumbers(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxMobilePhoneNumbers(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxMobilePhoneNumbers(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxWorkPhoneNumbers() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxWorkPhoneNumbers(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxWorkPhoneNumbers(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxWorkPhoneNumbers(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxOtherPhoneNumbers() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxOtherPhoneNumbers(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxOtherPhoneNumbers(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxOtherPhoneNumbers(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxPagerPhoneNumbers() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxPagerPhoneNumbers(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxPagerPhoneNumbers(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxPagerPhoneNumbers(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxBusinessFaxPhoneNumbers() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxBusinessFaxPhoneNumbers(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxBusinessFaxPhoneNumbers(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxBusinessFaxPhoneNumbers(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxHomeFaxPhoneNumbers() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxHomeFaxPhoneNumbers(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxHomeFaxPhoneNumbers(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxHomeFaxPhoneNumbers(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxCompanyPhoneNumbers() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxCompanyPhoneNumbers(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxCompanyPhoneNumbers(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxCompanyPhoneNumbers(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxAssistantPhoneNumbers() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxAssistantPhoneNumbers(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxAssistantPhoneNumbers(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxAssistantPhoneNumbers(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxRadioPhoneNumbers() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxRadioPhoneNumbers(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxRadioPhoneNumbers(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxRadioPhoneNumbers(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxPersonalEmailAddresses() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxPersonalEmailAddresses(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxPersonalEmailAddresses(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxPersonalEmailAddresses(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxWorkEmailAddresses() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxWorkEmailAddresses(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxWorkEmailAddresses(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxWorkEmailAddresses(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxOtherEmailAddresses() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxOtherEmailAddresses(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxOtherEmailAddresses(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxOtherEmailAddresses(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxHomeAddresses() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxHomeAddresses(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxHomeAddresses(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxHomeAddresses(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxWorkAddresses() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxWorkAddresses(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxWorkAddresses(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxWorkAddresses(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxOtherAddresses() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxOtherAddresses(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxOtherAddresses(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxOtherAddresses(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxBirthdayDates() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxBirthdayDates(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxBirthdayDates(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxBirthdayDates(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxAnniversaryDates() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxAnniversaryDates(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxAnniversaryDates(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxAnniversaryDates(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxOtherDates() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxOtherDates(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxOtherDates(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxOtherDates(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxOtherRelationships() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxOtherRelationships(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxOtherRelationships(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxOtherRelationships(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxSpouseRelationships() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxSpouseRelationships(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxSpouseRelationships(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxSpouseRelationships(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxPartnerRelationships() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxPartnerRelationships(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxPartnerRelationships(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxPartnerRelationships(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxSiblingRelationships() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxSiblingRelationships(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxSiblingRelationships(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxSiblingRelationships(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxParentRelationships() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxParentRelationships(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxParentRelationships(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxParentRelationships(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxChildRelationships() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxChildRelationships(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxChildRelationships(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxChildRelationships(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxJobInfo() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxJobInfo(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxJobInfo(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxJobInfo(get(value))); -} - -template Windows::Foundation::IReference impl_IContactListSyncConstraints::MaxWebsites() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxWebsites(put(value))); - return value; -} - -template void impl_IContactListSyncConstraints::MaxWebsites(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxWebsites(get(value))); -} - -template hstring impl_IContactConnectedServiceAccount::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template void impl_IContactConnectedServiceAccount::Id(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Id(get(value))); -} - -template hstring impl_IContactConnectedServiceAccount::ServiceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceName(put(value))); - return value; -} - -template void impl_IContactConnectedServiceAccount::ServiceName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ServiceName(get(value))); -} - -template hstring impl_IContactSignificantOther::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IContactSignificantOther::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template hstring impl_IContactSignificantOther::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IContactSignificantOther::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template Windows::ApplicationModel::Contacts::ContactRelationship impl_IContactSignificantOther2::Relationship() const -{ - Windows::ApplicationModel::Contacts::ContactRelationship value {}; - check_hresult(static_cast(static_cast(*this))->get_Relationship(&value)); - return value; -} - -template void impl_IContactSignificantOther2::Relationship(Windows::ApplicationModel::Contacts::ContactRelationship value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Relationship(value)); -} - -template Windows::Foundation::Uri impl_IContactWebsite::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template void impl_IContactWebsite::Uri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Uri(get(value))); -} - -template hstring impl_IContactWebsite::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IContactWebsite::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template hstring impl_IContactWebsite2::RawValue() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RawValue(put(value))); - return value; -} - -template void impl_IContactWebsite2::RawValue(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RawValue(get(value))); -} - -template hstring impl_IContactEmail::Address() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Address(put(value))); - return value; -} - -template void impl_IContactEmail::Address(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Address(get(value))); -} - -template Windows::ApplicationModel::Contacts::ContactEmailKind impl_IContactEmail::Kind() const -{ - Windows::ApplicationModel::Contacts::ContactEmailKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template void impl_IContactEmail::Kind(Windows::ApplicationModel::Contacts::ContactEmailKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Kind(value)); -} - -template hstring impl_IContactEmail::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IContactEmail::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template hstring impl_IContactPhone::Number() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Number(put(value))); - return value; -} - -template void impl_IContactPhone::Number(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Number(get(value))); -} - -template Windows::ApplicationModel::Contacts::ContactPhoneKind impl_IContactPhone::Kind() const -{ - Windows::ApplicationModel::Contacts::ContactPhoneKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template void impl_IContactPhone::Kind(Windows::ApplicationModel::Contacts::ContactPhoneKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Kind(value)); -} - -template hstring impl_IContactPhone::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IContactPhone::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template hstring impl_IContactAddress::StreetAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StreetAddress(put(value))); - return value; -} - -template void impl_IContactAddress::StreetAddress(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StreetAddress(get(value))); -} - -template hstring impl_IContactAddress::Locality() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Locality(put(value))); - return value; -} - -template void impl_IContactAddress::Locality(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Locality(get(value))); -} - -template hstring impl_IContactAddress::Region() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Region(put(value))); - return value; -} - -template void impl_IContactAddress::Region(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Region(get(value))); -} - -template hstring impl_IContactAddress::Country() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Country(put(value))); - return value; -} - -template void impl_IContactAddress::Country(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Country(get(value))); -} - -template hstring impl_IContactAddress::PostalCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PostalCode(put(value))); - return value; -} - -template void impl_IContactAddress::PostalCode(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PostalCode(get(value))); -} - -template Windows::ApplicationModel::Contacts::ContactAddressKind impl_IContactAddress::Kind() const -{ - Windows::ApplicationModel::Contacts::ContactAddressKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template void impl_IContactAddress::Kind(Windows::ApplicationModel::Contacts::ContactAddressKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Kind(value)); -} - -template hstring impl_IContactAddress::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IContactAddress::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template Windows::Foundation::IReference impl_IContactDate::Day() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Day(put(value))); - return value; -} - -template void impl_IContactDate::Day(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Day(get(value))); -} - -template Windows::Foundation::IReference impl_IContactDate::Month() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Month(put(value))); - return value; -} - -template void impl_IContactDate::Month(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Month(get(value))); -} - -template Windows::Foundation::IReference impl_IContactDate::Year() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Year(put(value))); - return value; -} - -template void impl_IContactDate::Year(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Year(get(value))); -} - -template Windows::ApplicationModel::Contacts::ContactDateKind impl_IContactDate::Kind() const -{ - Windows::ApplicationModel::Contacts::ContactDateKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template void impl_IContactDate::Kind(Windows::ApplicationModel::Contacts::ContactDateKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Kind(value)); -} - -template hstring impl_IContactDate::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IContactDate::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template hstring impl_IContactJobInfo::CompanyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CompanyName(put(value))); - return value; -} - -template void impl_IContactJobInfo::CompanyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CompanyName(get(value))); -} - -template hstring impl_IContactJobInfo::CompanyYomiName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CompanyYomiName(put(value))); - return value; -} - -template void impl_IContactJobInfo::CompanyYomiName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CompanyYomiName(get(value))); -} - -template hstring impl_IContactJobInfo::Department() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Department(put(value))); - return value; -} - -template void impl_IContactJobInfo::Department(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Department(get(value))); -} - -template hstring impl_IContactJobInfo::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IContactJobInfo::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template hstring impl_IContactJobInfo::Manager() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Manager(put(value))); - return value; -} - -template void impl_IContactJobInfo::Manager(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Manager(get(value))); -} - -template hstring impl_IContactJobInfo::Office() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Office(put(value))); - return value; -} - -template void impl_IContactJobInfo::Office(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Office(get(value))); -} - -template hstring impl_IContactJobInfo::CompanyAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CompanyAddress(put(value))); - return value; -} - -template void impl_IContactJobInfo::CompanyAddress(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CompanyAddress(get(value))); -} - -template hstring impl_IContactJobInfo::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IContactJobInfo::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template hstring impl_IContact::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IContact::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IContact::Thumbnail() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template void impl_IContact::Thumbnail(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbnail(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IContact::Fields() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Fields(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactFieldType impl_IContactField::Type() const -{ - Windows::ApplicationModel::Contacts::ContactFieldType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactFieldCategory impl_IContactField::Category() const -{ - Windows::ApplicationModel::Contacts::ContactFieldCategory value {}; - check_hresult(static_cast(static_cast(*this))->get_Category(&value)); - return value; -} - -template hstring impl_IContactField::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template hstring impl_IContactField::Value() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template hstring impl_IContactName::FirstName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FirstName(put(value))); - return value; -} - -template void impl_IContactName::FirstName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FirstName(get(value))); -} - -template hstring impl_IContactName::LastName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LastName(put(value))); - return value; -} - -template void impl_IContactName::LastName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LastName(get(value))); -} - -template hstring impl_IContactName::MiddleName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MiddleName(put(value))); - return value; -} - -template void impl_IContactName::MiddleName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MiddleName(get(value))); -} - -template hstring impl_IContactName::YomiGivenName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_YomiGivenName(put(value))); - return value; -} - -template void impl_IContactName::YomiGivenName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_YomiGivenName(get(value))); -} - -template hstring impl_IContactName::YomiFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_YomiFamilyName(put(value))); - return value; -} - -template void impl_IContactName::YomiFamilyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_YomiFamilyName(get(value))); -} - -template hstring impl_IContactName::HonorificNameSuffix() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HonorificNameSuffix(put(value))); - return value; -} - -template void impl_IContactName::HonorificNameSuffix(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HonorificNameSuffix(get(value))); -} - -template hstring impl_IContactName::HonorificNamePrefix() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HonorificNamePrefix(put(value))); - return value; -} - -template void impl_IContactName::HonorificNamePrefix(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HonorificNamePrefix(get(value))); -} - -template hstring impl_IContactName::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IContactName::YomiDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_YomiDisplayName(put(value))); - return value; -} - -template hstring impl_IContact2::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template void impl_IContact2::Id(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Id(get(value))); -} - -template hstring impl_IContact2::Notes() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Notes(put(value))); - return value; -} - -template void impl_IContact2::Notes(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Notes(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IContact2::Phones() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Phones(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IContact2::Emails() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Emails(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IContact2::Addresses() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Addresses(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IContact2::ConnectedServiceAccounts() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ConnectedServiceAccounts(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IContact2::ImportantDates() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ImportantDates(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IContact2::DataSuppliers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DataSuppliers(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IContact2::JobInfo() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_JobInfo(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IContact2::SignificantOthers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SignificantOthers(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IContact2::Websites() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Websites(put(value))); - return value; -} - -template Windows::Foundation::Collections::IPropertySet impl_IContact2::ProviderProperties() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_ProviderProperties(put(value))); - return value; -} - -template hstring impl_IContact3::ContactListId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContactListId(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IContact3::DisplayPictureUserUpdateTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_DisplayPictureUserUpdateTime(put(value))); - return value; -} - -template void impl_IContact3::DisplayPictureUserUpdateTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayPictureUserUpdateTime(get(value))); -} - -template bool impl_IContact3::IsMe() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMe(&value)); - return value; -} - -template hstring impl_IContact3::AggregateId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AggregateId(put(value))); - return value; -} - -template hstring impl_IContact3::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template void impl_IContact3::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template hstring impl_IContact3::RingToneToken() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RingToneToken(put(value))); - return value; -} - -template void impl_IContact3::RingToneToken(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RingToneToken(get(value))); -} - -template bool impl_IContact3::IsDisplayPictureManuallySet() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDisplayPictureManuallySet(&value)); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IContact3::LargeDisplayPicture() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_LargeDisplayPicture(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IContact3::SmallDisplayPicture() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_SmallDisplayPicture(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IContact3::SourceDisplayPicture() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_SourceDisplayPicture(put(value))); - return value; -} - -template void impl_IContact3::SourceDisplayPicture(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SourceDisplayPicture(get(value))); -} - -template hstring impl_IContact3::TextToneToken() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TextToneToken(put(value))); - return value; -} - -template void impl_IContact3::TextToneToken(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextToneToken(get(value))); -} - -template bool impl_IContact3::IsAggregate() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAggregate(&value)); - return value; -} - -template hstring impl_IContact3::FullName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FullName(put(value))); - return value; -} - -template hstring impl_IContact3::DisplayNameOverride() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayNameOverride(put(value))); - return value; -} - -template void impl_IContact3::DisplayNameOverride(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayNameOverride(get(value))); -} - -template hstring impl_IContact3::Nickname() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Nickname(put(value))); - return value; -} - -template void impl_IContact3::Nickname(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Nickname(get(value))); -} - -template hstring impl_IContact3::SortName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SortName(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactChangeType impl_IContactChange::ChangeType() const -{ - Windows::ApplicationModel::Contacts::ContactChangeType value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeType(&value)); - return value; -} - -template Windows::ApplicationModel::Contacts::Contact impl_IContactChange::Contact() const -{ - Windows::ApplicationModel::Contacts::Contact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template void impl_IContactChangedDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::ApplicationModel::Contacts::ContactChangedDeferral impl_IContactChangedEventArgs::GetDeferral() const -{ - Windows::ApplicationModel::Contacts::ContactChangedDeferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template void impl_IContactChangeReader::AcceptChanges() const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptChanges()); -} - -template void impl_IContactChangeReader::AcceptChangesThrough(const Windows::ApplicationModel::Contacts::ContactChange & lastChangeToAccept) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptChangesThrough(get(lastChangeToAccept))); -} - -template Windows::Foundation::IAsyncOperation> impl_IContactChangeReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(value))); - return value; -} - -template void impl_IContactChangeTracker::Enable() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Enable()); -} - -template Windows::ApplicationModel::Contacts::ContactChangeReader impl_IContactChangeTracker::GetChangeReader() const -{ - Windows::ApplicationModel::Contacts::ContactChangeReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetChangeReader(put(value))); - return value; -} - -template void impl_IContactChangeTracker::Reset() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Reset()); -} - -template Windows::Foundation::IAsyncOperation impl_IContactReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IContactReader::GetMatchingPropertiesWithMatchReason(const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - Windows::Foundation::Collections::IVectorView ppRetVal; - check_hresult(static_cast(static_cast(*this))->abi_GetMatchingPropertiesWithMatchReason(get(contact), put(ppRetVal))); - return ppRetVal; -} - -template Windows::ApplicationModel::Contacts::ContactQuerySearchFields impl_IContactQueryTextSearch::Fields() const -{ - Windows::ApplicationModel::Contacts::ContactQuerySearchFields value {}; - check_hresult(static_cast(static_cast(*this))->get_Fields(&value)); - return value; -} - -template void impl_IContactQueryTextSearch::Fields(Windows::ApplicationModel::Contacts::ContactQuerySearchFields value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Fields(value)); -} - -template hstring impl_IContactQueryTextSearch::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_IContactQueryTextSearch::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template Windows::ApplicationModel::Contacts::ContactQuerySearchScope impl_IContactQueryTextSearch::SearchScope() const -{ - Windows::ApplicationModel::Contacts::ContactQuerySearchScope value {}; - check_hresult(static_cast(static_cast(*this))->get_SearchScope(&value)); - return value; -} - -template void impl_IContactQueryTextSearch::SearchScope(Windows::ApplicationModel::Contacts::ContactQuerySearchScope value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SearchScope(value)); -} - -template Windows::ApplicationModel::Contacts::ContactQueryOptions impl_IContactQueryOptionsFactory::CreateWithText(hstring_ref text) const -{ - Windows::ApplicationModel::Contacts::ContactQueryOptions result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithText(get(text), put(result))); - return result; -} - -template Windows::ApplicationModel::Contacts::ContactQueryOptions impl_IContactQueryOptionsFactory::CreateWithTextAndFields(hstring_ref text, Windows::ApplicationModel::Contacts::ContactQuerySearchFields fields) const -{ - Windows::ApplicationModel::Contacts::ContactQueryOptions result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithTextAndFields(get(text), fields, put(result))); - return result; -} - -template Windows::ApplicationModel::Contacts::ContactQueryTextSearch impl_IContactQueryOptions::TextSearch() const -{ - Windows::ApplicationModel::Contacts::ContactQueryTextSearch value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextSearch(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IContactQueryOptions::ContactListIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ContactListIds(put(value))); - return value; -} - -template bool impl_IContactQueryOptions::IncludeContactsFromHiddenLists() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeContactsFromHiddenLists(&value)); - return value; -} - -template void impl_IContactQueryOptions::IncludeContactsFromHiddenLists(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncludeContactsFromHiddenLists(value)); -} - -template Windows::ApplicationModel::Contacts::ContactQueryDesiredFields impl_IContactQueryOptions::DesiredFields() const -{ - Windows::ApplicationModel::Contacts::ContactQueryDesiredFields value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredFields(&value)); - return value; -} - -template void impl_IContactQueryOptions::DesiredFields(Windows::ApplicationModel::Contacts::ContactQueryDesiredFields value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredFields(value)); -} - -template Windows::ApplicationModel::Contacts::ContactAnnotationOperations impl_IContactQueryOptions::DesiredOperations() const -{ - Windows::ApplicationModel::Contacts::ContactAnnotationOperations value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredOperations(&value)); - return value; -} - -template void impl_IContactQueryOptions::DesiredOperations(Windows::ApplicationModel::Contacts::ContactAnnotationOperations value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredOperations(value)); -} - -template Windows::Foundation::Collections::IVector impl_IContactQueryOptions::AnnotationListIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_AnnotationListIds(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IContactBatch::Contacts() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Contacts(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactBatchStatus impl_IContactBatch::Status() const -{ - Windows::ApplicationModel::Contacts::ContactBatchStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactMatchReasonKind impl_IContactMatchReason::Field() const -{ - Windows::ApplicationModel::Contacts::ContactMatchReasonKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Field(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IContactMatchReason::Segments() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Segments(put(value))); - return value; -} - -template hstring impl_IContactMatchReason::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template hstring impl_IContactLaunchActionVerbsStatics::Call() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Call(put(value))); - return value; -} - -template hstring impl_IContactLaunchActionVerbsStatics::Message() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template hstring impl_IContactLaunchActionVerbsStatics::Map() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Map(put(value))); - return value; -} - -template hstring impl_IContactLaunchActionVerbsStatics::Post() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Post(put(value))); - return value; -} - -template hstring impl_IContactLaunchActionVerbsStatics::VideoCall() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VideoCall(put(value))); - return value; -} - -template hstring impl_IContactLocationField::UnstructuredAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UnstructuredAddress(put(value))); - return value; -} - -template hstring impl_IContactLocationField::Street() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Street(put(value))); - return value; -} - -template hstring impl_IContactLocationField::City() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_City(put(value))); - return value; -} - -template hstring impl_IContactLocationField::Region() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Region(put(value))); - return value; -} - -template hstring impl_IContactLocationField::Country() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Country(put(value))); - return value; -} - -template hstring impl_IContactLocationField::PostalCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PostalCode(put(value))); - return value; -} - -template hstring impl_IContactInstantMessageField::UserName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserName(put(value))); - return value; -} - -template hstring impl_IContactInstantMessageField::Service() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Service(put(value))); - return value; -} - -template hstring impl_IContactInstantMessageField::DisplayText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayText(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IContactInstantMessageField::LaunchUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LaunchUri(put(value))); - return value; -} - -template hstring impl_IKnownContactFieldStatics::Email() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Email(put(value))); - return value; -} - -template hstring impl_IKnownContactFieldStatics::PhoneNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PhoneNumber(put(value))); - return value; -} - -template hstring impl_IKnownContactFieldStatics::Location() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template hstring impl_IKnownContactFieldStatics::InstantMessage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InstantMessage(put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactFieldType impl_IKnownContactFieldStatics::ConvertNameToType(hstring_ref name) const -{ - Windows::ApplicationModel::Contacts::ContactFieldType type {}; - check_hresult(static_cast(static_cast(*this))->abi_ConvertNameToType(get(name), &type)); - return type; -} - -template hstring impl_IKnownContactFieldStatics::ConvertTypeToName(Windows::ApplicationModel::Contacts::ContactFieldType type) const -{ - hstring name; - check_hresult(static_cast(static_cast(*this))->abi_ConvertTypeToName(type, put(name))); - return name; -} - -template hstring impl_IContactInformation::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactInformation::GetThumbnailAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetThumbnailAsync(put(operation))); - return operation; -} - -template Windows::Foundation::Collections::IVectorView impl_IContactInformation::Emails() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Emails(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IContactInformation::PhoneNumbers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_PhoneNumbers(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IContactInformation::Locations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Locations(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IContactInformation::InstantMessages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_InstantMessages(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IContactInformation::CustomFields() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_CustomFields(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IContactInformation::QueryCustomFields(hstring_ref customName) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_QueryCustomFields(get(customName), put(value))); - return value; -} - -template Windows::ApplicationModel::Contacts::ContactField impl_IContactFieldFactory::CreateField(hstring_ref value, Windows::ApplicationModel::Contacts::ContactFieldType type) const -{ - Windows::ApplicationModel::Contacts::ContactField field { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateField_Default(get(value), type, put(field))); - return field; -} - -template Windows::ApplicationModel::Contacts::ContactField impl_IContactFieldFactory::CreateField(hstring_ref value, Windows::ApplicationModel::Contacts::ContactFieldType type, Windows::ApplicationModel::Contacts::ContactFieldCategory category) const -{ - Windows::ApplicationModel::Contacts::ContactField field { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateField_Category(get(value), type, category, put(field))); - return field; -} - -template Windows::ApplicationModel::Contacts::ContactField impl_IContactFieldFactory::CreateField(hstring_ref name, hstring_ref value, Windows::ApplicationModel::Contacts::ContactFieldType type, Windows::ApplicationModel::Contacts::ContactFieldCategory category) const -{ - Windows::ApplicationModel::Contacts::ContactField field { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateField_Custom(get(name), get(value), type, category, put(field))); - return field; -} - -template Windows::ApplicationModel::Contacts::ContactLocationField impl_IContactLocationFieldFactory::CreateLocation(hstring_ref unstructuredAddress) const -{ - Windows::ApplicationModel::Contacts::ContactLocationField field { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateLocation_Default(get(unstructuredAddress), put(field))); - return field; -} - -template Windows::ApplicationModel::Contacts::ContactLocationField impl_IContactLocationFieldFactory::CreateLocation(hstring_ref unstructuredAddress, Windows::ApplicationModel::Contacts::ContactFieldCategory category) const -{ - Windows::ApplicationModel::Contacts::ContactLocationField field { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateLocation_Category(get(unstructuredAddress), category, put(field))); - return field; -} - -template Windows::ApplicationModel::Contacts::ContactLocationField impl_IContactLocationFieldFactory::CreateLocation(hstring_ref unstructuredAddress, Windows::ApplicationModel::Contacts::ContactFieldCategory category, hstring_ref street, hstring_ref city, hstring_ref region, hstring_ref country, hstring_ref postalCode) const -{ - Windows::ApplicationModel::Contacts::ContactLocationField field { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateLocation_All(get(unstructuredAddress), category, get(street), get(city), get(region), get(country), get(postalCode), put(field))); - return field; -} - -template Windows::ApplicationModel::Contacts::ContactInstantMessageField impl_IContactInstantMessageFieldFactory::CreateInstantMessage(hstring_ref userName) const -{ - Windows::ApplicationModel::Contacts::ContactInstantMessageField field { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstantMessage_Default(get(userName), put(field))); - return field; -} - -template Windows::ApplicationModel::Contacts::ContactInstantMessageField impl_IContactInstantMessageFieldFactory::CreateInstantMessage(hstring_ref userName, Windows::ApplicationModel::Contacts::ContactFieldCategory category) const -{ - Windows::ApplicationModel::Contacts::ContactInstantMessageField field { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstantMessage_Category(get(userName), category, put(field))); - return field; -} - -template Windows::ApplicationModel::Contacts::ContactInstantMessageField impl_IContactInstantMessageFieldFactory::CreateInstantMessage(hstring_ref userName, Windows::ApplicationModel::Contacts::ContactFieldCategory category, hstring_ref service, hstring_ref displayText, const Windows::Foundation::Uri & verb) const -{ - Windows::ApplicationModel::Contacts::ContactInstantMessageField field { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstantMessage_All(get(userName), category, get(service), get(displayText), get(verb), put(field))); - return field; -} - -template hstring impl_IContactPicker::CommitButtonText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CommitButtonText(put(value))); - return value; -} - -template void impl_IContactPicker::CommitButtonText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CommitButtonText(get(value))); -} - -template Windows::ApplicationModel::Contacts::ContactSelectionMode impl_IContactPicker::SelectionMode() const -{ - Windows::ApplicationModel::Contacts::ContactSelectionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectionMode(&value)); - return value; -} - -template void impl_IContactPicker::SelectionMode(Windows::ApplicationModel::Contacts::ContactSelectionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionMode(value)); -} - -template Windows::Foundation::Collections::IVector impl_IContactPicker::DesiredFields() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DesiredFields(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactPicker::PickSingleContactAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_PickSingleContactAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactPicker::PickMultipleContactsAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_PickMultipleContactsAsync(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IContactPicker2::DesiredFieldsWithContactFieldType() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DesiredFieldsWithContactFieldType(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactPicker2::PickContactAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_PickContactAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactPicker2::PickContactsAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_PickContactsAsync(put(result))); - return result; -} - -template void impl_IContactCardDelayedDataLoader::SetData(const Windows::ApplicationModel::Contacts::Contact & contact) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetData(get(contact))); -} - -inline Contact::Contact() : - Contact(activate_instance()) -{} - -inline ContactAddress::ContactAddress() : - ContactAddress(activate_instance()) -{} - -inline ContactAnnotation::ContactAnnotation() : - ContactAnnotation(activate_instance()) -{} - -inline ContactCardOptions::ContactCardOptions() : - ContactCardOptions(activate_instance()) -{} - -inline ContactConnectedServiceAccount::ContactConnectedServiceAccount() : - ContactConnectedServiceAccount(activate_instance()) -{} - -inline ContactDate::ContactDate() : - ContactDate(activate_instance()) -{} - -inline ContactEmail::ContactEmail() : - ContactEmail(activate_instance()) -{} - -inline ContactField::ContactField(hstring_ref value, Windows::ApplicationModel::Contacts::ContactFieldType type) : - ContactField(get_activation_factory().CreateField(value, type)) -{} - -inline ContactField::ContactField(hstring_ref value, Windows::ApplicationModel::Contacts::ContactFieldType type, Windows::ApplicationModel::Contacts::ContactFieldCategory category) : - ContactField(get_activation_factory().CreateField(value, type, category)) -{} - -inline ContactField::ContactField(hstring_ref name, hstring_ref value, Windows::ApplicationModel::Contacts::ContactFieldType type, Windows::ApplicationModel::Contacts::ContactFieldCategory category) : - ContactField(get_activation_factory().CreateField(name, value, type, category)) -{} - -inline ContactFieldFactory::ContactFieldFactory() : - ContactFieldFactory(activate_instance()) -{} - -inline ContactInstantMessageField::ContactInstantMessageField(hstring_ref userName) : - ContactInstantMessageField(get_activation_factory().CreateInstantMessage(userName)) -{} - -inline ContactInstantMessageField::ContactInstantMessageField(hstring_ref userName, Windows::ApplicationModel::Contacts::ContactFieldCategory category) : - ContactInstantMessageField(get_activation_factory().CreateInstantMessage(userName, category)) -{} - -inline ContactInstantMessageField::ContactInstantMessageField(hstring_ref userName, Windows::ApplicationModel::Contacts::ContactFieldCategory category, hstring_ref service, hstring_ref displayText, const Windows::Foundation::Uri & verb) : - ContactInstantMessageField(get_activation_factory().CreateInstantMessage(userName, category, service, displayText, verb)) -{} - -inline ContactJobInfo::ContactJobInfo() : - ContactJobInfo(activate_instance()) -{} - -inline hstring ContactLaunchActionVerbs::Call() -{ - return get_activation_factory().Call(); -} - -inline hstring ContactLaunchActionVerbs::Message() -{ - return get_activation_factory().Message(); -} - -inline hstring ContactLaunchActionVerbs::Map() -{ - return get_activation_factory().Map(); -} - -inline hstring ContactLaunchActionVerbs::Post() -{ - return get_activation_factory().Post(); -} - -inline hstring ContactLaunchActionVerbs::VideoCall() -{ - return get_activation_factory().VideoCall(); -} - -inline ContactLocationField::ContactLocationField(hstring_ref unstructuredAddress) : - ContactLocationField(get_activation_factory().CreateLocation(unstructuredAddress)) -{} - -inline ContactLocationField::ContactLocationField(hstring_ref unstructuredAddress, Windows::ApplicationModel::Contacts::ContactFieldCategory category) : - ContactLocationField(get_activation_factory().CreateLocation(unstructuredAddress, category)) -{} - -inline ContactLocationField::ContactLocationField(hstring_ref unstructuredAddress, Windows::ApplicationModel::Contacts::ContactFieldCategory category, hstring_ref street, hstring_ref city, hstring_ref region, hstring_ref country, hstring_ref postalCode) : - ContactLocationField(get_activation_factory().CreateLocation(unstructuredAddress, category, street, city, region, country, postalCode)) -{} - -inline void ContactManager::ShowContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::Foundation::Rect & selection) -{ - get_activation_factory().ShowContactCard(contact, selection); -} - -inline void ContactManager::ShowContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) -{ - get_activation_factory().ShowContactCard(contact, selection, preferredPlacement); -} - -inline Windows::ApplicationModel::Contacts::ContactCardDelayedDataLoader ContactManager::ShowDelayLoadedContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) -{ - return get_activation_factory().ShowDelayLoadedContactCard(contact, selection, preferredPlacement); -} - -inline Windows::Foundation::IAsyncOperation ContactManager::RequestStoreAsync() -{ - return get_activation_factory().RequestStoreAsync(); -} - -inline Windows::Foundation::IAsyncOperation ContactManager::ConvertContactToVCardAsync(const Windows::ApplicationModel::Contacts::Contact & contact) -{ - return get_activation_factory().ConvertContactToVCardAsync(contact); -} - -inline Windows::Foundation::IAsyncOperation ContactManager::ConvertContactToVCardAsync(const Windows::ApplicationModel::Contacts::Contact & contact, uint32_t maxBytes) -{ - return get_activation_factory().ConvertContactToVCardAsync(contact, maxBytes); -} - -inline Windows::Foundation::IAsyncOperation ContactManager::ConvertVCardToContactAsync(const Windows::Storage::Streams::IRandomAccessStreamReference & vCard) -{ - return get_activation_factory().ConvertVCardToContactAsync(vCard); -} - -inline Windows::Foundation::IAsyncOperation ContactManager::RequestStoreAsync(Windows::ApplicationModel::Contacts::ContactStoreAccessType accessType) -{ - return get_activation_factory().RequestStoreAsync(accessType); -} - -inline Windows::Foundation::IAsyncOperation ContactManager::RequestAnnotationStoreAsync(Windows::ApplicationModel::Contacts::ContactAnnotationStoreAccessType accessType) -{ - return get_activation_factory().RequestAnnotationStoreAsync(accessType); -} - -inline bool ContactManager::IsShowContactCardSupported() -{ - return get_activation_factory().IsShowContactCardSupported(); -} - -inline void ContactManager::ShowContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::ApplicationModel::Contacts::ContactCardOptions & contactCardOptions) -{ - get_activation_factory().ShowContactCard(contact, selection, preferredPlacement, contactCardOptions); -} - -inline bool ContactManager::IsShowDelayLoadedContactCardSupported() -{ - return get_activation_factory().IsShowDelayLoadedContactCardSupported(); -} - -inline Windows::ApplicationModel::Contacts::ContactCardDelayedDataLoader ContactManager::ShowDelayLoadedContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement, const Windows::ApplicationModel::Contacts::ContactCardOptions & contactCardOptions) -{ - return get_activation_factory().ShowDelayLoadedContactCard(contact, selection, preferredPlacement, contactCardOptions); -} - -inline void ContactManager::ShowFullContactCard(const Windows::ApplicationModel::Contacts::Contact & contact, const Windows::ApplicationModel::Contacts::FullContactCardOptions & fullContactCardOptions) -{ - get_activation_factory().ShowFullContactCard(contact, fullContactCardOptions); -} - -inline Windows::ApplicationModel::Contacts::ContactNameOrder ContactManager::SystemDisplayNameOrder() -{ - return get_activation_factory().SystemDisplayNameOrder(); -} - -inline void ContactManager::SystemDisplayNameOrder(Windows::ApplicationModel::Contacts::ContactNameOrder value) -{ - get_activation_factory().SystemDisplayNameOrder(value); -} - -inline Windows::ApplicationModel::Contacts::ContactNameOrder ContactManager::SystemSortOrder() -{ - return get_activation_factory().SystemSortOrder(); -} - -inline void ContactManager::SystemSortOrder(Windows::ApplicationModel::Contacts::ContactNameOrder value) -{ - get_activation_factory().SystemSortOrder(value); -} - -inline Windows::ApplicationModel::Contacts::ContactManagerForUser ContactManager::GetForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetForUser(user); -} - -inline ContactPhone::ContactPhone() : - ContactPhone(activate_instance()) -{} - -inline ContactPicker::ContactPicker() : - ContactPicker(activate_instance()) -{} - -inline ContactQueryOptions::ContactQueryOptions() : - ContactQueryOptions(activate_instance()) -{} - -inline ContactQueryOptions::ContactQueryOptions(hstring_ref text) : - ContactQueryOptions(get_activation_factory().CreateWithText(text)) -{} - -inline ContactQueryOptions::ContactQueryOptions(hstring_ref text, Windows::ApplicationModel::Contacts::ContactQuerySearchFields fields) : - ContactQueryOptions(get_activation_factory().CreateWithTextAndFields(text, fields)) -{} - -inline ContactSignificantOther::ContactSignificantOther() : - ContactSignificantOther(activate_instance()) -{} - -inline ContactWebsite::ContactWebsite() : - ContactWebsite(activate_instance()) -{} - -inline FullContactCardOptions::FullContactCardOptions() : - FullContactCardOptions(activate_instance()) -{} - -inline hstring KnownContactField::Email() -{ - return get_activation_factory().Email(); -} - -inline hstring KnownContactField::PhoneNumber() -{ - return get_activation_factory().PhoneNumber(); -} - -inline hstring KnownContactField::Location() -{ - return get_activation_factory().Location(); -} - -inline hstring KnownContactField::InstantMessage() -{ - return get_activation_factory().InstantMessage(); -} - -inline Windows::ApplicationModel::Contacts::ContactFieldType KnownContactField::ConvertNameToType(hstring_ref name) -{ - return get_activation_factory().ConvertNameToType(name); -} - -inline hstring KnownContactField::ConvertTypeToName(Windows::ApplicationModel::Contacts::ContactFieldType type) -{ - return get_activation_factory().ConvertTypeToName(type); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Core.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Core.h deleted file mode 100644 index bfac03bbe..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Core.h +++ /dev/null @@ -1,1500 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.ApplicationModel.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Core.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.Core.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Suspending(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Suspending(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Suspending(event_token token) noexcept override - { - try - { - this->shim().Suspending(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Resuming(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Resuming(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Resuming(event_token token) noexcept override - { - try - { - this->shim().Resuming(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Run(abi_arg_in viewSource) noexcept override - { - try - { - this->shim().Run(*reinterpret_cast(&viewSource)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RunWithActivationFactories(abi_arg_in activationFactoryCallback) noexcept override - { - try - { - this->shim().RunWithActivationFactories(*reinterpret_cast(&activationFactoryCallback)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_BackgroundActivated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BackgroundActivated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BackgroundActivated(event_token token) noexcept override - { - try - { - this->shim().BackgroundActivated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LeavingBackground(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LeavingBackground(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LeavingBackground(event_token token) noexcept override - { - try - { - this->shim().LeavingBackground(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnteredBackground(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnteredBackground(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnteredBackground(event_token token) noexcept override - { - try - { - this->shim().EnteredBackground(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnablePrelaunch(bool value) noexcept override - { - try - { - this->shim().EnablePrelaunch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Exit() noexcept override - { - try - { - this->shim().Exit(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Exiting(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Exiting(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Exiting(event_token token) noexcept override - { - try - { - this->shim().Exiting(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_UnhandledErrorDetected(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UnhandledErrorDetected(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UnhandledErrorDetected(event_token token) noexcept override - { - try - { - this->shim().UnhandledErrorDetected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IncrementApplicationUseCount() noexcept override - { - try - { - this->shim().IncrementApplicationUseCount(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DecrementApplicationUseCount() noexcept override - { - try - { - this->shim().DecrementApplicationUseCount(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CoreWindow(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CoreWindow()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Activated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Activated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Activated(event_token token) noexcept override - { - try - { - this->shim().Activated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMain(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHosted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHosted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Dispatcher(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Dispatcher()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsComponent(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsComponent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TitleBar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleBar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_HostedViewClosing(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().HostedViewClosing(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HostedViewClosing(event_token token) noexcept override - { - try - { - this->shim().HostedViewClosing(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ExtendViewIntoTitleBar(bool value) noexcept override - { - try - { - this->shim().ExtendViewIntoTitleBar(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendViewIntoTitleBar(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendViewIntoTitleBar()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemOverlayLeftInset(double * value) noexcept override - { - try - { - *value = detach(this->shim().SystemOverlayLeftInset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemOverlayRightInset(double * value) noexcept override - { - try - { - *value = detach(this->shim().SystemOverlayRightInset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(double * value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LayoutMetricsChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LayoutMetricsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LayoutMetricsChanged(event_token token) noexcept override - { - try - { - this->shim().LayoutMetricsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_IsVisibleChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().IsVisibleChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_IsVisibleChanged(event_token token) noexcept override - { - try - { - this->shim().IsVisibleChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Views(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Views()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateNewView(abi_arg_in runtimeType, abi_arg_in entryPoint, abi_arg_out view) noexcept override - { - try - { - *view = detach(this->shim().CreateNewView(*reinterpret_cast(&runtimeType), *reinterpret_cast(&entryPoint))); - return S_OK; - } - catch (...) - { - *view = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MainView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MainView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateNewViewFromMainView(abi_arg_out view) noexcept override - { - try - { - *view = detach(this->shim().CreateNewView()); - return S_OK; - } - catch (...) - { - *view = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateNewViewWithViewSource(abi_arg_in viewSource, abi_arg_out view) noexcept override - { - try - { - *view = detach(this->shim().CreateNewView(*reinterpret_cast(&viewSource))); - return S_OK; - } - catch (...) - { - *view = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Initialize(abi_arg_in applicationView) noexcept override - { - try - { - this->shim().Initialize(*reinterpret_cast(&applicationView)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetWindow(abi_arg_in window) noexcept override - { - try - { - this->shim().SetWindow(*reinterpret_cast(&window)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Load(abi_arg_in entryPoint) noexcept override - { - try - { - this->shim().Load(*reinterpret_cast(&entryPoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Run() noexcept override - { - try - { - this->shim().Run(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Uninitialize() noexcept override - { - try - { - this->shim().Uninitialize(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateView(abi_arg_out viewProvider) noexcept override - { - try - { - *viewProvider = detach(this->shim().CreateView()); - return S_OK; - } - catch (...) - { - *viewProvider = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Propagate() noexcept override - { - try - { - this->shim().Propagate(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UnhandledError(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UnhandledError()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Core { - -template Windows::ApplicationModel::AppDisplayInfo impl_IAppListEntry::DisplayInfo() const -{ - Windows::ApplicationModel::AppDisplayInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisplayInfo(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAppListEntry::LaunchAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchAsync(put(operation))); - return operation; -} - -template void impl_IFrameworkView::Initialize(const Windows::ApplicationModel::Core::CoreApplicationView & applicationView) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Initialize(get(applicationView))); -} - -template void impl_IFrameworkView::SetWindow(const Windows::UI::Core::CoreWindow & window) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetWindow(get(window))); -} - -template void impl_IFrameworkView::Load(hstring_ref entryPoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Load(get(entryPoint))); -} - -template void impl_IFrameworkView::Run() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Run()); -} - -template void impl_IFrameworkView::Uninitialize() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Uninitialize()); -} - -template Windows::ApplicationModel::Core::IFrameworkView impl_IFrameworkViewSource::CreateView() const -{ - Windows::ApplicationModel::Core::IFrameworkView viewProvider; - check_hresult(static_cast(static_cast(*this))->abi_CreateView(put(viewProvider))); - return viewProvider; -} - -template hstring impl_ICoreApplication::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template event_token impl_ICoreApplication::Suspending(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Suspending(get(handler), &token)); - return token; -} - -template event_revoker impl_ICoreApplication::Suspending(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Core::ICoreApplication::remove_Suspending, Suspending(handler)); -} - -template void impl_ICoreApplication::Suspending(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Suspending(token)); -} - -template event_token impl_ICoreApplication::Resuming(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Resuming(get(handler), &token)); - return token; -} - -template event_revoker impl_ICoreApplication::Resuming(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Core::ICoreApplication::remove_Resuming, Resuming(handler)); -} - -template void impl_ICoreApplication::Resuming(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Resuming(token)); -} - -template Windows::Foundation::Collections::IPropertySet impl_ICoreApplication::Properties() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::ApplicationModel::Core::CoreApplicationView impl_ICoreApplication::GetCurrentView() const -{ - Windows::ApplicationModel::Core::CoreApplicationView value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentView(put(value))); - return value; -} - -template void impl_ICoreApplication::Run(const Windows::ApplicationModel::Core::IFrameworkViewSource & viewSource) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Run(get(viewSource))); -} - -template void impl_ICoreApplication::RunWithActivationFactories(const Windows::Foundation::IGetActivationFactory & activationFactoryCallback) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RunWithActivationFactories(get(activationFactoryCallback))); -} - -template void impl_ICoreApplicationUseCount::IncrementApplicationUseCount() const -{ - check_hresult(static_cast(static_cast(*this))->abi_IncrementApplicationUseCount()); -} - -template void impl_ICoreApplicationUseCount::DecrementApplicationUseCount() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DecrementApplicationUseCount()); -} - -template void impl_ICoreApplicationExit::Exit() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Exit()); -} - -template event_token impl_ICoreApplicationExit::Exiting(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Exiting(get(handler), &token)); - return token; -} - -template event_revoker impl_ICoreApplicationExit::Exiting(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Core::ICoreApplicationExit::remove_Exiting, Exiting(handler)); -} - -template void impl_ICoreApplicationExit::Exiting(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Exiting(token)); -} - -template event_token impl_ICoreApplication2::BackgroundActivated(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BackgroundActivated(get(handler), &token)); - return token; -} - -template event_revoker impl_ICoreApplication2::BackgroundActivated(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Core::ICoreApplication2::remove_BackgroundActivated, BackgroundActivated(handler)); -} - -template void impl_ICoreApplication2::BackgroundActivated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BackgroundActivated(token)); -} - -template event_token impl_ICoreApplication2::LeavingBackground(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LeavingBackground(get(handler), &token)); - return token; -} - -template event_revoker impl_ICoreApplication2::LeavingBackground(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Core::ICoreApplication2::remove_LeavingBackground, LeavingBackground(handler)); -} - -template void impl_ICoreApplication2::LeavingBackground(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LeavingBackground(token)); -} - -template event_token impl_ICoreApplication2::EnteredBackground(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnteredBackground(get(handler), &token)); - return token; -} - -template event_revoker impl_ICoreApplication2::EnteredBackground(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Core::ICoreApplication2::remove_EnteredBackground, EnteredBackground(handler)); -} - -template void impl_ICoreApplication2::EnteredBackground(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnteredBackground(token)); -} - -template void impl_ICoreApplication2::EnablePrelaunch(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnablePrelaunch(value)); -} - -template Windows::Foundation::Collections::IVectorView impl_ICoreImmersiveApplication::Views() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Views(put(value))); - return value; -} - -template Windows::ApplicationModel::Core::CoreApplicationView impl_ICoreImmersiveApplication::CreateNewView(hstring_ref runtimeType, hstring_ref entryPoint) const -{ - Windows::ApplicationModel::Core::CoreApplicationView view { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateNewView(get(runtimeType), get(entryPoint), put(view))); - return view; -} - -template Windows::ApplicationModel::Core::CoreApplicationView impl_ICoreImmersiveApplication::MainView() const -{ - Windows::ApplicationModel::Core::CoreApplicationView value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MainView(put(value))); - return value; -} - -template Windows::ApplicationModel::Core::CoreApplicationView impl_ICoreImmersiveApplication2::CreateNewView() const -{ - Windows::ApplicationModel::Core::CoreApplicationView view { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateNewViewFromMainView(put(view))); - return view; -} - -template Windows::ApplicationModel::Core::CoreApplicationView impl_ICoreImmersiveApplication3::CreateNewView(const Windows::ApplicationModel::Core::IFrameworkViewSource & viewSource) const -{ - Windows::ApplicationModel::Core::CoreApplicationView view { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateNewViewWithViewSource(get(viewSource), put(view))); - return view; -} - -template event_token impl_ICoreApplicationUnhandledError::UnhandledErrorDetected(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UnhandledErrorDetected(get(handler), &token)); - return token; -} - -template event_revoker impl_ICoreApplicationUnhandledError::UnhandledErrorDetected(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Core::ICoreApplicationUnhandledError::remove_UnhandledErrorDetected, UnhandledErrorDetected(handler)); -} - -template void impl_ICoreApplicationUnhandledError::UnhandledErrorDetected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UnhandledErrorDetected(token)); -} - -template Windows::UI::Core::CoreWindow impl_ICoreApplicationView::CoreWindow() const -{ - Windows::UI::Core::CoreWindow value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CoreWindow(put(value))); - return value; -} - -template event_token impl_ICoreApplicationView::Activated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Activated(get(handler), &token)); - return token; -} - -template event_revoker impl_ICoreApplicationView::Activated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Core::ICoreApplicationView::remove_Activated, Activated(handler)); -} - -template void impl_ICoreApplicationView::Activated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Activated(token)); -} - -template bool impl_ICoreApplicationView::IsMain() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMain(&value)); - return value; -} - -template bool impl_ICoreApplicationView::IsHosted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsHosted(&value)); - return value; -} - -template Windows::UI::Core::CoreDispatcher impl_ICoreApplicationView2::Dispatcher() const -{ - Windows::UI::Core::CoreDispatcher value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Dispatcher(put(value))); - return value; -} - -template bool impl_ICoreApplicationView3::IsComponent() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsComponent(&value)); - return value; -} - -template Windows::ApplicationModel::Core::CoreApplicationViewTitleBar impl_ICoreApplicationView3::TitleBar() const -{ - Windows::ApplicationModel::Core::CoreApplicationViewTitleBar value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TitleBar(put(value))); - return value; -} - -template event_token impl_ICoreApplicationView3::HostedViewClosing(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_HostedViewClosing(get(handler), &token)); - return token; -} - -template event_revoker impl_ICoreApplicationView3::HostedViewClosing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Core::ICoreApplicationView3::remove_HostedViewClosing, HostedViewClosing(handler)); -} - -template void impl_ICoreApplicationView3::HostedViewClosing(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HostedViewClosing(token)); -} - -template Windows::Foundation::Deferral impl_IHostedViewClosingEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -template void impl_ICoreApplicationViewTitleBar::ExtendViewIntoTitleBar(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExtendViewIntoTitleBar(value)); -} - -template bool impl_ICoreApplicationViewTitleBar::ExtendViewIntoTitleBar() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendViewIntoTitleBar(&value)); - return value; -} - -template double impl_ICoreApplicationViewTitleBar::SystemOverlayLeftInset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_SystemOverlayLeftInset(&value)); - return value; -} - -template double impl_ICoreApplicationViewTitleBar::SystemOverlayRightInset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_SystemOverlayRightInset(&value)); - return value; -} - -template double impl_ICoreApplicationViewTitleBar::Height() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(&value)); - return value; -} - -template event_token impl_ICoreApplicationViewTitleBar::LayoutMetricsChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LayoutMetricsChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ICoreApplicationViewTitleBar::LayoutMetricsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Core::ICoreApplicationViewTitleBar::remove_LayoutMetricsChanged, LayoutMetricsChanged(handler)); -} - -template void impl_ICoreApplicationViewTitleBar::LayoutMetricsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LayoutMetricsChanged(token)); -} - -template bool impl_ICoreApplicationViewTitleBar::IsVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVisible(&value)); - return value; -} - -template event_token impl_ICoreApplicationViewTitleBar::IsVisibleChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_IsVisibleChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ICoreApplicationViewTitleBar::IsVisibleChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Core::ICoreApplicationViewTitleBar::remove_IsVisibleChanged, IsVisibleChanged(handler)); -} - -template void impl_ICoreApplicationViewTitleBar::IsVisibleChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_IsVisibleChanged(token)); -} - -template Windows::ApplicationModel::Core::UnhandledError impl_IUnhandledErrorDetectedEventArgs::UnhandledError() const -{ - Windows::ApplicationModel::Core::UnhandledError value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UnhandledError(put(value))); - return value; -} - -template bool impl_IUnhandledError::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IUnhandledError::Propagate() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Propagate()); -} - -inline hstring CoreApplication::Id() -{ - return get_activation_factory().Id(); -} - -inline event_token CoreApplication::Suspending(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().Suspending(handler); -} - -inline factory_event_revoker CoreApplication::Suspending(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::ApplicationModel::Core::ICoreApplication::remove_Suspending, factory.Suspending(handler) }; -} - -inline void CoreApplication::Suspending(event_token token) -{ - get_activation_factory().Suspending(token); -} - -inline event_token CoreApplication::Resuming(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().Resuming(handler); -} - -inline factory_event_revoker CoreApplication::Resuming(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::ApplicationModel::Core::ICoreApplication::remove_Resuming, factory.Resuming(handler) }; -} - -inline void CoreApplication::Resuming(event_token token) -{ - get_activation_factory().Resuming(token); -} - -inline Windows::Foundation::Collections::IPropertySet CoreApplication::Properties() -{ - return get_activation_factory().Properties(); -} - -inline Windows::ApplicationModel::Core::CoreApplicationView CoreApplication::GetCurrentView() -{ - return get_activation_factory().GetCurrentView(); -} - -inline void CoreApplication::Run(const Windows::ApplicationModel::Core::IFrameworkViewSource & viewSource) -{ - get_activation_factory().Run(viewSource); -} - -inline void CoreApplication::RunWithActivationFactories(const Windows::Foundation::IGetActivationFactory & activationFactoryCallback) -{ - get_activation_factory().RunWithActivationFactories(activationFactoryCallback); -} - -inline event_token CoreApplication::BackgroundActivated(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().BackgroundActivated(handler); -} - -inline factory_event_revoker CoreApplication::BackgroundActivated(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::ApplicationModel::Core::ICoreApplication2::remove_BackgroundActivated, factory.BackgroundActivated(handler) }; -} - -inline void CoreApplication::BackgroundActivated(event_token token) -{ - get_activation_factory().BackgroundActivated(token); -} - -inline event_token CoreApplication::LeavingBackground(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().LeavingBackground(handler); -} - -inline factory_event_revoker CoreApplication::LeavingBackground(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::ApplicationModel::Core::ICoreApplication2::remove_LeavingBackground, factory.LeavingBackground(handler) }; -} - -inline void CoreApplication::LeavingBackground(event_token token) -{ - get_activation_factory().LeavingBackground(token); -} - -inline event_token CoreApplication::EnteredBackground(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().EnteredBackground(handler); -} - -inline factory_event_revoker CoreApplication::EnteredBackground(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::ApplicationModel::Core::ICoreApplication2::remove_EnteredBackground, factory.EnteredBackground(handler) }; -} - -inline void CoreApplication::EnteredBackground(event_token token) -{ - get_activation_factory().EnteredBackground(token); -} - -inline void CoreApplication::EnablePrelaunch(bool value) -{ - get_activation_factory().EnablePrelaunch(value); -} - -inline void CoreApplication::Exit() -{ - get_activation_factory().Exit(); -} - -inline event_token CoreApplication::Exiting(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().Exiting(handler); -} - -inline factory_event_revoker CoreApplication::Exiting(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::ApplicationModel::Core::ICoreApplicationExit::remove_Exiting, factory.Exiting(handler) }; -} - -inline void CoreApplication::Exiting(event_token token) -{ - get_activation_factory().Exiting(token); -} - -inline event_token CoreApplication::UnhandledErrorDetected(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().UnhandledErrorDetected(handler); -} - -inline factory_event_revoker CoreApplication::UnhandledErrorDetected(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::ApplicationModel::Core::ICoreApplicationUnhandledError::remove_UnhandledErrorDetected, factory.UnhandledErrorDetected(handler) }; -} - -inline void CoreApplication::UnhandledErrorDetected(event_token token) -{ - get_activation_factory().UnhandledErrorDetected(token); -} - -inline void CoreApplication::IncrementApplicationUseCount() -{ - get_activation_factory().IncrementApplicationUseCount(); -} - -inline void CoreApplication::DecrementApplicationUseCount() -{ - get_activation_factory().DecrementApplicationUseCount(); -} - -inline Windows::Foundation::Collections::IVectorView CoreApplication::Views() -{ - return get_activation_factory().Views(); -} - -inline Windows::ApplicationModel::Core::CoreApplicationView CoreApplication::CreateNewView(hstring_ref runtimeType, hstring_ref entryPoint) -{ - return get_activation_factory().CreateNewView(runtimeType, entryPoint); -} - -inline Windows::ApplicationModel::Core::CoreApplicationView CoreApplication::MainView() -{ - return get_activation_factory().MainView(); -} - -inline Windows::ApplicationModel::Core::CoreApplicationView CoreApplication::CreateNewView() -{ - return get_activation_factory().CreateNewView(); -} - -inline Windows::ApplicationModel::Core::CoreApplicationView CoreApplication::CreateNewView(const Windows::ApplicationModel::Core::IFrameworkViewSource & viewSource) -{ - return get_activation_factory().CreateNewView(viewSource); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.DragDrop.Core.h b/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.DragDrop.Core.h deleted file mode 100644 index d661a692b..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.DragDrop.Core.h +++ /dev/null @@ -1,732 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.ApplicationModel.DataTransfer.3.h" -#include "internal/Windows.ApplicationModel.DataTransfer.DragDrop.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Graphics.Imaging.3.h" -#include "internal/Windows.ApplicationModel.DataTransfer.DragDrop.Core.3.h" -#include "Windows.ApplicationModel.DataTransfer.DragDrop.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall add_TargetRequested(abi_arg_in> value, event_token * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TargetRequested(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TargetRequested(event_token value) noexcept override - { - try - { - this->shim().TargetRequested(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AreConcurrentOperationsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AreConcurrentOperationsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AreConcurrentOperationsEnabled(bool value) noexcept override - { - try - { - this->shim().AreConcurrentOperationsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Modifiers(Windows::ApplicationModel::DataTransfer::DragDrop::DragDropModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().Modifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllowedOperations(Windows::ApplicationModel::DataTransfer::DataPackageOperation * value) noexcept override - { - try - { - *value = detach(this->shim().AllowedOperations()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPointerId(uint32_t pointerId) noexcept override - { - try - { - this->shim().SetPointerId(pointerId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDragUIContentFromSoftwareBitmap(abi_arg_in softwareBitmap) noexcept override - { - try - { - this->shim().SetDragUIContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDragUIContentFromSoftwareBitmapWithAnchorPoint(abi_arg_in softwareBitmap, abi_arg_in anchorPoint) noexcept override - { - try - { - this->shim().SetDragUIContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap), *reinterpret_cast(&anchorPoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragUIContentMode(Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIContentMode * value) noexcept override - { - try - { - *value = detach(this->shim().DragUIContentMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DragUIContentMode(Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIContentMode value) noexcept override - { - try - { - this->shim().DragUIContentMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().StartAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllowedOperations(Windows::ApplicationModel::DataTransfer::DataPackageOperation * value) noexcept override - { - try - { - *value = detach(this->shim().AllowedOperations()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowedOperations(Windows::ApplicationModel::DataTransfer::DataPackageOperation value) noexcept override - { - try - { - this->shim().AllowedOperations(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetContentFromSoftwareBitmap(abi_arg_in softwareBitmap) noexcept override - { - try - { - this->shim().SetContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetContentFromSoftwareBitmapWithAnchorPoint(abi_arg_in softwareBitmap, abi_arg_in anchorPoint) noexcept override - { - try - { - this->shim().SetContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap), *reinterpret_cast(&anchorPoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsContentVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsContentVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsContentVisible(bool value) noexcept override - { - try - { - this->shim().IsContentVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Caption(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Caption()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Caption(abi_arg_in value) noexcept override - { - try - { - this->shim().Caption(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCaptionVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCaptionVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsCaptionVisible(bool value) noexcept override - { - try - { - this->shim().IsCaptionVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGlyphVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGlyphVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsGlyphVisible(bool value) noexcept override - { - try - { - this->shim().IsGlyphVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_EnterAsync(abi_arg_in dragInfo, abi_arg_in dragUIOverride, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().EnterAsync(*reinterpret_cast(&dragInfo), *reinterpret_cast(&dragUIOverride))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OverAsync(abi_arg_in dragInfo, abi_arg_in dragUIOverride, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().OverAsync(*reinterpret_cast(&dragInfo), *reinterpret_cast(&dragUIOverride))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LeaveAsync(abi_arg_in dragInfo, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().LeaveAsync(*reinterpret_cast(&dragInfo))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DropAsync(abi_arg_in dragInfo, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().DropAsync(*reinterpret_cast(&dragInfo))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetTarget(abi_arg_in target) noexcept override - { - try - { - this->shim().SetTarget(*reinterpret_cast(&target)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::DataTransfer::DragDrop::Core { - -template Windows::ApplicationModel::DataTransfer::DataPackageView impl_ICoreDragInfo::Data() const -{ - Windows::ApplicationModel::DataTransfer::DataPackageView value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DragDrop::DragDropModifiers impl_ICoreDragInfo::Modifiers() const -{ - Windows::ApplicationModel::DataTransfer::DragDrop::DragDropModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_Modifiers(&value)); - return value; -} - -template Windows::Foundation::Point impl_ICoreDragInfo::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataPackageOperation impl_ICoreDragInfo2::AllowedOperations() const -{ - Windows::ApplicationModel::DataTransfer::DataPackageOperation value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowedOperations(&value)); - return value; -} - -template void impl_ICoreDragUIOverride::SetContentFromSoftwareBitmap(const Windows::Graphics::Imaging::SoftwareBitmap & softwareBitmap) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetContentFromSoftwareBitmap(get(softwareBitmap))); -} - -template void impl_ICoreDragUIOverride::SetContentFromSoftwareBitmap(const Windows::Graphics::Imaging::SoftwareBitmap & softwareBitmap, const Windows::Foundation::Point & anchorPoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetContentFromSoftwareBitmapWithAnchorPoint(get(softwareBitmap), get(anchorPoint))); -} - -template bool impl_ICoreDragUIOverride::IsContentVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsContentVisible(&value)); - return value; -} - -template void impl_ICoreDragUIOverride::IsContentVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsContentVisible(value)); -} - -template hstring impl_ICoreDragUIOverride::Caption() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Caption(put(value))); - return value; -} - -template void impl_ICoreDragUIOverride::Caption(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Caption(get(value))); -} - -template bool impl_ICoreDragUIOverride::IsCaptionVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCaptionVisible(&value)); - return value; -} - -template void impl_ICoreDragUIOverride::IsCaptionVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsCaptionVisible(value)); -} - -template bool impl_ICoreDragUIOverride::IsGlyphVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsGlyphVisible(&value)); - return value; -} - -template void impl_ICoreDragUIOverride::IsGlyphVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsGlyphVisible(value)); -} - -template void impl_ICoreDragUIOverride::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template Windows::Foundation::IAsyncOperation impl_ICoreDropOperationTarget::EnterAsync(const Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo & dragInfo, const Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride & dragUIOverride) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_EnterAsync(get(dragInfo), get(dragUIOverride), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_ICoreDropOperationTarget::OverAsync(const Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo & dragInfo, const Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride & dragUIOverride) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_OverAsync(get(dragInfo), get(dragUIOverride), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncAction impl_ICoreDropOperationTarget::LeaveAsync(const Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo & dragInfo) const -{ - Windows::Foundation::IAsyncAction returnValue; - check_hresult(static_cast(static_cast(*this))->abi_LeaveAsync(get(dragInfo), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_ICoreDropOperationTarget::DropAsync(const Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo & dragInfo) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_DropAsync(get(dragInfo), put(returnValue))); - return returnValue; -} - -template Windows::ApplicationModel::DataTransfer::DataPackage impl_ICoreDragOperation::Data() const -{ - Windows::ApplicationModel::DataTransfer::DataPackage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template void impl_ICoreDragOperation::SetPointerId(uint32_t pointerId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPointerId(pointerId)); -} - -template void impl_ICoreDragOperation::SetDragUIContentFromSoftwareBitmap(const Windows::Graphics::Imaging::SoftwareBitmap & softwareBitmap) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDragUIContentFromSoftwareBitmap(get(softwareBitmap))); -} - -template void impl_ICoreDragOperation::SetDragUIContentFromSoftwareBitmap(const Windows::Graphics::Imaging::SoftwareBitmap & softwareBitmap, const Windows::Foundation::Point & anchorPoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDragUIContentFromSoftwareBitmapWithAnchorPoint(get(softwareBitmap), get(anchorPoint))); -} - -template Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIContentMode impl_ICoreDragOperation::DragUIContentMode() const -{ - Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIContentMode value {}; - check_hresult(static_cast(static_cast(*this))->get_DragUIContentMode(&value)); - return value; -} - -template void impl_ICoreDragOperation::DragUIContentMode(Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIContentMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DragUIContentMode(value)); -} - -template Windows::Foundation::IAsyncOperation impl_ICoreDragOperation::StartAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_StartAsync(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataPackageOperation impl_ICoreDragOperation2::AllowedOperations() const -{ - Windows::ApplicationModel::DataTransfer::DataPackageOperation value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowedOperations(&value)); - return value; -} - -template void impl_ICoreDragOperation2::AllowedOperations(Windows::ApplicationModel::DataTransfer::DataPackageOperation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowedOperations(value)); -} - -template Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager impl_ICoreDragDropManagerStatics::GetForCurrentView() const -{ - Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(value))); - return value; -} - -template event_token impl_ICoreDragDropManager::TargetRequested(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token returnValue {}; - check_hresult(static_cast(static_cast(*this))->add_TargetRequested(get(value), &returnValue)); - return returnValue; -} - -template event_revoker impl_ICoreDragDropManager::TargetRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragDropManager::remove_TargetRequested, TargetRequested(value)); -} - -template void impl_ICoreDragDropManager::TargetRequested(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TargetRequested(value)); -} - -template bool impl_ICoreDragDropManager::AreConcurrentOperationsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AreConcurrentOperationsEnabled(&value)); - return value; -} - -template void impl_ICoreDragDropManager::AreConcurrentOperationsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AreConcurrentOperationsEnabled(value)); -} - -template void impl_ICoreDropOperationTargetRequestedEventArgs::SetTarget(const Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDropOperationTarget & target) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetTarget(get(target))); -} - -inline Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager CoreDragDropManager::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline CoreDragOperation::CoreDragOperation() : - CoreDragOperation(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.DragDrop.h b/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.DragDrop.h deleted file mode 100644 index 2fec6d2c6..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.DragDrop.h +++ /dev/null @@ -1,15 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.ApplicationModel.DataTransfer.DragDrop.3.h" -#include "Windows.ApplicationModel.DataTransfer.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.ShareTarget.h b/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.ShareTarget.h deleted file mode 100644 index 90c73a108..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.ShareTarget.h +++ /dev/null @@ -1,383 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.DataTransfer.3.h" -#include "internal/Windows.ApplicationModel.DataTransfer.ShareTarget.3.h" -#include "Windows.ApplicationModel.DataTransfer.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbnail(abi_arg_in value) noexcept override - { - try - { - this->shim().Thumbnail(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Id(abi_arg_in value) noexcept override - { - try - { - this->shim().Id(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedDataFormats(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedDataFormats()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedFileTypes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedFileTypes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QuickLinkId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QuickLinkId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveThisQuickLink() noexcept override - { - try - { - this->shim().RemoveThisQuickLink(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportStarted() noexcept override - { - try - { - this->shim().ReportStarted(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportDataRetrieved() noexcept override - { - try - { - this->shim().ReportDataRetrieved(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportSubmittedBackgroundTask() noexcept override - { - try - { - this->shim().ReportSubmittedBackgroundTask(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedWithQuickLink(abi_arg_in quicklink) noexcept override - { - try - { - this->shim().ReportCompleted(*reinterpret_cast(&quicklink)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompleted() noexcept override - { - try - { - this->shim().ReportCompleted(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportError(abi_arg_in value) noexcept override - { - try - { - this->shim().ReportError(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_DismissUI() noexcept override - { - try - { - this->shim().DismissUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::DataTransfer::ShareTarget { - -template hstring impl_IQuickLink::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IQuickLink::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template Windows::Storage::Streams::RandomAccessStreamReference impl_IQuickLink::Thumbnail() const -{ - Windows::Storage::Streams::RandomAccessStreamReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template void impl_IQuickLink::Thumbnail(const Windows::Storage::Streams::RandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbnail(get(value))); -} - -template hstring impl_IQuickLink::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template void impl_IQuickLink::Id(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Id(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IQuickLink::SupportedDataFormats() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SupportedDataFormats(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IQuickLink::SupportedFileTypes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SupportedFileTypes(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataPackageView impl_IShareOperation::Data() const -{ - Windows::ApplicationModel::DataTransfer::DataPackageView value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template hstring impl_IShareOperation::QuickLinkId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QuickLinkId(put(value))); - return value; -} - -template void impl_IShareOperation::RemoveThisQuickLink() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveThisQuickLink()); -} - -template void impl_IShareOperation::ReportStarted() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportStarted()); -} - -template void impl_IShareOperation::ReportDataRetrieved() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportDataRetrieved()); -} - -template void impl_IShareOperation::ReportSubmittedBackgroundTask() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportSubmittedBackgroundTask()); -} - -template void impl_IShareOperation::ReportCompleted(const Windows::ApplicationModel::DataTransfer::ShareTarget::QuickLink & quicklink) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedWithQuickLink(get(quicklink))); -} - -template void impl_IShareOperation::ReportCompleted() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompleted()); -} - -template void impl_IShareOperation::ReportError(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportError(get(value))); -} - -template void impl_IShareOperation2::DismissUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DismissUI()); -} - -inline QuickLink::QuickLink() : - QuickLink(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.h b/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.h deleted file mode 100644 index dcd73cda7..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.DataTransfer.h +++ /dev/null @@ -1,2605 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Security.EnterpriseData.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.ApplicationModel.DataTransfer.3.h" -#include "Windows.ApplicationModel.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::ApplicationModel::DataTransfer { - -template DataProviderHandler::DataProviderHandler(L lambda) : - DataProviderHandler(impl::make_delegate, DataProviderHandler>(std::forward(lambda))) -{} - -template DataProviderHandler::DataProviderHandler(F * function) : - DataProviderHandler([=](auto && ... args) { function(args ...); }) -{} - -template DataProviderHandler::DataProviderHandler(O * object, M method) : - DataProviderHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void DataProviderHandler::operator()(const Windows::ApplicationModel::DataTransfer::DataProviderRequest & request) const -{ - check_hresult((*this)->abi_Invoke(get(request))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetContent(abi_arg_out content) noexcept override - { - try - { - *content = detach(this->shim().GetContent()); - return S_OK; - } - catch (...) - { - *content = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetContent(abi_arg_in content) noexcept override - { - try - { - this->shim().SetContent(*reinterpret_cast(&content)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Flush() noexcept override - { - try - { - this->shim().Flush(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContentChanged(abi_arg_in> changeHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ContentChanged(*reinterpret_cast *>(&changeHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContentChanged(event_token token) noexcept override - { - try - { - this->shim().ContentChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequestedOperation(Windows::ApplicationModel::DataTransfer::DataPackageOperation * value) noexcept override - { - try - { - *value = detach(this->shim().RequestedOperation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RequestedOperation(Windows::ApplicationModel::DataTransfer::DataPackageOperation value) noexcept override - { - try - { - this->shim().RequestedOperation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_OperationCompleted(abi_arg_in> handler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().OperationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_OperationCompleted(event_token eventCookie) noexcept override - { - try - { - this->shim().OperationCompleted(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Destroyed(abi_arg_in> handler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().Destroyed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Destroyed(event_token eventCookie) noexcept override - { - try - { - this->shim().Destroyed(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetData(abi_arg_in formatId, abi_arg_in value) noexcept override - { - try - { - this->shim().SetData(*reinterpret_cast(&formatId), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDataProvider(abi_arg_in formatId, abi_arg_in delayRenderer) noexcept override - { - try - { - this->shim().SetDataProvider(*reinterpret_cast(&formatId), *reinterpret_cast(&delayRenderer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetText(abi_arg_in value) noexcept override - { - try - { - this->shim().SetText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetUri(abi_arg_in value) noexcept override - { - try - { - this->shim().SetUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetHtmlFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().SetHtmlFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceMap(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ResourceMap()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRtf(abi_arg_in value) noexcept override - { - try - { - this->shim().SetRtf(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetBitmap(abi_arg_in value) noexcept override - { - try - { - this->shim().SetBitmap(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetStorageItemsReadOnly(abi_arg_in> value) noexcept override - { - try - { - this->shim().SetStorageItems(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetStorageItems(abi_arg_in> value, bool readOnly) noexcept override - { - try - { - this->shim().SetStorageItems(*reinterpret_cast *>(&value), readOnly); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetApplicationLink(abi_arg_in value) noexcept override - { - try - { - this->shim().SetApplicationLink(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetWebLink(abi_arg_in value) noexcept override - { - try - { - this->shim().SetWebLink(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbnail(abi_arg_in value) noexcept override - { - try - { - this->shim().Thumbnail(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FileTypes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FileTypes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApplicationName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ApplicationName(abi_arg_in value) noexcept override - { - try - { - this->shim().ApplicationName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApplicationListingUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationListingUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ApplicationListingUri(abi_arg_in value) noexcept override - { - try - { - this->shim().ApplicationListingUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentSourceWebLink(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentSourceWebLink()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentSourceWebLink(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentSourceWebLink(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentSourceApplicationLink(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentSourceApplicationLink()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentSourceApplicationLink(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentSourceApplicationLink(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PackageFamilyName(abi_arg_in value) noexcept override - { - try - { - this->shim().PackageFamilyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Square30x30Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Square30x30Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Square30x30Logo(abi_arg_in value) noexcept override - { - try - { - this->shim().Square30x30Logo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LogoBackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LogoBackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LogoBackgroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().LogoBackgroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnterpriseId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EnterpriseId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EnterpriseId(abi_arg_in value) noexcept override - { - try - { - this->shim().EnterpriseId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FileTypes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FileTypes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApplicationName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApplicationListingUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationListingUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentSourceWebLink(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentSourceWebLink()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentSourceApplicationLink(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentSourceApplicationLink()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Square30x30Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Square30x30Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LogoBackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LogoBackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnterpriseId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EnterpriseId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequestedOperation(Windows::ApplicationModel::DataTransfer::DataPackageOperation * value) noexcept override - { - try - { - *value = detach(this->shim().RequestedOperation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportOperationCompleted(Windows::ApplicationModel::DataTransfer::DataPackageOperation value) noexcept override - { - try - { - this->shim().ReportOperationCompleted(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AvailableFormats(abi_arg_out> formatIds) noexcept override - { - try - { - *formatIds = detach(this->shim().AvailableFormats()); - return S_OK; - } - catch (...) - { - *formatIds = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Contains(abi_arg_in formatId, bool * value) noexcept override - { - try - { - *value = detach(this->shim().Contains(*reinterpret_cast(&formatId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDataAsync(abi_arg_in formatId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDataAsync(*reinterpret_cast(&formatId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTextAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetTextAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCustomTextAsync(abi_arg_in formatId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetTextAsync(*reinterpret_cast(&formatId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUriAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetUriAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHtmlFormatAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetHtmlFormatAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetResourceMapAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetResourceMapAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRtfAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetRtfAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBitmapAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetBitmapAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStorageItemsAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetStorageItemsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetApplicationLinkAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetApplicationLinkAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetWebLinkAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetWebLinkAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessWithEnterpriseIdAsync(abi_arg_in enterpriseId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestAccessAsync(*reinterpret_cast(&enterpriseId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnlockAndAssumeEnterpriseIdentity(Windows::Security::EnterpriseData::ProtectionPolicyEvaluationResult * result) noexcept override - { - try - { - *result = detach(this->shim().UnlockAndAssumeEnterpriseIdentity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetAcceptedFormatId(abi_arg_in formatId) noexcept override - { - try - { - this->shim().SetAcceptedFormatId(*reinterpret_cast(&formatId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FormatId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormatId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetData(abi_arg_in value) noexcept override - { - try - { - this->shim().SetData(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Data(abi_arg_in value) noexcept override - { - try - { - this->shim().Data(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FailWithDisplayText(abi_arg_in value) noexcept override - { - try - { - this->shim().FailWithDisplayText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_DataRequested(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().DataRequested(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DataRequested(event_token eventCookie) noexcept override - { - try - { - this->shim().DataRequested(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TargetApplicationChosen(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().TargetApplicationChosen(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TargetApplicationChosen(event_token eventCookie) noexcept override - { - try - { - this->shim().TargetApplicationChosen(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowShareUI() noexcept override - { - try - { - this->shim().ShowShareUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetStaticFragment(abi_arg_in htmlFormat, abi_arg_out htmlFragment) noexcept override - { - try - { - *htmlFragment = detach(this->shim().GetStaticFragment(*reinterpret_cast(&htmlFormat))); - return S_OK; - } - catch (...) - { - *htmlFragment = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateHtmlFormat(abi_arg_in htmlFragment, abi_arg_out htmlFormat) noexcept override - { - try - { - *htmlFormat = detach(this->shim().CreateHtmlFormat(*reinterpret_cast(&htmlFragment))); - return S_OK; - } - catch (...) - { - *htmlFormat = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Operation(Windows::ApplicationModel::DataTransfer::DataPackageOperation * value) noexcept override - { - try - { - *value = detach(this->shim().Operation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AcceptedFormatId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AcceptedFormatId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddFile(abi_arg_in file, abi_arg_out outToken) noexcept override - { - try - { - *outToken = detach(this->shim().AddFile(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *outToken = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RedeemTokenForFileAsync(abi_arg_in token, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RedeemTokenForFileAsync(*reinterpret_cast(&token))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveFile(abi_arg_in token) noexcept override - { - try - { - this->shim().RemoveFile(*reinterpret_cast(&token)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Html(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Html()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rtf(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Rtf()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bitmap(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bitmap()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StorageItems(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StorageItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WebLink(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WebLink()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApplicationLink(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationLink()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ApplicationName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::DataTransfer { - -template hstring impl_IStandardDataFormatsStatics::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template hstring impl_IStandardDataFormatsStatics::Uri() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template hstring impl_IStandardDataFormatsStatics::Html() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Html(put(value))); - return value; -} - -template hstring impl_IStandardDataFormatsStatics::Rtf() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Rtf(put(value))); - return value; -} - -template hstring impl_IStandardDataFormatsStatics::Bitmap() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Bitmap(put(value))); - return value; -} - -template hstring impl_IStandardDataFormatsStatics::StorageItems() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StorageItems(put(value))); - return value; -} - -template hstring impl_IStandardDataFormatsStatics2::WebLink() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WebLink(put(value))); - return value; -} - -template hstring impl_IStandardDataFormatsStatics2::ApplicationLink() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ApplicationLink(put(value))); - return value; -} - -template hstring impl_IDataPackagePropertySetView::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template hstring impl_IDataPackagePropertySetView::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template Windows::Storage::Streams::RandomAccessStreamReference impl_IDataPackagePropertySetView::Thumbnail() const -{ - Windows::Storage::Streams::RandomAccessStreamReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IDataPackagePropertySetView::FileTypes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_FileTypes(put(value))); - return value; -} - -template hstring impl_IDataPackagePropertySetView::ApplicationName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ApplicationName(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IDataPackagePropertySetView::ApplicationListingUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ApplicationListingUri(put(value))); - return value; -} - -template hstring impl_IDataPackagePropertySetView2::PackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PackageFamilyName(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IDataPackagePropertySetView2::ContentSourceWebLink() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentSourceWebLink(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IDataPackagePropertySetView2::ContentSourceApplicationLink() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentSourceApplicationLink(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IDataPackagePropertySetView2::Square30x30Logo() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Square30x30Logo(put(value))); - return value; -} - -template Windows::UI::Color impl_IDataPackagePropertySetView2::LogoBackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_LogoBackgroundColor(put(value))); - return value; -} - -template hstring impl_IDataPackagePropertySetView3::EnterpriseId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EnterpriseId(put(value))); - return value; -} - -template hstring impl_IDataPackagePropertySet::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IDataPackagePropertySet::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template hstring impl_IDataPackagePropertySet::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IDataPackagePropertySet::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IDataPackagePropertySet::Thumbnail() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template void impl_IDataPackagePropertySet::Thumbnail(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbnail(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IDataPackagePropertySet::FileTypes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_FileTypes(put(value))); - return value; -} - -template hstring impl_IDataPackagePropertySet::ApplicationName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ApplicationName(put(value))); - return value; -} - -template void impl_IDataPackagePropertySet::ApplicationName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ApplicationName(get(value))); -} - -template Windows::Foundation::Uri impl_IDataPackagePropertySet::ApplicationListingUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ApplicationListingUri(put(value))); - return value; -} - -template void impl_IDataPackagePropertySet::ApplicationListingUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ApplicationListingUri(get(value))); -} - -template Windows::Foundation::Uri impl_IDataPackagePropertySet2::ContentSourceWebLink() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentSourceWebLink(put(value))); - return value; -} - -template void impl_IDataPackagePropertySet2::ContentSourceWebLink(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentSourceWebLink(get(value))); -} - -template Windows::Foundation::Uri impl_IDataPackagePropertySet2::ContentSourceApplicationLink() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentSourceApplicationLink(put(value))); - return value; -} - -template void impl_IDataPackagePropertySet2::ContentSourceApplicationLink(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentSourceApplicationLink(get(value))); -} - -template hstring impl_IDataPackagePropertySet2::PackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PackageFamilyName(put(value))); - return value; -} - -template void impl_IDataPackagePropertySet2::PackageFamilyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PackageFamilyName(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IDataPackagePropertySet2::Square30x30Logo() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Square30x30Logo(put(value))); - return value; -} - -template void impl_IDataPackagePropertySet2::Square30x30Logo(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Square30x30Logo(get(value))); -} - -template Windows::UI::Color impl_IDataPackagePropertySet2::LogoBackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_LogoBackgroundColor(put(value))); - return value; -} - -template void impl_IDataPackagePropertySet2::LogoBackgroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LogoBackgroundColor(get(value))); -} - -template hstring impl_IDataPackagePropertySet3::EnterpriseId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EnterpriseId(put(value))); - return value; -} - -template void impl_IDataPackagePropertySet3::EnterpriseId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EnterpriseId(get(value))); -} - -template void impl_IDataProviderDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template hstring impl_IDataProviderRequest::FormatId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FormatId(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IDataProviderRequest::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataProviderDeferral impl_IDataProviderRequest::GetDeferral() const -{ - Windows::ApplicationModel::DataTransfer::DataProviderDeferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template void impl_IDataProviderRequest::SetData(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetData(get(value))); -} - -template Windows::ApplicationModel::DataTransfer::DataPackageOperation impl_IOperationCompletedEventArgs::Operation() const -{ - Windows::ApplicationModel::DataTransfer::DataPackageOperation value {}; - check_hresult(static_cast(static_cast(*this))->get_Operation(&value)); - return value; -} - -template hstring impl_IOperationCompletedEventArgs2::AcceptedFormatId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AcceptedFormatId(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataPackagePropertySetView impl_IDataPackageView::Properties() const -{ - Windows::ApplicationModel::DataTransfer::DataPackagePropertySetView value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataPackageOperation impl_IDataPackageView::RequestedOperation() const -{ - Windows::ApplicationModel::DataTransfer::DataPackageOperation value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestedOperation(&value)); - return value; -} - -template void impl_IDataPackageView::ReportOperationCompleted(Windows::ApplicationModel::DataTransfer::DataPackageOperation value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportOperationCompleted(value)); -} - -template Windows::Foundation::Collections::IVectorView impl_IDataPackageView::AvailableFormats() const -{ - Windows::Foundation::Collections::IVectorView formatIds; - check_hresult(static_cast(static_cast(*this))->get_AvailableFormats(put(formatIds))); - return formatIds; -} - -template bool impl_IDataPackageView::Contains(hstring_ref formatId) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_Contains(get(formatId), &value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDataPackageView::GetDataAsync(hstring_ref formatId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDataAsync(get(formatId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDataPackageView::GetTextAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetTextAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDataPackageView::GetTextAsync(hstring_ref formatId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCustomTextAsync(get(formatId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDataPackageView::GetUriAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetUriAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDataPackageView::GetHtmlFormatAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetHtmlFormatAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IDataPackageView::GetResourceMapAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetResourceMapAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDataPackageView::GetRtfAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetRtfAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDataPackageView::GetBitmapAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetBitmapAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IDataPackageView::GetStorageItemsAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetStorageItemsAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDataPackageView2::GetApplicationLinkAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetApplicationLinkAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDataPackageView2::GetWebLinkAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetWebLinkAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDataPackageView3::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDataPackageView3::RequestAccessAsync(hstring_ref enterpriseId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessWithEnterpriseIdAsync(get(enterpriseId), put(operation))); - return operation; -} - -template Windows::Security::EnterpriseData::ProtectionPolicyEvaluationResult impl_IDataPackageView3::UnlockAndAssumeEnterpriseIdentity() const -{ - Windows::Security::EnterpriseData::ProtectionPolicyEvaluationResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_UnlockAndAssumeEnterpriseIdentity(&result)); - return result; -} - -template void impl_IDataPackageView4::SetAcceptedFormatId(hstring_ref formatId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAcceptedFormatId(get(formatId))); -} - -template Windows::ApplicationModel::DataTransfer::DataPackageView impl_IDataPackage::GetView() const -{ - Windows::ApplicationModel::DataTransfer::DataPackageView value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetView(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataPackagePropertySet impl_IDataPackage::Properties() const -{ - Windows::ApplicationModel::DataTransfer::DataPackagePropertySet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataPackageOperation impl_IDataPackage::RequestedOperation() const -{ - Windows::ApplicationModel::DataTransfer::DataPackageOperation value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestedOperation(&value)); - return value; -} - -template void impl_IDataPackage::RequestedOperation(Windows::ApplicationModel::DataTransfer::DataPackageOperation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RequestedOperation(value)); -} - -template event_token impl_IDataPackage::OperationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_OperationCompleted(get(handler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IDataPackage::OperationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::DataTransfer::IDataPackage::remove_OperationCompleted, OperationCompleted(handler)); -} - -template void impl_IDataPackage::OperationCompleted(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_OperationCompleted(eventCookie)); -} - -template event_token impl_IDataPackage::Destroyed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Destroyed(get(handler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IDataPackage::Destroyed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::DataTransfer::IDataPackage::remove_Destroyed, Destroyed(handler)); -} - -template void impl_IDataPackage::Destroyed(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Destroyed(eventCookie)); -} - -template void impl_IDataPackage::SetData(hstring_ref formatId, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetData(get(formatId), get(value))); -} - -template void impl_IDataPackage::SetDataProvider(hstring_ref formatId, const Windows::ApplicationModel::DataTransfer::DataProviderHandler & delayRenderer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDataProvider(get(formatId), get(delayRenderer))); -} - -template void impl_IDataPackage::SetText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetText(get(value))); -} - -template void impl_IDataPackage::SetUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetUri(get(value))); -} - -template void impl_IDataPackage::SetHtmlFormat(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetHtmlFormat(get(value))); -} - -template Windows::Foundation::Collections::IMap impl_IDataPackage::ResourceMap() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_ResourceMap(put(value))); - return value; -} - -template void impl_IDataPackage::SetRtf(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetRtf(get(value))); -} - -template void impl_IDataPackage::SetBitmap(const Windows::Storage::Streams::RandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBitmap(get(value))); -} - -template void impl_IDataPackage::SetStorageItems(const Windows::Foundation::Collections::IIterable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetStorageItemsReadOnly(get(value))); -} - -template void impl_IDataPackage::SetStorageItems(const Windows::Foundation::Collections::IIterable & value, bool readOnly) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetStorageItems(get(value), readOnly)); -} - -template void impl_IDataPackage2::SetApplicationLink(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetApplicationLink(get(value))); -} - -template void impl_IDataPackage2::SetWebLink(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetWebLink(get(value))); -} - -template hstring impl_IHtmlFormatHelperStatics::GetStaticFragment(hstring_ref htmlFormat) const -{ - hstring htmlFragment; - check_hresult(static_cast(static_cast(*this))->abi_GetStaticFragment(get(htmlFormat), put(htmlFragment))); - return htmlFragment; -} - -template hstring impl_IHtmlFormatHelperStatics::CreateHtmlFormat(hstring_ref htmlFragment) const -{ - hstring htmlFormat; - check_hresult(static_cast(static_cast(*this))->abi_CreateHtmlFormat(get(htmlFragment), put(htmlFormat))); - return htmlFormat; -} - -template Windows::ApplicationModel::DataTransfer::DataPackageView impl_IClipboardStatics::GetContent() const -{ - Windows::ApplicationModel::DataTransfer::DataPackageView content { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetContent(put(content))); - return content; -} - -template void impl_IClipboardStatics::SetContent(const Windows::ApplicationModel::DataTransfer::DataPackage & content) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetContent(get(content))); -} - -template void impl_IClipboardStatics::Flush() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Flush()); -} - -template void impl_IClipboardStatics::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template event_token impl_IClipboardStatics::ContentChanged(const Windows::Foundation::EventHandler & changeHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ContentChanged(get(changeHandler), &token)); - return token; -} - -template event_revoker impl_IClipboardStatics::ContentChanged(auto_revoke_t, const Windows::Foundation::EventHandler & changeHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::DataTransfer::IClipboardStatics::remove_ContentChanged, ContentChanged(changeHandler)); -} - -template void impl_IClipboardStatics::ContentChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContentChanged(token)); -} - -template void impl_IDataRequestDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::ApplicationModel::DataTransfer::DataPackage impl_IDataRequest::Data() const -{ - Windows::ApplicationModel::DataTransfer::DataPackage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template void impl_IDataRequest::Data(const Windows::ApplicationModel::DataTransfer::DataPackage & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Data(get(value))); -} - -template Windows::Foundation::DateTime impl_IDataRequest::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template void impl_IDataRequest::FailWithDisplayText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_FailWithDisplayText(get(value))); -} - -template Windows::ApplicationModel::DataTransfer::DataRequestDeferral impl_IDataRequest::GetDeferral() const -{ - Windows::ApplicationModel::DataTransfer::DataRequestDeferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataRequest impl_IDataRequestedEventArgs::Request() const -{ - Windows::ApplicationModel::DataTransfer::DataRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template hstring impl_ITargetApplicationChosenEventArgs::ApplicationName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ApplicationName(put(value))); - return value; -} - -template event_token impl_IDataTransferManager::DataRequested(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_DataRequested(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IDataTransferManager::DataRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::DataTransfer::IDataTransferManager::remove_DataRequested, DataRequested(eventHandler)); -} - -template void impl_IDataTransferManager::DataRequested(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DataRequested(eventCookie)); -} - -template event_token impl_IDataTransferManager::TargetApplicationChosen(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_TargetApplicationChosen(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IDataTransferManager::TargetApplicationChosen(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::DataTransfer::IDataTransferManager::remove_TargetApplicationChosen, TargetApplicationChosen(eventHandler)); -} - -template void impl_IDataTransferManager::TargetApplicationChosen(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TargetApplicationChosen(eventCookie)); -} - -template void impl_IDataTransferManagerStatics::ShowShareUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowShareUI()); -} - -template Windows::ApplicationModel::DataTransfer::DataTransferManager impl_IDataTransferManagerStatics::GetForCurrentView() const -{ - Windows::ApplicationModel::DataTransfer::DataTransferManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(value))); - return value; -} - -template bool impl_IDataTransferManagerStatics2::IsSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsSupported(&value)); - return value; -} - -template hstring impl_ISharedStorageAccessManagerStatics::AddFile(const Windows::Storage::IStorageFile & file) const -{ - hstring outToken; - check_hresult(static_cast(static_cast(*this))->abi_AddFile(get(file), put(outToken))); - return outToken; -} - -template Windows::Foundation::IAsyncOperation impl_ISharedStorageAccessManagerStatics::RedeemTokenForFileAsync(hstring_ref token) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RedeemTokenForFileAsync(get(token), put(operation))); - return operation; -} - -template void impl_ISharedStorageAccessManagerStatics::RemoveFile(hstring_ref token) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveFile(get(token))); -} - -inline Windows::ApplicationModel::DataTransfer::DataPackageView Clipboard::GetContent() -{ - return get_activation_factory().GetContent(); -} - -inline void Clipboard::SetContent(const Windows::ApplicationModel::DataTransfer::DataPackage & content) -{ - get_activation_factory().SetContent(content); -} - -inline void Clipboard::Flush() -{ - get_activation_factory().Flush(); -} - -inline void Clipboard::Clear() -{ - get_activation_factory().Clear(); -} - -inline event_token Clipboard::ContentChanged(const Windows::Foundation::EventHandler & changeHandler) -{ - return get_activation_factory().ContentChanged(changeHandler); -} - -inline factory_event_revoker Clipboard::ContentChanged(auto_revoke_t, const Windows::Foundation::EventHandler & changeHandler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::ApplicationModel::DataTransfer::IClipboardStatics::remove_ContentChanged, factory.ContentChanged(changeHandler) }; -} - -inline void Clipboard::ContentChanged(event_token token) -{ - get_activation_factory().ContentChanged(token); -} - -inline DataPackage::DataPackage() : - DataPackage(activate_instance()) -{} - -inline void DataTransferManager::ShowShareUI() -{ - get_activation_factory().ShowShareUI(); -} - -inline Windows::ApplicationModel::DataTransfer::DataTransferManager DataTransferManager::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline bool DataTransferManager::IsSupported() -{ - return get_activation_factory().IsSupported(); -} - -inline hstring HtmlFormatHelper::GetStaticFragment(hstring_ref htmlFormat) -{ - return get_activation_factory().GetStaticFragment(htmlFormat); -} - -inline hstring HtmlFormatHelper::CreateHtmlFormat(hstring_ref htmlFragment) -{ - return get_activation_factory().CreateHtmlFormat(htmlFragment); -} - -inline hstring SharedStorageAccessManager::AddFile(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().AddFile(file); -} - -inline Windows::Foundation::IAsyncOperation SharedStorageAccessManager::RedeemTokenForFileAsync(hstring_ref token) -{ - return get_activation_factory().RedeemTokenForFileAsync(token); -} - -inline void SharedStorageAccessManager::RemoveFile(hstring_ref token) -{ - get_activation_factory().RemoveFile(token); -} - -inline hstring StandardDataFormats::Text() -{ - return get_activation_factory().Text(); -} - -inline hstring StandardDataFormats::Uri() -{ - return get_activation_factory().Uri(); -} - -inline hstring StandardDataFormats::Html() -{ - return get_activation_factory().Html(); -} - -inline hstring StandardDataFormats::Rtf() -{ - return get_activation_factory().Rtf(); -} - -inline hstring StandardDataFormats::Bitmap() -{ - return get_activation_factory().Bitmap(); -} - -inline hstring StandardDataFormats::StorageItems() -{ - return get_activation_factory().StorageItems(); -} - -inline hstring StandardDataFormats::WebLink() -{ - return get_activation_factory().WebLink(); -} - -inline hstring StandardDataFormats::ApplicationLink() -{ - return get_activation_factory().ApplicationLink(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Email.DataProvider.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Email.DataProvider.h deleted file mode 100644 index 0bba27322..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Email.DataProvider.h +++ /dev/null @@ -1,3137 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Email.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.Email.DataProvider.3.h" -#include "Windows.ApplicationModel.Email.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall add_MailboxSyncRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MailboxSyncRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MailboxSyncRequested(event_token token) noexcept override - { - try - { - this->shim().MailboxSyncRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DownloadMessageRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DownloadMessageRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DownloadMessageRequested(event_token token) noexcept override - { - try - { - this->shim().DownloadMessageRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DownloadAttachmentRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DownloadAttachmentRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DownloadAttachmentRequested(event_token token) noexcept override - { - try - { - this->shim().DownloadAttachmentRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CreateFolderRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CreateFolderRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CreateFolderRequested(event_token token) noexcept override - { - try - { - this->shim().CreateFolderRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DeleteFolderRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DeleteFolderRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DeleteFolderRequested(event_token token) noexcept override - { - try - { - this->shim().DeleteFolderRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EmptyFolderRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EmptyFolderRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EmptyFolderRequested(event_token token) noexcept override - { - try - { - this->shim().EmptyFolderRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MoveFolderRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MoveFolderRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MoveFolderRequested(event_token token) noexcept override - { - try - { - this->shim().MoveFolderRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UpdateMeetingResponseRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UpdateMeetingResponseRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UpdateMeetingResponseRequested(event_token token) noexcept override - { - try - { - this->shim().UpdateMeetingResponseRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ForwardMeetingRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ForwardMeetingRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ForwardMeetingRequested(event_token token) noexcept override - { - try - { - this->shim().ForwardMeetingRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ProposeNewTimeForMeetingRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ProposeNewTimeForMeetingRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ProposeNewTimeForMeetingRequested(event_token token) noexcept override - { - try - { - this->shim().ProposeNewTimeForMeetingRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SetAutoReplySettingsRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SetAutoReplySettingsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SetAutoReplySettingsRequested(event_token token) noexcept override - { - try - { - this->shim().SetAutoReplySettingsRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_GetAutoReplySettingsRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().GetAutoReplySettingsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_GetAutoReplySettingsRequested(event_token token) noexcept override - { - try - { - this->shim().GetAutoReplySettingsRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ResolveRecipientsRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ResolveRecipientsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ResolveRecipientsRequested(event_token token) noexcept override - { - try - { - this->shim().ResolveRecipientsRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ValidateCertificatesRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ValidateCertificatesRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ValidateCertificatesRequested(event_token token) noexcept override - { - try - { - this->shim().ValidateCertificatesRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ServerSearchReadBatchRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ServerSearchReadBatchRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ServerSearchReadBatchRequested(event_token token) noexcept override - { - try - { - this->shim().ServerSearchReadBatchRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Connection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Connection()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ParentFolderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ParentFolderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_in folder, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync(*reinterpret_cast(&folder))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(Windows::ApplicationModel::Email::EmailMailboxCreateFolderStatus status, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync(status)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailFolderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailFolderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(Windows::ApplicationModel::Email::EmailMailboxDeleteFolderStatus status, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync(status)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailMessageId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMessageId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailAttachmentId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailAttachmentId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailMessageId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMessageId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailFolderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailFolderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(Windows::ApplicationModel::Email::EmailMailboxEmptyFolderStatus status, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync(status)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailMessageId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMessageId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Recipients(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Recipients()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForwardHeaderType(Windows::ApplicationModel::Email::EmailMessageBodyKind * value) noexcept override - { - try - { - *value = detach(this->shim().ForwardHeaderType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForwardHeader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForwardHeader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Comment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Comment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequestedFormat(Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind * value) noexcept override - { - try - { - *value = detach(this->shim().RequestedFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_in autoReplySettings, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync(*reinterpret_cast(&autoReplySettings))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailFolderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailFolderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewParentFolderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewParentFolderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewFolderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewFolderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailMessageId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMessageId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewStartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewStartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Comment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Comment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Recipients(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Recipients()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_in> resolutionResults, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync(*reinterpret_cast *>(&resolutionResults))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SessionId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SessionId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailFolderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailFolderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Options(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Options()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuggestedBatchSize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SuggestedBatchSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveMessageAsync(abi_arg_in message, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveMessageAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(Windows::ApplicationModel::Email::EmailBatchStatus batchStatus, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync(batchStatus)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoReplySettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutoReplySettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailMessageId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMessageId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Response(Windows::ApplicationModel::Email::EmailMeetingResponseType * response) noexcept override - { - try - { - *response = detach(this->shim().Response()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Comment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Comment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SendUpdate(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SendUpdate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Certificates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Certificates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompletedAsync(abi_arg_in> validationStatuses, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportCompletedAsync(*reinterpret_cast *>(&validationStatuses))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailedAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReportFailedAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Email::DataProvider { - -template Windows::ApplicationModel::Email::DataProvider::EmailDataProviderConnection impl_IEmailDataProviderTriggerDetails::Connection() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailDataProviderConnection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Connection(put(value))); - return value; -} - -template event_token impl_IEmailDataProviderConnection::MailboxSyncRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MailboxSyncRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::MailboxSyncRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_MailboxSyncRequested, MailboxSyncRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::MailboxSyncRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MailboxSyncRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::DownloadMessageRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DownloadMessageRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::DownloadMessageRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_DownloadMessageRequested, DownloadMessageRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::DownloadMessageRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DownloadMessageRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::DownloadAttachmentRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DownloadAttachmentRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::DownloadAttachmentRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_DownloadAttachmentRequested, DownloadAttachmentRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::DownloadAttachmentRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DownloadAttachmentRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::CreateFolderRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CreateFolderRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::CreateFolderRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_CreateFolderRequested, CreateFolderRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::CreateFolderRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CreateFolderRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::DeleteFolderRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DeleteFolderRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::DeleteFolderRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_DeleteFolderRequested, DeleteFolderRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::DeleteFolderRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DeleteFolderRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::EmptyFolderRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EmptyFolderRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::EmptyFolderRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_EmptyFolderRequested, EmptyFolderRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::EmptyFolderRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EmptyFolderRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::MoveFolderRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MoveFolderRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::MoveFolderRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_MoveFolderRequested, MoveFolderRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::MoveFolderRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MoveFolderRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::UpdateMeetingResponseRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UpdateMeetingResponseRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::UpdateMeetingResponseRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_UpdateMeetingResponseRequested, UpdateMeetingResponseRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::UpdateMeetingResponseRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UpdateMeetingResponseRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::ForwardMeetingRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ForwardMeetingRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::ForwardMeetingRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_ForwardMeetingRequested, ForwardMeetingRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::ForwardMeetingRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ForwardMeetingRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::ProposeNewTimeForMeetingRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ProposeNewTimeForMeetingRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::ProposeNewTimeForMeetingRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_ProposeNewTimeForMeetingRequested, ProposeNewTimeForMeetingRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::ProposeNewTimeForMeetingRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ProposeNewTimeForMeetingRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::SetAutoReplySettingsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SetAutoReplySettingsRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::SetAutoReplySettingsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_SetAutoReplySettingsRequested, SetAutoReplySettingsRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::SetAutoReplySettingsRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SetAutoReplySettingsRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::GetAutoReplySettingsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_GetAutoReplySettingsRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::GetAutoReplySettingsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_GetAutoReplySettingsRequested, GetAutoReplySettingsRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::GetAutoReplySettingsRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_GetAutoReplySettingsRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::ResolveRecipientsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ResolveRecipientsRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::ResolveRecipientsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_ResolveRecipientsRequested, ResolveRecipientsRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::ResolveRecipientsRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ResolveRecipientsRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::ValidateCertificatesRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ValidateCertificatesRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::ValidateCertificatesRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_ValidateCertificatesRequested, ValidateCertificatesRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::ValidateCertificatesRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ValidateCertificatesRequested(token)); -} - -template event_token impl_IEmailDataProviderConnection::ServerSearchReadBatchRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ServerSearchReadBatchRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailDataProviderConnection::ServerSearchReadBatchRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::DataProvider::IEmailDataProviderConnection::remove_ServerSearchReadBatchRequested, ServerSearchReadBatchRequested(handler)); -} - -template void impl_IEmailDataProviderConnection::ServerSearchReadBatchRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ServerSearchReadBatchRequested(token)); -} - -template void impl_IEmailDataProviderConnection::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template hstring impl_IEmailMailboxSyncManagerSyncRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxSyncManagerSyncRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxSyncManagerSyncRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IEmailMailboxDownloadMessageRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxDownloadMessageRequest::EmailMessageId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMessageId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxDownloadMessageRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxDownloadMessageRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IEmailMailboxDownloadAttachmentRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxDownloadAttachmentRequest::EmailMessageId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMessageId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxDownloadAttachmentRequest::EmailAttachmentId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailAttachmentId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxDownloadAttachmentRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxDownloadAttachmentRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IEmailMailboxCreateFolderRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxCreateFolderRequest::ParentFolderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ParentFolderId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxCreateFolderRequest::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxCreateFolderRequest::ReportCompletedAsync(const Windows::ApplicationModel::Email::EmailFolder & folder) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(get(folder), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxCreateFolderRequest::ReportFailedAsync(Windows::ApplicationModel::Email::EmailMailboxCreateFolderStatus status) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(status, put(result))); - return result; -} - -template hstring impl_IEmailMailboxDeleteFolderRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxDeleteFolderRequest::EmailFolderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailFolderId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxDeleteFolderRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxDeleteFolderRequest::ReportFailedAsync(Windows::ApplicationModel::Email::EmailMailboxDeleteFolderStatus status) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(status, put(result))); - return result; -} - -template hstring impl_IEmailMailboxEmptyFolderRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxEmptyFolderRequest::EmailFolderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailFolderId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxEmptyFolderRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxEmptyFolderRequest::ReportFailedAsync(Windows::ApplicationModel::Email::EmailMailboxEmptyFolderStatus status) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(status, put(result))); - return result; -} - -template hstring impl_IEmailMailboxMoveFolderRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxMoveFolderRequest::EmailFolderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailFolderId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxMoveFolderRequest::NewParentFolderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NewParentFolderId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxMoveFolderRequest::NewFolderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NewFolderName(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxMoveFolderRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxMoveFolderRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IEmailMailboxUpdateMeetingResponseRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxUpdateMeetingResponseRequest::EmailMessageId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMessageId(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailMeetingResponseType impl_IEmailMailboxUpdateMeetingResponseRequest::Response() const -{ - Windows::ApplicationModel::Email::EmailMeetingResponseType response {}; - check_hresult(static_cast(static_cast(*this))->get_Response(&response)); - return response; -} - -template hstring impl_IEmailMailboxUpdateMeetingResponseRequest::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template hstring impl_IEmailMailboxUpdateMeetingResponseRequest::Comment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Comment(put(value))); - return value; -} - -template bool impl_IEmailMailboxUpdateMeetingResponseRequest::SendUpdate() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SendUpdate(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxUpdateMeetingResponseRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxUpdateMeetingResponseRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IEmailMailboxForwardMeetingRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxForwardMeetingRequest::EmailMessageId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMessageId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IEmailMailboxForwardMeetingRequest::Recipients() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Recipients(put(value))); - return value; -} - -template hstring impl_IEmailMailboxForwardMeetingRequest::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailMessageBodyKind impl_IEmailMailboxForwardMeetingRequest::ForwardHeaderType() const -{ - Windows::ApplicationModel::Email::EmailMessageBodyKind value {}; - check_hresult(static_cast(static_cast(*this))->get_ForwardHeaderType(&value)); - return value; -} - -template hstring impl_IEmailMailboxForwardMeetingRequest::ForwardHeader() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ForwardHeader(put(value))); - return value; -} - -template hstring impl_IEmailMailboxForwardMeetingRequest::Comment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Comment(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxForwardMeetingRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxForwardMeetingRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IEmailMailboxProposeNewTimeForMeetingRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxProposeNewTimeForMeetingRequest::EmailMessageId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMessageId(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IEmailMailboxProposeNewTimeForMeetingRequest::NewStartTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_NewStartTime(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IEmailMailboxProposeNewTimeForMeetingRequest::NewDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_NewDuration(put(value))); - return value; -} - -template hstring impl_IEmailMailboxProposeNewTimeForMeetingRequest::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template hstring impl_IEmailMailboxProposeNewTimeForMeetingRequest::Comment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Comment(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxProposeNewTimeForMeetingRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxProposeNewTimeForMeetingRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IEmailMailboxSetAutoReplySettingsRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailMailboxAutoReplySettings impl_IEmailMailboxSetAutoReplySettingsRequest::AutoReplySettings() const -{ - Windows::ApplicationModel::Email::EmailMailboxAutoReplySettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AutoReplySettings(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxSetAutoReplySettingsRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxSetAutoReplySettingsRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IEmailMailboxGetAutoReplySettingsRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind impl_IEmailMailboxGetAutoReplySettingsRequest::RequestedFormat() const -{ - Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestedFormat(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxGetAutoReplySettingsRequest::ReportCompletedAsync(const Windows::ApplicationModel::Email::EmailMailboxAutoReplySettings & autoReplySettings) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(get(autoReplySettings), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxGetAutoReplySettingsRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IEmailMailboxResolveRecipientsRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IEmailMailboxResolveRecipientsRequest::Recipients() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Recipients(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxResolveRecipientsRequest::ReportCompletedAsync(const Windows::Foundation::Collections::IIterable & resolutionResults) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(get(resolutionResults), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxResolveRecipientsRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IEmailMailboxValidateCertificatesRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IEmailMailboxValidateCertificatesRequest::Certificates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Certificates(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxValidateCertificatesRequest::ReportCompletedAsync(const Windows::Foundation::Collections::IIterable & validationStatuses) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(get(validationStatuses), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxValidateCertificatesRequest::ReportFailedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(put(result))); - return result; -} - -template hstring impl_IEmailMailboxServerSearchReadBatchRequest::SessionId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SessionId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxServerSearchReadBatchRequest::EmailMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailMailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMailboxServerSearchReadBatchRequest::EmailFolderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailFolderId(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailQueryOptions impl_IEmailMailboxServerSearchReadBatchRequest::Options() const -{ - Windows::ApplicationModel::Email::EmailQueryOptions value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Options(put(value))); - return value; -} - -template uint32_t impl_IEmailMailboxServerSearchReadBatchRequest::SuggestedBatchSize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SuggestedBatchSize(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxServerSearchReadBatchRequest::SaveMessageAsync(const Windows::ApplicationModel::Email::EmailMessage & message) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveMessageAsync(get(message), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxServerSearchReadBatchRequest::ReportCompletedAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportCompletedAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailboxServerSearchReadBatchRequest::ReportFailedAsync(Windows::ApplicationModel::Email::EmailBatchStatus batchStatus) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailedAsync(batchStatus, put(result))); - return result; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxSyncManagerSyncRequest impl_IEmailMailboxSyncManagerSyncRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxSyncManagerSyncRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxSyncManagerSyncRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxDownloadMessageRequest impl_IEmailMailboxDownloadMessageRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxDownloadMessageRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxDownloadMessageRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxDownloadAttachmentRequest impl_IEmailMailboxDownloadAttachmentRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxDownloadAttachmentRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxDownloadAttachmentRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxCreateFolderRequest impl_IEmailMailboxCreateFolderRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxCreateFolderRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxCreateFolderRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxDeleteFolderRequest impl_IEmailMailboxDeleteFolderRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxDeleteFolderRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxDeleteFolderRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxEmptyFolderRequest impl_IEmailMailboxEmptyFolderRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxEmptyFolderRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxEmptyFolderRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxMoveFolderRequest impl_IEmailMailboxMoveFolderRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxMoveFolderRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxMoveFolderRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxUpdateMeetingResponseRequest impl_IEmailMailboxUpdateMeetingResponseRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxUpdateMeetingResponseRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxUpdateMeetingResponseRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxForwardMeetingRequest impl_IEmailMailboxForwardMeetingRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxForwardMeetingRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxForwardMeetingRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxProposeNewTimeForMeetingRequest impl_IEmailMailboxProposeNewTimeForMeetingRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxProposeNewTimeForMeetingRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxProposeNewTimeForMeetingRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxSetAutoReplySettingsRequest impl_IEmailMailboxSetAutoReplySettingsRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxSetAutoReplySettingsRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxSetAutoReplySettingsRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxGetAutoReplySettingsRequest impl_IEmailMailboxGetAutoReplySettingsRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxGetAutoReplySettingsRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxGetAutoReplySettingsRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxResolveRecipientsRequest impl_IEmailMailboxResolveRecipientsRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxResolveRecipientsRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxResolveRecipientsRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxValidateCertificatesRequest impl_IEmailMailboxValidateCertificatesRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxValidateCertificatesRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxValidateCertificatesRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::DataProvider::EmailMailboxServerSearchReadBatchRequest impl_IEmailMailboxServerSearchReadBatchRequestEventArgs::Request() const -{ - Windows::ApplicationModel::Email::DataProvider::EmailMailboxServerSearchReadBatchRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEmailMailboxServerSearchReadBatchRequestEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Email.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Email.h deleted file mode 100644 index 636dc79a9..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Email.h +++ /dev/null @@ -1,7655 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.ApplicationModel.Appointments.3.h" -#include "internal/Windows.ApplicationModel.Email.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FileName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FileName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FileName(abi_arg_in value) noexcept override - { - try - { - this->shim().FileName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Data(abi_arg_in value) noexcept override - { - try - { - this->shim().Data(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentId(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentLocation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentLocation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentLocation(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentLocation(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DownloadState(Windows::ApplicationModel::Email::EmailAttachmentDownloadState * value) noexcept override - { - try - { - *value = detach(this->shim().DownloadState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DownloadState(Windows::ApplicationModel::Email::EmailAttachmentDownloadState value) noexcept override - { - try - { - this->shim().DownloadState(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EstimatedDownloadSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().EstimatedDownloadSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EstimatedDownloadSizeInBytes(uint64_t value) noexcept override - { - try - { - this->shim().EstimatedDownloadSizeInBytes(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFromBaseMessage(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFromBaseMessage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInline(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsInline(bool value) noexcept override - { - try - { - this->shim().IsInline(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MimeType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MimeType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MimeType(abi_arg_in value) noexcept override - { - try - { - this->shim().MimeType(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in fileName, abi_arg_in data, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&fileName), *reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in fileName, abi_arg_in data, abi_arg_in mimeType, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&fileName), *reinterpret_cast(&data), *reinterpret_cast(&mimeType))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlagState(Windows::ApplicationModel::Email::EmailFlagState * value) noexcept override - { - try - { - *value = detach(this->shim().FlagState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasAttachment(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasAttachment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Importance(Windows::ApplicationModel::Email::EmailImportance * value) noexcept override - { - try - { - *value = detach(this->shim().Importance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastEmailResponseKind(Windows::ApplicationModel::Email::EmailMessageResponseKind * value) noexcept override - { - try - { - *value = detach(this->shim().LastEmailResponseKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MessageCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MostRecentMessageId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MostRecentMessageId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MostRecentMessageTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MostRecentMessageTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Preview(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Preview()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LatestSender(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LatestSender()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UnreadMessageCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UnreadMessageCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindMessagesAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindMessagesAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindMessagesWithCountAsync(uint32_t count, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindMessagesAsync(count)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Conversations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Conversations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::ApplicationModel::Email::EmailBatchStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ParentFolderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ParentFolderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSyncEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSyncEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSyncEnabled(bool value) noexcept override - { - try - { - this->shim().IsSyncEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastSuccessfulSyncTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastSuccessfulSyncTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LastSuccessfulSyncTime(abi_arg_in value) noexcept override - { - try - { - this->shim().LastSuccessfulSyncTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Email::EmailSpecialFolderKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFolderAsync(abi_arg_in name, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateFolderAsync(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DeleteAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindChildFoldersAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindChildFoldersAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationReaderWithOptions(abi_arg_in options, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationReader(*reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageReaderWithOptions(abi_arg_in options, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageReader(*reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageCountsAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageCountsAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryMoveAsync(abi_arg_in newParentFolder, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryMoveAsync(*reinterpret_cast(&newParentFolder))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryMoveWithNewNameAsync(abi_arg_in newParentFolder, abi_arg_in newFolderName, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryMoveAsync(*reinterpret_cast(&newParentFolder), *reinterpret_cast(&newFolderName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySaveAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TrySaveAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveMessageAsync(abi_arg_in message, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveMessageAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanEdit(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanEdit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanEdit(bool value) noexcept override - { - try - { - this->shim().CanEdit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanExtractData(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanExtractData()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanExtractData(bool value) noexcept override - { - try - { - this->shim().CanExtractData(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanForward(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanForward()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanForward(bool value) noexcept override - { - try - { - this->shim().CanForward(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanModifyRecipientsOnResponse(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanModifyRecipientsOnResponse()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanModifyRecipientsOnResponse(bool value) noexcept override - { - try - { - this->shim().CanModifyRecipientsOnResponse(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanPrintData(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanPrintData()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanPrintData(bool value) noexcept override - { - try - { - this->shim().CanPrintData(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanRemoveIrmOnResponse(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanRemoveIrmOnResponse()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanRemoveIrmOnResponse(bool value) noexcept override - { - try - { - this->shim().CanRemoveIrmOnResponse(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanReply(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanReply()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanReply(bool value) noexcept override - { - try - { - this->shim().CanReply(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanReplyAll(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanReplyAll()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanReplyAll(bool value) noexcept override - { - try - { - this->shim().CanReplyAll(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExpirationDate(abi_arg_in value) noexcept override - { - try - { - this->shim().ExpirationDate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsIrmOriginator(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIrmOriginator()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsIrmOriginator(bool value) noexcept override - { - try - { - this->shim().IsIrmOriginator(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsProgramaticAccessAllowed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsProgramaticAccessAllowed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsProgramaticAccessAllowed(bool value) noexcept override - { - try - { - this->shim().IsProgramaticAccessAllowed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Template(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Template()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Template(abi_arg_in value) noexcept override - { - try - { - this->shim().Template(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in expiration, abi_arg_in irmTemplate, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&expiration), *reinterpret_cast(&irmTemplate))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Id(abi_arg_in value) noexcept override - { - try - { - this->shim().Id(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in id, abi_arg_in name, abi_arg_in description, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&id), *reinterpret_cast(&name), *reinterpret_cast(&description))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Flagged(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Flagged()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Important(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Important()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Total(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Total()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Unread(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Unread()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Capabilities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Capabilities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChangeTracker(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChangeTracker()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOwnedByCurrentApp(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOwnedByCurrentApp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDataEncryptedUnderLock(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDataEncryptedUnderLock()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MailAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MailAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MailAddress(abi_arg_in value) noexcept override - { - try - { - this->shim().MailAddress(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MailAddressAliases(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MailAddressAliases()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherAppReadAccess(Windows::ApplicationModel::Email::EmailMailboxOtherAppReadAccess * value) noexcept override - { - try - { - *value = detach(this->shim().OtherAppReadAccess()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OtherAppReadAccess(Windows::ApplicationModel::Email::EmailMailboxOtherAppReadAccess value) noexcept override - { - try - { - this->shim().OtherAppReadAccess(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherAppWriteAccess(Windows::ApplicationModel::Email::EmailMailboxOtherAppWriteAccess * value) noexcept override - { - try - { - *value = detach(this->shim().OtherAppWriteAccess()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OtherAppWriteAccess(Windows::ApplicationModel::Email::EmailMailboxOtherAppWriteAccess value) noexcept override - { - try - { - this->shim().OtherAppWriteAccess(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Policies(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Policies()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SyncManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SyncManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserDataAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserDataAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationReaderWithOptions(abi_arg_in options, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationReader(*reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageReaderWithOptions(abi_arg_in options, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageReader(*reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DeleteAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFolderAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetFolderAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSpecialFolderAsync(Windows::ApplicationModel::Email::EmailSpecialFolderKind folderType, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetSpecialFolderAsync(folderType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkMessageAsSeenAsync(abi_arg_in messageId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkMessageAsSeenAsync(*reinterpret_cast(&messageId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkFolderAsSeenAsync(abi_arg_in folderId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkFolderAsSeenAsync(*reinterpret_cast(&folderId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkMessageReadAsync(abi_arg_in messageId, bool isRead, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkMessageReadAsync(*reinterpret_cast(&messageId), isRead)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ChangeMessageFlagStateAsync(abi_arg_in messageId, Windows::ApplicationModel::Email::EmailFlagState flagState, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ChangeMessageFlagStateAsync(*reinterpret_cast(&messageId), flagState)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryMoveMessageAsync(abi_arg_in messageId, abi_arg_in newParentFolderId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryMoveMessageAsync(*reinterpret_cast(&messageId), *reinterpret_cast(&newParentFolderId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryMoveFolderAsync(abi_arg_in folderId, abi_arg_in newParentFolderId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryMoveFolderAsync(*reinterpret_cast(&folderId), *reinterpret_cast(&newParentFolderId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryMoveFolderWithNewNameAsync(abi_arg_in folderId, abi_arg_in newParentFolderId, abi_arg_in newFolderName, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryMoveFolderAsync(*reinterpret_cast(&folderId), *reinterpret_cast(&newParentFolderId), *reinterpret_cast(&newFolderName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteMessageAsync(abi_arg_in messageId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DeleteMessageAsync(*reinterpret_cast(&messageId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MarkFolderSyncEnabledAsync(abi_arg_in folderId, bool isSyncEnabled, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MarkFolderSyncEnabledAsync(*reinterpret_cast(&folderId), isSyncEnabled)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendMessageAsync(abi_arg_in message, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SendMessageAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveDraftAsync(abi_arg_in message, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveDraftAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DownloadMessageAsync(abi_arg_in messageId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DownloadMessageAsync(*reinterpret_cast(&messageId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DownloadAttachmentAsync(abi_arg_in attachmentId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DownloadAttachmentAsync(*reinterpret_cast(&attachmentId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateResponseMessageAsync(abi_arg_in messageId, Windows::ApplicationModel::Email::EmailMessageResponseKind responseType, abi_arg_in subject, Windows::ApplicationModel::Email::EmailMessageBodyKind responseHeaderType, abi_arg_in responseHeader, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateResponseMessageAsync(*reinterpret_cast(&messageId), responseType, *reinterpret_cast(&subject), responseHeaderType, *reinterpret_cast(&responseHeader))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryUpdateMeetingResponseAsync(abi_arg_in meeting, Windows::ApplicationModel::Email::EmailMeetingResponseType response, abi_arg_in subject, abi_arg_in comment, bool sendUpdate, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryUpdateMeetingResponseAsync(*reinterpret_cast(&meeting), response, *reinterpret_cast(&subject), *reinterpret_cast(&comment), sendUpdate)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryForwardMeetingAsync(abi_arg_in meeting, abi_arg_in> recipients, abi_arg_in subject, Windows::ApplicationModel::Email::EmailMessageBodyKind forwardHeaderType, abi_arg_in forwardHeader, abi_arg_in comment, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryForwardMeetingAsync(*reinterpret_cast(&meeting), *reinterpret_cast *>(&recipients), *reinterpret_cast(&subject), forwardHeaderType, *reinterpret_cast(&forwardHeader), *reinterpret_cast(&comment))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryProposeNewTimeForMeetingAsync(abi_arg_in meeting, abi_arg_in newStartTime, abi_arg_in newDuration, abi_arg_in subject, abi_arg_in comment, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryProposeNewTimeForMeetingAsync(*reinterpret_cast(&meeting), *reinterpret_cast(&newStartTime), *reinterpret_cast(&newDuration), *reinterpret_cast(&subject), *reinterpret_cast(&comment))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MailboxChanged(abi_arg_in> pHandler, event_token * pToken) noexcept override - { - try - { - *pToken = detach(this->shim().MailboxChanged(*reinterpret_cast *>(&pHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MailboxChanged(event_token token) noexcept override - { - try - { - this->shim().MailboxChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SmartSendMessageAsync(abi_arg_in message, bool smartSend, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SendMessageAsync(*reinterpret_cast(&message), smartSend)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetAutoReplySettingsAsync(abi_arg_in autoReplySettings, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TrySetAutoReplySettingsAsync(*reinterpret_cast(&autoReplySettings))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetAutoReplySettingsAsync(Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind requestedFormat, abi_arg_out> autoReplySettings) noexcept override - { - try - { - *autoReplySettings = detach(this->shim().TryGetAutoReplySettingsAsync(requestedFormat)); - return S_OK; - } - catch (...) - { - *autoReplySettings = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LinkedMailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LinkedMailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ResolveRecipientsAsync(abi_arg_in> recipients, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().ResolveRecipientsAsync(*reinterpret_cast *>(&recipients))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ValidateCertificatesAsync(abi_arg_in> certificates, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().ValidateCertificatesAsync(*reinterpret_cast *>(&certificates))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryEmptyFolderAsync(abi_arg_in folderId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryEmptyFolderAsync(*reinterpret_cast(&folderId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryCreateFolderAsync(abi_arg_in parentFolderId, abi_arg_in name, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryCreateFolderAsync(*reinterpret_cast(&parentFolderId), *reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryDeleteFolderAsync(abi_arg_in folderId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryDeleteFolderAsync(*reinterpret_cast(&folderId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RegisterSyncManagerAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().RegisterSyncManagerAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Email::EmailMailboxActionKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChangeNumber(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsEnabled(bool value) noexcept override - { - try - { - this->shim().IsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Response(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Response()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Response(abi_arg_in value) noexcept override - { - try - { - this->shim().Response(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsEnabled(bool value) noexcept override - { - try - { - this->shim().IsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResponseKind(Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind * value) noexcept override - { - try - { - *value = detach(this->shim().ResponseKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ResponseKind(Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind value) noexcept override - { - try - { - this->shim().ResponseKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StartTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().StartTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EndTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EndTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().EndTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InternalReply(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InternalReply()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KnownExternalReply(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KnownExternalReply()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UnknownExternalReply(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UnknownExternalReply()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanForwardMeetings(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanForwardMeetings()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanGetAndSetExternalAutoReplies(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanGetAndSetExternalAutoReplies()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanGetAndSetInternalAutoReplies(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanGetAndSetInternalAutoReplies()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanUpdateMeetingResponses(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanUpdateMeetingResponses()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanServerSearchFolders(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanServerSearchFolders()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanServerSearchMailbox(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanServerSearchMailbox()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanProposeNewTimeForMeetings(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanProposeNewTimeForMeetings()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanSmartSend(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanSmartSend()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanResolveRecipients(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanResolveRecipients()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanValidateCertificates(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanValidateCertificates()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanEmptyFolder(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanEmptyFolder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanCreateFolder(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanCreateFolder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanDeleteFolder(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanDeleteFolder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanMoveFolder(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanMoveFolder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_CanForwardMeetings(bool value) noexcept override - { - try - { - this->shim().CanForwardMeetings(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanGetAndSetExternalAutoReplies(bool value) noexcept override - { - try - { - this->shim().CanGetAndSetExternalAutoReplies(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanGetAndSetInternalAutoReplies(bool value) noexcept override - { - try - { - this->shim().CanGetAndSetInternalAutoReplies(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanUpdateMeetingResponses(bool value) noexcept override - { - try - { - this->shim().CanUpdateMeetingResponses(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanServerSearchFolders(bool value) noexcept override - { - try - { - this->shim().CanServerSearchFolders(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanServerSearchMailbox(bool value) noexcept override - { - try - { - this->shim().CanServerSearchMailbox(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanProposeNewTimeForMeetings(bool value) noexcept override - { - try - { - this->shim().CanProposeNewTimeForMeetings(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanSmartSend(bool value) noexcept override - { - try - { - this->shim().CanSmartSend(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanResolveRecipients(bool value) noexcept override - { - try - { - this->shim().CanResolveRecipients(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanValidateCertificates(bool value) noexcept override - { - try - { - this->shim().CanValidateCertificates(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanEmptyFolder(bool value) noexcept override - { - try - { - this->shim().CanEmptyFolder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanCreateFolder(bool value) noexcept override - { - try - { - this->shim().CanCreateFolder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanDeleteFolder(bool value) noexcept override - { - try - { - this->shim().CanDeleteFolder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanMoveFolder(bool value) noexcept override - { - try - { - this->shim().CanMoveFolder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeType(Windows::ApplicationModel::Email::EmailMailboxChangeType * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MailboxActions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MailboxActions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Folder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Folder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AcceptChanges() noexcept override - { - try - { - this->shim().AcceptChanges(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcceptChangesThrough(abi_arg_in lastChangeToAcknowledge) noexcept override - { - try - { - this->shim().AcceptChangesThrough(*reinterpret_cast(&lastChangeToAcknowledge)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTracking(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTracking()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Enable() noexcept override - { - try - { - this->shim().Enable(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetChangeReader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetChangeReader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Reset() noexcept override - { - try - { - this->shim().Reset(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::ApplicationModel::Email::EmailMailboxCreateFolderStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Folder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Folder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllowedSmimeEncryptionAlgorithmNegotiation(Windows::ApplicationModel::Email::EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation * value) noexcept override - { - try - { - *value = detach(this->shim().AllowedSmimeEncryptionAlgorithmNegotiation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowSmimeSoftCertificates(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowSmimeSoftCertificates()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequiredSmimeEncryptionAlgorithm(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequiredSmimeEncryptionAlgorithm()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequiredSmimeSigningAlgorithm(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequiredSmimeSigningAlgorithm()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MustEncryptSmimeMessages(bool * value) noexcept override - { - try - { - *value = detach(this->shim().MustEncryptSmimeMessages()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MustSignSmimeMessages(bool * value) noexcept override - { - try - { - *value = detach(this->shim().MustSignSmimeMessages()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_AllowedSmimeEncryptionAlgorithmNegotiation(Windows::ApplicationModel::Email::EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation value) noexcept override - { - try - { - this->shim().AllowedSmimeEncryptionAlgorithmNegotiation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowSmimeSoftCertificates(bool value) noexcept override - { - try - { - this->shim().AllowSmimeSoftCertificates(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RequiredSmimeEncryptionAlgorithm(abi_arg_in> value) noexcept override - { - try - { - this->shim().RequiredSmimeEncryptionAlgorithm(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RequiredSmimeSigningAlgorithm(abi_arg_in> value) noexcept override - { - try - { - this->shim().RequiredSmimeSigningAlgorithm(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MustEncryptSmimeMessages(bool value) noexcept override - { - try - { - this->shim().MustEncryptSmimeMessages(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MustSignSmimeMessages(bool value) noexcept override - { - try - { - this->shim().MustSignSmimeMessages(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::ApplicationModel::Email::EmailMailboxSyncStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastSuccessfulSyncTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastSuccessfulSyncTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastAttemptedSyncTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastAttemptedSyncTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SyncAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SyncAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SyncStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SyncStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SyncStatusChanged(event_token token) noexcept override - { - try - { - this->shim().SyncStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Status(Windows::ApplicationModel::Email::EmailMailboxSyncStatus value) noexcept override - { - try - { - this->shim().Status(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LastSuccessfulSyncTime(abi_arg_in value) noexcept override - { - try - { - this->shim().LastSuccessfulSyncTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LastAttemptedSyncTime(abi_arg_in value) noexcept override - { - try - { - this->shim().LastAttemptedSyncTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowComposeNewEmailAsync(abi_arg_in message, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ShowComposeNewEmailAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestStoreAsync(Windows::ApplicationModel::Email::EmailStoreAccessType accessType, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestStoreAsync(accessType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowComposeNewEmailAsync(abi_arg_in message, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().ShowComposeNewEmailAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestStoreAsync(Windows::ApplicationModel::Email::EmailStoreAccessType accessType, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestStoreAsync(accessType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForUser(abi_arg_in user, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllowNewTimeProposal(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowNewTimeProposal()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowNewTimeProposal(bool value) noexcept override - { - try - { - this->shim().AllowNewTimeProposal(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppointmentRoamingId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentRoamingId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppointmentRoamingId(abi_arg_in value) noexcept override - { - try - { - this->shim().AppointmentRoamingId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppointmentOriginalStartTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AppointmentOriginalStartTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppointmentOriginalStartTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().AppointmentOriginalStartTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Duration(abi_arg_in value) noexcept override - { - try - { - this->shim().Duration(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAllDay(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAllDay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsAllDay(bool value) noexcept override - { - try - { - this->shim().IsAllDay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsResponseRequested(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsResponseRequested()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsResponseRequested(bool value) noexcept override - { - try - { - this->shim().IsResponseRequested(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Location(abi_arg_in value) noexcept override - { - try - { - this->shim().Location(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProposedStartTime(abi_arg_out> proposedStartTime) noexcept override - { - try - { - *proposedStartTime = detach(this->shim().ProposedStartTime()); - return S_OK; - } - catch (...) - { - *proposedStartTime = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProposedStartTime(abi_arg_in> proposedStartTime) noexcept override - { - try - { - this->shim().ProposedStartTime(*reinterpret_cast *>(&proposedStartTime)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProposedDuration(abi_arg_out> duration) noexcept override - { - try - { - *duration = detach(this->shim().ProposedDuration()); - return S_OK; - } - catch (...) - { - *duration = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProposedDuration(abi_arg_in> duration) noexcept override - { - try - { - this->shim().ProposedDuration(*reinterpret_cast *>(&duration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecurrenceStartTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RecurrenceStartTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RecurrenceStartTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().RecurrenceStartTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Recurrence(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Recurrence()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Recurrence(abi_arg_in value) noexcept override - { - try - { - this->shim().Recurrence(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteChangeNumber(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().RemoteChangeNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteChangeNumber(uint64_t value) noexcept override - { - try - { - this->shim().RemoteChangeNumber(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StartTime(abi_arg_in value) noexcept override - { - try - { - this->shim().StartTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsReportedOutOfDateByServer(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReportedOutOfDateByServer()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Subject(abi_arg_in value) noexcept override - { - try - { - this->shim().Subject(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Body(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Body()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Body(abi_arg_in value) noexcept override - { - try - { - this->shim().Body(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_To(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().To()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CC(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CC()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bcc(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Bcc()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Attachments(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Attachments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MailboxId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MailboxId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConversationId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConversationId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FolderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FolderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowInternetImages(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowInternetImages()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowInternetImages(bool value) noexcept override - { - try - { - this->shim().AllowInternetImages(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChangeNumber(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DownloadState(Windows::ApplicationModel::Email::EmailMessageDownloadState * value) noexcept override - { - try - { - *value = detach(this->shim().DownloadState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DownloadState(Windows::ApplicationModel::Email::EmailMessageDownloadState value) noexcept override - { - try - { - this->shim().DownloadState(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EstimatedDownloadSizeInBytes(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().EstimatedDownloadSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EstimatedDownloadSizeInBytes(uint32_t value) noexcept override - { - try - { - this->shim().EstimatedDownloadSizeInBytes(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlagState(Windows::ApplicationModel::Email::EmailFlagState * value) noexcept override - { - try - { - *value = detach(this->shim().FlagState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FlagState(Windows::ApplicationModel::Email::EmailFlagState value) noexcept override - { - try - { - this->shim().FlagState(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasPartialBodies(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasPartialBodies()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Importance(Windows::ApplicationModel::Email::EmailImportance * value) noexcept override - { - try - { - *value = detach(this->shim().Importance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Importance(Windows::ApplicationModel::Email::EmailImportance value) noexcept override - { - try - { - this->shim().Importance(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InResponseToMessageId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InResponseToMessageId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IrmInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IrmInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IrmInfo(abi_arg_in value) noexcept override - { - try - { - this->shim().IrmInfo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDraftMessage(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDraftMessage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRead(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRead()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsRead(bool value) noexcept override - { - try - { - this->shim().IsRead(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSeen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSeen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSeen(bool value) noexcept override - { - try - { - this->shim().IsSeen(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsServerSearchMessage(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsServerSearchMessage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSmartSendable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSmartSendable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageClass(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MessageClass()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MessageClass(abi_arg_in value) noexcept override - { - try - { - this->shim().MessageClass(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NormalizedSubject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NormalizedSubject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OriginalCodePage(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OriginalCodePage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OriginalCodePage(int32_t value) noexcept override - { - try - { - this->shim().OriginalCodePage(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Preview(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Preview()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Preview(abi_arg_in value) noexcept override - { - try - { - this->shim().Preview(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastResponseKind(Windows::ApplicationModel::Email::EmailMessageResponseKind * value) noexcept override - { - try - { - *value = detach(this->shim().LastResponseKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LastResponseKind(Windows::ApplicationModel::Email::EmailMessageResponseKind value) noexcept override - { - try - { - this->shim().LastResponseKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sender(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sender()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Sender(abi_arg_in value) noexcept override - { - try - { - this->shim().Sender(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SentTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SentTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SentTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().SentTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MeetingInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MeetingInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MeetingInfo(abi_arg_in value) noexcept override - { - try - { - this->shim().MeetingInfo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBodyStream(Windows::ApplicationModel::Email::EmailMessageBodyKind type, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetBodyStream(type)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetBodyStream(Windows::ApplicationModel::Email::EmailMessageBodyKind type, abi_arg_in stream) noexcept override - { - try - { - this->shim().SetBodyStream(type, *reinterpret_cast(&stream)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SmimeData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmimeData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SmimeData(abi_arg_in value) noexcept override - { - try - { - this->shim().SmimeData(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmimeKind(Windows::ApplicationModel::Email::EmailMessageSmimeKind * value) noexcept override - { - try - { - *value = detach(this->shim().SmimeKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SmimeKind(Windows::ApplicationModel::Email::EmailMessageSmimeKind value) noexcept override - { - try - { - this->shim().SmimeKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Messages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Messages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::ApplicationModel::Email::EmailBatchStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextSearch(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextSearch()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SortDirection(Windows::ApplicationModel::Email::EmailQuerySortDirection * value) noexcept override - { - try - { - *value = detach(this->shim().SortDirection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SortDirection(Windows::ApplicationModel::Email::EmailQuerySortDirection value) noexcept override - { - try - { - this->shim().SortDirection(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SortProperty(Windows::ApplicationModel::Email::EmailQuerySortProperty * value) noexcept override - { - try - { - *value = detach(this->shim().SortProperty()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SortProperty(Windows::ApplicationModel::Email::EmailQuerySortProperty value) noexcept override - { - try - { - this->shim().SortProperty(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Email::EmailQueryKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Kind(Windows::ApplicationModel::Email::EmailQueryKind value) noexcept override - { - try - { - this->shim().Kind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FolderIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FolderIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithText(abi_arg_in text, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithText(*reinterpret_cast(&text))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithTextAndFields(abi_arg_in text, Windows::ApplicationModel::Email::EmailQuerySearchFields fields, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithTextAndFields(*reinterpret_cast(&text), fields)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Fields(Windows::ApplicationModel::Email::EmailQuerySearchFields * value) noexcept override - { - try - { - *value = detach(this->shim().Fields()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Fields(Windows::ApplicationModel::Email::EmailQuerySearchFields value) noexcept override - { - try - { - this->shim().Fields(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SearchScope(Windows::ApplicationModel::Email::EmailQuerySearchScope * value) noexcept override - { - try - { - *value = detach(this->shim().SearchScope()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SearchScope(Windows::ApplicationModel::Email::EmailQuerySearchScope value) noexcept override - { - try - { - this->shim().SearchScope(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Address(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Address()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Address(abi_arg_in value) noexcept override - { - try - { - this->shim().Address(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in address, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&address))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithName(abi_arg_in address, abi_arg_in name, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithName(*reinterpret_cast(&address), *reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::ApplicationModel::Email::EmailRecipientResolutionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PublicKeys(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PublicKeys()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Status(Windows::ApplicationModel::Email::EmailRecipientResolutionStatus value) noexcept override - { - try - { - this->shim().Status(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPublicKeys(abi_arg_in> value) noexcept override - { - try - { - this->shim().SetPublicKeys(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindMailboxesAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindMailboxesAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationReaderWithOptions(abi_arg_in options, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationReader(*reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageReaderWithOptions(abi_arg_in options, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageReader(*reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMailboxAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetMailboxAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversationAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetConversationAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFolderAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetFolderAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetMessageAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateMailboxAsync(abi_arg_in accountName, abi_arg_in accountAddress, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateMailboxAsync(*reinterpret_cast(&accountName), *reinterpret_cast(&accountAddress))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateMailboxInAccountAsync(abi_arg_in accountName, abi_arg_in accountAddress, abi_arg_in userDataAccountId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateMailboxAsync(*reinterpret_cast(&accountName), *reinterpret_cast(&accountAddress), *reinterpret_cast(&userDataAccountId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -} - -namespace Windows::ApplicationModel::Email { - -template Windows::Foundation::IAsyncAction impl_IEmailManagerStatics::ShowComposeNewEmailAsync(const Windows::ApplicationModel::Email::EmailMessage & message) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_ShowComposeNewEmailAsync(get(message), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailManagerStatics2::RequestStoreAsync(Windows::ApplicationModel::Email::EmailStoreAccessType accessType) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(accessType, put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailManagerForUser impl_IEmailManagerStatics3::GetForUser(const Windows::System::User & user) const -{ - Windows::ApplicationModel::Email::EmailManagerForUser result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForUser(get(user), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailManagerForUser::ShowComposeNewEmailAsync(const Windows::ApplicationModel::Email::EmailMessage & message) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ShowComposeNewEmailAsync(get(message), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailManagerForUser::RequestStoreAsync(Windows::ApplicationModel::Email::EmailStoreAccessType accessType) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(accessType, put(result))); - return result; -} - -template Windows::System::User impl_IEmailManagerForUser::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IEmailStore::FindMailboxesAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindMailboxesAsync(put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailConversationReader impl_IEmailStore::GetConversationReader() const -{ - Windows::ApplicationModel::Email::EmailConversationReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationReader(put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailConversationReader impl_IEmailStore::GetConversationReader(const Windows::ApplicationModel::Email::EmailQueryOptions & options) const -{ - Windows::ApplicationModel::Email::EmailConversationReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationReaderWithOptions(get(options), put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailMessageReader impl_IEmailStore::GetMessageReader() const -{ - Windows::ApplicationModel::Email::EmailMessageReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageReader(put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailMessageReader impl_IEmailStore::GetMessageReader(const Windows::ApplicationModel::Email::EmailQueryOptions & options) const -{ - Windows::ApplicationModel::Email::EmailMessageReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageReaderWithOptions(get(options), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailStore::GetMailboxAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetMailboxAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailStore::GetConversationAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailStore::GetFolderAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetFolderAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailStore::GetMessageAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailStore::CreateMailboxAsync(hstring_ref accountName, hstring_ref accountAddress) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateMailboxAsync(get(accountName), get(accountAddress), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailStore::CreateMailboxAsync(hstring_ref accountName, hstring_ref accountAddress, hstring_ref userDataAccountId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateMailboxInAccountAsync(get(accountName), get(accountAddress), get(userDataAccountId), put(result))); - return result; -} - -template hstring impl_IEmailRecipient::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IEmailRecipient::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template hstring impl_IEmailRecipient::Address() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Address(put(value))); - return value; -} - -template void impl_IEmailRecipient::Address(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Address(get(value))); -} - -template Windows::ApplicationModel::Email::EmailRecipient impl_IEmailRecipientFactory::Create(hstring_ref address) const -{ - Windows::ApplicationModel::Email::EmailRecipient result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(address), put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailRecipient impl_IEmailRecipientFactory::CreateWithName(hstring_ref address, hstring_ref name) const -{ - Windows::ApplicationModel::Email::EmailRecipient result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithName(get(address), get(name), put(result))); - return result; -} - -template hstring impl_IEmailIrmTemplate::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template void impl_IEmailIrmTemplate::Id(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Id(get(value))); -} - -template hstring impl_IEmailIrmTemplate::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IEmailIrmTemplate::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template hstring impl_IEmailIrmTemplate::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IEmailIrmTemplate::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template Windows::ApplicationModel::Email::EmailIrmTemplate impl_IEmailIrmTemplateFactory::Create(hstring_ref id, hstring_ref name, hstring_ref description) const -{ - Windows::ApplicationModel::Email::EmailIrmTemplate result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(id), get(name), get(description), put(result))); - return result; -} - -template bool impl_IEmailIrmInfo::CanEdit() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanEdit(&value)); - return value; -} - -template void impl_IEmailIrmInfo::CanEdit(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanEdit(value)); -} - -template bool impl_IEmailIrmInfo::CanExtractData() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanExtractData(&value)); - return value; -} - -template void impl_IEmailIrmInfo::CanExtractData(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanExtractData(value)); -} - -template bool impl_IEmailIrmInfo::CanForward() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanForward(&value)); - return value; -} - -template void impl_IEmailIrmInfo::CanForward(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanForward(value)); -} - -template bool impl_IEmailIrmInfo::CanModifyRecipientsOnResponse() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanModifyRecipientsOnResponse(&value)); - return value; -} - -template void impl_IEmailIrmInfo::CanModifyRecipientsOnResponse(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanModifyRecipientsOnResponse(value)); -} - -template bool impl_IEmailIrmInfo::CanPrintData() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanPrintData(&value)); - return value; -} - -template void impl_IEmailIrmInfo::CanPrintData(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanPrintData(value)); -} - -template bool impl_IEmailIrmInfo::CanRemoveIrmOnResponse() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanRemoveIrmOnResponse(&value)); - return value; -} - -template void impl_IEmailIrmInfo::CanRemoveIrmOnResponse(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanRemoveIrmOnResponse(value)); -} - -template bool impl_IEmailIrmInfo::CanReply() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanReply(&value)); - return value; -} - -template void impl_IEmailIrmInfo::CanReply(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanReply(value)); -} - -template bool impl_IEmailIrmInfo::CanReplyAll() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanReplyAll(&value)); - return value; -} - -template void impl_IEmailIrmInfo::CanReplyAll(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanReplyAll(value)); -} - -template Windows::Foundation::DateTime impl_IEmailIrmInfo::ExpirationDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ExpirationDate(put(value))); - return value; -} - -template void impl_IEmailIrmInfo::ExpirationDate(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExpirationDate(get(value))); -} - -template bool impl_IEmailIrmInfo::IsIrmOriginator() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsIrmOriginator(&value)); - return value; -} - -template void impl_IEmailIrmInfo::IsIrmOriginator(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsIrmOriginator(value)); -} - -template bool impl_IEmailIrmInfo::IsProgramaticAccessAllowed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsProgramaticAccessAllowed(&value)); - return value; -} - -template void impl_IEmailIrmInfo::IsProgramaticAccessAllowed(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsProgramaticAccessAllowed(value)); -} - -template Windows::ApplicationModel::Email::EmailIrmTemplate impl_IEmailIrmInfo::Template() const -{ - Windows::ApplicationModel::Email::EmailIrmTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Template(put(value))); - return value; -} - -template void impl_IEmailIrmInfo::Template(const Windows::ApplicationModel::Email::EmailIrmTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Template(get(value))); -} - -template Windows::ApplicationModel::Email::EmailIrmInfo impl_IEmailIrmInfoFactory::Create(const Windows::Foundation::DateTime & expiration, const Windows::ApplicationModel::Email::EmailIrmTemplate & irmTemplate) const -{ - Windows::ApplicationModel::Email::EmailIrmInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(expiration), get(irmTemplate), put(result))); - return result; -} - -template hstring impl_IEmailMessage::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template void impl_IEmailMessage::Subject(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Subject(get(value))); -} - -template hstring impl_IEmailMessage::Body() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Body(put(value))); - return value; -} - -template void impl_IEmailMessage::Body(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Body(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IEmailMessage::To() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_To(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IEmailMessage::CC() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_CC(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IEmailMessage::Bcc() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Bcc(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IEmailMessage::Attachments() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Attachments(put(value))); - return value; -} - -template hstring impl_IEmailMessage2::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IEmailMessage2::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template void impl_IEmailMessage2::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template hstring impl_IEmailMessage2::MailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMessage2::ConversationId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ConversationId(put(value))); - return value; -} - -template hstring impl_IEmailMessage2::FolderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FolderId(put(value))); - return value; -} - -template bool impl_IEmailMessage2::AllowInternetImages() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowInternetImages(&value)); - return value; -} - -template void impl_IEmailMessage2::AllowInternetImages(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowInternetImages(value)); -} - -template uint64_t impl_IEmailMessage2::ChangeNumber() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeNumber(&value)); - return value; -} - -template Windows::ApplicationModel::Email::EmailMessageDownloadState impl_IEmailMessage2::DownloadState() const -{ - Windows::ApplicationModel::Email::EmailMessageDownloadState value {}; - check_hresult(static_cast(static_cast(*this))->get_DownloadState(&value)); - return value; -} - -template void impl_IEmailMessage2::DownloadState(Windows::ApplicationModel::Email::EmailMessageDownloadState value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DownloadState(value)); -} - -template uint32_t impl_IEmailMessage2::EstimatedDownloadSizeInBytes() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EstimatedDownloadSizeInBytes(&value)); - return value; -} - -template void impl_IEmailMessage2::EstimatedDownloadSizeInBytes(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EstimatedDownloadSizeInBytes(value)); -} - -template Windows::ApplicationModel::Email::EmailFlagState impl_IEmailMessage2::FlagState() const -{ - Windows::ApplicationModel::Email::EmailFlagState value {}; - check_hresult(static_cast(static_cast(*this))->get_FlagState(&value)); - return value; -} - -template void impl_IEmailMessage2::FlagState(Windows::ApplicationModel::Email::EmailFlagState value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FlagState(value)); -} - -template bool impl_IEmailMessage2::HasPartialBodies() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasPartialBodies(&value)); - return value; -} - -template Windows::ApplicationModel::Email::EmailImportance impl_IEmailMessage2::Importance() const -{ - Windows::ApplicationModel::Email::EmailImportance value {}; - check_hresult(static_cast(static_cast(*this))->get_Importance(&value)); - return value; -} - -template void impl_IEmailMessage2::Importance(Windows::ApplicationModel::Email::EmailImportance value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Importance(value)); -} - -template hstring impl_IEmailMessage2::InResponseToMessageId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InResponseToMessageId(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailIrmInfo impl_IEmailMessage2::IrmInfo() const -{ - Windows::ApplicationModel::Email::EmailIrmInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IrmInfo(put(value))); - return value; -} - -template void impl_IEmailMessage2::IrmInfo(const Windows::ApplicationModel::Email::EmailIrmInfo & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IrmInfo(get(value))); -} - -template bool impl_IEmailMessage2::IsDraftMessage() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDraftMessage(&value)); - return value; -} - -template bool impl_IEmailMessage2::IsRead() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRead(&value)); - return value; -} - -template void impl_IEmailMessage2::IsRead(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsRead(value)); -} - -template bool impl_IEmailMessage2::IsSeen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSeen(&value)); - return value; -} - -template void impl_IEmailMessage2::IsSeen(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSeen(value)); -} - -template bool impl_IEmailMessage2::IsServerSearchMessage() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsServerSearchMessage(&value)); - return value; -} - -template bool impl_IEmailMessage2::IsSmartSendable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSmartSendable(&value)); - return value; -} - -template hstring impl_IEmailMessage2::MessageClass() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MessageClass(put(value))); - return value; -} - -template void impl_IEmailMessage2::MessageClass(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MessageClass(get(value))); -} - -template hstring impl_IEmailMessage2::NormalizedSubject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NormalizedSubject(put(value))); - return value; -} - -template int32_t impl_IEmailMessage2::OriginalCodePage() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OriginalCodePage(&value)); - return value; -} - -template void impl_IEmailMessage2::OriginalCodePage(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OriginalCodePage(value)); -} - -template hstring impl_IEmailMessage2::Preview() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Preview(put(value))); - return value; -} - -template void impl_IEmailMessage2::Preview(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Preview(get(value))); -} - -template Windows::ApplicationModel::Email::EmailMessageResponseKind impl_IEmailMessage2::LastResponseKind() const -{ - Windows::ApplicationModel::Email::EmailMessageResponseKind value {}; - check_hresult(static_cast(static_cast(*this))->get_LastResponseKind(&value)); - return value; -} - -template void impl_IEmailMessage2::LastResponseKind(Windows::ApplicationModel::Email::EmailMessageResponseKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LastResponseKind(value)); -} - -template Windows::ApplicationModel::Email::EmailRecipient impl_IEmailMessage2::Sender() const -{ - Windows::ApplicationModel::Email::EmailRecipient value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Sender(put(value))); - return value; -} - -template void impl_IEmailMessage2::Sender(const Windows::ApplicationModel::Email::EmailRecipient & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Sender(get(value))); -} - -template Windows::Foundation::IReference impl_IEmailMessage2::SentTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_SentTime(put(value))); - return value; -} - -template void impl_IEmailMessage2::SentTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SentTime(get(value))); -} - -template Windows::ApplicationModel::Email::EmailMeetingInfo impl_IEmailMessage2::MeetingInfo() const -{ - Windows::ApplicationModel::Email::EmailMeetingInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MeetingInfo(put(value))); - return value; -} - -template void impl_IEmailMessage2::MeetingInfo(const Windows::ApplicationModel::Email::EmailMeetingInfo & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MeetingInfo(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IEmailMessage2::GetBodyStream(Windows::ApplicationModel::Email::EmailMessageBodyKind type) const -{ - Windows::Storage::Streams::IRandomAccessStreamReference result; - check_hresult(static_cast(static_cast(*this))->abi_GetBodyStream(type, put(result))); - return result; -} - -template void impl_IEmailMessage2::SetBodyStream(Windows::ApplicationModel::Email::EmailMessageBodyKind type, const Windows::Storage::Streams::IRandomAccessStreamReference & stream) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBodyStream(type, get(stream))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IEmailMessage3::SmimeData() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_SmimeData(put(value))); - return value; -} - -template void impl_IEmailMessage3::SmimeData(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SmimeData(get(value))); -} - -template Windows::ApplicationModel::Email::EmailMessageSmimeKind impl_IEmailMessage3::SmimeKind() const -{ - Windows::ApplicationModel::Email::EmailMessageSmimeKind value {}; - check_hresult(static_cast(static_cast(*this))->get_SmimeKind(&value)); - return value; -} - -template void impl_IEmailMessage3::SmimeKind(Windows::ApplicationModel::Email::EmailMessageSmimeKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SmimeKind(value)); -} - -template hstring impl_IEmailAttachment::FileName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FileName(put(value))); - return value; -} - -template void impl_IEmailAttachment::FileName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FileName(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IEmailAttachment::Data() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template void impl_IEmailAttachment::Data(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Data(get(value))); -} - -template hstring impl_IEmailAttachment2::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IEmailAttachment2::ContentId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContentId(put(value))); - return value; -} - -template void impl_IEmailAttachment2::ContentId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentId(get(value))); -} - -template hstring impl_IEmailAttachment2::ContentLocation() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContentLocation(put(value))); - return value; -} - -template void impl_IEmailAttachment2::ContentLocation(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentLocation(get(value))); -} - -template Windows::ApplicationModel::Email::EmailAttachmentDownloadState impl_IEmailAttachment2::DownloadState() const -{ - Windows::ApplicationModel::Email::EmailAttachmentDownloadState value {}; - check_hresult(static_cast(static_cast(*this))->get_DownloadState(&value)); - return value; -} - -template void impl_IEmailAttachment2::DownloadState(Windows::ApplicationModel::Email::EmailAttachmentDownloadState value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DownloadState(value)); -} - -template uint64_t impl_IEmailAttachment2::EstimatedDownloadSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EstimatedDownloadSizeInBytes(&value)); - return value; -} - -template void impl_IEmailAttachment2::EstimatedDownloadSizeInBytes(uint64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EstimatedDownloadSizeInBytes(value)); -} - -template bool impl_IEmailAttachment2::IsFromBaseMessage() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFromBaseMessage(&value)); - return value; -} - -template bool impl_IEmailAttachment2::IsInline() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInline(&value)); - return value; -} - -template void impl_IEmailAttachment2::IsInline(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsInline(value)); -} - -template hstring impl_IEmailAttachment2::MimeType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MimeType(put(value))); - return value; -} - -template void impl_IEmailAttachment2::MimeType(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MimeType(get(value))); -} - -template Windows::ApplicationModel::Email::EmailAttachment impl_IEmailAttachmentFactory::Create(hstring_ref fileName, const Windows::Storage::Streams::IRandomAccessStreamReference & data) const -{ - Windows::ApplicationModel::Email::EmailAttachment result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(fileName), get(data), put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailAttachment impl_IEmailAttachmentFactory2::Create(hstring_ref fileName, const Windows::Storage::Streams::IRandomAccessStreamReference & data, hstring_ref mimeType) const -{ - Windows::ApplicationModel::Email::EmailAttachment result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(fileName), get(data), get(mimeType), put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailMailboxChangedDeferral impl_IEmailMailboxChangedEventArgs::GetDeferral() const -{ - Windows::ApplicationModel::Email::EmailMailboxChangedDeferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -template void impl_IEmailMailboxChangedDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::ApplicationModel::Email::EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation impl_IEmailMailboxPolicies::AllowedSmimeEncryptionAlgorithmNegotiation() const -{ - Windows::ApplicationModel::Email::EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowedSmimeEncryptionAlgorithmNegotiation(&value)); - return value; -} - -template bool impl_IEmailMailboxPolicies::AllowSmimeSoftCertificates() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowSmimeSoftCertificates(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IEmailMailboxPolicies::RequiredSmimeEncryptionAlgorithm() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_RequiredSmimeEncryptionAlgorithm(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IEmailMailboxPolicies::RequiredSmimeSigningAlgorithm() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_RequiredSmimeSigningAlgorithm(put(value))); - return value; -} - -template bool impl_IEmailMailboxPolicies2::MustEncryptSmimeMessages() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_MustEncryptSmimeMessages(&value)); - return value; -} - -template bool impl_IEmailMailboxPolicies2::MustSignSmimeMessages() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_MustSignSmimeMessages(&value)); - return value; -} - -template void impl_IEmailMailboxPolicies3::AllowedSmimeEncryptionAlgorithmNegotiation(Windows::ApplicationModel::Email::EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowedSmimeEncryptionAlgorithmNegotiation(value)); -} - -template void impl_IEmailMailboxPolicies3::AllowSmimeSoftCertificates(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowSmimeSoftCertificates(value)); -} - -template void impl_IEmailMailboxPolicies3::RequiredSmimeEncryptionAlgorithm(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RequiredSmimeEncryptionAlgorithm(get(value))); -} - -template void impl_IEmailMailboxPolicies3::RequiredSmimeSigningAlgorithm(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RequiredSmimeSigningAlgorithm(get(value))); -} - -template void impl_IEmailMailboxPolicies3::MustEncryptSmimeMessages(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MustEncryptSmimeMessages(value)); -} - -template void impl_IEmailMailboxPolicies3::MustSignSmimeMessages(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MustSignSmimeMessages(value)); -} - -template bool impl_IEmailMailboxCapabilities::CanForwardMeetings() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanForwardMeetings(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities::CanGetAndSetExternalAutoReplies() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanGetAndSetExternalAutoReplies(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities::CanGetAndSetInternalAutoReplies() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanGetAndSetInternalAutoReplies(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities::CanUpdateMeetingResponses() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanUpdateMeetingResponses(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities::CanServerSearchFolders() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanServerSearchFolders(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities::CanServerSearchMailbox() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanServerSearchMailbox(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities::CanProposeNewTimeForMeetings() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanProposeNewTimeForMeetings(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities::CanSmartSend() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanSmartSend(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities2::CanResolveRecipients() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanResolveRecipients(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities2::CanValidateCertificates() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanValidateCertificates(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities2::CanEmptyFolder() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanEmptyFolder(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities2::CanCreateFolder() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanCreateFolder(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities2::CanDeleteFolder() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanDeleteFolder(&value)); - return value; -} - -template bool impl_IEmailMailboxCapabilities2::CanMoveFolder() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanMoveFolder(&value)); - return value; -} - -template void impl_IEmailMailboxCapabilities3::CanForwardMeetings(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanForwardMeetings(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanGetAndSetExternalAutoReplies(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanGetAndSetExternalAutoReplies(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanGetAndSetInternalAutoReplies(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanGetAndSetInternalAutoReplies(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanUpdateMeetingResponses(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanUpdateMeetingResponses(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanServerSearchFolders(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanServerSearchFolders(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanServerSearchMailbox(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanServerSearchMailbox(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanProposeNewTimeForMeetings(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanProposeNewTimeForMeetings(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanSmartSend(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanSmartSend(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanResolveRecipients(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanResolveRecipients(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanValidateCertificates(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanValidateCertificates(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanEmptyFolder(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanEmptyFolder(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanCreateFolder(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanCreateFolder(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanDeleteFolder(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanDeleteFolder(value)); -} - -template void impl_IEmailMailboxCapabilities3::CanMoveFolder(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanMoveFolder(value)); -} - -template Windows::ApplicationModel::Email::EmailMailboxCapabilities impl_IEmailMailbox::Capabilities() const -{ - Windows::ApplicationModel::Email::EmailMailboxCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Capabilities(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailMailboxChangeTracker impl_IEmailMailbox::ChangeTracker() const -{ - Windows::ApplicationModel::Email::EmailMailboxChangeTracker value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChangeTracker(put(value))); - return value; -} - -template hstring impl_IEmailMailbox::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IEmailMailbox::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IEmailMailbox::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template bool impl_IEmailMailbox::IsOwnedByCurrentApp() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOwnedByCurrentApp(&value)); - return value; -} - -template bool impl_IEmailMailbox::IsDataEncryptedUnderLock() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDataEncryptedUnderLock(&value)); - return value; -} - -template hstring impl_IEmailMailbox::MailAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MailAddress(put(value))); - return value; -} - -template void impl_IEmailMailbox::MailAddress(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MailAddress(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IEmailMailbox::MailAddressAliases() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_MailAddressAliases(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailMailboxOtherAppReadAccess impl_IEmailMailbox::OtherAppReadAccess() const -{ - Windows::ApplicationModel::Email::EmailMailboxOtherAppReadAccess value {}; - check_hresult(static_cast(static_cast(*this))->get_OtherAppReadAccess(&value)); - return value; -} - -template void impl_IEmailMailbox::OtherAppReadAccess(Windows::ApplicationModel::Email::EmailMailboxOtherAppReadAccess value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OtherAppReadAccess(value)); -} - -template Windows::ApplicationModel::Email::EmailMailboxOtherAppWriteAccess impl_IEmailMailbox::OtherAppWriteAccess() const -{ - Windows::ApplicationModel::Email::EmailMailboxOtherAppWriteAccess value {}; - check_hresult(static_cast(static_cast(*this))->get_OtherAppWriteAccess(&value)); - return value; -} - -template void impl_IEmailMailbox::OtherAppWriteAccess(Windows::ApplicationModel::Email::EmailMailboxOtherAppWriteAccess value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OtherAppWriteAccess(value)); -} - -template Windows::ApplicationModel::Email::EmailMailboxPolicies impl_IEmailMailbox::Policies() const -{ - Windows::ApplicationModel::Email::EmailMailboxPolicies value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Policies(put(value))); - return value; -} - -template hstring impl_IEmailMailbox::SourceDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SourceDisplayName(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailMailboxSyncManager impl_IEmailMailbox::SyncManager() const -{ - Windows::ApplicationModel::Email::EmailMailboxSyncManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SyncManager(put(value))); - return value; -} - -template hstring impl_IEmailMailbox::UserDataAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserDataAccountId(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailConversationReader impl_IEmailMailbox::GetConversationReader() const -{ - Windows::ApplicationModel::Email::EmailConversationReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationReader(put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailConversationReader impl_IEmailMailbox::GetConversationReader(const Windows::ApplicationModel::Email::EmailQueryOptions & options) const -{ - Windows::ApplicationModel::Email::EmailConversationReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationReaderWithOptions(get(options), put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailMessageReader impl_IEmailMailbox::GetMessageReader() const -{ - Windows::ApplicationModel::Email::EmailMessageReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageReader(put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailMessageReader impl_IEmailMailbox::GetMessageReader(const Windows::ApplicationModel::Email::EmailQueryOptions & options) const -{ - Windows::ApplicationModel::Email::EmailMessageReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageReaderWithOptions(get(options), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::DeleteAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::GetConversationAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::GetFolderAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetFolderAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::GetMessageAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::GetSpecialFolderAsync(Windows::ApplicationModel::Email::EmailSpecialFolderKind folderType) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetSpecialFolderAsync(folderType, put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::SaveAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::MarkMessageAsSeenAsync(hstring_ref messageId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkMessageAsSeenAsync(get(messageId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::MarkFolderAsSeenAsync(hstring_ref folderId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkFolderAsSeenAsync(get(folderId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::MarkMessageReadAsync(hstring_ref messageId, bool isRead) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkMessageReadAsync(get(messageId), isRead, put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::ChangeMessageFlagStateAsync(hstring_ref messageId, Windows::ApplicationModel::Email::EmailFlagState flagState) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ChangeMessageFlagStateAsync(get(messageId), flagState, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::TryMoveMessageAsync(hstring_ref messageId, hstring_ref newParentFolderId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryMoveMessageAsync(get(messageId), get(newParentFolderId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::TryMoveFolderAsync(hstring_ref folderId, hstring_ref newParentFolderId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryMoveFolderAsync(get(folderId), get(newParentFolderId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::TryMoveFolderAsync(hstring_ref folderId, hstring_ref newParentFolderId, hstring_ref newFolderName) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryMoveFolderWithNewNameAsync(get(folderId), get(newParentFolderId), get(newFolderName), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::DeleteMessageAsync(hstring_ref messageId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteMessageAsync(get(messageId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::MarkFolderSyncEnabledAsync(hstring_ref folderId, bool isSyncEnabled) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MarkFolderSyncEnabledAsync(get(folderId), isSyncEnabled, put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::SendMessageAsync(const Windows::ApplicationModel::Email::EmailMessage & message) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SendMessageAsync(get(message), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::SaveDraftAsync(const Windows::ApplicationModel::Email::EmailMessage & message) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveDraftAsync(get(message), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::DownloadMessageAsync(hstring_ref messageId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DownloadMessageAsync(get(messageId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::DownloadAttachmentAsync(hstring_ref attachmentId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DownloadAttachmentAsync(get(attachmentId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::CreateResponseMessageAsync(hstring_ref messageId, Windows::ApplicationModel::Email::EmailMessageResponseKind responseType, hstring_ref subject, Windows::ApplicationModel::Email::EmailMessageBodyKind responseHeaderType, hstring_ref responseHeader) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateResponseMessageAsync(get(messageId), responseType, get(subject), responseHeaderType, get(responseHeader), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::TryUpdateMeetingResponseAsync(const Windows::ApplicationModel::Email::EmailMessage & meeting, Windows::ApplicationModel::Email::EmailMeetingResponseType response, hstring_ref subject, hstring_ref comment, bool sendUpdate) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryUpdateMeetingResponseAsync(get(meeting), response, get(subject), get(comment), sendUpdate, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::TryForwardMeetingAsync(const Windows::ApplicationModel::Email::EmailMessage & meeting, const Windows::Foundation::Collections::IIterable & recipients, hstring_ref subject, Windows::ApplicationModel::Email::EmailMessageBodyKind forwardHeaderType, hstring_ref forwardHeader, hstring_ref comment) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryForwardMeetingAsync(get(meeting), get(recipients), get(subject), forwardHeaderType, get(forwardHeader), get(comment), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::TryProposeNewTimeForMeetingAsync(const Windows::ApplicationModel::Email::EmailMessage & meeting, const Windows::Foundation::DateTime & newStartTime, const Windows::Foundation::TimeSpan & newDuration, hstring_ref subject, hstring_ref comment) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryProposeNewTimeForMeetingAsync(get(meeting), get(newStartTime), get(newDuration), get(subject), get(comment), put(result))); - return result; -} - -template event_token impl_IEmailMailbox::MailboxChanged(const Windows::Foundation::TypedEventHandler & pHandler) const -{ - event_token pToken {}; - check_hresult(static_cast(static_cast(*this))->add_MailboxChanged(get(pHandler), &pToken)); - return pToken; -} - -template event_revoker impl_IEmailMailbox::MailboxChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & pHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::IEmailMailbox::remove_MailboxChanged, MailboxChanged(pHandler)); -} - -template void impl_IEmailMailbox::MailboxChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MailboxChanged(token)); -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox::SendMessageAsync(const Windows::ApplicationModel::Email::EmailMessage & message, bool smartSend) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SmartSendMessageAsync(get(message), smartSend, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::TrySetAutoReplySettingsAsync(const Windows::ApplicationModel::Email::EmailMailboxAutoReplySettings & autoReplySettings) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TrySetAutoReplySettingsAsync(get(autoReplySettings), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox::TryGetAutoReplySettingsAsync(Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind requestedFormat) const -{ - Windows::Foundation::IAsyncOperation autoReplySettings; - check_hresult(static_cast(static_cast(*this))->abi_TryGetAutoReplySettingsAsync(requestedFormat, put(autoReplySettings))); - return autoReplySettings; -} - -template hstring impl_IEmailMailbox2::LinkedMailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LinkedMailboxId(put(value))); - return value; -} - -template hstring impl_IEmailMailbox2::NetworkAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NetworkAccountId(put(value))); - return value; -} - -template hstring impl_IEmailMailbox2::NetworkId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NetworkId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IEmailMailbox3::ResolveRecipientsAsync(const Windows::Foundation::Collections::IIterable & recipients) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_ResolveRecipientsAsync(get(recipients), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IEmailMailbox3::ValidateCertificatesAsync(const Windows::Foundation::Collections::IIterable & certificates) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_ValidateCertificatesAsync(get(certificates), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox3::TryEmptyFolderAsync(hstring_ref folderId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryEmptyFolderAsync(get(folderId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox3::TryCreateFolderAsync(hstring_ref parentFolderId, hstring_ref name) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryCreateFolderAsync(get(parentFolderId), get(name), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailbox3::TryDeleteFolderAsync(hstring_ref folderId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryDeleteFolderAsync(get(folderId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailMailbox4::RegisterSyncManagerAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_RegisterSyncManagerAsync(put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailRecipientResolutionStatus impl_IEmailRecipientResolutionResult::Status() const -{ - Windows::ApplicationModel::Email::EmailRecipientResolutionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IEmailRecipientResolutionResult::PublicKeys() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_PublicKeys(put(value))); - return value; -} - -template void impl_IEmailRecipientResolutionResult2::Status(Windows::ApplicationModel::Email::EmailRecipientResolutionStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Status(value)); -} - -template void impl_IEmailRecipientResolutionResult2::SetPublicKeys(const Windows::Foundation::Collections::IIterable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPublicKeys(get(value))); -} - -template Windows::ApplicationModel::Email::EmailMailboxCreateFolderStatus impl_IEmailMailboxCreateFolderResult::Status() const -{ - Windows::ApplicationModel::Email::EmailMailboxCreateFolderStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::ApplicationModel::Email::EmailFolder impl_IEmailMailboxCreateFolderResult::Folder() const -{ - Windows::ApplicationModel::Email::EmailFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Folder(put(value))); - return value; -} - -template bool impl_IEmailMailboxAutoReplySettings::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_IEmailMailboxAutoReplySettings::IsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsEnabled(value)); -} - -template Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind impl_IEmailMailboxAutoReplySettings::ResponseKind() const -{ - Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind value {}; - check_hresult(static_cast(static_cast(*this))->get_ResponseKind(&value)); - return value; -} - -template void impl_IEmailMailboxAutoReplySettings::ResponseKind(Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ResponseKind(value)); -} - -template Windows::Foundation::IReference impl_IEmailMailboxAutoReplySettings::StartTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template void impl_IEmailMailboxAutoReplySettings::StartTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartTime(get(value))); -} - -template Windows::Foundation::IReference impl_IEmailMailboxAutoReplySettings::EndTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_EndTime(put(value))); - return value; -} - -template void impl_IEmailMailboxAutoReplySettings::EndTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EndTime(get(value))); -} - -template Windows::ApplicationModel::Email::EmailMailboxAutoReply impl_IEmailMailboxAutoReplySettings::InternalReply() const -{ - Windows::ApplicationModel::Email::EmailMailboxAutoReply value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InternalReply(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailMailboxAutoReply impl_IEmailMailboxAutoReplySettings::KnownExternalReply() const -{ - Windows::ApplicationModel::Email::EmailMailboxAutoReply value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_KnownExternalReply(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailMailboxAutoReply impl_IEmailMailboxAutoReplySettings::UnknownExternalReply() const -{ - Windows::ApplicationModel::Email::EmailMailboxAutoReply value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UnknownExternalReply(put(value))); - return value; -} - -template bool impl_IEmailMailboxAutoReply::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_IEmailMailboxAutoReply::IsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsEnabled(value)); -} - -template hstring impl_IEmailMailboxAutoReply::Response() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Response(put(value))); - return value; -} - -template void impl_IEmailMailboxAutoReply::Response(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Response(get(value))); -} - -template Windows::ApplicationModel::Email::EmailMailboxSyncStatus impl_IEmailMailboxSyncManager::Status() const -{ - Windows::ApplicationModel::Email::EmailMailboxSyncStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IEmailMailboxSyncManager::LastSuccessfulSyncTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_LastSuccessfulSyncTime(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IEmailMailboxSyncManager::LastAttemptedSyncTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_LastAttemptedSyncTime(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMailboxSyncManager::SyncAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_SyncAsync(put(result))); - return result; -} - -template event_token impl_IEmailMailboxSyncManager::SyncStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SyncStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IEmailMailboxSyncManager::SyncStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Email::IEmailMailboxSyncManager::remove_SyncStatusChanged, SyncStatusChanged(handler)); -} - -template void impl_IEmailMailboxSyncManager::SyncStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SyncStatusChanged(token)); -} - -template void impl_IEmailMailboxSyncManager2::Status(Windows::ApplicationModel::Email::EmailMailboxSyncStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Status(value)); -} - -template void impl_IEmailMailboxSyncManager2::LastSuccessfulSyncTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LastSuccessfulSyncTime(get(value))); -} - -template void impl_IEmailMailboxSyncManager2::LastAttemptedSyncTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LastAttemptedSyncTime(get(value))); -} - -template hstring impl_IEmailFolder::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IEmailFolder::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template void impl_IEmailFolder::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template hstring impl_IEmailFolder::MailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MailboxId(put(value))); - return value; -} - -template hstring impl_IEmailFolder::ParentFolderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ParentFolderId(put(value))); - return value; -} - -template hstring impl_IEmailFolder::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IEmailFolder::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template bool impl_IEmailFolder::IsSyncEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSyncEnabled(&value)); - return value; -} - -template void impl_IEmailFolder::IsSyncEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSyncEnabled(value)); -} - -template Windows::Foundation::DateTime impl_IEmailFolder::LastSuccessfulSyncTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_LastSuccessfulSyncTime(put(value))); - return value; -} - -template void impl_IEmailFolder::LastSuccessfulSyncTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LastSuccessfulSyncTime(get(value))); -} - -template Windows::ApplicationModel::Email::EmailSpecialFolderKind impl_IEmailFolder::Kind() const -{ - Windows::ApplicationModel::Email::EmailSpecialFolderKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailFolder::CreateFolderAsync(hstring_ref name) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateFolderAsync(get(name), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailFolder::DeleteAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IEmailFolder::FindChildFoldersAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindChildFoldersAsync(put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailConversationReader impl_IEmailFolder::GetConversationReader() const -{ - Windows::ApplicationModel::Email::EmailConversationReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationReader(put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailConversationReader impl_IEmailFolder::GetConversationReader(const Windows::ApplicationModel::Email::EmailQueryOptions & options) const -{ - Windows::ApplicationModel::Email::EmailConversationReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetConversationReaderWithOptions(get(options), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailFolder::GetMessageAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageAsync(get(id), put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailMessageReader impl_IEmailFolder::GetMessageReader() const -{ - Windows::ApplicationModel::Email::EmailMessageReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageReader(put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailMessageReader impl_IEmailFolder::GetMessageReader(const Windows::ApplicationModel::Email::EmailQueryOptions & options) const -{ - Windows::ApplicationModel::Email::EmailMessageReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageReaderWithOptions(get(options), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailFolder::GetMessageCountsAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageCountsAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailFolder::TryMoveAsync(const Windows::ApplicationModel::Email::EmailFolder & newParentFolder) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryMoveAsync(get(newParentFolder), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailFolder::TryMoveAsync(const Windows::ApplicationModel::Email::EmailFolder & newParentFolder, hstring_ref newFolderName) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryMoveWithNewNameAsync(get(newParentFolder), get(newFolderName), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailFolder::TrySaveAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TrySaveAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEmailFolder::SaveMessageAsync(const Windows::ApplicationModel::Email::EmailMessage & message) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveMessageAsync(get(message), put(result))); - return result; -} - -template hstring impl_IEmailConversation::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IEmailConversation::MailboxId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MailboxId(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailFlagState impl_IEmailConversation::FlagState() const -{ - Windows::ApplicationModel::Email::EmailFlagState value {}; - check_hresult(static_cast(static_cast(*this))->get_FlagState(&value)); - return value; -} - -template bool impl_IEmailConversation::HasAttachment() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasAttachment(&value)); - return value; -} - -template Windows::ApplicationModel::Email::EmailImportance impl_IEmailConversation::Importance() const -{ - Windows::ApplicationModel::Email::EmailImportance value {}; - check_hresult(static_cast(static_cast(*this))->get_Importance(&value)); - return value; -} - -template Windows::ApplicationModel::Email::EmailMessageResponseKind impl_IEmailConversation::LastEmailResponseKind() const -{ - Windows::ApplicationModel::Email::EmailMessageResponseKind value {}; - check_hresult(static_cast(static_cast(*this))->get_LastEmailResponseKind(&value)); - return value; -} - -template uint32_t impl_IEmailConversation::MessageCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageCount(&value)); - return value; -} - -template hstring impl_IEmailConversation::MostRecentMessageId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MostRecentMessageId(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IEmailConversation::MostRecentMessageTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_MostRecentMessageTime(put(value))); - return value; -} - -template hstring impl_IEmailConversation::Preview() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Preview(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailRecipient impl_IEmailConversation::LatestSender() const -{ - Windows::ApplicationModel::Email::EmailRecipient value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LatestSender(put(value))); - return value; -} - -template hstring impl_IEmailConversation::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template uint32_t impl_IEmailConversation::UnreadMessageCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UnreadMessageCount(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IEmailConversation::FindMessagesAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindMessagesAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IEmailConversation::FindMessagesAsync(uint32_t count) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindMessagesWithCountAsync(count, put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailMailboxActionKind impl_IEmailMailboxAction::Kind() const -{ - Windows::ApplicationModel::Email::EmailMailboxActionKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template uint64_t impl_IEmailMailboxAction::ChangeNumber() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeNumber(&value)); - return value; -} - -template Windows::ApplicationModel::Email::EmailQuerySearchFields impl_IEmailQueryTextSearch::Fields() const -{ - Windows::ApplicationModel::Email::EmailQuerySearchFields value {}; - check_hresult(static_cast(static_cast(*this))->get_Fields(&value)); - return value; -} - -template void impl_IEmailQueryTextSearch::Fields(Windows::ApplicationModel::Email::EmailQuerySearchFields value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Fields(value)); -} - -template Windows::ApplicationModel::Email::EmailQuerySearchScope impl_IEmailQueryTextSearch::SearchScope() const -{ - Windows::ApplicationModel::Email::EmailQuerySearchScope value {}; - check_hresult(static_cast(static_cast(*this))->get_SearchScope(&value)); - return value; -} - -template void impl_IEmailQueryTextSearch::SearchScope(Windows::ApplicationModel::Email::EmailQuerySearchScope value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SearchScope(value)); -} - -template hstring impl_IEmailQueryTextSearch::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_IEmailQueryTextSearch::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template Windows::ApplicationModel::Email::EmailQueryOptions impl_IEmailQueryOptionsFactory::CreateWithText(hstring_ref text) const -{ - Windows::ApplicationModel::Email::EmailQueryOptions result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithText(get(text), put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailQueryOptions impl_IEmailQueryOptionsFactory::CreateWithTextAndFields(hstring_ref text, Windows::ApplicationModel::Email::EmailQuerySearchFields fields) const -{ - Windows::ApplicationModel::Email::EmailQueryOptions result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithTextAndFields(get(text), fields, put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailQueryTextSearch impl_IEmailQueryOptions::TextSearch() const -{ - Windows::ApplicationModel::Email::EmailQueryTextSearch value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextSearch(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailQuerySortDirection impl_IEmailQueryOptions::SortDirection() const -{ - Windows::ApplicationModel::Email::EmailQuerySortDirection value {}; - check_hresult(static_cast(static_cast(*this))->get_SortDirection(&value)); - return value; -} - -template void impl_IEmailQueryOptions::SortDirection(Windows::ApplicationModel::Email::EmailQuerySortDirection value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SortDirection(value)); -} - -template Windows::ApplicationModel::Email::EmailQuerySortProperty impl_IEmailQueryOptions::SortProperty() const -{ - Windows::ApplicationModel::Email::EmailQuerySortProperty value {}; - check_hresult(static_cast(static_cast(*this))->get_SortProperty(&value)); - return value; -} - -template void impl_IEmailQueryOptions::SortProperty(Windows::ApplicationModel::Email::EmailQuerySortProperty value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SortProperty(value)); -} - -template Windows::ApplicationModel::Email::EmailQueryKind impl_IEmailQueryOptions::Kind() const -{ - Windows::ApplicationModel::Email::EmailQueryKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template void impl_IEmailQueryOptions::Kind(Windows::ApplicationModel::Email::EmailQueryKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Kind(value)); -} - -template Windows::Foundation::Collections::IVector impl_IEmailQueryOptions::FolderIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_FolderIds(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IEmailConversationBatch::Conversations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Conversations(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailBatchStatus impl_IEmailConversationBatch::Status() const -{ - Windows::ApplicationModel::Email::EmailBatchStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailConversationReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_IEmailMessageBatch::Messages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Messages(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailBatchStatus impl_IEmailMessageBatch::Status() const -{ - Windows::ApplicationModel::Email::EmailBatchStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IEmailMessageReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(result))); - return result; -} - -template Windows::ApplicationModel::Email::EmailMailboxChangeType impl_IEmailMailboxChange::ChangeType() const -{ - Windows::ApplicationModel::Email::EmailMailboxChangeType value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeType(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IEmailMailboxChange::MailboxActions() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_MailboxActions(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailMessage impl_IEmailMailboxChange::Message() const -{ - Windows::ApplicationModel::Email::EmailMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailFolder impl_IEmailMailboxChange::Folder() const -{ - Windows::ApplicationModel::Email::EmailFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Folder(put(value))); - return value; -} - -template void impl_IEmailMailboxChangeReader::AcceptChanges() const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptChanges()); -} - -template void impl_IEmailMailboxChangeReader::AcceptChangesThrough(const Windows::ApplicationModel::Email::EmailMailboxChange & lastChangeToAcknowledge) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptChangesThrough(get(lastChangeToAcknowledge))); -} - -template Windows::Foundation::IAsyncOperation> impl_IEmailMailboxChangeReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(value))); - return value; -} - -template bool impl_IEmailMailboxChangeTracker::IsTracking() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTracking(&value)); - return value; -} - -template void impl_IEmailMailboxChangeTracker::Enable() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Enable()); -} - -template Windows::ApplicationModel::Email::EmailMailboxChangeReader impl_IEmailMailboxChangeTracker::GetChangeReader() const -{ - Windows::ApplicationModel::Email::EmailMailboxChangeReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetChangeReader(put(value))); - return value; -} - -template void impl_IEmailMailboxChangeTracker::Reset() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Reset()); -} - -template bool impl_IEmailMeetingInfo::AllowNewTimeProposal() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowNewTimeProposal(&value)); - return value; -} - -template void impl_IEmailMeetingInfo::AllowNewTimeProposal(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowNewTimeProposal(value)); -} - -template hstring impl_IEmailMeetingInfo::AppointmentRoamingId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentRoamingId(put(value))); - return value; -} - -template void impl_IEmailMeetingInfo::AppointmentRoamingId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppointmentRoamingId(get(value))); -} - -template Windows::Foundation::IReference impl_IEmailMeetingInfo::AppointmentOriginalStartTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_AppointmentOriginalStartTime(put(value))); - return value; -} - -template void impl_IEmailMeetingInfo::AppointmentOriginalStartTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppointmentOriginalStartTime(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IEmailMeetingInfo::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template void impl_IEmailMeetingInfo::Duration(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Duration(get(value))); -} - -template bool impl_IEmailMeetingInfo::IsAllDay() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAllDay(&value)); - return value; -} - -template void impl_IEmailMeetingInfo::IsAllDay(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsAllDay(value)); -} - -template bool impl_IEmailMeetingInfo::IsResponseRequested() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsResponseRequested(&value)); - return value; -} - -template void impl_IEmailMeetingInfo::IsResponseRequested(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsResponseRequested(value)); -} - -template hstring impl_IEmailMeetingInfo::Location() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template void impl_IEmailMeetingInfo::Location(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Location(get(value))); -} - -template Windows::Foundation::IReference impl_IEmailMeetingInfo::ProposedStartTime() const -{ - Windows::Foundation::IReference proposedStartTime; - check_hresult(static_cast(static_cast(*this))->get_ProposedStartTime(put(proposedStartTime))); - return proposedStartTime; -} - -template void impl_IEmailMeetingInfo::ProposedStartTime(const Windows::Foundation::IReference & proposedStartTime) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProposedStartTime(get(proposedStartTime))); -} - -template Windows::Foundation::IReference impl_IEmailMeetingInfo::ProposedDuration() const -{ - Windows::Foundation::IReference duration; - check_hresult(static_cast(static_cast(*this))->get_ProposedDuration(put(duration))); - return duration; -} - -template void impl_IEmailMeetingInfo::ProposedDuration(const Windows::Foundation::IReference & duration) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProposedDuration(get(duration))); -} - -template Windows::Foundation::IReference impl_IEmailMeetingInfo::RecurrenceStartTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_RecurrenceStartTime(put(value))); - return value; -} - -template void impl_IEmailMeetingInfo::RecurrenceStartTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RecurrenceStartTime(get(value))); -} - -template Windows::ApplicationModel::Appointments::AppointmentRecurrence impl_IEmailMeetingInfo::Recurrence() const -{ - Windows::ApplicationModel::Appointments::AppointmentRecurrence value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Recurrence(put(value))); - return value; -} - -template void impl_IEmailMeetingInfo::Recurrence(const Windows::ApplicationModel::Appointments::AppointmentRecurrence & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Recurrence(get(value))); -} - -template uint64_t impl_IEmailMeetingInfo::RemoteChangeNumber() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RemoteChangeNumber(&value)); - return value; -} - -template void impl_IEmailMeetingInfo::RemoteChangeNumber(uint64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteChangeNumber(value)); -} - -template Windows::Foundation::DateTime impl_IEmailMeetingInfo::StartTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template void impl_IEmailMeetingInfo::StartTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartTime(get(value))); -} - -template bool impl_IEmailMeetingInfo2::IsReportedOutOfDateByServer() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsReportedOutOfDateByServer(&value)); - return value; -} - -template uint32_t impl_IEmailItemCounts::Flagged() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Flagged(&value)); - return value; -} - -template uint32_t impl_IEmailItemCounts::Important() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Important(&value)); - return value; -} - -template uint32_t impl_IEmailItemCounts::Total() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Total(&value)); - return value; -} - -template uint32_t impl_IEmailItemCounts::Unread() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Unread(&value)); - return value; -} - -inline EmailAttachment::EmailAttachment() : - EmailAttachment(activate_instance()) -{} - -inline EmailAttachment::EmailAttachment(hstring_ref fileName, const Windows::Storage::Streams::IRandomAccessStreamReference & data) : - EmailAttachment(get_activation_factory().Create(fileName, data)) -{} - -inline EmailAttachment::EmailAttachment(hstring_ref fileName, const Windows::Storage::Streams::IRandomAccessStreamReference & data, hstring_ref mimeType) : - EmailAttachment(get_activation_factory().Create(fileName, data, mimeType)) -{} - -inline EmailIrmInfo::EmailIrmInfo() : - EmailIrmInfo(activate_instance()) -{} - -inline EmailIrmInfo::EmailIrmInfo(const Windows::Foundation::DateTime & expiration, const Windows::ApplicationModel::Email::EmailIrmTemplate & irmTemplate) : - EmailIrmInfo(get_activation_factory().Create(expiration, irmTemplate)) -{} - -inline EmailIrmTemplate::EmailIrmTemplate() : - EmailIrmTemplate(activate_instance()) -{} - -inline EmailIrmTemplate::EmailIrmTemplate(hstring_ref id, hstring_ref name, hstring_ref description) : - EmailIrmTemplate(get_activation_factory().Create(id, name, description)) -{} - -inline EmailMailboxAutoReplySettings::EmailMailboxAutoReplySettings() : - EmailMailboxAutoReplySettings(activate_instance()) -{} - -inline Windows::Foundation::IAsyncAction EmailManager::ShowComposeNewEmailAsync(const Windows::ApplicationModel::Email::EmailMessage & message) -{ - return get_activation_factory().ShowComposeNewEmailAsync(message); -} - -inline Windows::Foundation::IAsyncOperation EmailManager::RequestStoreAsync(Windows::ApplicationModel::Email::EmailStoreAccessType accessType) -{ - return get_activation_factory().RequestStoreAsync(accessType); -} - -inline Windows::ApplicationModel::Email::EmailManagerForUser EmailManager::GetForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetForUser(user); -} - -inline EmailMeetingInfo::EmailMeetingInfo() : - EmailMeetingInfo(activate_instance()) -{} - -inline EmailMessage::EmailMessage() : - EmailMessage(activate_instance()) -{} - -inline EmailQueryOptions::EmailQueryOptions() : - EmailQueryOptions(activate_instance()) -{} - -inline EmailQueryOptions::EmailQueryOptions(hstring_ref text) : - EmailQueryOptions(get_activation_factory().CreateWithText(text)) -{} - -inline EmailQueryOptions::EmailQueryOptions(hstring_ref text, Windows::ApplicationModel::Email::EmailQuerySearchFields fields) : - EmailQueryOptions(get_activation_factory().CreateWithTextAndFields(text, fields)) -{} - -inline EmailRecipient::EmailRecipient() : - EmailRecipient(activate_instance()) -{} - -inline EmailRecipient::EmailRecipient(hstring_ref address) : - EmailRecipient(get_activation_factory().Create(address)) -{} - -inline EmailRecipient::EmailRecipient(hstring_ref address, hstring_ref name) : - EmailRecipient(get_activation_factory().CreateWithName(address, name)) -{} - -inline EmailRecipientResolutionResult::EmailRecipientResolutionResult() : - EmailRecipientResolutionResult(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.ExtendedExecution.Foreground.h b/10.0.14393.0/winrt/Windows.ApplicationModel.ExtendedExecution.Foreground.h deleted file mode 100644 index 0d579839f..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.ExtendedExecution.Foreground.h +++ /dev/null @@ -1,194 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.ExtendedExecution.Foreground.3.h" -#include "Windows.ApplicationModel.ExtendedExecution.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reason(Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundRevokedReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Revoked(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Revoked(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Revoked(event_token token) noexcept override - { - try - { - this->shim().Revoked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestExtensionAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestExtensionAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Reason(Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Reason(Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundReason value) noexcept override - { - try - { - this->shim().Reason(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::ExtendedExecution::Foreground { - -template Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundRevokedReason impl_IExtendedExecutionForegroundRevokedEventArgs::Reason() const -{ - Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundRevokedReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template hstring impl_IExtendedExecutionForegroundSession::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IExtendedExecutionForegroundSession::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template event_token impl_IExtendedExecutionForegroundSession::Revoked(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Revoked(get(handler), &token)); - return token; -} - -template event_revoker impl_IExtendedExecutionForegroundSession::Revoked(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::ExtendedExecution::Foreground::IExtendedExecutionForegroundSession::remove_Revoked, Revoked(handler)); -} - -template void impl_IExtendedExecutionForegroundSession::Revoked(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Revoked(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IExtendedExecutionForegroundSession::RequestExtensionAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestExtensionAsync(put(operation))); - return operation; -} - -template Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundReason impl_IExtendedExecutionForegroundSession::Reason() const -{ - Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template void impl_IExtendedExecutionForegroundSession::Reason(Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundReason value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Reason(value)); -} - -inline ExtendedExecutionForegroundSession::ExtendedExecutionForegroundSession() : - ExtendedExecutionForegroundSession(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.ExtendedExecution.h b/10.0.14393.0/winrt/Windows.ApplicationModel.ExtendedExecution.h deleted file mode 100644 index b2e032b07..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.ExtendedExecution.h +++ /dev/null @@ -1,232 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.ExtendedExecution.3.h" -#include "Windows.ApplicationModel.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reason(Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionRevokedReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reason(Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Reason(Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionReason value) noexcept override - { - try - { - this->shim().Reason(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PercentProgress(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PercentProgress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PercentProgress(uint32_t value) noexcept override - { - try - { - this->shim().PercentProgress(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Revoked(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Revoked(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Revoked(event_token token) noexcept override - { - try - { - this->shim().Revoked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestExtensionAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestExtensionAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::ExtendedExecution { - -template Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionRevokedReason impl_IExtendedExecutionRevokedEventArgs::Reason() const -{ - Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionRevokedReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionReason impl_IExtendedExecutionSession::Reason() const -{ - Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template void impl_IExtendedExecutionSession::Reason(Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionReason value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Reason(value)); -} - -template hstring impl_IExtendedExecutionSession::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IExtendedExecutionSession::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template uint32_t impl_IExtendedExecutionSession::PercentProgress() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PercentProgress(&value)); - return value; -} - -template void impl_IExtendedExecutionSession::PercentProgress(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PercentProgress(value)); -} - -template event_token impl_IExtendedExecutionSession::Revoked(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Revoked(get(handler), &token)); - return token; -} - -template event_revoker impl_IExtendedExecutionSession::Revoked(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::ExtendedExecution::IExtendedExecutionSession::remove_Revoked, Revoked(handler)); -} - -template void impl_IExtendedExecutionSession::Revoked(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Revoked(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IExtendedExecutionSession::RequestExtensionAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestExtensionAsync(put(operation))); - return operation; -} - -inline ExtendedExecutionSession::ExtendedExecutionSession() : - ExtendedExecutionSession(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.LockScreen.h b/10.0.14393.0/winrt/Windows.ApplicationModel.LockScreen.h deleted file mode 100644 index 52bee7714..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.LockScreen.h +++ /dev/null @@ -1,550 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.LockScreen.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestUnlock() noexcept override - { - try - { - this->shim().RequestUnlock(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Unlocking(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Unlocking(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Unlocking(event_token token) noexcept override - { - try - { - this->shim().Unlocking(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Glyph(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Glyph()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Number(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Number()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutomationName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutomationName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchApp() noexcept override - { - try - { - this->shim().LaunchApp(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_LockScreenImageChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LockScreenImageChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LockScreenImageChanged(event_token token) noexcept override - { - try - { - this->shim().LockScreenImageChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LockScreenImage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LockScreenImage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BadgesChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BadgesChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BadgesChanged(event_token token) noexcept override - { - try - { - this->shim().BadgesChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Badges(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Badges()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DetailTextChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DetailTextChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DetailTextChanged(event_token token) noexcept override - { - try - { - this->shim().DetailTextChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DetailText(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DetailText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AlarmIconChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AlarmIconChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AlarmIconChanged(event_token token) noexcept override - { - try - { - this->shim().AlarmIconChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlarmIcon(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlarmIcon()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::LockScreen { - -template Windows::Storage::Streams::IRandomAccessStream impl_ILockScreenBadge::Logo() const -{ - Windows::Storage::Streams::IRandomAccessStream value; - check_hresult(static_cast(static_cast(*this))->get_Logo(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStream impl_ILockScreenBadge::Glyph() const -{ - Windows::Storage::Streams::IRandomAccessStream value; - check_hresult(static_cast(static_cast(*this))->get_Glyph(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ILockScreenBadge::Number() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Number(put(value))); - return value; -} - -template hstring impl_ILockScreenBadge::AutomationName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AutomationName(put(value))); - return value; -} - -template void impl_ILockScreenBadge::LaunchApp() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LaunchApp()); -} - -template event_token impl_ILockScreenInfo::LockScreenImageChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LockScreenImageChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ILockScreenInfo::LockScreenImageChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::LockScreen::ILockScreenInfo::remove_LockScreenImageChanged, LockScreenImageChanged(handler)); -} - -template void impl_ILockScreenInfo::LockScreenImageChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LockScreenImageChanged(token)); -} - -template Windows::Storage::Streams::IRandomAccessStream impl_ILockScreenInfo::LockScreenImage() const -{ - Windows::Storage::Streams::IRandomAccessStream value; - check_hresult(static_cast(static_cast(*this))->get_LockScreenImage(put(value))); - return value; -} - -template event_token impl_ILockScreenInfo::BadgesChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BadgesChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ILockScreenInfo::BadgesChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::LockScreen::ILockScreenInfo::remove_BadgesChanged, BadgesChanged(handler)); -} - -template void impl_ILockScreenInfo::BadgesChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BadgesChanged(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_ILockScreenInfo::Badges() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Badges(put(value))); - return value; -} - -template event_token impl_ILockScreenInfo::DetailTextChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DetailTextChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ILockScreenInfo::DetailTextChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::LockScreen::ILockScreenInfo::remove_DetailTextChanged, DetailTextChanged(handler)); -} - -template void impl_ILockScreenInfo::DetailTextChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DetailTextChanged(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_ILockScreenInfo::DetailText() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_DetailText(put(value))); - return value; -} - -template event_token impl_ILockScreenInfo::AlarmIconChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AlarmIconChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ILockScreenInfo::AlarmIconChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::LockScreen::ILockScreenInfo::remove_AlarmIconChanged, AlarmIconChanged(handler)); -} - -template void impl_ILockScreenInfo::AlarmIconChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AlarmIconChanged(token)); -} - -template Windows::Storage::Streams::IRandomAccessStream impl_ILockScreenInfo::AlarmIcon() const -{ - Windows::Storage::Streams::IRandomAccessStream value; - check_hresult(static_cast(static_cast(*this))->get_AlarmIcon(put(value))); - return value; -} - -template void impl_ILockScreenUnlockingDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral impl_ILockScreenUnlockingEventArgs::GetDeferral() const -{ - Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template Windows::Foundation::DateTime impl_ILockScreenUnlockingEventArgs::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template void impl_ILockApplicationHost::RequestUnlock() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RequestUnlock()); -} - -template event_token impl_ILockApplicationHost::Unlocking(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Unlocking(get(handler), &token)); - return token; -} - -template event_revoker impl_ILockApplicationHost::Unlocking(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::LockScreen::ILockApplicationHost::remove_Unlocking, Unlocking(handler)); -} - -template void impl_ILockApplicationHost::Unlocking(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Unlocking(token)); -} - -template Windows::ApplicationModel::LockScreen::LockApplicationHost impl_ILockApplicationHostStatics::GetForCurrentView() const -{ - Windows::ApplicationModel::LockScreen::LockApplicationHost result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(result))); - return result; -} - -inline Windows::ApplicationModel::LockScreen::LockApplicationHost LockApplicationHost::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Preview.Notes.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Preview.Notes.h deleted file mode 100644 index 002c4f1b9..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Preview.Notes.h +++ /dev/null @@ -1,424 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Preview.Notes.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ViewId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ViewId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ViewId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ViewId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsScreenLocked(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsScreenLocked()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowNote(int32_t noteViewId) noexcept override - { - try - { - this->shim().ShowNote(noteViewId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowNoteRelativeTo(int32_t noteViewId, int32_t anchorNoteViewId) noexcept override - { - try - { - this->shim().ShowNoteRelativeTo(noteViewId, anchorNoteViewId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowNoteWithPlacement(int32_t noteViewId, abi_arg_in data) noexcept override - { - try - { - this->shim().ShowNoteWithPlacement(noteViewId, *reinterpret_cast(&data)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HideNote(int32_t noteViewId) noexcept override - { - try - { - this->shim().HideNote(noteViewId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNotePlacement(int32_t noteViewId, abi_arg_out data) noexcept override - { - try - { - *data = detach(this->shim().GetNotePlacement(noteViewId)); - return S_OK; - } - catch (...) - { - *data = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetNoteSize(int32_t noteViewId, abi_arg_in size, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TrySetNoteSize(noteViewId, *reinterpret_cast(&size))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetFocusToNextView() noexcept override - { - try - { - this->shim().SetFocusToNextView(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetNotesThumbnailAsync(abi_arg_in thumbnail, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SetNotesThumbnailAsync(*reinterpret_cast(&thumbnail))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SystemLockStateChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SystemLockStateChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SystemLockStateChanged(event_token token) noexcept override - { - try - { - this->shim().SystemLockStateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NotePlacementChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NotePlacementChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NotePlacementChanged(event_token token) noexcept override - { - try - { - this->shim().NotePlacementChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NoteVisibilityChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NoteVisibilityChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NoteVisibilityChanged(event_token token) noexcept override - { - try - { - this->shim().NoteVisibilityChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentApp(abi_arg_out current) noexcept override - { - try - { - *current = detach(this->shim().GetForCurrentApp()); - return S_OK; - } - catch (...) - { - *current = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Preview::Notes { - -template int32_t impl_INotePlacementChangedPreviewEventArgs::ViewId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewId(&value)); - return value; -} - -template int32_t impl_INoteVisibilityChangedPreviewEventArgs::ViewId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewId(&value)); - return value; -} - -template bool impl_INoteVisibilityChangedPreviewEventArgs::IsVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVisible(&value)); - return value; -} - -template bool impl_INotesWindowManagerPreview::IsScreenLocked() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsScreenLocked(&value)); - return value; -} - -template void impl_INotesWindowManagerPreview::ShowNote(int32_t noteViewId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowNote(noteViewId)); -} - -template void impl_INotesWindowManagerPreview::ShowNoteRelativeTo(int32_t noteViewId, int32_t anchorNoteViewId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowNoteRelativeTo(noteViewId, anchorNoteViewId)); -} - -template void impl_INotesWindowManagerPreview::ShowNoteWithPlacement(int32_t noteViewId, const Windows::Storage::Streams::IBuffer & data) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowNoteWithPlacement(noteViewId, get(data))); -} - -template void impl_INotesWindowManagerPreview::HideNote(int32_t noteViewId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_HideNote(noteViewId)); -} - -template Windows::Storage::Streams::IBuffer impl_INotesWindowManagerPreview::GetNotePlacement(int32_t noteViewId) const -{ - Windows::Storage::Streams::IBuffer data; - check_hresult(static_cast(static_cast(*this))->abi_GetNotePlacement(noteViewId, put(data))); - return data; -} - -template bool impl_INotesWindowManagerPreview::TrySetNoteSize(int32_t noteViewId, const Windows::Foundation::Size & size) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetNoteSize(noteViewId, get(size), &succeeded)); - return succeeded; -} - -template void impl_INotesWindowManagerPreview::SetFocusToNextView() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFocusToNextView()); -} - -template Windows::Foundation::IAsyncAction impl_INotesWindowManagerPreview::SetNotesThumbnailAsync(const Windows::Storage::Streams::IBuffer & thumbnail) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SetNotesThumbnailAsync(get(thumbnail), put(operation))); - return operation; -} - -template event_token impl_INotesWindowManagerPreview::SystemLockStateChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SystemLockStateChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_INotesWindowManagerPreview::SystemLockStateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview::remove_SystemLockStateChanged, SystemLockStateChanged(handler)); -} - -template void impl_INotesWindowManagerPreview::SystemLockStateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SystemLockStateChanged(token)); -} - -template event_token impl_INotesWindowManagerPreview::NotePlacementChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NotePlacementChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_INotesWindowManagerPreview::NotePlacementChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview::remove_NotePlacementChanged, NotePlacementChanged(handler)); -} - -template void impl_INotesWindowManagerPreview::NotePlacementChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NotePlacementChanged(token)); -} - -template event_token impl_INotesWindowManagerPreview::NoteVisibilityChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NoteVisibilityChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_INotesWindowManagerPreview::NoteVisibilityChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview::remove_NoteVisibilityChanged, NoteVisibilityChanged(handler)); -} - -template void impl_INotesWindowManagerPreview::NoteVisibilityChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NoteVisibilityChanged(token)); -} - -template Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview impl_INotesWindowManagerPreviewStatics::GetForCurrentApp() const -{ - Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview current { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentApp(put(current))); - return current; -} - -inline Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview NotesWindowManagerPreview::GetForCurrentApp() -{ - return get_activation_factory().GetForCurrentApp(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Resources.Core.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Resources.Core.h deleted file mode 100644 index 60975e01b..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Resources.Core.h +++ /dev/null @@ -1,1048 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Resources.Core.3.h" -#include "Windows.ApplicationModel.Resources.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out uri) noexcept override - { - try - { - *uri = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *uri = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Candidates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Candidates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Resolve(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Resolve()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResolveForContext(abi_arg_in resourceContext, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Resolve(*reinterpret_cast(&resourceContext))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResolveAll(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ResolveAll()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResolveAllForContext(abi_arg_in resourceContext, abi_arg_out> instances) noexcept override - { - try - { - *instances = detach(this->shim().ResolveAll(*reinterpret_cast(&resourceContext))); - return S_OK; - } - catch (...) - { - *instances = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Qualifiers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Qualifiers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMatch(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMatch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMatchAsDefault(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMatchAsDefault()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDefault(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDefault()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ValueAsString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ValueAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetValueAsFileAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetValueAsFileAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetQualifierValue(abi_arg_in qualifierName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetQualifierValue(*reinterpret_cast(&qualifierName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetValueAsStreamAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetValueAsStreamAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QualifierValues(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().QualifierValues()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Reset() noexcept override - { - try - { - this->shim().Reset(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetQualifierValues(abi_arg_in> qualifierNames) noexcept override - { - try - { - this->shim().Reset(*reinterpret_cast *>(&qualifierNames)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OverrideToMatch(abi_arg_in> result) noexcept override - { - try - { - this->shim().OverrideToMatch(*reinterpret_cast *>(&result)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clone(abi_arg_out clone) noexcept override - { - try - { - *clone = detach(this->shim().Clone()); - return S_OK; - } - catch (...) - { - *clone = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Languages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Languages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Languages(abi_arg_in> languages) noexcept override - { - try - { - this->shim().Languages(*reinterpret_cast *>(&languages)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMatchingContext(abi_arg_in> result, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMatchingContext(*reinterpret_cast *>(&result))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetGlobalQualifierValue(abi_arg_in key, abi_arg_in value) noexcept override - { - try - { - this->shim().SetGlobalQualifierValue(*reinterpret_cast(&key), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetGlobalQualifierValues() noexcept override - { - try - { - this->shim().ResetGlobalQualifierValues(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetGlobalQualifierValuesForSpecifiedQualifiers(abi_arg_in> qualifierNames) noexcept override - { - try - { - this->shim().ResetGlobalQualifierValues(*reinterpret_cast *>(&qualifierNames)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetForViewIndependentUse(abi_arg_out loader) noexcept override - { - try - { - *loader = detach(this->shim().GetForViewIndependentUse()); - return S_OK; - } - catch (...) - { - *loader = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetGlobalQualifierValueWithPersistence(abi_arg_in key, abi_arg_in value, Windows::ApplicationModel::Resources::Core::ResourceQualifierPersistence persistence) noexcept override - { - try - { - this->shim().SetGlobalQualifierValue(*reinterpret_cast(&key), *reinterpret_cast(&value), persistence); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MainResourceMap(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MainResourceMap()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllResourceMaps(abi_arg_out> maps) noexcept override - { - try - { - *maps = detach(this->shim().AllResourceMaps()); - return S_OK; - } - catch (...) - { - *maps = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultContext(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultContext()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadPriFiles(abi_arg_in> files) noexcept override - { - try - { - this->shim().LoadPriFiles(*reinterpret_cast *>(&files)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnloadPriFiles(abi_arg_in> files) noexcept override - { - try - { - this->shim().UnloadPriFiles(*reinterpret_cast *>(&files)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAllNamedResourcesForPackage(abi_arg_in packageName, abi_arg_in resourceLayoutInfo, abi_arg_out> table) noexcept override - { - try - { - *table = detach(this->shim().GetAllNamedResourcesForPackage(*reinterpret_cast(&packageName), *reinterpret_cast(&resourceLayoutInfo))); - return S_OK; - } - catch (...) - { - *table = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAllSubtreesForPackage(abi_arg_in packageName, abi_arg_in resourceLayoutInfo, abi_arg_out> table) noexcept override - { - try - { - *table = detach(this->shim().GetAllSubtreesForPackage(*reinterpret_cast(&packageName), *reinterpret_cast(&resourceLayoutInfo))); - return S_OK; - } - catch (...) - { - *table = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Current(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Current()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsResourceReference(abi_arg_in resourceReference, bool * isReference) noexcept override - { - try - { - *isReference = detach(this->shim().IsResourceReference(*reinterpret_cast(&resourceReference))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out uri) noexcept override - { - try - { - *uri = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *uri = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetValue(abi_arg_in resource, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetValue(*reinterpret_cast(&resource))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetValueForContext(abi_arg_in resource, abi_arg_in context, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetValue(*reinterpret_cast(&resource), *reinterpret_cast(&context))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSubtree(abi_arg_in reference, abi_arg_out map) noexcept override - { - try - { - *map = detach(this->shim().GetSubtree(*reinterpret_cast(&reference))); - return S_OK; - } - catch (...) - { - *map = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QualifierName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QualifierName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QualifierValue(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QualifierValue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDefault(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDefault()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMatch(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMatch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Score(double * value) noexcept override - { - try - { - *value = detach(this->shim().Score()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Resources::Core { - -template Windows::ApplicationModel::Resources::Core::ResourceMap impl_IResourceManager::MainResourceMap() const -{ - Windows::ApplicationModel::Resources::Core::ResourceMap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MainResourceMap(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IResourceManager::AllResourceMaps() const -{ - Windows::Foundation::Collections::IMapView maps; - check_hresult(static_cast(static_cast(*this))->get_AllResourceMaps(put(maps))); - return maps; -} - -template Windows::ApplicationModel::Resources::Core::ResourceContext impl_IResourceManager::DefaultContext() const -{ - Windows::ApplicationModel::Resources::Core::ResourceContext value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DefaultContext(put(value))); - return value; -} - -template void impl_IResourceManager::LoadPriFiles(const Windows::Foundation::Collections::IIterable & files) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LoadPriFiles(get(files))); -} - -template void impl_IResourceManager::UnloadPriFiles(const Windows::Foundation::Collections::IIterable & files) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UnloadPriFiles(get(files))); -} - -template Windows::Foundation::Collections::IVectorView impl_IResourceManager2::GetAllNamedResourcesForPackage(hstring_ref packageName, const Windows::ApplicationModel::Resources::Core::ResourceLayoutInfo & resourceLayoutInfo) const -{ - Windows::Foundation::Collections::IVectorView table; - check_hresult(static_cast(static_cast(*this))->abi_GetAllNamedResourcesForPackage(get(packageName), get(resourceLayoutInfo), put(table))); - return table; -} - -template Windows::Foundation::Collections::IVectorView impl_IResourceManager2::GetAllSubtreesForPackage(hstring_ref packageName, const Windows::ApplicationModel::Resources::Core::ResourceLayoutInfo & resourceLayoutInfo) const -{ - Windows::Foundation::Collections::IVectorView table; - check_hresult(static_cast(static_cast(*this))->abi_GetAllSubtreesForPackage(get(packageName), get(resourceLayoutInfo), put(table))); - return table; -} - -template Windows::ApplicationModel::Resources::Core::ResourceManager impl_IResourceManagerStatics::Current() const -{ - Windows::ApplicationModel::Resources::Core::ResourceManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Current(put(value))); - return value; -} - -template bool impl_IResourceManagerStatics::IsResourceReference(hstring_ref resourceReference) const -{ - bool isReference {}; - check_hresult(static_cast(static_cast(*this))->abi_IsResourceReference(get(resourceReference), &isReference)); - return isReference; -} - -template hstring impl_IResourceQualifier::QualifierName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QualifierName(put(value))); - return value; -} - -template hstring impl_IResourceQualifier::QualifierValue() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QualifierValue(put(value))); - return value; -} - -template bool impl_IResourceQualifier::IsDefault() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDefault(&value)); - return value; -} - -template bool impl_IResourceQualifier::IsMatch() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMatch(&value)); - return value; -} - -template double impl_IResourceQualifier::Score() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Score(&value)); - return value; -} - -template Windows::Foundation::Collections::IObservableMap impl_IResourceContext::QualifierValues() const -{ - Windows::Foundation::Collections::IObservableMap value; - check_hresult(static_cast(static_cast(*this))->get_QualifierValues(put(value))); - return value; -} - -template void impl_IResourceContext::Reset() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Reset()); -} - -template void impl_IResourceContext::Reset(const Windows::Foundation::Collections::IIterable & qualifierNames) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ResetQualifierValues(get(qualifierNames))); -} - -template void impl_IResourceContext::OverrideToMatch(const Windows::Foundation::Collections::IIterable & result) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OverrideToMatch(get(result))); -} - -template Windows::ApplicationModel::Resources::Core::ResourceContext impl_IResourceContext::Clone() const -{ - Windows::ApplicationModel::Resources::Core::ResourceContext clone { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Clone(put(clone))); - return clone; -} - -template Windows::Foundation::Collections::IVectorView impl_IResourceContext::Languages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Languages(put(value))); - return value; -} - -template void impl_IResourceContext::Languages(const Windows::Foundation::Collections::IVectorView & languages) const -{ - check_hresult(static_cast(static_cast(*this))->put_Languages(get(languages))); -} - -template Windows::ApplicationModel::Resources::Core::ResourceContext impl_IResourceContextStatics::CreateMatchingContext(const Windows::Foundation::Collections::IIterable & result) const -{ - Windows::ApplicationModel::Resources::Core::ResourceContext value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMatchingContext(get(result), put(value))); - return value; -} - -template Windows::ApplicationModel::Resources::Core::ResourceContext impl_IResourceContextStatics2::GetForCurrentView() const -{ - Windows::ApplicationModel::Resources::Core::ResourceContext value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(value))); - return value; -} - -template void impl_IResourceContextStatics2::SetGlobalQualifierValue(hstring_ref key, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetGlobalQualifierValue(get(key), get(value))); -} - -template void impl_IResourceContextStatics2::ResetGlobalQualifierValues() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ResetGlobalQualifierValues()); -} - -template void impl_IResourceContextStatics2::ResetGlobalQualifierValues(const Windows::Foundation::Collections::IIterable & qualifierNames) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ResetGlobalQualifierValuesForSpecifiedQualifiers(get(qualifierNames))); -} - -template Windows::ApplicationModel::Resources::Core::ResourceContext impl_IResourceContextStatics2::GetForViewIndependentUse() const -{ - Windows::ApplicationModel::Resources::Core::ResourceContext loader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForViewIndependentUse(put(loader))); - return loader; -} - -template void impl_IResourceContextStatics3::SetGlobalQualifierValue(hstring_ref key, hstring_ref value, Windows::ApplicationModel::Resources::Core::ResourceQualifierPersistence persistence) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetGlobalQualifierValueWithPersistence(get(key), get(value), persistence)); -} - -template Windows::Foundation::Collections::IVectorView impl_IResourceCandidate::Qualifiers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Qualifiers(put(value))); - return value; -} - -template bool impl_IResourceCandidate::IsMatch() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMatch(&value)); - return value; -} - -template bool impl_IResourceCandidate::IsMatchAsDefault() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMatchAsDefault(&value)); - return value; -} - -template bool impl_IResourceCandidate::IsDefault() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDefault(&value)); - return value; -} - -template hstring impl_IResourceCandidate::ValueAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->get_ValueAsString(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IResourceCandidate::GetValueAsFileAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetValueAsFileAsync(put(operation))); - return operation; -} - -template hstring impl_IResourceCandidate::GetQualifierValue(hstring_ref qualifierName) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetQualifierValue(get(qualifierName), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IResourceCandidate2::GetValueAsStreamAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetValueAsStreamAsync(put(operation))); - return operation; -} - -template Windows::Foundation::Uri impl_INamedResource::Uri() const -{ - Windows::Foundation::Uri uri { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(uri))); - return uri; -} - -template Windows::Foundation::Collections::IVectorView impl_INamedResource::Candidates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Candidates(put(value))); - return value; -} - -template Windows::ApplicationModel::Resources::Core::ResourceCandidate impl_INamedResource::Resolve() const -{ - Windows::ApplicationModel::Resources::Core::ResourceCandidate result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Resolve(put(result))); - return result; -} - -template Windows::ApplicationModel::Resources::Core::ResourceCandidate impl_INamedResource::Resolve(const Windows::ApplicationModel::Resources::Core::ResourceContext & resourceContext) const -{ - Windows::ApplicationModel::Resources::Core::ResourceCandidate result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ResolveForContext(get(resourceContext), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_INamedResource::ResolveAll() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_ResolveAll(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_INamedResource::ResolveAll(const Windows::ApplicationModel::Resources::Core::ResourceContext & resourceContext) const -{ - Windows::Foundation::Collections::IVectorView instances; - check_hresult(static_cast(static_cast(*this))->abi_ResolveAllForContext(get(resourceContext), put(instances))); - return instances; -} - -template Windows::Foundation::Uri impl_IResourceMap::Uri() const -{ - Windows::Foundation::Uri uri { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(uri))); - return uri; -} - -template Windows::ApplicationModel::Resources::Core::ResourceCandidate impl_IResourceMap::GetValue(hstring_ref resource) const -{ - Windows::ApplicationModel::Resources::Core::ResourceCandidate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetValue(get(resource), put(value))); - return value; -} - -template Windows::ApplicationModel::Resources::Core::ResourceCandidate impl_IResourceMap::GetValue(hstring_ref resource, const Windows::ApplicationModel::Resources::Core::ResourceContext & context) const -{ - Windows::ApplicationModel::Resources::Core::ResourceCandidate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetValueForContext(get(resource), get(context), put(value))); - return value; -} - -template Windows::ApplicationModel::Resources::Core::ResourceMap impl_IResourceMap::GetSubtree(hstring_ref reference) const -{ - Windows::ApplicationModel::Resources::Core::ResourceMap map { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetSubtree(get(reference), put(map))); - return map; -} - -inline ResourceContext::ResourceContext() : - ResourceContext(activate_instance()) -{} - -inline Windows::ApplicationModel::Resources::Core::ResourceContext ResourceContext::CreateMatchingContext(const Windows::Foundation::Collections::IIterable & result) -{ - return get_activation_factory().CreateMatchingContext(result); -} - -inline Windows::ApplicationModel::Resources::Core::ResourceContext ResourceContext::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline void ResourceContext::SetGlobalQualifierValue(hstring_ref key, hstring_ref value) -{ - get_activation_factory().SetGlobalQualifierValue(key, value); -} - -inline void ResourceContext::ResetGlobalQualifierValues() -{ - get_activation_factory().ResetGlobalQualifierValues(); -} - -inline void ResourceContext::ResetGlobalQualifierValues(const Windows::Foundation::Collections::IIterable & qualifierNames) -{ - get_activation_factory().ResetGlobalQualifierValues(qualifierNames); -} - -inline Windows::ApplicationModel::Resources::Core::ResourceContext ResourceContext::GetForViewIndependentUse() -{ - return get_activation_factory().GetForViewIndependentUse(); -} - -inline void ResourceContext::SetGlobalQualifierValue(hstring_ref key, hstring_ref value, Windows::ApplicationModel::Resources::Core::ResourceQualifierPersistence persistence) -{ - get_activation_factory().SetGlobalQualifierValue(key, value, persistence); -} - -inline Windows::ApplicationModel::Resources::Core::ResourceManager ResourceManager::Current() -{ - return get_activation_factory().Current(); -} - -inline bool ResourceManager::IsResourceReference(hstring_ref resourceReference) -{ - return get_activation_factory().IsResourceReference(resourceReference); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Resources.Management.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Resources.Management.h deleted file mode 100644 index 693f70bc9..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Resources.Management.h +++ /dev/null @@ -1,300 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.Resources.Management.3.h" -#include "Windows.ApplicationModel.Resources.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::ApplicationModel::Resources::Management::IndexedResourceType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Metadata(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Metadata()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Qualifiers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Qualifiers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ValueAsString(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ValueAsString()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetQualifierValue(abi_arg_in qualifierName, abi_arg_out qualifierValue) noexcept override - { - try - { - *qualifierValue = detach(this->shim().GetQualifierValue(*reinterpret_cast(&qualifierName))); - return S_OK; - } - catch (...) - { - *qualifierValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QualifierName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QualifierName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QualifierValue(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QualifierValue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IndexFilePath(abi_arg_in filePath, abi_arg_out candidate) noexcept override - { - try - { - *candidate = detach(this->shim().IndexFilePath(*reinterpret_cast(&filePath))); - return S_OK; - } - catch (...) - { - *candidate = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IndexFileContentsAsync(abi_arg_in file, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().IndexFileContentsAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateResourceIndexer(abi_arg_in projectRoot, abi_arg_out indexer) noexcept override - { - try - { - *indexer = detach(this->shim().CreateResourceIndexer(*reinterpret_cast(&projectRoot))); - return S_OK; - } - catch (...) - { - *indexer = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateResourceIndexerWithExtension(abi_arg_in projectRoot, abi_arg_in extensionDllPath, abi_arg_out indexer) noexcept override - { - try - { - *indexer = detach(this->shim().CreateResourceIndexerWithExtension(*reinterpret_cast(&projectRoot), *reinterpret_cast(&extensionDllPath))); - return S_OK; - } - catch (...) - { - *indexer = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Resources::Management { - -template Windows::ApplicationModel::Resources::Management::IndexedResourceCandidate impl_IResourceIndexer::IndexFilePath(const Windows::Foundation::Uri & filePath) const -{ - Windows::ApplicationModel::Resources::Management::IndexedResourceCandidate candidate { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_IndexFilePath(get(filePath), put(candidate))); - return candidate; -} - -template Windows::Foundation::IAsyncOperation> impl_IResourceIndexer::IndexFileContentsAsync(const Windows::Foundation::Uri & file) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_IndexFileContentsAsync(get(file), put(operation))); - return operation; -} - -template Windows::ApplicationModel::Resources::Management::ResourceIndexer impl_IResourceIndexerFactory::CreateResourceIndexer(const Windows::Foundation::Uri & projectRoot) const -{ - Windows::ApplicationModel::Resources::Management::ResourceIndexer indexer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateResourceIndexer(get(projectRoot), put(indexer))); - return indexer; -} - -template Windows::ApplicationModel::Resources::Management::ResourceIndexer impl_IResourceIndexerFactory2::CreateResourceIndexerWithExtension(const Windows::Foundation::Uri & projectRoot, const Windows::Foundation::Uri & extensionDllPath) const -{ - Windows::ApplicationModel::Resources::Management::ResourceIndexer indexer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateResourceIndexerWithExtension(get(projectRoot), get(extensionDllPath), put(indexer))); - return indexer; -} - -template hstring impl_IIndexedResourceQualifier::QualifierName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QualifierName(put(value))); - return value; -} - -template hstring impl_IIndexedResourceQualifier::QualifierValue() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QualifierValue(put(value))); - return value; -} - -template Windows::ApplicationModel::Resources::Management::IndexedResourceType impl_IIndexedResourceCandidate::Type() const -{ - Windows::ApplicationModel::Resources::Management::IndexedResourceType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::Foundation::Uri impl_IIndexedResourceCandidate::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IIndexedResourceCandidate::Metadata() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Metadata(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IIndexedResourceCandidate::Qualifiers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Qualifiers(put(value))); - return value; -} - -template hstring impl_IIndexedResourceCandidate::ValueAsString() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ValueAsString(put(value))); - return value; -} - -template hstring impl_IIndexedResourceCandidate::GetQualifierValue(hstring_ref qualifierName) const -{ - hstring qualifierValue; - check_hresult(static_cast(static_cast(*this))->abi_GetQualifierValue(get(qualifierName), put(qualifierValue))); - return qualifierValue; -} - -inline ResourceIndexer::ResourceIndexer(const Windows::Foundation::Uri & projectRoot, const Windows::Foundation::Uri & extensionDllPath) : - ResourceIndexer(get_activation_factory().CreateResourceIndexerWithExtension(projectRoot, extensionDllPath)) -{} - -inline ResourceIndexer::ResourceIndexer(const Windows::Foundation::Uri & projectRoot) : - ResourceIndexer(get_activation_factory().CreateResourceIndexer(projectRoot)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Resources.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Resources.h deleted file mode 100644 index a47c2286d..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Resources.h +++ /dev/null @@ -1,241 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Resources.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetString(abi_arg_in resource, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetString(*reinterpret_cast(&resource))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetStringForUri(abi_arg_in uri, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetStringForUri(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateResourceLoaderByName(abi_arg_in name, abi_arg_out loader) noexcept override - { - try - { - *loader = detach(this->shim().CreateResourceLoaderByName(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *loader = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetStringForReference(abi_arg_in uri, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetStringForReference(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out loader) noexcept override - { - try - { - *loader = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *loader = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetForCurrentViewWithName(abi_arg_in name, abi_arg_out loader) noexcept override - { - try - { - *loader = detach(this->shim().GetForCurrentView(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *loader = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetForViewIndependentUse(abi_arg_out loader) noexcept override - { - try - { - *loader = detach(this->shim().GetForViewIndependentUse()); - return S_OK; - } - catch (...) - { - *loader = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetForViewIndependentUseWithName(abi_arg_in name, abi_arg_out loader) noexcept override - { - try - { - *loader = detach(this->shim().GetForViewIndependentUse(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *loader = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Resources { - -template hstring impl_IResourceLoader::GetString(hstring_ref resource) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetString(get(resource), put(value))); - return value; -} - -template hstring impl_IResourceLoader2::GetStringForUri(const Windows::Foundation::Uri & uri) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetStringForUri(get(uri), put(value))); - return value; -} - -template hstring impl_IResourceLoaderStatics::GetStringForReference(const Windows::Foundation::Uri & uri) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetStringForReference(get(uri), put(value))); - return value; -} - -template Windows::ApplicationModel::Resources::ResourceLoader impl_IResourceLoaderStatics2::GetForCurrentView() const -{ - Windows::ApplicationModel::Resources::ResourceLoader loader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(loader))); - return loader; -} - -template Windows::ApplicationModel::Resources::ResourceLoader impl_IResourceLoaderStatics2::GetForCurrentView(hstring_ref name) const -{ - Windows::ApplicationModel::Resources::ResourceLoader loader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentViewWithName(get(name), put(loader))); - return loader; -} - -template Windows::ApplicationModel::Resources::ResourceLoader impl_IResourceLoaderStatics2::GetForViewIndependentUse() const -{ - Windows::ApplicationModel::Resources::ResourceLoader loader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForViewIndependentUse(put(loader))); - return loader; -} - -template Windows::ApplicationModel::Resources::ResourceLoader impl_IResourceLoaderStatics2::GetForViewIndependentUse(hstring_ref name) const -{ - Windows::ApplicationModel::Resources::ResourceLoader loader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForViewIndependentUseWithName(get(name), put(loader))); - return loader; -} - -template Windows::ApplicationModel::Resources::ResourceLoader impl_IResourceLoaderFactory::CreateResourceLoaderByName(hstring_ref name) const -{ - Windows::ApplicationModel::Resources::ResourceLoader loader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateResourceLoaderByName(get(name), put(loader))); - return loader; -} - -inline ResourceLoader::ResourceLoader() : - ResourceLoader(activate_instance()) -{} - -inline ResourceLoader::ResourceLoader(hstring_ref name) : - ResourceLoader(get_activation_factory().CreateResourceLoaderByName(name)) -{} - -inline hstring ResourceLoader::GetStringForReference(const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().GetStringForReference(uri); -} - -inline Windows::ApplicationModel::Resources::ResourceLoader ResourceLoader::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline Windows::ApplicationModel::Resources::ResourceLoader ResourceLoader::GetForCurrentView(hstring_ref name) -{ - return get_activation_factory().GetForCurrentView(name); -} - -inline Windows::ApplicationModel::Resources::ResourceLoader ResourceLoader::GetForViewIndependentUse() -{ - return get_activation_factory().GetForViewIndependentUse(); -} - -inline Windows::ApplicationModel::Resources::ResourceLoader ResourceLoader::GetForViewIndependentUse(hstring_ref name) -{ - return get_activation_factory().GetForViewIndependentUse(name); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Search.Core.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Search.Core.h deleted file mode 100644 index 96e2d2763..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Search.Core.h +++ /dev/null @@ -1,562 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.ApplicationModel.Search.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Search.Core.3.h" -#include "Windows.ApplicationModel.Search.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Search::Core::SearchSuggestionKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DetailText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DetailText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Image(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Image()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImageAlternateText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImageAlternateText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SearchHistoryEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SearchHistoryEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SearchHistoryEnabled(bool value) noexcept override - { - try - { - this->shim().SearchHistoryEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SearchHistoryContext(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SearchHistoryContext()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SearchHistoryContext(abi_arg_in value) noexcept override - { - try - { - this->shim().SearchHistoryContext(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLocalContentSuggestionSettings(abi_arg_in settings) noexcept override - { - try - { - this->shim().SetLocalContentSuggestionSettings(*reinterpret_cast(&settings)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetQuery(abi_arg_in queryText) noexcept override - { - try - { - this->shim().SetQuery(*reinterpret_cast(&queryText)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetQueryWithLanguage(abi_arg_in queryText, abi_arg_in language) noexcept override - { - try - { - this->shim().SetQuery(*reinterpret_cast(&queryText), *reinterpret_cast(&language)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetQueryWithSearchQueryLinguisticDetails(abi_arg_in queryText, abi_arg_in language, abi_arg_in linguisticDetails) noexcept override - { - try - { - this->shim().SetQuery(*reinterpret_cast(&queryText), *reinterpret_cast(&language), *reinterpret_cast(&linguisticDetails)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Suggestions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Suggestions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddToHistory(abi_arg_in queryText) noexcept override - { - try - { - this->shim().AddToHistory(*reinterpret_cast(&queryText)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddToHistoryWithLanguage(abi_arg_in queryText, abi_arg_in language) noexcept override - { - try - { - this->shim().AddToHistory(*reinterpret_cast(&queryText), *reinterpret_cast(&language)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearHistory() noexcept override - { - try - { - this->shim().ClearHistory(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SuggestionsRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SuggestionsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SuggestionsRequested(event_token token) noexcept override - { - try - { - this->shim().SuggestionsRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RequestingFocusOnKeyboardInput(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RequestingFocusOnKeyboardInput(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RequestingFocusOnKeyboardInput(event_token token) noexcept override - { - try - { - this->shim().RequestingFocusOnKeyboardInput(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinguisticDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LinguisticDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Search::Core { - -template Windows::ApplicationModel::Search::Core::SearchSuggestionKind impl_ISearchSuggestion::Kind() const -{ - Windows::ApplicationModel::Search::Core::SearchSuggestionKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template hstring impl_ISearchSuggestion::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template hstring impl_ISearchSuggestion::Tag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Tag(put(value))); - return value; -} - -template hstring impl_ISearchSuggestion::DetailText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DetailText(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_ISearchSuggestion::Image() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Image(put(value))); - return value; -} - -template hstring impl_ISearchSuggestion::ImageAlternateText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ImageAlternateText(put(value))); - return value; -} - -template hstring impl_ISearchSuggestionsRequestedEventArgs::QueryText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QueryText(put(value))); - return value; -} - -template hstring impl_ISearchSuggestionsRequestedEventArgs::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template Windows::ApplicationModel::Search::SearchQueryLinguisticDetails impl_ISearchSuggestionsRequestedEventArgs::LinguisticDetails() const -{ - Windows::ApplicationModel::Search::SearchQueryLinguisticDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LinguisticDetails(put(value))); - return value; -} - -template Windows::ApplicationModel::Search::SearchSuggestionsRequest impl_ISearchSuggestionsRequestedEventArgs::Request() const -{ - Windows::ApplicationModel::Search::SearchSuggestionsRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template bool impl_ISearchSuggestionManager::SearchHistoryEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SearchHistoryEnabled(&value)); - return value; -} - -template void impl_ISearchSuggestionManager::SearchHistoryEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SearchHistoryEnabled(value)); -} - -template hstring impl_ISearchSuggestionManager::SearchHistoryContext() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SearchHistoryContext(put(value))); - return value; -} - -template void impl_ISearchSuggestionManager::SearchHistoryContext(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SearchHistoryContext(get(value))); -} - -template void impl_ISearchSuggestionManager::SetLocalContentSuggestionSettings(const Windows::ApplicationModel::Search::LocalContentSuggestionSettings & settings) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLocalContentSuggestionSettings(get(settings))); -} - -template void impl_ISearchSuggestionManager::SetQuery(hstring_ref queryText) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetQuery(get(queryText))); -} - -template void impl_ISearchSuggestionManager::SetQuery(hstring_ref queryText, hstring_ref language) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetQueryWithLanguage(get(queryText), get(language))); -} - -template void impl_ISearchSuggestionManager::SetQuery(hstring_ref queryText, hstring_ref language, const Windows::ApplicationModel::Search::SearchQueryLinguisticDetails & linguisticDetails) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetQueryWithSearchQueryLinguisticDetails(get(queryText), get(language), get(linguisticDetails))); -} - -template Windows::Foundation::Collections::IObservableVector impl_ISearchSuggestionManager::Suggestions() const -{ - Windows::Foundation::Collections::IObservableVector value; - check_hresult(static_cast(static_cast(*this))->get_Suggestions(put(value))); - return value; -} - -template void impl_ISearchSuggestionManager::AddToHistory(hstring_ref queryText) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddToHistory(get(queryText))); -} - -template void impl_ISearchSuggestionManager::AddToHistory(hstring_ref queryText, hstring_ref language) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddToHistoryWithLanguage(get(queryText), get(language))); -} - -template void impl_ISearchSuggestionManager::ClearHistory() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearHistory()); -} - -template event_token impl_ISearchSuggestionManager::SuggestionsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SuggestionsRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ISearchSuggestionManager::SuggestionsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Search::Core::ISearchSuggestionManager::remove_SuggestionsRequested, SuggestionsRequested(handler)); -} - -template void impl_ISearchSuggestionManager::SuggestionsRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SuggestionsRequested(token)); -} - -template event_token impl_ISearchSuggestionManager::RequestingFocusOnKeyboardInput(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RequestingFocusOnKeyboardInput(get(handler), &token)); - return token; -} - -template event_revoker impl_ISearchSuggestionManager::RequestingFocusOnKeyboardInput(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Search::Core::ISearchSuggestionManager::remove_RequestingFocusOnKeyboardInput, RequestingFocusOnKeyboardInput(handler)); -} - -template void impl_ISearchSuggestionManager::RequestingFocusOnKeyboardInput(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RequestingFocusOnKeyboardInput(token)); -} - -inline SearchSuggestionManager::SearchSuggestionManager() : - SearchSuggestionManager(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Search.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Search.h deleted file mode 100644 index ac416123d..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Search.h +++ /dev/null @@ -1,1358 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Search.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Enabled(bool value) noexcept override - { - try - { - this->shim().Enabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Locations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Locations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AqsFilter(abi_arg_in value) noexcept override - { - try - { - this->shim().AqsFilter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AqsFilter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AqsFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PropertiesToMatch(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PropertiesToMatch()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_SearchHistoryEnabled(bool value) noexcept override - { - try - { - this->shim().SearchHistoryEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SearchHistoryEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SearchHistoryEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SearchHistoryContext(abi_arg_in value) noexcept override - { - try - { - this->shim().SearchHistoryContext(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SearchHistoryContext(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SearchHistoryContext()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaceholderText(abi_arg_in value) noexcept override - { - try - { - this->shim().PlaceholderText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QueryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Visible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Visible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VisibilityChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VisibilityChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VisibilityChanged(event_token token) noexcept override - { - try - { - this->shim().VisibilityChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_QueryChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().QueryChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_QueryChanged(event_token token) noexcept override - { - try - { - this->shim().QueryChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SuggestionsRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SuggestionsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SuggestionsRequested(event_token token) noexcept override - { - try - { - this->shim().SuggestionsRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_QuerySubmitted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().QuerySubmitted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_QuerySubmitted(event_token token) noexcept override - { - try - { - this->shim().QuerySubmitted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ResultSuggestionChosen(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ResultSuggestionChosen(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ResultSuggestionChosen(event_token token) noexcept override - { - try - { - this->shim().ResultSuggestionChosen(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLocalContentSuggestionSettings(abi_arg_in settings) noexcept override - { - try - { - this->shim().SetLocalContentSuggestionSettings(*reinterpret_cast(&settings)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowOverloadDefault() noexcept override - { - try - { - this->shim().Show(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowOverloadWithQuery(abi_arg_in query) noexcept override - { - try - { - this->shim().Show(*reinterpret_cast(&query)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShowOnKeyboardInput(bool value) noexcept override - { - try - { - this->shim().ShowOnKeyboardInput(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowOnKeyboardInput(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowOnKeyboardInput()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetQueryText(abi_arg_in query, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TrySetQueryText(*reinterpret_cast(&query))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinguisticDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LinguisticDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryTextAlternatives(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().QueryTextAlternatives()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QueryTextCompositionStart(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().QueryTextCompositionStart()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QueryTextCompositionLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().QueryTextCompositionLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LinguisticDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LinguisticDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Tag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out searchPane) noexcept override - { - try - { - *searchPane = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *searchPane = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_HideThisApplication() noexcept override - { - try - { - this->shim().HideThisApplication(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SearchSuggestionCollection(abi_arg_out collection) noexcept override - { - try - { - *collection = detach(this->shim().SearchSuggestionCollection()); - return S_OK; - } - catch (...) - { - *collection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Visible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Visible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryTextAlternatives(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().QueryTextAlternatives()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QueryTextCompositionStart(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().QueryTextCompositionStart()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QueryTextCompositionLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().QueryTextCompositionLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in> queryTextAlternatives, uint32_t queryTextCompositionStart, uint32_t queryTextCompositionLength, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateInstance(*reinterpret_cast *>(&queryTextAlternatives), queryTextCompositionStart, queryTextCompositionLength)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Size(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendQuerySuggestion(abi_arg_in text) noexcept override - { - try - { - this->shim().AppendQuerySuggestion(*reinterpret_cast(&text)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendQuerySuggestions(abi_arg_in> suggestions) noexcept override - { - try - { - this->shim().AppendQuerySuggestions(*reinterpret_cast *>(&suggestions)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendResultSuggestion(abi_arg_in text, abi_arg_in detailText, abi_arg_in tag, abi_arg_in image, abi_arg_in imageAlternateText) noexcept override - { - try - { - this->shim().AppendResultSuggestion(*reinterpret_cast(&text), *reinterpret_cast(&detailText), *reinterpret_cast(&tag), *reinterpret_cast(&image), *reinterpret_cast(&imageAlternateText)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendSearchSeparator(abi_arg_in label) noexcept override - { - try - { - this->shim().AppendSearchSeparator(*reinterpret_cast(&label)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SearchSuggestionCollection(abi_arg_out collection) noexcept override - { - try - { - *collection = detach(this->shim().SearchSuggestionCollection()); - return S_OK; - } - catch (...) - { - *collection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Search { - -template Windows::Foundation::Collections::IVectorView impl_ISearchPaneQueryLinguisticDetails::QueryTextAlternatives() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_QueryTextAlternatives(put(value))); - return value; -} - -template uint32_t impl_ISearchPaneQueryLinguisticDetails::QueryTextCompositionStart() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_QueryTextCompositionStart(&value)); - return value; -} - -template uint32_t impl_ISearchPaneQueryLinguisticDetails::QueryTextCompositionLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_QueryTextCompositionLength(&value)); - return value; -} - -template uint32_t impl_ISearchSuggestionCollection::Size() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(&value)); - return value; -} - -template void impl_ISearchSuggestionCollection::AppendQuerySuggestion(hstring_ref text) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AppendQuerySuggestion(get(text))); -} - -template void impl_ISearchSuggestionCollection::AppendQuerySuggestions(const Windows::Foundation::Collections::IIterable & suggestions) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AppendQuerySuggestions(get(suggestions))); -} - -template void impl_ISearchSuggestionCollection::AppendResultSuggestion(hstring_ref text, hstring_ref detailText, hstring_ref tag, const Windows::Storage::Streams::IRandomAccessStreamReference & image, hstring_ref imageAlternateText) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AppendResultSuggestion(get(text), get(detailText), get(tag), get(image), get(imageAlternateText))); -} - -template void impl_ISearchSuggestionCollection::AppendSearchSeparator(hstring_ref label) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AppendSearchSeparator(get(label))); -} - -template void impl_ILocalContentSuggestionSettings::Enabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(value)); -} - -template bool impl_ILocalContentSuggestionSettings::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ILocalContentSuggestionSettings::Locations() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Locations(put(value))); - return value; -} - -template void impl_ILocalContentSuggestionSettings::AqsFilter(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AqsFilter(get(value))); -} - -template hstring impl_ILocalContentSuggestionSettings::AqsFilter() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AqsFilter(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ILocalContentSuggestionSettings::PropertiesToMatch() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_PropertiesToMatch(put(value))); - return value; -} - -template Windows::ApplicationModel::Search::SearchQueryLinguisticDetails impl_ISearchQueryLinguisticDetailsFactory::CreateInstance(const Windows::Foundation::Collections::IIterable & queryTextAlternatives, uint32_t queryTextCompositionStart, uint32_t queryTextCompositionLength) const -{ - Windows::ApplicationModel::Search::SearchQueryLinguisticDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(queryTextAlternatives), queryTextCompositionStart, queryTextCompositionLength, put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISearchQueryLinguisticDetails::QueryTextAlternatives() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_QueryTextAlternatives(put(value))); - return value; -} - -template uint32_t impl_ISearchQueryLinguisticDetails::QueryTextCompositionStart() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_QueryTextCompositionStart(&value)); - return value; -} - -template uint32_t impl_ISearchQueryLinguisticDetails::QueryTextCompositionLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_QueryTextCompositionLength(&value)); - return value; -} - -template void impl_ISearchSuggestionsRequestDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template bool impl_ISearchSuggestionsRequest::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template Windows::ApplicationModel::Search::SearchSuggestionCollection impl_ISearchSuggestionsRequest::SearchSuggestionCollection() const -{ - Windows::ApplicationModel::Search::SearchSuggestionCollection collection { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SearchSuggestionCollection(put(collection))); - return collection; -} - -template Windows::ApplicationModel::Search::SearchSuggestionsRequestDeferral impl_ISearchSuggestionsRequest::GetDeferral() const -{ - Windows::ApplicationModel::Search::SearchSuggestionsRequestDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template bool impl_ISearchPaneVisibilityChangedEventArgs::Visible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Visible(&value)); - return value; -} - -template hstring impl_ISearchPaneQueryChangedEventArgs::QueryText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QueryText(put(value))); - return value; -} - -template hstring impl_ISearchPaneQueryChangedEventArgs::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template Windows::ApplicationModel::Search::SearchPaneQueryLinguisticDetails impl_ISearchPaneQueryChangedEventArgs::LinguisticDetails() const -{ - Windows::ApplicationModel::Search::SearchPaneQueryLinguisticDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LinguisticDetails(put(value))); - return value; -} - -template hstring impl_ISearchPaneQuerySubmittedEventArgs::QueryText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QueryText(put(value))); - return value; -} - -template hstring impl_ISearchPaneQuerySubmittedEventArgs::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template Windows::ApplicationModel::Search::SearchPaneQueryLinguisticDetails impl_ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails::LinguisticDetails() const -{ - Windows::ApplicationModel::Search::SearchPaneQueryLinguisticDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LinguisticDetails(put(value))); - return value; -} - -template hstring impl_ISearchPaneResultSuggestionChosenEventArgs::Tag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Tag(put(value))); - return value; -} - -template void impl_ISearchPaneSuggestionsRequestDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template bool impl_ISearchPaneSuggestionsRequest::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template Windows::ApplicationModel::Search::SearchSuggestionCollection impl_ISearchPaneSuggestionsRequest::SearchSuggestionCollection() const -{ - Windows::ApplicationModel::Search::SearchSuggestionCollection collection { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SearchSuggestionCollection(put(collection))); - return collection; -} - -template Windows::ApplicationModel::Search::SearchPaneSuggestionsRequestDeferral impl_ISearchPaneSuggestionsRequest::GetDeferral() const -{ - Windows::ApplicationModel::Search::SearchPaneSuggestionsRequestDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template Windows::ApplicationModel::Search::SearchPaneSuggestionsRequest impl_ISearchPaneSuggestionsRequestedEventArgs::Request() const -{ - Windows::ApplicationModel::Search::SearchPaneSuggestionsRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::ApplicationModel::Search::SearchPane impl_ISearchPaneStatics::GetForCurrentView() const -{ - Windows::ApplicationModel::Search::SearchPane searchPane { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(searchPane))); - return searchPane; -} - -template void impl_ISearchPaneStaticsWithHideThisApplication::HideThisApplication() const -{ - check_hresult(static_cast(static_cast(*this))->abi_HideThisApplication()); -} - -template void impl_ISearchPane::SearchHistoryEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SearchHistoryEnabled(value)); -} - -template bool impl_ISearchPane::SearchHistoryEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SearchHistoryEnabled(&value)); - return value; -} - -template void impl_ISearchPane::SearchHistoryContext(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SearchHistoryContext(get(value))); -} - -template hstring impl_ISearchPane::SearchHistoryContext() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SearchHistoryContext(put(value))); - return value; -} - -template void impl_ISearchPane::PlaceholderText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaceholderText(get(value))); -} - -template hstring impl_ISearchPane::PlaceholderText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderText(put(value))); - return value; -} - -template hstring impl_ISearchPane::QueryText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QueryText(put(value))); - return value; -} - -template hstring impl_ISearchPane::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template bool impl_ISearchPane::Visible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Visible(&value)); - return value; -} - -template event_token impl_ISearchPane::VisibilityChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VisibilityChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ISearchPane::VisibilityChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Search::ISearchPane::remove_VisibilityChanged, VisibilityChanged(handler)); -} - -template void impl_ISearchPane::VisibilityChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VisibilityChanged(token)); -} - -template event_token impl_ISearchPane::QueryChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_QueryChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ISearchPane::QueryChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Search::ISearchPane::remove_QueryChanged, QueryChanged(handler)); -} - -template void impl_ISearchPane::QueryChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_QueryChanged(token)); -} - -template event_token impl_ISearchPane::SuggestionsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SuggestionsRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ISearchPane::SuggestionsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Search::ISearchPane::remove_SuggestionsRequested, SuggestionsRequested(handler)); -} - -template void impl_ISearchPane::SuggestionsRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SuggestionsRequested(token)); -} - -template event_token impl_ISearchPane::QuerySubmitted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_QuerySubmitted(get(handler), &token)); - return token; -} - -template event_revoker impl_ISearchPane::QuerySubmitted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Search::ISearchPane::remove_QuerySubmitted, QuerySubmitted(handler)); -} - -template void impl_ISearchPane::QuerySubmitted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_QuerySubmitted(token)); -} - -template event_token impl_ISearchPane::ResultSuggestionChosen(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ResultSuggestionChosen(get(handler), &token)); - return token; -} - -template event_revoker impl_ISearchPane::ResultSuggestionChosen(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Search::ISearchPane::remove_ResultSuggestionChosen, ResultSuggestionChosen(handler)); -} - -template void impl_ISearchPane::ResultSuggestionChosen(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ResultSuggestionChosen(token)); -} - -template void impl_ISearchPane::SetLocalContentSuggestionSettings(const Windows::ApplicationModel::Search::LocalContentSuggestionSettings & settings) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLocalContentSuggestionSettings(get(settings))); -} - -template void impl_ISearchPane::Show() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowOverloadDefault()); -} - -template void impl_ISearchPane::Show(hstring_ref query) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowOverloadWithQuery(get(query))); -} - -template void impl_ISearchPane::ShowOnKeyboardInput(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShowOnKeyboardInput(value)); -} - -template bool impl_ISearchPane::ShowOnKeyboardInput() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShowOnKeyboardInput(&value)); - return value; -} - -template bool impl_ISearchPane::TrySetQueryText(hstring_ref query) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetQueryText(get(query), &succeeded)); - return succeeded; -} - -inline LocalContentSuggestionSettings::LocalContentSuggestionSettings() : - LocalContentSuggestionSettings(activate_instance()) -{} - -inline Windows::ApplicationModel::Search::SearchPane SearchPane::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline void SearchPane::HideThisApplication() -{ - get_activation_factory().HideThisApplication(); -} - -inline SearchQueryLinguisticDetails::SearchQueryLinguisticDetails(const Windows::Foundation::Collections::IIterable & queryTextAlternatives, uint32_t queryTextCompositionStart, uint32_t queryTextCompositionLength) : - SearchQueryLinguisticDetails(get_activation_factory().CreateInstance(queryTextAlternatives, queryTextCompositionStart, queryTextCompositionLength)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.SocialInfo.Provider.h b/10.0.14393.0/winrt/Windows.ApplicationModel.SocialInfo.Provider.h deleted file mode 100644 index 7786ab083..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.SocialInfo.Provider.h +++ /dev/null @@ -1,446 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.ApplicationModel.SocialInfo.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.SocialInfo.Provider.3.h" -#include "Windows.ApplicationModel.SocialInfo.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OwnerRemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OwnerRemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Timestamp(abi_arg_in value) noexcept override - { - try - { - this->shim().Timestamp(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbnail(abi_arg_in value) noexcept override - { - try - { - this->shim().Thumbnail(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CommitAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().CommitAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetUri(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OwnerRemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OwnerRemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::ApplicationModel::SocialInfo::SocialFeedKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CommitAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().CommitAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateSocialFeedUpdaterAsync(Windows::ApplicationModel::SocialInfo::SocialFeedKind kind, Windows::ApplicationModel::SocialInfo::SocialFeedUpdateMode mode, abi_arg_in ownerRemoteId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateSocialFeedUpdaterAsync(kind, mode, *reinterpret_cast(&ownerRemoteId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDashboardItemUpdaterAsync(abi_arg_in ownerRemoteId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateDashboardItemUpdaterAsync(*reinterpret_cast(&ownerRemoteId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateBadgeCountValue(abi_arg_in itemRemoteId, int32_t newCount) noexcept override - { - try - { - this->shim().UpdateBadgeCountValue(*reinterpret_cast(&itemRemoteId), newCount); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportNewContentAvailable(abi_arg_in contactRemoteId, Windows::ApplicationModel::SocialInfo::SocialFeedKind kind) noexcept override - { - try - { - this->shim().ReportNewContentAvailable(*reinterpret_cast(&contactRemoteId), kind); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProvisionAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ProvisionAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeprovisionAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().DeprovisionAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::SocialInfo::Provider { - -template hstring impl_ISocialFeedUpdater::OwnerRemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OwnerRemoteId(put(value))); - return value; -} - -template Windows::ApplicationModel::SocialInfo::SocialFeedKind impl_ISocialFeedUpdater::Kind() const -{ - Windows::ApplicationModel::SocialInfo::SocialFeedKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISocialFeedUpdater::Items() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Items(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ISocialFeedUpdater::CommitAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_CommitAsync(put(operation))); - return operation; -} - -template hstring impl_ISocialDashboardItemUpdater::OwnerRemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OwnerRemoteId(put(value))); - return value; -} - -template Windows::ApplicationModel::SocialInfo::SocialFeedContent impl_ISocialDashboardItemUpdater::Content() const -{ - Windows::ApplicationModel::SocialInfo::SocialFeedContent value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ISocialDashboardItemUpdater::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template void impl_ISocialDashboardItemUpdater::Timestamp(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Timestamp(get(value))); -} - -template void impl_ISocialDashboardItemUpdater::Thumbnail(const Windows::ApplicationModel::SocialInfo::SocialItemThumbnail & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbnail(get(value))); -} - -template Windows::ApplicationModel::SocialInfo::SocialItemThumbnail impl_ISocialDashboardItemUpdater::Thumbnail() const -{ - Windows::ApplicationModel::SocialInfo::SocialItemThumbnail value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ISocialDashboardItemUpdater::CommitAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_CommitAsync(put(operation))); - return operation; -} - -template Windows::Foundation::Uri impl_ISocialDashboardItemUpdater::TargetUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TargetUri(put(value))); - return value; -} - -template void impl_ISocialDashboardItemUpdater::TargetUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetUri(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_ISocialInfoProviderManagerStatics::CreateSocialFeedUpdaterAsync(Windows::ApplicationModel::SocialInfo::SocialFeedKind kind, Windows::ApplicationModel::SocialInfo::SocialFeedUpdateMode mode, hstring_ref ownerRemoteId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateSocialFeedUpdaterAsync(kind, mode, get(ownerRemoteId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISocialInfoProviderManagerStatics::CreateDashboardItemUpdaterAsync(hstring_ref ownerRemoteId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateDashboardItemUpdaterAsync(get(ownerRemoteId), put(operation))); - return operation; -} - -template void impl_ISocialInfoProviderManagerStatics::UpdateBadgeCountValue(hstring_ref itemRemoteId, int32_t newCount) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateBadgeCountValue(get(itemRemoteId), newCount)); -} - -template void impl_ISocialInfoProviderManagerStatics::ReportNewContentAvailable(hstring_ref contactRemoteId, Windows::ApplicationModel::SocialInfo::SocialFeedKind kind) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportNewContentAvailable(get(contactRemoteId), kind)); -} - -template Windows::Foundation::IAsyncOperation impl_ISocialInfoProviderManagerStatics::ProvisionAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ProvisionAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_ISocialInfoProviderManagerStatics::DeprovisionAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_DeprovisionAsync(put(operation))); - return operation; -} - -inline Windows::Foundation::IAsyncOperation SocialInfoProviderManager::CreateSocialFeedUpdaterAsync(Windows::ApplicationModel::SocialInfo::SocialFeedKind kind, Windows::ApplicationModel::SocialInfo::SocialFeedUpdateMode mode, hstring_ref ownerRemoteId) -{ - return get_activation_factory().CreateSocialFeedUpdaterAsync(kind, mode, ownerRemoteId); -} - -inline Windows::Foundation::IAsyncOperation SocialInfoProviderManager::CreateDashboardItemUpdaterAsync(hstring_ref ownerRemoteId) -{ - return get_activation_factory().CreateDashboardItemUpdaterAsync(ownerRemoteId); -} - -inline void SocialInfoProviderManager::UpdateBadgeCountValue(hstring_ref itemRemoteId, int32_t newCount) -{ - get_activation_factory().UpdateBadgeCountValue(itemRemoteId, newCount); -} - -inline void SocialInfoProviderManager::ReportNewContentAvailable(hstring_ref contactRemoteId, Windows::ApplicationModel::SocialInfo::SocialFeedKind kind) -{ - get_activation_factory().ReportNewContentAvailable(contactRemoteId, kind); -} - -inline Windows::Foundation::IAsyncOperation SocialInfoProviderManager::ProvisionAsync() -{ - return get_activation_factory().ProvisionAsync(); -} - -inline Windows::Foundation::IAsyncAction SocialInfoProviderManager::DeprovisionAsync() -{ - return get_activation_factory().DeprovisionAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.SocialInfo.h b/10.0.14393.0/winrt/Windows.ApplicationModel.SocialInfo.h deleted file mode 100644 index 4ae852ca5..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.SocialInfo.h +++ /dev/null @@ -1,1241 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Graphics.Imaging.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.SocialInfo.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Author(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Author()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryContent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryContent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryContent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryContent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Timestamp(abi_arg_in value) noexcept override - { - try - { - this->shim().Timestamp(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetUri(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnails(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SharedItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SharedItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SharedItem(abi_arg_in value) noexcept override - { - try - { - this->shim().SharedItem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Message(abi_arg_in value) noexcept override - { - try - { - this->shim().Message(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetUri(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Author(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Author()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryContent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryContent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryContent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryContent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Timestamp(abi_arg_in value) noexcept override - { - try - { - this->shim().Timestamp(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetUri(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnails(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SharedItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SharedItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SharedItem(abi_arg_in value) noexcept override - { - try - { - this->shim().SharedItem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BadgeStyle(Windows::ApplicationModel::SocialInfo::SocialItemBadgeStyle * value) noexcept override - { - try - { - *value = detach(this->shim().BadgeStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BadgeStyle(Windows::ApplicationModel::SocialInfo::SocialItemBadgeStyle value) noexcept override - { - try - { - this->shim().BadgeStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BadgeCountValue(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BadgeCountValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BadgeCountValue(int32_t value) noexcept override - { - try - { - this->shim().BadgeCountValue(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChildItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChildItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChildItem(abi_arg_in value) noexcept override - { - try - { - this->shim().ChildItem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Style(Windows::ApplicationModel::SocialInfo::SocialFeedItemStyle * value) noexcept override - { - try - { - *value = detach(this->shim().Style()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Style(Windows::ApplicationModel::SocialInfo::SocialFeedItemStyle value) noexcept override - { - try - { - this->shim().Style(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OriginalSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OriginalSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OriginalSource(abi_arg_in value) noexcept override - { - try - { - this->shim().OriginalSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Timestamp(abi_arg_in value) noexcept override - { - try - { - this->shim().Timestamp(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetUri(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbnail(abi_arg_in value) noexcept override - { - try - { - this->shim().Thumbnail(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TargetUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetUri(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImageUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImageUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ImageUri(abi_arg_in value) noexcept override - { - try - { - this->shim().ImageUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitmapSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BitmapSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BitmapSize(abi_arg_in value) noexcept override - { - try - { - this->shim().BitmapSize(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetImageAsync(abi_arg_in image, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SetImageAsync(*reinterpret_cast(&image))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UserName(abi_arg_in value) noexcept override - { - try - { - this->shim().UserName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetUri(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::SocialInfo { - -template Windows::Foundation::Uri impl_ISocialItemThumbnail::TargetUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TargetUri(put(value))); - return value; -} - -template void impl_ISocialItemThumbnail::TargetUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetUri(get(value))); -} - -template Windows::Foundation::Uri impl_ISocialItemThumbnail::ImageUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ImageUri(put(value))); - return value; -} - -template void impl_ISocialItemThumbnail::ImageUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ImageUri(get(value))); -} - -template Windows::Graphics::Imaging::BitmapSize impl_ISocialItemThumbnail::BitmapSize() const -{ - Windows::Graphics::Imaging::BitmapSize value {}; - check_hresult(static_cast(static_cast(*this))->get_BitmapSize(put(value))); - return value; -} - -template void impl_ISocialItemThumbnail::BitmapSize(const Windows::Graphics::Imaging::BitmapSize & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BitmapSize(get(value))); -} - -template Windows::Foundation::IAsyncAction impl_ISocialItemThumbnail::SetImageAsync(const Windows::Storage::Streams::IInputStream & image) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SetImageAsync(get(image), put(operation))); - return operation; -} - -template hstring impl_ISocialFeedContent::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_ISocialFeedContent::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template hstring impl_ISocialFeedContent::Message() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template void impl_ISocialFeedContent::Message(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Message(get(value))); -} - -template Windows::Foundation::Uri impl_ISocialFeedContent::TargetUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TargetUri(put(value))); - return value; -} - -template void impl_ISocialFeedContent::TargetUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetUri(get(value))); -} - -template hstring impl_ISocialUserInfo::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_ISocialUserInfo::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_ISocialUserInfo::UserName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserName(put(value))); - return value; -} - -template void impl_ISocialUserInfo::UserName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UserName(get(value))); -} - -template hstring impl_ISocialUserInfo::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template void impl_ISocialUserInfo::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template Windows::Foundation::Uri impl_ISocialUserInfo::TargetUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TargetUri(put(value))); - return value; -} - -template void impl_ISocialUserInfo::TargetUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetUri(get(value))); -} - -template Windows::ApplicationModel::SocialInfo::SocialUserInfo impl_ISocialFeedItem::Author() const -{ - Windows::ApplicationModel::SocialInfo::SocialUserInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Author(put(value))); - return value; -} - -template Windows::ApplicationModel::SocialInfo::SocialFeedContent impl_ISocialFeedItem::PrimaryContent() const -{ - Windows::ApplicationModel::SocialInfo::SocialFeedContent value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PrimaryContent(put(value))); - return value; -} - -template Windows::ApplicationModel::SocialInfo::SocialFeedContent impl_ISocialFeedItem::SecondaryContent() const -{ - Windows::ApplicationModel::SocialInfo::SocialFeedContent value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SecondaryContent(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ISocialFeedItem::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template void impl_ISocialFeedItem::Timestamp(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Timestamp(get(value))); -} - -template Windows::Foundation::Uri impl_ISocialFeedItem::TargetUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TargetUri(put(value))); - return value; -} - -template void impl_ISocialFeedItem::TargetUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetUri(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_ISocialFeedItem::Thumbnails() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Thumbnails(put(value))); - return value; -} - -template Windows::ApplicationModel::SocialInfo::SocialFeedSharedItem impl_ISocialFeedItem::SharedItem() const -{ - Windows::ApplicationModel::SocialInfo::SocialFeedSharedItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SharedItem(put(value))); - return value; -} - -template void impl_ISocialFeedItem::SharedItem(const Windows::ApplicationModel::SocialInfo::SocialFeedSharedItem & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SharedItem(get(value))); -} - -template Windows::ApplicationModel::SocialInfo::SocialItemBadgeStyle impl_ISocialFeedItem::BadgeStyle() const -{ - Windows::ApplicationModel::SocialInfo::SocialItemBadgeStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_BadgeStyle(&value)); - return value; -} - -template void impl_ISocialFeedItem::BadgeStyle(Windows::ApplicationModel::SocialInfo::SocialItemBadgeStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BadgeStyle(value)); -} - -template int32_t impl_ISocialFeedItem::BadgeCountValue() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BadgeCountValue(&value)); - return value; -} - -template void impl_ISocialFeedItem::BadgeCountValue(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BadgeCountValue(value)); -} - -template hstring impl_ISocialFeedItem::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template void impl_ISocialFeedItem::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template Windows::ApplicationModel::SocialInfo::SocialFeedChildItem impl_ISocialFeedItem::ChildItem() const -{ - Windows::ApplicationModel::SocialInfo::SocialFeedChildItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChildItem(put(value))); - return value; -} - -template void impl_ISocialFeedItem::ChildItem(const Windows::ApplicationModel::SocialInfo::SocialFeedChildItem & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChildItem(get(value))); -} - -template Windows::ApplicationModel::SocialInfo::SocialFeedItemStyle impl_ISocialFeedItem::Style() const -{ - Windows::ApplicationModel::SocialInfo::SocialFeedItemStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_Style(&value)); - return value; -} - -template void impl_ISocialFeedItem::Style(Windows::ApplicationModel::SocialInfo::SocialFeedItemStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Style(value)); -} - -template Windows::ApplicationModel::SocialInfo::SocialUserInfo impl_ISocialFeedChildItem::Author() const -{ - Windows::ApplicationModel::SocialInfo::SocialUserInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Author(put(value))); - return value; -} - -template Windows::ApplicationModel::SocialInfo::SocialFeedContent impl_ISocialFeedChildItem::PrimaryContent() const -{ - Windows::ApplicationModel::SocialInfo::SocialFeedContent value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PrimaryContent(put(value))); - return value; -} - -template Windows::ApplicationModel::SocialInfo::SocialFeedContent impl_ISocialFeedChildItem::SecondaryContent() const -{ - Windows::ApplicationModel::SocialInfo::SocialFeedContent value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SecondaryContent(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ISocialFeedChildItem::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template void impl_ISocialFeedChildItem::Timestamp(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Timestamp(get(value))); -} - -template Windows::Foundation::Uri impl_ISocialFeedChildItem::TargetUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TargetUri(put(value))); - return value; -} - -template void impl_ISocialFeedChildItem::TargetUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetUri(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_ISocialFeedChildItem::Thumbnails() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Thumbnails(put(value))); - return value; -} - -template Windows::ApplicationModel::SocialInfo::SocialFeedSharedItem impl_ISocialFeedChildItem::SharedItem() const -{ - Windows::ApplicationModel::SocialInfo::SocialFeedSharedItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SharedItem(put(value))); - return value; -} - -template void impl_ISocialFeedChildItem::SharedItem(const Windows::ApplicationModel::SocialInfo::SocialFeedSharedItem & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SharedItem(get(value))); -} - -template Windows::Foundation::Uri impl_ISocialFeedSharedItem::OriginalSource() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OriginalSource(put(value))); - return value; -} - -template void impl_ISocialFeedSharedItem::OriginalSource(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OriginalSource(get(value))); -} - -template Windows::ApplicationModel::SocialInfo::SocialFeedContent impl_ISocialFeedSharedItem::Content() const -{ - Windows::ApplicationModel::SocialInfo::SocialFeedContent value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ISocialFeedSharedItem::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template void impl_ISocialFeedSharedItem::Timestamp(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Timestamp(get(value))); -} - -template Windows::Foundation::Uri impl_ISocialFeedSharedItem::TargetUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TargetUri(put(value))); - return value; -} - -template void impl_ISocialFeedSharedItem::TargetUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetUri(get(value))); -} - -template void impl_ISocialFeedSharedItem::Thumbnail(const Windows::ApplicationModel::SocialInfo::SocialItemThumbnail & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbnail(get(value))); -} - -template Windows::ApplicationModel::SocialInfo::SocialItemThumbnail impl_ISocialFeedSharedItem::Thumbnail() const -{ - Windows::ApplicationModel::SocialInfo::SocialItemThumbnail value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -inline SocialFeedChildItem::SocialFeedChildItem() : - SocialFeedChildItem(activate_instance()) -{} - -inline SocialFeedItem::SocialFeedItem() : - SocialFeedItem(activate_instance()) -{} - -inline SocialFeedSharedItem::SocialFeedSharedItem() : - SocialFeedSharedItem(activate_instance()) -{} - -inline SocialItemThumbnail::SocialItemThumbnail() : - SocialItemThumbnail(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Store.LicenseManagement.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Store.LicenseManagement.h deleted file mode 100644 index feb0db2d8..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Store.LicenseManagement.h +++ /dev/null @@ -1,267 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Store.LicenseManagement.3.h" -#include "Windows.ApplicationModel.Store.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddLicenseAsync(abi_arg_in license, abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().AddLicenseAsync(*reinterpret_cast(&license))); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSatisfactionInfosAsync(abi_arg_in> contentIds, abi_arg_in> keyIds, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetSatisfactionInfosAsync(*reinterpret_cast *>(&contentIds), *reinterpret_cast *>(&keyIds))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SatisfiedByDevice(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SatisfiedByDevice()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SatisfiedByOpenLicense(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SatisfiedByOpenLicense()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SatisfiedByTrial(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SatisfiedByTrial()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SatisfiedByPass(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SatisfiedByPass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SatisfiedByInstallMedia(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SatisfiedByInstallMedia()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SatisfiedBySignedInUser(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SatisfiedBySignedInUser()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSatisfied(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSatisfied()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LicenseSatisfactionInfos(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LicenseSatisfactionInfos()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Store::LicenseManagement { - -template Windows::Foundation::Collections::IMapView impl_ILicenseSatisfactionResult::LicenseSatisfactionInfos() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_LicenseSatisfactionInfos(put(value))); - return value; -} - -template HRESULT impl_ILicenseSatisfactionResult::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template bool impl_ILicenseSatisfactionInfo::SatisfiedByDevice() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SatisfiedByDevice(&value)); - return value; -} - -template bool impl_ILicenseSatisfactionInfo::SatisfiedByOpenLicense() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SatisfiedByOpenLicense(&value)); - return value; -} - -template bool impl_ILicenseSatisfactionInfo::SatisfiedByTrial() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SatisfiedByTrial(&value)); - return value; -} - -template bool impl_ILicenseSatisfactionInfo::SatisfiedByPass() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SatisfiedByPass(&value)); - return value; -} - -template bool impl_ILicenseSatisfactionInfo::SatisfiedByInstallMedia() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SatisfiedByInstallMedia(&value)); - return value; -} - -template bool impl_ILicenseSatisfactionInfo::SatisfiedBySignedInUser() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SatisfiedBySignedInUser(&value)); - return value; -} - -template bool impl_ILicenseSatisfactionInfo::IsSatisfied() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSatisfied(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ILicenseManagerStatics::AddLicenseAsync(const Windows::Storage::Streams::IBuffer & license) const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_AddLicenseAsync(get(license), put(action))); - return action; -} - -template Windows::Foundation::IAsyncOperation impl_ILicenseManagerStatics::GetSatisfactionInfosAsync(const Windows::Foundation::Collections::IIterable & contentIds, const Windows::Foundation::Collections::IIterable & keyIds) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetSatisfactionInfosAsync(get(contentIds), get(keyIds), put(operation))); - return operation; -} - -inline Windows::Foundation::IAsyncAction LicenseManager::AddLicenseAsync(const Windows::Storage::Streams::IBuffer & license) -{ - return get_activation_factory().AddLicenseAsync(license); -} - -inline Windows::Foundation::IAsyncOperation LicenseManager::GetSatisfactionInfosAsync(const Windows::Foundation::Collections::IIterable & contentIds, const Windows::Foundation::Collections::IIterable & keyIds) -{ - return get_activation_factory().GetSatisfactionInfosAsync(contentIds, keyIds); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Store.Preview.InstallControl.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Store.Preview.InstallControl.h deleted file mode 100644 index c290a1dad..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Store.Preview.InstallControl.h +++ /dev/null @@ -1,1227 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.System.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Management.Deployment.3.h" -#include "internal/Windows.ApplicationModel.Store.Preview.InstallControl.3.h" -#include "Windows.ApplicationModel.Store.Preview.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProductId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProductId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstallType(Windows::ApplicationModel::Store::Preview::InstallControl::AppInstallType * value) noexcept override - { - try - { - *value = detach(this->shim().InstallType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsUserInitiated(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsUserInitiated()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentStatus(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetCurrentStatus()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Cancel() noexcept override - { - try - { - this->shim().Cancel(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Pause() noexcept override - { - try - { - this->shim().Pause(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Restart() noexcept override - { - try - { - this->shim().Restart(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Completed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Completed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Completed(event_token token) noexcept override - { - try - { - this->shim().Completed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StatusChanged(event_token token) noexcept override - { - try - { - this->shim().StatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CancelWithTelemetry(abi_arg_in correlationVector) noexcept override - { - try - { - this->shim().Cancel(*reinterpret_cast(&correlationVector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PauseWithTelemetry(abi_arg_in correlationVector) noexcept override - { - try - { - this->shim().Pause(*reinterpret_cast(&correlationVector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RestartWithTelemetry(abi_arg_in correlationVector) noexcept override - { - try - { - this->shim().Restart(*reinterpret_cast(&correlationVector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppInstallItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AppInstallItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Cancel(abi_arg_in productId) noexcept override - { - try - { - this->shim().Cancel(*reinterpret_cast(&productId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Pause(abi_arg_in productId) noexcept override - { - try - { - this->shim().Pause(*reinterpret_cast(&productId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Restart(abi_arg_in productId) noexcept override - { - try - { - this->shim().Restart(*reinterpret_cast(&productId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ItemCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ItemCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemCompleted(event_token token) noexcept override - { - try - { - this->shim().ItemCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ItemStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ItemStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemStatusChanged(event_token token) noexcept override - { - try - { - this->shim().ItemStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoUpdateSetting(Windows::ApplicationModel::Store::Preview::InstallControl::AutoUpdateSetting * value) noexcept override - { - try - { - *value = detach(this->shim().AutoUpdateSetting()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoUpdateSetting(Windows::ApplicationModel::Store::Preview::InstallControl::AutoUpdateSetting value) noexcept override - { - try - { - this->shim().AutoUpdateSetting(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AcquisitionIdentity(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AcquisitionIdentity()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AcquisitionIdentity(abi_arg_in value) noexcept override - { - try - { - this->shim().AcquisitionIdentity(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsApplicableAsync(abi_arg_in productId, abi_arg_in skuId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetIsApplicableAsync(*reinterpret_cast(&productId), *reinterpret_cast(&skuId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAppInstallAsync(abi_arg_in productId, abi_arg_in skuId, bool repair, bool forceUseOfNonRemovableStorage, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().StartAppInstallAsync(*reinterpret_cast(&productId), *reinterpret_cast(&skuId), repair, forceUseOfNonRemovableStorage)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateAppByPackageFamilyNameAsync(abi_arg_in packageFamilyName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().UpdateAppByPackageFamilyNameAsync(*reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SearchForUpdatesAsync(abi_arg_in productId, abi_arg_in skuId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SearchForUpdatesAsync(*reinterpret_cast(&productId), *reinterpret_cast(&skuId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SearchForAllUpdatesAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().SearchForAllUpdatesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsStoreBlockedByPolicyAsync(abi_arg_in storeClientName, abi_arg_in storeClientPublisher, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().IsStoreBlockedByPolicyAsync(*reinterpret_cast(&storeClientName), *reinterpret_cast(&storeClientPublisher))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsAppAllowedToInstallAsync(abi_arg_in productId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetIsAppAllowedToInstallAsync(*reinterpret_cast(&productId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartAppInstallWithTelemetryAsync(abi_arg_in productId, abi_arg_in skuId, bool repair, bool forceUseOfNonRemovableStorage, abi_arg_in catalogId, abi_arg_in bundleId, abi_arg_in correlationVector, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().StartAppInstallAsync(*reinterpret_cast(&productId), *reinterpret_cast(&skuId), repair, forceUseOfNonRemovableStorage, *reinterpret_cast(&catalogId), *reinterpret_cast(&bundleId), *reinterpret_cast(&correlationVector))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateAppByPackageFamilyNameWithTelemetryAsync(abi_arg_in packageFamilyName, abi_arg_in correlationVector, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().UpdateAppByPackageFamilyNameAsync(*reinterpret_cast(&packageFamilyName), *reinterpret_cast(&correlationVector))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SearchForUpdatesWithTelemetryAsync(abi_arg_in productId, abi_arg_in skuId, abi_arg_in catalogId, abi_arg_in correlationVector, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SearchForUpdatesAsync(*reinterpret_cast(&productId), *reinterpret_cast(&skuId), *reinterpret_cast(&catalogId), *reinterpret_cast(&correlationVector))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SearchForAllUpdatesWithTelemetryAsync(abi_arg_in correlationVector, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().SearchForAllUpdatesAsync(*reinterpret_cast(&correlationVector))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsAppAllowedToInstallWithTelemetryAsync(abi_arg_in productId, abi_arg_in skuId, abi_arg_in catalogId, abi_arg_in correlationVector, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetIsAppAllowedToInstallAsync(*reinterpret_cast(&productId), *reinterpret_cast(&skuId), *reinterpret_cast(&catalogId), *reinterpret_cast(&correlationVector))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CancelWithTelemetry(abi_arg_in productId, abi_arg_in correlationVector) noexcept override - { - try - { - this->shim().Cancel(*reinterpret_cast(&productId), *reinterpret_cast(&correlationVector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PauseWithTelemetry(abi_arg_in productId, abi_arg_in correlationVector) noexcept override - { - try - { - this->shim().Pause(*reinterpret_cast(&productId), *reinterpret_cast(&correlationVector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RestartWithTelemetry(abi_arg_in productId, abi_arg_in correlationVector) noexcept override - { - try - { - this->shim().Restart(*reinterpret_cast(&productId), *reinterpret_cast(&correlationVector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartProductInstallAsync(abi_arg_in productId, abi_arg_in catalogId, abi_arg_in flightId, abi_arg_in clientId, bool repair, bool forceUseOfNonRemovableStorage, abi_arg_in correlationVector, abi_arg_in targetVolume, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().StartProductInstallAsync(*reinterpret_cast(&productId), *reinterpret_cast(&catalogId), *reinterpret_cast(&flightId), *reinterpret_cast(&clientId), repair, forceUseOfNonRemovableStorage, *reinterpret_cast(&correlationVector), *reinterpret_cast(&targetVolume))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartProductInstallForUserAsync(abi_arg_in user, abi_arg_in productId, abi_arg_in catalogId, abi_arg_in flightId, abi_arg_in clientId, bool repair, bool forceUseOfNonRemovableStorage, abi_arg_in correlationVector, abi_arg_in targetVolume, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().StartProductInstallForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&productId), *reinterpret_cast(&catalogId), *reinterpret_cast(&flightId), *reinterpret_cast(&clientId), repair, forceUseOfNonRemovableStorage, *reinterpret_cast(&correlationVector), *reinterpret_cast(&targetVolume))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateAppByPackageFamilyNameForUserAsync(abi_arg_in user, abi_arg_in packageFamilyName, abi_arg_in correlationVector, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().UpdateAppByPackageFamilyNameForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&packageFamilyName), *reinterpret_cast(&correlationVector))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SearchForUpdatesForUserAsync(abi_arg_in user, abi_arg_in productId, abi_arg_in skuId, abi_arg_in catalogId, abi_arg_in correlationVector, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SearchForUpdatesForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&productId), *reinterpret_cast(&skuId), *reinterpret_cast(&catalogId), *reinterpret_cast(&correlationVector))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SearchForAllUpdatesForUserAsync(abi_arg_in user, abi_arg_in correlationVector, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().SearchForAllUpdatesForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&correlationVector))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsAppAllowedToInstallForUserAsync(abi_arg_in user, abi_arg_in productId, abi_arg_in skuId, abi_arg_in catalogId, abi_arg_in correlationVector, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetIsAppAllowedToInstallForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&productId), *reinterpret_cast(&skuId), *reinterpret_cast(&catalogId), *reinterpret_cast(&correlationVector))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsApplicableForUserAsync(abi_arg_in user, abi_arg_in productId, abi_arg_in skuId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetIsApplicableForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&productId), *reinterpret_cast(&skuId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveToFrontOfDownloadQueue(abi_arg_in productId, abi_arg_in correlationVector) noexcept override - { - try - { - this->shim().MoveToFrontOfDownloadQueue(*reinterpret_cast(&productId), *reinterpret_cast(&correlationVector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Item(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Item()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InstallState(Windows::ApplicationModel::Store::Preview::InstallControl::AppInstallState * value) noexcept override - { - try - { - *value = detach(this->shim().InstallState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DownloadSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().DownloadSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BytesDownloaded(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BytesDownloaded()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PercentComplete(double * value) noexcept override - { - try - { - *value = detach(this->shim().PercentComplete()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorCode(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadyForLaunch(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ReadyForLaunch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Store::Preview::InstallControl { - -template Windows::ApplicationModel::Store::Preview::InstallControl::AppInstallState impl_IAppInstallStatus::InstallState() const -{ - Windows::ApplicationModel::Store::Preview::InstallControl::AppInstallState value {}; - check_hresult(static_cast(static_cast(*this))->get_InstallState(&value)); - return value; -} - -template uint64_t impl_IAppInstallStatus::DownloadSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DownloadSizeInBytes(&value)); - return value; -} - -template uint64_t impl_IAppInstallStatus::BytesDownloaded() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BytesDownloaded(&value)); - return value; -} - -template double impl_IAppInstallStatus::PercentComplete() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_PercentComplete(&value)); - return value; -} - -template HRESULT impl_IAppInstallStatus::ErrorCode() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template Windows::System::User impl_IAppInstallStatus2::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template bool impl_IAppInstallStatus2::ReadyForLaunch() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadyForLaunch(&value)); - return value; -} - -template hstring impl_IAppInstallItem::ProductId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProductId(put(value))); - return value; -} - -template hstring impl_IAppInstallItem::PackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PackageFamilyName(put(value))); - return value; -} - -template Windows::ApplicationModel::Store::Preview::InstallControl::AppInstallType impl_IAppInstallItem::InstallType() const -{ - Windows::ApplicationModel::Store::Preview::InstallControl::AppInstallType value {}; - check_hresult(static_cast(static_cast(*this))->get_InstallType(&value)); - return value; -} - -template bool impl_IAppInstallItem::IsUserInitiated() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsUserInitiated(&value)); - return value; -} - -template Windows::ApplicationModel::Store::Preview::InstallControl::AppInstallStatus impl_IAppInstallItem::GetCurrentStatus() const -{ - Windows::ApplicationModel::Store::Preview::InstallControl::AppInstallStatus result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentStatus(put(result))); - return result; -} - -template void impl_IAppInstallItem::Cancel() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Cancel()); -} - -template void impl_IAppInstallItem::Pause() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Pause()); -} - -template void impl_IAppInstallItem::Restart() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Restart()); -} - -template event_token impl_IAppInstallItem::Completed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Completed(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppInstallItem::Completed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Store::Preview::InstallControl::IAppInstallItem::remove_Completed, Completed(handler)); -} - -template void impl_IAppInstallItem::Completed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Completed(token)); -} - -template event_token impl_IAppInstallItem::StatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppInstallItem::StatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Store::Preview::InstallControl::IAppInstallItem::remove_StatusChanged, StatusChanged(handler)); -} - -template void impl_IAppInstallItem::StatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StatusChanged(token)); -} - -template void impl_IAppInstallItem2::Cancel(hstring_ref correlationVector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CancelWithTelemetry(get(correlationVector))); -} - -template void impl_IAppInstallItem2::Pause(hstring_ref correlationVector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PauseWithTelemetry(get(correlationVector))); -} - -template void impl_IAppInstallItem2::Restart(hstring_ref correlationVector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RestartWithTelemetry(get(correlationVector))); -} - -template Windows::ApplicationModel::Store::Preview::InstallControl::AppInstallItem impl_IAppInstallManagerItemEventArgs::Item() const -{ - Windows::ApplicationModel::Store::Preview::InstallControl::AppInstallItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Item(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAppInstallManager::AppInstallItems() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AppInstallItems(put(value))); - return value; -} - -template void impl_IAppInstallManager::Cancel(hstring_ref productId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Cancel(get(productId))); -} - -template void impl_IAppInstallManager::Pause(hstring_ref productId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Pause(get(productId))); -} - -template void impl_IAppInstallManager::Restart(hstring_ref productId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Restart(get(productId))); -} - -template event_token impl_IAppInstallManager::ItemCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ItemCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppInstallManager::ItemCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Store::Preview::InstallControl::IAppInstallManager::remove_ItemCompleted, ItemCompleted(handler)); -} - -template void impl_IAppInstallManager::ItemCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemCompleted(token)); -} - -template event_token impl_IAppInstallManager::ItemStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ItemStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppInstallManager::ItemStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Store::Preview::InstallControl::IAppInstallManager::remove_ItemStatusChanged, ItemStatusChanged(handler)); -} - -template void impl_IAppInstallManager::ItemStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemStatusChanged(token)); -} - -template Windows::ApplicationModel::Store::Preview::InstallControl::AutoUpdateSetting impl_IAppInstallManager::AutoUpdateSetting() const -{ - Windows::ApplicationModel::Store::Preview::InstallControl::AutoUpdateSetting value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoUpdateSetting(&value)); - return value; -} - -template void impl_IAppInstallManager::AutoUpdateSetting(Windows::ApplicationModel::Store::Preview::InstallControl::AutoUpdateSetting value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoUpdateSetting(value)); -} - -template hstring impl_IAppInstallManager::AcquisitionIdentity() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AcquisitionIdentity(put(value))); - return value; -} - -template void impl_IAppInstallManager::AcquisitionIdentity(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AcquisitionIdentity(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager::GetIsApplicableAsync(hstring_ref productId, hstring_ref skuId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetIsApplicableAsync(get(productId), get(skuId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager::StartAppInstallAsync(hstring_ref productId, hstring_ref skuId, bool repair, bool forceUseOfNonRemovableStorage) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_StartAppInstallAsync(get(productId), get(skuId), repair, forceUseOfNonRemovableStorage, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager::UpdateAppByPackageFamilyNameAsync(hstring_ref packageFamilyName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateAppByPackageFamilyNameAsync(get(packageFamilyName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager::SearchForUpdatesAsync(hstring_ref productId, hstring_ref skuId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SearchForUpdatesAsync(get(productId), get(skuId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppInstallManager::SearchForAllUpdatesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_SearchForAllUpdatesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager::IsStoreBlockedByPolicyAsync(hstring_ref storeClientName, hstring_ref storeClientPublisher) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_IsStoreBlockedByPolicyAsync(get(storeClientName), get(storeClientPublisher), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager::GetIsAppAllowedToInstallAsync(hstring_ref productId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetIsAppAllowedToInstallAsync(get(productId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager2::StartAppInstallAsync(hstring_ref productId, hstring_ref skuId, bool repair, bool forceUseOfNonRemovableStorage, hstring_ref catalogId, hstring_ref bundleId, hstring_ref correlationVector) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_StartAppInstallWithTelemetryAsync(get(productId), get(skuId), repair, forceUseOfNonRemovableStorage, get(catalogId), get(bundleId), get(correlationVector), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager2::UpdateAppByPackageFamilyNameAsync(hstring_ref packageFamilyName, hstring_ref correlationVector) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateAppByPackageFamilyNameWithTelemetryAsync(get(packageFamilyName), get(correlationVector), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager2::SearchForUpdatesAsync(hstring_ref productId, hstring_ref skuId, hstring_ref catalogId, hstring_ref correlationVector) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SearchForUpdatesWithTelemetryAsync(get(productId), get(skuId), get(catalogId), get(correlationVector), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppInstallManager2::SearchForAllUpdatesAsync(hstring_ref correlationVector) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_SearchForAllUpdatesWithTelemetryAsync(get(correlationVector), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager2::GetIsAppAllowedToInstallAsync(hstring_ref productId, hstring_ref skuId, hstring_ref catalogId, hstring_ref correlationVector) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetIsAppAllowedToInstallWithTelemetryAsync(get(productId), get(skuId), get(catalogId), get(correlationVector), put(operation))); - return operation; -} - -template void impl_IAppInstallManager2::Cancel(hstring_ref productId, hstring_ref correlationVector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CancelWithTelemetry(get(productId), get(correlationVector))); -} - -template void impl_IAppInstallManager2::Pause(hstring_ref productId, hstring_ref correlationVector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PauseWithTelemetry(get(productId), get(correlationVector))); -} - -template void impl_IAppInstallManager2::Restart(hstring_ref productId, hstring_ref correlationVector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RestartWithTelemetry(get(productId), get(correlationVector))); -} - -template Windows::Foundation::IAsyncOperation> impl_IAppInstallManager3::StartProductInstallAsync(hstring_ref productId, hstring_ref catalogId, hstring_ref flightId, hstring_ref clientId, bool repair, bool forceUseOfNonRemovableStorage, hstring_ref correlationVector, const Windows::Management::Deployment::PackageVolume & targetVolume) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_StartProductInstallAsync(get(productId), get(catalogId), get(flightId), get(clientId), repair, forceUseOfNonRemovableStorage, get(correlationVector), get(targetVolume), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppInstallManager3::StartProductInstallForUserAsync(const Windows::System::User & user, hstring_ref productId, hstring_ref catalogId, hstring_ref flightId, hstring_ref clientId, bool repair, bool forceUseOfNonRemovableStorage, hstring_ref correlationVector, const Windows::Management::Deployment::PackageVolume & targetVolume) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_StartProductInstallForUserAsync(get(user), get(productId), get(catalogId), get(flightId), get(clientId), repair, forceUseOfNonRemovableStorage, get(correlationVector), get(targetVolume), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager3::UpdateAppByPackageFamilyNameForUserAsync(const Windows::System::User & user, hstring_ref packageFamilyName, hstring_ref correlationVector) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateAppByPackageFamilyNameForUserAsync(get(user), get(packageFamilyName), get(correlationVector), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager3::SearchForUpdatesForUserAsync(const Windows::System::User & user, hstring_ref productId, hstring_ref skuId, hstring_ref catalogId, hstring_ref correlationVector) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SearchForUpdatesForUserAsync(get(user), get(productId), get(skuId), get(catalogId), get(correlationVector), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IAppInstallManager3::SearchForAllUpdatesForUserAsync(const Windows::System::User & user, hstring_ref correlationVector) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_SearchForAllUpdatesForUserAsync(get(user), get(correlationVector), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager3::GetIsAppAllowedToInstallForUserAsync(const Windows::System::User & user, hstring_ref productId, hstring_ref skuId, hstring_ref catalogId, hstring_ref correlationVector) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetIsAppAllowedToInstallForUserAsync(get(user), get(productId), get(skuId), get(catalogId), get(correlationVector), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAppInstallManager3::GetIsApplicableForUserAsync(const Windows::System::User & user, hstring_ref productId, hstring_ref skuId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetIsApplicableForUserAsync(get(user), get(productId), get(skuId), put(operation))); - return operation; -} - -template void impl_IAppInstallManager3::MoveToFrontOfDownloadQueue(hstring_ref productId, hstring_ref correlationVector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_MoveToFrontOfDownloadQueue(get(productId), get(correlationVector))); -} - -inline AppInstallManager::AppInstallManager() : - AppInstallManager(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Store.Preview.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Store.Preview.h deleted file mode 100644 index 9892c193a..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Store.Preview.h +++ /dev/null @@ -1,872 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.ApplicationModel.Store.Preview.3.h" -#include "Windows.ApplicationModel.Store.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetSystemConfiguration(abi_arg_in catalogHardwareManufacturerId, abi_arg_in catalogStoreContentModifierId, abi_arg_in systemConfigurationExpiration, abi_arg_in catalogHardwareDescriptor) noexcept override - { - try - { - this->shim().SetSystemConfiguration(*reinterpret_cast(&catalogHardwareManufacturerId), *reinterpret_cast(&catalogStoreContentModifierId), *reinterpret_cast(&systemConfigurationExpiration), *reinterpret_cast(&catalogHardwareDescriptor)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetMobileOperatorConfiguration(abi_arg_in mobileOperatorId, uint32_t appDownloadLimitInMegabytes, uint32_t updateDownloadLimitInMegabytes) noexcept override - { - try - { - this->shim().SetMobileOperatorConfiguration(*reinterpret_cast(&mobileOperatorId), appDownloadLimitInMegabytes, updateDownloadLimitInMegabytes); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetStoreWebAccountId(abi_arg_in webAccountId) noexcept override - { - try - { - this->shim().SetStoreWebAccountId(*reinterpret_cast(&webAccountId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsStoreWebAccountId(abi_arg_in webAccountId, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStoreWebAccountId(*reinterpret_cast(&webAccountId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HardwareManufacturerInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HardwareManufacturerInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FilterUnsupportedSystemFeaturesAsync(abi_arg_in> systemFeatures, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FilterUnsupportedSystemFeaturesAsync(*reinterpret_cast *>(&systemFeatures))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PurchasePromptingPolicy(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PurchasePromptingPolicy()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PurchasePromptingPolicy(abi_arg_in> value) noexcept override - { - try - { - this->shim().PurchasePromptingPolicy(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_HasStoreWebAccount(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasStoreWebAccount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HasStoreWebAccountForUser(abi_arg_in user, bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasStoreWebAccountForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStoreLogDataAsync(Windows::ApplicationModel::Store::Preview::StoreLogOptions options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetStoreLogDataAsync(options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetStoreWebAccountIdForUser(abi_arg_in user, abi_arg_in webAccountId) noexcept override - { - try - { - this->shim().SetStoreWebAccountIdForUser(*reinterpret_cast(&user), *reinterpret_cast(&webAccountId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsStoreWebAccountIdForUser(abi_arg_in user, abi_arg_in webAccountId, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStoreWebAccountIdForUser(*reinterpret_cast(&user), *reinterpret_cast(&webAccountId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPurchasePromptingPolicyForUser(abi_arg_in user, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetPurchasePromptingPolicyForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPurchasePromptingPolicyForUser(abi_arg_in user, abi_arg_in> value) noexcept override - { - try - { - this->shim().SetPurchasePromptingPolicyForUser(*reinterpret_cast(&user), *reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HardwareManufacturerId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HardwareManufacturerId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StoreContentModifierId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StoreContentModifierId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModelName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ModelName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ManufacturerName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ManufacturerName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestProductPurchaseByProductIdAndSkuIdAsync(abi_arg_in productId, abi_arg_in skuId, abi_arg_out> requestPurchaseBySkuIdOperation) noexcept override - { - try - { - *requestPurchaseBySkuIdOperation = detach(this->shim().RequestProductPurchaseByProductIdAndSkuIdAsync(*reinterpret_cast(&productId), *reinterpret_cast(&skuId))); - return S_OK; - } - catch (...) - { - *requestPurchaseBySkuIdOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadAddOnProductInfosAsync(abi_arg_out>> loadAddOnProductInfosOperation) noexcept override - { - try - { - *loadAddOnProductInfosOperation = detach(this->shim().LoadAddOnProductInfosAsync()); - return S_OK; - } - catch (...) - { - *loadAddOnProductInfosOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProductId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProductId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProductType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProductType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SkuInfoList(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SkuInfoList()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProductPurchaseStatus(Windows::ApplicationModel::Store::Preview::StorePreviewProductPurchaseStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ProductPurchaseStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProductId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProductId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SkuId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SkuId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SkuType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SkuType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomDeveloperData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomDeveloperData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrencyCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrencyCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FormattedListPrice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormattedListPrice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Store::Preview { - -template hstring impl_IStorePreviewProductInfo::ProductId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProductId(put(value))); - return value; -} - -template hstring impl_IStorePreviewProductInfo::ProductType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProductType(put(value))); - return value; -} - -template hstring impl_IStorePreviewProductInfo::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template hstring impl_IStorePreviewProductInfo::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStorePreviewProductInfo::SkuInfoList() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SkuInfoList(put(value))); - return value; -} - -template hstring impl_IStorePreviewSkuInfo::ProductId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProductId(put(value))); - return value; -} - -template hstring impl_IStorePreviewSkuInfo::SkuId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SkuId(put(value))); - return value; -} - -template hstring impl_IStorePreviewSkuInfo::SkuType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SkuType(put(value))); - return value; -} - -template hstring impl_IStorePreviewSkuInfo::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template hstring impl_IStorePreviewSkuInfo::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template hstring impl_IStorePreviewSkuInfo::CustomDeveloperData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CustomDeveloperData(put(value))); - return value; -} - -template hstring impl_IStorePreviewSkuInfo::CurrencyCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CurrencyCode(put(value))); - return value; -} - -template hstring impl_IStorePreviewSkuInfo::FormattedListPrice() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FormattedListPrice(put(value))); - return value; -} - -template hstring impl_IStorePreviewSkuInfo::ExtendedData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedData(put(value))); - return value; -} - -template Windows::ApplicationModel::Store::Preview::StorePreviewProductPurchaseStatus impl_IStorePreviewPurchaseResults::ProductPurchaseStatus() const -{ - Windows::ApplicationModel::Store::Preview::StorePreviewProductPurchaseStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ProductPurchaseStatus(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStorePreview::RequestProductPurchaseByProductIdAndSkuIdAsync(hstring_ref productId, hstring_ref skuId) const -{ - Windows::Foundation::IAsyncOperation requestPurchaseBySkuIdOperation; - check_hresult(static_cast(static_cast(*this))->abi_RequestProductPurchaseByProductIdAndSkuIdAsync(get(productId), get(skuId), put(requestPurchaseBySkuIdOperation))); - return requestPurchaseBySkuIdOperation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorePreview::LoadAddOnProductInfosAsync() const -{ - Windows::Foundation::IAsyncOperation> loadAddOnProductInfosOperation; - check_hresult(static_cast(static_cast(*this))->abi_LoadAddOnProductInfosAsync(put(loadAddOnProductInfosOperation))); - return loadAddOnProductInfosOperation; -} - -template hstring impl_IStoreHardwareManufacturerInfo::HardwareManufacturerId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HardwareManufacturerId(put(value))); - return value; -} - -template hstring impl_IStoreHardwareManufacturerInfo::StoreContentModifierId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StoreContentModifierId(put(value))); - return value; -} - -template hstring impl_IStoreHardwareManufacturerInfo::ModelName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ModelName(put(value))); - return value; -} - -template hstring impl_IStoreHardwareManufacturerInfo::ManufacturerName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ManufacturerName(put(value))); - return value; -} - -template void impl_IStoreConfigurationStatics::SetSystemConfiguration(hstring_ref catalogHardwareManufacturerId, hstring_ref catalogStoreContentModifierId, const Windows::Foundation::DateTime & systemConfigurationExpiration, hstring_ref catalogHardwareDescriptor) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSystemConfiguration(get(catalogHardwareManufacturerId), get(catalogStoreContentModifierId), get(systemConfigurationExpiration), get(catalogHardwareDescriptor))); -} - -template void impl_IStoreConfigurationStatics::SetMobileOperatorConfiguration(hstring_ref mobileOperatorId, uint32_t appDownloadLimitInMegabytes, uint32_t updateDownloadLimitInMegabytes) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetMobileOperatorConfiguration(get(mobileOperatorId), appDownloadLimitInMegabytes, updateDownloadLimitInMegabytes)); -} - -template void impl_IStoreConfigurationStatics::SetStoreWebAccountId(hstring_ref webAccountId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetStoreWebAccountId(get(webAccountId))); -} - -template bool impl_IStoreConfigurationStatics::IsStoreWebAccountId(hstring_ref webAccountId) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsStoreWebAccountId(get(webAccountId), &value)); - return value; -} - -template Windows::ApplicationModel::Store::Preview::StoreHardwareManufacturerInfo impl_IStoreConfigurationStatics::HardwareManufacturerInfo() const -{ - Windows::ApplicationModel::Store::Preview::StoreHardwareManufacturerInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HardwareManufacturerInfo(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IStoreConfigurationStatics::FilterUnsupportedSystemFeaturesAsync(const Windows::Foundation::Collections::IIterable & systemFeatures) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FilterUnsupportedSystemFeaturesAsync(get(systemFeatures), put(operation))); - return operation; -} - -template Windows::Foundation::IReference impl_IStoreConfigurationStatics2::PurchasePromptingPolicy() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_PurchasePromptingPolicy(put(value))); - return value; -} - -template void impl_IStoreConfigurationStatics2::PurchasePromptingPolicy(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PurchasePromptingPolicy(get(value))); -} - -template bool impl_IStoreConfigurationStatics3::HasStoreWebAccount() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_HasStoreWebAccount(&value)); - return value; -} - -template bool impl_IStoreConfigurationStatics3::HasStoreWebAccountForUser(const Windows::System::User & user) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_HasStoreWebAccountForUser(get(user), &value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreConfigurationStatics3::GetStoreLogDataAsync(Windows::ApplicationModel::Store::Preview::StoreLogOptions options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetStoreLogDataAsync(options, put(operation))); - return operation; -} - -template void impl_IStoreConfigurationStatics3::SetStoreWebAccountIdForUser(const Windows::System::User & user, hstring_ref webAccountId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetStoreWebAccountIdForUser(get(user), get(webAccountId))); -} - -template bool impl_IStoreConfigurationStatics3::IsStoreWebAccountIdForUser(const Windows::System::User & user, hstring_ref webAccountId) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsStoreWebAccountIdForUser(get(user), get(webAccountId), &value)); - return value; -} - -template Windows::Foundation::IReference impl_IStoreConfigurationStatics3::GetPurchasePromptingPolicyForUser(const Windows::System::User & user) const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->abi_GetPurchasePromptingPolicyForUser(get(user), put(value))); - return value; -} - -template void impl_IStoreConfigurationStatics3::SetPurchasePromptingPolicyForUser(const Windows::System::User & user, const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPurchasePromptingPolicyForUser(get(user), get(value))); -} - -inline void StoreConfiguration::SetSystemConfiguration(hstring_ref catalogHardwareManufacturerId, hstring_ref catalogStoreContentModifierId, const Windows::Foundation::DateTime & systemConfigurationExpiration, hstring_ref catalogHardwareDescriptor) -{ - get_activation_factory().SetSystemConfiguration(catalogHardwareManufacturerId, catalogStoreContentModifierId, systemConfigurationExpiration, catalogHardwareDescriptor); -} - -inline void StoreConfiguration::SetMobileOperatorConfiguration(hstring_ref mobileOperatorId, uint32_t appDownloadLimitInMegabytes, uint32_t updateDownloadLimitInMegabytes) -{ - get_activation_factory().SetMobileOperatorConfiguration(mobileOperatorId, appDownloadLimitInMegabytes, updateDownloadLimitInMegabytes); -} - -inline void StoreConfiguration::SetStoreWebAccountId(hstring_ref webAccountId) -{ - get_activation_factory().SetStoreWebAccountId(webAccountId); -} - -inline bool StoreConfiguration::IsStoreWebAccountId(hstring_ref webAccountId) -{ - return get_activation_factory().IsStoreWebAccountId(webAccountId); -} - -inline Windows::ApplicationModel::Store::Preview::StoreHardwareManufacturerInfo StoreConfiguration::HardwareManufacturerInfo() -{ - return get_activation_factory().HardwareManufacturerInfo(); -} - -inline Windows::Foundation::IAsyncOperation> StoreConfiguration::FilterUnsupportedSystemFeaturesAsync(const Windows::Foundation::Collections::IIterable & systemFeatures) -{ - return get_activation_factory().FilterUnsupportedSystemFeaturesAsync(systemFeatures); -} - -inline Windows::Foundation::IReference StoreConfiguration::PurchasePromptingPolicy() -{ - return get_activation_factory().PurchasePromptingPolicy(); -} - -inline void StoreConfiguration::PurchasePromptingPolicy(const Windows::Foundation::IReference & value) -{ - get_activation_factory().PurchasePromptingPolicy(value); -} - -inline bool StoreConfiguration::HasStoreWebAccount() -{ - return get_activation_factory().HasStoreWebAccount(); -} - -inline bool StoreConfiguration::HasStoreWebAccountForUser(const Windows::System::User & user) -{ - return get_activation_factory().HasStoreWebAccountForUser(user); -} - -inline Windows::Foundation::IAsyncOperation StoreConfiguration::GetStoreLogDataAsync(Windows::ApplicationModel::Store::Preview::StoreLogOptions options) -{ - return get_activation_factory().GetStoreLogDataAsync(options); -} - -inline void StoreConfiguration::SetStoreWebAccountIdForUser(const Windows::System::User & user, hstring_ref webAccountId) -{ - get_activation_factory().SetStoreWebAccountIdForUser(user, webAccountId); -} - -inline bool StoreConfiguration::IsStoreWebAccountIdForUser(const Windows::System::User & user, hstring_ref webAccountId) -{ - return get_activation_factory().IsStoreWebAccountIdForUser(user, webAccountId); -} - -inline Windows::Foundation::IReference StoreConfiguration::GetPurchasePromptingPolicyForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetPurchasePromptingPolicyForUser(user); -} - -inline void StoreConfiguration::SetPurchasePromptingPolicyForUser(const Windows::System::User & user, const Windows::Foundation::IReference & value) -{ - get_activation_factory().SetPurchasePromptingPolicyForUser(user, value); -} - -inline Windows::Foundation::IAsyncOperation StorePreview::RequestProductPurchaseByProductIdAndSkuIdAsync(hstring_ref productId, hstring_ref skuId) -{ - return get_activation_factory().RequestProductPurchaseByProductIdAndSkuIdAsync(productId, skuId); -} - -inline Windows::Foundation::IAsyncOperation> StorePreview::LoadAddOnProductInfosAsync() -{ - return get_activation_factory().LoadAddOnProductInfosAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Store.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Store.h deleted file mode 100644 index 578565dce..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Store.h +++ /dev/null @@ -1,1981 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.Store.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::ApplicationModel::Store { - -template LicenseChangedEventHandler::LicenseChangedEventHandler(L lambda) : - LicenseChangedEventHandler(impl::make_delegate, LicenseChangedEventHandler>(std::forward(lambda))) -{} - -template LicenseChangedEventHandler::LicenseChangedEventHandler(F * function) : - LicenseChangedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template LicenseChangedEventHandler::LicenseChangedEventHandler(O * object, M method) : - LicenseChangedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void LicenseChangedEventHandler::operator()() const -{ - check_hresult((*this)->abi_Invoke()); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LicenseInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LicenseInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinkUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LinkUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AppId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAppPurchaseAsync(bool includeReceipt, abi_arg_out> requestAppPurchaseOperation) noexcept override - { - try - { - *requestAppPurchaseOperation = detach(this->shim().RequestAppPurchaseAsync(includeReceipt)); - return S_OK; - } - catch (...) - { - *requestAppPurchaseOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestProductPurchaseAsync(abi_arg_in productId, bool includeReceipt, abi_arg_out> requestProductPurchaseOperation) noexcept override - { - try - { - *requestProductPurchaseOperation = detach(this->shim().RequestProductPurchaseAsync(*reinterpret_cast(&productId), includeReceipt)); - return S_OK; - } - catch (...) - { - *requestProductPurchaseOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadListingInformationAsync(abi_arg_out> loadListingOperation) noexcept override - { - try - { - *loadListingOperation = detach(this->shim().LoadListingInformationAsync()); - return S_OK; - } - catch (...) - { - *loadListingOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppReceiptAsync(abi_arg_out> appReceiptOperation) noexcept override - { - try - { - *appReceiptOperation = detach(this->shim().GetAppReceiptAsync()); - return S_OK; - } - catch (...) - { - *appReceiptOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetProductReceiptAsync(abi_arg_in productId, abi_arg_out> getProductReceiptOperation) noexcept override - { - try - { - *getProductReceiptOperation = detach(this->shim().GetProductReceiptAsync(*reinterpret_cast(&productId))); - return S_OK; - } - catch (...) - { - *getProductReceiptOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCustomerPurchaseIdAsync(abi_arg_in serviceTicket, abi_arg_in publisherUserId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCustomerPurchaseIdAsync(*reinterpret_cast(&serviceTicket), *reinterpret_cast(&publisherUserId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCustomerCollectionsIdAsync(abi_arg_in serviceTicket, abi_arg_in publisherUserId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCustomerCollectionsIdAsync(*reinterpret_cast(&serviceTicket), *reinterpret_cast(&publisherUserId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LicenseInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LicenseInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinkUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LinkUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AppId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAppPurchaseAsync(bool includeReceipt, abi_arg_out> requestAppPurchaseOperation) noexcept override - { - try - { - *requestAppPurchaseOperation = detach(this->shim().RequestAppPurchaseAsync(includeReceipt)); - return S_OK; - } - catch (...) - { - *requestAppPurchaseOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestProductPurchaseAsync(abi_arg_in productId, bool includeReceipt, abi_arg_out> requestProductPurchaseOperation) noexcept override - { - try - { - *requestProductPurchaseOperation = detach(this->shim().RequestProductPurchaseAsync(*reinterpret_cast(&productId), includeReceipt)); - return S_OK; - } - catch (...) - { - *requestProductPurchaseOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadListingInformationAsync(abi_arg_out> loadListingOperation) noexcept override - { - try - { - *loadListingOperation = detach(this->shim().LoadListingInformationAsync()); - return S_OK; - } - catch (...) - { - *loadListingOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppReceiptAsync(abi_arg_out> appReceiptOperation) noexcept override - { - try - { - *appReceiptOperation = detach(this->shim().GetAppReceiptAsync()); - return S_OK; - } - catch (...) - { - *appReceiptOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetProductReceiptAsync(abi_arg_in productId, abi_arg_out> getProductReceiptOperation) noexcept override - { - try - { - *getProductReceiptOperation = detach(this->shim().GetProductReceiptAsync(*reinterpret_cast(&productId))); - return S_OK; - } - catch (...) - { - *getProductReceiptOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReloadSimulatorAsync(abi_arg_in simulatorSettingsFile, abi_arg_out reloadSimulatorOperation) noexcept override - { - try - { - *reloadSimulatorOperation = detach(this->shim().ReloadSimulatorAsync(*reinterpret_cast(&simulatorSettingsFile))); - return S_OK; - } - catch (...) - { - *reloadSimulatorOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LoadListingInformationByProductIdsAsync(abi_arg_in> productIds, abi_arg_out> loadListingOperation) noexcept override - { - try - { - *loadListingOperation = detach(this->shim().LoadListingInformationByProductIdsAsync(*reinterpret_cast *>(&productIds))); - return S_OK; - } - catch (...) - { - *loadListingOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadListingInformationByKeywordsAsync(abi_arg_in> keywords, abi_arg_out> loadListingOperation) noexcept override - { - try - { - *loadListingOperation = detach(this->shim().LoadListingInformationByKeywordsAsync(*reinterpret_cast *>(&keywords))); - return S_OK; - } - catch (...) - { - *loadListingOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAppPurchaseCampaignIdAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAppPurchaseCampaignIdAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReportConsumableFulfillmentAsync(abi_arg_in productId, GUID transactionId, abi_arg_out> reportConsumableFulfillmentOperation) noexcept override - { - try - { - *reportConsumableFulfillmentOperation = detach(this->shim().ReportConsumableFulfillmentAsync(*reinterpret_cast(&productId), transactionId)); - return S_OK; - } - catch (...) - { - *reportConsumableFulfillmentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestProductPurchaseWithResultsAsync(abi_arg_in productId, abi_arg_out> requestProductPurchaseWithResultsOperation) noexcept override - { - try - { - *requestProductPurchaseWithResultsOperation = detach(this->shim().RequestProductPurchaseAsync(*reinterpret_cast(&productId))); - return S_OK; - } - catch (...) - { - *requestProductPurchaseWithResultsOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestProductPurchaseWithDisplayPropertiesAsync(abi_arg_in productId, abi_arg_in offerId, abi_arg_in displayProperties, abi_arg_out> requestProductPurchaseWithDisplayPropertiesOperation) noexcept override - { - try - { - *requestProductPurchaseWithDisplayPropertiesOperation = detach(this->shim().RequestProductPurchaseAsync(*reinterpret_cast(&productId), *reinterpret_cast(&offerId), *reinterpret_cast(&displayProperties))); - return S_OK; - } - catch (...) - { - *requestProductPurchaseWithDisplayPropertiesOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUnfulfilledConsumablesAsync(abi_arg_out>> getUnfulfilledConsumablesOperation) noexcept override - { - try - { - *getUnfulfilledConsumablesOperation = detach(this->shim().GetUnfulfilledConsumablesAsync()); - return S_OK; - } - catch (...) - { - *getUnfulfilledConsumablesOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LoadListingInformationByProductIdsAsync(abi_arg_in> productIds, abi_arg_out> loadListingOperation) noexcept override - { - try - { - *loadListingOperation = detach(this->shim().LoadListingInformationByProductIdsAsync(*reinterpret_cast *>(&productIds))); - return S_OK; - } - catch (...) - { - *loadListingOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadListingInformationByKeywordsAsync(abi_arg_in> keywords, abi_arg_out> loadListingOperation) noexcept override - { - try - { - *loadListingOperation = detach(this->shim().LoadListingInformationByKeywordsAsync(*reinterpret_cast *>(&keywords))); - return S_OK; - } - catch (...) - { - *loadListingOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportProductFulfillment(abi_arg_in productId) noexcept override - { - try - { - this->shim().ReportProductFulfillment(*reinterpret_cast(&productId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAppPurchaseCampaignIdAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAppPurchaseCampaignIdAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReportConsumableFulfillmentAsync(abi_arg_in productId, GUID transactionId, abi_arg_out> reportConsumableFulfillmentOperation) noexcept override - { - try - { - *reportConsumableFulfillmentOperation = detach(this->shim().ReportConsumableFulfillmentAsync(*reinterpret_cast(&productId), transactionId)); - return S_OK; - } - catch (...) - { - *reportConsumableFulfillmentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestProductPurchaseWithResultsAsync(abi_arg_in productId, abi_arg_out> requestProductPurchaseWithResultsOperation) noexcept override - { - try - { - *requestProductPurchaseWithResultsOperation = detach(this->shim().RequestProductPurchaseAsync(*reinterpret_cast(&productId))); - return S_OK; - } - catch (...) - { - *requestProductPurchaseWithResultsOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestProductPurchaseWithDisplayPropertiesAsync(abi_arg_in productId, abi_arg_in offerId, abi_arg_in displayProperties, abi_arg_out> requestProductPurchaseWithDisplayPropertiesOperation) noexcept override - { - try - { - *requestProductPurchaseWithDisplayPropertiesOperation = detach(this->shim().RequestProductPurchaseAsync(*reinterpret_cast(&productId), *reinterpret_cast(&offerId), *reinterpret_cast(&displayProperties))); - return S_OK; - } - catch (...) - { - *requestProductPurchaseWithDisplayPropertiesOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUnfulfilledConsumablesAsync(abi_arg_out>> getUnfulfilledConsumablesOperation) noexcept override - { - try - { - *getUnfulfilledConsumablesOperation = detach(this->shim().GetUnfulfilledConsumablesAsync()); - return S_OK; - } - catch (...) - { - *getUnfulfilledConsumablesOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProductLicenses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ProductLicenses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTrial(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTrial()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LicenseChanged(abi_arg_in handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().LicenseChanged(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LicenseChanged(event_token cookie) noexcept override - { - try - { - this->shim().LicenseChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentMarket(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentMarket()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProductListings(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ProductListings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FormattedPrice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormattedPrice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AgeRating(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AgeRating()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FormattedBasePrice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormattedBasePrice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SaleEndDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SaleEndDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOnSale(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOnSale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrencyCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrencyCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProductId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProductId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsConsumable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsConsumable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProductId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProductId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FormattedPrice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormattedPrice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FormattedBasePrice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormattedBasePrice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SaleEndDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SaleEndDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOnSale(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOnSale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrencyCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrencyCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProductType(Windows::ApplicationModel::Store::ProductType * value) noexcept override - { - try - { - *value = detach(this->shim().ProductType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Keywords(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Keywords()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProductType(Windows::ApplicationModel::Store::ProductType * value) noexcept override - { - try - { - *value = detach(this->shim().ProductType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImageUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImageUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Image(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Image()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Image(abi_arg_in value) noexcept override - { - try - { - this->shim().Image(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateProductPurchaseDisplayProperties(abi_arg_in name, abi_arg_out displayProperties) noexcept override - { - try - { - *displayProperties = detach(this->shim().CreateProductPurchaseDisplayProperties(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *displayProperties = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::ApplicationModel::Store::ProductPurchaseStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransactionId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TransactionId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReceiptXml(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReceiptXml()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OfferId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OfferId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProductId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProductId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransactionId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TransactionId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OfferId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OfferId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Store { - -template Windows::ApplicationModel::Store::LicenseInformation impl_ICurrentApp::LicenseInformation() const -{ - Windows::ApplicationModel::Store::LicenseInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LicenseInformation(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_ICurrentApp::LinkUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LinkUri(put(value))); - return value; -} - -template GUID impl_ICurrentApp::AppId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AppId(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentApp::RequestAppPurchaseAsync(bool includeReceipt) const -{ - Windows::Foundation::IAsyncOperation requestAppPurchaseOperation; - check_hresult(static_cast(static_cast(*this))->abi_RequestAppPurchaseAsync(includeReceipt, put(requestAppPurchaseOperation))); - return requestAppPurchaseOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentApp::RequestProductPurchaseAsync(hstring_ref productId, bool includeReceipt) const -{ - Windows::Foundation::IAsyncOperation requestProductPurchaseOperation; - check_hresult(static_cast(static_cast(*this))->abi_RequestProductPurchaseAsync(get(productId), includeReceipt, put(requestProductPurchaseOperation))); - return requestProductPurchaseOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentApp::LoadListingInformationAsync() const -{ - Windows::Foundation::IAsyncOperation loadListingOperation; - check_hresult(static_cast(static_cast(*this))->abi_LoadListingInformationAsync(put(loadListingOperation))); - return loadListingOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentApp::GetAppReceiptAsync() const -{ - Windows::Foundation::IAsyncOperation appReceiptOperation; - check_hresult(static_cast(static_cast(*this))->abi_GetAppReceiptAsync(put(appReceiptOperation))); - return appReceiptOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentApp::GetProductReceiptAsync(hstring_ref productId) const -{ - Windows::Foundation::IAsyncOperation getProductReceiptOperation; - check_hresult(static_cast(static_cast(*this))->abi_GetProductReceiptAsync(get(productId), put(getProductReceiptOperation))); - return getProductReceiptOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppWithConsumables::ReportConsumableFulfillmentAsync(hstring_ref productId, GUID transactionId) const -{ - Windows::Foundation::IAsyncOperation reportConsumableFulfillmentOperation; - check_hresult(static_cast(static_cast(*this))->abi_ReportConsumableFulfillmentAsync(get(productId), transactionId, put(reportConsumableFulfillmentOperation))); - return reportConsumableFulfillmentOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppWithConsumables::RequestProductPurchaseAsync(hstring_ref productId) const -{ - Windows::Foundation::IAsyncOperation requestProductPurchaseWithResultsOperation; - check_hresult(static_cast(static_cast(*this))->abi_RequestProductPurchaseWithResultsAsync(get(productId), put(requestProductPurchaseWithResultsOperation))); - return requestProductPurchaseWithResultsOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppWithConsumables::RequestProductPurchaseAsync(hstring_ref productId, hstring_ref offerId, const Windows::ApplicationModel::Store::ProductPurchaseDisplayProperties & displayProperties) const -{ - Windows::Foundation::IAsyncOperation requestProductPurchaseWithDisplayPropertiesOperation; - check_hresult(static_cast(static_cast(*this))->abi_RequestProductPurchaseWithDisplayPropertiesAsync(get(productId), get(offerId), get(displayProperties), put(requestProductPurchaseWithDisplayPropertiesOperation))); - return requestProductPurchaseWithDisplayPropertiesOperation; -} - -template Windows::Foundation::IAsyncOperation> impl_ICurrentAppWithConsumables::GetUnfulfilledConsumablesAsync() const -{ - Windows::Foundation::IAsyncOperation> getUnfulfilledConsumablesOperation; - check_hresult(static_cast(static_cast(*this))->abi_GetUnfulfilledConsumablesAsync(put(getUnfulfilledConsumablesOperation))); - return getUnfulfilledConsumablesOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppWithCampaignId::GetAppPurchaseCampaignIdAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAppPurchaseCampaignIdAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentApp2Statics::GetCustomerPurchaseIdAsync(hstring_ref serviceTicket, hstring_ref publisherUserId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCustomerPurchaseIdAsync(get(serviceTicket), get(publisherUserId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentApp2Statics::GetCustomerCollectionsIdAsync(hstring_ref serviceTicket, hstring_ref publisherUserId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCustomerCollectionsIdAsync(get(serviceTicket), get(publisherUserId), put(operation))); - return operation; -} - -template Windows::ApplicationModel::Store::LicenseInformation impl_ICurrentAppSimulator::LicenseInformation() const -{ - Windows::ApplicationModel::Store::LicenseInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LicenseInformation(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_ICurrentAppSimulator::LinkUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LinkUri(put(value))); - return value; -} - -template GUID impl_ICurrentAppSimulator::AppId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AppId(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppSimulator::RequestAppPurchaseAsync(bool includeReceipt) const -{ - Windows::Foundation::IAsyncOperation requestAppPurchaseOperation; - check_hresult(static_cast(static_cast(*this))->abi_RequestAppPurchaseAsync(includeReceipt, put(requestAppPurchaseOperation))); - return requestAppPurchaseOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppSimulator::RequestProductPurchaseAsync(hstring_ref productId, bool includeReceipt) const -{ - Windows::Foundation::IAsyncOperation requestProductPurchaseOperation; - check_hresult(static_cast(static_cast(*this))->abi_RequestProductPurchaseAsync(get(productId), includeReceipt, put(requestProductPurchaseOperation))); - return requestProductPurchaseOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppSimulator::LoadListingInformationAsync() const -{ - Windows::Foundation::IAsyncOperation loadListingOperation; - check_hresult(static_cast(static_cast(*this))->abi_LoadListingInformationAsync(put(loadListingOperation))); - return loadListingOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppSimulator::GetAppReceiptAsync() const -{ - Windows::Foundation::IAsyncOperation appReceiptOperation; - check_hresult(static_cast(static_cast(*this))->abi_GetAppReceiptAsync(put(appReceiptOperation))); - return appReceiptOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppSimulator::GetProductReceiptAsync(hstring_ref productId) const -{ - Windows::Foundation::IAsyncOperation getProductReceiptOperation; - check_hresult(static_cast(static_cast(*this))->abi_GetProductReceiptAsync(get(productId), put(getProductReceiptOperation))); - return getProductReceiptOperation; -} - -template Windows::Foundation::IAsyncAction impl_ICurrentAppSimulator::ReloadSimulatorAsync(const Windows::Storage::StorageFile & simulatorSettingsFile) const -{ - Windows::Foundation::IAsyncAction reloadSimulatorOperation; - check_hresult(static_cast(static_cast(*this))->abi_ReloadSimulatorAsync(get(simulatorSettingsFile), put(reloadSimulatorOperation))); - return reloadSimulatorOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppSimulatorWithCampaignId::GetAppPurchaseCampaignIdAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAppPurchaseCampaignIdAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppSimulatorWithConsumables::ReportConsumableFulfillmentAsync(hstring_ref productId, GUID transactionId) const -{ - Windows::Foundation::IAsyncOperation reportConsumableFulfillmentOperation; - check_hresult(static_cast(static_cast(*this))->abi_ReportConsumableFulfillmentAsync(get(productId), transactionId, put(reportConsumableFulfillmentOperation))); - return reportConsumableFulfillmentOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppSimulatorWithConsumables::RequestProductPurchaseAsync(hstring_ref productId) const -{ - Windows::Foundation::IAsyncOperation requestProductPurchaseWithResultsOperation; - check_hresult(static_cast(static_cast(*this))->abi_RequestProductPurchaseWithResultsAsync(get(productId), put(requestProductPurchaseWithResultsOperation))); - return requestProductPurchaseWithResultsOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppSimulatorWithConsumables::RequestProductPurchaseAsync(hstring_ref productId, hstring_ref offerId, const Windows::ApplicationModel::Store::ProductPurchaseDisplayProperties & displayProperties) const -{ - Windows::Foundation::IAsyncOperation requestProductPurchaseWithDisplayPropertiesOperation; - check_hresult(static_cast(static_cast(*this))->abi_RequestProductPurchaseWithDisplayPropertiesAsync(get(productId), get(offerId), get(displayProperties), put(requestProductPurchaseWithDisplayPropertiesOperation))); - return requestProductPurchaseWithDisplayPropertiesOperation; -} - -template Windows::Foundation::IAsyncOperation> impl_ICurrentAppSimulatorWithConsumables::GetUnfulfilledConsumablesAsync() const -{ - Windows::Foundation::IAsyncOperation> getUnfulfilledConsumablesOperation; - check_hresult(static_cast(static_cast(*this))->abi_GetUnfulfilledConsumablesAsync(put(getUnfulfilledConsumablesOperation))); - return getUnfulfilledConsumablesOperation; -} - -template Windows::ApplicationModel::Store::ProductPurchaseStatus impl_IPurchaseResults::Status() const -{ - Windows::ApplicationModel::Store::ProductPurchaseStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template GUID impl_IPurchaseResults::TransactionId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TransactionId(&value)); - return value; -} - -template hstring impl_IPurchaseResults::ReceiptXml() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ReceiptXml(put(value))); - return value; -} - -template hstring impl_IPurchaseResults::OfferId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OfferId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_ILicenseInformation::ProductLicenses() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_ProductLicenses(put(value))); - return value; -} - -template bool impl_ILicenseInformation::IsActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActive(&value)); - return value; -} - -template bool impl_ILicenseInformation::IsTrial() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTrial(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_ILicenseInformation::ExpirationDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ExpirationDate(put(value))); - return value; -} - -template event_token impl_ILicenseInformation::LicenseChanged(const Windows::ApplicationModel::Store::LicenseChangedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_LicenseChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ILicenseInformation::LicenseChanged(auto_revoke_t, const Windows::ApplicationModel::Store::LicenseChangedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Store::ILicenseInformation::remove_LicenseChanged, LicenseChanged(handler)); -} - -template void impl_ILicenseInformation::LicenseChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LicenseChanged(cookie)); -} - -template hstring impl_IProductLicense::ProductId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProductId(put(value))); - return value; -} - -template bool impl_IProductLicense::IsActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActive(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IProductLicense::ExpirationDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ExpirationDate(put(value))); - return value; -} - -template hstring impl_IListingInformation::CurrentMarket() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CurrentMarket(put(value))); - return value; -} - -template hstring impl_IListingInformation::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IListingInformation::ProductListings() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_ProductListings(put(value))); - return value; -} - -template hstring impl_IListingInformation::FormattedPrice() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FormattedPrice(put(value))); - return value; -} - -template hstring impl_IListingInformation::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template uint32_t impl_IListingInformation::AgeRating() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AgeRating(&value)); - return value; -} - -template hstring impl_IListingInformation2::FormattedBasePrice() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FormattedBasePrice(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IListingInformation2::SaleEndDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_SaleEndDate(put(value))); - return value; -} - -template bool impl_IListingInformation2::IsOnSale() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOnSale(&value)); - return value; -} - -template hstring impl_IListingInformation2::CurrencyCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CurrencyCode(put(value))); - return value; -} - -template hstring impl_IProductListing::ProductId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProductId(put(value))); - return value; -} - -template hstring impl_IProductListing::FormattedPrice() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FormattedPrice(put(value))); - return value; -} - -template hstring impl_IProductListing::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::ApplicationModel::Store::ProductType impl_IProductListingWithConsumables::ProductType() const -{ - Windows::ApplicationModel::Store::ProductType value {}; - check_hresult(static_cast(static_cast(*this))->get_ProductType(&value)); - return value; -} - -template hstring impl_IProductListing2::FormattedBasePrice() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FormattedBasePrice(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IProductListing2::SaleEndDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_SaleEndDate(put(value))); - return value; -} - -template bool impl_IProductListing2::IsOnSale() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOnSale(&value)); - return value; -} - -template hstring impl_IProductListing2::CurrencyCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CurrencyCode(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppStaticsWithFiltering::LoadListingInformationByProductIdsAsync(const Windows::Foundation::Collections::IIterable & productIds) const -{ - Windows::Foundation::IAsyncOperation loadListingOperation; - check_hresult(static_cast(static_cast(*this))->abi_LoadListingInformationByProductIdsAsync(get(productIds), put(loadListingOperation))); - return loadListingOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppStaticsWithFiltering::LoadListingInformationByKeywordsAsync(const Windows::Foundation::Collections::IIterable & keywords) const -{ - Windows::Foundation::IAsyncOperation loadListingOperation; - check_hresult(static_cast(static_cast(*this))->abi_LoadListingInformationByKeywordsAsync(get(keywords), put(loadListingOperation))); - return loadListingOperation; -} - -template void impl_ICurrentAppStaticsWithFiltering::ReportProductFulfillment(hstring_ref productId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportProductFulfillment(get(productId))); -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppSimulatorStaticsWithFiltering::LoadListingInformationByProductIdsAsync(const Windows::Foundation::Collections::IIterable & productIds) const -{ - Windows::Foundation::IAsyncOperation loadListingOperation; - check_hresult(static_cast(static_cast(*this))->abi_LoadListingInformationByProductIdsAsync(get(productIds), put(loadListingOperation))); - return loadListingOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICurrentAppSimulatorStaticsWithFiltering::LoadListingInformationByKeywordsAsync(const Windows::Foundation::Collections::IIterable & keywords) const -{ - Windows::Foundation::IAsyncOperation loadListingOperation; - check_hresult(static_cast(static_cast(*this))->abi_LoadListingInformationByKeywordsAsync(get(keywords), put(loadListingOperation))); - return loadListingOperation; -} - -template bool impl_IProductLicenseWithFulfillment::IsConsumable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsConsumable(&value)); - return value; -} - -template hstring impl_IProductListingWithMetadata::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template Windows::Foundation::Collections::IIterable impl_IProductListingWithMetadata::Keywords() const -{ - Windows::Foundation::Collections::IIterable value; - check_hresult(static_cast(static_cast(*this))->get_Keywords(put(value))); - return value; -} - -template Windows::ApplicationModel::Store::ProductType impl_IProductListingWithMetadata::ProductType() const -{ - Windows::ApplicationModel::Store::ProductType value {}; - check_hresult(static_cast(static_cast(*this))->get_ProductType(&value)); - return value; -} - -template hstring impl_IProductListingWithMetadata::Tag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Tag(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IProductListingWithMetadata::ImageUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ImageUri(put(value))); - return value; -} - -template hstring impl_IUnfulfilledConsumable::ProductId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProductId(put(value))); - return value; -} - -template GUID impl_IUnfulfilledConsumable::TransactionId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TransactionId(&value)); - return value; -} - -template hstring impl_IUnfulfilledConsumable::OfferId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OfferId(put(value))); - return value; -} - -template hstring impl_IProductPurchaseDisplayProperties::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IProductPurchaseDisplayProperties::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template hstring impl_IProductPurchaseDisplayProperties::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IProductPurchaseDisplayProperties::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template Windows::Foundation::Uri impl_IProductPurchaseDisplayProperties::Image() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Image(put(value))); - return value; -} - -template void impl_IProductPurchaseDisplayProperties::Image(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Image(get(value))); -} - -template Windows::ApplicationModel::Store::ProductPurchaseDisplayProperties impl_IProductPurchaseDisplayPropertiesFactory::CreateProductPurchaseDisplayProperties(hstring_ref name) const -{ - Windows::ApplicationModel::Store::ProductPurchaseDisplayProperties displayProperties { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateProductPurchaseDisplayProperties(get(name), put(displayProperties))); - return displayProperties; -} - -inline Windows::ApplicationModel::Store::LicenseInformation CurrentApp::LicenseInformation() -{ - return get_activation_factory().LicenseInformation(); -} - -inline Windows::Foundation::Uri CurrentApp::LinkUri() -{ - return get_activation_factory().LinkUri(); -} - -inline GUID CurrentApp::AppId() -{ - return get_activation_factory().AppId(); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::RequestAppPurchaseAsync(bool includeReceipt) -{ - return get_activation_factory().RequestAppPurchaseAsync(includeReceipt); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::RequestProductPurchaseAsync(hstring_ref productId, bool includeReceipt) -{ - return get_activation_factory().RequestProductPurchaseAsync(productId, includeReceipt); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::LoadListingInformationAsync() -{ - return get_activation_factory().LoadListingInformationAsync(); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::GetAppReceiptAsync() -{ - return get_activation_factory().GetAppReceiptAsync(); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::GetProductReceiptAsync(hstring_ref productId) -{ - return get_activation_factory().GetProductReceiptAsync(productId); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::GetCustomerPurchaseIdAsync(hstring_ref serviceTicket, hstring_ref publisherUserId) -{ - return get_activation_factory().GetCustomerPurchaseIdAsync(serviceTicket, publisherUserId); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::GetCustomerCollectionsIdAsync(hstring_ref serviceTicket, hstring_ref publisherUserId) -{ - return get_activation_factory().GetCustomerCollectionsIdAsync(serviceTicket, publisherUserId); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::LoadListingInformationByProductIdsAsync(const Windows::Foundation::Collections::IIterable & productIds) -{ - return get_activation_factory().LoadListingInformationByProductIdsAsync(productIds); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::LoadListingInformationByKeywordsAsync(const Windows::Foundation::Collections::IIterable & keywords) -{ - return get_activation_factory().LoadListingInformationByKeywordsAsync(keywords); -} - -inline void CurrentApp::ReportProductFulfillment(hstring_ref productId) -{ - get_activation_factory().ReportProductFulfillment(productId); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::GetAppPurchaseCampaignIdAsync() -{ - return get_activation_factory().GetAppPurchaseCampaignIdAsync(); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::ReportConsumableFulfillmentAsync(hstring_ref productId, GUID transactionId) -{ - return get_activation_factory().ReportConsumableFulfillmentAsync(productId, transactionId); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::RequestProductPurchaseAsync(hstring_ref productId) -{ - return get_activation_factory().RequestProductPurchaseAsync(productId); -} - -inline Windows::Foundation::IAsyncOperation CurrentApp::RequestProductPurchaseAsync(hstring_ref productId, hstring_ref offerId, const Windows::ApplicationModel::Store::ProductPurchaseDisplayProperties & displayProperties) -{ - return get_activation_factory().RequestProductPurchaseAsync(productId, offerId, displayProperties); -} - -inline Windows::Foundation::IAsyncOperation> CurrentApp::GetUnfulfilledConsumablesAsync() -{ - return get_activation_factory().GetUnfulfilledConsumablesAsync(); -} - -inline Windows::ApplicationModel::Store::LicenseInformation CurrentAppSimulator::LicenseInformation() -{ - return get_activation_factory().LicenseInformation(); -} - -inline Windows::Foundation::Uri CurrentAppSimulator::LinkUri() -{ - return get_activation_factory().LinkUri(); -} - -inline GUID CurrentAppSimulator::AppId() -{ - return get_activation_factory().AppId(); -} - -inline Windows::Foundation::IAsyncOperation CurrentAppSimulator::RequestAppPurchaseAsync(bool includeReceipt) -{ - return get_activation_factory().RequestAppPurchaseAsync(includeReceipt); -} - -inline Windows::Foundation::IAsyncOperation CurrentAppSimulator::RequestProductPurchaseAsync(hstring_ref productId, bool includeReceipt) -{ - return get_activation_factory().RequestProductPurchaseAsync(productId, includeReceipt); -} - -inline Windows::Foundation::IAsyncOperation CurrentAppSimulator::LoadListingInformationAsync() -{ - return get_activation_factory().LoadListingInformationAsync(); -} - -inline Windows::Foundation::IAsyncOperation CurrentAppSimulator::GetAppReceiptAsync() -{ - return get_activation_factory().GetAppReceiptAsync(); -} - -inline Windows::Foundation::IAsyncOperation CurrentAppSimulator::GetProductReceiptAsync(hstring_ref productId) -{ - return get_activation_factory().GetProductReceiptAsync(productId); -} - -inline Windows::Foundation::IAsyncAction CurrentAppSimulator::ReloadSimulatorAsync(const Windows::Storage::StorageFile & simulatorSettingsFile) -{ - return get_activation_factory().ReloadSimulatorAsync(simulatorSettingsFile); -} - -inline Windows::Foundation::IAsyncOperation CurrentAppSimulator::LoadListingInformationByProductIdsAsync(const Windows::Foundation::Collections::IIterable & productIds) -{ - return get_activation_factory().LoadListingInformationByProductIdsAsync(productIds); -} - -inline Windows::Foundation::IAsyncOperation CurrentAppSimulator::LoadListingInformationByKeywordsAsync(const Windows::Foundation::Collections::IIterable & keywords) -{ - return get_activation_factory().LoadListingInformationByKeywordsAsync(keywords); -} - -inline Windows::Foundation::IAsyncOperation CurrentAppSimulator::GetAppPurchaseCampaignIdAsync() -{ - return get_activation_factory().GetAppPurchaseCampaignIdAsync(); -} - -inline Windows::Foundation::IAsyncOperation CurrentAppSimulator::ReportConsumableFulfillmentAsync(hstring_ref productId, GUID transactionId) -{ - return get_activation_factory().ReportConsumableFulfillmentAsync(productId, transactionId); -} - -inline Windows::Foundation::IAsyncOperation CurrentAppSimulator::RequestProductPurchaseAsync(hstring_ref productId) -{ - return get_activation_factory().RequestProductPurchaseAsync(productId); -} - -inline Windows::Foundation::IAsyncOperation CurrentAppSimulator::RequestProductPurchaseAsync(hstring_ref productId, hstring_ref offerId, const Windows::ApplicationModel::Store::ProductPurchaseDisplayProperties & displayProperties) -{ - return get_activation_factory().RequestProductPurchaseAsync(productId, offerId, displayProperties); -} - -inline Windows::Foundation::IAsyncOperation> CurrentAppSimulator::GetUnfulfilledConsumablesAsync() -{ - return get_activation_factory().GetUnfulfilledConsumablesAsync(); -} - -inline ProductPurchaseDisplayProperties::ProductPurchaseDisplayProperties() : - ProductPurchaseDisplayProperties(activate_instance()) -{} - -inline ProductPurchaseDisplayProperties::ProductPurchaseDisplayProperties(hstring_ref name) : - ProductPurchaseDisplayProperties(get_activation_factory().CreateProductPurchaseDisplayProperties(name)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.UserDataAccounts.Provider.h b/10.0.14393.0/winrt/Windows.ApplicationModel.UserDataAccounts.Provider.h deleted file mode 100644 index 7126e5b4d..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.UserDataAccounts.Provider.h +++ /dev/null @@ -1,259 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.ApplicationModel.UserDataAccounts.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.UserDataAccounts.Provider.3.h" -#include "Windows.ApplicationModel.UserDataAccounts.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Priority(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Priority()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccountKind(Windows::ApplicationModel::UserDataAccounts::Provider::UserDataAccountProviderPartnerAccountKind * value) noexcept override - { - try - { - *value = detach(this->shim().AccountKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentKinds(Windows::ApplicationModel::UserDataAccounts::UserDataAccountContentKinds * value) noexcept override - { - try - { - *value = detach(this->shim().ContentKinds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PartnerAccountInfos(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PartnerAccountInfos()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompleted(abi_arg_in userDataAccountId) noexcept override - { - try - { - this->shim().ReportCompleted(*reinterpret_cast(&userDataAccountId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::ApplicationModel::UserDataAccounts::Provider::UserDataAccountProviderOperationKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UserDataAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserDataAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompleted() noexcept override - { - try - { - this->shim().ReportCompleted(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UserDataAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserDataAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompleted() noexcept override - { - try - { - this->shim().ReportCompleted(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::UserDataAccounts::Provider { - -template Windows::ApplicationModel::UserDataAccounts::Provider::UserDataAccountProviderOperationKind impl_IUserDataAccountProviderOperation::Kind() const -{ - Windows::ApplicationModel::UserDataAccounts::Provider::UserDataAccountProviderOperationKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::ApplicationModel::UserDataAccounts::UserDataAccountContentKinds impl_IUserDataAccountProviderAddAccountOperation::ContentKinds() const -{ - Windows::ApplicationModel::UserDataAccounts::UserDataAccountContentKinds value {}; - check_hresult(static_cast(static_cast(*this))->get_ContentKinds(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUserDataAccountProviderAddAccountOperation::PartnerAccountInfos() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_PartnerAccountInfos(put(value))); - return value; -} - -template void impl_IUserDataAccountProviderAddAccountOperation::ReportCompleted(hstring_ref userDataAccountId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompleted(get(userDataAccountId))); -} - -template hstring impl_IUserDataAccountPartnerAccountInfo::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template uint32_t impl_IUserDataAccountPartnerAccountInfo::Priority() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Priority(&value)); - return value; -} - -template Windows::ApplicationModel::UserDataAccounts::Provider::UserDataAccountProviderPartnerAccountKind impl_IUserDataAccountPartnerAccountInfo::AccountKind() const -{ - Windows::ApplicationModel::UserDataAccounts::Provider::UserDataAccountProviderPartnerAccountKind value {}; - check_hresult(static_cast(static_cast(*this))->get_AccountKind(&value)); - return value; -} - -template hstring impl_IUserDataAccountProviderSettingsOperation::UserDataAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserDataAccountId(put(value))); - return value; -} - -template void impl_IUserDataAccountProviderSettingsOperation::ReportCompleted() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompleted()); -} - -template hstring impl_IUserDataAccountProviderResolveErrorsOperation::UserDataAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserDataAccountId(put(value))); - return value; -} - -template void impl_IUserDataAccountProviderResolveErrorsOperation::ReportCompleted() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompleted()); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.UserDataAccounts.SystemAccess.h b/10.0.14393.0/winrt/Windows.ApplicationModel.UserDataAccounts.SystemAccess.h deleted file mode 100644 index 45fa4af1a..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.UserDataAccounts.SystemAccess.h +++ /dev/null @@ -1,1863 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Security.Credentials.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.UserDataAccounts.SystemAccess.3.h" -#include "Windows.ApplicationModel.UserDataAccounts.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AccountName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccountName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AccountName(abi_arg_in value) noexcept override - { - try - { - this->shim().AccountName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceAccountTypeId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceAccountTypeId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DeviceAccountTypeId(abi_arg_in value) noexcept override - { - try - { - this->shim().DeviceAccountTypeId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerType(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountServerType * value) noexcept override - { - try - { - *value = detach(this->shim().ServerType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ServerType(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountServerType value) noexcept override - { - try - { - this->shim().ServerType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EmailAddress(abi_arg_in value) noexcept override - { - try - { - this->shim().EmailAddress(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Domain(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Domain()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Domain(abi_arg_in value) noexcept override - { - try - { - this->shim().Domain(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailSyncEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().EmailSyncEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EmailSyncEnabled(bool value) noexcept override - { - try - { - this->shim().EmailSyncEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContactsSyncEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ContactsSyncEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContactsSyncEnabled(bool value) noexcept override - { - try - { - this->shim().ContactsSyncEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarSyncEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CalendarSyncEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalendarSyncEnabled(bool value) noexcept override - { - try - { - this->shim().CalendarSyncEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncomingServerAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IncomingServerAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncomingServerAddress(abi_arg_in value) noexcept override - { - try - { - this->shim().IncomingServerAddress(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncomingServerPort(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IncomingServerPort()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncomingServerPort(int32_t value) noexcept override - { - try - { - this->shim().IncomingServerPort(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncomingServerRequiresSsl(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IncomingServerRequiresSsl()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncomingServerRequiresSsl(bool value) noexcept override - { - try - { - this->shim().IncomingServerRequiresSsl(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncomingServerUsername(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IncomingServerUsername()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncomingServerUsername(abi_arg_in value) noexcept override - { - try - { - this->shim().IncomingServerUsername(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutgoingServerAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutgoingServerAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutgoingServerAddress(abi_arg_in value) noexcept override - { - try - { - this->shim().OutgoingServerAddress(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutgoingServerPort(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OutgoingServerPort()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutgoingServerPort(int32_t value) noexcept override - { - try - { - this->shim().OutgoingServerPort(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutgoingServerRequiresSsl(bool * value) noexcept override - { - try - { - *value = detach(this->shim().OutgoingServerRequiresSsl()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutgoingServerRequiresSsl(bool value) noexcept override - { - try - { - this->shim().OutgoingServerRequiresSsl(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutgoingServerUsername(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutgoingServerUsername()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutgoingServerUsername(abi_arg_in value) noexcept override - { - try - { - this->shim().OutgoingServerUsername(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IncomingServerCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IncomingServerCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncomingServerCredential(abi_arg_in value) noexcept override - { - try - { - this->shim().IncomingServerCredential(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutgoingServerCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutgoingServerCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutgoingServerCredential(abi_arg_in value) noexcept override - { - try - { - this->shim().OutgoingServerCredential(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OAuthRefreshToken(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OAuthRefreshToken()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OAuthRefreshToken(abi_arg_in value) noexcept override - { - try - { - this->shim().OAuthRefreshToken(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsExternallyManaged(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsExternallyManaged()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsExternallyManaged(bool value) noexcept override - { - try - { - this->shim().IsExternallyManaged(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccountIconId(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountIconId * value) noexcept override - { - try - { - *value = detach(this->shim().AccountIconId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AccountIconId(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountIconId value) noexcept override - { - try - { - this->shim().AccountIconId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationType(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountAuthenticationType * value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AuthenticationType(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountAuthenticationType value) noexcept override - { - try - { - this->shim().AuthenticationType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSsoAuthenticationSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSsoAuthenticationSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SsoAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SsoAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SsoAccountId(abi_arg_in value) noexcept override - { - try - { - this->shim().SsoAccountId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlwaysDownloadFullMessage(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AlwaysDownloadFullMessage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AlwaysDownloadFullMessage(bool value) noexcept override - { - try - { - this->shim().AlwaysDownloadFullMessage(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DoesPolicyAllowMailSync(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DoesPolicyAllowMailSync()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SyncScheduleKind(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind * value) noexcept override - { - try - { - *value = detach(this->shim().SyncScheduleKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SyncScheduleKind(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind value) noexcept override - { - try - { - this->shim().SyncScheduleKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MailAgeFilter(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountMailAgeFilter * value) noexcept override - { - try - { - *value = detach(this->shim().MailAgeFilter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MailAgeFilter(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountMailAgeFilter value) noexcept override - { - try - { - this->shim().MailAgeFilter(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsClientAuthenticationCertificateRequired(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsClientAuthenticationCertificateRequired()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsClientAuthenticationCertificateRequired(bool value) noexcept override - { - try - { - this->shim().IsClientAuthenticationCertificateRequired(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoSelectAuthenticationCertificate(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoSelectAuthenticationCertificate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoSelectAuthenticationCertificate(bool value) noexcept override - { - try - { - this->shim().AutoSelectAuthenticationCertificate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationCertificateId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationCertificateId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AuthenticationCertificateId(abi_arg_in value) noexcept override - { - try - { - this->shim().AuthenticationCertificateId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CardDavSyncScheduleKind(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind * value) noexcept override - { - try - { - *value = detach(this->shim().CardDavSyncScheduleKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CardDavSyncScheduleKind(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind value) noexcept override - { - try - { - this->shim().CardDavSyncScheduleKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalDavSyncScheduleKind(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind * value) noexcept override - { - try - { - *value = detach(this->shim().CalDavSyncScheduleKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalDavSyncScheduleKind(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind value) noexcept override - { - try - { - this->shim().CalDavSyncScheduleKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CardDavServerUrl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CardDavServerUrl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CardDavServerUrl(abi_arg_in value) noexcept override - { - try - { - this->shim().CardDavServerUrl(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CardDavRequiresSsl(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CardDavRequiresSsl()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CardDavRequiresSsl(bool value) noexcept override - { - try - { - this->shim().CardDavRequiresSsl(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalDavServerUrl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalDavServerUrl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalDavServerUrl(abi_arg_in value) noexcept override - { - try - { - this->shim().CalDavServerUrl(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalDavRequiresSsl(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CalDavRequiresSsl()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalDavRequiresSsl(bool value) noexcept override - { - try - { - this->shim().CalDavRequiresSsl(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WasModifiedByUser(bool * value) noexcept override - { - try - { - *value = detach(this->shim().WasModifiedByUser()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WasModifiedByUser(bool value) noexcept override - { - try - { - this->shim().WasModifiedByUser(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WasIncomingServerCertificateHashConfirmed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().WasIncomingServerCertificateHashConfirmed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WasIncomingServerCertificateHashConfirmed(bool value) noexcept override - { - try - { - this->shim().WasIncomingServerCertificateHashConfirmed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncomingServerCertificateHash(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IncomingServerCertificateHash()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncomingServerCertificateHash(abi_arg_in value) noexcept override - { - try - { - this->shim().IncomingServerCertificateHash(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOutgoingServerAuthenticationRequired(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOutgoingServerAuthenticationRequired()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOutgoingServerAuthenticationRequired(bool value) noexcept override - { - try - { - this->shim().IsOutgoingServerAuthenticationRequired(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOutgoingServerAuthenticationEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOutgoingServerAuthenticationEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOutgoingServerAuthenticationEnabled(bool value) noexcept override - { - try - { - this->shim().IsOutgoingServerAuthenticationEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WasOutgoingServerCertificateHashConfirmed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().WasOutgoingServerCertificateHashConfirmed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WasOutgoingServerCertificateHashConfirmed(bool value) noexcept override - { - try - { - this->shim().WasOutgoingServerCertificateHashConfirmed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutgoingServerCertificateHash(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutgoingServerCertificateHash()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutgoingServerCertificateHash(abi_arg_in value) noexcept override - { - try - { - this->shim().OutgoingServerCertificateHash(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSyncScheduleManagedBySystem(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSyncScheduleManagedBySystem()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSyncScheduleManagedBySystem(bool value) noexcept override - { - try - { - this->shim().IsSyncScheduleManagedBySystem(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddAndShowDeviceAccountsAsync(abi_arg_in> accounts, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().AddAndShowDeviceAccountsAsync(*reinterpret_cast *>(&accounts))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SuppressLocalAccountWithAccountAsync(abi_arg_in userDataAccountId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SuppressLocalAccountWithAccountAsync(*reinterpret_cast(&userDataAccountId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDeviceAccountAsync(abi_arg_in account, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateDeviceAccountAsync(*reinterpret_cast(&account))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteDeviceAccountAsync(abi_arg_in accountId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DeleteDeviceAccountAsync(*reinterpret_cast(&accountId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceAccountConfigurationAsync(abi_arg_in accountId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDeviceAccountConfigurationAsync(*reinterpret_cast(&accountId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::UserDataAccounts::SystemAccess { - -template hstring impl_IDeviceAccountConfiguration::AccountName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AccountName(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration::AccountName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AccountName(get(value))); -} - -template hstring impl_IDeviceAccountConfiguration::DeviceAccountTypeId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceAccountTypeId(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration::DeviceAccountTypeId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DeviceAccountTypeId(get(value))); -} - -template Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountServerType impl_IDeviceAccountConfiguration::ServerType() const -{ - Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountServerType value {}; - check_hresult(static_cast(static_cast(*this))->get_ServerType(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration::ServerType(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountServerType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ServerType(value)); -} - -template hstring impl_IDeviceAccountConfiguration::EmailAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmailAddress(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration::EmailAddress(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EmailAddress(get(value))); -} - -template hstring impl_IDeviceAccountConfiguration::Domain() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Domain(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration::Domain(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Domain(get(value))); -} - -template bool impl_IDeviceAccountConfiguration::EmailSyncEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_EmailSyncEnabled(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration::EmailSyncEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EmailSyncEnabled(value)); -} - -template bool impl_IDeviceAccountConfiguration::ContactsSyncEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ContactsSyncEnabled(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration::ContactsSyncEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContactsSyncEnabled(value)); -} - -template bool impl_IDeviceAccountConfiguration::CalendarSyncEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CalendarSyncEnabled(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration::CalendarSyncEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalendarSyncEnabled(value)); -} - -template hstring impl_IDeviceAccountConfiguration::IncomingServerAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IncomingServerAddress(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration::IncomingServerAddress(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncomingServerAddress(get(value))); -} - -template int32_t impl_IDeviceAccountConfiguration::IncomingServerPort() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IncomingServerPort(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration::IncomingServerPort(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncomingServerPort(value)); -} - -template bool impl_IDeviceAccountConfiguration::IncomingServerRequiresSsl() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IncomingServerRequiresSsl(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration::IncomingServerRequiresSsl(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncomingServerRequiresSsl(value)); -} - -template hstring impl_IDeviceAccountConfiguration::IncomingServerUsername() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IncomingServerUsername(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration::IncomingServerUsername(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncomingServerUsername(get(value))); -} - -template hstring impl_IDeviceAccountConfiguration::OutgoingServerAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OutgoingServerAddress(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration::OutgoingServerAddress(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutgoingServerAddress(get(value))); -} - -template int32_t impl_IDeviceAccountConfiguration::OutgoingServerPort() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OutgoingServerPort(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration::OutgoingServerPort(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutgoingServerPort(value)); -} - -template bool impl_IDeviceAccountConfiguration::OutgoingServerRequiresSsl() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_OutgoingServerRequiresSsl(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration::OutgoingServerRequiresSsl(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutgoingServerRequiresSsl(value)); -} - -template hstring impl_IDeviceAccountConfiguration::OutgoingServerUsername() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OutgoingServerUsername(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration::OutgoingServerUsername(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutgoingServerUsername(get(value))); -} - -template Windows::Security::Credentials::PasswordCredential impl_IDeviceAccountConfiguration2::IncomingServerCredential() const -{ - Windows::Security::Credentials::PasswordCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IncomingServerCredential(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration2::IncomingServerCredential(const Windows::Security::Credentials::PasswordCredential & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncomingServerCredential(get(value))); -} - -template Windows::Security::Credentials::PasswordCredential impl_IDeviceAccountConfiguration2::OutgoingServerCredential() const -{ - Windows::Security::Credentials::PasswordCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OutgoingServerCredential(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration2::OutgoingServerCredential(const Windows::Security::Credentials::PasswordCredential & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutgoingServerCredential(get(value))); -} - -template hstring impl_IDeviceAccountConfiguration2::OAuthRefreshToken() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OAuthRefreshToken(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration2::OAuthRefreshToken(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OAuthRefreshToken(get(value))); -} - -template bool impl_IDeviceAccountConfiguration2::IsExternallyManaged() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsExternallyManaged(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::IsExternallyManaged(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsExternallyManaged(value)); -} - -template Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountIconId impl_IDeviceAccountConfiguration2::AccountIconId() const -{ - Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountIconId value {}; - check_hresult(static_cast(static_cast(*this))->get_AccountIconId(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::AccountIconId(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountIconId value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AccountIconId(value)); -} - -template Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountAuthenticationType impl_IDeviceAccountConfiguration2::AuthenticationType() const -{ - Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountAuthenticationType value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationType(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::AuthenticationType(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountAuthenticationType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AuthenticationType(value)); -} - -template bool impl_IDeviceAccountConfiguration2::IsSsoAuthenticationSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSsoAuthenticationSupported(&value)); - return value; -} - -template hstring impl_IDeviceAccountConfiguration2::SsoAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SsoAccountId(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration2::SsoAccountId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SsoAccountId(get(value))); -} - -template bool impl_IDeviceAccountConfiguration2::AlwaysDownloadFullMessage() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AlwaysDownloadFullMessage(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::AlwaysDownloadFullMessage(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AlwaysDownloadFullMessage(value)); -} - -template bool impl_IDeviceAccountConfiguration2::DoesPolicyAllowMailSync() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DoesPolicyAllowMailSync(&value)); - return value; -} - -template Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind impl_IDeviceAccountConfiguration2::SyncScheduleKind() const -{ - Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind value {}; - check_hresult(static_cast(static_cast(*this))->get_SyncScheduleKind(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::SyncScheduleKind(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SyncScheduleKind(value)); -} - -template Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountMailAgeFilter impl_IDeviceAccountConfiguration2::MailAgeFilter() const -{ - Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountMailAgeFilter value {}; - check_hresult(static_cast(static_cast(*this))->get_MailAgeFilter(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::MailAgeFilter(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountMailAgeFilter value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MailAgeFilter(value)); -} - -template bool impl_IDeviceAccountConfiguration2::IsClientAuthenticationCertificateRequired() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsClientAuthenticationCertificateRequired(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::IsClientAuthenticationCertificateRequired(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsClientAuthenticationCertificateRequired(value)); -} - -template bool impl_IDeviceAccountConfiguration2::AutoSelectAuthenticationCertificate() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoSelectAuthenticationCertificate(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::AutoSelectAuthenticationCertificate(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoSelectAuthenticationCertificate(value)); -} - -template hstring impl_IDeviceAccountConfiguration2::AuthenticationCertificateId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationCertificateId(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration2::AuthenticationCertificateId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AuthenticationCertificateId(get(value))); -} - -template Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind impl_IDeviceAccountConfiguration2::CardDavSyncScheduleKind() const -{ - Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind value {}; - check_hresult(static_cast(static_cast(*this))->get_CardDavSyncScheduleKind(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::CardDavSyncScheduleKind(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CardDavSyncScheduleKind(value)); -} - -template Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind impl_IDeviceAccountConfiguration2::CalDavSyncScheduleKind() const -{ - Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind value {}; - check_hresult(static_cast(static_cast(*this))->get_CalDavSyncScheduleKind(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::CalDavSyncScheduleKind(Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountSyncScheduleKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalDavSyncScheduleKind(value)); -} - -template Windows::Foundation::Uri impl_IDeviceAccountConfiguration2::CardDavServerUrl() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CardDavServerUrl(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration2::CardDavServerUrl(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CardDavServerUrl(get(value))); -} - -template bool impl_IDeviceAccountConfiguration2::CardDavRequiresSsl() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CardDavRequiresSsl(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::CardDavRequiresSsl(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CardDavRequiresSsl(value)); -} - -template Windows::Foundation::Uri impl_IDeviceAccountConfiguration2::CalDavServerUrl() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalDavServerUrl(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration2::CalDavServerUrl(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalDavServerUrl(get(value))); -} - -template bool impl_IDeviceAccountConfiguration2::CalDavRequiresSsl() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CalDavRequiresSsl(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::CalDavRequiresSsl(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalDavRequiresSsl(value)); -} - -template bool impl_IDeviceAccountConfiguration2::WasModifiedByUser() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_WasModifiedByUser(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::WasModifiedByUser(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WasModifiedByUser(value)); -} - -template bool impl_IDeviceAccountConfiguration2::WasIncomingServerCertificateHashConfirmed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_WasIncomingServerCertificateHashConfirmed(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::WasIncomingServerCertificateHashConfirmed(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WasIncomingServerCertificateHashConfirmed(value)); -} - -template hstring impl_IDeviceAccountConfiguration2::IncomingServerCertificateHash() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IncomingServerCertificateHash(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration2::IncomingServerCertificateHash(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncomingServerCertificateHash(get(value))); -} - -template bool impl_IDeviceAccountConfiguration2::IsOutgoingServerAuthenticationRequired() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOutgoingServerAuthenticationRequired(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::IsOutgoingServerAuthenticationRequired(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOutgoingServerAuthenticationRequired(value)); -} - -template bool impl_IDeviceAccountConfiguration2::IsOutgoingServerAuthenticationEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOutgoingServerAuthenticationEnabled(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::IsOutgoingServerAuthenticationEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOutgoingServerAuthenticationEnabled(value)); -} - -template bool impl_IDeviceAccountConfiguration2::WasOutgoingServerCertificateHashConfirmed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_WasOutgoingServerCertificateHashConfirmed(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::WasOutgoingServerCertificateHashConfirmed(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WasOutgoingServerCertificateHashConfirmed(value)); -} - -template hstring impl_IDeviceAccountConfiguration2::OutgoingServerCertificateHash() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OutgoingServerCertificateHash(put(value))); - return value; -} - -template void impl_IDeviceAccountConfiguration2::OutgoingServerCertificateHash(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutgoingServerCertificateHash(get(value))); -} - -template bool impl_IDeviceAccountConfiguration2::IsSyncScheduleManagedBySystem() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSyncScheduleManagedBySystem(&value)); - return value; -} - -template void impl_IDeviceAccountConfiguration2::IsSyncScheduleManagedBySystem(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSyncScheduleManagedBySystem(value)); -} - -template Windows::Foundation::IAsyncOperation> impl_IUserDataAccountSystemAccessManagerStatics::AddAndShowDeviceAccountsAsync(const Windows::Foundation::Collections::IIterable & accounts) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_AddAndShowDeviceAccountsAsync(get(accounts), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IUserDataAccountSystemAccessManagerStatics2::SuppressLocalAccountWithAccountAsync(hstring_ref userDataAccountId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SuppressLocalAccountWithAccountAsync(get(userDataAccountId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IUserDataAccountSystemAccessManagerStatics2::CreateDeviceAccountAsync(const Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountConfiguration & account) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateDeviceAccountAsync(get(account), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IUserDataAccountSystemAccessManagerStatics2::DeleteDeviceAccountAsync(hstring_ref accountId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteDeviceAccountAsync(get(accountId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IUserDataAccountSystemAccessManagerStatics2::GetDeviceAccountConfigurationAsync(hstring_ref accountId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceAccountConfigurationAsync(get(accountId), put(result))); - return result; -} - -inline DeviceAccountConfiguration::DeviceAccountConfiguration() : - DeviceAccountConfiguration(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation> UserDataAccountSystemAccessManager::AddAndShowDeviceAccountsAsync(const Windows::Foundation::Collections::IIterable & accounts) -{ - return get_activation_factory().AddAndShowDeviceAccountsAsync(accounts); -} - -inline Windows::Foundation::IAsyncAction UserDataAccountSystemAccessManager::SuppressLocalAccountWithAccountAsync(hstring_ref userDataAccountId) -{ - return get_activation_factory().SuppressLocalAccountWithAccountAsync(userDataAccountId); -} - -inline Windows::Foundation::IAsyncOperation UserDataAccountSystemAccessManager::CreateDeviceAccountAsync(const Windows::ApplicationModel::UserDataAccounts::SystemAccess::DeviceAccountConfiguration & account) -{ - return get_activation_factory().CreateDeviceAccountAsync(account); -} - -inline Windows::Foundation::IAsyncAction UserDataAccountSystemAccessManager::DeleteDeviceAccountAsync(hstring_ref accountId) -{ - return get_activation_factory().DeleteDeviceAccountAsync(accountId); -} - -inline Windows::Foundation::IAsyncOperation UserDataAccountSystemAccessManager::GetDeviceAccountConfigurationAsync(hstring_ref accountId) -{ - return get_activation_factory().GetDeviceAccountConfigurationAsync(accountId); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.UserDataAccounts.h b/10.0.14393.0/winrt/Windows.ApplicationModel.UserDataAccounts.h deleted file mode 100644 index d041b7866..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.UserDataAccounts.h +++ /dev/null @@ -1,767 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.ApplicationModel.UserDataAccounts.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UserDisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().UserDisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherAppReadAccess(Windows::ApplicationModel::UserDataAccounts::UserDataAccountOtherAppReadAccess * value) noexcept override - { - try - { - *value = detach(this->shim().OtherAppReadAccess()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OtherAppReadAccess(Windows::ApplicationModel::UserDataAccounts::UserDataAccountOtherAppReadAccess value) noexcept override - { - try - { - this->shim().OtherAppReadAccess(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Icon(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Icon()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceAccountTypeId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceAccountTypeId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DeleteAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAppointmentCalendarsAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAppointmentCalendarsAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindEmailMailboxesAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindEmailMailboxesAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindContactListsAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindContactListsAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindContactAnnotationListsAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindContactAnnotationListsAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnterpriseId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EnterpriseId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsProtectedUnderLock(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsProtectedUnderLock()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExplictReadAccessPackageFamilyNames(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExplictReadAccessPackageFamilyNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestStoreAsync(Windows::ApplicationModel::UserDataAccounts::UserDataAccountStoreAccessType storeAccessType, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestStoreAsync(storeAccessType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestStoreAsync(Windows::ApplicationModel::UserDataAccounts::UserDataAccountStoreAccessType storeAccessType, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestStoreAsync(storeAccessType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAddAccountAsync(Windows::ApplicationModel::UserDataAccounts::UserDataAccountContentKinds contentKinds, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ShowAddAccountAsync(contentKinds)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAccountSettingsAsync(abi_arg_in id, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ShowAccountSettingsAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAccountErrorResolverAsync(abi_arg_in id, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ShowAccountErrorResolverAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForUser(abi_arg_in user, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindAccountsAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAccountsAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAccountAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetAccountAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAccountAsync(abi_arg_in userDisplayName, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateAccountAsync(*reinterpret_cast(&userDisplayName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateAccountWithPackageRelativeAppIdAsync(abi_arg_in userDisplayName, abi_arg_in packageRelativeAppId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateAccountAsync(*reinterpret_cast(&userDisplayName), *reinterpret_cast(&packageRelativeAppId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StoreChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StoreChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StoreChanged(event_token token) noexcept override - { - try - { - this->shim().StoreChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::UserDataAccounts { - -template hstring impl_IUserDataAccount::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IUserDataAccount::UserDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserDisplayName(put(value))); - return value; -} - -template void impl_IUserDataAccount::UserDisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UserDisplayName(get(value))); -} - -template Windows::ApplicationModel::UserDataAccounts::UserDataAccountOtherAppReadAccess impl_IUserDataAccount::OtherAppReadAccess() const -{ - Windows::ApplicationModel::UserDataAccounts::UserDataAccountOtherAppReadAccess value {}; - check_hresult(static_cast(static_cast(*this))->get_OtherAppReadAccess(&value)); - return value; -} - -template void impl_IUserDataAccount::OtherAppReadAccess(Windows::ApplicationModel::UserDataAccounts::UserDataAccountOtherAppReadAccess value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OtherAppReadAccess(value)); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IUserDataAccount::Icon() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Icon(put(value))); - return value; -} - -template hstring impl_IUserDataAccount::DeviceAccountTypeId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceAccountTypeId(put(value))); - return value; -} - -template hstring impl_IUserDataAccount::PackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PackageFamilyName(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IUserDataAccount::SaveAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IUserDataAccount::DeleteAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IUserDataAccount::FindAppointmentCalendarsAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAppointmentCalendarsAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IUserDataAccount::FindEmailMailboxesAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindEmailMailboxesAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IUserDataAccount::FindContactListsAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindContactListsAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IUserDataAccount::FindContactAnnotationListsAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindContactAnnotationListsAsync(put(result))); - return result; -} - -template hstring impl_IUserDataAccount2::EnterpriseId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EnterpriseId(put(value))); - return value; -} - -template bool impl_IUserDataAccount2::IsProtectedUnderLock() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsProtectedUnderLock(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IUserDataAccount3::ExplictReadAccessPackageFamilyNames() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ExplictReadAccessPackageFamilyNames(put(value))); - return value; -} - -template hstring impl_IUserDataAccount3::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IUserDataAccount3::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template Windows::Foundation::IAsyncOperation> impl_IUserDataAccountStore::FindAccountsAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAccountsAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IUserDataAccountStore::GetAccountAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetAccountAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IUserDataAccountStore::CreateAccountAsync(hstring_ref userDisplayName) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateAccountAsync(get(userDisplayName), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IUserDataAccountStore2::CreateAccountAsync(hstring_ref userDisplayName, hstring_ref packageRelativeAppId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateAccountWithPackageRelativeAppIdAsync(get(userDisplayName), get(packageRelativeAppId), put(result))); - return result; -} - -template event_token impl_IUserDataAccountStore2::StoreChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StoreChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IUserDataAccountStore2::StoreChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::UserDataAccounts::IUserDataAccountStore2::remove_StoreChanged, StoreChanged(handler)); -} - -template void impl_IUserDataAccountStore2::StoreChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StoreChanged(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IUserDataAccountManagerStatics::RequestStoreAsync(Windows::ApplicationModel::UserDataAccounts::UserDataAccountStoreAccessType storeAccessType) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(storeAccessType, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IUserDataAccountManagerStatics::ShowAddAccountAsync(Windows::ApplicationModel::UserDataAccounts::UserDataAccountContentKinds contentKinds) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ShowAddAccountAsync(contentKinds, put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IUserDataAccountManagerStatics::ShowAccountSettingsAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ShowAccountSettingsAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IUserDataAccountManagerStatics::ShowAccountErrorResolverAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ShowAccountErrorResolverAsync(get(id), put(result))); - return result; -} - -template Windows::ApplicationModel::UserDataAccounts::UserDataAccountManagerForUser impl_IUserDataAccountManagerStatics2::GetForUser(const Windows::System::User & user) const -{ - Windows::ApplicationModel::UserDataAccounts::UserDataAccountManagerForUser result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForUser(get(user), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IUserDataAccountManagerForUser::RequestStoreAsync(Windows::ApplicationModel::UserDataAccounts::UserDataAccountStoreAccessType storeAccessType) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(storeAccessType, put(result))); - return result; -} - -template Windows::System::User impl_IUserDataAccountManagerForUser::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IUserDataAccountStoreChangedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -inline Windows::Foundation::IAsyncOperation UserDataAccountManager::RequestStoreAsync(Windows::ApplicationModel::UserDataAccounts::UserDataAccountStoreAccessType storeAccessType) -{ - return get_activation_factory().RequestStoreAsync(storeAccessType); -} - -inline Windows::Foundation::IAsyncOperation UserDataAccountManager::ShowAddAccountAsync(Windows::ApplicationModel::UserDataAccounts::UserDataAccountContentKinds contentKinds) -{ - return get_activation_factory().ShowAddAccountAsync(contentKinds); -} - -inline Windows::Foundation::IAsyncAction UserDataAccountManager::ShowAccountSettingsAsync(hstring_ref id) -{ - return get_activation_factory().ShowAccountSettingsAsync(id); -} - -inline Windows::Foundation::IAsyncAction UserDataAccountManager::ShowAccountErrorResolverAsync(hstring_ref id) -{ - return get_activation_factory().ShowAccountErrorResolverAsync(id); -} - -inline Windows::ApplicationModel::UserDataAccounts::UserDataAccountManagerForUser UserDataAccountManager::GetForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetForUser(user); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.VoiceCommands.h b/10.0.14393.0/winrt/Windows.ApplicationModel.VoiceCommands.h deleted file mode 100644 index ba55fe94e..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.VoiceCommands.h +++ /dev/null @@ -1,1213 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.SpeechRecognition.3.h" -#include "internal/Windows.Globalization.3.h" -#include "internal/Windows.ApplicationModel.AppService.3.h" -#include "internal/Windows.ApplicationModel.VoiceCommands.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CommandName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpeechRecognitionResult(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SpeechRecognitionResult()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reason(Windows::ApplicationModel::VoiceCommands::VoiceCommandCompletionReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Confirmed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Confirmed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextLine1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextLine1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextLine1(abi_arg_in value) noexcept override - { - try - { - this->shim().TextLine1(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextLine2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextLine2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextLine2(abi_arg_in value) noexcept override - { - try - { - this->shim().TextLine2(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextLine3(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextLine3()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextLine3(abi_arg_in value) noexcept override - { - try - { - this->shim().TextLine3(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Image(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Image()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Image(abi_arg_in value) noexcept override - { - try - { - this->shim().Image(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppContext(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppContext()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppContext(abi_arg_in value) noexcept override - { - try - { - this->shim().AppContext(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppLaunchArgument(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppLaunchArgument()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppLaunchArgument(abi_arg_in value) noexcept override - { - try - { - this->shim().AppLaunchArgument(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTileType(Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTileType * value) noexcept override - { - try - { - *value = detach(this->shim().ContentTileType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentTileType(Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTileType value) noexcept override - { - try - { - this->shim().ContentTileType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPhraseListAsync(abi_arg_in phraseListName, abi_arg_in> phraseList, abi_arg_out updateAction) noexcept override - { - try - { - *updateAction = detach(this->shim().SetPhraseListAsync(*reinterpret_cast(&phraseListName), *reinterpret_cast *>(&phraseList))); - return S_OK; - } - catch (...) - { - *updateAction = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_InstallCommandDefinitionsFromStorageFileAsync(abi_arg_in file, abi_arg_out installAction) noexcept override - { - try - { - *installAction = detach(this->shim().InstallCommandDefinitionsFromStorageFileAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *installAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstalledCommandDefinitions(abi_arg_out> voiceCommandDefinitions) noexcept override - { - try - { - *voiceCommandDefinitions = detach(this->shim().InstalledCommandDefinitions()); - return S_OK; - } - catch (...) - { - *voiceCommandDefinitions = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Message(abi_arg_in value) noexcept override - { - try - { - this->shim().Message(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RepeatMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RepeatMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RepeatMessage(abi_arg_in value) noexcept override - { - try - { - this->shim().RepeatMessage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppLaunchArgument(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppLaunchArgument()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppLaunchArgument(abi_arg_in value) noexcept override - { - try - { - this->shim().AppLaunchArgument(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VoiceCommandContentTiles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().VoiceCommandContentTiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxSupportedVoiceCommandContentTiles(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxSupportedVoiceCommandContentTiles()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateResponse(abi_arg_in userMessage, abi_arg_out response) noexcept override - { - try - { - *response = detach(this->shim().CreateResponse(*reinterpret_cast(&userMessage))); - return S_OK; - } - catch (...) - { - *response = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateResponseWithTiles(abi_arg_in message, abi_arg_in> contentTiles, abi_arg_out response) noexcept override - { - try - { - *response = detach(this->shim().CreateResponse(*reinterpret_cast(&message), *reinterpret_cast *>(&contentTiles))); - return S_OK; - } - catch (...) - { - *response = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateResponseForPrompt(abi_arg_in message, abi_arg_in repeatMessage, abi_arg_out response) noexcept override - { - try - { - *response = detach(this->shim().CreateResponseForPrompt(*reinterpret_cast(&message), *reinterpret_cast(&repeatMessage))); - return S_OK; - } - catch (...) - { - *response = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateResponseForPromptWithTiles(abi_arg_in message, abi_arg_in repeatMessage, abi_arg_in> contentTiles, abi_arg_out response) noexcept override - { - try - { - *response = detach(this->shim().CreateResponseForPrompt(*reinterpret_cast(&message), *reinterpret_cast(&repeatMessage), *reinterpret_cast *>(&contentTiles))); - return S_OK; - } - catch (...) - { - *response = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetVoiceCommandAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetVoiceCommandAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestConfirmationAsync(abi_arg_in response, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestConfirmationAsync(*reinterpret_cast(&response))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestDisambiguationAsync(abi_arg_in response, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestDisambiguationAsync(*reinterpret_cast(&response))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportProgressAsync(abi_arg_in response, abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().ReportProgressAsync(*reinterpret_cast(&response))); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportSuccessAsync(abi_arg_in response, abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().ReportSuccessAsync(*reinterpret_cast(&response))); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportFailureAsync(abi_arg_in response, abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().ReportFailureAsync(*reinterpret_cast(&response))); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAppLaunchAsync(abi_arg_in response, abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().RequestAppLaunchAsync(*reinterpret_cast(&response))); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out language) noexcept override - { - try - { - *language = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *language = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VoiceCommandCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VoiceCommandCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VoiceCommandCompleted(event_token token) noexcept override - { - try - { - this->shim().VoiceCommandCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromAppServiceTriggerDetails(abi_arg_in triggerDetails, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FromAppServiceTriggerDetails(*reinterpret_cast(&triggerDetails))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayMessage(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayMessage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpokenMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SpokenMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SpokenMessage(abi_arg_in value) noexcept override - { - try - { - this->shim().SpokenMessage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::VoiceCommands { - -template Windows::Foundation::IAsyncAction impl_IVoiceCommandDefinitionManagerStatics::InstallCommandDefinitionsFromStorageFileAsync(const Windows::Storage::StorageFile & file) const -{ - Windows::Foundation::IAsyncAction installAction; - check_hresult(static_cast(static_cast(*this))->abi_InstallCommandDefinitionsFromStorageFileAsync(get(file), put(installAction))); - return installAction; -} - -template Windows::Foundation::Collections::IMapView impl_IVoiceCommandDefinitionManagerStatics::InstalledCommandDefinitions() const -{ - Windows::Foundation::Collections::IMapView voiceCommandDefinitions; - check_hresult(static_cast(static_cast(*this))->get_InstalledCommandDefinitions(put(voiceCommandDefinitions))); - return voiceCommandDefinitions; -} - -template hstring impl_IVoiceCommandDefinition::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template hstring impl_IVoiceCommandDefinition::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IVoiceCommandDefinition::SetPhraseListAsync(hstring_ref phraseListName, const Windows::Foundation::Collections::IIterable & phraseList) const -{ - Windows::Foundation::IAsyncAction updateAction; - check_hresult(static_cast(static_cast(*this))->abi_SetPhraseListAsync(get(phraseListName), get(phraseList), put(updateAction))); - return updateAction; -} - -template hstring impl_IVoiceCommandContentTile::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IVoiceCommandContentTile::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template hstring impl_IVoiceCommandContentTile::TextLine1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TextLine1(put(value))); - return value; -} - -template void impl_IVoiceCommandContentTile::TextLine1(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextLine1(get(value))); -} - -template hstring impl_IVoiceCommandContentTile::TextLine2() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TextLine2(put(value))); - return value; -} - -template void impl_IVoiceCommandContentTile::TextLine2(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextLine2(get(value))); -} - -template hstring impl_IVoiceCommandContentTile::TextLine3() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TextLine3(put(value))); - return value; -} - -template void impl_IVoiceCommandContentTile::TextLine3(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextLine3(get(value))); -} - -template Windows::Storage::IStorageFile impl_IVoiceCommandContentTile::Image() const -{ - Windows::Storage::IStorageFile value; - check_hresult(static_cast(static_cast(*this))->get_Image(put(value))); - return value; -} - -template void impl_IVoiceCommandContentTile::Image(const Windows::Storage::IStorageFile & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Image(get(value))); -} - -template Windows::IInspectable impl_IVoiceCommandContentTile::AppContext() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_AppContext(put(value))); - return value; -} - -template void impl_IVoiceCommandContentTile::AppContext(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppContext(get(value))); -} - -template hstring impl_IVoiceCommandContentTile::AppLaunchArgument() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppLaunchArgument(put(value))); - return value; -} - -template void impl_IVoiceCommandContentTile::AppLaunchArgument(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppLaunchArgument(get(value))); -} - -template Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTileType impl_IVoiceCommandContentTile::ContentTileType() const -{ - Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTileType value {}; - check_hresult(static_cast(static_cast(*this))->get_ContentTileType(&value)); - return value; -} - -template void impl_IVoiceCommandContentTile::ContentTileType(Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTileType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentTileType(value)); -} - -template hstring impl_IVoiceCommandUserMessage::DisplayMessage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayMessage(put(value))); - return value; -} - -template void impl_IVoiceCommandUserMessage::DisplayMessage(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayMessage(get(value))); -} - -template hstring impl_IVoiceCommandUserMessage::SpokenMessage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SpokenMessage(put(value))); - return value; -} - -template void impl_IVoiceCommandUserMessage::SpokenMessage(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SpokenMessage(get(value))); -} - -template hstring impl_IVoiceCommand::CommandName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CommandName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView> impl_IVoiceCommand::Properties() const -{ - Windows::Foundation::Collections::IMapView> value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionResult impl_IVoiceCommand::SpeechRecognitionResult() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SpeechRecognitionResult(put(value))); - return value; -} - -template Windows::ApplicationModel::VoiceCommands::VoiceCommandCompletionReason impl_IVoiceCommandCompletedEventArgs::Reason() const -{ - Windows::ApplicationModel::VoiceCommands::VoiceCommandCompletionReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTile impl_IVoiceCommandDisambiguationResult::SelectedItem() const -{ - Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedItem(put(value))); - return value; -} - -template bool impl_IVoiceCommandConfirmationResult::Confirmed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Confirmed(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IVoiceCommandServiceConnection::GetVoiceCommandAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetVoiceCommandAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IVoiceCommandServiceConnection::RequestConfirmationAsync(const Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse & response) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestConfirmationAsync(get(response), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IVoiceCommandServiceConnection::RequestDisambiguationAsync(const Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse & response) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestDisambiguationAsync(get(response), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IVoiceCommandServiceConnection::ReportProgressAsync(const Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse & response) const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_ReportProgressAsync(get(response), put(action))); - return action; -} - -template Windows::Foundation::IAsyncAction impl_IVoiceCommandServiceConnection::ReportSuccessAsync(const Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse & response) const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_ReportSuccessAsync(get(response), put(action))); - return action; -} - -template Windows::Foundation::IAsyncAction impl_IVoiceCommandServiceConnection::ReportFailureAsync(const Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse & response) const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_ReportFailureAsync(get(response), put(action))); - return action; -} - -template Windows::Foundation::IAsyncAction impl_IVoiceCommandServiceConnection::RequestAppLaunchAsync(const Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse & response) const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_RequestAppLaunchAsync(get(response), put(action))); - return action; -} - -template Windows::Globalization::Language impl_IVoiceCommandServiceConnection::Language() const -{ - Windows::Globalization::Language language { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Language(put(language))); - return language; -} - -template event_token impl_IVoiceCommandServiceConnection::VoiceCommandCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VoiceCommandCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IVoiceCommandServiceConnection::VoiceCommandCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnection::remove_VoiceCommandCompleted, VoiceCommandCompleted(handler)); -} - -template void impl_IVoiceCommandServiceConnection::VoiceCommandCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VoiceCommandCompleted(token)); -} - -template Windows::ApplicationModel::VoiceCommands::VoiceCommandServiceConnection impl_IVoiceCommandServiceConnectionStatics::FromAppServiceTriggerDetails(const Windows::ApplicationModel::AppService::AppServiceTriggerDetails & triggerDetails) const -{ - Windows::ApplicationModel::VoiceCommands::VoiceCommandServiceConnection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromAppServiceTriggerDetails(get(triggerDetails), put(value))); - return value; -} - -template uint32_t impl_IVoiceCommandResponseStatics::MaxSupportedVoiceCommandContentTiles() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxSupportedVoiceCommandContentTiles(&value)); - return value; -} - -template Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse impl_IVoiceCommandResponseStatics::CreateResponse(const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & userMessage) const -{ - Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse response { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateResponse(get(userMessage), put(response))); - return response; -} - -template Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse impl_IVoiceCommandResponseStatics::CreateResponse(const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & message, const Windows::Foundation::Collections::IIterable & contentTiles) const -{ - Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse response { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateResponseWithTiles(get(message), get(contentTiles), put(response))); - return response; -} - -template Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse impl_IVoiceCommandResponseStatics::CreateResponseForPrompt(const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & message, const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & repeatMessage) const -{ - Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse response { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateResponseForPrompt(get(message), get(repeatMessage), put(response))); - return response; -} - -template Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse impl_IVoiceCommandResponseStatics::CreateResponseForPrompt(const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & message, const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & repeatMessage, const Windows::Foundation::Collections::IIterable & contentTiles) const -{ - Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse response { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateResponseForPromptWithTiles(get(message), get(repeatMessage), get(contentTiles), put(response))); - return response; -} - -template Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage impl_IVoiceCommandResponse::Message() const -{ - Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template void impl_IVoiceCommandResponse::Message(const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Message(get(value))); -} - -template Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage impl_IVoiceCommandResponse::RepeatMessage() const -{ - Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RepeatMessage(put(value))); - return value; -} - -template void impl_IVoiceCommandResponse::RepeatMessage(const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RepeatMessage(get(value))); -} - -template hstring impl_IVoiceCommandResponse::AppLaunchArgument() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppLaunchArgument(put(value))); - return value; -} - -template void impl_IVoiceCommandResponse::AppLaunchArgument(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppLaunchArgument(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IVoiceCommandResponse::VoiceCommandContentTiles() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_VoiceCommandContentTiles(put(value))); - return value; -} - -inline VoiceCommandContentTile::VoiceCommandContentTile() : - VoiceCommandContentTile(activate_instance()) -{} - -inline Windows::Foundation::IAsyncAction VoiceCommandDefinitionManager::InstallCommandDefinitionsFromStorageFileAsync(const Windows::Storage::StorageFile & file) -{ - return get_activation_factory().InstallCommandDefinitionsFromStorageFileAsync(file); -} - -inline Windows::Foundation::Collections::IMapView VoiceCommandDefinitionManager::InstalledCommandDefinitions() -{ - return get_activation_factory().InstalledCommandDefinitions(); -} - -inline uint32_t VoiceCommandResponse::MaxSupportedVoiceCommandContentTiles() -{ - return get_activation_factory().MaxSupportedVoiceCommandContentTiles(); -} - -inline Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse VoiceCommandResponse::CreateResponse(const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & userMessage) -{ - return get_activation_factory().CreateResponse(userMessage); -} - -inline Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse VoiceCommandResponse::CreateResponse(const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & message, const Windows::Foundation::Collections::IIterable & contentTiles) -{ - return get_activation_factory().CreateResponse(message, contentTiles); -} - -inline Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse VoiceCommandResponse::CreateResponseForPrompt(const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & message, const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & repeatMessage) -{ - return get_activation_factory().CreateResponseForPrompt(message, repeatMessage); -} - -inline Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse VoiceCommandResponse::CreateResponseForPrompt(const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & message, const Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage & repeatMessage, const Windows::Foundation::Collections::IIterable & contentTiles) -{ - return get_activation_factory().CreateResponseForPrompt(message, repeatMessage, contentTiles); -} - -inline Windows::ApplicationModel::VoiceCommands::VoiceCommandServiceConnection VoiceCommandServiceConnection::FromAppServiceTriggerDetails(const Windows::ApplicationModel::AppService::AppServiceTriggerDetails & triggerDetails) -{ - return get_activation_factory().FromAppServiceTriggerDetails(triggerDetails); -} - -inline VoiceCommandUserMessage::VoiceCommandUserMessage() : - VoiceCommandUserMessage(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Wallet.System.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Wallet.System.h deleted file mode 100644 index dfa03e5d2..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Wallet.System.h +++ /dev/null @@ -1,207 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Wallet.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.ApplicationModel.Wallet.System.3.h" -#include "Windows.ApplicationModel.Wallet.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetItemsAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_in item, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().DeleteAsync(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportItemAsync(abi_arg_in stream, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ImportItemAsync(*reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppStatusForItem(abi_arg_in item, Windows::ApplicationModel::Wallet::System::WalletItemAppAssociation * result) noexcept override - { - try - { - *result = detach(this->shim().GetAppStatusForItem(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchAppForItemAsync(abi_arg_in item, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchAppForItemAsync(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ItemsChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ItemsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemsChanged(event_token cookie) noexcept override - { - try - { - this->shim().ItemsChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestStoreAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestStoreAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Wallet::System { - -template Windows::Foundation::IAsyncOperation> impl_IWalletItemSystemStore::GetItemsAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemsAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IWalletItemSystemStore::DeleteAsync(const Windows::ApplicationModel::Wallet::WalletItem & item) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(get(item), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IWalletItemSystemStore::ImportItemAsync(const Windows::Storage::Streams::IRandomAccessStreamReference & stream) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ImportItemAsync(get(stream), put(operation))); - return operation; -} - -template Windows::ApplicationModel::Wallet::System::WalletItemAppAssociation impl_IWalletItemSystemStore::GetAppStatusForItem(const Windows::ApplicationModel::Wallet::WalletItem & item) const -{ - Windows::ApplicationModel::Wallet::System::WalletItemAppAssociation result {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAppStatusForItem(get(item), &result)); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IWalletItemSystemStore::LaunchAppForItemAsync(const Windows::ApplicationModel::Wallet::WalletItem & item) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchAppForItemAsync(get(item), put(operation))); - return operation; -} - -template event_token impl_IWalletItemSystemStore2::ItemsChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ItemsChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IWalletItemSystemStore2::ItemsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Wallet::System::IWalletItemSystemStore2::remove_ItemsChanged, ItemsChanged(handler)); -} - -template void impl_IWalletItemSystemStore2::ItemsChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemsChanged(cookie)); -} - -template Windows::Foundation::IAsyncOperation impl_IWalletManagerSystemStatics::RequestStoreAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(put(operation))); - return operation; -} - -inline Windows::Foundation::IAsyncOperation WalletManagerSystem::RequestStoreAsync() -{ - return get_activation_factory().RequestStoreAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.Wallet.h b/10.0.14393.0/winrt/Windows.ApplicationModel.Wallet.h deleted file mode 100644 index 40f120559..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.Wallet.h +++ /dev/null @@ -1,2105 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Geolocation.3.h" -#include "internal/Windows.ApplicationModel.Wallet.3.h" -#include "Windows.ApplicationModel.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Symbology(Windows::ApplicationModel::Wallet::WalletBarcodeSymbology * value) noexcept override - { - try - { - *value = detach(this->shim().Symbology()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetImageAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetImageAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWalletBarcode(Windows::ApplicationModel::Wallet::WalletBarcodeSymbology symbology, abi_arg_in value, abi_arg_out barcode) noexcept override - { - try - { - *barcode = detach(this->shim().CreateWalletBarcode(symbology, *reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *barcode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCustomWalletBarcode(abi_arg_in streamToBarcodeImage, abi_arg_out barcode) noexcept override - { - try - { - *barcode = detach(this->shim().CreateCustomWalletBarcode(*reinterpret_cast(&streamToBarcodeImage))); - return S_OK; - } - catch (...) - { - *barcode = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAcknowledged(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAcknowledged()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsAcknowledged(bool value) noexcept override - { - try - { - this->shim().IsAcknowledged(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IssuerDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IssuerDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IssuerDisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().IssuerDisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastUpdated(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LastUpdated()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LastUpdated(abi_arg_in> value) noexcept override - { - try - { - this->shim().LastUpdated(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::ApplicationModel::Wallet::WalletItemKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Barcode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Barcode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Barcode(abi_arg_in value) noexcept override - { - try - { - this->shim().Barcode(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationDate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExpirationDate(abi_arg_in> value) noexcept override - { - try - { - this->shim().ExpirationDate(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Logo159x159(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Logo159x159()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Logo159x159(abi_arg_in value) noexcept override - { - try - { - this->shim().Logo159x159(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Logo336x336(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Logo336x336()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Logo336x336(abi_arg_in value) noexcept override - { - try - { - this->shim().Logo336x336(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Logo99x99(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Logo99x99()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Logo99x99(abi_arg_in value) noexcept override - { - try - { - this->shim().Logo99x99(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayMessage(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayMessage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDisplayMessageLaunchable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDisplayMessageLaunchable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDisplayMessageLaunchable(bool value) noexcept override - { - try - { - this->shim().IsDisplayMessageLaunchable(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LogoText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LogoText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LogoText(abi_arg_in value) noexcept override - { - try - { - this->shim().LogoText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderColor(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BodyColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BodyColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BodyColor(abi_arg_in value) noexcept override - { - try - { - this->shim().BodyColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderFontColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderFontColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderFontColor(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderFontColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BodyFontColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BodyFontColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BodyFontColor(abi_arg_in value) noexcept override - { - try - { - this->shim().BodyFontColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderBackgroundImage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderBackgroundImage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderBackgroundImage(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderBackgroundImage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BodyBackgroundImage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BodyBackgroundImage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BodyBackgroundImage(abi_arg_in value) noexcept override - { - try - { - this->shim().BodyBackgroundImage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LogoImage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LogoImage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LogoImage(abi_arg_in value) noexcept override - { - try - { - this->shim().LogoImage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PromotionalImage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PromotionalImage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PromotionalImage(abi_arg_in value) noexcept override - { - try - { - this->shim().PromotionalImage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RelevantDate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RelevantDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RelevantDate(abi_arg_in> value) noexcept override - { - try - { - this->shim().RelevantDate(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RelevantDateDisplayMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RelevantDateDisplayMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RelevantDateDisplayMessage(abi_arg_in value) noexcept override - { - try - { - this->shim().RelevantDateDisplayMessage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransactionHistory(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TransactionHistory()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RelevantLocations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RelevantLocations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMoreTransactionHistoryLaunchable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMoreTransactionHistoryLaunchable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsMoreTransactionHistoryLaunchable(bool value) noexcept override - { - try - { - this->shim().IsMoreTransactionHistoryLaunchable(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DisplayProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Verbs(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Verbs()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(abi_arg_in value) noexcept override - { - try - { - this->shim().Value(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoDetectLinks(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoDetectLinks()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoDetectLinks(bool value) noexcept override - { - try - { - this->shim().AutoDetectLinks(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DetailViewPosition(Windows::ApplicationModel::Wallet::WalletDetailViewPosition * value) noexcept override - { - try - { - *value = detach(this->shim().DetailViewPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DetailViewPosition(Windows::ApplicationModel::Wallet::WalletDetailViewPosition value) noexcept override - { - try - { - this->shim().DetailViewPosition(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SummaryViewPosition(Windows::ApplicationModel::Wallet::WalletSummaryViewPosition * value) noexcept override - { - try - { - *value = detach(this->shim().SummaryViewPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SummaryViewPosition(Windows::ApplicationModel::Wallet::WalletSummaryViewPosition value) noexcept override - { - try - { - this->shim().SummaryViewPosition(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWalletItemCustomProperty(abi_arg_in name, abi_arg_in value, abi_arg_out walletItemCustomProperty) noexcept override - { - try - { - *walletItemCustomProperty = detach(this->shim().CreateWalletItemCustomProperty(*reinterpret_cast(&name), *reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *walletItemCustomProperty = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWalletItem(Windows::ApplicationModel::Wallet::WalletItemKind kind, abi_arg_in displayName, abi_arg_out walletItem) noexcept override - { - try - { - *walletItem = detach(this->shim().CreateWalletItem(kind, *reinterpret_cast(&displayName))); - return S_OK; - } - catch (...) - { - *walletItem = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddAsync(abi_arg_in id, abi_arg_in item, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().AddAsync(*reinterpret_cast(&id), *reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ClearAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetWalletItemAsync(abi_arg_in id, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetWalletItemAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemsAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemsWithKindAsync(Windows::ApplicationModel::Wallet::WalletItemKind kind, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemsAsync(kind)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportItemAsync(abi_arg_in stream, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ImportItemAsync(*reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_in id, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().DeleteAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowItemAsync(abi_arg_in id, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateAsync(abi_arg_in item, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().UpdateAsync(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ItemsChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ItemsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemsChanged(event_token cookie) noexcept override - { - try - { - this->shim().ItemsChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestStoreAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestStoreAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Position(abi_arg_in value) noexcept override - { - try - { - this->shim().Position(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayMessage(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayMessage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayAmount(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayAmount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayAmount(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayAmount(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IgnoreTimeOfDay(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IgnoreTimeOfDay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IgnoreTimeOfDay(bool value) noexcept override - { - try - { - this->shim().IgnoreTimeOfDay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayLocation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayLocation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayLocation(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayLocation(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransactionDate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TransactionDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransactionDate(abi_arg_in> value) noexcept override - { - try - { - this->shim().TransactionDate(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLaunchable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsLaunchable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsLaunchable(bool value) noexcept override - { - try - { - this->shim().IsLaunchable(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWalletVerb(abi_arg_in name, abi_arg_out WalletVerb) noexcept override - { - try - { - *WalletVerb = detach(this->shim().CreateWalletVerb(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *WalletVerb = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel::Wallet { - -template Windows::ApplicationModel::Wallet::WalletBarcodeSymbology impl_IWalletBarcode::Symbology() const -{ - Windows::ApplicationModel::Wallet::WalletBarcodeSymbology value {}; - check_hresult(static_cast(static_cast(*this))->get_Symbology(&value)); - return value; -} - -template hstring impl_IWalletBarcode::Value() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IWalletBarcode::GetImageAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetImageAsync(put(operation))); - return operation; -} - -template hstring impl_IWalletItemCustomProperty::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IWalletItemCustomProperty::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template hstring impl_IWalletItemCustomProperty::Value() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template void impl_IWalletItemCustomProperty::Value(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(get(value))); -} - -template bool impl_IWalletItemCustomProperty::AutoDetectLinks() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoDetectLinks(&value)); - return value; -} - -template void impl_IWalletItemCustomProperty::AutoDetectLinks(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoDetectLinks(value)); -} - -template Windows::ApplicationModel::Wallet::WalletDetailViewPosition impl_IWalletItemCustomProperty::DetailViewPosition() const -{ - Windows::ApplicationModel::Wallet::WalletDetailViewPosition value {}; - check_hresult(static_cast(static_cast(*this))->get_DetailViewPosition(&value)); - return value; -} - -template void impl_IWalletItemCustomProperty::DetailViewPosition(Windows::ApplicationModel::Wallet::WalletDetailViewPosition value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DetailViewPosition(value)); -} - -template Windows::ApplicationModel::Wallet::WalletSummaryViewPosition impl_IWalletItemCustomProperty::SummaryViewPosition() const -{ - Windows::ApplicationModel::Wallet::WalletSummaryViewPosition value {}; - check_hresult(static_cast(static_cast(*this))->get_SummaryViewPosition(&value)); - return value; -} - -template void impl_IWalletItemCustomProperty::SummaryViewPosition(Windows::ApplicationModel::Wallet::WalletSummaryViewPosition value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SummaryViewPosition(value)); -} - -template hstring impl_IWalletVerb::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IWalletVerb::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template hstring impl_IWalletItem::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IWalletItem::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IWalletItem::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template bool impl_IWalletItem::IsAcknowledged() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAcknowledged(&value)); - return value; -} - -template void impl_IWalletItem::IsAcknowledged(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsAcknowledged(value)); -} - -template hstring impl_IWalletItem::IssuerDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IssuerDisplayName(put(value))); - return value; -} - -template void impl_IWalletItem::IssuerDisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IssuerDisplayName(get(value))); -} - -template Windows::Foundation::IReference impl_IWalletItem::LastUpdated() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_LastUpdated(put(value))); - return value; -} - -template void impl_IWalletItem::LastUpdated(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LastUpdated(get(value))); -} - -template Windows::ApplicationModel::Wallet::WalletItemKind impl_IWalletItem::Kind() const -{ - Windows::ApplicationModel::Wallet::WalletItemKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::ApplicationModel::Wallet::WalletBarcode impl_IWalletItem::Barcode() const -{ - Windows::ApplicationModel::Wallet::WalletBarcode value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Barcode(put(value))); - return value; -} - -template void impl_IWalletItem::Barcode(const Windows::ApplicationModel::Wallet::WalletBarcode & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Barcode(get(value))); -} - -template Windows::Foundation::IReference impl_IWalletItem::ExpirationDate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ExpirationDate(put(value))); - return value; -} - -template void impl_IWalletItem::ExpirationDate(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExpirationDate(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IWalletItem::Logo159x159() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Logo159x159(put(value))); - return value; -} - -template void impl_IWalletItem::Logo159x159(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Logo159x159(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IWalletItem::Logo336x336() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Logo336x336(put(value))); - return value; -} - -template void impl_IWalletItem::Logo336x336(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Logo336x336(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IWalletItem::Logo99x99() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Logo99x99(put(value))); - return value; -} - -template void impl_IWalletItem::Logo99x99(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Logo99x99(get(value))); -} - -template hstring impl_IWalletItem::DisplayMessage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayMessage(put(value))); - return value; -} - -template void impl_IWalletItem::DisplayMessage(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayMessage(get(value))); -} - -template bool impl_IWalletItem::IsDisplayMessageLaunchable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDisplayMessageLaunchable(&value)); - return value; -} - -template void impl_IWalletItem::IsDisplayMessageLaunchable(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDisplayMessageLaunchable(value)); -} - -template hstring impl_IWalletItem::LogoText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LogoText(put(value))); - return value; -} - -template void impl_IWalletItem::LogoText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LogoText(get(value))); -} - -template Windows::UI::Color impl_IWalletItem::HeaderColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_HeaderColor(put(value))); - return value; -} - -template void impl_IWalletItem::HeaderColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderColor(get(value))); -} - -template Windows::UI::Color impl_IWalletItem::BodyColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_BodyColor(put(value))); - return value; -} - -template void impl_IWalletItem::BodyColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BodyColor(get(value))); -} - -template Windows::UI::Color impl_IWalletItem::HeaderFontColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_HeaderFontColor(put(value))); - return value; -} - -template void impl_IWalletItem::HeaderFontColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderFontColor(get(value))); -} - -template Windows::UI::Color impl_IWalletItem::BodyFontColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_BodyFontColor(put(value))); - return value; -} - -template void impl_IWalletItem::BodyFontColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BodyFontColor(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IWalletItem::HeaderBackgroundImage() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_HeaderBackgroundImage(put(value))); - return value; -} - -template void impl_IWalletItem::HeaderBackgroundImage(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderBackgroundImage(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IWalletItem::BodyBackgroundImage() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_BodyBackgroundImage(put(value))); - return value; -} - -template void impl_IWalletItem::BodyBackgroundImage(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BodyBackgroundImage(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IWalletItem::LogoImage() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_LogoImage(put(value))); - return value; -} - -template void impl_IWalletItem::LogoImage(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LogoImage(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IWalletItem::PromotionalImage() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_PromotionalImage(put(value))); - return value; -} - -template void impl_IWalletItem::PromotionalImage(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PromotionalImage(get(value))); -} - -template Windows::Foundation::IReference impl_IWalletItem::RelevantDate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_RelevantDate(put(value))); - return value; -} - -template void impl_IWalletItem::RelevantDate(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RelevantDate(get(value))); -} - -template hstring impl_IWalletItem::RelevantDateDisplayMessage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RelevantDateDisplayMessage(put(value))); - return value; -} - -template void impl_IWalletItem::RelevantDateDisplayMessage(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RelevantDateDisplayMessage(get(value))); -} - -template Windows::Foundation::Collections::IMap impl_IWalletItem::TransactionHistory() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_TransactionHistory(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IWalletItem::RelevantLocations() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_RelevantLocations(put(value))); - return value; -} - -template bool impl_IWalletItem::IsMoreTransactionHistoryLaunchable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMoreTransactionHistoryLaunchable(&value)); - return value; -} - -template void impl_IWalletItem::IsMoreTransactionHistoryLaunchable(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsMoreTransactionHistoryLaunchable(value)); -} - -template Windows::Foundation::Collections::IMap impl_IWalletItem::DisplayProperties() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_DisplayProperties(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IWalletItem::Verbs() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_Verbs(put(value))); - return value; -} - -template hstring impl_IWalletTransaction::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IWalletTransaction::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template hstring impl_IWalletTransaction::DisplayAmount() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayAmount(put(value))); - return value; -} - -template void impl_IWalletTransaction::DisplayAmount(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayAmount(get(value))); -} - -template bool impl_IWalletTransaction::IgnoreTimeOfDay() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IgnoreTimeOfDay(&value)); - return value; -} - -template void impl_IWalletTransaction::IgnoreTimeOfDay(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IgnoreTimeOfDay(value)); -} - -template hstring impl_IWalletTransaction::DisplayLocation() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayLocation(put(value))); - return value; -} - -template void impl_IWalletTransaction::DisplayLocation(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayLocation(get(value))); -} - -template Windows::Foundation::IReference impl_IWalletTransaction::TransactionDate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_TransactionDate(put(value))); - return value; -} - -template void impl_IWalletTransaction::TransactionDate(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransactionDate(get(value))); -} - -template bool impl_IWalletTransaction::IsLaunchable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsLaunchable(&value)); - return value; -} - -template void impl_IWalletTransaction::IsLaunchable(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsLaunchable(value)); -} - -template Windows::Devices::Geolocation::BasicGeoposition impl_IWalletRelevantLocation::Position() const -{ - Windows::Devices::Geolocation::BasicGeoposition value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template void impl_IWalletRelevantLocation::Position(const Windows::Devices::Geolocation::BasicGeoposition & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Position(get(value))); -} - -template hstring impl_IWalletRelevantLocation::DisplayMessage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayMessage(put(value))); - return value; -} - -template void impl_IWalletRelevantLocation::DisplayMessage(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayMessage(get(value))); -} - -template Windows::Foundation::IAsyncAction impl_IWalletItemStore::AddAsync(hstring_ref id, const Windows::ApplicationModel::Wallet::WalletItem & item) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_AddAsync(get(id), get(item), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IWalletItemStore::ClearAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ClearAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IWalletItemStore::GetWalletItemAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetWalletItemAsync(get(id), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IWalletItemStore::GetItemsAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemsAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IWalletItemStore::GetItemsAsync(Windows::ApplicationModel::Wallet::WalletItemKind kind) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemsWithKindAsync(kind, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IWalletItemStore::ImportItemAsync(const Windows::Storage::Streams::IRandomAccessStreamReference & stream) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ImportItemAsync(get(stream), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IWalletItemStore::DeleteAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(get(id), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IWalletItemStore::ShowAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IWalletItemStore::ShowAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowItemAsync(get(id), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IWalletItemStore::UpdateAsync(const Windows::ApplicationModel::Wallet::WalletItem & item) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateAsync(get(item), put(operation))); - return operation; -} - -template event_token impl_IWalletItemStore2::ItemsChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ItemsChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IWalletItemStore2::ItemsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::Wallet::IWalletItemStore2::remove_ItemsChanged, ItemsChanged(handler)); -} - -template void impl_IWalletItemStore2::ItemsChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemsChanged(cookie)); -} - -template Windows::Foundation::IAsyncOperation impl_IWalletManagerStatics::RequestStoreAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(put(operation))); - return operation; -} - -template Windows::ApplicationModel::Wallet::WalletItemCustomProperty impl_IWalletItemCustomPropertyFactory::CreateWalletItemCustomProperty(hstring_ref name, hstring_ref value) const -{ - Windows::ApplicationModel::Wallet::WalletItemCustomProperty walletItemCustomProperty { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWalletItemCustomProperty(get(name), get(value), put(walletItemCustomProperty))); - return walletItemCustomProperty; -} - -template Windows::ApplicationModel::Wallet::WalletVerb impl_IWalletVerbFactory::CreateWalletVerb(hstring_ref name) const -{ - Windows::ApplicationModel::Wallet::WalletVerb WalletVerb { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWalletVerb(get(name), put(WalletVerb))); - return WalletVerb; -} - -template Windows::ApplicationModel::Wallet::WalletItem impl_IWalletItemFactory::CreateWalletItem(Windows::ApplicationModel::Wallet::WalletItemKind kind, hstring_ref displayName) const -{ - Windows::ApplicationModel::Wallet::WalletItem walletItem { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWalletItem(kind, get(displayName), put(walletItem))); - return walletItem; -} - -template Windows::ApplicationModel::Wallet::WalletBarcode impl_IWalletBarcodeFactory::CreateWalletBarcode(Windows::ApplicationModel::Wallet::WalletBarcodeSymbology symbology, hstring_ref value) const -{ - Windows::ApplicationModel::Wallet::WalletBarcode barcode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWalletBarcode(symbology, get(value), put(barcode))); - return barcode; -} - -template Windows::ApplicationModel::Wallet::WalletBarcode impl_IWalletBarcodeFactory::CreateCustomWalletBarcode(const Windows::Storage::Streams::IRandomAccessStreamReference & streamToBarcodeImage) const -{ - Windows::ApplicationModel::Wallet::WalletBarcode barcode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCustomWalletBarcode(get(streamToBarcodeImage), put(barcode))); - return barcode; -} - -inline WalletBarcode::WalletBarcode(Windows::ApplicationModel::Wallet::WalletBarcodeSymbology symbology, hstring_ref value) : - WalletBarcode(get_activation_factory().CreateWalletBarcode(symbology, value)) -{} - -inline WalletBarcode::WalletBarcode(const Windows::Storage::Streams::IRandomAccessStreamReference & streamToBarcodeImage) : - WalletBarcode(get_activation_factory().CreateCustomWalletBarcode(streamToBarcodeImage)) -{} - -inline WalletItem::WalletItem(Windows::ApplicationModel::Wallet::WalletItemKind kind, hstring_ref displayName) : - WalletItem(get_activation_factory().CreateWalletItem(kind, displayName)) -{} - -inline WalletItemCustomProperty::WalletItemCustomProperty(hstring_ref name, hstring_ref value) : - WalletItemCustomProperty(get_activation_factory().CreateWalletItemCustomProperty(name, value)) -{} - -inline Windows::Foundation::IAsyncOperation WalletManager::RequestStoreAsync() -{ - return get_activation_factory().RequestStoreAsync(); -} - -inline WalletRelevantLocation::WalletRelevantLocation() : - WalletRelevantLocation(activate_instance()) -{} - -inline WalletTransaction::WalletTransaction() : - WalletTransaction(activate_instance()) -{} - -inline WalletVerb::WalletVerb(hstring_ref name) : - WalletVerb(get_activation_factory().CreateWalletVerb(name)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.ApplicationModel.h b/10.0.14393.0/winrt/Windows.ApplicationModel.h deleted file mode 100644 index bbda18c74..000000000 --- a/10.0.14393.0/winrt/Windows.ApplicationModel.h +++ /dev/null @@ -1,2284 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLogo(abi_arg_in size, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetLogo(*reinterpret_cast(&size))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppUserModelId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppUserModelId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowInstalledApplicationsUI() noexcept override - { - try - { - this->shim().ShowInstalledApplicationsUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DesignModeEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DesignModeEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LaunchFullTrustProcessForCurrentAppAsync(abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().LaunchFullTrustProcessForCurrentAppAsync()); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchFullTrustProcessForCurrentAppWithParametersAsync(abi_arg_in parameterGroupId, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().LaunchFullTrustProcessForCurrentAppAsync(*reinterpret_cast(¶meterGroupId))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchFullTrustProcessForAppAsync(abi_arg_in fullTrustPackageRelativeAppId, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().LaunchFullTrustProcessForAppAsync(*reinterpret_cast(&fullTrustPackageRelativeAppId))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchFullTrustProcessForAppWithParametersAsync(abi_arg_in fullTrustPackageRelativeAppId, abi_arg_in parameterGroupId, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().LaunchFullTrustProcessForAppAsync(*reinterpret_cast(&fullTrustPackageRelativeAppId), *reinterpret_cast(¶meterGroupId))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstalledLocation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InstalledLocation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFramework(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFramework()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Dependencies(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Dependencies()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PublisherDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PublisherDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsResourcePackage(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsResourcePackage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsBundle(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBundle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDevelopmentMode(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDevelopmentMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstalledDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InstalledDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppListEntriesAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAppListEntriesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SignatureKind(Windows::ApplicationModel::PackageSignatureKind * value) noexcept override - { - try - { - *value = detach(this->shim().SignatureKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOptional(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOptional()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_VerifyContentIntegrityAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().VerifyContentIntegrityAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_PackageStaging(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PackageStaging(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PackageStaging(event_token token) noexcept override - { - try - { - this->shim().PackageStaging(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PackageInstalling(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PackageInstalling(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PackageInstalling(event_token token) noexcept override - { - try - { - this->shim().PackageInstalling(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PackageUpdating(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PackageUpdating(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PackageUpdating(event_token token) noexcept override - { - try - { - this->shim().PackageUpdating(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PackageUninstalling(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PackageUninstalling(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PackageUninstalling(event_token token) noexcept override - { - try - { - this->shim().PackageUninstalling(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PackageStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PackageStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PackageStatusChanged(event_token token) noexcept override - { - try - { - this->shim().PackageStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OpenForCurrentPackage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OpenForCurrentPackage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenForCurrentUser(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OpenForCurrentUser()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Version(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Version()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Architecture(Windows::System::ProcessorArchitecture * value) noexcept override - { - try - { - *value = detach(this->shim().Architecture()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResourceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Publisher(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Publisher()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PublisherId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PublisherId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FullName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FullName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProductId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProductId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Author(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Author()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ActivityId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ActivityId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Progress(double * value) noexcept override - { - try - { - *value = detach(this->shim().Progress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsComplete(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsComplete()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorCode(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ActivityId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ActivityId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Progress(double * value) noexcept override - { - try - { - *value = detach(this->shim().Progress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsComplete(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsComplete()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorCode(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Current(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Current()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_VerifyIsOK(bool * value) noexcept override - { - try - { - *value = detach(this->shim().VerifyIsOK()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NotAvailable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().NotAvailable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PackageOffline(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PackageOffline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataOffline(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DataOffline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Disabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Disabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NeedsRemediation(bool * value) noexcept override - { - try - { - *value = detach(this->shim().NeedsRemediation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LicenseIssue(bool * value) noexcept override - { - try - { - *value = detach(this->shim().LicenseIssue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Modified(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Modified()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tampered(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Tampered()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DependencyIssue(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DependencyIssue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Servicing(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Servicing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeploymentInProgress(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DeploymentInProgress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ActivityId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ActivityId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Progress(double * value) noexcept override - { - try - { - *value = detach(this->shim().Progress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsComplete(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsComplete()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorCode(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ActivityId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ActivityId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourcePackage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourcePackage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetPackage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetPackage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Progress(double * value) noexcept override - { - try - { - *value = detach(this->shim().Progress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsComplete(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsComplete()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorCode(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InstallDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InstallDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetThumbnailToken(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetThumbnailToken()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Launch(abi_arg_in parameters) noexcept override - { - try - { - this->shim().Launch(*reinterpret_cast(¶meters)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestEnableAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestEnableAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Disable() noexcept override - { - try - { - this->shim().Disable(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(Windows::ApplicationModel::StartupTaskState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TaskId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TaskId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentPackageAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetForCurrentPackageAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAsync(abi_arg_in taskId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAsync(*reinterpret_cast(&taskId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SuspendingOperation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SuspendingOperation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::ApplicationModel { - -template hstring impl_IAppDisplayInfo::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IAppDisplayInfo::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template Windows::Storage::Streams::RandomAccessStreamReference impl_IAppDisplayInfo::GetLogo(const Windows::Foundation::Size & size) const -{ - Windows::Storage::Streams::RandomAccessStreamReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetLogo(get(size), put(value))); - return value; -} - -template hstring impl_IAppInfo::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IAppInfo::AppUserModelId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppUserModelId(put(value))); - return value; -} - -template Windows::ApplicationModel::AppDisplayInfo impl_IAppInfo::DisplayInfo() const -{ - Windows::ApplicationModel::AppDisplayInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisplayInfo(put(value))); - return value; -} - -template hstring impl_IAppInfo::PackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PackageFamilyName(put(value))); - return value; -} - -template void impl_ISuspendingDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::ApplicationModel::SuspendingDeferral impl_ISuspendingOperation::GetDeferral() const -{ - Windows::ApplicationModel::SuspendingDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template Windows::Foundation::DateTime impl_ISuspendingOperation::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template Windows::ApplicationModel::SuspendingOperation impl_ISuspendingEventArgs::SuspendingOperation() const -{ - Windows::ApplicationModel::SuspendingOperation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SuspendingOperation(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_ILeavingBackgroundEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IEnteredBackgroundEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template hstring impl_IPackageIdWithMetadata::ProductId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProductId(put(value))); - return value; -} - -template hstring impl_IPackageIdWithMetadata::Author() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Author(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IPackageWithMetadata::InstallDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_InstallDate(put(value))); - return value; -} - -template hstring impl_IPackageWithMetadata::GetThumbnailToken() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetThumbnailToken(put(value))); - return value; -} - -template void impl_IPackageWithMetadata::Launch(hstring_ref parameters) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Launch(get(parameters))); -} - -template bool impl_IPackageStatus::VerifyIsOK() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_VerifyIsOK(&value)); - return value; -} - -template bool impl_IPackageStatus::NotAvailable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_NotAvailable(&value)); - return value; -} - -template bool impl_IPackageStatus::PackageOffline() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PackageOffline(&value)); - return value; -} - -template bool impl_IPackageStatus::DataOffline() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DataOffline(&value)); - return value; -} - -template bool impl_IPackageStatus::Disabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Disabled(&value)); - return value; -} - -template bool impl_IPackageStatus::NeedsRemediation() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_NeedsRemediation(&value)); - return value; -} - -template bool impl_IPackageStatus::LicenseIssue() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_LicenseIssue(&value)); - return value; -} - -template bool impl_IPackageStatus::Modified() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Modified(&value)); - return value; -} - -template bool impl_IPackageStatus::Tampered() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Tampered(&value)); - return value; -} - -template bool impl_IPackageStatus::DependencyIssue() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DependencyIssue(&value)); - return value; -} - -template bool impl_IPackageStatus::Servicing() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Servicing(&value)); - return value; -} - -template bool impl_IPackageStatus::DeploymentInProgress() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DeploymentInProgress(&value)); - return value; -} - -template hstring impl_IPackageId::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::ApplicationModel::PackageVersion impl_IPackageId::Version() const -{ - Windows::ApplicationModel::PackageVersion value {}; - check_hresult(static_cast(static_cast(*this))->get_Version(put(value))); - return value; -} - -template Windows::System::ProcessorArchitecture impl_IPackageId::Architecture() const -{ - Windows::System::ProcessorArchitecture value {}; - check_hresult(static_cast(static_cast(*this))->get_Architecture(&value)); - return value; -} - -template hstring impl_IPackageId::ResourceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResourceId(put(value))); - return value; -} - -template hstring impl_IPackageId::Publisher() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Publisher(put(value))); - return value; -} - -template hstring impl_IPackageId::PublisherId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PublisherId(put(value))); - return value; -} - -template hstring impl_IPackageId::FullName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FullName(put(value))); - return value; -} - -template hstring impl_IPackageId::FamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FamilyName(put(value))); - return value; -} - -template Windows::ApplicationModel::PackageId impl_IPackage::Id() const -{ - Windows::ApplicationModel::PackageId value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IPackage::InstalledLocation() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InstalledLocation(put(value))); - return value; -} - -template bool impl_IPackage::IsFramework() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFramework(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPackage::Dependencies() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Dependencies(put(value))); - return value; -} - -template hstring impl_IPackage2::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IPackage2::PublisherDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PublisherDisplayName(put(value))); - return value; -} - -template hstring impl_IPackage2::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IPackage2::Logo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Logo(put(value))); - return value; -} - -template bool impl_IPackage2::IsResourcePackage() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsResourcePackage(&value)); - return value; -} - -template bool impl_IPackage2::IsBundle() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsBundle(&value)); - return value; -} - -template bool impl_IPackage2::IsDevelopmentMode() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDevelopmentMode(&value)); - return value; -} - -template Windows::ApplicationModel::PackageStatus impl_IPackage3::Status() const -{ - Windows::ApplicationModel::PackageStatus value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Status(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IPackage3::InstalledDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_InstalledDate(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IPackage3::GetAppListEntriesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAppListEntriesAsync(put(operation))); - return operation; -} - -template Windows::ApplicationModel::PackageSignatureKind impl_IPackage4::SignatureKind() const -{ - Windows::ApplicationModel::PackageSignatureKind value {}; - check_hresult(static_cast(static_cast(*this))->get_SignatureKind(&value)); - return value; -} - -template bool impl_IPackage4::IsOptional() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOptional(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPackage4::VerifyContentIntegrityAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_VerifyContentIntegrityAsync(put(operation))); - return operation; -} - -template Windows::ApplicationModel::Package impl_IPackageStatics::Current() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Current(put(value))); - return value; -} - -template GUID impl_IPackageStagingEventArgs::ActivityId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ActivityId(&value)); - return value; -} - -template Windows::ApplicationModel::Package impl_IPackageStagingEventArgs::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -template double impl_IPackageStagingEventArgs::Progress() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Progress(&value)); - return value; -} - -template bool impl_IPackageStagingEventArgs::IsComplete() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsComplete(&value)); - return value; -} - -template HRESULT impl_IPackageStagingEventArgs::ErrorCode() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template GUID impl_IPackageInstallingEventArgs::ActivityId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ActivityId(&value)); - return value; -} - -template Windows::ApplicationModel::Package impl_IPackageInstallingEventArgs::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -template double impl_IPackageInstallingEventArgs::Progress() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Progress(&value)); - return value; -} - -template bool impl_IPackageInstallingEventArgs::IsComplete() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsComplete(&value)); - return value; -} - -template HRESULT impl_IPackageInstallingEventArgs::ErrorCode() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template GUID impl_IPackageUpdatingEventArgs::ActivityId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ActivityId(&value)); - return value; -} - -template Windows::ApplicationModel::Package impl_IPackageUpdatingEventArgs::SourcePackage() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourcePackage(put(value))); - return value; -} - -template Windows::ApplicationModel::Package impl_IPackageUpdatingEventArgs::TargetPackage() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TargetPackage(put(value))); - return value; -} - -template double impl_IPackageUpdatingEventArgs::Progress() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Progress(&value)); - return value; -} - -template bool impl_IPackageUpdatingEventArgs::IsComplete() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsComplete(&value)); - return value; -} - -template HRESULT impl_IPackageUpdatingEventArgs::ErrorCode() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template GUID impl_IPackageUninstallingEventArgs::ActivityId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ActivityId(&value)); - return value; -} - -template Windows::ApplicationModel::Package impl_IPackageUninstallingEventArgs::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -template double impl_IPackageUninstallingEventArgs::Progress() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Progress(&value)); - return value; -} - -template bool impl_IPackageUninstallingEventArgs::IsComplete() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsComplete(&value)); - return value; -} - -template HRESULT impl_IPackageUninstallingEventArgs::ErrorCode() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template Windows::ApplicationModel::Package impl_IPackageStatusChangedEventArgs::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -template event_token impl_IPackageCatalog::PackageStaging(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PackageStaging(get(handler), &token)); - return token; -} - -template event_revoker impl_IPackageCatalog::PackageStaging(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::IPackageCatalog::remove_PackageStaging, PackageStaging(handler)); -} - -template void impl_IPackageCatalog::PackageStaging(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PackageStaging(token)); -} - -template event_token impl_IPackageCatalog::PackageInstalling(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PackageInstalling(get(handler), &token)); - return token; -} - -template event_revoker impl_IPackageCatalog::PackageInstalling(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::IPackageCatalog::remove_PackageInstalling, PackageInstalling(handler)); -} - -template void impl_IPackageCatalog::PackageInstalling(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PackageInstalling(token)); -} - -template event_token impl_IPackageCatalog::PackageUpdating(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PackageUpdating(get(handler), &token)); - return token; -} - -template event_revoker impl_IPackageCatalog::PackageUpdating(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::IPackageCatalog::remove_PackageUpdating, PackageUpdating(handler)); -} - -template void impl_IPackageCatalog::PackageUpdating(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PackageUpdating(token)); -} - -template event_token impl_IPackageCatalog::PackageUninstalling(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PackageUninstalling(get(handler), &token)); - return token; -} - -template event_revoker impl_IPackageCatalog::PackageUninstalling(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::IPackageCatalog::remove_PackageUninstalling, PackageUninstalling(handler)); -} - -template void impl_IPackageCatalog::PackageUninstalling(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PackageUninstalling(token)); -} - -template event_token impl_IPackageCatalog::PackageStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PackageStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPackageCatalog::PackageStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::ApplicationModel::IPackageCatalog::remove_PackageStatusChanged, PackageStatusChanged(handler)); -} - -template void impl_IPackageCatalog::PackageStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PackageStatusChanged(token)); -} - -template Windows::ApplicationModel::PackageCatalog impl_IPackageCatalogStatics::OpenForCurrentPackage() const -{ - Windows::ApplicationModel::PackageCatalog value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenForCurrentPackage(put(value))); - return value; -} - -template Windows::ApplicationModel::PackageCatalog impl_IPackageCatalogStatics::OpenForCurrentUser() const -{ - Windows::ApplicationModel::PackageCatalog value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenForCurrentUser(put(value))); - return value; -} - -template bool impl_IDesignModeStatics::DesignModeEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DesignModeEnabled(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IFullTrustProcessLauncherStatics::LaunchFullTrustProcessForCurrentAppAsync() const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_LaunchFullTrustProcessForCurrentAppAsync(put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncAction impl_IFullTrustProcessLauncherStatics::LaunchFullTrustProcessForCurrentAppAsync(hstring_ref parameterGroupId) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_LaunchFullTrustProcessForCurrentAppWithParametersAsync(get(parameterGroupId), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncAction impl_IFullTrustProcessLauncherStatics::LaunchFullTrustProcessForAppAsync(hstring_ref fullTrustPackageRelativeAppId) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_LaunchFullTrustProcessForAppAsync(get(fullTrustPackageRelativeAppId), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncAction impl_IFullTrustProcessLauncherStatics::LaunchFullTrustProcessForAppAsync(hstring_ref fullTrustPackageRelativeAppId, hstring_ref parameterGroupId) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_LaunchFullTrustProcessForAppWithParametersAsync(get(fullTrustPackageRelativeAppId), get(parameterGroupId), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncOperation impl_IStartupTask::RequestEnableAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestEnableAsync(put(operation))); - return operation; -} - -template void impl_IStartupTask::Disable() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Disable()); -} - -template Windows::ApplicationModel::StartupTaskState impl_IStartupTask::State() const -{ - Windows::ApplicationModel::StartupTaskState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template hstring impl_IStartupTask::TaskId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TaskId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IStartupTaskStatics::GetForCurrentPackageAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentPackageAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStartupTaskStatics::GetAsync(hstring_ref taskId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAsync(get(taskId), put(operation))); - return operation; -} - -template void impl_ICameraApplicationManagerStatics::ShowInstalledApplicationsUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowInstalledApplicationsUI()); -} - -inline void CameraApplicationManager::ShowInstalledApplicationsUI() -{ - get_activation_factory().ShowInstalledApplicationsUI(); -} - -inline bool DesignMode::DesignModeEnabled() -{ - return get_activation_factory().DesignModeEnabled(); -} - -inline Windows::Foundation::IAsyncAction FullTrustProcessLauncher::LaunchFullTrustProcessForCurrentAppAsync() -{ - return get_activation_factory().LaunchFullTrustProcessForCurrentAppAsync(); -} - -inline Windows::Foundation::IAsyncAction FullTrustProcessLauncher::LaunchFullTrustProcessForCurrentAppAsync(hstring_ref parameterGroupId) -{ - return get_activation_factory().LaunchFullTrustProcessForCurrentAppAsync(parameterGroupId); -} - -inline Windows::Foundation::IAsyncAction FullTrustProcessLauncher::LaunchFullTrustProcessForAppAsync(hstring_ref fullTrustPackageRelativeAppId) -{ - return get_activation_factory().LaunchFullTrustProcessForAppAsync(fullTrustPackageRelativeAppId); -} - -inline Windows::Foundation::IAsyncAction FullTrustProcessLauncher::LaunchFullTrustProcessForAppAsync(hstring_ref fullTrustPackageRelativeAppId, hstring_ref parameterGroupId) -{ - return get_activation_factory().LaunchFullTrustProcessForAppAsync(fullTrustPackageRelativeAppId, parameterGroupId); -} - -inline Windows::ApplicationModel::Package Package::Current() -{ - return get_activation_factory().Current(); -} - -inline Windows::ApplicationModel::PackageCatalog PackageCatalog::OpenForCurrentPackage() -{ - return get_activation_factory().OpenForCurrentPackage(); -} - -inline Windows::ApplicationModel::PackageCatalog PackageCatalog::OpenForCurrentUser() -{ - return get_activation_factory().OpenForCurrentUser(); -} - -inline Windows::Foundation::IAsyncOperation> StartupTask::GetForCurrentPackageAsync() -{ - return get_activation_factory().GetForCurrentPackageAsync(); -} - -inline Windows::Foundation::IAsyncOperation StartupTask::GetAsync(hstring_ref taskId) -{ - return get_activation_factory().GetAsync(taskId); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Data.Html.h b/10.0.14393.0/winrt/Windows.Data.Html.h deleted file mode 100644 index 360157285..000000000 --- a/10.0.14393.0/winrt/Windows.Data.Html.h +++ /dev/null @@ -1,48 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Data.Html.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ConvertToText(abi_arg_in html, abi_arg_out text) noexcept override - { - try - { - *text = detach(this->shim().ConvertToText(*reinterpret_cast(&html))); - return S_OK; - } - catch (...) - { - *text = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Data::Html { - -template hstring impl_IHtmlUtilities::ConvertToText(hstring_ref html) const -{ - hstring text; - check_hresult(static_cast(static_cast(*this))->abi_ConvertToText(get(html), put(text))); - return text; -} - -inline hstring HtmlUtilities::ConvertToText(hstring_ref html) -{ - return get_activation_factory().ConvertToText(html); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Data.Json.h b/10.0.14393.0/winrt/Windows.Data.Json.h deleted file mode 100644 index 09cb977be..000000000 --- a/10.0.14393.0/winrt/Windows.Data.Json.h +++ /dev/null @@ -1,862 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Data.Json.3.h" -#include "Windows.Foundation.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetObjectAt(uint32_t index, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetObjectAt(index)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetArrayAt(uint32_t index, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetArrayAt(index)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStringAt(uint32_t index, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetStringAt(index)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNumberAt(uint32_t index, double * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNumberAt(index)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBooleanAt(uint32_t index, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetBooleanAt(index)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Parse(abi_arg_in input, abi_arg_out jsonArray) noexcept override - { - try - { - *jsonArray = detach(this->shim().Parse(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - *jsonArray = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryParse(abi_arg_in input, abi_arg_out result, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TryParse(*reinterpret_cast(&input), *result)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetJsonStatus(int32_t hresult, Windows::Data::Json::JsonErrorStatus * status) noexcept override - { - try - { - *status = detach(this->shim().GetJsonStatus(hresult)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetNamedValue(abi_arg_in name, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedValue(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetNamedValue(abi_arg_in name, abi_arg_in value) noexcept override - { - try - { - this->shim().SetNamedValue(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedObject(abi_arg_in name, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedObject(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedArray(abi_arg_in name, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedArray(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedString(abi_arg_in name, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedString(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedNumber(abi_arg_in name, double * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedNumber(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedBoolean(abi_arg_in name, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedBoolean(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Parse(abi_arg_in input, abi_arg_out jsonObject) noexcept override - { - try - { - *jsonObject = detach(this->shim().Parse(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - *jsonObject = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryParse(abi_arg_in input, abi_arg_out result, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TryParse(*reinterpret_cast(&input), *result)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetNamedValueOrDefault(abi_arg_in name, abi_arg_in defaultValue, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedValue(*reinterpret_cast(&name), *reinterpret_cast(&defaultValue))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedObjectOrDefault(abi_arg_in name, abi_arg_in defaultValue, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedObject(*reinterpret_cast(&name), *reinterpret_cast(&defaultValue))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedStringOrDefault(abi_arg_in name, abi_arg_in defaultValue, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedString(*reinterpret_cast(&name), *reinterpret_cast(&defaultValue))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedArrayOrDefault(abi_arg_in name, abi_arg_in defaultValue, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedArray(*reinterpret_cast(&name), *reinterpret_cast(&defaultValue))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedNumberOrDefault(abi_arg_in name, double defaultValue, double * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedNumber(*reinterpret_cast(&name), defaultValue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedBooleanOrDefault(abi_arg_in name, bool defaultValue, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNamedBoolean(*reinterpret_cast(&name), defaultValue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ValueType(Windows::Data::Json::JsonValueType * value) noexcept override - { - try - { - *value = detach(this->shim().ValueType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stringify(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Stringify()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetString(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetString()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNumber(double * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBoolean(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetBoolean()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetArray(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetArray()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetObject(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetObject()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Parse(abi_arg_in input, abi_arg_out jsonValue) noexcept override - { - try - { - *jsonValue = detach(this->shim().Parse(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - *jsonValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryParse(abi_arg_in input, abi_arg_out result, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TryParse(*reinterpret_cast(&input), *result)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBooleanValue(bool input, abi_arg_out jsonValue) noexcept override - { - try - { - *jsonValue = detach(this->shim().CreateBooleanValue(input)); - return S_OK; - } - catch (...) - { - *jsonValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateNumberValue(double input, abi_arg_out jsonValue) noexcept override - { - try - { - *jsonValue = detach(this->shim().CreateNumberValue(input)); - return S_OK; - } - catch (...) - { - *jsonValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStringValue(abi_arg_in input, abi_arg_out jsonValue) noexcept override - { - try - { - *jsonValue = detach(this->shim().CreateStringValue(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - *jsonValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateNullValue(abi_arg_out jsonValue) noexcept override - { - try - { - *jsonValue = detach(this->shim().CreateNullValue()); - return S_OK; - } - catch (...) - { - *jsonValue = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Data::Json { - -template Windows::Data::Json::JsonValueType impl_IJsonValue::ValueType() const -{ - Windows::Data::Json::JsonValueType value {}; - check_hresult(static_cast(static_cast(*this))->get_ValueType(&value)); - return value; -} - -template hstring impl_IJsonValue::Stringify() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_Stringify(put(returnValue))); - return returnValue; -} - -template hstring impl_IJsonValue::GetString() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetString(put(returnValue))); - return returnValue; -} - -template double impl_IJsonValue::GetNumber() const -{ - double returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetNumber(&returnValue)); - return returnValue; -} - -template bool impl_IJsonValue::GetBoolean() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetBoolean(&returnValue)); - return returnValue; -} - -template Windows::Data::Json::JsonArray impl_IJsonValue::GetArray() const -{ - Windows::Data::Json::JsonArray returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetArray(put(returnValue))); - return returnValue; -} - -template Windows::Data::Json::JsonObject impl_IJsonValue::GetObject() const -{ - Windows::Data::Json::JsonObject returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetObject(put(returnValue))); - return returnValue; -} - -template Windows::Data::Json::JsonValue impl_IJsonValueStatics::Parse(hstring_ref input) const -{ - Windows::Data::Json::JsonValue jsonValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Parse(get(input), put(jsonValue))); - return jsonValue; -} - -template bool impl_IJsonValueStatics::TryParse(hstring_ref input, Windows::Data::Json::JsonValue & result) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TryParse(get(input), put(result), &succeeded)); - return succeeded; -} - -template Windows::Data::Json::JsonValue impl_IJsonValueStatics::CreateBooleanValue(bool input) const -{ - Windows::Data::Json::JsonValue jsonValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBooleanValue(input, put(jsonValue))); - return jsonValue; -} - -template Windows::Data::Json::JsonValue impl_IJsonValueStatics::CreateNumberValue(double input) const -{ - Windows::Data::Json::JsonValue jsonValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateNumberValue(input, put(jsonValue))); - return jsonValue; -} - -template Windows::Data::Json::JsonValue impl_IJsonValueStatics::CreateStringValue(hstring_ref input) const -{ - Windows::Data::Json::JsonValue jsonValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateStringValue(get(input), put(jsonValue))); - return jsonValue; -} - -template Windows::Data::Json::JsonValue impl_IJsonValueStatics2::CreateNullValue() const -{ - Windows::Data::Json::JsonValue jsonValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateNullValue(put(jsonValue))); - return jsonValue; -} - -template Windows::Data::Json::JsonValue impl_IJsonObject::GetNamedValue(hstring_ref name) const -{ - Windows::Data::Json::JsonValue returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedValue(get(name), put(returnValue))); - return returnValue; -} - -template void impl_IJsonObject::SetNamedValue(hstring_ref name, const Windows::Data::Json::IJsonValue & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetNamedValue(get(name), get(value))); -} - -template Windows::Data::Json::JsonObject impl_IJsonObject::GetNamedObject(hstring_ref name) const -{ - Windows::Data::Json::JsonObject returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedObject(get(name), put(returnValue))); - return returnValue; -} - -template Windows::Data::Json::JsonArray impl_IJsonObject::GetNamedArray(hstring_ref name) const -{ - Windows::Data::Json::JsonArray returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedArray(get(name), put(returnValue))); - return returnValue; -} - -template hstring impl_IJsonObject::GetNamedString(hstring_ref name) const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedString(get(name), put(returnValue))); - return returnValue; -} - -template double impl_IJsonObject::GetNamedNumber(hstring_ref name) const -{ - double returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedNumber(get(name), &returnValue)); - return returnValue; -} - -template bool impl_IJsonObject::GetNamedBoolean(hstring_ref name) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedBoolean(get(name), &returnValue)); - return returnValue; -} - -template Windows::Data::Json::JsonValue impl_IJsonObjectWithDefaultValues::GetNamedValue(hstring_ref name, const Windows::Data::Json::JsonValue & defaultValue) const -{ - Windows::Data::Json::JsonValue returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedValueOrDefault(get(name), get(defaultValue), put(returnValue))); - return returnValue; -} - -template Windows::Data::Json::JsonObject impl_IJsonObjectWithDefaultValues::GetNamedObject(hstring_ref name, const Windows::Data::Json::JsonObject & defaultValue) const -{ - Windows::Data::Json::JsonObject returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedObjectOrDefault(get(name), get(defaultValue), put(returnValue))); - return returnValue; -} - -template hstring impl_IJsonObjectWithDefaultValues::GetNamedString(hstring_ref name, hstring_ref defaultValue) const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedStringOrDefault(get(name), get(defaultValue), put(returnValue))); - return returnValue; -} - -template Windows::Data::Json::JsonArray impl_IJsonObjectWithDefaultValues::GetNamedArray(hstring_ref name, const Windows::Data::Json::JsonArray & defaultValue) const -{ - Windows::Data::Json::JsonArray returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedArrayOrDefault(get(name), get(defaultValue), put(returnValue))); - return returnValue; -} - -template double impl_IJsonObjectWithDefaultValues::GetNamedNumber(hstring_ref name, double defaultValue) const -{ - double returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedNumberOrDefault(get(name), defaultValue, &returnValue)); - return returnValue; -} - -template bool impl_IJsonObjectWithDefaultValues::GetNamedBoolean(hstring_ref name, bool defaultValue) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedBooleanOrDefault(get(name), defaultValue, &returnValue)); - return returnValue; -} - -template Windows::Data::Json::JsonObject impl_IJsonObjectStatics::Parse(hstring_ref input) const -{ - Windows::Data::Json::JsonObject jsonObject { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Parse(get(input), put(jsonObject))); - return jsonObject; -} - -template bool impl_IJsonObjectStatics::TryParse(hstring_ref input, Windows::Data::Json::JsonObject & result) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TryParse(get(input), put(result), &succeeded)); - return succeeded; -} - -template Windows::Data::Json::JsonObject impl_IJsonArray::GetObjectAt(uint32_t index) const -{ - Windows::Data::Json::JsonObject returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetObjectAt(index, put(returnValue))); - return returnValue; -} - -template Windows::Data::Json::JsonArray impl_IJsonArray::GetArrayAt(uint32_t index) const -{ - Windows::Data::Json::JsonArray returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetArrayAt(index, put(returnValue))); - return returnValue; -} - -template hstring impl_IJsonArray::GetStringAt(uint32_t index) const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetStringAt(index, put(returnValue))); - return returnValue; -} - -template double impl_IJsonArray::GetNumberAt(uint32_t index) const -{ - double returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetNumberAt(index, &returnValue)); - return returnValue; -} - -template bool impl_IJsonArray::GetBooleanAt(uint32_t index) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetBooleanAt(index, &returnValue)); - return returnValue; -} - -template Windows::Data::Json::JsonArray impl_IJsonArrayStatics::Parse(hstring_ref input) const -{ - Windows::Data::Json::JsonArray jsonArray { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Parse(get(input), put(jsonArray))); - return jsonArray; -} - -template bool impl_IJsonArrayStatics::TryParse(hstring_ref input, Windows::Data::Json::JsonArray & result) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TryParse(get(input), put(result), &succeeded)); - return succeeded; -} - -template Windows::Data::Json::JsonErrorStatus impl_IJsonErrorStatics2::GetJsonStatus(int32_t hresult) const -{ - Windows::Data::Json::JsonErrorStatus status {}; - check_hresult(static_cast(static_cast(*this))->abi_GetJsonStatus(hresult, &status)); - return status; -} - -inline JsonArray::JsonArray() : - JsonArray(activate_instance()) -{} - -inline Windows::Data::Json::JsonArray JsonArray::Parse(hstring_ref input) -{ - return get_activation_factory().Parse(input); -} - -inline bool JsonArray::TryParse(hstring_ref input, Windows::Data::Json::JsonArray & result) -{ - return get_activation_factory().TryParse(input, result); -} - -inline Windows::Data::Json::JsonErrorStatus JsonError::GetJsonStatus(int32_t hresult) -{ - return get_activation_factory().GetJsonStatus(hresult); -} - -inline JsonObject::JsonObject() : - JsonObject(activate_instance()) -{} - -inline Windows::Data::Json::JsonObject JsonObject::Parse(hstring_ref input) -{ - return get_activation_factory().Parse(input); -} - -inline bool JsonObject::TryParse(hstring_ref input, Windows::Data::Json::JsonObject & result) -{ - return get_activation_factory().TryParse(input, result); -} - -inline Windows::Data::Json::JsonValue JsonValue::Parse(hstring_ref input) -{ - return get_activation_factory().Parse(input); -} - -inline bool JsonValue::TryParse(hstring_ref input, Windows::Data::Json::JsonValue & result) -{ - return get_activation_factory().TryParse(input, result); -} - -inline Windows::Data::Json::JsonValue JsonValue::CreateBooleanValue(bool input) -{ - return get_activation_factory().CreateBooleanValue(input); -} - -inline Windows::Data::Json::JsonValue JsonValue::CreateNumberValue(double input) -{ - return get_activation_factory().CreateNumberValue(input); -} - -inline Windows::Data::Json::JsonValue JsonValue::CreateStringValue(hstring_ref input) -{ - return get_activation_factory().CreateStringValue(input); -} - -inline Windows::Data::Json::JsonValue JsonValue::CreateNullValue() -{ - return get_activation_factory().CreateNullValue(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Data.Pdf.h b/10.0.14393.0/winrt/Windows.Data.Pdf.h deleted file mode 100644 index 72a589dbf..000000000 --- a/10.0.14393.0/winrt/Windows.Data.Pdf.h +++ /dev/null @@ -1,704 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Data.Pdf.3.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPage(uint32_t pageIndex, abi_arg_out pdfPage) noexcept override - { - try - { - *pdfPage = detach(this->shim().GetPage(pageIndex)); - return S_OK; - } - catch (...) - { - *pdfPage = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PageCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPasswordProtected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPasswordProtected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LoadFromFileAsync(abi_arg_in file, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().LoadFromFileAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadFromFileWithPasswordAsync(abi_arg_in file, abi_arg_in password, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().LoadFromFileAsync(*reinterpret_cast(&file), *reinterpret_cast(&password))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadFromStreamAsync(abi_arg_in inputStream, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().LoadFromStreamAsync(*reinterpret_cast(&inputStream))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadFromStreamWithPasswordAsync(abi_arg_in inputStream, abi_arg_in password, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().LoadFromStreamAsync(*reinterpret_cast(&inputStream), *reinterpret_cast(&password))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RenderToStreamAsync(abi_arg_in outputStream, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().RenderToStreamAsync(*reinterpret_cast(&outputStream))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RenderWithOptionsToStreamAsync(abi_arg_in outputStream, abi_arg_in options, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().RenderToStreamAsync(*reinterpret_cast(&outputStream), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PreparePageAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().PreparePageAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Index(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Index()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Size(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Dimensions(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Dimensions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rotation(Windows::Data::Pdf::PdfPageRotation * value) noexcept override - { - try - { - *value = detach(this->shim().Rotation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreferredZoom(float * value) noexcept override - { - try - { - *value = detach(this->shim().PreferredZoom()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MediaBox(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaBox()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CropBox(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CropBox()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BleedBox(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BleedBox()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrimBox(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrimBox()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ArtBox(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ArtBox()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SourceRect(abi_arg_in value) noexcept override - { - try - { - this->shim().SourceRect(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DestinationWidth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DestinationWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DestinationWidth(uint32_t value) noexcept override - { - try - { - this->shim().DestinationWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DestinationHeight(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DestinationHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DestinationHeight(uint32_t value) noexcept override - { - try - { - this->shim().DestinationHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackgroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().BackgroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsIgnoringHighContrast(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIgnoringHighContrast()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsIgnoringHighContrast(bool value) noexcept override - { - try - { - this->shim().IsIgnoringHighContrast(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitmapEncoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().BitmapEncoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BitmapEncoderId(GUID value) noexcept override - { - try - { - this->shim().BitmapEncoderId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Data::Pdf { - -template Windows::Foundation::Rect impl_IPdfPageDimensions::MediaBox() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaBox(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IPdfPageDimensions::CropBox() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_CropBox(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IPdfPageDimensions::BleedBox() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_BleedBox(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IPdfPageDimensions::TrimBox() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_TrimBox(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IPdfPageDimensions::ArtBox() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_ArtBox(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IPdfPageRenderOptions::SourceRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_SourceRect(put(value))); - return value; -} - -template void impl_IPdfPageRenderOptions::SourceRect(const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SourceRect(get(value))); -} - -template uint32_t impl_IPdfPageRenderOptions::DestinationWidth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DestinationWidth(&value)); - return value; -} - -template void impl_IPdfPageRenderOptions::DestinationWidth(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DestinationWidth(value)); -} - -template uint32_t impl_IPdfPageRenderOptions::DestinationHeight() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DestinationHeight(&value)); - return value; -} - -template void impl_IPdfPageRenderOptions::DestinationHeight(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DestinationHeight(value)); -} - -template Windows::UI::Color impl_IPdfPageRenderOptions::BackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(put(value))); - return value; -} - -template void impl_IPdfPageRenderOptions::BackgroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackgroundColor(get(value))); -} - -template bool impl_IPdfPageRenderOptions::IsIgnoringHighContrast() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsIgnoringHighContrast(&value)); - return value; -} - -template void impl_IPdfPageRenderOptions::IsIgnoringHighContrast(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsIgnoringHighContrast(value)); -} - -template GUID impl_IPdfPageRenderOptions::BitmapEncoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_BitmapEncoderId(&value)); - return value; -} - -template void impl_IPdfPageRenderOptions::BitmapEncoderId(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BitmapEncoderId(value)); -} - -template Windows::Foundation::IAsyncAction impl_IPdfPage::RenderToStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & outputStream) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_RenderToStreamAsync(get(outputStream), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IPdfPage::RenderToStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & outputStream, const Windows::Data::Pdf::PdfPageRenderOptions & options) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_RenderWithOptionsToStreamAsync(get(outputStream), get(options), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IPdfPage::PreparePageAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_PreparePageAsync(put(asyncInfo))); - return asyncInfo; -} - -template uint32_t impl_IPdfPage::Index() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Index(&value)); - return value; -} - -template Windows::Foundation::Size impl_IPdfPage::Size() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(put(value))); - return value; -} - -template Windows::Data::Pdf::PdfPageDimensions impl_IPdfPage::Dimensions() const -{ - Windows::Data::Pdf::PdfPageDimensions value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Dimensions(put(value))); - return value; -} - -template Windows::Data::Pdf::PdfPageRotation impl_IPdfPage::Rotation() const -{ - Windows::Data::Pdf::PdfPageRotation value {}; - check_hresult(static_cast(static_cast(*this))->get_Rotation(&value)); - return value; -} - -template float impl_IPdfPage::PreferredZoom() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_PreferredZoom(&value)); - return value; -} - -template Windows::Data::Pdf::PdfPage impl_IPdfDocument::GetPage(uint32_t pageIndex) const -{ - Windows::Data::Pdf::PdfPage pdfPage { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetPage(pageIndex, put(pdfPage))); - return pdfPage; -} - -template uint32_t impl_IPdfDocument::PageCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PageCount(&value)); - return value; -} - -template bool impl_IPdfDocument::IsPasswordProtected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPasswordProtected(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPdfDocumentStatics::LoadFromFileAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_LoadFromFileAsync(get(file), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IPdfDocumentStatics::LoadFromFileAsync(const Windows::Storage::IStorageFile & file, hstring_ref password) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_LoadFromFileWithPasswordAsync(get(file), get(password), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IPdfDocumentStatics::LoadFromStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & inputStream) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_LoadFromStreamAsync(get(inputStream), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IPdfDocumentStatics::LoadFromStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & inputStream, hstring_ref password) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_LoadFromStreamWithPasswordAsync(get(inputStream), get(password), put(asyncInfo))); - return asyncInfo; -} - -inline Windows::Foundation::IAsyncOperation PdfDocument::LoadFromFileAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().LoadFromFileAsync(file); -} - -inline Windows::Foundation::IAsyncOperation PdfDocument::LoadFromFileAsync(const Windows::Storage::IStorageFile & file, hstring_ref password) -{ - return get_activation_factory().LoadFromFileAsync(file, password); -} - -inline Windows::Foundation::IAsyncOperation PdfDocument::LoadFromStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & inputStream) -{ - return get_activation_factory().LoadFromStreamAsync(inputStream); -} - -inline Windows::Foundation::IAsyncOperation PdfDocument::LoadFromStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & inputStream, hstring_ref password) -{ - return get_activation_factory().LoadFromStreamAsync(inputStream, password); -} - -inline PdfPageRenderOptions::PdfPageRenderOptions() : - PdfPageRenderOptions(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Data.Text.h b/10.0.14393.0/winrt/Windows.Data.Text.h deleted file mode 100644 index ec206854a..000000000 --- a/10.0.14393.0/winrt/Windows.Data.Text.h +++ /dev/null @@ -1,1387 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Data.Text.3.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Data::Text { - -template SelectableWordSegmentsTokenizingHandler::SelectableWordSegmentsTokenizingHandler(L lambda) : - SelectableWordSegmentsTokenizingHandler(impl::make_delegate, SelectableWordSegmentsTokenizingHandler>(std::forward(lambda))) -{} - -template SelectableWordSegmentsTokenizingHandler::SelectableWordSegmentsTokenizingHandler(F * function) : - SelectableWordSegmentsTokenizingHandler([=](auto && ... args) { function(args ...); }) -{} - -template SelectableWordSegmentsTokenizingHandler::SelectableWordSegmentsTokenizingHandler(O * object, M method) : - SelectableWordSegmentsTokenizingHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void SelectableWordSegmentsTokenizingHandler::operator()(const Windows::Foundation::Collections::IIterable & precedingWords, const Windows::Foundation::Collections::IIterable & words) const -{ - check_hresult((*this)->abi_Invoke(get(precedingWords), get(words))); -} - -template WordSegmentsTokenizingHandler::WordSegmentsTokenizingHandler(L lambda) : - WordSegmentsTokenizingHandler(impl::make_delegate, WordSegmentsTokenizingHandler>(std::forward(lambda))) -{} - -template WordSegmentsTokenizingHandler::WordSegmentsTokenizingHandler(F * function) : - WordSegmentsTokenizingHandler([=](auto && ... args) { function(args ...); }) -{} - -template WordSegmentsTokenizingHandler::WordSegmentsTokenizingHandler(O * object, M method) : - WordSegmentsTokenizingHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void WordSegmentsTokenizingHandler::operator()(const Windows::Foundation::Collections::IIterable & precedingWords, const Windows::Foundation::Collections::IIterable & words) const -{ - check_hresult((*this)->abi_Invoke(get(precedingWords), get(words))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceTextSegment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceTextSegment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlternateText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlternateText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NormalizationFormat(Windows::Data::Text::AlternateNormalizationFormat * value) noexcept override - { - try - { - *value = detach(this->shim().NormalizationFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceTextSegment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceTextSegment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResolvedLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResolvedLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTokenAt(abi_arg_in text, uint32_t startIndex, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetTokenAt(*reinterpret_cast(&text), startIndex)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTokens(abi_arg_in text, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetTokens(*reinterpret_cast(&text))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Tokenize(abi_arg_in text, uint32_t startIndex, abi_arg_in handler) noexcept override - { - try - { - this->shim().Tokenize(*reinterpret_cast(&text), startIndex, *reinterpret_cast(&handler)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithLanguage(abi_arg_in language, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithLanguage(*reinterpret_cast(&language))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Find(abi_arg_in content, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().Find(*reinterpret_cast(&content))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindInProperty(abi_arg_in propertyContent, abi_arg_in propertyName, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FindInProperty(*reinterpret_cast(&propertyContent), *reinterpret_cast(&propertyName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in aqsFilter, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&aqsFilter))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithLanguage(abi_arg_in aqsFilter, abi_arg_in filterLanguage, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithLanguage(*reinterpret_cast(&aqsFilter), *reinterpret_cast(&filterLanguage))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResolvedLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResolvedLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LanguageAvailableButNotInstalled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().LanguageAvailableButNotInstalled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCandidatesAsync(abi_arg_in input, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetCandidatesAsync(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCandidatesWithMaxCountAsync(abi_arg_in input, uint32_t maxCandidates, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetCandidatesAsync(*reinterpret_cast(&input), maxCandidates)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in languageTag, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&languageTag))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadingText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReadingText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResolvedLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResolvedLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LanguageAvailableButNotInstalled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().LanguageAvailableButNotInstalled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCandidatesAsync(abi_arg_in input, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetCandidatesAsync(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCandidatesWithMaxCountAsync(abi_arg_in input, uint32_t maxCandidates, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetCandidatesAsync(*reinterpret_cast(&input), maxCandidates)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in languageTag, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&languageTag))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResolvedLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResolvedLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LanguageAvailableButNotInstalled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().LanguageAvailableButNotInstalled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertBackAsync(abi_arg_in input, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ConvertBackAsync(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPhonemesAsync(abi_arg_in input, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetPhonemesAsync(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in languageTag, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&languageTag))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCodepointFromSurrogatePair(uint32_t highSurrogate, uint32_t lowSurrogate, uint32_t * codepoint) noexcept override - { - try - { - *codepoint = detach(this->shim().GetCodepointFromSurrogatePair(highSurrogate, lowSurrogate)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSurrogatePairFromCodepoint(uint32_t codepoint, wchar_t * highSurrogate, wchar_t * lowSurrogate) noexcept override - { - try - { - this->shim().GetSurrogatePairFromCodepoint(codepoint, *highSurrogate, *lowSurrogate); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsHighSurrogate(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHighSurrogate(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsLowSurrogate(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsLowSurrogate(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsSupplementary(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSupplementary(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsNoncharacter(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsNoncharacter(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsWhitespace(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsWhitespace(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsAlphabetic(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAlphabetic(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsCased(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCased(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsUppercase(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsUppercase(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsLowercase(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsLowercase(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsIdStart(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIdStart(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsIdContinue(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIdContinue(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsGraphemeBase(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGraphemeBase(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsGraphemeExtend(uint32_t codepoint, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGraphemeExtend(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNumericType(uint32_t codepoint, Windows::Data::Text::UnicodeNumericType * value) noexcept override - { - try - { - *value = detach(this->shim().GetNumericType(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGeneralCategory(uint32_t codepoint, Windows::Data::Text::UnicodeGeneralCategory * value) noexcept override - { - try - { - *value = detach(this->shim().GetGeneralCategory(codepoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceTextSegment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceTextSegment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlternateForms(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AlternateForms()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResolvedLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResolvedLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTokenAt(abi_arg_in text, uint32_t startIndex, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetTokenAt(*reinterpret_cast(&text), startIndex)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTokens(abi_arg_in text, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetTokens(*reinterpret_cast(&text))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Tokenize(abi_arg_in text, uint32_t startIndex, abi_arg_in handler) noexcept override - { - try - { - this->shim().Tokenize(*reinterpret_cast(&text), startIndex, *reinterpret_cast(&handler)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithLanguage(abi_arg_in language, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithLanguage(*reinterpret_cast(&language))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Data::Text { - -template Windows::Data::Text::SemanticTextQuery impl_ISemanticTextQueryFactory::Create(hstring_ref aqsFilter) const -{ - Windows::Data::Text::SemanticTextQuery result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(aqsFilter), put(result))); - return result; -} - -template Windows::Data::Text::SemanticTextQuery impl_ISemanticTextQueryFactory::CreateWithLanguage(hstring_ref aqsFilter, hstring_ref filterLanguage) const -{ - Windows::Data::Text::SemanticTextQuery result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithLanguage(get(aqsFilter), get(filterLanguage), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_ISemanticTextQuery::Find(hstring_ref content) const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_Find(get(content), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_ISemanticTextQuery::FindInProperty(hstring_ref propertyContent, hstring_ref propertyName) const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_FindInProperty(get(propertyContent), get(propertyName), put(result))); - return result; -} - -template uint32_t impl_IUnicodeCharactersStatics::GetCodepointFromSurrogatePair(uint32_t highSurrogate, uint32_t lowSurrogate) const -{ - uint32_t codepoint {}; - check_hresult(static_cast(static_cast(*this))->abi_GetCodepointFromSurrogatePair(highSurrogate, lowSurrogate, &codepoint)); - return codepoint; -} - -template void impl_IUnicodeCharactersStatics::GetSurrogatePairFromCodepoint(uint32_t codepoint, wchar_t & highSurrogate, wchar_t & lowSurrogate) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetSurrogatePairFromCodepoint(codepoint, &highSurrogate, &lowSurrogate)); -} - -template bool impl_IUnicodeCharactersStatics::IsHighSurrogate(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsHighSurrogate(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsLowSurrogate(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsLowSurrogate(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsSupplementary(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsSupplementary(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsNoncharacter(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsNoncharacter(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsWhitespace(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsWhitespace(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsAlphabetic(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsAlphabetic(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsCased(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsCased(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsUppercase(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsUppercase(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsLowercase(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsLowercase(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsIdStart(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsIdStart(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsIdContinue(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsIdContinue(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsGraphemeBase(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsGraphemeBase(codepoint, &value)); - return value; -} - -template bool impl_IUnicodeCharactersStatics::IsGraphemeExtend(uint32_t codepoint) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsGraphemeExtend(codepoint, &value)); - return value; -} - -template Windows::Data::Text::UnicodeNumericType impl_IUnicodeCharactersStatics::GetNumericType(uint32_t codepoint) const -{ - Windows::Data::Text::UnicodeNumericType value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetNumericType(codepoint, &value)); - return value; -} - -template Windows::Data::Text::UnicodeGeneralCategory impl_IUnicodeCharactersStatics::GetGeneralCategory(uint32_t codepoint) const -{ - Windows::Data::Text::UnicodeGeneralCategory value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetGeneralCategory(codepoint, &value)); - return value; -} - -template Windows::Data::Text::TextSegment impl_IAlternateWordForm::SourceTextSegment() const -{ - Windows::Data::Text::TextSegment value {}; - check_hresult(static_cast(static_cast(*this))->get_SourceTextSegment(put(value))); - return value; -} - -template hstring impl_IAlternateWordForm::AlternateText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlternateText(put(value))); - return value; -} - -template Windows::Data::Text::AlternateNormalizationFormat impl_IAlternateWordForm::NormalizationFormat() const -{ - Windows::Data::Text::AlternateNormalizationFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_NormalizationFormat(&value)); - return value; -} - -template hstring impl_ISelectableWordSegment::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::Data::Text::TextSegment impl_ISelectableWordSegment::SourceTextSegment() const -{ - Windows::Data::Text::TextSegment value {}; - check_hresult(static_cast(static_cast(*this))->get_SourceTextSegment(put(value))); - return value; -} - -template hstring impl_IWordSegment::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::Data::Text::TextSegment impl_IWordSegment::SourceTextSegment() const -{ - Windows::Data::Text::TextSegment value {}; - check_hresult(static_cast(static_cast(*this))->get_SourceTextSegment(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IWordSegment::AlternateForms() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AlternateForms(put(value))); - return value; -} - -template hstring impl_IWordsSegmenter::ResolvedLanguage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResolvedLanguage(put(value))); - return value; -} - -template Windows::Data::Text::WordSegment impl_IWordsSegmenter::GetTokenAt(hstring_ref text, uint32_t startIndex) const -{ - Windows::Data::Text::WordSegment result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetTokenAt(get(text), startIndex, put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_IWordsSegmenter::GetTokens(hstring_ref text) const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetTokens(get(text), put(result))); - return result; -} - -template void impl_IWordsSegmenter::Tokenize(hstring_ref text, uint32_t startIndex, const Windows::Data::Text::WordSegmentsTokenizingHandler & handler) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Tokenize(get(text), startIndex, get(handler))); -} - -template Windows::Data::Text::WordsSegmenter impl_IWordsSegmenterFactory::CreateWithLanguage(hstring_ref language) const -{ - Windows::Data::Text::WordsSegmenter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithLanguage(get(language), put(result))); - return result; -} - -template hstring impl_ISelectableWordsSegmenter::ResolvedLanguage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResolvedLanguage(put(value))); - return value; -} - -template Windows::Data::Text::SelectableWordSegment impl_ISelectableWordsSegmenter::GetTokenAt(hstring_ref text, uint32_t startIndex) const -{ - Windows::Data::Text::SelectableWordSegment result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetTokenAt(get(text), startIndex, put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_ISelectableWordsSegmenter::GetTokens(hstring_ref text) const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetTokens(get(text), put(result))); - return result; -} - -template void impl_ISelectableWordsSegmenter::Tokenize(hstring_ref text, uint32_t startIndex, const Windows::Data::Text::SelectableWordSegmentsTokenizingHandler & handler) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Tokenize(get(text), startIndex, get(handler))); -} - -template Windows::Data::Text::SelectableWordsSegmenter impl_ISelectableWordsSegmenterFactory::CreateWithLanguage(hstring_ref language) const -{ - Windows::Data::Text::SelectableWordsSegmenter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithLanguage(get(language), put(result))); - return result; -} - -template hstring impl_ITextPredictionGenerator::ResolvedLanguage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResolvedLanguage(put(value))); - return value; -} - -template bool impl_ITextPredictionGenerator::LanguageAvailableButNotInstalled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_LanguageAvailableButNotInstalled(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_ITextPredictionGenerator::GetCandidatesAsync(hstring_ref input) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetCandidatesAsync(get(input), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_ITextPredictionGenerator::GetCandidatesAsync(hstring_ref input, uint32_t maxCandidates) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetCandidatesWithMaxCountAsync(get(input), maxCandidates, put(result))); - return result; -} - -template Windows::Data::Text::TextPredictionGenerator impl_ITextPredictionGeneratorFactory::Create(hstring_ref languageTag) const -{ - Windows::Data::Text::TextPredictionGenerator result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(languageTag), put(result))); - return result; -} - -template hstring impl_ITextConversionGenerator::ResolvedLanguage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResolvedLanguage(put(value))); - return value; -} - -template bool impl_ITextConversionGenerator::LanguageAvailableButNotInstalled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_LanguageAvailableButNotInstalled(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_ITextConversionGenerator::GetCandidatesAsync(hstring_ref input) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetCandidatesAsync(get(input), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_ITextConversionGenerator::GetCandidatesAsync(hstring_ref input, uint32_t maxCandidates) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetCandidatesWithMaxCountAsync(get(input), maxCandidates, put(result))); - return result; -} - -template Windows::Data::Text::TextConversionGenerator impl_ITextConversionGeneratorFactory::Create(hstring_ref languageTag) const -{ - Windows::Data::Text::TextConversionGenerator result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(languageTag), put(result))); - return result; -} - -template hstring impl_ITextReverseConversionGenerator::ResolvedLanguage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResolvedLanguage(put(value))); - return value; -} - -template bool impl_ITextReverseConversionGenerator::LanguageAvailableButNotInstalled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_LanguageAvailableButNotInstalled(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ITextReverseConversionGenerator::ConvertBackAsync(hstring_ref input) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ConvertBackAsync(get(input), put(result))); - return result; -} - -template Windows::Data::Text::TextReverseConversionGenerator impl_ITextReverseConversionGeneratorFactory::Create(hstring_ref languageTag) const -{ - Windows::Data::Text::TextReverseConversionGenerator result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(languageTag), put(result))); - return result; -} - -template hstring impl_ITextPhoneme::DisplayText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayText(put(value))); - return value; -} - -template hstring impl_ITextPhoneme::ReadingText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ReadingText(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_ITextReverseConversionGenerator2::GetPhonemesAsync(hstring_ref input) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetPhonemesAsync(get(input), put(result))); - return result; -} - -inline SelectableWordsSegmenter::SelectableWordsSegmenter(hstring_ref language) : - SelectableWordsSegmenter(get_activation_factory().CreateWithLanguage(language)) -{} - -inline SemanticTextQuery::SemanticTextQuery(hstring_ref aqsFilter) : - SemanticTextQuery(get_activation_factory().Create(aqsFilter)) -{} - -inline SemanticTextQuery::SemanticTextQuery(hstring_ref aqsFilter, hstring_ref filterLanguage) : - SemanticTextQuery(get_activation_factory().CreateWithLanguage(aqsFilter, filterLanguage)) -{} - -inline TextConversionGenerator::TextConversionGenerator(hstring_ref languageTag) : - TextConversionGenerator(get_activation_factory().Create(languageTag)) -{} - -inline TextPredictionGenerator::TextPredictionGenerator(hstring_ref languageTag) : - TextPredictionGenerator(get_activation_factory().Create(languageTag)) -{} - -inline TextReverseConversionGenerator::TextReverseConversionGenerator(hstring_ref languageTag) : - TextReverseConversionGenerator(get_activation_factory().Create(languageTag)) -{} - -inline uint32_t UnicodeCharacters::GetCodepointFromSurrogatePair(uint32_t highSurrogate, uint32_t lowSurrogate) -{ - return get_activation_factory().GetCodepointFromSurrogatePair(highSurrogate, lowSurrogate); -} - -inline void UnicodeCharacters::GetSurrogatePairFromCodepoint(uint32_t codepoint, wchar_t & highSurrogate, wchar_t & lowSurrogate) -{ - get_activation_factory().GetSurrogatePairFromCodepoint(codepoint, highSurrogate, lowSurrogate); -} - -inline bool UnicodeCharacters::IsHighSurrogate(uint32_t codepoint) -{ - return get_activation_factory().IsHighSurrogate(codepoint); -} - -inline bool UnicodeCharacters::IsLowSurrogate(uint32_t codepoint) -{ - return get_activation_factory().IsLowSurrogate(codepoint); -} - -inline bool UnicodeCharacters::IsSupplementary(uint32_t codepoint) -{ - return get_activation_factory().IsSupplementary(codepoint); -} - -inline bool UnicodeCharacters::IsNoncharacter(uint32_t codepoint) -{ - return get_activation_factory().IsNoncharacter(codepoint); -} - -inline bool UnicodeCharacters::IsWhitespace(uint32_t codepoint) -{ - return get_activation_factory().IsWhitespace(codepoint); -} - -inline bool UnicodeCharacters::IsAlphabetic(uint32_t codepoint) -{ - return get_activation_factory().IsAlphabetic(codepoint); -} - -inline bool UnicodeCharacters::IsCased(uint32_t codepoint) -{ - return get_activation_factory().IsCased(codepoint); -} - -inline bool UnicodeCharacters::IsUppercase(uint32_t codepoint) -{ - return get_activation_factory().IsUppercase(codepoint); -} - -inline bool UnicodeCharacters::IsLowercase(uint32_t codepoint) -{ - return get_activation_factory().IsLowercase(codepoint); -} - -inline bool UnicodeCharacters::IsIdStart(uint32_t codepoint) -{ - return get_activation_factory().IsIdStart(codepoint); -} - -inline bool UnicodeCharacters::IsIdContinue(uint32_t codepoint) -{ - return get_activation_factory().IsIdContinue(codepoint); -} - -inline bool UnicodeCharacters::IsGraphemeBase(uint32_t codepoint) -{ - return get_activation_factory().IsGraphemeBase(codepoint); -} - -inline bool UnicodeCharacters::IsGraphemeExtend(uint32_t codepoint) -{ - return get_activation_factory().IsGraphemeExtend(codepoint); -} - -inline Windows::Data::Text::UnicodeNumericType UnicodeCharacters::GetNumericType(uint32_t codepoint) -{ - return get_activation_factory().GetNumericType(codepoint); -} - -inline Windows::Data::Text::UnicodeGeneralCategory UnicodeCharacters::GetGeneralCategory(uint32_t codepoint) -{ - return get_activation_factory().GetGeneralCategory(codepoint); -} - -inline WordsSegmenter::WordsSegmenter(hstring_ref language) : - WordsSegmenter(get_activation_factory().CreateWithLanguage(language)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Data.Xml.Dom.h b/10.0.14393.0/winrt/Windows.Data.Xml.Dom.h deleted file mode 100644 index 075946a26..000000000 --- a/10.0.14393.0/winrt/Windows.Data.Xml.Dom.h +++ /dev/null @@ -1,2452 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Data.Xml.Dom.3.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PublicId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PublicId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SystemId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NotationName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NotationName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PublicId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PublicId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SystemId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Specified(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Specified()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(abi_arg_in value) noexcept override - { - try - { - this->shim().Value(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Data(abi_arg_in value) noexcept override - { - try - { - this->shim().Data(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Length(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SubstringData(uint32_t offset, uint32_t count, abi_arg_out data) noexcept override - { - try - { - *data = detach(this->shim().SubstringData(offset, count)); - return S_OK; - } - catch (...) - { - *data = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendData(abi_arg_in data) noexcept override - { - try - { - this->shim().AppendData(*reinterpret_cast(&data)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertData(uint32_t offset, abi_arg_in data) noexcept override - { - try - { - this->shim().InsertData(offset, *reinterpret_cast(&data)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteData(uint32_t offset, uint32_t count) noexcept override - { - try - { - this->shim().DeleteData(offset, count); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReplaceData(uint32_t offset, uint32_t count, abi_arg_in data) noexcept override - { - try - { - this->shim().ReplaceData(offset, count, *reinterpret_cast(&data)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Doctype(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Doctype()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Implementation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Implementation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DocumentElement(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DocumentElement()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateElement(abi_arg_in tagName, abi_arg_out newElement) noexcept override - { - try - { - *newElement = detach(this->shim().CreateElement(*reinterpret_cast(&tagName))); - return S_OK; - } - catch (...) - { - *newElement = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDocumentFragment(abi_arg_out newDocumentFragment) noexcept override - { - try - { - *newDocumentFragment = detach(this->shim().CreateDocumentFragment()); - return S_OK; - } - catch (...) - { - *newDocumentFragment = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTextNode(abi_arg_in data, abi_arg_out newTextNode) noexcept override - { - try - { - *newTextNode = detach(this->shim().CreateTextNode(*reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *newTextNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateComment(abi_arg_in data, abi_arg_out newComment) noexcept override - { - try - { - *newComment = detach(this->shim().CreateComment(*reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *newComment = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateProcessingInstruction(abi_arg_in target, abi_arg_in data, abi_arg_out newProcessingInstruction) noexcept override - { - try - { - *newProcessingInstruction = detach(this->shim().CreateProcessingInstruction(*reinterpret_cast(&target), *reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *newProcessingInstruction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAttribute(abi_arg_in name, abi_arg_out newAttribute) noexcept override - { - try - { - *newAttribute = detach(this->shim().CreateAttribute(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *newAttribute = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateEntityReference(abi_arg_in name, abi_arg_out newEntityReference) noexcept override - { - try - { - *newEntityReference = detach(this->shim().CreateEntityReference(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *newEntityReference = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetElementsByTagName(abi_arg_in tagName, abi_arg_out elements) noexcept override - { - try - { - *elements = detach(this->shim().GetElementsByTagName(*reinterpret_cast(&tagName))); - return S_OK; - } - catch (...) - { - *elements = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCDataSection(abi_arg_in data, abi_arg_out newCDataSection) noexcept override - { - try - { - *newCDataSection = detach(this->shim().CreateCDataSection(*reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *newCDataSection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DocumentUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DocumentUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAttributeNS(abi_arg_in namespaceUri, abi_arg_in qualifiedName, abi_arg_out newAttribute) noexcept override - { - try - { - *newAttribute = detach(this->shim().CreateAttributeNS(*reinterpret_cast(&namespaceUri), *reinterpret_cast(&qualifiedName))); - return S_OK; - } - catch (...) - { - *newAttribute = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateElementNS(abi_arg_in namespaceUri, abi_arg_in qualifiedName, abi_arg_out newElement) noexcept override - { - try - { - *newElement = detach(this->shim().CreateElementNS(*reinterpret_cast(&namespaceUri), *reinterpret_cast(&qualifiedName))); - return S_OK; - } - catch (...) - { - *newElement = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetElementById(abi_arg_in elementId, abi_arg_out element) noexcept override - { - try - { - *element = detach(this->shim().GetElementById(*reinterpret_cast(&elementId))); - return S_OK; - } - catch (...) - { - *element = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportNode(abi_arg_in node, bool deep, abi_arg_out newNode) noexcept override - { - try - { - *newNode = detach(this->shim().ImportNode(*reinterpret_cast(&node), deep)); - return S_OK; - } - catch (...) - { - *newNode = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LoadXml(abi_arg_in xml) noexcept override - { - try - { - this->shim().LoadXml(*reinterpret_cast(&xml)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadXmlWithSettings(abi_arg_in xml, abi_arg_in loadSettings) noexcept override - { - try - { - this->shim().LoadXml(*reinterpret_cast(&xml), *reinterpret_cast(&loadSettings)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveToFileAsync(abi_arg_in file, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SaveToFileAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LoadXmlFromBuffer(abi_arg_in buffer) noexcept override - { - try - { - this->shim().LoadXmlFromBuffer(*reinterpret_cast(&buffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadXmlFromBufferWithSettings(abi_arg_in buffer, abi_arg_in loadSettings) noexcept override - { - try - { - this->shim().LoadXmlFromBuffer(*reinterpret_cast(&buffer), *reinterpret_cast(&loadSettings)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LoadFromUriAsync(abi_arg_in uri, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().LoadFromUriAsync(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadFromUriWithSettingsAsync(abi_arg_in uri, abi_arg_in loadSettings, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().LoadFromUriAsync(*reinterpret_cast(&uri), *reinterpret_cast(&loadSettings))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadFromFileAsync(abi_arg_in file, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().LoadFromFileAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadFromFileWithSettingsAsync(abi_arg_in file, abi_arg_in loadSettings, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().LoadFromFileAsync(*reinterpret_cast(&file), *reinterpret_cast(&loadSettings))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Entities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Entities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Notations(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Notations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_HasFeature(abi_arg_in feature, abi_arg_in version, bool * featureSupported) noexcept override - { - try - { - *featureSupported = detach(this->shim().HasFeature(*reinterpret_cast(&feature), *reinterpret_cast(&version))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TagName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TagName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAttribute(abi_arg_in attributeName, abi_arg_out attributeValue) noexcept override - { - try - { - *attributeValue = detach(this->shim().GetAttribute(*reinterpret_cast(&attributeName))); - return S_OK; - } - catch (...) - { - *attributeValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAttribute(abi_arg_in attributeName, abi_arg_in attributeValue) noexcept override - { - try - { - this->shim().SetAttribute(*reinterpret_cast(&attributeName), *reinterpret_cast(&attributeValue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAttribute(abi_arg_in attributeName) noexcept override - { - try - { - this->shim().RemoveAttribute(*reinterpret_cast(&attributeName)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAttributeNode(abi_arg_in attributeName, abi_arg_out attributeNode) noexcept override - { - try - { - *attributeNode = detach(this->shim().GetAttributeNode(*reinterpret_cast(&attributeName))); - return S_OK; - } - catch (...) - { - *attributeNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAttributeNode(abi_arg_in newAttribute, abi_arg_out previousAttribute) noexcept override - { - try - { - *previousAttribute = detach(this->shim().SetAttributeNode(*reinterpret_cast(&newAttribute))); - return S_OK; - } - catch (...) - { - *previousAttribute = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAttributeNode(abi_arg_in attributeNode, abi_arg_out removedAttribute) noexcept override - { - try - { - *removedAttribute = detach(this->shim().RemoveAttributeNode(*reinterpret_cast(&attributeNode))); - return S_OK; - } - catch (...) - { - *removedAttribute = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetElementsByTagName(abi_arg_in tagName, abi_arg_out elements) noexcept override - { - try - { - *elements = detach(this->shim().GetElementsByTagName(*reinterpret_cast(&tagName))); - return S_OK; - } - catch (...) - { - *elements = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAttributeNS(abi_arg_in namespaceUri, abi_arg_in qualifiedName, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAttributeNS(*reinterpret_cast(&namespaceUri), *reinterpret_cast(&qualifiedName), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAttributeNS(abi_arg_in namespaceUri, abi_arg_in localName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAttributeNS(*reinterpret_cast(&namespaceUri), *reinterpret_cast(&localName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAttributeNS(abi_arg_in namespaceUri, abi_arg_in localName) noexcept override - { - try - { - this->shim().RemoveAttributeNS(*reinterpret_cast(&namespaceUri), *reinterpret_cast(&localName)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAttributeNodeNS(abi_arg_in newAttribute, abi_arg_out previousAttribute) noexcept override - { - try - { - *previousAttribute = detach(this->shim().SetAttributeNodeNS(*reinterpret_cast(&newAttribute))); - return S_OK; - } - catch (...) - { - *previousAttribute = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAttributeNodeNS(abi_arg_in namespaceUri, abi_arg_in localName, abi_arg_out previousAttribute) noexcept override - { - try - { - *previousAttribute = detach(this->shim().GetAttributeNodeNS(*reinterpret_cast(&namespaceUri), *reinterpret_cast(&localName))); - return S_OK; - } - catch (...) - { - *previousAttribute = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxElementDepth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxElementDepth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxElementDepth(uint32_t value) noexcept override - { - try - { - this->shim().MaxElementDepth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProhibitDtd(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ProhibitDtd()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProhibitDtd(bool value) noexcept override - { - try - { - this->shim().ProhibitDtd(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResolveExternals(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ResolveExternals()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ResolveExternals(bool value) noexcept override - { - try - { - this->shim().ResolveExternals(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ValidateOnParse(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ValidateOnParse()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ValidateOnParse(bool value) noexcept override - { - try - { - this->shim().ValidateOnParse(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ElementContentWhiteSpace(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ElementContentWhiteSpace()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ElementContentWhiteSpace(bool value) noexcept override - { - try - { - this->shim().ElementContentWhiteSpace(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Length(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Item(uint32_t index, abi_arg_out node) noexcept override - { - try - { - *node = detach(this->shim().Item(index)); - return S_OK; - } - catch (...) - { - *node = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedItem(abi_arg_in name, abi_arg_out node) noexcept override - { - try - { - *node = detach(this->shim().GetNamedItem(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *node = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetNamedItem(abi_arg_in node, abi_arg_out previousNode) noexcept override - { - try - { - *previousNode = detach(this->shim().SetNamedItem(*reinterpret_cast(&node))); - return S_OK; - } - catch (...) - { - *previousNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveNamedItem(abi_arg_in name, abi_arg_out previousNode) noexcept override - { - try - { - *previousNode = detach(this->shim().RemoveNamedItem(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *previousNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNamedItemNS(abi_arg_in namespaceUri, abi_arg_in name, abi_arg_out node) noexcept override - { - try - { - *node = detach(this->shim().GetNamedItemNS(*reinterpret_cast(&namespaceUri), *reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *node = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveNamedItemNS(abi_arg_in namespaceUri, abi_arg_in name, abi_arg_out previousNode) noexcept override - { - try - { - *previousNode = detach(this->shim().RemoveNamedItemNS(*reinterpret_cast(&namespaceUri), *reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *previousNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetNamedItemNS(abi_arg_in node, abi_arg_out previousNode) noexcept override - { - try - { - *previousNode = detach(this->shim().SetNamedItemNS(*reinterpret_cast(&node))); - return S_OK; - } - catch (...) - { - *previousNode = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NodeValue(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NodeValue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NodeValue(abi_arg_in value) noexcept override - { - try - { - this->shim().NodeValue(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NodeType(Windows::Data::Xml::Dom::NodeType * value) noexcept override - { - try - { - *value = detach(this->shim().NodeType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NodeName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NodeName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ParentNode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ParentNode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChildNodes(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChildNodes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstChild(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstChild()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastChild(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastChild()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreviousSibling(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreviousSibling()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NextSibling(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NextSibling()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Attributes(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Attributes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HasChildNodes(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasChildNodes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OwnerDocument(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OwnerDocument()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertBefore(abi_arg_in newChild, abi_arg_in referenceChild, abi_arg_out insertedChild) noexcept override - { - try - { - *insertedChild = detach(this->shim().InsertBefore(*reinterpret_cast(&newChild), *reinterpret_cast(&referenceChild))); - return S_OK; - } - catch (...) - { - *insertedChild = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReplaceChild(abi_arg_in newChild, abi_arg_in referenceChild, abi_arg_out previousChild) noexcept override - { - try - { - *previousChild = detach(this->shim().ReplaceChild(*reinterpret_cast(&newChild), *reinterpret_cast(&referenceChild))); - return S_OK; - } - catch (...) - { - *previousChild = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveChild(abi_arg_in childNode, abi_arg_out removedChild) noexcept override - { - try - { - *removedChild = detach(this->shim().RemoveChild(*reinterpret_cast(&childNode))); - return S_OK; - } - catch (...) - { - *removedChild = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendChild(abi_arg_in newChild, abi_arg_out appendedChild) noexcept override - { - try - { - *appendedChild = detach(this->shim().AppendChild(*reinterpret_cast(&newChild))); - return S_OK; - } - catch (...) - { - *appendedChild = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CloneNode(bool deep, abi_arg_out newNode) noexcept override - { - try - { - *newNode = detach(this->shim().CloneNode(deep)); - return S_OK; - } - catch (...) - { - *newNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NamespaceUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NamespaceUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Prefix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Prefix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Normalize() noexcept override - { - try - { - this->shim().Normalize(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Prefix(abi_arg_in value) noexcept override - { - try - { - this->shim().Prefix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Length(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Item(uint32_t index, abi_arg_out node) noexcept override - { - try - { - *node = detach(this->shim().Item(index)); - return S_OK; - } - catch (...) - { - *node = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SelectSingleNode(abi_arg_in xpath, abi_arg_out node) noexcept override - { - try - { - *node = detach(this->shim().SelectSingleNode(*reinterpret_cast(&xpath))); - return S_OK; - } - catch (...) - { - *node = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectNodes(abi_arg_in xpath, abi_arg_out nodelist) noexcept override - { - try - { - *nodelist = detach(this->shim().SelectNodes(*reinterpret_cast(&xpath))); - return S_OK; - } - catch (...) - { - *nodelist = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectSingleNodeNS(abi_arg_in xpath, abi_arg_in namespaces, abi_arg_out node) noexcept override - { - try - { - *node = detach(this->shim().SelectSingleNodeNS(*reinterpret_cast(&xpath), *reinterpret_cast(&namespaces))); - return S_OK; - } - catch (...) - { - *node = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectNodesNS(abi_arg_in xpath, abi_arg_in namespaces, abi_arg_out nodelist) noexcept override - { - try - { - *nodelist = detach(this->shim().SelectNodesNS(*reinterpret_cast(&xpath), *reinterpret_cast(&namespaces))); - return S_OK; - } - catch (...) - { - *nodelist = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetXml(abi_arg_out outerXml) noexcept override - { - try - { - *outerXml = detach(this->shim().GetXml()); - return S_OK; - } - catch (...) - { - *outerXml = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InnerText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InnerText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InnerText(abi_arg_in value) noexcept override - { - try - { - this->shim().InnerText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Target(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Target()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Data(abi_arg_in value) noexcept override - { - try - { - this->shim().Data(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SplitText(uint32_t offset, abi_arg_out secondPart) noexcept override - { - try - { - *secondPart = detach(this->shim().SplitText(offset)); - return S_OK; - } - catch (...) - { - *secondPart = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Data::Xml::Dom { - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNodeSelector::SelectSingleNode(hstring_ref xpath) const -{ - Windows::Data::Xml::Dom::IXmlNode node; - check_hresult(static_cast(static_cast(*this))->abi_SelectSingleNode(get(xpath), put(node))); - return node; -} - -template Windows::Data::Xml::Dom::XmlNodeList impl_IXmlNodeSelector::SelectNodes(hstring_ref xpath) const -{ - Windows::Data::Xml::Dom::XmlNodeList nodelist { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SelectNodes(get(xpath), put(nodelist))); - return nodelist; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNodeSelector::SelectSingleNodeNS(hstring_ref xpath, const Windows::IInspectable & namespaces) const -{ - Windows::Data::Xml::Dom::IXmlNode node; - check_hresult(static_cast(static_cast(*this))->abi_SelectSingleNodeNS(get(xpath), get(namespaces), put(node))); - return node; -} - -template Windows::Data::Xml::Dom::XmlNodeList impl_IXmlNodeSelector::SelectNodesNS(hstring_ref xpath, const Windows::IInspectable & namespaces) const -{ - Windows::Data::Xml::Dom::XmlNodeList nodelist { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SelectNodesNS(get(xpath), get(namespaces), put(nodelist))); - return nodelist; -} - -template hstring impl_IXmlNodeSerializer::GetXml() const -{ - hstring outerXml; - check_hresult(static_cast(static_cast(*this))->abi_GetXml(put(outerXml))); - return outerXml; -} - -template hstring impl_IXmlNodeSerializer::InnerText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InnerText(put(value))); - return value; -} - -template void impl_IXmlNodeSerializer::InnerText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InnerText(get(value))); -} - -template Windows::IInspectable impl_IXmlNode::NodeValue() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_NodeValue(put(value))); - return value; -} - -template void impl_IXmlNode::NodeValue(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NodeValue(get(value))); -} - -template Windows::Data::Xml::Dom::NodeType impl_IXmlNode::NodeType() const -{ - Windows::Data::Xml::Dom::NodeType value {}; - check_hresult(static_cast(static_cast(*this))->get_NodeType(&value)); - return value; -} - -template hstring impl_IXmlNode::NodeName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NodeName(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNode::ParentNode() const -{ - Windows::Data::Xml::Dom::IXmlNode value; - check_hresult(static_cast(static_cast(*this))->get_ParentNode(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::XmlNodeList impl_IXmlNode::ChildNodes() const -{ - Windows::Data::Xml::Dom::XmlNodeList value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChildNodes(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNode::FirstChild() const -{ - Windows::Data::Xml::Dom::IXmlNode value; - check_hresult(static_cast(static_cast(*this))->get_FirstChild(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNode::LastChild() const -{ - Windows::Data::Xml::Dom::IXmlNode value; - check_hresult(static_cast(static_cast(*this))->get_LastChild(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNode::PreviousSibling() const -{ - Windows::Data::Xml::Dom::IXmlNode value; - check_hresult(static_cast(static_cast(*this))->get_PreviousSibling(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNode::NextSibling() const -{ - Windows::Data::Xml::Dom::IXmlNode value; - check_hresult(static_cast(static_cast(*this))->get_NextSibling(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::XmlNamedNodeMap impl_IXmlNode::Attributes() const -{ - Windows::Data::Xml::Dom::XmlNamedNodeMap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Attributes(put(value))); - return value; -} - -template bool impl_IXmlNode::HasChildNodes() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_HasChildNodes(&value)); - return value; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_IXmlNode::OwnerDocument() const -{ - Windows::Data::Xml::Dom::XmlDocument value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OwnerDocument(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNode::InsertBefore(const Windows::Data::Xml::Dom::IXmlNode & newChild, const Windows::Data::Xml::Dom::IXmlNode & referenceChild) const -{ - Windows::Data::Xml::Dom::IXmlNode insertedChild; - check_hresult(static_cast(static_cast(*this))->abi_InsertBefore(get(newChild), get(referenceChild), put(insertedChild))); - return insertedChild; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNode::ReplaceChild(const Windows::Data::Xml::Dom::IXmlNode & newChild, const Windows::Data::Xml::Dom::IXmlNode & referenceChild) const -{ - Windows::Data::Xml::Dom::IXmlNode previousChild; - check_hresult(static_cast(static_cast(*this))->abi_ReplaceChild(get(newChild), get(referenceChild), put(previousChild))); - return previousChild; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNode::RemoveChild(const Windows::Data::Xml::Dom::IXmlNode & childNode) const -{ - Windows::Data::Xml::Dom::IXmlNode removedChild; - check_hresult(static_cast(static_cast(*this))->abi_RemoveChild(get(childNode), put(removedChild))); - return removedChild; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNode::AppendChild(const Windows::Data::Xml::Dom::IXmlNode & newChild) const -{ - Windows::Data::Xml::Dom::IXmlNode appendedChild; - check_hresult(static_cast(static_cast(*this))->abi_AppendChild(get(newChild), put(appendedChild))); - return appendedChild; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNode::CloneNode(bool deep) const -{ - Windows::Data::Xml::Dom::IXmlNode newNode; - check_hresult(static_cast(static_cast(*this))->abi_CloneNode(deep, put(newNode))); - return newNode; -} - -template Windows::IInspectable impl_IXmlNode::NamespaceUri() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_NamespaceUri(put(value))); - return value; -} - -template Windows::IInspectable impl_IXmlNode::LocalName() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_LocalName(put(value))); - return value; -} - -template Windows::IInspectable impl_IXmlNode::Prefix() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Prefix(put(value))); - return value; -} - -template void impl_IXmlNode::Normalize() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Normalize()); -} - -template void impl_IXmlNode::Prefix(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Prefix(get(value))); -} - -template bool impl_IXmlDomImplementation::HasFeature(hstring_ref feature, const Windows::IInspectable & version) const -{ - bool featureSupported {}; - check_hresult(static_cast(static_cast(*this))->abi_HasFeature(get(feature), get(version), &featureSupported)); - return featureSupported; -} - -template hstring impl_IXmlDocumentType::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::XmlNamedNodeMap impl_IXmlDocumentType::Entities() const -{ - Windows::Data::Xml::Dom::XmlNamedNodeMap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Entities(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::XmlNamedNodeMap impl_IXmlDocumentType::Notations() const -{ - Windows::Data::Xml::Dom::XmlNamedNodeMap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Notations(put(value))); - return value; -} - -template hstring impl_IXmlAttribute::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template bool impl_IXmlAttribute::Specified() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Specified(&value)); - return value; -} - -template hstring impl_IXmlAttribute::Value() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template void impl_IXmlAttribute::Value(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(get(value))); -} - -template hstring impl_IXmlElement::TagName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TagName(put(value))); - return value; -} - -template hstring impl_IXmlElement::GetAttribute(hstring_ref attributeName) const -{ - hstring attributeValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAttribute(get(attributeName), put(attributeValue))); - return attributeValue; -} - -template void impl_IXmlElement::SetAttribute(hstring_ref attributeName, hstring_ref attributeValue) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAttribute(get(attributeName), get(attributeValue))); -} - -template void impl_IXmlElement::RemoveAttribute(hstring_ref attributeName) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveAttribute(get(attributeName))); -} - -template Windows::Data::Xml::Dom::XmlAttribute impl_IXmlElement::GetAttributeNode(hstring_ref attributeName) const -{ - Windows::Data::Xml::Dom::XmlAttribute attributeNode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAttributeNode(get(attributeName), put(attributeNode))); - return attributeNode; -} - -template Windows::Data::Xml::Dom::XmlAttribute impl_IXmlElement::SetAttributeNode(const Windows::Data::Xml::Dom::XmlAttribute & newAttribute) const -{ - Windows::Data::Xml::Dom::XmlAttribute previousAttribute { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SetAttributeNode(get(newAttribute), put(previousAttribute))); - return previousAttribute; -} - -template Windows::Data::Xml::Dom::XmlAttribute impl_IXmlElement::RemoveAttributeNode(const Windows::Data::Xml::Dom::XmlAttribute & attributeNode) const -{ - Windows::Data::Xml::Dom::XmlAttribute removedAttribute { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_RemoveAttributeNode(get(attributeNode), put(removedAttribute))); - return removedAttribute; -} - -template Windows::Data::Xml::Dom::XmlNodeList impl_IXmlElement::GetElementsByTagName(hstring_ref tagName) const -{ - Windows::Data::Xml::Dom::XmlNodeList elements { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetElementsByTagName(get(tagName), put(elements))); - return elements; -} - -template void impl_IXmlElement::SetAttributeNS(const Windows::IInspectable & namespaceUri, hstring_ref qualifiedName, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAttributeNS(get(namespaceUri), get(qualifiedName), get(value))); -} - -template hstring impl_IXmlElement::GetAttributeNS(const Windows::IInspectable & namespaceUri, hstring_ref localName) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetAttributeNS(get(namespaceUri), get(localName), put(value))); - return value; -} - -template void impl_IXmlElement::RemoveAttributeNS(const Windows::IInspectable & namespaceUri, hstring_ref localName) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveAttributeNS(get(namespaceUri), get(localName))); -} - -template Windows::Data::Xml::Dom::XmlAttribute impl_IXmlElement::SetAttributeNodeNS(const Windows::Data::Xml::Dom::XmlAttribute & newAttribute) const -{ - Windows::Data::Xml::Dom::XmlAttribute previousAttribute { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SetAttributeNodeNS(get(newAttribute), put(previousAttribute))); - return previousAttribute; -} - -template Windows::Data::Xml::Dom::XmlAttribute impl_IXmlElement::GetAttributeNodeNS(const Windows::IInspectable & namespaceUri, hstring_ref localName) const -{ - Windows::Data::Xml::Dom::XmlAttribute previousAttribute { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAttributeNodeNS(get(namespaceUri), get(localName), put(previousAttribute))); - return previousAttribute; -} - -template Windows::IInspectable impl_IDtdNotation::PublicId() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_PublicId(put(value))); - return value; -} - -template Windows::IInspectable impl_IDtdNotation::SystemId() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_SystemId(put(value))); - return value; -} - -template Windows::IInspectable impl_IDtdEntity::PublicId() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_PublicId(put(value))); - return value; -} - -template Windows::IInspectable impl_IDtdEntity::SystemId() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_SystemId(put(value))); - return value; -} - -template Windows::IInspectable impl_IDtdEntity::NotationName() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_NotationName(put(value))); - return value; -} - -template hstring impl_IXmlProcessingInstruction::Target() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Target(put(value))); - return value; -} - -template hstring impl_IXmlProcessingInstruction::Data() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template void impl_IXmlProcessingInstruction::Data(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Data(get(value))); -} - -template hstring impl_IXmlCharacterData::Data() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template void impl_IXmlCharacterData::Data(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Data(get(value))); -} - -template uint32_t impl_IXmlCharacterData::Length() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template hstring impl_IXmlCharacterData::SubstringData(uint32_t offset, uint32_t count) const -{ - hstring data; - check_hresult(static_cast(static_cast(*this))->abi_SubstringData(offset, count, put(data))); - return data; -} - -template void impl_IXmlCharacterData::AppendData(hstring_ref data) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AppendData(get(data))); -} - -template void impl_IXmlCharacterData::InsertData(uint32_t offset, hstring_ref data) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertData(offset, get(data))); -} - -template void impl_IXmlCharacterData::DeleteData(uint32_t offset, uint32_t count) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DeleteData(offset, count)); -} - -template void impl_IXmlCharacterData::ReplaceData(uint32_t offset, uint32_t count, hstring_ref data) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReplaceData(offset, count, get(data))); -} - -template Windows::Data::Xml::Dom::IXmlText impl_IXmlText::SplitText(uint32_t offset) const -{ - Windows::Data::Xml::Dom::IXmlText secondPart; - check_hresult(static_cast(static_cast(*this))->abi_SplitText(offset, put(secondPart))); - return secondPart; -} - -template Windows::Data::Xml::Dom::XmlDocumentType impl_IXmlDocument::Doctype() const -{ - Windows::Data::Xml::Dom::XmlDocumentType value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Doctype(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::XmlDomImplementation impl_IXmlDocument::Implementation() const -{ - Windows::Data::Xml::Dom::XmlDomImplementation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Implementation(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::XmlElement impl_IXmlDocument::DocumentElement() const -{ - Windows::Data::Xml::Dom::XmlElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DocumentElement(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::XmlElement impl_IXmlDocument::CreateElement(hstring_ref tagName) const -{ - Windows::Data::Xml::Dom::XmlElement newElement { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateElement(get(tagName), put(newElement))); - return newElement; -} - -template Windows::Data::Xml::Dom::XmlDocumentFragment impl_IXmlDocument::CreateDocumentFragment() const -{ - Windows::Data::Xml::Dom::XmlDocumentFragment newDocumentFragment { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDocumentFragment(put(newDocumentFragment))); - return newDocumentFragment; -} - -template Windows::Data::Xml::Dom::XmlText impl_IXmlDocument::CreateTextNode(hstring_ref data) const -{ - Windows::Data::Xml::Dom::XmlText newTextNode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTextNode(get(data), put(newTextNode))); - return newTextNode; -} - -template Windows::Data::Xml::Dom::XmlComment impl_IXmlDocument::CreateComment(hstring_ref data) const -{ - Windows::Data::Xml::Dom::XmlComment newComment { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateComment(get(data), put(newComment))); - return newComment; -} - -template Windows::Data::Xml::Dom::XmlProcessingInstruction impl_IXmlDocument::CreateProcessingInstruction(hstring_ref target, hstring_ref data) const -{ - Windows::Data::Xml::Dom::XmlProcessingInstruction newProcessingInstruction { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateProcessingInstruction(get(target), get(data), put(newProcessingInstruction))); - return newProcessingInstruction; -} - -template Windows::Data::Xml::Dom::XmlAttribute impl_IXmlDocument::CreateAttribute(hstring_ref name) const -{ - Windows::Data::Xml::Dom::XmlAttribute newAttribute { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAttribute(get(name), put(newAttribute))); - return newAttribute; -} - -template Windows::Data::Xml::Dom::XmlEntityReference impl_IXmlDocument::CreateEntityReference(hstring_ref name) const -{ - Windows::Data::Xml::Dom::XmlEntityReference newEntityReference { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateEntityReference(get(name), put(newEntityReference))); - return newEntityReference; -} - -template Windows::Data::Xml::Dom::XmlNodeList impl_IXmlDocument::GetElementsByTagName(hstring_ref tagName) const -{ - Windows::Data::Xml::Dom::XmlNodeList elements { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetElementsByTagName(get(tagName), put(elements))); - return elements; -} - -template Windows::Data::Xml::Dom::XmlCDataSection impl_IXmlDocument::CreateCDataSection(hstring_ref data) const -{ - Windows::Data::Xml::Dom::XmlCDataSection newCDataSection { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCDataSection(get(data), put(newCDataSection))); - return newCDataSection; -} - -template hstring impl_IXmlDocument::DocumentUri() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DocumentUri(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::XmlAttribute impl_IXmlDocument::CreateAttributeNS(const Windows::IInspectable & namespaceUri, hstring_ref qualifiedName) const -{ - Windows::Data::Xml::Dom::XmlAttribute newAttribute { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAttributeNS(get(namespaceUri), get(qualifiedName), put(newAttribute))); - return newAttribute; -} - -template Windows::Data::Xml::Dom::XmlElement impl_IXmlDocument::CreateElementNS(const Windows::IInspectable & namespaceUri, hstring_ref qualifiedName) const -{ - Windows::Data::Xml::Dom::XmlElement newElement { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateElementNS(get(namespaceUri), get(qualifiedName), put(newElement))); - return newElement; -} - -template Windows::Data::Xml::Dom::XmlElement impl_IXmlDocument::GetElementById(hstring_ref elementId) const -{ - Windows::Data::Xml::Dom::XmlElement element { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetElementById(get(elementId), put(element))); - return element; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlDocument::ImportNode(const Windows::Data::Xml::Dom::IXmlNode & node, bool deep) const -{ - Windows::Data::Xml::Dom::IXmlNode newNode; - check_hresult(static_cast(static_cast(*this))->abi_ImportNode(get(node), deep, put(newNode))); - return newNode; -} - -template uint32_t impl_IXmlNamedNodeMap::Length() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNamedNodeMap::Item(uint32_t index) const -{ - Windows::Data::Xml::Dom::IXmlNode node; - check_hresult(static_cast(static_cast(*this))->abi_Item(index, put(node))); - return node; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNamedNodeMap::GetNamedItem(hstring_ref name) const -{ - Windows::Data::Xml::Dom::IXmlNode node; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedItem(get(name), put(node))); - return node; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNamedNodeMap::SetNamedItem(const Windows::Data::Xml::Dom::IXmlNode & node) const -{ - Windows::Data::Xml::Dom::IXmlNode previousNode; - check_hresult(static_cast(static_cast(*this))->abi_SetNamedItem(get(node), put(previousNode))); - return previousNode; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNamedNodeMap::RemoveNamedItem(hstring_ref name) const -{ - Windows::Data::Xml::Dom::IXmlNode previousNode; - check_hresult(static_cast(static_cast(*this))->abi_RemoveNamedItem(get(name), put(previousNode))); - return previousNode; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNamedNodeMap::GetNamedItemNS(const Windows::IInspectable & namespaceUri, hstring_ref name) const -{ - Windows::Data::Xml::Dom::IXmlNode node; - check_hresult(static_cast(static_cast(*this))->abi_GetNamedItemNS(get(namespaceUri), get(name), put(node))); - return node; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNamedNodeMap::RemoveNamedItemNS(const Windows::IInspectable & namespaceUri, hstring_ref name) const -{ - Windows::Data::Xml::Dom::IXmlNode previousNode; - check_hresult(static_cast(static_cast(*this))->abi_RemoveNamedItemNS(get(namespaceUri), get(name), put(previousNode))); - return previousNode; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNamedNodeMap::SetNamedItemNS(const Windows::Data::Xml::Dom::IXmlNode & node) const -{ - Windows::Data::Xml::Dom::IXmlNode previousNode; - check_hresult(static_cast(static_cast(*this))->abi_SetNamedItemNS(get(node), put(previousNode))); - return previousNode; -} - -template uint32_t impl_IXmlNodeList::Length() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template Windows::Data::Xml::Dom::IXmlNode impl_IXmlNodeList::Item(uint32_t index) const -{ - Windows::Data::Xml::Dom::IXmlNode node; - check_hresult(static_cast(static_cast(*this))->abi_Item(index, put(node))); - return node; -} - -template uint32_t impl_IXmlLoadSettings::MaxElementDepth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxElementDepth(&value)); - return value; -} - -template void impl_IXmlLoadSettings::MaxElementDepth(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxElementDepth(value)); -} - -template bool impl_IXmlLoadSettings::ProhibitDtd() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ProhibitDtd(&value)); - return value; -} - -template void impl_IXmlLoadSettings::ProhibitDtd(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProhibitDtd(value)); -} - -template bool impl_IXmlLoadSettings::ResolveExternals() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ResolveExternals(&value)); - return value; -} - -template void impl_IXmlLoadSettings::ResolveExternals(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ResolveExternals(value)); -} - -template bool impl_IXmlLoadSettings::ValidateOnParse() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ValidateOnParse(&value)); - return value; -} - -template void impl_IXmlLoadSettings::ValidateOnParse(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ValidateOnParse(value)); -} - -template bool impl_IXmlLoadSettings::ElementContentWhiteSpace() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ElementContentWhiteSpace(&value)); - return value; -} - -template void impl_IXmlLoadSettings::ElementContentWhiteSpace(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ElementContentWhiteSpace(value)); -} - -template void impl_IXmlDocumentIO::LoadXml(hstring_ref xml) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LoadXml(get(xml))); -} - -template void impl_IXmlDocumentIO::LoadXml(hstring_ref xml, const Windows::Data::Xml::Dom::XmlLoadSettings & loadSettings) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LoadXmlWithSettings(get(xml), get(loadSettings))); -} - -template Windows::Foundation::IAsyncAction impl_IXmlDocumentIO::SaveToFileAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SaveToFileAsync(get(file), put(asyncInfo))); - return asyncInfo; -} - -template void impl_IXmlDocumentIO2::LoadXmlFromBuffer(const Windows::Storage::Streams::IBuffer & buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LoadXmlFromBuffer(get(buffer))); -} - -template void impl_IXmlDocumentIO2::LoadXmlFromBuffer(const Windows::Storage::Streams::IBuffer & buffer, const Windows::Data::Xml::Dom::XmlLoadSettings & loadSettings) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LoadXmlFromBufferWithSettings(get(buffer), get(loadSettings))); -} - -template Windows::Foundation::IAsyncOperation impl_IXmlDocumentStatics::LoadFromUriAsync(const Windows::Foundation::Uri & uri) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_LoadFromUriAsync(get(uri), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IXmlDocumentStatics::LoadFromUriAsync(const Windows::Foundation::Uri & uri, const Windows::Data::Xml::Dom::XmlLoadSettings & loadSettings) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_LoadFromUriWithSettingsAsync(get(uri), get(loadSettings), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IXmlDocumentStatics::LoadFromFileAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_LoadFromFileAsync(get(file), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IXmlDocumentStatics::LoadFromFileAsync(const Windows::Storage::IStorageFile & file, const Windows::Data::Xml::Dom::XmlLoadSettings & loadSettings) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_LoadFromFileWithSettingsAsync(get(file), get(loadSettings), put(asyncInfo))); - return asyncInfo; -} - -inline XmlDocument::XmlDocument() : - XmlDocument(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation XmlDocument::LoadFromUriAsync(const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().LoadFromUriAsync(uri); -} - -inline Windows::Foundation::IAsyncOperation XmlDocument::LoadFromUriAsync(const Windows::Foundation::Uri & uri, const Windows::Data::Xml::Dom::XmlLoadSettings & loadSettings) -{ - return get_activation_factory().LoadFromUriAsync(uri, loadSettings); -} - -inline Windows::Foundation::IAsyncOperation XmlDocument::LoadFromFileAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().LoadFromFileAsync(file); -} - -inline Windows::Foundation::IAsyncOperation XmlDocument::LoadFromFileAsync(const Windows::Storage::IStorageFile & file, const Windows::Data::Xml::Dom::XmlLoadSettings & loadSettings) -{ - return get_activation_factory().LoadFromFileAsync(file, loadSettings); -} - -inline XmlLoadSettings::XmlLoadSettings() : - XmlLoadSettings(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Data.Xml.Xsl.h b/10.0.14393.0/winrt/Windows.Data.Xml.Xsl.h deleted file mode 100644 index 979f54001..000000000 --- a/10.0.14393.0/winrt/Windows.Data.Xml.Xsl.h +++ /dev/null @@ -1,98 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Data.Xml.Dom.3.h" -#include "internal/Windows.Data.Xml.Xsl.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TransformToString(abi_arg_in inputNode, abi_arg_out output) noexcept override - { - try - { - *output = detach(this->shim().TransformToString(*reinterpret_cast(&inputNode))); - return S_OK; - } - catch (...) - { - *output = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TransformToDocument(abi_arg_in inputNode, abi_arg_out output) noexcept override - { - try - { - *output = detach(this->shim().TransformToDocument(*reinterpret_cast(&inputNode))); - return S_OK; - } - catch (...) - { - *output = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in document, abi_arg_out xsltProcessor) noexcept override - { - try - { - *xsltProcessor = detach(this->shim().CreateInstance(*reinterpret_cast(&document))); - return S_OK; - } - catch (...) - { - *xsltProcessor = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Data::Xml::Xsl { - -template hstring impl_IXsltProcessor::TransformToString(const Windows::Data::Xml::Dom::IXmlNode & inputNode) const -{ - hstring output; - check_hresult(static_cast(static_cast(*this))->abi_TransformToString(get(inputNode), put(output))); - return output; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_IXsltProcessor2::TransformToDocument(const Windows::Data::Xml::Dom::IXmlNode & inputNode) const -{ - Windows::Data::Xml::Dom::XmlDocument output { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TransformToDocument(get(inputNode), put(output))); - return output; -} - -template Windows::Data::Xml::Xsl::XsltProcessor impl_IXsltProcessorFactory::CreateInstance(const Windows::Data::Xml::Dom::XmlDocument & document) const -{ - Windows::Data::Xml::Xsl::XsltProcessor xsltProcessor { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(document), put(xsltProcessor))); - return xsltProcessor; -} - -inline XsltProcessor::XsltProcessor(const Windows::Data::Xml::Dom::XmlDocument & document) : - XsltProcessor(get_activation_factory().CreateInstance(document)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Adc.Provider.h b/10.0.14393.0/winrt/Windows.Devices.Adc.Provider.h deleted file mode 100644 index 2c9b97298..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Adc.Provider.h +++ /dev/null @@ -1,243 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Adc.Provider.3.h" -#include "Windows.Devices.Adc.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChannelCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChannelCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResolutionInBits(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ResolutionInBits()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinValue(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxValue(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChannelMode(Windows::Devices::Adc::Provider::ProviderAdcChannelMode * value) noexcept override - { - try - { - *value = detach(this->shim().ChannelMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChannelMode(Windows::Devices::Adc::Provider::ProviderAdcChannelMode value) noexcept override - { - try - { - this->shim().ChannelMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsChannelModeSupported(Windows::Devices::Adc::Provider::ProviderAdcChannelMode channelMode, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsChannelModeSupported(channelMode)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcquireChannel(int32_t channel) noexcept override - { - try - { - this->shim().AcquireChannel(channel); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReleaseChannel(int32_t channel) noexcept override - { - try - { - this->shim().ReleaseChannel(channel); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadValue(int32_t channelNumber, int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().ReadValue(channelNumber)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetControllers(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetControllers()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Adc::Provider { - -template int32_t impl_IAdcControllerProvider::ChannelCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChannelCount(&value)); - return value; -} - -template int32_t impl_IAdcControllerProvider::ResolutionInBits() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ResolutionInBits(&value)); - return value; -} - -template int32_t impl_IAdcControllerProvider::MinValue() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinValue(&value)); - return value; -} - -template int32_t impl_IAdcControllerProvider::MaxValue() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxValue(&value)); - return value; -} - -template Windows::Devices::Adc::Provider::ProviderAdcChannelMode impl_IAdcControllerProvider::ChannelMode() const -{ - Windows::Devices::Adc::Provider::ProviderAdcChannelMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ChannelMode(&value)); - return value; -} - -template void impl_IAdcControllerProvider::ChannelMode(Windows::Devices::Adc::Provider::ProviderAdcChannelMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChannelMode(value)); -} - -template bool impl_IAdcControllerProvider::IsChannelModeSupported(Windows::Devices::Adc::Provider::ProviderAdcChannelMode channelMode) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsChannelModeSupported(channelMode, &result)); - return result; -} - -template void impl_IAdcControllerProvider::AcquireChannel(int32_t channel) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcquireChannel(channel)); -} - -template void impl_IAdcControllerProvider::ReleaseChannel(int32_t channel) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReleaseChannel(channel)); -} - -template int32_t impl_IAdcControllerProvider::ReadValue(int32_t channelNumber) const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadValue(channelNumber, &result)); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_IAdcProvider::GetControllers() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetControllers(put(result))); - return result; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Adc.h b/10.0.14393.0/winrt/Windows.Devices.Adc.h deleted file mode 100644 index 6ed338451..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Adc.h +++ /dev/null @@ -1,310 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Devices.Adc.Provider.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Adc.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Controller(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Controller()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadValue(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().ReadValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadRatio(double * result) noexcept override - { - try - { - *result = detach(this->shim().ReadRatio()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChannelCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChannelCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResolutionInBits(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ResolutionInBits()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinValue(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxValue(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChannelMode(Windows::Devices::Adc::AdcChannelMode * value) noexcept override - { - try - { - *value = detach(this->shim().ChannelMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChannelMode(Windows::Devices::Adc::AdcChannelMode value) noexcept override - { - try - { - this->shim().ChannelMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsChannelModeSupported(Windows::Devices::Adc::AdcChannelMode channelMode, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsChannelModeSupported(channelMode)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenChannel(int32_t channelNumber, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().OpenChannel(channelNumber)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetControllersAsync(abi_arg_in provider, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetControllersAsync(*reinterpret_cast(&provider))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Adc { - -template int32_t impl_IAdcController::ChannelCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChannelCount(&value)); - return value; -} - -template int32_t impl_IAdcController::ResolutionInBits() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ResolutionInBits(&value)); - return value; -} - -template int32_t impl_IAdcController::MinValue() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinValue(&value)); - return value; -} - -template int32_t impl_IAdcController::MaxValue() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxValue(&value)); - return value; -} - -template Windows::Devices::Adc::AdcChannelMode impl_IAdcController::ChannelMode() const -{ - Windows::Devices::Adc::AdcChannelMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ChannelMode(&value)); - return value; -} - -template void impl_IAdcController::ChannelMode(Windows::Devices::Adc::AdcChannelMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChannelMode(value)); -} - -template bool impl_IAdcController::IsChannelModeSupported(Windows::Devices::Adc::AdcChannelMode channelMode) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsChannelModeSupported(channelMode, &result)); - return result; -} - -template Windows::Devices::Adc::AdcChannel impl_IAdcController::OpenChannel(int32_t channelNumber) const -{ - Windows::Devices::Adc::AdcChannel result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenChannel(channelNumber, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IAdcControllerStatics::GetControllersAsync(const Windows::Devices::Adc::Provider::IAdcProvider & provider) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetControllersAsync(get(provider), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAdcControllerStatics2::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(operation))); - return operation; -} - -template Windows::Devices::Adc::AdcController impl_IAdcChannel::Controller() const -{ - Windows::Devices::Adc::AdcController value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Controller(put(value))); - return value; -} - -template int32_t impl_IAdcChannel::ReadValue() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadValue(&result)); - return result; -} - -template double impl_IAdcChannel::ReadRatio() const -{ - double result {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadRatio(&result)); - return result; -} - -inline Windows::Foundation::IAsyncOperation> AdcController::GetControllersAsync(const Windows::Devices::Adc::Provider::IAdcProvider & provider) -{ - return get_activation_factory().GetControllersAsync(provider); -} - -inline Windows::Foundation::IAsyncOperation AdcController::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.AllJoyn.h b/10.0.14393.0/winrt/Windows.Devices.AllJoyn.h deleted file mode 100644 index 599e491e7..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.AllJoyn.h +++ /dev/null @@ -1,3626 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Globalization.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Security.Cryptography.Certificates.3.h" -#include "internal/Windows.Security.Credentials.3.h" -#include "internal/Windows.Networking.Sockets.3.h" -#include "internal/Windows.Devices.AllJoyn.3.h" -#include "Windows.Devices.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsEnabled(bool value) noexcept override - { - try - { - this->shim().IsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultAppName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultAppName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultAppName(abi_arg_in value) noexcept override - { - try - { - this->shim().DefaultAppName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppNames(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AppNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateOfManufacture(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DateOfManufacture()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DateOfManufacture(abi_arg_in> value) noexcept override - { - try - { - this->shim().DateOfManufacture(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().DefaultDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Descriptions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Descriptions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultManufacturer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultManufacturer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultManufacturer(abi_arg_in value) noexcept override - { - try - { - this->shim().DefaultManufacturer(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Manufacturers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Manufacturers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModelNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ModelNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ModelNumber(abi_arg_in value) noexcept override - { - try - { - this->shim().ModelNumber(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SoftwareVersion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SoftwareVersion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SoftwareVersion(abi_arg_in value) noexcept override - { - try - { - this->shim().SoftwareVersion(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportUrl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SupportUrl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SupportUrl(abi_arg_in value) noexcept override - { - try - { - this->shim().SupportUrl(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AppId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppId(GUID value) noexcept override - { - try - { - this->shim().AppId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AJSoftwareVersion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AJSoftwareVersion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AppId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateOfManufacture(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DateOfManufacture()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HardwareVersion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HardwareVersion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModelNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ModelNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SoftwareVersion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SoftwareVersion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedLanguages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedLanguages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportUrl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SupportUrl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Manufacturer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Manufacturer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDataBySessionPortAsync(abi_arg_in uniqueName, abi_arg_in busAttachment, uint16_t sessionPort, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDataBySessionPortAsync(*reinterpret_cast(&uniqueName), *reinterpret_cast(&busAttachment), sessionPort)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDataBySessionPortWithLanguageAsync(abi_arg_in uniqueName, abi_arg_in busAttachment, uint16_t sessionPort, abi_arg_in language, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDataBySessionPortAsync(*reinterpret_cast(&uniqueName), *reinterpret_cast(&busAttachment), sessionPort, *reinterpret_cast(&language))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Accept() noexcept override - { - try - { - this->shim().Accept(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UniqueName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UniqueName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionPort(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().SessionPort()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrafficType(Windows::Devices::AllJoyn::AllJoynTrafficType * value) noexcept override - { - try - { - *value = detach(this->shim().TrafficType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SamePhysicalNode(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SamePhysicalNode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SameNetwork(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SameNetwork()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Accept() noexcept override - { - try - { - this->shim().Accept(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in uniqueName, uint16_t sessionPort, Windows::Devices::AllJoyn::AllJoynTrafficType trafficType, uint8_t proximity, abi_arg_in acceptSessionJoiner, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&uniqueName), sessionPort, trafficType, proximity, *reinterpret_cast(&acceptSessionJoiner))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AuthenticationMechanism(Windows::Devices::AllJoyn::AllJoynAuthenticationMechanism * value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationMechanism()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeerUniqueName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PeerUniqueName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Succeeded(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Succeeded()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AboutData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AboutData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionSpecification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionSpecification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(Windows::Devices::AllJoyn::AllJoynBusAttachmentState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UniqueName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UniqueName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PingAsync(abi_arg_in uniqueName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PingAsync(*reinterpret_cast(&uniqueName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Connect() noexcept override - { - try - { - this->shim().Connect(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Disconnect() noexcept override - { - try - { - this->shim().Disconnect(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StateChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StateChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StateChanged(event_token token) noexcept override - { - try - { - this->shim().StateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationMechanisms(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationMechanisms()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CredentialsRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CredentialsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CredentialsRequested(event_token token) noexcept override - { - try - { - this->shim().CredentialsRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CredentialsVerificationRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CredentialsVerificationRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CredentialsVerificationRequested(event_token token) noexcept override - { - try - { - this->shim().CredentialsVerificationRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AuthenticationComplete(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AuthenticationComplete(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AuthenticationComplete(event_token token) noexcept override - { - try - { - this->shim().AuthenticationComplete(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAboutDataAsync(abi_arg_in serviceInfo, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAboutDataAsync(*reinterpret_cast(&serviceInfo))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAboutDataWithLanguageAsync(abi_arg_in serviceInfo, abi_arg_in language, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAboutDataAsync(*reinterpret_cast(&serviceInfo), *reinterpret_cast(&language))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AcceptSessionJoinerRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AcceptSessionJoinerRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AcceptSessionJoinerRequested(event_token token) noexcept override - { - try - { - this->shim().AcceptSessionJoinerRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SessionJoined(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SessionJoined(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SessionJoined(event_token token) noexcept override - { - try - { - this->shim().SessionJoined(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in connectionSpecification, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&connectionSpecification))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_State(Windows::Devices::AllJoyn::AllJoynBusAttachmentState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out defaultBusAttachment) noexcept override - { - try - { - *defaultBusAttachment = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *defaultBusAttachment = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetWatcher(abi_arg_in> requiredInterfaces, abi_arg_out deviceWatcher) noexcept override - { - try - { - *deviceWatcher = detach(this->shim().GetWatcher(*reinterpret_cast *>(&requiredInterfaces))); - return S_OK; - } - catch (...) - { - *deviceWatcher = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddProducer(abi_arg_in producer) noexcept override - { - try - { - this->shim().AddProducer(*reinterpret_cast(&producer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BusAttachment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BusAttachment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Session(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Session()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in objectPath, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&objectPath))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithBusAttachment(abi_arg_in objectPath, abi_arg_in busAttachment, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithBusAttachment(*reinterpret_cast(&objectPath), *reinterpret_cast(&busAttachment))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(int32_t status, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(status)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AuthenticationMechanism(Windows::Devices::AllJoyn::AllJoynAuthenticationMechanism * value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationMechanism()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Certificate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Certificate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Certificate(abi_arg_in value) noexcept override - { - try - { - this->shim().Certificate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PasswordCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PasswordCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PasswordCredential(abi_arg_in value) noexcept override - { - try - { - this->shim().PasswordCredential(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Timeout(abi_arg_in value) noexcept override - { - try - { - this->shim().Timeout(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AttemptCount(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().AttemptCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Credentials(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Credentials()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeerUniqueName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PeerUniqueName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequestedUserName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RequestedUserName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AuthenticationMechanism(Windows::Devices::AllJoyn::AllJoynAuthenticationMechanism * value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationMechanism()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeerUniqueName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PeerUniqueName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeerCertificate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PeerCertificate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeerCertificateErrorSeverity(Windows::Networking::Sockets::SocketSslErrorSeverity * value) noexcept override - { - try - { - *value = detach(this->shim().PeerCertificateErrorSeverity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeerCertificateErrors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PeerCertificateErrors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeerIntermediateCertificates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PeerIntermediateCertificates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Accept() noexcept override - { - try - { - this->shim().Accept(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SenderUniqueName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SenderUniqueName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in senderUniqueName, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&senderUniqueName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetBusObject(abi_arg_in busObject) noexcept override - { - try - { - this->shim().SetBusObject(*reinterpret_cast(&busObject)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(int32_t status, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(status)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UniqueName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UniqueName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ObjectPath(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ObjectPath()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionPort(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().SessionPort()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in uniqueName, abi_arg_in objectPath, uint16_t sessionPort, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&uniqueName), *reinterpret_cast(&objectPath), sessionPort)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UniqueName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UniqueName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in uniqueName, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&uniqueName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveMemberAsync(abi_arg_in uniqueName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RemoveMemberAsync(*reinterpret_cast(&uniqueName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MemberAdded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MemberAdded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MemberAdded(event_token token) noexcept override - { - try - { - this->shim().MemberAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MemberRemoved(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MemberRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MemberRemoved(event_token token) noexcept override - { - try - { - this->shim().MemberRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Lost(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Lost(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Lost(event_token token) noexcept override - { - try - { - this->shim().Lost(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Session(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Session()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in session, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&session))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reason(Windows::Devices::AllJoyn::AllJoynSessionLostReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::Devices::AllJoyn::AllJoynSessionLostReason reason, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(reason)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UniqueName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UniqueName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in uniqueName, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&uniqueName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UniqueName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UniqueName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in uniqueName, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&uniqueName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetFromServiceInfoAsync(abi_arg_in serviceInfo, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFromServiceInfoAsync(*reinterpret_cast(&serviceInfo))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFromServiceInfoAndBusAttachmentAsync(abi_arg_in serviceInfo, abi_arg_in busAttachment, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFromServiceInfoAsync(*reinterpret_cast(&serviceInfo), *reinterpret_cast(&busAttachment))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Ok(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ok()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Fail(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Fail()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OperationTimedOut(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OperationTimedOut()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherEndClosed(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OtherEndClosed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionRefused(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionRefused()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationFailed(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationFailed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationRejectedByUser(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationRejectedByUser()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SslConnectFailed(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SslConnectFailed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SslIdentityVerificationFailed(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SslIdentityVerificationFailed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InsufficientSecurity(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InsufficientSecurity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InvalidArgument1(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InvalidArgument1()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InvalidArgument2(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InvalidArgument2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InvalidArgument3(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InvalidArgument3()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InvalidArgument4(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InvalidArgument4()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InvalidArgument5(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InvalidArgument5()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InvalidArgument6(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InvalidArgument6()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InvalidArgument7(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InvalidArgument7()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InvalidArgument8(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InvalidArgument8()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(int32_t status, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(status)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::AllJoyn { - -template int32_t impl_IAllJoynStatusStatics::Ok() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ok(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::Fail() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Fail(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::OperationTimedOut() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OperationTimedOut(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::OtherEndClosed() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OtherEndClosed(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::ConnectionRefused() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ConnectionRefused(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::AuthenticationFailed() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationFailed(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::AuthenticationRejectedByUser() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationRejectedByUser(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::SslConnectFailed() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SslConnectFailed(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::SslIdentityVerificationFailed() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SslIdentityVerificationFailed(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::InsufficientSecurity() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InsufficientSecurity(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::InvalidArgument1() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InvalidArgument1(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::InvalidArgument2() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InvalidArgument2(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::InvalidArgument3() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InvalidArgument3(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::InvalidArgument4() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InvalidArgument4(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::InvalidArgument5() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InvalidArgument5(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::InvalidArgument6() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InvalidArgument6(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::InvalidArgument7() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InvalidArgument7(&value)); - return value; -} - -template int32_t impl_IAllJoynStatusStatics::InvalidArgument8() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InvalidArgument8(&value)); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynAboutData impl_IAllJoynBusAttachment::AboutData() const -{ - Windows::Devices::AllJoyn::AllJoynAboutData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AboutData(put(value))); - return value; -} - -template hstring impl_IAllJoynBusAttachment::ConnectionSpecification() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ConnectionSpecification(put(value))); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynBusAttachmentState impl_IAllJoynBusAttachment::State() const -{ - Windows::Devices::AllJoyn::AllJoynBusAttachmentState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template hstring impl_IAllJoynBusAttachment::UniqueName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UniqueName(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAllJoynBusAttachment::PingAsync(hstring_ref uniqueName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PingAsync(get(uniqueName), put(operation))); - return operation; -} - -template void impl_IAllJoynBusAttachment::Connect() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Connect()); -} - -template void impl_IAllJoynBusAttachment::Disconnect() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Disconnect()); -} - -template event_token impl_IAllJoynBusAttachment::StateChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StateChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAllJoynBusAttachment::StateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::AllJoyn::IAllJoynBusAttachment::remove_StateChanged, StateChanged(handler)); -} - -template void impl_IAllJoynBusAttachment::StateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StateChanged(token)); -} - -template Windows::Foundation::Collections::IVector impl_IAllJoynBusAttachment::AuthenticationMechanisms() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationMechanisms(put(value))); - return value; -} - -template event_token impl_IAllJoynBusAttachment::CredentialsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CredentialsRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IAllJoynBusAttachment::CredentialsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::AllJoyn::IAllJoynBusAttachment::remove_CredentialsRequested, CredentialsRequested(handler)); -} - -template void impl_IAllJoynBusAttachment::CredentialsRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CredentialsRequested(token)); -} - -template event_token impl_IAllJoynBusAttachment::CredentialsVerificationRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CredentialsVerificationRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IAllJoynBusAttachment::CredentialsVerificationRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::AllJoyn::IAllJoynBusAttachment::remove_CredentialsVerificationRequested, CredentialsVerificationRequested(handler)); -} - -template void impl_IAllJoynBusAttachment::CredentialsVerificationRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CredentialsVerificationRequested(token)); -} - -template event_token impl_IAllJoynBusAttachment::AuthenticationComplete(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AuthenticationComplete(get(handler), &token)); - return token; -} - -template event_revoker impl_IAllJoynBusAttachment::AuthenticationComplete(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::AllJoyn::IAllJoynBusAttachment::remove_AuthenticationComplete, AuthenticationComplete(handler)); -} - -template void impl_IAllJoynBusAttachment::AuthenticationComplete(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AuthenticationComplete(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IAllJoynBusAttachment2::GetAboutDataAsync(const Windows::Devices::AllJoyn::AllJoynServiceInfo & serviceInfo) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAboutDataAsync(get(serviceInfo), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAllJoynBusAttachment2::GetAboutDataAsync(const Windows::Devices::AllJoyn::AllJoynServiceInfo & serviceInfo, const Windows::Globalization::Language & language) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAboutDataWithLanguageAsync(get(serviceInfo), get(language), put(operation))); - return operation; -} - -template event_token impl_IAllJoynBusAttachment2::AcceptSessionJoinerRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AcceptSessionJoinerRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IAllJoynBusAttachment2::AcceptSessionJoinerRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::AllJoyn::IAllJoynBusAttachment2::remove_AcceptSessionJoinerRequested, AcceptSessionJoinerRequested(handler)); -} - -template void impl_IAllJoynBusAttachment2::AcceptSessionJoinerRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AcceptSessionJoinerRequested(token)); -} - -template event_token impl_IAllJoynBusAttachment2::SessionJoined(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SessionJoined(get(handler), &token)); - return token; -} - -template event_revoker impl_IAllJoynBusAttachment2::SessionJoined(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::AllJoyn::IAllJoynBusAttachment2::remove_SessionJoined, SessionJoined(handler)); -} - -template void impl_IAllJoynBusAttachment2::SessionJoined(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SessionJoined(token)); -} - -template Windows::Devices::AllJoyn::AllJoynBusAttachment impl_IAllJoynBusAttachmentStatics::GetDefault() const -{ - Windows::Devices::AllJoyn::AllJoynBusAttachment defaultBusAttachment { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(defaultBusAttachment))); - return defaultBusAttachment; -} - -template Windows::Devices::Enumeration::DeviceWatcher impl_IAllJoynBusAttachmentStatics::GetWatcher(const Windows::Foundation::Collections::IIterable & requiredInterfaces) const -{ - Windows::Devices::Enumeration::DeviceWatcher deviceWatcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetWatcher(get(requiredInterfaces), put(deviceWatcher))); - return deviceWatcher; -} - -template Windows::Devices::AllJoyn::AllJoynBusAttachmentState impl_IAllJoynBusAttachmentStateChangedEventArgs::State() const -{ - Windows::Devices::AllJoyn::AllJoynBusAttachmentState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template int32_t impl_IAllJoynBusAttachmentStateChangedEventArgs::Status() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynAuthenticationMechanism impl_IAllJoynCredentials::AuthenticationMechanism() const -{ - Windows::Devices::AllJoyn::AllJoynAuthenticationMechanism value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationMechanism(&value)); - return value; -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_IAllJoynCredentials::Certificate() const -{ - Windows::Security::Cryptography::Certificates::Certificate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Certificate(put(value))); - return value; -} - -template void impl_IAllJoynCredentials::Certificate(const Windows::Security::Cryptography::Certificates::Certificate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Certificate(get(value))); -} - -template Windows::Security::Credentials::PasswordCredential impl_IAllJoynCredentials::PasswordCredential() const -{ - Windows::Security::Credentials::PasswordCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PasswordCredential(put(value))); - return value; -} - -template void impl_IAllJoynCredentials::PasswordCredential(const Windows::Security::Credentials::PasswordCredential & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PasswordCredential(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IAllJoynCredentials::Timeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Timeout(put(value))); - return value; -} - -template void impl_IAllJoynCredentials::Timeout(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Timeout(get(value))); -} - -template uint16_t impl_IAllJoynCredentialsRequestedEventArgs::AttemptCount() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AttemptCount(&value)); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynCredentials impl_IAllJoynCredentialsRequestedEventArgs::Credentials() const -{ - Windows::Devices::AllJoyn::AllJoynCredentials value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Credentials(put(value))); - return value; -} - -template hstring impl_IAllJoynCredentialsRequestedEventArgs::PeerUniqueName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PeerUniqueName(put(value))); - return value; -} - -template hstring impl_IAllJoynCredentialsRequestedEventArgs::RequestedUserName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RequestedUserName(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IAllJoynCredentialsRequestedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -template Windows::Devices::AllJoyn::AllJoynAuthenticationMechanism impl_IAllJoynCredentialsVerificationRequestedEventArgs::AuthenticationMechanism() const -{ - Windows::Devices::AllJoyn::AllJoynAuthenticationMechanism value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationMechanism(&value)); - return value; -} - -template hstring impl_IAllJoynCredentialsVerificationRequestedEventArgs::PeerUniqueName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PeerUniqueName(put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_IAllJoynCredentialsVerificationRequestedEventArgs::PeerCertificate() const -{ - Windows::Security::Cryptography::Certificates::Certificate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PeerCertificate(put(value))); - return value; -} - -template Windows::Networking::Sockets::SocketSslErrorSeverity impl_IAllJoynCredentialsVerificationRequestedEventArgs::PeerCertificateErrorSeverity() const -{ - Windows::Networking::Sockets::SocketSslErrorSeverity value {}; - check_hresult(static_cast(static_cast(*this))->get_PeerCertificateErrorSeverity(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAllJoynCredentialsVerificationRequestedEventArgs::PeerCertificateErrors() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_PeerCertificateErrors(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAllJoynCredentialsVerificationRequestedEventArgs::PeerIntermediateCertificates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_PeerIntermediateCertificates(put(value))); - return value; -} - -template void impl_IAllJoynCredentialsVerificationRequestedEventArgs::Accept() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Accept()); -} - -template Windows::Foundation::Deferral impl_IAllJoynCredentialsVerificationRequestedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -template Windows::Devices::AllJoyn::AllJoynAuthenticationMechanism impl_IAllJoynAuthenticationCompleteEventArgs::AuthenticationMechanism() const -{ - Windows::Devices::AllJoyn::AllJoynAuthenticationMechanism value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationMechanism(&value)); - return value; -} - -template hstring impl_IAllJoynAuthenticationCompleteEventArgs::PeerUniqueName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PeerUniqueName(put(value))); - return value; -} - -template bool impl_IAllJoynAuthenticationCompleteEventArgs::Succeeded() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Succeeded(&value)); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynBusAttachment impl_IAllJoynBusAttachmentFactory::Create(hstring_ref connectionSpecification) const -{ - Windows::Devices::AllJoyn::AllJoynBusAttachment result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(connectionSpecification), put(result))); - return result; -} - -template int32_t impl_IAllJoynSession::Id() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template int32_t impl_IAllJoynSession::Status() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAllJoynSession::RemoveMemberAsync(hstring_ref uniqueName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RemoveMemberAsync(get(uniqueName), put(operation))); - return operation; -} - -template event_token impl_IAllJoynSession::MemberAdded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MemberAdded(get(handler), &token)); - return token; -} - -template event_revoker impl_IAllJoynSession::MemberAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::AllJoyn::IAllJoynSession::remove_MemberAdded, MemberAdded(handler)); -} - -template void impl_IAllJoynSession::MemberAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MemberAdded(token)); -} - -template event_token impl_IAllJoynSession::MemberRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MemberRemoved(get(handler), &token)); - return token; -} - -template event_revoker impl_IAllJoynSession::MemberRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::AllJoyn::IAllJoynSession::remove_MemberRemoved, MemberRemoved(handler)); -} - -template void impl_IAllJoynSession::MemberRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MemberRemoved(token)); -} - -template event_token impl_IAllJoynSession::Lost(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Lost(get(handler), &token)); - return token; -} - -template event_revoker impl_IAllJoynSession::Lost(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::AllJoyn::IAllJoynSession::remove_Lost, Lost(handler)); -} - -template void impl_IAllJoynSession::Lost(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Lost(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IAllJoynSessionStatics::GetFromServiceInfoAsync(const Windows::Devices::AllJoyn::AllJoynServiceInfo & serviceInfo) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFromServiceInfoAsync(get(serviceInfo), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAllJoynSessionStatics::GetFromServiceInfoAsync(const Windows::Devices::AllJoyn::AllJoynServiceInfo & serviceInfo, const Windows::Devices::AllJoyn::AllJoynBusAttachment & busAttachment) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFromServiceInfoAndBusAttachmentAsync(get(serviceInfo), get(busAttachment), put(operation))); - return operation; -} - -template void impl_IAllJoynProducer::SetBusObject(const Windows::Devices::AllJoyn::AllJoynBusObject & busObject) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBusObject(get(busObject))); -} - -template void impl_IAllJoynBusObject::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IAllJoynBusObject::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template void impl_IAllJoynBusObject::AddProducer(const Windows::Devices::AllJoyn::IAllJoynProducer & producer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddProducer(get(producer))); -} - -template Windows::Devices::AllJoyn::AllJoynBusAttachment impl_IAllJoynBusObject::BusAttachment() const -{ - Windows::Devices::AllJoyn::AllJoynBusAttachment value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BusAttachment(put(value))); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynSession impl_IAllJoynBusObject::Session() const -{ - Windows::Devices::AllJoyn::AllJoynSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Session(put(value))); - return value; -} - -template event_token impl_IAllJoynBusObject::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IAllJoynBusObject::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::AllJoyn::IAllJoynBusObject::remove_Stopped, Stopped(handler)); -} - -template void impl_IAllJoynBusObject::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template Windows::Devices::AllJoyn::AllJoynBusObject impl_IAllJoynBusObjectFactory::Create(hstring_ref objectPath) const -{ - Windows::Devices::AllJoyn::AllJoynBusObject result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(objectPath), put(result))); - return result; -} - -template Windows::Devices::AllJoyn::AllJoynBusObject impl_IAllJoynBusObjectFactory::CreateWithBusAttachment(hstring_ref objectPath, const Windows::Devices::AllJoyn::AllJoynBusAttachment & busAttachment) const -{ - Windows::Devices::AllJoyn::AllJoynBusObject result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithBusAttachment(get(objectPath), get(busAttachment), put(result))); - return result; -} - -template hstring impl_IAllJoynServiceInfo::UniqueName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UniqueName(put(value))); - return value; -} - -template hstring impl_IAllJoynServiceInfo::ObjectPath() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ObjectPath(put(value))); - return value; -} - -template uint16_t impl_IAllJoynServiceInfo::SessionPort() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SessionPort(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAllJoynServiceInfoStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(operation))); - return operation; -} - -template Windows::Devices::AllJoyn::AllJoynServiceInfo impl_IAllJoynServiceInfoFactory::Create(hstring_ref uniqueName, hstring_ref objectPath, uint16_t sessionPort) const -{ - Windows::Devices::AllJoyn::AllJoynServiceInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(uniqueName), get(objectPath), sessionPort, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAllJoynAboutDataViewStatics::GetDataBySessionPortAsync(hstring_ref uniqueName, const Windows::Devices::AllJoyn::AllJoynBusAttachment & busAttachment, uint16_t sessionPort) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDataBySessionPortAsync(get(uniqueName), get(busAttachment), sessionPort, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAllJoynAboutDataViewStatics::GetDataBySessionPortAsync(hstring_ref uniqueName, const Windows::Devices::AllJoyn::AllJoynBusAttachment & busAttachment, uint16_t sessionPort, const Windows::Globalization::Language & language) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDataBySessionPortWithLanguageAsync(get(uniqueName), get(busAttachment), sessionPort, get(language), put(operation))); - return operation; -} - -template int32_t impl_IAllJoynAboutDataView::Status() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IAllJoynAboutDataView::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template hstring impl_IAllJoynAboutDataView::AJSoftwareVersion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AJSoftwareVersion(put(value))); - return value; -} - -template GUID impl_IAllJoynAboutDataView::AppId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AppId(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IAllJoynAboutDataView::DateOfManufacture() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DateOfManufacture(put(value))); - return value; -} - -template Windows::Globalization::Language impl_IAllJoynAboutDataView::DefaultLanguage() const -{ - Windows::Globalization::Language value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DefaultLanguage(put(value))); - return value; -} - -template hstring impl_IAllJoynAboutDataView::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template hstring impl_IAllJoynAboutDataView::HardwareVersion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HardwareVersion(put(value))); - return value; -} - -template hstring impl_IAllJoynAboutDataView::ModelNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ModelNumber(put(value))); - return value; -} - -template hstring impl_IAllJoynAboutDataView::SoftwareVersion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SoftwareVersion(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAllJoynAboutDataView::SupportedLanguages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedLanguages(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IAllJoynAboutDataView::SupportUrl() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SupportUrl(put(value))); - return value; -} - -template hstring impl_IAllJoynAboutDataView::AppName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppName(put(value))); - return value; -} - -template hstring impl_IAllJoynAboutDataView::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template hstring impl_IAllJoynAboutDataView::DeviceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceName(put(value))); - return value; -} - -template hstring impl_IAllJoynAboutDataView::Manufacturer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Manufacturer(put(value))); - return value; -} - -template bool impl_IAllJoynAboutData::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_IAllJoynAboutData::IsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsEnabled(value)); -} - -template hstring impl_IAllJoynAboutData::DefaultAppName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DefaultAppName(put(value))); - return value; -} - -template void impl_IAllJoynAboutData::DefaultAppName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultAppName(get(value))); -} - -template Windows::Foundation::Collections::IMap impl_IAllJoynAboutData::AppNames() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_AppNames(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAllJoynAboutData::DateOfManufacture() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DateOfManufacture(put(value))); - return value; -} - -template void impl_IAllJoynAboutData::DateOfManufacture(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DateOfManufacture(get(value))); -} - -template hstring impl_IAllJoynAboutData::DefaultDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DefaultDescription(put(value))); - return value; -} - -template void impl_IAllJoynAboutData::DefaultDescription(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultDescription(get(value))); -} - -template Windows::Foundation::Collections::IMap impl_IAllJoynAboutData::Descriptions() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_Descriptions(put(value))); - return value; -} - -template hstring impl_IAllJoynAboutData::DefaultManufacturer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DefaultManufacturer(put(value))); - return value; -} - -template void impl_IAllJoynAboutData::DefaultManufacturer(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultManufacturer(get(value))); -} - -template Windows::Foundation::Collections::IMap impl_IAllJoynAboutData::Manufacturers() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_Manufacturers(put(value))); - return value; -} - -template hstring impl_IAllJoynAboutData::ModelNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ModelNumber(put(value))); - return value; -} - -template void impl_IAllJoynAboutData::ModelNumber(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ModelNumber(get(value))); -} - -template hstring impl_IAllJoynAboutData::SoftwareVersion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SoftwareVersion(put(value))); - return value; -} - -template void impl_IAllJoynAboutData::SoftwareVersion(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SoftwareVersion(get(value))); -} - -template Windows::Foundation::Uri impl_IAllJoynAboutData::SupportUrl() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SupportUrl(put(value))); - return value; -} - -template void impl_IAllJoynAboutData::SupportUrl(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SupportUrl(get(value))); -} - -template GUID impl_IAllJoynAboutData::AppId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AppId(&value)); - return value; -} - -template void impl_IAllJoynAboutData::AppId(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppId(value)); -} - -template hstring impl_IAllJoynAcceptSessionJoinerEventArgs::UniqueName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UniqueName(put(value))); - return value; -} - -template uint16_t impl_IAllJoynAcceptSessionJoinerEventArgs::SessionPort() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SessionPort(&value)); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynTrafficType impl_IAllJoynAcceptSessionJoinerEventArgs::TrafficType() const -{ - Windows::Devices::AllJoyn::AllJoynTrafficType value {}; - check_hresult(static_cast(static_cast(*this))->get_TrafficType(&value)); - return value; -} - -template bool impl_IAllJoynAcceptSessionJoinerEventArgs::SamePhysicalNode() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SamePhysicalNode(&value)); - return value; -} - -template bool impl_IAllJoynAcceptSessionJoinerEventArgs::SameNetwork() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SameNetwork(&value)); - return value; -} - -template void impl_IAllJoynAcceptSessionJoinerEventArgs::Accept() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Accept()); -} - -template void impl_IAllJoynAcceptSessionJoiner::Accept() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Accept()); -} - -template Windows::Devices::AllJoyn::AllJoynAcceptSessionJoinerEventArgs impl_IAllJoynAcceptSessionJoinerEventArgsFactory::Create(hstring_ref uniqueName, uint16_t sessionPort, Windows::Devices::AllJoyn::AllJoynTrafficType trafficType, uint8_t proximity, const Windows::Devices::AllJoyn::IAllJoynAcceptSessionJoiner & acceptSessionJoiner) const -{ - Windows::Devices::AllJoyn::AllJoynAcceptSessionJoinerEventArgs result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(uniqueName), sessionPort, trafficType, proximity, get(acceptSessionJoiner), put(result))); - return result; -} - -template hstring impl_IAllJoynSessionMemberAddedEventArgs::UniqueName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UniqueName(put(value))); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynSessionMemberAddedEventArgs impl_IAllJoynSessionMemberAddedEventArgsFactory::Create(hstring_ref uniqueName) const -{ - Windows::Devices::AllJoyn::AllJoynSessionMemberAddedEventArgs result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(uniqueName), put(result))); - return result; -} - -template hstring impl_IAllJoynSessionMemberRemovedEventArgs::UniqueName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UniqueName(put(value))); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynSessionMemberRemovedEventArgs impl_IAllJoynSessionMemberRemovedEventArgsFactory::Create(hstring_ref uniqueName) const -{ - Windows::Devices::AllJoyn::AllJoynSessionMemberRemovedEventArgs result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(uniqueName), put(result))); - return result; -} - -template Windows::Devices::AllJoyn::AllJoynSession impl_IAllJoynSessionJoinedEventArgs::Session() const -{ - Windows::Devices::AllJoyn::AllJoynSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Session(put(value))); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynSessionJoinedEventArgs impl_IAllJoynSessionJoinedEventArgsFactory::Create(const Windows::Devices::AllJoyn::AllJoynSession & session) const -{ - Windows::Devices::AllJoyn::AllJoynSessionJoinedEventArgs result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(session), put(result))); - return result; -} - -template Windows::Devices::AllJoyn::AllJoynSessionLostReason impl_IAllJoynSessionLostEventArgs::Reason() const -{ - Windows::Devices::AllJoyn::AllJoynSessionLostReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynSessionLostEventArgs impl_IAllJoynSessionLostEventArgsFactory::Create(Windows::Devices::AllJoyn::AllJoynSessionLostReason reason) const -{ - Windows::Devices::AllJoyn::AllJoynSessionLostEventArgs result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(reason, put(result))); - return result; -} - -template int32_t impl_IAllJoynProducerStoppedEventArgs::Status() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynProducerStoppedEventArgs impl_IAllJoynProducerStoppedEventArgsFactory::Create(int32_t status) const -{ - Windows::Devices::AllJoyn::AllJoynProducerStoppedEventArgs result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(status, put(result))); - return result; -} - -template int32_t impl_IAllJoynBusObjectStoppedEventArgs::Status() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynBusObjectStoppedEventArgs impl_IAllJoynBusObjectStoppedEventArgsFactory::Create(int32_t status) const -{ - Windows::Devices::AllJoyn::AllJoynBusObjectStoppedEventArgs result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(status, put(result))); - return result; -} - -template int32_t impl_IAllJoynWatcherStoppedEventArgs::Status() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynWatcherStoppedEventArgs impl_IAllJoynWatcherStoppedEventArgsFactory::Create(int32_t status) const -{ - Windows::Devices::AllJoyn::AllJoynWatcherStoppedEventArgs result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(status, put(result))); - return result; -} - -template hstring impl_IAllJoynServiceInfoRemovedEventArgs::UniqueName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UniqueName(put(value))); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynServiceInfoRemovedEventArgs impl_IAllJoynServiceInfoRemovedEventArgsFactory::Create(hstring_ref uniqueName) const -{ - Windows::Devices::AllJoyn::AllJoynServiceInfoRemovedEventArgs result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(uniqueName), put(result))); - return result; -} - -template hstring impl_IAllJoynMessageInfo::SenderUniqueName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SenderUniqueName(put(value))); - return value; -} - -template Windows::Devices::AllJoyn::AllJoynMessageInfo impl_IAllJoynMessageInfoFactory::Create(hstring_ref senderUniqueName) const -{ - Windows::Devices::AllJoyn::AllJoynMessageInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(senderUniqueName), put(result))); - return result; -} - -inline Windows::Foundation::IAsyncOperation AllJoynAboutDataView::GetDataBySessionPortAsync(hstring_ref uniqueName, const Windows::Devices::AllJoyn::AllJoynBusAttachment & busAttachment, uint16_t sessionPort) -{ - return get_activation_factory().GetDataBySessionPortAsync(uniqueName, busAttachment, sessionPort); -} - -inline Windows::Foundation::IAsyncOperation AllJoynAboutDataView::GetDataBySessionPortAsync(hstring_ref uniqueName, const Windows::Devices::AllJoyn::AllJoynBusAttachment & busAttachment, uint16_t sessionPort, const Windows::Globalization::Language & language) -{ - return get_activation_factory().GetDataBySessionPortAsync(uniqueName, busAttachment, sessionPort, language); -} - -inline AllJoynAcceptSessionJoinerEventArgs::AllJoynAcceptSessionJoinerEventArgs(hstring_ref uniqueName, uint16_t sessionPort, Windows::Devices::AllJoyn::AllJoynTrafficType trafficType, uint8_t proximity, const Windows::Devices::AllJoyn::IAllJoynAcceptSessionJoiner & acceptSessionJoiner) : - AllJoynAcceptSessionJoinerEventArgs(get_activation_factory().Create(uniqueName, sessionPort, trafficType, proximity, acceptSessionJoiner)) -{} - -inline AllJoynBusAttachment::AllJoynBusAttachment() : - AllJoynBusAttachment(activate_instance()) -{} - -inline AllJoynBusAttachment::AllJoynBusAttachment(hstring_ref connectionSpecification) : - AllJoynBusAttachment(get_activation_factory().Create(connectionSpecification)) -{} - -inline Windows::Devices::AllJoyn::AllJoynBusAttachment AllJoynBusAttachment::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Devices::Enumeration::DeviceWatcher AllJoynBusAttachment::GetWatcher(const Windows::Foundation::Collections::IIterable & requiredInterfaces) -{ - return get_activation_factory().GetWatcher(requiredInterfaces); -} - -inline AllJoynBusObject::AllJoynBusObject() : - AllJoynBusObject(activate_instance()) -{} - -inline AllJoynBusObject::AllJoynBusObject(hstring_ref objectPath) : - AllJoynBusObject(get_activation_factory().Create(objectPath)) -{} - -inline AllJoynBusObject::AllJoynBusObject(hstring_ref objectPath, const Windows::Devices::AllJoyn::AllJoynBusAttachment & busAttachment) : - AllJoynBusObject(get_activation_factory().CreateWithBusAttachment(objectPath, busAttachment)) -{} - -inline AllJoynBusObjectStoppedEventArgs::AllJoynBusObjectStoppedEventArgs(int32_t status) : - AllJoynBusObjectStoppedEventArgs(get_activation_factory().Create(status)) -{} - -inline AllJoynMessageInfo::AllJoynMessageInfo(hstring_ref senderUniqueName) : - AllJoynMessageInfo(get_activation_factory().Create(senderUniqueName)) -{} - -inline AllJoynProducerStoppedEventArgs::AllJoynProducerStoppedEventArgs(int32_t status) : - AllJoynProducerStoppedEventArgs(get_activation_factory().Create(status)) -{} - -inline AllJoynServiceInfo::AllJoynServiceInfo(hstring_ref uniqueName, hstring_ref objectPath, uint16_t sessionPort) : - AllJoynServiceInfo(get_activation_factory().Create(uniqueName, objectPath, sessionPort)) -{} - -inline Windows::Foundation::IAsyncOperation AllJoynServiceInfo::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline AllJoynServiceInfoRemovedEventArgs::AllJoynServiceInfoRemovedEventArgs(hstring_ref uniqueName) : - AllJoynServiceInfoRemovedEventArgs(get_activation_factory().Create(uniqueName)) -{} - -inline Windows::Foundation::IAsyncOperation AllJoynSession::GetFromServiceInfoAsync(const Windows::Devices::AllJoyn::AllJoynServiceInfo & serviceInfo) -{ - return get_activation_factory().GetFromServiceInfoAsync(serviceInfo); -} - -inline Windows::Foundation::IAsyncOperation AllJoynSession::GetFromServiceInfoAsync(const Windows::Devices::AllJoyn::AllJoynServiceInfo & serviceInfo, const Windows::Devices::AllJoyn::AllJoynBusAttachment & busAttachment) -{ - return get_activation_factory().GetFromServiceInfoAsync(serviceInfo, busAttachment); -} - -inline AllJoynSessionJoinedEventArgs::AllJoynSessionJoinedEventArgs(const Windows::Devices::AllJoyn::AllJoynSession & session) : - AllJoynSessionJoinedEventArgs(get_activation_factory().Create(session)) -{} - -inline AllJoynSessionLostEventArgs::AllJoynSessionLostEventArgs(Windows::Devices::AllJoyn::AllJoynSessionLostReason reason) : - AllJoynSessionLostEventArgs(get_activation_factory().Create(reason)) -{} - -inline AllJoynSessionMemberAddedEventArgs::AllJoynSessionMemberAddedEventArgs(hstring_ref uniqueName) : - AllJoynSessionMemberAddedEventArgs(get_activation_factory().Create(uniqueName)) -{} - -inline AllJoynSessionMemberRemovedEventArgs::AllJoynSessionMemberRemovedEventArgs(hstring_ref uniqueName) : - AllJoynSessionMemberRemovedEventArgs(get_activation_factory().Create(uniqueName)) -{} - -inline int32_t AllJoynStatus::Ok() -{ - return get_activation_factory().Ok(); -} - -inline int32_t AllJoynStatus::Fail() -{ - return get_activation_factory().Fail(); -} - -inline int32_t AllJoynStatus::OperationTimedOut() -{ - return get_activation_factory().OperationTimedOut(); -} - -inline int32_t AllJoynStatus::OtherEndClosed() -{ - return get_activation_factory().OtherEndClosed(); -} - -inline int32_t AllJoynStatus::ConnectionRefused() -{ - return get_activation_factory().ConnectionRefused(); -} - -inline int32_t AllJoynStatus::AuthenticationFailed() -{ - return get_activation_factory().AuthenticationFailed(); -} - -inline int32_t AllJoynStatus::AuthenticationRejectedByUser() -{ - return get_activation_factory().AuthenticationRejectedByUser(); -} - -inline int32_t AllJoynStatus::SslConnectFailed() -{ - return get_activation_factory().SslConnectFailed(); -} - -inline int32_t AllJoynStatus::SslIdentityVerificationFailed() -{ - return get_activation_factory().SslIdentityVerificationFailed(); -} - -inline int32_t AllJoynStatus::InsufficientSecurity() -{ - return get_activation_factory().InsufficientSecurity(); -} - -inline int32_t AllJoynStatus::InvalidArgument1() -{ - return get_activation_factory().InvalidArgument1(); -} - -inline int32_t AllJoynStatus::InvalidArgument2() -{ - return get_activation_factory().InvalidArgument2(); -} - -inline int32_t AllJoynStatus::InvalidArgument3() -{ - return get_activation_factory().InvalidArgument3(); -} - -inline int32_t AllJoynStatus::InvalidArgument4() -{ - return get_activation_factory().InvalidArgument4(); -} - -inline int32_t AllJoynStatus::InvalidArgument5() -{ - return get_activation_factory().InvalidArgument5(); -} - -inline int32_t AllJoynStatus::InvalidArgument6() -{ - return get_activation_factory().InvalidArgument6(); -} - -inline int32_t AllJoynStatus::InvalidArgument7() -{ - return get_activation_factory().InvalidArgument7(); -} - -inline int32_t AllJoynStatus::InvalidArgument8() -{ - return get_activation_factory().InvalidArgument8(); -} - -inline AllJoynWatcherStoppedEventArgs::AllJoynWatcherStoppedEventArgs(int32_t status) : - AllJoynWatcherStoppedEventArgs(get_activation_factory().Create(status)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Background.h b/10.0.14393.0/winrt/Windows.Devices.Background.h deleted file mode 100644 index 835984319..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Background.h +++ /dev/null @@ -1,132 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Background.3.h" -#include "Windows.Devices.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Arguments(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Arguments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpectedDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExpectedDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Arguments(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Arguments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Background { - -template hstring impl_IDeviceUseDetails::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template hstring impl_IDeviceUseDetails::Arguments() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Arguments(put(value))); - return value; -} - -template hstring impl_IDeviceServicingDetails::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template hstring impl_IDeviceServicingDetails::Arguments() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Arguments(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IDeviceServicingDetails::ExpectedDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_ExpectedDuration(put(value))); - return value; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Bluetooth.Advertisement.h b/10.0.14393.0/winrt/Windows.Devices.Bluetooth.Advertisement.h deleted file mode 100644 index d7bf66661..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Bluetooth.Advertisement.h +++ /dev/null @@ -1,1921 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Bluetooth.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Devices.Bluetooth.Advertisement.3.h" -#include "Windows.Devices.Bluetooth.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Flags(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Flags()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Flags(abi_arg_in> value) noexcept override - { - try - { - this->shim().Flags(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LocalName(abi_arg_in value) noexcept override - { - try - { - this->shim().LocalName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceUuids(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServiceUuids()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ManufacturerData(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ManufacturerData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataSections(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DataSections()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetManufacturerDataByCompanyId(uint16_t companyId, abi_arg_out> dataList) noexcept override - { - try - { - *dataList = detach(this->shim().GetManufacturerDataByCompanyId(companyId)); - return S_OK; - } - catch (...) - { - *dataList = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSectionsByType(uint8_t type, abi_arg_out> sectionList) noexcept override - { - try - { - *sectionList = detach(this->shim().GetSectionsByType(type)); - return S_OK; - } - catch (...) - { - *sectionList = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DataType(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().DataType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataType(uint8_t value) noexcept override - { - try - { - this->shim().DataType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Offset(int16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Offset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Offset(int16_t value) noexcept override - { - try - { - this->shim().Offset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Data(abi_arg_in value) noexcept override - { - try - { - this->shim().Data(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint8_t dataType, int16_t offset, abi_arg_in data, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(dataType, offset, *reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DataType(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().DataType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataType(uint8_t value) noexcept override - { - try - { - this->shim().DataType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Data(abi_arg_in value) noexcept override - { - try - { - this->shim().Data(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint8_t dataType, abi_arg_in data, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(dataType, *reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Flags(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Flags()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncompleteService16BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().IncompleteService16BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompleteService16BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().CompleteService16BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncompleteService32BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().IncompleteService32BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompleteService32BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().CompleteService32BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncompleteService128BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().IncompleteService128BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompleteService128BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().CompleteService128BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShortenedLocalName(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ShortenedLocalName()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompleteLocalName(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().CompleteLocalName()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TxPowerLevel(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().TxPowerLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SlaveConnectionIntervalRange(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SlaveConnectionIntervalRange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceSolicitation16BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceSolicitation16BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceSolicitation32BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceSolicitation32BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceSolicitation128BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceSolicitation128BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceData16BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceData16BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceData32BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceData32BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceData128BitUuids(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceData128BitUuids()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PublicTargetAddress(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().PublicTargetAddress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RandomTargetAddress(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().RandomTargetAddress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Appearance(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Appearance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdvertisingInterval(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().AdvertisingInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ManufacturerSpecificData(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ManufacturerSpecificData()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Advertisement(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Advertisement()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Advertisement(abi_arg_in value) noexcept override - { - try - { - this->shim().Advertisement(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BytePatterns(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BytePatterns()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisherStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Advertisement(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Advertisement()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StatusChanged(event_token token) noexcept override - { - try - { - this->shim().StatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in advertisement, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&advertisement))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisherStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Error(Windows::Devices::Bluetooth::BluetoothError * value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RawSignalStrengthInDBm(int16_t * value) noexcept override - { - try - { - *value = detach(this->shim().RawSignalStrengthInDBm()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BluetoothAddress(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BluetoothAddress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdvertisementType(Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementType * value) noexcept override - { - try - { - *value = detach(this->shim().AdvertisementType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Advertisement(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Advertisement()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MinSamplingInterval(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinSamplingInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxSamplingInterval(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxSamplingInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinOutOfRangeTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinOutOfRangeTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxOutOfRangeTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxOutOfRangeTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementWatcherStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScanningMode(Windows::Devices::Bluetooth::Advertisement::BluetoothLEScanningMode * value) noexcept override - { - try - { - *value = detach(this->shim().ScanningMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScanningMode(Windows::Devices::Bluetooth::Advertisement::BluetoothLEScanningMode value) noexcept override - { - try - { - this->shim().ScanningMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SignalStrengthFilter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SignalStrengthFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SignalStrengthFilter(abi_arg_in value) noexcept override - { - try - { - this->shim().SignalStrengthFilter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdvertisementFilter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdvertisementFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AdvertisementFilter(abi_arg_in value) noexcept override - { - try - { - this->shim().AdvertisementFilter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Received(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Received(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Received(event_token token) noexcept override - { - try - { - this->shim().Received(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in advertisementFilter, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&advertisementFilter))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Error(Windows::Devices::Bluetooth::BluetoothError * value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CompanyId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().CompanyId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CompanyId(uint16_t value) noexcept override - { - try - { - this->shim().CompanyId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Data(abi_arg_in value) noexcept override - { - try - { - this->shim().Data(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint16_t companyId, abi_arg_in data, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(companyId, *reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Bluetooth::Advertisement { - -template Windows::Foundation::IReference impl_IBluetoothLEAdvertisement::Flags() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Flags(put(value))); - return value; -} - -template void impl_IBluetoothLEAdvertisement::Flags(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Flags(get(value))); -} - -template hstring impl_IBluetoothLEAdvertisement::LocalName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LocalName(put(value))); - return value; -} - -template void impl_IBluetoothLEAdvertisement::LocalName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LocalName(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IBluetoothLEAdvertisement::ServiceUuids() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ServiceUuids(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IBluetoothLEAdvertisement::ManufacturerData() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ManufacturerData(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IBluetoothLEAdvertisement::DataSections() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DataSections(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBluetoothLEAdvertisement::GetManufacturerDataByCompanyId(uint16_t companyId) const -{ - Windows::Foundation::Collections::IVectorView dataList; - check_hresult(static_cast(static_cast(*this))->abi_GetManufacturerDataByCompanyId(companyId, put(dataList))); - return dataList; -} - -template Windows::Foundation::Collections::IVectorView impl_IBluetoothLEAdvertisement::GetSectionsByType(uint8_t type) const -{ - Windows::Foundation::Collections::IVectorView sectionList; - check_hresult(static_cast(static_cast(*this))->abi_GetSectionsByType(type, put(sectionList))); - return sectionList; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement impl_IBluetoothLEAdvertisementFilter::Advertisement() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Advertisement(put(value))); - return value; -} - -template void impl_IBluetoothLEAdvertisementFilter::Advertisement(const Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Advertisement(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IBluetoothLEAdvertisementFilter::BytePatterns() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_BytePatterns(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothError impl_IBluetoothLEAdvertisementWatcherStoppedEventArgs::Error() const -{ - Windows::Devices::Bluetooth::BluetoothError value {}; - check_hresult(static_cast(static_cast(*this))->get_Error(&value)); - return value; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementWatcher impl_IBluetoothLEAdvertisementWatcherFactory::Create(const Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter & advertisementFilter) const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementWatcher value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(advertisementFilter), put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IBluetoothLEAdvertisementWatcher::MinSamplingInterval() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MinSamplingInterval(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IBluetoothLEAdvertisementWatcher::MaxSamplingInterval() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxSamplingInterval(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IBluetoothLEAdvertisementWatcher::MinOutOfRangeTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MinOutOfRangeTimeout(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IBluetoothLEAdvertisementWatcher::MaxOutOfRangeTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxOutOfRangeTimeout(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementWatcherStatus impl_IBluetoothLEAdvertisementWatcher::Status() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementWatcherStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEScanningMode impl_IBluetoothLEAdvertisementWatcher::ScanningMode() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEScanningMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ScanningMode(&value)); - return value; -} - -template void impl_IBluetoothLEAdvertisementWatcher::ScanningMode(Windows::Devices::Bluetooth::Advertisement::BluetoothLEScanningMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScanningMode(value)); -} - -template Windows::Devices::Bluetooth::BluetoothSignalStrengthFilter impl_IBluetoothLEAdvertisementWatcher::SignalStrengthFilter() const -{ - Windows::Devices::Bluetooth::BluetoothSignalStrengthFilter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SignalStrengthFilter(put(value))); - return value; -} - -template void impl_IBluetoothLEAdvertisementWatcher::SignalStrengthFilter(const Windows::Devices::Bluetooth::BluetoothSignalStrengthFilter & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SignalStrengthFilter(get(value))); -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter impl_IBluetoothLEAdvertisementWatcher::AdvertisementFilter() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AdvertisementFilter(put(value))); - return value; -} - -template void impl_IBluetoothLEAdvertisementWatcher::AdvertisementFilter(const Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AdvertisementFilter(get(value))); -} - -template void impl_IBluetoothLEAdvertisementWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IBluetoothLEAdvertisementWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template event_token impl_IBluetoothLEAdvertisementWatcher::Received(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Received(get(handler), &token)); - return token; -} - -template event_revoker impl_IBluetoothLEAdvertisementWatcher::Received(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher::remove_Received, Received(handler)); -} - -template void impl_IBluetoothLEAdvertisementWatcher::Received(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Received(token)); -} - -template event_token impl_IBluetoothLEAdvertisementWatcher::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IBluetoothLEAdvertisementWatcher::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher::remove_Stopped, Stopped(handler)); -} - -template void impl_IBluetoothLEAdvertisementWatcher::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template int16_t impl_IBluetoothLEAdvertisementReceivedEventArgs::RawSignalStrengthInDBm() const -{ - int16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RawSignalStrengthInDBm(&value)); - return value; -} - -template uint64_t impl_IBluetoothLEAdvertisementReceivedEventArgs::BluetoothAddress() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BluetoothAddress(&value)); - return value; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementType impl_IBluetoothLEAdvertisementReceivedEventArgs::AdvertisementType() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementType value {}; - check_hresult(static_cast(static_cast(*this))->get_AdvertisementType(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IBluetoothLEAdvertisementReceivedEventArgs::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement impl_IBluetoothLEAdvertisementReceivedEventArgs::Advertisement() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Advertisement(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementDataSection impl_IBluetoothLEAdvertisementDataSectionFactory::Create(uint8_t dataType, const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementDataSection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(dataType, get(data), put(value))); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataSection::DataType() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DataType(&value)); - return value; -} - -template void impl_IBluetoothLEAdvertisementDataSection::DataType(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataType(value)); -} - -template Windows::Storage::Streams::IBuffer impl_IBluetoothLEAdvertisementDataSection::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template void impl_IBluetoothLEAdvertisementDataSection::Data(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Data(get(value))); -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEManufacturerData impl_IBluetoothLEManufacturerDataFactory::Create(uint16_t companyId, const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEManufacturerData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(companyId, get(data), put(value))); - return value; -} - -template uint16_t impl_IBluetoothLEManufacturerData::CompanyId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CompanyId(&value)); - return value; -} - -template void impl_IBluetoothLEManufacturerData::CompanyId(uint16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CompanyId(value)); -} - -template Windows::Storage::Streams::IBuffer impl_IBluetoothLEManufacturerData::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template void impl_IBluetoothLEManufacturerData::Data(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Data(get(value))); -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementBytePattern impl_IBluetoothLEAdvertisementBytePatternFactory::Create(uint8_t dataType, int16_t offset, const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementBytePattern value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(dataType, offset, get(data), put(value))); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementBytePattern::DataType() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DataType(&value)); - return value; -} - -template void impl_IBluetoothLEAdvertisementBytePattern::DataType(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataType(value)); -} - -template int16_t impl_IBluetoothLEAdvertisementBytePattern::Offset() const -{ - int16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Offset(&value)); - return value; -} - -template void impl_IBluetoothLEAdvertisementBytePattern::Offset(int16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Offset(value)); -} - -template Windows::Storage::Streams::IBuffer impl_IBluetoothLEAdvertisementBytePattern::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template void impl_IBluetoothLEAdvertisementBytePattern::Data(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Data(get(value))); -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::Flags() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Flags(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::IncompleteService16BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IncompleteService16BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::CompleteService16BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CompleteService16BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::IncompleteService32BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IncompleteService32BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::CompleteService32BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CompleteService32BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::IncompleteService128BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IncompleteService128BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::CompleteService128BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CompleteService128BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::ShortenedLocalName() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ShortenedLocalName(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::CompleteLocalName() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CompleteLocalName(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::TxPowerLevel() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TxPowerLevel(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::SlaveConnectionIntervalRange() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SlaveConnectionIntervalRange(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::ServiceSolicitation16BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceSolicitation16BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::ServiceSolicitation32BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceSolicitation32BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::ServiceSolicitation128BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceSolicitation128BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::ServiceData16BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceData16BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::ServiceData32BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceData32BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::ServiceData128BitUuids() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceData128BitUuids(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::PublicTargetAddress() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PublicTargetAddress(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::RandomTargetAddress() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RandomTargetAddress(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::Appearance() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Appearance(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::AdvertisingInterval() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AdvertisingInterval(&value)); - return value; -} - -template uint8_t impl_IBluetoothLEAdvertisementDataTypesStatics::ManufacturerSpecificData() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ManufacturerSpecificData(&value)); - return value; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisherStatus impl_IBluetoothLEAdvertisementPublisherStatusChangedEventArgs::Status() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisherStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothError impl_IBluetoothLEAdvertisementPublisherStatusChangedEventArgs::Error() const -{ - Windows::Devices::Bluetooth::BluetoothError value {}; - check_hresult(static_cast(static_cast(*this))->get_Error(&value)); - return value; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisher impl_IBluetoothLEAdvertisementPublisherFactory::Create(const Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement & advertisement) const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisher value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(advertisement), put(value))); - return value; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisherStatus impl_IBluetoothLEAdvertisementPublisher::Status() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisherStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement impl_IBluetoothLEAdvertisementPublisher::Advertisement() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Advertisement(put(value))); - return value; -} - -template void impl_IBluetoothLEAdvertisementPublisher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IBluetoothLEAdvertisementPublisher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template event_token impl_IBluetoothLEAdvertisementPublisher::StatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IBluetoothLEAdvertisementPublisher::StatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher::remove_StatusChanged, StatusChanged(handler)); -} - -template void impl_IBluetoothLEAdvertisementPublisher::StatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StatusChanged(token)); -} - -inline BluetoothLEAdvertisement::BluetoothLEAdvertisement() : - BluetoothLEAdvertisement(activate_instance()) -{} - -inline BluetoothLEAdvertisementBytePattern::BluetoothLEAdvertisementBytePattern() : - BluetoothLEAdvertisementBytePattern(activate_instance()) -{} - -inline BluetoothLEAdvertisementBytePattern::BluetoothLEAdvertisementBytePattern(uint8_t dataType, int16_t offset, const Windows::Storage::Streams::IBuffer & data) : - BluetoothLEAdvertisementBytePattern(get_activation_factory().Create(dataType, offset, data)) -{} - -inline BluetoothLEAdvertisementDataSection::BluetoothLEAdvertisementDataSection() : - BluetoothLEAdvertisementDataSection(activate_instance()) -{} - -inline BluetoothLEAdvertisementDataSection::BluetoothLEAdvertisementDataSection(uint8_t dataType, const Windows::Storage::Streams::IBuffer & data) : - BluetoothLEAdvertisementDataSection(get_activation_factory().Create(dataType, data)) -{} - -inline uint8_t BluetoothLEAdvertisementDataTypes::Flags() -{ - return get_activation_factory().Flags(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::IncompleteService16BitUuids() -{ - return get_activation_factory().IncompleteService16BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::CompleteService16BitUuids() -{ - return get_activation_factory().CompleteService16BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::IncompleteService32BitUuids() -{ - return get_activation_factory().IncompleteService32BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::CompleteService32BitUuids() -{ - return get_activation_factory().CompleteService32BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::IncompleteService128BitUuids() -{ - return get_activation_factory().IncompleteService128BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::CompleteService128BitUuids() -{ - return get_activation_factory().CompleteService128BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::ShortenedLocalName() -{ - return get_activation_factory().ShortenedLocalName(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::CompleteLocalName() -{ - return get_activation_factory().CompleteLocalName(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::TxPowerLevel() -{ - return get_activation_factory().TxPowerLevel(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::SlaveConnectionIntervalRange() -{ - return get_activation_factory().SlaveConnectionIntervalRange(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::ServiceSolicitation16BitUuids() -{ - return get_activation_factory().ServiceSolicitation16BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::ServiceSolicitation32BitUuids() -{ - return get_activation_factory().ServiceSolicitation32BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::ServiceSolicitation128BitUuids() -{ - return get_activation_factory().ServiceSolicitation128BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::ServiceData16BitUuids() -{ - return get_activation_factory().ServiceData16BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::ServiceData32BitUuids() -{ - return get_activation_factory().ServiceData32BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::ServiceData128BitUuids() -{ - return get_activation_factory().ServiceData128BitUuids(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::PublicTargetAddress() -{ - return get_activation_factory().PublicTargetAddress(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::RandomTargetAddress() -{ - return get_activation_factory().RandomTargetAddress(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::Appearance() -{ - return get_activation_factory().Appearance(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::AdvertisingInterval() -{ - return get_activation_factory().AdvertisingInterval(); -} - -inline uint8_t BluetoothLEAdvertisementDataTypes::ManufacturerSpecificData() -{ - return get_activation_factory().ManufacturerSpecificData(); -} - -inline BluetoothLEAdvertisementFilter::BluetoothLEAdvertisementFilter() : - BluetoothLEAdvertisementFilter(activate_instance()) -{} - -inline BluetoothLEAdvertisementPublisher::BluetoothLEAdvertisementPublisher() : - BluetoothLEAdvertisementPublisher(activate_instance()) -{} - -inline BluetoothLEAdvertisementPublisher::BluetoothLEAdvertisementPublisher(const Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement & advertisement) : - BluetoothLEAdvertisementPublisher(get_activation_factory().Create(advertisement)) -{} - -inline BluetoothLEAdvertisementWatcher::BluetoothLEAdvertisementWatcher() : - BluetoothLEAdvertisementWatcher(activate_instance()) -{} - -inline BluetoothLEAdvertisementWatcher::BluetoothLEAdvertisementWatcher(const Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter & advertisementFilter) : - BluetoothLEAdvertisementWatcher(get_activation_factory().Create(advertisementFilter)) -{} - -inline BluetoothLEManufacturerData::BluetoothLEManufacturerData() : - BluetoothLEManufacturerData(activate_instance()) -{} - -inline BluetoothLEManufacturerData::BluetoothLEManufacturerData(uint16_t companyId, const Windows::Storage::Streams::IBuffer & data) : - BluetoothLEManufacturerData(get_activation_factory().Create(companyId, data)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Bluetooth.Background.h b/10.0.14393.0/winrt/Windows.Devices.Bluetooth.Background.h deleted file mode 100644 index 6e2fc40bb..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Bluetooth.Background.h +++ /dev/null @@ -1,411 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Devices.Bluetooth.Rfcomm.3.h" -#include "internal/Windows.Devices.Bluetooth.3.h" -#include "internal/Windows.Networking.Sockets.3.h" -#include "internal/Windows.Devices.Bluetooth.GenericAttributeProfile.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Bluetooth.Advertisement.3.h" -#include "internal/Windows.Devices.Bluetooth.Background.3.h" -#include "Windows.Devices.Bluetooth.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisherStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Error(Windows::Devices::Bluetooth::BluetoothError * value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Error(Windows::Devices::Bluetooth::BluetoothError * value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Advertisements(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Advertisements()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SignalStrengthFilter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SignalStrengthFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Characteristic(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Characteristic()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Socket(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Socket()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Incoming(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Incoming()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteDevice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteDevice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SdpRecord(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SdpRecord()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SdpRecord(abi_arg_in value) noexcept override - { - try - { - this->shim().SdpRecord(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalServiceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalServiceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LocalServiceId(abi_arg_in value) noexcept override - { - try - { - this->shim().LocalServiceId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceCapabilities(Windows::Devices::Bluetooth::BluetoothServiceCapabilities * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceCapabilities()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ServiceCapabilities(Windows::Devices::Bluetooth::BluetoothServiceCapabilities value) noexcept override - { - try - { - this->shim().ServiceCapabilities(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoteServiceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteServiceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteServiceId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteServiceId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Bluetooth::Background { - -template Windows::Storage::Streams::IBuffer impl_IRfcommInboundConnectionInformation::SdpRecord() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_SdpRecord(put(value))); - return value; -} - -template void impl_IRfcommInboundConnectionInformation::SdpRecord(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SdpRecord(get(value))); -} - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommInboundConnectionInformation::LocalServiceId() const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalServiceId(put(value))); - return value; -} - -template void impl_IRfcommInboundConnectionInformation::LocalServiceId(const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LocalServiceId(get(value))); -} - -template Windows::Devices::Bluetooth::BluetoothServiceCapabilities impl_IRfcommInboundConnectionInformation::ServiceCapabilities() const -{ - Windows::Devices::Bluetooth::BluetoothServiceCapabilities value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceCapabilities(&value)); - return value; -} - -template void impl_IRfcommInboundConnectionInformation::ServiceCapabilities(Windows::Devices::Bluetooth::BluetoothServiceCapabilities value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ServiceCapabilities(value)); -} - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommOutboundConnectionInformation::RemoteServiceId() const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoteServiceId(put(value))); - return value; -} - -template void impl_IRfcommOutboundConnectionInformation::RemoteServiceId(const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteServiceId(get(value))); -} - -template Windows::Networking::Sockets::StreamSocket impl_IRfcommConnectionTriggerDetails::Socket() const -{ - Windows::Networking::Sockets::StreamSocket value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Socket(put(value))); - return value; -} - -template bool impl_IRfcommConnectionTriggerDetails::Incoming() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Incoming(&value)); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothDevice impl_IRfcommConnectionTriggerDetails::RemoteDevice() const -{ - Windows::Devices::Bluetooth::BluetoothDevice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoteDevice(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic impl_IGattCharacteristicNotificationTriggerDetails::Characteristic() const -{ - Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Characteristic(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IGattCharacteristicNotificationTriggerDetails::Value() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothError impl_IBluetoothLEAdvertisementWatcherTriggerDetails::Error() const -{ - Windows::Devices::Bluetooth::BluetoothError value {}; - check_hresult(static_cast(static_cast(*this))->get_Error(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBluetoothLEAdvertisementWatcherTriggerDetails::Advertisements() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Advertisements(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothSignalStrengthFilter impl_IBluetoothLEAdvertisementWatcherTriggerDetails::SignalStrengthFilter() const -{ - Windows::Devices::Bluetooth::BluetoothSignalStrengthFilter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SignalStrengthFilter(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisherStatus impl_IBluetoothLEAdvertisementPublisherTriggerDetails::Status() const -{ - Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisherStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothError impl_IBluetoothLEAdvertisementPublisherTriggerDetails::Error() const -{ - Windows::Devices::Bluetooth::BluetoothError value {}; - check_hresult(static_cast(static_cast(*this))->get_Error(&value)); - return value; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Bluetooth.GenericAttributeProfile.h b/10.0.14393.0/winrt/Windows.Devices.Bluetooth.GenericAttributeProfile.h deleted file mode 100644 index 8aefe7e2a..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Bluetooth.GenericAttributeProfile.h +++ /dev/null @@ -1,4647 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Bluetooth.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Devices.Bluetooth.GenericAttributeProfile.3.h" -#include "Windows.Devices.Bluetooth.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDescriptors(GUID descriptorUuid, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetDescriptors(descriptorUuid)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacteristicProperties(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicProperties * value) noexcept override - { - try - { - *value = detach(this->shim().CharacteristicProperties()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel * value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel value) noexcept override - { - try - { - this->shim().ProtectionLevel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Uuid(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Uuid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttributeHandle(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().AttributeHandle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PresentationFormats(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PresentationFormats()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadValueAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ReadValueAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadValueWithCacheModeAsync(Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ReadValueAsync(cacheMode)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteValueAsync(abi_arg_in value, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().WriteValueAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteValueWithOptionAsync(abi_arg_in value, Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteOption writeOption, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().WriteValueAsync(*reinterpret_cast(&value), writeOption)); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadClientCharacteristicConfigurationDescriptorAsync(abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().ReadClientCharacteristicConfigurationDescriptorAsync()); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteClientCharacteristicConfigurationDescriptorAsync(Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientCharacteristicConfigurationDescriptorValue clientCharacteristicConfigurationDescriptorValue, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().WriteClientCharacteristicConfigurationDescriptorAsync(clientCharacteristicConfigurationDescriptorValue)); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ValueChanged(abi_arg_in> valueChangedHandler, event_token * valueChangedEventCookie) noexcept override - { - try - { - *valueChangedEventCookie = detach(this->shim().ValueChanged(*reinterpret_cast *>(&valueChangedHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ValueChanged(event_token valueChangedEventCookie) noexcept override - { - try - { - this->shim().ValueChanged(valueChangedEventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Service(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Service()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAllDescriptors(abi_arg_out> descriptors) noexcept override - { - try - { - *descriptors = detach(this->shim().GetAllDescriptors()); - return S_OK; - } - catch (...) - { - *descriptors = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ConvertShortIdToUuid(uint16_t shortId, GUID * characteristicUuid) noexcept override - { - try - { - *characteristicUuid = detach(this->shim().ConvertShortIdToUuid(shortId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BatteryLevel(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().BatteryLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BloodPressureFeature(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().BloodPressureFeature()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BloodPressureMeasurement(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().BloodPressureMeasurement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BodySensorLocation(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().BodySensorLocation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CscFeature(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CscFeature()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CscMeasurement(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CscMeasurement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GlucoseFeature(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GlucoseFeature()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GlucoseMeasurement(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GlucoseMeasurement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GlucoseMeasurementContext(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GlucoseMeasurementContext()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeartRateControlPoint(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().HeartRateControlPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeartRateMeasurement(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().HeartRateMeasurement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IntermediateCuffPressure(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().IntermediateCuffPressure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IntermediateTemperature(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().IntermediateTemperature()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MeasurementInterval(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().MeasurementInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecordAccessControlPoint(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().RecordAccessControlPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RscFeature(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().RscFeature()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RscMeasurement(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().RscMeasurement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SCControlPoint(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().SCControlPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SensorLocation(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().SensorLocation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemperatureMeasurement(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TemperatureMeasurement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemperatureType(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TemperatureType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlertCategoryId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AlertCategoryId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlertCategoryIdBitMask(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AlertCategoryIdBitMask()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlertLevel(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AlertLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlertNotificationControlPoint(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AlertNotificationControlPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlertStatus(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AlertStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GapAppearance(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GapAppearance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BootKeyboardInputReport(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().BootKeyboardInputReport()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BootKeyboardOutputReport(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().BootKeyboardOutputReport()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BootMouseInputReport(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().BootMouseInputReport()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentTime(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CyclingPowerControlPoint(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CyclingPowerControlPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CyclingPowerFeature(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CyclingPowerFeature()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CyclingPowerMeasurement(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CyclingPowerMeasurement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CyclingPowerVector(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CyclingPowerVector()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateTime(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DateTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayDateTime(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DayDateTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayOfWeek(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DayOfWeek()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GapDeviceName(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GapDeviceName()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DstOffset(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DstOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExactTime256(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ExactTime256()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirmwareRevisionString(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().FirmwareRevisionString()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HardwareRevisionString(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().HardwareRevisionString()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HidControlPoint(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().HidControlPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HidInformation(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().HidInformation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ieee1107320601RegulatoryCertificationDataList(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Ieee1107320601RegulatoryCertificationDataList()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LnControlPoint(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().LnControlPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LnFeature(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().LnFeature()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalTimeInformation(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().LocalTimeInformation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocationAndSpeed(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().LocationAndSpeed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ManufacturerNameString(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ManufacturerNameString()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModelNumberString(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ModelNumberString()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Navigation(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Navigation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewAlert(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().NewAlert()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GapPeripheralPreferredConnectionParameters(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GapPeripheralPreferredConnectionParameters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GapPeripheralPrivacyFlag(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GapPeripheralPrivacyFlag()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PnpId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().PnpId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionQuality(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().PositionQuality()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtocolMode(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ProtocolMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GapReconnectionAddress(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GapReconnectionAddress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReferenceTimeInformation(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ReferenceTimeInformation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Report(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Report()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportMap(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ReportMap()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RingerControlPoint(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().RingerControlPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RingerSetting(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().RingerSetting()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScanIntervalWindow(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ScanIntervalWindow()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScanRefresh(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ScanRefresh()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SerialNumberString(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().SerialNumberString()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GattServiceChanged(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GattServiceChanged()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SoftwareRevisionString(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().SoftwareRevisionString()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedNewAlertCategory(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().SupportedNewAlertCategory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportUnreadAlertCategory(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().SupportUnreadAlertCategory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().SystemId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeAccuracy(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TimeAccuracy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeSource(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TimeSource()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeUpdateControlPoint(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TimeUpdateControlPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeUpdateState(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TimeUpdateState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeWithDst(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TimeWithDst()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeZone(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TimeZone()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TxPowerLevel(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TxPowerLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UnreadAlertStatus(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().UnreadAlertStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel * value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel value) noexcept override - { - try - { - this->shim().ProtectionLevel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Uuid(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Uuid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttributeHandle(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().AttributeHandle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadValueAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ReadValueAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadValueWithCacheModeAsync(Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ReadValueAsync(cacheMode)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteValueAsync(abi_arg_in value, abi_arg_out> action) noexcept override - { - try - { - *action = detach(this->shim().WriteValueAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ConvertShortIdToUuid(uint16_t shortId, GUID * descriptorUuid) noexcept override - { - try - { - *descriptorUuid = detach(this->shim().ConvertShortIdToUuid(shortId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CharacteristicAggregateFormat(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CharacteristicAggregateFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacteristicExtendedProperties(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CharacteristicExtendedProperties()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacteristicPresentationFormat(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CharacteristicPresentationFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacteristicUserDescription(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CharacteristicUserDescription()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClientCharacteristicConfiguration(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ClientCharacteristicConfiguration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerCharacteristicConfiguration(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ServerCharacteristicConfiguration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCharacteristics(GUID characteristicUuid, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetCharacteristics(characteristicUuid)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIncludedServices(GUID serviceUuid, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetIncludedServices(serviceUuid)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Uuid(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Uuid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttributeHandle(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().AttributeHandle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Device(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Device()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ParentServices(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ParentServices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAllCharacteristics(abi_arg_out> characteristics) noexcept override - { - try - { - *characteristics = detach(this->shim().GetAllCharacteristics()); - return S_OK; - } - catch (...) - { - *characteristics = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAllIncludedServices(abi_arg_out> includedServices) noexcept override - { - try - { - *includedServices = detach(this->shim().GetAllIncludedServices()); - return S_OK; - } - catch (...) - { - *includedServices = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> gattDeviceService) noexcept override - { - try - { - *gattDeviceService = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *gattDeviceService = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromUuid(GUID serviceUuid, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelectorFromUuid(serviceUuid)); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromShortId(uint16_t serviceShortId, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelectorFromShortId(serviceShortId)); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertShortIdToUuid(uint16_t shortId, GUID * serviceUuid) noexcept override - { - try - { - *serviceUuid = detach(this->shim().ConvertShortIdToUuid(shortId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FormatType(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().FormatType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Exponent(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Exponent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Unit(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Unit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Namespace(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Namespace()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BluetoothSigAssignedNumbers(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().BluetoothSigAssignedNumbers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Boolean(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Boolean()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bit2(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Bit2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Nibble(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Nibble()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UInt8(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().UInt8()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UInt12(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().UInt12()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UInt16(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().UInt16()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UInt24(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().UInt24()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UInt32(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().UInt32()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UInt48(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().UInt48()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UInt64(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().UInt64()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UInt128(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().UInt128()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SInt8(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SInt8()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SInt12(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SInt12()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SInt16(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SInt16()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SInt24(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SInt24()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SInt32(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SInt32()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SInt48(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SInt48()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SInt64(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SInt64()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SInt128(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SInt128()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Float32(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Float32()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Float64(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Float64()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SFloat(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SFloat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Float(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Float()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DUInt16(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().DUInt16()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Utf8(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Utf8()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Utf16(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Utf16()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Struct(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Struct()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClientCharacteristicConfigurationDescriptor(Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientCharacteristicConfigurationDescriptorValue * value) noexcept override - { - try - { - *value = detach(this->shim().ClientCharacteristicConfigurationDescriptor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_WriteValue(abi_arg_in characteristic, abi_arg_in value) noexcept override - { - try - { - this->shim().WriteValue(*reinterpret_cast(&characteristic), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CommitAsync(abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().CommitAsync()); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Battery(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Battery()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BloodPressure(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().BloodPressure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CyclingSpeedAndCadence(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CyclingSpeedAndCadence()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GenericAccess(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GenericAccess()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GenericAttribute(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GenericAttribute()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Glucose(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Glucose()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HealthThermometer(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().HealthThermometer()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeartRate(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().HeartRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RunningSpeedAndCadence(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().RunningSpeedAndCadence()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlertNotification(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AlertNotification()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentTime(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CyclingPower(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CyclingPower()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceInformation(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HumanInterfaceDevice(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().HumanInterfaceDevice()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImmediateAlert(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ImmediateAlert()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinkLoss(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().LinkLoss()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocationAndNavigation(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().LocationAndNavigation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NextDstChange(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().NextDstChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneAlertStatus(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().PhoneAlertStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReferenceTimeUpdate(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ReferenceTimeUpdate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScanParameters(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ScanParameters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TxPower(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TxPower()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CharacteristicValue(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CharacteristicValue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out timestamp) noexcept override - { - try - { - *timestamp = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Bluetooth::GenericAttributeProfile { - -template Windows::Foundation::IAsyncOperation impl_IGattDeviceServiceStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation gattDeviceService; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(gattDeviceService))); - return gattDeviceService; -} - -template hstring impl_IGattDeviceServiceStatics::GetDeviceSelectorFromUuid(GUID serviceUuid) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromUuid(serviceUuid, put(selector))); - return selector; -} - -template hstring impl_IGattDeviceServiceStatics::GetDeviceSelectorFromShortId(uint16_t serviceShortId) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromShortId(serviceShortId, put(selector))); - return selector; -} - -template GUID impl_IGattDeviceServiceStatics::ConvertShortIdToUuid(uint16_t shortId) const -{ - GUID serviceUuid {}; - check_hresult(static_cast(static_cast(*this))->abi_ConvertShortIdToUuid(shortId, &serviceUuid)); - return serviceUuid; -} - -template GUID impl_IGattCharacteristicStatics::ConvertShortIdToUuid(uint16_t shortId) const -{ - GUID characteristicUuid {}; - check_hresult(static_cast(static_cast(*this))->abi_ConvertShortIdToUuid(shortId, &characteristicUuid)); - return characteristicUuid; -} - -template Windows::Foundation::Collections::IVectorView impl_IGattCharacteristic::GetDescriptors(GUID descriptorUuid) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetDescriptors(descriptorUuid, put(value))); - return value; -} - -template Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicProperties impl_IGattCharacteristic::CharacteristicProperties() const -{ - Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristicProperties value {}; - check_hresult(static_cast(static_cast(*this))->get_CharacteristicProperties(&value)); - return value; -} - -template Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel impl_IGattCharacteristic::ProtectionLevel() const -{ - Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtectionLevel(&value)); - return value; -} - -template void impl_IGattCharacteristic::ProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProtectionLevel(value)); -} - -template hstring impl_IGattCharacteristic::UserDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserDescription(put(value))); - return value; -} - -template GUID impl_IGattCharacteristic::Uuid() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Uuid(&value)); - return value; -} - -template uint16_t impl_IGattCharacteristic::AttributeHandle() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AttributeHandle(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGattCharacteristic::PresentationFormats() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_PresentationFormats(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IGattCharacteristic::ReadValueAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_ReadValueAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IGattCharacteristic::ReadValueAsync(Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_ReadValueWithCacheModeAsync(cacheMode, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IGattCharacteristic::WriteValueAsync(const Windows::Storage::Streams::IBuffer & value) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_WriteValueAsync(get(value), put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IGattCharacteristic::WriteValueAsync(const Windows::Storage::Streams::IBuffer & value, Windows::Devices::Bluetooth::GenericAttributeProfile::GattWriteOption writeOption) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_WriteValueWithOptionAsync(get(value), writeOption, put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IGattCharacteristic::ReadClientCharacteristicConfigurationDescriptorAsync() const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_ReadClientCharacteristicConfigurationDescriptorAsync(put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IGattCharacteristic::WriteClientCharacteristicConfigurationDescriptorAsync(Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientCharacteristicConfigurationDescriptorValue clientCharacteristicConfigurationDescriptorValue) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_WriteClientCharacteristicConfigurationDescriptorAsync(clientCharacteristicConfigurationDescriptorValue, put(asyncOp))); - return asyncOp; -} - -template event_token impl_IGattCharacteristic::ValueChanged(const Windows::Foundation::TypedEventHandler & valueChangedHandler) const -{ - event_token valueChangedEventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ValueChanged(get(valueChangedHandler), &valueChangedEventCookie)); - return valueChangedEventCookie; -} - -template event_revoker impl_IGattCharacteristic::ValueChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & valueChangedHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::IGattCharacteristic::remove_ValueChanged, ValueChanged(valueChangedHandler)); -} - -template void impl_IGattCharacteristic::ValueChanged(event_token valueChangedEventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ValueChanged(valueChangedEventCookie)); -} - -template Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService impl_IGattCharacteristic2::Service() const -{ - Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Service(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGattCharacteristic2::GetAllDescriptors() const -{ - Windows::Foundation::Collections::IVectorView descriptors; - check_hresult(static_cast(static_cast(*this))->abi_GetAllDescriptors(put(descriptors))); - return descriptors; -} - -template GUID impl_IGattDescriptorStatics::ConvertShortIdToUuid(uint16_t shortId) const -{ - GUID descriptorUuid {}; - check_hresult(static_cast(static_cast(*this))->abi_ConvertShortIdToUuid(shortId, &descriptorUuid)); - return descriptorUuid; -} - -template Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel impl_IGattDescriptor::ProtectionLevel() const -{ - Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtectionLevel(&value)); - return value; -} - -template void impl_IGattDescriptor::ProtectionLevel(Windows::Devices::Bluetooth::GenericAttributeProfile::GattProtectionLevel value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProtectionLevel(value)); -} - -template GUID impl_IGattDescriptor::Uuid() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Uuid(&value)); - return value; -} - -template uint16_t impl_IGattDescriptor::AttributeHandle() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AttributeHandle(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IGattDescriptor::ReadValueAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_ReadValueAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IGattDescriptor::ReadValueAsync(Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_ReadValueWithCacheModeAsync(cacheMode, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IGattDescriptor::WriteValueAsync(const Windows::Storage::Streams::IBuffer & value) const -{ - Windows::Foundation::IAsyncOperation action; - check_hresult(static_cast(static_cast(*this))->abi_WriteValueAsync(get(value), put(action))); - return action; -} - -template uint8_t impl_IGattPresentationFormatStatics::BluetoothSigAssignedNumbers() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BluetoothSigAssignedNumbers(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::Boolean() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Boolean(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::Bit2() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Bit2(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::Nibble() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Nibble(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::UInt8() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UInt8(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::UInt12() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UInt12(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::UInt16() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UInt16(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::UInt24() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UInt24(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::UInt32() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UInt32(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::UInt48() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UInt48(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::UInt64() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UInt64(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::UInt128() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UInt128(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::SInt8() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SInt8(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::SInt12() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SInt12(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::SInt16() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SInt16(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::SInt24() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SInt24(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::SInt32() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SInt32(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::SInt48() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SInt48(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::SInt64() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SInt64(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::SInt128() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SInt128(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::Float32() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Float32(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::Float64() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Float64(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::SFloat() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SFloat(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::Float() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Float(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::DUInt16() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DUInt16(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::Utf8() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Utf8(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::Utf16() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Utf16(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormatTypesStatics::Struct() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Struct(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormat::FormatType() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FormatType(&value)); - return value; -} - -template int32_t impl_IGattPresentationFormat::Exponent() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Exponent(&value)); - return value; -} - -template uint16_t impl_IGattPresentationFormat::Unit() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Unit(&value)); - return value; -} - -template uint8_t impl_IGattPresentationFormat::Namespace() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Namespace(&value)); - return value; -} - -template uint16_t impl_IGattPresentationFormat::Description() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Description(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IGattValueChangedEventArgs::CharacteristicValue() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_CharacteristicValue(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IGattValueChangedEventArgs::Timestamp() const -{ - Windows::Foundation::DateTime timestamp {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(timestamp))); - return timestamp; -} - -template GUID impl_IGattServiceUuidsStatics::Battery() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Battery(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics::BloodPressure() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_BloodPressure(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics::CyclingSpeedAndCadence() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CyclingSpeedAndCadence(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics::GenericAccess() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GenericAccess(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics::GenericAttribute() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GenericAttribute(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics::Glucose() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Glucose(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics::HealthThermometer() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_HealthThermometer(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics::HeartRate() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_HeartRate(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics::RunningSpeedAndCadence() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_RunningSpeedAndCadence(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::AlertNotification() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AlertNotification(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::CurrentTime() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentTime(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::CyclingPower() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CyclingPower(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::DeviceInformation() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformation(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::HumanInterfaceDevice() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_HumanInterfaceDevice(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::ImmediateAlert() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ImmediateAlert(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::LinkLoss() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_LinkLoss(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::LocationAndNavigation() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_LocationAndNavigation(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::NextDstChange() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_NextDstChange(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::PhoneAlertStatus() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_PhoneAlertStatus(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::ReferenceTimeUpdate() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ReferenceTimeUpdate(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::ScanParameters() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ScanParameters(&value)); - return value; -} - -template GUID impl_IGattServiceUuidsStatics2::TxPower() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TxPower(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::BatteryLevel() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_BatteryLevel(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::BloodPressureFeature() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_BloodPressureFeature(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::BloodPressureMeasurement() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_BloodPressureMeasurement(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::BodySensorLocation() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_BodySensorLocation(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::CscFeature() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CscFeature(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::CscMeasurement() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CscMeasurement(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::GlucoseFeature() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GlucoseFeature(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::GlucoseMeasurement() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GlucoseMeasurement(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::GlucoseMeasurementContext() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GlucoseMeasurementContext(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::HeartRateControlPoint() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_HeartRateControlPoint(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::HeartRateMeasurement() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_HeartRateMeasurement(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::IntermediateCuffPressure() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_IntermediateCuffPressure(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::IntermediateTemperature() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_IntermediateTemperature(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::MeasurementInterval() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_MeasurementInterval(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::RecordAccessControlPoint() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_RecordAccessControlPoint(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::RscFeature() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_RscFeature(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::RscMeasurement() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_RscMeasurement(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::SCControlPoint() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_SCControlPoint(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::SensorLocation() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_SensorLocation(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::TemperatureMeasurement() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TemperatureMeasurement(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics::TemperatureType() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TemperatureType(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::AlertCategoryId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AlertCategoryId(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::AlertCategoryIdBitMask() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AlertCategoryIdBitMask(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::AlertLevel() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AlertLevel(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::AlertNotificationControlPoint() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AlertNotificationControlPoint(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::AlertStatus() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AlertStatus(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::GapAppearance() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GapAppearance(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::BootKeyboardInputReport() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_BootKeyboardInputReport(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::BootKeyboardOutputReport() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_BootKeyboardOutputReport(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::BootMouseInputReport() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_BootMouseInputReport(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::CurrentTime() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentTime(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::CyclingPowerControlPoint() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CyclingPowerControlPoint(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::CyclingPowerFeature() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CyclingPowerFeature(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::CyclingPowerMeasurement() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CyclingPowerMeasurement(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::CyclingPowerVector() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CyclingPowerVector(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::DateTime() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DateTime(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::DayDateTime() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DayDateTime(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::DayOfWeek() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DayOfWeek(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::GapDeviceName() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GapDeviceName(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::DstOffset() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DstOffset(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::ExactTime256() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ExactTime256(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::FirmwareRevisionString() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_FirmwareRevisionString(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::HardwareRevisionString() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_HardwareRevisionString(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::HidControlPoint() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_HidControlPoint(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::HidInformation() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_HidInformation(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::Ieee1107320601RegulatoryCertificationDataList() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Ieee1107320601RegulatoryCertificationDataList(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::LnControlPoint() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_LnControlPoint(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::LnFeature() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_LnFeature(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::LocalTimeInformation() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_LocalTimeInformation(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::LocationAndSpeed() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_LocationAndSpeed(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::ManufacturerNameString() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ManufacturerNameString(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::ModelNumberString() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ModelNumberString(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::Navigation() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Navigation(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::NewAlert() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_NewAlert(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::GapPeripheralPreferredConnectionParameters() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GapPeripheralPreferredConnectionParameters(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::GapPeripheralPrivacyFlag() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GapPeripheralPrivacyFlag(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::PnpId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_PnpId(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::PositionQuality() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_PositionQuality(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::ProtocolMode() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtocolMode(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::GapReconnectionAddress() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GapReconnectionAddress(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::ReferenceTimeInformation() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ReferenceTimeInformation(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::Report() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Report(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::ReportMap() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportMap(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::RingerControlPoint() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_RingerControlPoint(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::RingerSetting() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_RingerSetting(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::ScanIntervalWindow() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ScanIntervalWindow(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::ScanRefresh() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ScanRefresh(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::SerialNumberString() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_SerialNumberString(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::GattServiceChanged() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GattServiceChanged(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::SoftwareRevisionString() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_SoftwareRevisionString(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::SupportedNewAlertCategory() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportedNewAlertCategory(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::SupportUnreadAlertCategory() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportUnreadAlertCategory(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::SystemId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_SystemId(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::TimeAccuracy() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeAccuracy(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::TimeSource() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeSource(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::TimeUpdateControlPoint() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeUpdateControlPoint(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::TimeUpdateState() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeUpdateState(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::TimeWithDst() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeWithDst(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::TimeZone() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeZone(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::TxPowerLevel() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TxPowerLevel(&value)); - return value; -} - -template GUID impl_IGattCharacteristicUuidsStatics2::UnreadAlertStatus() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_UnreadAlertStatus(&value)); - return value; -} - -template GUID impl_IGattDescriptorUuidsStatics::CharacteristicAggregateFormat() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CharacteristicAggregateFormat(&value)); - return value; -} - -template GUID impl_IGattDescriptorUuidsStatics::CharacteristicExtendedProperties() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CharacteristicExtendedProperties(&value)); - return value; -} - -template GUID impl_IGattDescriptorUuidsStatics::CharacteristicPresentationFormat() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CharacteristicPresentationFormat(&value)); - return value; -} - -template GUID impl_IGattDescriptorUuidsStatics::CharacteristicUserDescription() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CharacteristicUserDescription(&value)); - return value; -} - -template GUID impl_IGattDescriptorUuidsStatics::ClientCharacteristicConfiguration() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ClientCharacteristicConfiguration(&value)); - return value; -} - -template GUID impl_IGattDescriptorUuidsStatics::ServerCharacteristicConfiguration() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ServerCharacteristicConfiguration(&value)); - return value; -} - -template void impl_IGattReliableWriteTransaction::WriteValue(const Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic & characteristic, const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteValue(get(characteristic), get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_IGattReliableWriteTransaction::CommitAsync() const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_CommitAsync(put(asyncOp))); - return asyncOp; -} - -template Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus impl_IGattReadResult::Status() const -{ - Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IGattReadResult::Value() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus impl_IGattReadClientCharacteristicConfigurationDescriptorResult::Status() const -{ - Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientCharacteristicConfigurationDescriptorValue impl_IGattReadClientCharacteristicConfigurationDescriptorResult::ClientCharacteristicConfigurationDescriptor() const -{ - Windows::Devices::Bluetooth::GenericAttributeProfile::GattClientCharacteristicConfigurationDescriptorValue value {}; - check_hresult(static_cast(static_cast(*this))->get_ClientCharacteristicConfigurationDescriptor(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGattDeviceService::GetCharacteristics(GUID characteristicUuid) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetCharacteristics(characteristicUuid, put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGattDeviceService::GetIncludedServices(GUID serviceUuid) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetIncludedServices(serviceUuid, put(value))); - return value; -} - -template hstring impl_IGattDeviceService::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template GUID impl_IGattDeviceService::Uuid() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Uuid(&value)); - return value; -} - -template uint16_t impl_IGattDeviceService::AttributeHandle() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AttributeHandle(&value)); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothLEDevice impl_IGattDeviceService2::Device() const -{ - Windows::Devices::Bluetooth::BluetoothLEDevice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Device(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGattDeviceService2::ParentServices() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ParentServices(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGattDeviceService2::GetAllCharacteristics() const -{ - Windows::Foundation::Collections::IVectorView characteristics; - check_hresult(static_cast(static_cast(*this))->abi_GetAllCharacteristics(put(characteristics))); - return characteristics; -} - -template Windows::Foundation::Collections::IVectorView impl_IGattDeviceService2::GetAllIncludedServices() const -{ - Windows::Foundation::Collections::IVectorView includedServices; - check_hresult(static_cast(static_cast(*this))->abi_GetAllIncludedServices(put(includedServices))); - return includedServices; -} - -inline GUID GattCharacteristic::ConvertShortIdToUuid(uint16_t shortId) -{ - return get_activation_factory().ConvertShortIdToUuid(shortId); -} - -inline GUID GattCharacteristicUuids::BatteryLevel() -{ - return get_activation_factory().BatteryLevel(); -} - -inline GUID GattCharacteristicUuids::BloodPressureFeature() -{ - return get_activation_factory().BloodPressureFeature(); -} - -inline GUID GattCharacteristicUuids::BloodPressureMeasurement() -{ - return get_activation_factory().BloodPressureMeasurement(); -} - -inline GUID GattCharacteristicUuids::BodySensorLocation() -{ - return get_activation_factory().BodySensorLocation(); -} - -inline GUID GattCharacteristicUuids::CscFeature() -{ - return get_activation_factory().CscFeature(); -} - -inline GUID GattCharacteristicUuids::CscMeasurement() -{ - return get_activation_factory().CscMeasurement(); -} - -inline GUID GattCharacteristicUuids::GlucoseFeature() -{ - return get_activation_factory().GlucoseFeature(); -} - -inline GUID GattCharacteristicUuids::GlucoseMeasurement() -{ - return get_activation_factory().GlucoseMeasurement(); -} - -inline GUID GattCharacteristicUuids::GlucoseMeasurementContext() -{ - return get_activation_factory().GlucoseMeasurementContext(); -} - -inline GUID GattCharacteristicUuids::HeartRateControlPoint() -{ - return get_activation_factory().HeartRateControlPoint(); -} - -inline GUID GattCharacteristicUuids::HeartRateMeasurement() -{ - return get_activation_factory().HeartRateMeasurement(); -} - -inline GUID GattCharacteristicUuids::IntermediateCuffPressure() -{ - return get_activation_factory().IntermediateCuffPressure(); -} - -inline GUID GattCharacteristicUuids::IntermediateTemperature() -{ - return get_activation_factory().IntermediateTemperature(); -} - -inline GUID GattCharacteristicUuids::MeasurementInterval() -{ - return get_activation_factory().MeasurementInterval(); -} - -inline GUID GattCharacteristicUuids::RecordAccessControlPoint() -{ - return get_activation_factory().RecordAccessControlPoint(); -} - -inline GUID GattCharacteristicUuids::RscFeature() -{ - return get_activation_factory().RscFeature(); -} - -inline GUID GattCharacteristicUuids::RscMeasurement() -{ - return get_activation_factory().RscMeasurement(); -} - -inline GUID GattCharacteristicUuids::SCControlPoint() -{ - return get_activation_factory().SCControlPoint(); -} - -inline GUID GattCharacteristicUuids::SensorLocation() -{ - return get_activation_factory().SensorLocation(); -} - -inline GUID GattCharacteristicUuids::TemperatureMeasurement() -{ - return get_activation_factory().TemperatureMeasurement(); -} - -inline GUID GattCharacteristicUuids::TemperatureType() -{ - return get_activation_factory().TemperatureType(); -} - -inline GUID GattCharacteristicUuids::AlertCategoryId() -{ - return get_activation_factory().AlertCategoryId(); -} - -inline GUID GattCharacteristicUuids::AlertCategoryIdBitMask() -{ - return get_activation_factory().AlertCategoryIdBitMask(); -} - -inline GUID GattCharacteristicUuids::AlertLevel() -{ - return get_activation_factory().AlertLevel(); -} - -inline GUID GattCharacteristicUuids::AlertNotificationControlPoint() -{ - return get_activation_factory().AlertNotificationControlPoint(); -} - -inline GUID GattCharacteristicUuids::AlertStatus() -{ - return get_activation_factory().AlertStatus(); -} - -inline GUID GattCharacteristicUuids::GapAppearance() -{ - return get_activation_factory().GapAppearance(); -} - -inline GUID GattCharacteristicUuids::BootKeyboardInputReport() -{ - return get_activation_factory().BootKeyboardInputReport(); -} - -inline GUID GattCharacteristicUuids::BootKeyboardOutputReport() -{ - return get_activation_factory().BootKeyboardOutputReport(); -} - -inline GUID GattCharacteristicUuids::BootMouseInputReport() -{ - return get_activation_factory().BootMouseInputReport(); -} - -inline GUID GattCharacteristicUuids::CurrentTime() -{ - return get_activation_factory().CurrentTime(); -} - -inline GUID GattCharacteristicUuids::CyclingPowerControlPoint() -{ - return get_activation_factory().CyclingPowerControlPoint(); -} - -inline GUID GattCharacteristicUuids::CyclingPowerFeature() -{ - return get_activation_factory().CyclingPowerFeature(); -} - -inline GUID GattCharacteristicUuids::CyclingPowerMeasurement() -{ - return get_activation_factory().CyclingPowerMeasurement(); -} - -inline GUID GattCharacteristicUuids::CyclingPowerVector() -{ - return get_activation_factory().CyclingPowerVector(); -} - -inline GUID GattCharacteristicUuids::DateTime() -{ - return get_activation_factory().DateTime(); -} - -inline GUID GattCharacteristicUuids::DayDateTime() -{ - return get_activation_factory().DayDateTime(); -} - -inline GUID GattCharacteristicUuids::DayOfWeek() -{ - return get_activation_factory().DayOfWeek(); -} - -inline GUID GattCharacteristicUuids::GapDeviceName() -{ - return get_activation_factory().GapDeviceName(); -} - -inline GUID GattCharacteristicUuids::DstOffset() -{ - return get_activation_factory().DstOffset(); -} - -inline GUID GattCharacteristicUuids::ExactTime256() -{ - return get_activation_factory().ExactTime256(); -} - -inline GUID GattCharacteristicUuids::FirmwareRevisionString() -{ - return get_activation_factory().FirmwareRevisionString(); -} - -inline GUID GattCharacteristicUuids::HardwareRevisionString() -{ - return get_activation_factory().HardwareRevisionString(); -} - -inline GUID GattCharacteristicUuids::HidControlPoint() -{ - return get_activation_factory().HidControlPoint(); -} - -inline GUID GattCharacteristicUuids::HidInformation() -{ - return get_activation_factory().HidInformation(); -} - -inline GUID GattCharacteristicUuids::Ieee1107320601RegulatoryCertificationDataList() -{ - return get_activation_factory().Ieee1107320601RegulatoryCertificationDataList(); -} - -inline GUID GattCharacteristicUuids::LnControlPoint() -{ - return get_activation_factory().LnControlPoint(); -} - -inline GUID GattCharacteristicUuids::LnFeature() -{ - return get_activation_factory().LnFeature(); -} - -inline GUID GattCharacteristicUuids::LocalTimeInformation() -{ - return get_activation_factory().LocalTimeInformation(); -} - -inline GUID GattCharacteristicUuids::LocationAndSpeed() -{ - return get_activation_factory().LocationAndSpeed(); -} - -inline GUID GattCharacteristicUuids::ManufacturerNameString() -{ - return get_activation_factory().ManufacturerNameString(); -} - -inline GUID GattCharacteristicUuids::ModelNumberString() -{ - return get_activation_factory().ModelNumberString(); -} - -inline GUID GattCharacteristicUuids::Navigation() -{ - return get_activation_factory().Navigation(); -} - -inline GUID GattCharacteristicUuids::NewAlert() -{ - return get_activation_factory().NewAlert(); -} - -inline GUID GattCharacteristicUuids::GapPeripheralPreferredConnectionParameters() -{ - return get_activation_factory().GapPeripheralPreferredConnectionParameters(); -} - -inline GUID GattCharacteristicUuids::GapPeripheralPrivacyFlag() -{ - return get_activation_factory().GapPeripheralPrivacyFlag(); -} - -inline GUID GattCharacteristicUuids::PnpId() -{ - return get_activation_factory().PnpId(); -} - -inline GUID GattCharacteristicUuids::PositionQuality() -{ - return get_activation_factory().PositionQuality(); -} - -inline GUID GattCharacteristicUuids::ProtocolMode() -{ - return get_activation_factory().ProtocolMode(); -} - -inline GUID GattCharacteristicUuids::GapReconnectionAddress() -{ - return get_activation_factory().GapReconnectionAddress(); -} - -inline GUID GattCharacteristicUuids::ReferenceTimeInformation() -{ - return get_activation_factory().ReferenceTimeInformation(); -} - -inline GUID GattCharacteristicUuids::Report() -{ - return get_activation_factory().Report(); -} - -inline GUID GattCharacteristicUuids::ReportMap() -{ - return get_activation_factory().ReportMap(); -} - -inline GUID GattCharacteristicUuids::RingerControlPoint() -{ - return get_activation_factory().RingerControlPoint(); -} - -inline GUID GattCharacteristicUuids::RingerSetting() -{ - return get_activation_factory().RingerSetting(); -} - -inline GUID GattCharacteristicUuids::ScanIntervalWindow() -{ - return get_activation_factory().ScanIntervalWindow(); -} - -inline GUID GattCharacteristicUuids::ScanRefresh() -{ - return get_activation_factory().ScanRefresh(); -} - -inline GUID GattCharacteristicUuids::SerialNumberString() -{ - return get_activation_factory().SerialNumberString(); -} - -inline GUID GattCharacteristicUuids::GattServiceChanged() -{ - return get_activation_factory().GattServiceChanged(); -} - -inline GUID GattCharacteristicUuids::SoftwareRevisionString() -{ - return get_activation_factory().SoftwareRevisionString(); -} - -inline GUID GattCharacteristicUuids::SupportedNewAlertCategory() -{ - return get_activation_factory().SupportedNewAlertCategory(); -} - -inline GUID GattCharacteristicUuids::SupportUnreadAlertCategory() -{ - return get_activation_factory().SupportUnreadAlertCategory(); -} - -inline GUID GattCharacteristicUuids::SystemId() -{ - return get_activation_factory().SystemId(); -} - -inline GUID GattCharacteristicUuids::TimeAccuracy() -{ - return get_activation_factory().TimeAccuracy(); -} - -inline GUID GattCharacteristicUuids::TimeSource() -{ - return get_activation_factory().TimeSource(); -} - -inline GUID GattCharacteristicUuids::TimeUpdateControlPoint() -{ - return get_activation_factory().TimeUpdateControlPoint(); -} - -inline GUID GattCharacteristicUuids::TimeUpdateState() -{ - return get_activation_factory().TimeUpdateState(); -} - -inline GUID GattCharacteristicUuids::TimeWithDst() -{ - return get_activation_factory().TimeWithDst(); -} - -inline GUID GattCharacteristicUuids::TimeZone() -{ - return get_activation_factory().TimeZone(); -} - -inline GUID GattCharacteristicUuids::TxPowerLevel() -{ - return get_activation_factory().TxPowerLevel(); -} - -inline GUID GattCharacteristicUuids::UnreadAlertStatus() -{ - return get_activation_factory().UnreadAlertStatus(); -} - -inline GUID GattDescriptor::ConvertShortIdToUuid(uint16_t shortId) -{ - return get_activation_factory().ConvertShortIdToUuid(shortId); -} - -inline GUID GattDescriptorUuids::CharacteristicAggregateFormat() -{ - return get_activation_factory().CharacteristicAggregateFormat(); -} - -inline GUID GattDescriptorUuids::CharacteristicExtendedProperties() -{ - return get_activation_factory().CharacteristicExtendedProperties(); -} - -inline GUID GattDescriptorUuids::CharacteristicPresentationFormat() -{ - return get_activation_factory().CharacteristicPresentationFormat(); -} - -inline GUID GattDescriptorUuids::CharacteristicUserDescription() -{ - return get_activation_factory().CharacteristicUserDescription(); -} - -inline GUID GattDescriptorUuids::ClientCharacteristicConfiguration() -{ - return get_activation_factory().ClientCharacteristicConfiguration(); -} - -inline GUID GattDescriptorUuids::ServerCharacteristicConfiguration() -{ - return get_activation_factory().ServerCharacteristicConfiguration(); -} - -inline Windows::Foundation::IAsyncOperation GattDeviceService::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring GattDeviceService::GetDeviceSelectorFromUuid(GUID serviceUuid) -{ - return get_activation_factory().GetDeviceSelectorFromUuid(serviceUuid); -} - -inline hstring GattDeviceService::GetDeviceSelectorFromShortId(uint16_t serviceShortId) -{ - return get_activation_factory().GetDeviceSelectorFromShortId(serviceShortId); -} - -inline GUID GattDeviceService::ConvertShortIdToUuid(uint16_t shortId) -{ - return get_activation_factory().ConvertShortIdToUuid(shortId); -} - -inline uint8_t GattPresentationFormat::BluetoothSigAssignedNumbers() -{ - return get_activation_factory().BluetoothSigAssignedNumbers(); -} - -inline uint8_t GattPresentationFormatTypes::Boolean() -{ - return get_activation_factory().Boolean(); -} - -inline uint8_t GattPresentationFormatTypes::Bit2() -{ - return get_activation_factory().Bit2(); -} - -inline uint8_t GattPresentationFormatTypes::Nibble() -{ - return get_activation_factory().Nibble(); -} - -inline uint8_t GattPresentationFormatTypes::UInt8() -{ - return get_activation_factory().UInt8(); -} - -inline uint8_t GattPresentationFormatTypes::UInt12() -{ - return get_activation_factory().UInt12(); -} - -inline uint8_t GattPresentationFormatTypes::UInt16() -{ - return get_activation_factory().UInt16(); -} - -inline uint8_t GattPresentationFormatTypes::UInt24() -{ - return get_activation_factory().UInt24(); -} - -inline uint8_t GattPresentationFormatTypes::UInt32() -{ - return get_activation_factory().UInt32(); -} - -inline uint8_t GattPresentationFormatTypes::UInt48() -{ - return get_activation_factory().UInt48(); -} - -inline uint8_t GattPresentationFormatTypes::UInt64() -{ - return get_activation_factory().UInt64(); -} - -inline uint8_t GattPresentationFormatTypes::UInt128() -{ - return get_activation_factory().UInt128(); -} - -inline uint8_t GattPresentationFormatTypes::SInt8() -{ - return get_activation_factory().SInt8(); -} - -inline uint8_t GattPresentationFormatTypes::SInt12() -{ - return get_activation_factory().SInt12(); -} - -inline uint8_t GattPresentationFormatTypes::SInt16() -{ - return get_activation_factory().SInt16(); -} - -inline uint8_t GattPresentationFormatTypes::SInt24() -{ - return get_activation_factory().SInt24(); -} - -inline uint8_t GattPresentationFormatTypes::SInt32() -{ - return get_activation_factory().SInt32(); -} - -inline uint8_t GattPresentationFormatTypes::SInt48() -{ - return get_activation_factory().SInt48(); -} - -inline uint8_t GattPresentationFormatTypes::SInt64() -{ - return get_activation_factory().SInt64(); -} - -inline uint8_t GattPresentationFormatTypes::SInt128() -{ - return get_activation_factory().SInt128(); -} - -inline uint8_t GattPresentationFormatTypes::Float32() -{ - return get_activation_factory().Float32(); -} - -inline uint8_t GattPresentationFormatTypes::Float64() -{ - return get_activation_factory().Float64(); -} - -inline uint8_t GattPresentationFormatTypes::SFloat() -{ - return get_activation_factory().SFloat(); -} - -inline uint8_t GattPresentationFormatTypes::Float() -{ - return get_activation_factory().Float(); -} - -inline uint8_t GattPresentationFormatTypes::DUInt16() -{ - return get_activation_factory().DUInt16(); -} - -inline uint8_t GattPresentationFormatTypes::Utf8() -{ - return get_activation_factory().Utf8(); -} - -inline uint8_t GattPresentationFormatTypes::Utf16() -{ - return get_activation_factory().Utf16(); -} - -inline uint8_t GattPresentationFormatTypes::Struct() -{ - return get_activation_factory().Struct(); -} - -inline GattReliableWriteTransaction::GattReliableWriteTransaction() : - GattReliableWriteTransaction(activate_instance()) -{} - -inline GUID GattServiceUuids::Battery() -{ - return get_activation_factory().Battery(); -} - -inline GUID GattServiceUuids::BloodPressure() -{ - return get_activation_factory().BloodPressure(); -} - -inline GUID GattServiceUuids::CyclingSpeedAndCadence() -{ - return get_activation_factory().CyclingSpeedAndCadence(); -} - -inline GUID GattServiceUuids::GenericAccess() -{ - return get_activation_factory().GenericAccess(); -} - -inline GUID GattServiceUuids::GenericAttribute() -{ - return get_activation_factory().GenericAttribute(); -} - -inline GUID GattServiceUuids::Glucose() -{ - return get_activation_factory().Glucose(); -} - -inline GUID GattServiceUuids::HealthThermometer() -{ - return get_activation_factory().HealthThermometer(); -} - -inline GUID GattServiceUuids::HeartRate() -{ - return get_activation_factory().HeartRate(); -} - -inline GUID GattServiceUuids::RunningSpeedAndCadence() -{ - return get_activation_factory().RunningSpeedAndCadence(); -} - -inline GUID GattServiceUuids::AlertNotification() -{ - return get_activation_factory().AlertNotification(); -} - -inline GUID GattServiceUuids::CurrentTime() -{ - return get_activation_factory().CurrentTime(); -} - -inline GUID GattServiceUuids::CyclingPower() -{ - return get_activation_factory().CyclingPower(); -} - -inline GUID GattServiceUuids::DeviceInformation() -{ - return get_activation_factory().DeviceInformation(); -} - -inline GUID GattServiceUuids::HumanInterfaceDevice() -{ - return get_activation_factory().HumanInterfaceDevice(); -} - -inline GUID GattServiceUuids::ImmediateAlert() -{ - return get_activation_factory().ImmediateAlert(); -} - -inline GUID GattServiceUuids::LinkLoss() -{ - return get_activation_factory().LinkLoss(); -} - -inline GUID GattServiceUuids::LocationAndNavigation() -{ - return get_activation_factory().LocationAndNavigation(); -} - -inline GUID GattServiceUuids::NextDstChange() -{ - return get_activation_factory().NextDstChange(); -} - -inline GUID GattServiceUuids::PhoneAlertStatus() -{ - return get_activation_factory().PhoneAlertStatus(); -} - -inline GUID GattServiceUuids::ReferenceTimeUpdate() -{ - return get_activation_factory().ReferenceTimeUpdate(); -} - -inline GUID GattServiceUuids::ScanParameters() -{ - return get_activation_factory().ScanParameters(); -} - -inline GUID GattServiceUuids::TxPower() -{ - return get_activation_factory().TxPower(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Bluetooth.Rfcomm.h b/10.0.14393.0/winrt/Windows.Devices.Bluetooth.Rfcomm.h deleted file mode 100644 index 66474441f..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Bluetooth.Rfcomm.h +++ /dev/null @@ -1,866 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Devices.Bluetooth.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Networking.3.h" -#include "internal/Windows.Networking.Sockets.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Devices.Bluetooth.Rfcomm.3.h" -#include "Windows.Devices.Bluetooth.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConnectionHostName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionHostName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionServiceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionServiceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtectionLevel(Windows::Networking::Sockets::SocketProtectionLevel * value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxProtectionLevel(Windows::Networking::Sockets::SocketProtectionLevel * value) noexcept override - { - try - { - *value = detach(this->shim().MaxProtectionLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSdpRawAttributesAsync(abi_arg_out>> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().GetSdpRawAttributesAsync()); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSdpRawAttributesWithCacheModeAsync(Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode, abi_arg_out>> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().GetSdpRawAttributesAsync(cacheMode)); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Device(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Device()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceAccessInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceAccessInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_in serviceId, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelector(*reinterpret_cast(&serviceId))); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelectorForBluetoothDevice(abi_arg_in bluetoothDevice, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelectorForBluetoothDevice(*reinterpret_cast(&bluetoothDevice))); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorForBluetoothDeviceWithCacheMode(abi_arg_in bluetoothDevice, Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelectorForBluetoothDevice(*reinterpret_cast(&bluetoothDevice), cacheMode)); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorForBluetoothDeviceAndServiceId(abi_arg_in bluetoothDevice, abi_arg_in serviceId, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelectorForBluetoothDeviceAndServiceId(*reinterpret_cast(&bluetoothDevice), *reinterpret_cast(&serviceId))); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorForBluetoothDeviceAndServiceIdWithCacheMode(abi_arg_in bluetoothDevice, abi_arg_in serviceId, Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelectorForBluetoothDeviceAndServiceId(*reinterpret_cast(&bluetoothDevice), *reinterpret_cast(&serviceId), cacheMode)); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Error(Windows::Devices::Bluetooth::BluetoothError * value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Services(abi_arg_out> services) noexcept override - { - try - { - *services = detach(this->shim().Services()); - return S_OK; - } - catch (...) - { - *services = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uuid(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Uuid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AsShortId(uint32_t * shortId) noexcept override - { - try - { - *shortId = detach(this->shim().AsShortId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AsString(abi_arg_out id) noexcept override - { - try - { - *id = detach(this->shim().AsString()); - return S_OK; - } - catch (...) - { - *id = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromUuid(GUID uuid, abi_arg_out serviceId) noexcept override - { - try - { - *serviceId = detach(this->shim().FromUuid(uuid)); - return S_OK; - } - catch (...) - { - *serviceId = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromShortId(uint32_t shortId, abi_arg_out serviceId) noexcept override - { - try - { - *serviceId = detach(this->shim().FromShortId(shortId)); - return S_OK; - } - catch (...) - { - *serviceId = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SerialPort(abi_arg_out serviceId) noexcept override - { - try - { - *serviceId = detach(this->shim().SerialPort()); - return S_OK; - } - catch (...) - { - *serviceId = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ObexObjectPush(abi_arg_out serviceId) noexcept override - { - try - { - *serviceId = detach(this->shim().ObexObjectPush()); - return S_OK; - } - catch (...) - { - *serviceId = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ObexFileTransfer(abi_arg_out serviceId) noexcept override - { - try - { - *serviceId = detach(this->shim().ObexFileTransfer()); - return S_OK; - } - catch (...) - { - *serviceId = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneBookAccessPce(abi_arg_out serviceId) noexcept override - { - try - { - *serviceId = detach(this->shim().PhoneBookAccessPce()); - return S_OK; - } - catch (...) - { - *serviceId = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneBookAccessPse(abi_arg_out serviceId) noexcept override - { - try - { - *serviceId = detach(this->shim().PhoneBookAccessPse()); - return S_OK; - } - catch (...) - { - *serviceId = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GenericFileTransfer(abi_arg_out serviceId) noexcept override - { - try - { - *serviceId = detach(this->shim().GenericFileTransfer()); - return S_OK; - } - catch (...) - { - *serviceId = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServiceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SdpRawAttributes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SdpRawAttributes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAdvertising(abi_arg_in listener) noexcept override - { - try - { - this->shim().StartAdvertising(*reinterpret_cast(&listener)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopAdvertising() noexcept override - { - try - { - this->shim().StopAdvertising(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartAdvertisingWithRadioDiscoverability(abi_arg_in listener, bool radioDiscoverable) noexcept override - { - try - { - this->shim().StartAdvertising(*reinterpret_cast(&listener), radioDiscoverable); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateAsync(abi_arg_in serviceId, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().CreateAsync(*reinterpret_cast(&serviceId))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Bluetooth::Rfcomm { - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommServiceIdStatics::FromUuid(GUID uuid) const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId serviceId { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromUuid(uuid, put(serviceId))); - return serviceId; -} - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommServiceIdStatics::FromShortId(uint32_t shortId) const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId serviceId { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromShortId(shortId, put(serviceId))); - return serviceId; -} - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommServiceIdStatics::SerialPort() const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId serviceId { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SerialPort(put(serviceId))); - return serviceId; -} - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommServiceIdStatics::ObexObjectPush() const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId serviceId { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ObexObjectPush(put(serviceId))); - return serviceId; -} - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommServiceIdStatics::ObexFileTransfer() const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId serviceId { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ObexFileTransfer(put(serviceId))); - return serviceId; -} - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommServiceIdStatics::PhoneBookAccessPce() const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId serviceId { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PhoneBookAccessPce(put(serviceId))); - return serviceId; -} - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommServiceIdStatics::PhoneBookAccessPse() const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId serviceId { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PhoneBookAccessPse(put(serviceId))); - return serviceId; -} - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommServiceIdStatics::GenericFileTransfer() const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId serviceId { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GenericFileTransfer(put(serviceId))); - return serviceId; -} - -template GUID impl_IRfcommServiceId::Uuid() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Uuid(&value)); - return value; -} - -template uint32_t impl_IRfcommServiceId::AsShortId() const -{ - uint32_t shortId {}; - check_hresult(static_cast(static_cast(*this))->abi_AsShortId(&shortId)); - return shortId; -} - -template hstring impl_IRfcommServiceId::AsString() const -{ - hstring id; - check_hresult(static_cast(static_cast(*this))->abi_AsString(put(id))); - return id; -} - -template Windows::Devices::Bluetooth::BluetoothError impl_IRfcommDeviceServicesResult::Error() const -{ - Windows::Devices::Bluetooth::BluetoothError value {}; - check_hresult(static_cast(static_cast(*this))->get_Error(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IRfcommDeviceServicesResult::Services() const -{ - Windows::Foundation::Collections::IVectorView services; - check_hresult(static_cast(static_cast(*this))->get_Services(put(services))); - return services; -} - -template Windows::Foundation::IAsyncOperation impl_IRfcommDeviceServiceStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(asyncOp))); - return asyncOp; -} - -template hstring impl_IRfcommDeviceServiceStatics::GetDeviceSelector(const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & serviceId) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(get(serviceId), put(selector))); - return selector; -} - -template hstring impl_IRfcommDeviceServiceStatics2::GetDeviceSelectorForBluetoothDevice(const Windows::Devices::Bluetooth::BluetoothDevice & bluetoothDevice) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorForBluetoothDevice(get(bluetoothDevice), put(selector))); - return selector; -} - -template hstring impl_IRfcommDeviceServiceStatics2::GetDeviceSelectorForBluetoothDevice(const Windows::Devices::Bluetooth::BluetoothDevice & bluetoothDevice, Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorForBluetoothDeviceWithCacheMode(get(bluetoothDevice), cacheMode, put(selector))); - return selector; -} - -template hstring impl_IRfcommDeviceServiceStatics2::GetDeviceSelectorForBluetoothDeviceAndServiceId(const Windows::Devices::Bluetooth::BluetoothDevice & bluetoothDevice, const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & serviceId) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorForBluetoothDeviceAndServiceId(get(bluetoothDevice), get(serviceId), put(selector))); - return selector; -} - -template hstring impl_IRfcommDeviceServiceStatics2::GetDeviceSelectorForBluetoothDeviceAndServiceId(const Windows::Devices::Bluetooth::BluetoothDevice & bluetoothDevice, const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & serviceId, Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorForBluetoothDeviceAndServiceIdWithCacheMode(get(bluetoothDevice), get(serviceId), cacheMode, put(selector))); - return selector; -} - -template Windows::Networking::HostName impl_IRfcommDeviceService::ConnectionHostName() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ConnectionHostName(put(value))); - return value; -} - -template hstring impl_IRfcommDeviceService::ConnectionServiceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ConnectionServiceName(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommDeviceService::ServiceId() const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ServiceId(put(value))); - return value; -} - -template Windows::Networking::Sockets::SocketProtectionLevel impl_IRfcommDeviceService::ProtectionLevel() const -{ - Windows::Networking::Sockets::SocketProtectionLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtectionLevel(&value)); - return value; -} - -template Windows::Networking::Sockets::SocketProtectionLevel impl_IRfcommDeviceService::MaxProtectionLevel() const -{ - Windows::Networking::Sockets::SocketProtectionLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxProtectionLevel(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IRfcommDeviceService::GetSdpRawAttributesAsync() const -{ - Windows::Foundation::IAsyncOperation> asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_GetSdpRawAttributesAsync(put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation> impl_IRfcommDeviceService::GetSdpRawAttributesAsync(Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode) const -{ - Windows::Foundation::IAsyncOperation> asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_GetSdpRawAttributesWithCacheModeAsync(cacheMode, put(asyncOp))); - return asyncOp; -} - -template Windows::Devices::Bluetooth::BluetoothDevice impl_IRfcommDeviceService2::Device() const -{ - Windows::Devices::Bluetooth::BluetoothDevice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Device(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceAccessInformation impl_IRfcommDeviceService3::DeviceAccessInformation() const -{ - Windows::Devices::Enumeration::DeviceAccessInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceAccessInformation(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IRfcommDeviceService3::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IRfcommServiceProviderStatics::CreateAsync(const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & serviceId) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_CreateAsync(get(serviceId), put(asyncOp))); - return asyncOp; -} - -template Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId impl_IRfcommServiceProvider::ServiceId() const -{ - Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ServiceId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IRfcommServiceProvider::SdpRawAttributes() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_SdpRawAttributes(put(value))); - return value; -} - -template void impl_IRfcommServiceProvider::StartAdvertising(const Windows::Networking::Sockets::StreamSocketListener & listener) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartAdvertising(get(listener))); -} - -template void impl_IRfcommServiceProvider::StopAdvertising() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopAdvertising()); -} - -template void impl_IRfcommServiceProvider2::StartAdvertising(const Windows::Networking::Sockets::StreamSocketListener & listener, bool radioDiscoverable) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartAdvertisingWithRadioDiscoverability(get(listener), radioDiscoverable)); -} - -inline Windows::Foundation::IAsyncOperation RfcommDeviceService::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring RfcommDeviceService::GetDeviceSelector(const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & serviceId) -{ - return get_activation_factory().GetDeviceSelector(serviceId); -} - -inline hstring RfcommDeviceService::GetDeviceSelectorForBluetoothDevice(const Windows::Devices::Bluetooth::BluetoothDevice & bluetoothDevice) -{ - return get_activation_factory().GetDeviceSelectorForBluetoothDevice(bluetoothDevice); -} - -inline hstring RfcommDeviceService::GetDeviceSelectorForBluetoothDevice(const Windows::Devices::Bluetooth::BluetoothDevice & bluetoothDevice, Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode) -{ - return get_activation_factory().GetDeviceSelectorForBluetoothDevice(bluetoothDevice, cacheMode); -} - -inline hstring RfcommDeviceService::GetDeviceSelectorForBluetoothDeviceAndServiceId(const Windows::Devices::Bluetooth::BluetoothDevice & bluetoothDevice, const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & serviceId) -{ - return get_activation_factory().GetDeviceSelectorForBluetoothDeviceAndServiceId(bluetoothDevice, serviceId); -} - -inline hstring RfcommDeviceService::GetDeviceSelectorForBluetoothDeviceAndServiceId(const Windows::Devices::Bluetooth::BluetoothDevice & bluetoothDevice, const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & serviceId, Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode) -{ - return get_activation_factory().GetDeviceSelectorForBluetoothDeviceAndServiceId(bluetoothDevice, serviceId, cacheMode); -} - -inline Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId RfcommServiceId::FromUuid(GUID uuid) -{ - return get_activation_factory().FromUuid(uuid); -} - -inline Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId RfcommServiceId::FromShortId(uint32_t shortId) -{ - return get_activation_factory().FromShortId(shortId); -} - -inline Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId RfcommServiceId::SerialPort() -{ - return get_activation_factory().SerialPort(); -} - -inline Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId RfcommServiceId::ObexObjectPush() -{ - return get_activation_factory().ObexObjectPush(); -} - -inline Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId RfcommServiceId::ObexFileTransfer() -{ - return get_activation_factory().ObexFileTransfer(); -} - -inline Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId RfcommServiceId::PhoneBookAccessPce() -{ - return get_activation_factory().PhoneBookAccessPce(); -} - -inline Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId RfcommServiceId::PhoneBookAccessPse() -{ - return get_activation_factory().PhoneBookAccessPse(); -} - -inline Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId RfcommServiceId::GenericFileTransfer() -{ - return get_activation_factory().GenericFileTransfer(); -} - -inline Windows::Foundation::IAsyncOperation RfcommServiceProvider::CreateAsync(const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & serviceId) -{ - return get_activation_factory().CreateAsync(serviceId); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Bluetooth.h b/10.0.14393.0/winrt/Windows.Devices.Bluetooth.h deleted file mode 100644 index f271ec1b3..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Bluetooth.h +++ /dev/null @@ -1,2995 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Networking.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Devices.Bluetooth.Rfcomm.3.h" -#include "internal/Windows.Devices.Bluetooth.GenericAttributeProfile.3.h" -#include "internal/Windows.Devices.Bluetooth.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RawValue(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RawValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MajorClass(Windows::Devices::Bluetooth::BluetoothMajorClass * value) noexcept override - { - try - { - *value = detach(this->shim().MajorClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinorClass(Windows::Devices::Bluetooth::BluetoothMinorClass * value) noexcept override - { - try - { - *value = detach(this->shim().MinorClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceCapabilities(Windows::Devices::Bluetooth::BluetoothServiceCapabilities * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceCapabilities()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromRawValue(uint32_t rawValue, abi_arg_out classOfDevice) noexcept override - { - try - { - *classOfDevice = detach(this->shim().FromRawValue(rawValue)); - return S_OK; - } - catch (...) - { - *classOfDevice = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromParts(Windows::Devices::Bluetooth::BluetoothMajorClass majorClass, Windows::Devices::Bluetooth::BluetoothMinorClass minorClass, Windows::Devices::Bluetooth::BluetoothServiceCapabilities serviceCapabilities, abi_arg_out classOfDevice) noexcept override - { - try - { - *classOfDevice = detach(this->shim().FromParts(majorClass, minorClass, serviceCapabilities)); - return S_OK; - } - catch (...) - { - *classOfDevice = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HostName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HostName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClassOfDevice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClassOfDevice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SdpRecords(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SdpRecords()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RfcommServices(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RfcommServices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionStatus(Windows::Devices::Bluetooth::BluetoothConnectionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BluetoothAddress(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BluetoothAddress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NameChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NameChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NameChanged(event_token token) noexcept override - { - try - { - this->shim().NameChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SdpRecordsChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SdpRecordsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SdpRecordsChanged(event_token token) noexcept override - { - try - { - this->shim().SdpRecordsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ConnectionStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ConnectionStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ConnectionStatusChanged(event_token token) noexcept override - { - try - { - this->shim().ConnectionStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceAccessInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceAccessInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRfcommServicesAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetRfcommServicesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRfcommServicesWithCacheModeAsync(Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetRfcommServicesAsync(cacheMode)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRfcommServicesForIdAsync(abi_arg_in serviceId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetRfcommServicesForIdAsync(*reinterpret_cast(&serviceId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRfcommServicesForIdWithCacheModeAsync(abi_arg_in serviceId, Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetRfcommServicesForIdAsync(*reinterpret_cast(&serviceId), cacheMode)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromHostNameAsync(abi_arg_in hostName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromHostNameAsync(*reinterpret_cast(&hostName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromBluetoothAddressAsync(uint64_t address, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromBluetoothAddressAsync(address)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelectorFromPairingState(bool pairingState, abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelectorFromPairingState(pairingState)); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromConnectionStatus(Windows::Devices::Bluetooth::BluetoothConnectionStatus connectionStatus, abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelectorFromConnectionStatus(connectionStatus)); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromDeviceName(abi_arg_in deviceName, abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelectorFromDeviceName(*reinterpret_cast(&deviceName))); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromBluetoothAddress(uint64_t bluetoothAddress, abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelectorFromBluetoothAddress(bluetoothAddress)); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromClassOfDevice(abi_arg_in classOfDevice, abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelectorFromClassOfDevice(*reinterpret_cast(&classOfDevice))); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RawValue(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().RawValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Category(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Category()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubCategory(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().SubCategory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uncategorized(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Uncategorized()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Phone(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Phone()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Computer(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Computer()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Watch(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Watch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Clock(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Clock()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Display(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Display()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteControl(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().RemoteControl()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EyeGlasses(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().EyeGlasses()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tag(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Tag()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Keyring(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Keyring()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaPlayer(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().MediaPlayer()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BarcodeScanner(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().BarcodeScanner()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thermometer(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Thermometer()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeartRate(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().HeartRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BloodPressure(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().BloodPressure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HumanInterfaceDevice(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().HumanInterfaceDevice()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GlucoseMeter(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().GlucoseMeter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RunningWalking(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().RunningWalking()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cycling(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Cycling()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PulseOximeter(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().PulseOximeter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WeightScale(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().WeightScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutdoorSportActivity(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().OutdoorSportActivity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromRawValue(uint16_t rawValue, abi_arg_out appearance) noexcept override - { - try - { - *appearance = detach(this->shim().FromRawValue(rawValue)); - return S_OK; - } - catch (...) - { - *appearance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromParts(uint16_t appearanceCategory, uint16_t appearanceSubCategory, abi_arg_out appearance) noexcept override - { - try - { - *appearance = detach(this->shim().FromParts(appearanceCategory, appearanceSubCategory)); - return S_OK; - } - catch (...) - { - *appearance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Generic(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Generic()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SportsWatch(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().SportsWatch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ThermometerEar(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().ThermometerEar()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeartRateBelt(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().HeartRateBelt()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BloodPressureArm(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().BloodPressureArm()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BloodPressureWrist(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().BloodPressureWrist()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Keyboard(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Keyboard()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mouse(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Mouse()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Joystick(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Joystick()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gamepad(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Gamepad()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DigitizerTablet(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().DigitizerTablet()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CardReader(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().CardReader()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DigitalPen(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().DigitalPen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BarcodeScanner(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().BarcodeScanner()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RunningWalkingInShoe(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().RunningWalkingInShoe()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RunningWalkingOnShoe(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().RunningWalkingOnShoe()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RunningWalkingOnHip(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().RunningWalkingOnHip()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CyclingComputer(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().CyclingComputer()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CyclingSpeedSensor(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().CyclingSpeedSensor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CyclingCadenceSensor(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().CyclingCadenceSensor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CyclingPowerSensor(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().CyclingPowerSensor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CyclingSpeedCadenceSensor(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().CyclingSpeedCadenceSensor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OximeterFingertip(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().OximeterFingertip()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OximeterWristWorn(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().OximeterWristWorn()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocationDisplay(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().LocationDisplay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocationNavigationDisplay(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().LocationNavigationDisplay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocationPod(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().LocationPod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocationNavigationPod(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().LocationNavigationPod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GattServices(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GattServices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionStatus(Windows::Devices::Bluetooth::BluetoothConnectionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BluetoothAddress(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BluetoothAddress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGattService(GUID serviceUuid, abi_arg_out service) noexcept override - { - try - { - *service = detach(this->shim().GetGattService(serviceUuid)); - return S_OK; - } - catch (...) - { - *service = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NameChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NameChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NameChanged(event_token token) noexcept override - { - try - { - this->shim().NameChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_GattServicesChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().GattServicesChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_GattServicesChanged(event_token token) noexcept override - { - try - { - this->shim().GattServicesChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ConnectionStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ConnectionStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ConnectionStatusChanged(event_token token) noexcept override - { - try - { - this->shim().ConnectionStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Appearance(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Appearance()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BluetoothAddressType(Windows::Devices::Bluetooth::BluetoothAddressType * value) noexcept override - { - try - { - *value = detach(this->shim().BluetoothAddressType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromBluetoothAddressAsync(uint64_t bluetoothAddress, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromBluetoothAddressAsync(bluetoothAddress)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelectorFromPairingState(bool pairingState, abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelectorFromPairingState(pairingState)); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromConnectionStatus(Windows::Devices::Bluetooth::BluetoothConnectionStatus connectionStatus, abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelectorFromConnectionStatus(connectionStatus)); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromDeviceName(abi_arg_in deviceName, abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelectorFromDeviceName(*reinterpret_cast(&deviceName))); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromBluetoothAddress(uint64_t bluetoothAddress, abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelectorFromBluetoothAddress(bluetoothAddress)); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromBluetoothAddressWithBluetoothAddressType(uint64_t bluetoothAddress, Windows::Devices::Bluetooth::BluetoothAddressType bluetoothAddressType, abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelectorFromBluetoothAddress(bluetoothAddress, bluetoothAddressType)); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromAppearance(abi_arg_in appearance, abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelectorFromAppearance(*reinterpret_cast(&appearance))); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromBluetoothAddressWithBluetoothAddressTypeAsync(uint64_t bluetoothAddress, Windows::Devices::Bluetooth::BluetoothAddressType bluetoothAddressType, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromBluetoothAddressAsync(bluetoothAddress, bluetoothAddressType)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InRangeThresholdInDBm(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InRangeThresholdInDBm()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InRangeThresholdInDBm(abi_arg_in> value) noexcept override - { - try - { - this->shim().InRangeThresholdInDBm(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutOfRangeThresholdInDBm(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().OutOfRangeThresholdInDBm()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutOfRangeThresholdInDBm(abi_arg_in> value) noexcept override - { - try - { - this->shim().OutOfRangeThresholdInDBm(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutOfRangeTimeout(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().OutOfRangeTimeout()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutOfRangeTimeout(abi_arg_in> value) noexcept override - { - try - { - this->shim().OutOfRangeTimeout(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SamplingInterval(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SamplingInterval()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SamplingInterval(abi_arg_in> value) noexcept override - { - try - { - this->shim().SamplingInterval(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Bluetooth { - -template Windows::Foundation::IAsyncOperation impl_IBluetoothDeviceStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBluetoothDeviceStatics::FromHostNameAsync(const Windows::Networking::HostName & hostName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromHostNameAsync(get(hostName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBluetoothDeviceStatics::FromBluetoothAddressAsync(uint64_t address) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromBluetoothAddressAsync(address, put(operation))); - return operation; -} - -template hstring impl_IBluetoothDeviceStatics::GetDeviceSelector() const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothDeviceStatics2::GetDeviceSelectorFromPairingState(bool pairingState) const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromPairingState(pairingState, put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothDeviceStatics2::GetDeviceSelectorFromConnectionStatus(Windows::Devices::Bluetooth::BluetoothConnectionStatus connectionStatus) const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromConnectionStatus(connectionStatus, put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothDeviceStatics2::GetDeviceSelectorFromDeviceName(hstring_ref deviceName) const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromDeviceName(get(deviceName), put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothDeviceStatics2::GetDeviceSelectorFromBluetoothAddress(uint64_t bluetoothAddress) const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromBluetoothAddress(bluetoothAddress, put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothDeviceStatics2::GetDeviceSelectorFromClassOfDevice(const Windows::Devices::Bluetooth::BluetoothClassOfDevice & classOfDevice) const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromClassOfDevice(get(classOfDevice), put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothDevice::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Networking::HostName impl_IBluetoothDevice::HostName() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HostName(put(value))); - return value; -} - -template hstring impl_IBluetoothDevice::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothClassOfDevice impl_IBluetoothDevice::ClassOfDevice() const -{ - Windows::Devices::Bluetooth::BluetoothClassOfDevice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ClassOfDevice(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBluetoothDevice::SdpRecords() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SdpRecords(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBluetoothDevice::RfcommServices() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_RfcommServices(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothConnectionStatus impl_IBluetoothDevice::ConnectionStatus() const -{ - Windows::Devices::Bluetooth::BluetoothConnectionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ConnectionStatus(&value)); - return value; -} - -template uint64_t impl_IBluetoothDevice::BluetoothAddress() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BluetoothAddress(&value)); - return value; -} - -template event_token impl_IBluetoothDevice::NameChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NameChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IBluetoothDevice::NameChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Bluetooth::IBluetoothDevice::remove_NameChanged, NameChanged(handler)); -} - -template void impl_IBluetoothDevice::NameChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NameChanged(token)); -} - -template event_token impl_IBluetoothDevice::SdpRecordsChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SdpRecordsChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IBluetoothDevice::SdpRecordsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Bluetooth::IBluetoothDevice::remove_SdpRecordsChanged, SdpRecordsChanged(handler)); -} - -template void impl_IBluetoothDevice::SdpRecordsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SdpRecordsChanged(token)); -} - -template event_token impl_IBluetoothDevice::ConnectionStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ConnectionStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IBluetoothDevice::ConnectionStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Bluetooth::IBluetoothDevice::remove_ConnectionStatusChanged, ConnectionStatusChanged(handler)); -} - -template void impl_IBluetoothDevice::ConnectionStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ConnectionStatusChanged(token)); -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IBluetoothDevice2::DeviceInformation() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformation(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceAccessInformation impl_IBluetoothDevice3::DeviceAccessInformation() const -{ - Windows::Devices::Enumeration::DeviceAccessInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceAccessInformation(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBluetoothDevice3::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBluetoothDevice3::GetRfcommServicesAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetRfcommServicesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBluetoothDevice3::GetRfcommServicesAsync(Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetRfcommServicesWithCacheModeAsync(cacheMode, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBluetoothDevice3::GetRfcommServicesForIdAsync(const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & serviceId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetRfcommServicesForIdAsync(get(serviceId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBluetoothDevice3::GetRfcommServicesForIdAsync(const Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId & serviceId, Windows::Devices::Bluetooth::BluetoothCacheMode cacheMode) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetRfcommServicesForIdWithCacheModeAsync(get(serviceId), cacheMode, put(operation))); - return operation; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::Uncategorized() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Uncategorized(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::Phone() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Phone(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::Computer() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Computer(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::Watch() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Watch(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::Clock() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Clock(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::Display() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Display(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::RemoteControl() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RemoteControl(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::EyeGlasses() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EyeGlasses(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::Tag() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Tag(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::Keyring() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Keyring(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::MediaPlayer() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaPlayer(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::BarcodeScanner() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BarcodeScanner(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::Thermometer() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Thermometer(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::HeartRate() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HeartRate(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::BloodPressure() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BloodPressure(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::HumanInterfaceDevice() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HumanInterfaceDevice(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::GlucoseMeter() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_GlucoseMeter(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::RunningWalking() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RunningWalking(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::Cycling() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Cycling(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::PulseOximeter() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PulseOximeter(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::WeightScale() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_WeightScale(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceCategoriesStatics::OutdoorSportActivity() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OutdoorSportActivity(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::Generic() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Generic(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::SportsWatch() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SportsWatch(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::ThermometerEar() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ThermometerEar(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::HeartRateBelt() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HeartRateBelt(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::BloodPressureArm() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BloodPressureArm(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::BloodPressureWrist() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BloodPressureWrist(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::Keyboard() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Keyboard(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::Mouse() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Mouse(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::Joystick() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Joystick(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::Gamepad() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Gamepad(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::DigitizerTablet() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DigitizerTablet(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::CardReader() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CardReader(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::DigitalPen() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DigitalPen(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::BarcodeScanner() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BarcodeScanner(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::RunningWalkingInShoe() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RunningWalkingInShoe(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::RunningWalkingOnShoe() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RunningWalkingOnShoe(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::RunningWalkingOnHip() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RunningWalkingOnHip(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::CyclingComputer() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CyclingComputer(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::CyclingSpeedSensor() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CyclingSpeedSensor(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::CyclingCadenceSensor() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CyclingCadenceSensor(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::CyclingPowerSensor() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CyclingPowerSensor(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::CyclingSpeedCadenceSensor() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CyclingSpeedCadenceSensor(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::OximeterFingertip() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OximeterFingertip(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::OximeterWristWorn() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OximeterWristWorn(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::LocationDisplay() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LocationDisplay(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::LocationNavigationDisplay() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LocationNavigationDisplay(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::LocationPod() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LocationPod(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearanceSubcategoriesStatics::LocationNavigationPod() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LocationNavigationPod(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearance::RawValue() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RawValue(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearance::Category() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Category(&value)); - return value; -} - -template uint16_t impl_IBluetoothLEAppearance::SubCategory() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SubCategory(&value)); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothLEAppearance impl_IBluetoothLEAppearanceStatics::FromRawValue(uint16_t rawValue) const -{ - Windows::Devices::Bluetooth::BluetoothLEAppearance appearance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromRawValue(rawValue, put(appearance))); - return appearance; -} - -template Windows::Devices::Bluetooth::BluetoothLEAppearance impl_IBluetoothLEAppearanceStatics::FromParts(uint16_t appearanceCategory, uint16_t appearanceSubCategory) const -{ - Windows::Devices::Bluetooth::BluetoothLEAppearance appearance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromParts(appearanceCategory, appearanceSubCategory, put(appearance))); - return appearance; -} - -template hstring impl_IBluetoothLEDevice::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template hstring impl_IBluetoothLEDevice::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBluetoothLEDevice::GattServices() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_GattServices(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothConnectionStatus impl_IBluetoothLEDevice::ConnectionStatus() const -{ - Windows::Devices::Bluetooth::BluetoothConnectionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ConnectionStatus(&value)); - return value; -} - -template uint64_t impl_IBluetoothLEDevice::BluetoothAddress() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BluetoothAddress(&value)); - return value; -} - -template Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService impl_IBluetoothLEDevice::GetGattService(GUID serviceUuid) const -{ - Windows::Devices::Bluetooth::GenericAttributeProfile::GattDeviceService service { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetGattService(serviceUuid, put(service))); - return service; -} - -template event_token impl_IBluetoothLEDevice::NameChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NameChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IBluetoothLEDevice::NameChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Bluetooth::IBluetoothLEDevice::remove_NameChanged, NameChanged(handler)); -} - -template void impl_IBluetoothLEDevice::NameChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NameChanged(token)); -} - -template event_token impl_IBluetoothLEDevice::GattServicesChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_GattServicesChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IBluetoothLEDevice::GattServicesChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Bluetooth::IBluetoothLEDevice::remove_GattServicesChanged, GattServicesChanged(handler)); -} - -template void impl_IBluetoothLEDevice::GattServicesChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_GattServicesChanged(token)); -} - -template event_token impl_IBluetoothLEDevice::ConnectionStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ConnectionStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IBluetoothLEDevice::ConnectionStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Bluetooth::IBluetoothLEDevice::remove_ConnectionStatusChanged, ConnectionStatusChanged(handler)); -} - -template void impl_IBluetoothLEDevice::ConnectionStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ConnectionStatusChanged(token)); -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IBluetoothLEDevice2::DeviceInformation() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformation(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothLEAppearance impl_IBluetoothLEDevice2::Appearance() const -{ - Windows::Devices::Bluetooth::BluetoothLEAppearance value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Appearance(put(value))); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothAddressType impl_IBluetoothLEDevice2::BluetoothAddressType() const -{ - Windows::Devices::Bluetooth::BluetoothAddressType value {}; - check_hresult(static_cast(static_cast(*this))->get_BluetoothAddressType(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBluetoothLEDeviceStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBluetoothLEDeviceStatics::FromBluetoothAddressAsync(uint64_t bluetoothAddress) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromBluetoothAddressAsync(bluetoothAddress, put(operation))); - return operation; -} - -template hstring impl_IBluetoothLEDeviceStatics::GetDeviceSelector() const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothLEDeviceStatics2::GetDeviceSelectorFromPairingState(bool pairingState) const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromPairingState(pairingState, put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothLEDeviceStatics2::GetDeviceSelectorFromConnectionStatus(Windows::Devices::Bluetooth::BluetoothConnectionStatus connectionStatus) const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromConnectionStatus(connectionStatus, put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothLEDeviceStatics2::GetDeviceSelectorFromDeviceName(hstring_ref deviceName) const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromDeviceName(get(deviceName), put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothLEDeviceStatics2::GetDeviceSelectorFromBluetoothAddress(uint64_t bluetoothAddress) const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromBluetoothAddress(bluetoothAddress, put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothLEDeviceStatics2::GetDeviceSelectorFromBluetoothAddress(uint64_t bluetoothAddress, Windows::Devices::Bluetooth::BluetoothAddressType bluetoothAddressType) const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromBluetoothAddressWithBluetoothAddressType(bluetoothAddress, bluetoothAddressType, put(deviceSelector))); - return deviceSelector; -} - -template hstring impl_IBluetoothLEDeviceStatics2::GetDeviceSelectorFromAppearance(const Windows::Devices::Bluetooth::BluetoothLEAppearance & appearance) const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromAppearance(get(appearance), put(deviceSelector))); - return deviceSelector; -} - -template Windows::Foundation::IAsyncOperation impl_IBluetoothLEDeviceStatics2::FromBluetoothAddressAsync(uint64_t bluetoothAddress, Windows::Devices::Bluetooth::BluetoothAddressType bluetoothAddressType) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromBluetoothAddressWithBluetoothAddressTypeAsync(bluetoothAddress, bluetoothAddressType, put(operation))); - return operation; -} - -template uint32_t impl_IBluetoothClassOfDevice::RawValue() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RawValue(&value)); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothMajorClass impl_IBluetoothClassOfDevice::MajorClass() const -{ - Windows::Devices::Bluetooth::BluetoothMajorClass value {}; - check_hresult(static_cast(static_cast(*this))->get_MajorClass(&value)); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothMinorClass impl_IBluetoothClassOfDevice::MinorClass() const -{ - Windows::Devices::Bluetooth::BluetoothMinorClass value {}; - check_hresult(static_cast(static_cast(*this))->get_MinorClass(&value)); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothServiceCapabilities impl_IBluetoothClassOfDevice::ServiceCapabilities() const -{ - Windows::Devices::Bluetooth::BluetoothServiceCapabilities value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceCapabilities(&value)); - return value; -} - -template Windows::Devices::Bluetooth::BluetoothClassOfDevice impl_IBluetoothClassOfDeviceStatics::FromRawValue(uint32_t rawValue) const -{ - Windows::Devices::Bluetooth::BluetoothClassOfDevice classOfDevice { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromRawValue(rawValue, put(classOfDevice))); - return classOfDevice; -} - -template Windows::Devices::Bluetooth::BluetoothClassOfDevice impl_IBluetoothClassOfDeviceStatics::FromParts(Windows::Devices::Bluetooth::BluetoothMajorClass majorClass, Windows::Devices::Bluetooth::BluetoothMinorClass minorClass, Windows::Devices::Bluetooth::BluetoothServiceCapabilities serviceCapabilities) const -{ - Windows::Devices::Bluetooth::BluetoothClassOfDevice classOfDevice { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromParts(majorClass, minorClass, serviceCapabilities, put(classOfDevice))); - return classOfDevice; -} - -template Windows::Foundation::IReference impl_IBluetoothSignalStrengthFilter::InRangeThresholdInDBm() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InRangeThresholdInDBm(put(value))); - return value; -} - -template void impl_IBluetoothSignalStrengthFilter::InRangeThresholdInDBm(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InRangeThresholdInDBm(get(value))); -} - -template Windows::Foundation::IReference impl_IBluetoothSignalStrengthFilter::OutOfRangeThresholdInDBm() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_OutOfRangeThresholdInDBm(put(value))); - return value; -} - -template void impl_IBluetoothSignalStrengthFilter::OutOfRangeThresholdInDBm(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutOfRangeThresholdInDBm(get(value))); -} - -template Windows::Foundation::IReference impl_IBluetoothSignalStrengthFilter::OutOfRangeTimeout() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_OutOfRangeTimeout(put(value))); - return value; -} - -template void impl_IBluetoothSignalStrengthFilter::OutOfRangeTimeout(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutOfRangeTimeout(get(value))); -} - -template Windows::Foundation::IReference impl_IBluetoothSignalStrengthFilter::SamplingInterval() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_SamplingInterval(put(value))); - return value; -} - -template void impl_IBluetoothSignalStrengthFilter::SamplingInterval(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SamplingInterval(get(value))); -} - -inline Windows::Devices::Bluetooth::BluetoothClassOfDevice BluetoothClassOfDevice::FromRawValue(uint32_t rawValue) -{ - return get_activation_factory().FromRawValue(rawValue); -} - -inline Windows::Devices::Bluetooth::BluetoothClassOfDevice BluetoothClassOfDevice::FromParts(Windows::Devices::Bluetooth::BluetoothMajorClass majorClass, Windows::Devices::Bluetooth::BluetoothMinorClass minorClass, Windows::Devices::Bluetooth::BluetoothServiceCapabilities serviceCapabilities) -{ - return get_activation_factory().FromParts(majorClass, minorClass, serviceCapabilities); -} - -inline Windows::Foundation::IAsyncOperation BluetoothDevice::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline Windows::Foundation::IAsyncOperation BluetoothDevice::FromHostNameAsync(const Windows::Networking::HostName & hostName) -{ - return get_activation_factory().FromHostNameAsync(hostName); -} - -inline Windows::Foundation::IAsyncOperation BluetoothDevice::FromBluetoothAddressAsync(uint64_t address) -{ - return get_activation_factory().FromBluetoothAddressAsync(address); -} - -inline hstring BluetoothDevice::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline hstring BluetoothDevice::GetDeviceSelectorFromPairingState(bool pairingState) -{ - return get_activation_factory().GetDeviceSelectorFromPairingState(pairingState); -} - -inline hstring BluetoothDevice::GetDeviceSelectorFromConnectionStatus(Windows::Devices::Bluetooth::BluetoothConnectionStatus connectionStatus) -{ - return get_activation_factory().GetDeviceSelectorFromConnectionStatus(connectionStatus); -} - -inline hstring BluetoothDevice::GetDeviceSelectorFromDeviceName(hstring_ref deviceName) -{ - return get_activation_factory().GetDeviceSelectorFromDeviceName(deviceName); -} - -inline hstring BluetoothDevice::GetDeviceSelectorFromBluetoothAddress(uint64_t bluetoothAddress) -{ - return get_activation_factory().GetDeviceSelectorFromBluetoothAddress(bluetoothAddress); -} - -inline hstring BluetoothDevice::GetDeviceSelectorFromClassOfDevice(const Windows::Devices::Bluetooth::BluetoothClassOfDevice & classOfDevice) -{ - return get_activation_factory().GetDeviceSelectorFromClassOfDevice(classOfDevice); -} - -inline Windows::Devices::Bluetooth::BluetoothLEAppearance BluetoothLEAppearance::FromRawValue(uint16_t rawValue) -{ - return get_activation_factory().FromRawValue(rawValue); -} - -inline Windows::Devices::Bluetooth::BluetoothLEAppearance BluetoothLEAppearance::FromParts(uint16_t appearanceCategory, uint16_t appearanceSubCategory) -{ - return get_activation_factory().FromParts(appearanceCategory, appearanceSubCategory); -} - -inline uint16_t BluetoothLEAppearanceCategories::Uncategorized() -{ - return get_activation_factory().Uncategorized(); -} - -inline uint16_t BluetoothLEAppearanceCategories::Phone() -{ - return get_activation_factory().Phone(); -} - -inline uint16_t BluetoothLEAppearanceCategories::Computer() -{ - return get_activation_factory().Computer(); -} - -inline uint16_t BluetoothLEAppearanceCategories::Watch() -{ - return get_activation_factory().Watch(); -} - -inline uint16_t BluetoothLEAppearanceCategories::Clock() -{ - return get_activation_factory().Clock(); -} - -inline uint16_t BluetoothLEAppearanceCategories::Display() -{ - return get_activation_factory().Display(); -} - -inline uint16_t BluetoothLEAppearanceCategories::RemoteControl() -{ - return get_activation_factory().RemoteControl(); -} - -inline uint16_t BluetoothLEAppearanceCategories::EyeGlasses() -{ - return get_activation_factory().EyeGlasses(); -} - -inline uint16_t BluetoothLEAppearanceCategories::Tag() -{ - return get_activation_factory().Tag(); -} - -inline uint16_t BluetoothLEAppearanceCategories::Keyring() -{ - return get_activation_factory().Keyring(); -} - -inline uint16_t BluetoothLEAppearanceCategories::MediaPlayer() -{ - return get_activation_factory().MediaPlayer(); -} - -inline uint16_t BluetoothLEAppearanceCategories::BarcodeScanner() -{ - return get_activation_factory().BarcodeScanner(); -} - -inline uint16_t BluetoothLEAppearanceCategories::Thermometer() -{ - return get_activation_factory().Thermometer(); -} - -inline uint16_t BluetoothLEAppearanceCategories::HeartRate() -{ - return get_activation_factory().HeartRate(); -} - -inline uint16_t BluetoothLEAppearanceCategories::BloodPressure() -{ - return get_activation_factory().BloodPressure(); -} - -inline uint16_t BluetoothLEAppearanceCategories::HumanInterfaceDevice() -{ - return get_activation_factory().HumanInterfaceDevice(); -} - -inline uint16_t BluetoothLEAppearanceCategories::GlucoseMeter() -{ - return get_activation_factory().GlucoseMeter(); -} - -inline uint16_t BluetoothLEAppearanceCategories::RunningWalking() -{ - return get_activation_factory().RunningWalking(); -} - -inline uint16_t BluetoothLEAppearanceCategories::Cycling() -{ - return get_activation_factory().Cycling(); -} - -inline uint16_t BluetoothLEAppearanceCategories::PulseOximeter() -{ - return get_activation_factory().PulseOximeter(); -} - -inline uint16_t BluetoothLEAppearanceCategories::WeightScale() -{ - return get_activation_factory().WeightScale(); -} - -inline uint16_t BluetoothLEAppearanceCategories::OutdoorSportActivity() -{ - return get_activation_factory().OutdoorSportActivity(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::Generic() -{ - return get_activation_factory().Generic(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::SportsWatch() -{ - return get_activation_factory().SportsWatch(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::ThermometerEar() -{ - return get_activation_factory().ThermometerEar(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::HeartRateBelt() -{ - return get_activation_factory().HeartRateBelt(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::BloodPressureArm() -{ - return get_activation_factory().BloodPressureArm(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::BloodPressureWrist() -{ - return get_activation_factory().BloodPressureWrist(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::Keyboard() -{ - return get_activation_factory().Keyboard(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::Mouse() -{ - return get_activation_factory().Mouse(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::Joystick() -{ - return get_activation_factory().Joystick(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::Gamepad() -{ - return get_activation_factory().Gamepad(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::DigitizerTablet() -{ - return get_activation_factory().DigitizerTablet(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::CardReader() -{ - return get_activation_factory().CardReader(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::DigitalPen() -{ - return get_activation_factory().DigitalPen(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::BarcodeScanner() -{ - return get_activation_factory().BarcodeScanner(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::RunningWalkingInShoe() -{ - return get_activation_factory().RunningWalkingInShoe(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::RunningWalkingOnShoe() -{ - return get_activation_factory().RunningWalkingOnShoe(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::RunningWalkingOnHip() -{ - return get_activation_factory().RunningWalkingOnHip(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::CyclingComputer() -{ - return get_activation_factory().CyclingComputer(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::CyclingSpeedSensor() -{ - return get_activation_factory().CyclingSpeedSensor(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::CyclingCadenceSensor() -{ - return get_activation_factory().CyclingCadenceSensor(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::CyclingPowerSensor() -{ - return get_activation_factory().CyclingPowerSensor(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::CyclingSpeedCadenceSensor() -{ - return get_activation_factory().CyclingSpeedCadenceSensor(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::OximeterFingertip() -{ - return get_activation_factory().OximeterFingertip(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::OximeterWristWorn() -{ - return get_activation_factory().OximeterWristWorn(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::LocationDisplay() -{ - return get_activation_factory().LocationDisplay(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::LocationNavigationDisplay() -{ - return get_activation_factory().LocationNavigationDisplay(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::LocationPod() -{ - return get_activation_factory().LocationPod(); -} - -inline uint16_t BluetoothLEAppearanceSubcategories::LocationNavigationPod() -{ - return get_activation_factory().LocationNavigationPod(); -} - -inline Windows::Foundation::IAsyncOperation BluetoothLEDevice::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline Windows::Foundation::IAsyncOperation BluetoothLEDevice::FromBluetoothAddressAsync(uint64_t bluetoothAddress) -{ - return get_activation_factory().FromBluetoothAddressAsync(bluetoothAddress); -} - -inline hstring BluetoothLEDevice::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline hstring BluetoothLEDevice::GetDeviceSelectorFromPairingState(bool pairingState) -{ - return get_activation_factory().GetDeviceSelectorFromPairingState(pairingState); -} - -inline hstring BluetoothLEDevice::GetDeviceSelectorFromConnectionStatus(Windows::Devices::Bluetooth::BluetoothConnectionStatus connectionStatus) -{ - return get_activation_factory().GetDeviceSelectorFromConnectionStatus(connectionStatus); -} - -inline hstring BluetoothLEDevice::GetDeviceSelectorFromDeviceName(hstring_ref deviceName) -{ - return get_activation_factory().GetDeviceSelectorFromDeviceName(deviceName); -} - -inline hstring BluetoothLEDevice::GetDeviceSelectorFromBluetoothAddress(uint64_t bluetoothAddress) -{ - return get_activation_factory().GetDeviceSelectorFromBluetoothAddress(bluetoothAddress); -} - -inline hstring BluetoothLEDevice::GetDeviceSelectorFromBluetoothAddress(uint64_t bluetoothAddress, Windows::Devices::Bluetooth::BluetoothAddressType bluetoothAddressType) -{ - return get_activation_factory().GetDeviceSelectorFromBluetoothAddress(bluetoothAddress, bluetoothAddressType); -} - -inline hstring BluetoothLEDevice::GetDeviceSelectorFromAppearance(const Windows::Devices::Bluetooth::BluetoothLEAppearance & appearance) -{ - return get_activation_factory().GetDeviceSelectorFromAppearance(appearance); -} - -inline Windows::Foundation::IAsyncOperation BluetoothLEDevice::FromBluetoothAddressAsync(uint64_t bluetoothAddress, Windows::Devices::Bluetooth::BluetoothAddressType bluetoothAddressType) -{ - return get_activation_factory().FromBluetoothAddressAsync(bluetoothAddress, bluetoothAddressType); -} - -inline BluetoothSignalStrengthFilter::BluetoothSignalStrengthFilter() : - BluetoothSignalStrengthFilter(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Custom.h b/10.0.14393.0/winrt/Windows.Devices.Custom.h deleted file mode 100644 index a8996e213..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Custom.h +++ /dev/null @@ -1,327 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Devices.Custom.3.h" -#include "Windows.Devices.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendIOControlAsync(abi_arg_in ioControlCode, abi_arg_in inputBuffer, abi_arg_in outputBuffer, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SendIOControlAsync(*reinterpret_cast(&ioControlCode), *reinterpret_cast(&inputBuffer), *reinterpret_cast(&outputBuffer))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySendIOControlAsync(abi_arg_in ioControlCode, abi_arg_in inputBuffer, abi_arg_in outputBuffer, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TrySendIOControlAsync(*reinterpret_cast(&ioControlCode), *reinterpret_cast(&inputBuffer), *reinterpret_cast(&outputBuffer))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(GUID classGuid, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector(classGuid)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, Windows::Devices::Custom::DeviceAccessMode desiredAccess, Windows::Devices::Custom::DeviceSharingMode sharingMode, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId), desiredAccess, sharingMode)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AccessMode(Windows::Devices::Custom::IOControlAccessMode * value) noexcept override - { - try - { - *value = detach(this->shim().AccessMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BufferingMethod(Windows::Devices::Custom::IOControlBufferingMethod * value) noexcept override - { - try - { - *value = detach(this->shim().BufferingMethod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Function(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Function()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceType(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().DeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ControlCode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ControlCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateIOControlCode(uint16_t deviceType, uint16_t function, Windows::Devices::Custom::IOControlAccessMode accessMode, Windows::Devices::Custom::IOControlBufferingMethod bufferingMethod, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateIOControlCode(deviceType, function, accessMode, bufferingMethod)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Unknown(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Unknown()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Custom { - -template uint16_t impl_IKnownDeviceTypesStatics::Unknown() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Unknown(&value)); - return value; -} - -template Windows::Devices::Custom::IOControlAccessMode impl_IIOControlCode::AccessMode() const -{ - Windows::Devices::Custom::IOControlAccessMode value {}; - check_hresult(static_cast(static_cast(*this))->get_AccessMode(&value)); - return value; -} - -template Windows::Devices::Custom::IOControlBufferingMethod impl_IIOControlCode::BufferingMethod() const -{ - Windows::Devices::Custom::IOControlBufferingMethod value {}; - check_hresult(static_cast(static_cast(*this))->get_BufferingMethod(&value)); - return value; -} - -template uint16_t impl_IIOControlCode::Function() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Function(&value)); - return value; -} - -template uint16_t impl_IIOControlCode::DeviceType() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DeviceType(&value)); - return value; -} - -template uint32_t impl_IIOControlCode::ControlCode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ControlCode(&value)); - return value; -} - -template Windows::Devices::Custom::IOControlCode impl_IIOControlCodeFactory::CreateIOControlCode(uint16_t deviceType, uint16_t function, Windows::Devices::Custom::IOControlAccessMode accessMode, Windows::Devices::Custom::IOControlBufferingMethod bufferingMethod) const -{ - Windows::Devices::Custom::IOControlCode instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateIOControlCode(deviceType, function, accessMode, bufferingMethod, put(instance))); - return instance; -} - -template hstring impl_ICustomDeviceStatics::GetDeviceSelector(GUID classGuid) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(classGuid, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICustomDeviceStatics::FromIdAsync(hstring_ref deviceId, Windows::Devices::Custom::DeviceAccessMode desiredAccess, Windows::Devices::Custom::DeviceSharingMode sharingMode) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), desiredAccess, sharingMode, put(operation))); - return operation; -} - -template Windows::Storage::Streams::IInputStream impl_ICustomDevice::InputStream() const -{ - Windows::Storage::Streams::IInputStream value; - check_hresult(static_cast(static_cast(*this))->get_InputStream(put(value))); - return value; -} - -template Windows::Storage::Streams::IOutputStream impl_ICustomDevice::OutputStream() const -{ - Windows::Storage::Streams::IOutputStream value; - check_hresult(static_cast(static_cast(*this))->get_OutputStream(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICustomDevice::SendIOControlAsync(const Windows::Devices::Custom::IIOControlCode & ioControlCode, const Windows::Storage::Streams::IBuffer & inputBuffer, const Windows::Storage::Streams::IBuffer & outputBuffer) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SendIOControlAsync(get(ioControlCode), get(inputBuffer), get(outputBuffer), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ICustomDevice::TrySendIOControlAsync(const Windows::Devices::Custom::IIOControlCode & ioControlCode, const Windows::Storage::Streams::IBuffer & inputBuffer, const Windows::Storage::Streams::IBuffer & outputBuffer) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_TrySendIOControlAsync(get(ioControlCode), get(inputBuffer), get(outputBuffer), put(operation))); - return operation; -} - -inline hstring CustomDevice::GetDeviceSelector(GUID classGuid) -{ - return get_activation_factory().GetDeviceSelector(classGuid); -} - -inline Windows::Foundation::IAsyncOperation CustomDevice::FromIdAsync(hstring_ref deviceId, Windows::Devices::Custom::DeviceAccessMode desiredAccess, Windows::Devices::Custom::DeviceSharingMode sharingMode) -{ - return get_activation_factory().FromIdAsync(deviceId, desiredAccess, sharingMode); -} - -inline IOControlCode::IOControlCode(uint16_t deviceType, uint16_t function, Windows::Devices::Custom::IOControlAccessMode accessMode, Windows::Devices::Custom::IOControlBufferingMethod bufferingMethod) : - IOControlCode(get_activation_factory().CreateIOControlCode(deviceType, function, accessMode, bufferingMethod)) -{} - -inline uint16_t KnownDeviceTypes::Unknown() -{ - return get_activation_factory().Unknown(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Enumeration.Pnp.h b/10.0.14393.0/winrt/Windows.Devices.Enumeration.Pnp.h deleted file mode 100644 index 0b325565c..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Enumeration.Pnp.h +++ /dev/null @@ -1,582 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Devices.Enumeration.Pnp.3.h" -#include "Windows.Devices.Enumeration.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::Devices::Enumeration::Pnp::PnpObjectType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Update(abi_arg_in updateInfo) noexcept override - { - try - { - this->shim().Update(*reinterpret_cast(&updateInfo)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromIdAsync(Windows::Devices::Enumeration::Pnp::PnpObjectType type, abi_arg_in id, abi_arg_in> requestedProperties, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().CreateFromIdAsync(type, *reinterpret_cast(&id), *reinterpret_cast *>(&requestedProperties))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsync(Windows::Devices::Enumeration::Pnp::PnpObjectType type, abi_arg_in> requestedProperties, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FindAllAsync(type, *reinterpret_cast *>(&requestedProperties))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsyncAqsFilter(Windows::Devices::Enumeration::Pnp::PnpObjectType type, abi_arg_in> requestedProperties, abi_arg_in aqsFilter, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FindAllAsync(type, *reinterpret_cast *>(&requestedProperties), *reinterpret_cast(&aqsFilter))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWatcher(Windows::Devices::Enumeration::Pnp::PnpObjectType type, abi_arg_in> requestedProperties, abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher(type, *reinterpret_cast *>(&requestedProperties))); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWatcherAqsFilter(Windows::Devices::Enumeration::Pnp::PnpObjectType type, abi_arg_in> requestedProperties, abi_arg_in aqsFilter, abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher(type, *reinterpret_cast *>(&requestedProperties), *reinterpret_cast(&aqsFilter))); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::Devices::Enumeration::Pnp::PnpObjectType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Added(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Added(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Added(event_token token) noexcept override - { - try - { - this->shim().Added(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Updated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Updated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Updated(event_token token) noexcept override - { - try - { - this->shim().Updated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Removed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Removed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Removed(event_token token) noexcept override - { - try - { - this->shim().Removed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnumerationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnumerationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnumerationCompleted(event_token token) noexcept override - { - try - { - this->shim().EnumerationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Devices::Enumeration::DeviceWatcherStatus * status) noexcept override - { - try - { - *status = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Enumeration::Pnp { - -template Windows::Devices::Enumeration::Pnp::PnpObjectType impl_IPnpObjectUpdate::Type() const -{ - Windows::Devices::Enumeration::Pnp::PnpObjectType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template hstring impl_IPnpObjectUpdate::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IPnpObjectUpdate::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template event_token impl_IPnpObjectWatcher::Added(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Added(get(handler), &token)); - return token; -} - -template event_revoker impl_IPnpObjectWatcher::Added(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::Pnp::IPnpObjectWatcher::remove_Added, Added(handler)); -} - -template void impl_IPnpObjectWatcher::Added(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Added(token)); -} - -template event_token impl_IPnpObjectWatcher::Updated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Updated(get(handler), &token)); - return token; -} - -template event_revoker impl_IPnpObjectWatcher::Updated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::Pnp::IPnpObjectWatcher::remove_Updated, Updated(handler)); -} - -template void impl_IPnpObjectWatcher::Updated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Updated(token)); -} - -template event_token impl_IPnpObjectWatcher::Removed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Removed(get(handler), &token)); - return token; -} - -template event_revoker impl_IPnpObjectWatcher::Removed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::Pnp::IPnpObjectWatcher::remove_Removed, Removed(handler)); -} - -template void impl_IPnpObjectWatcher::Removed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Removed(token)); -} - -template event_token impl_IPnpObjectWatcher::EnumerationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnumerationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IPnpObjectWatcher::EnumerationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::Pnp::IPnpObjectWatcher::remove_EnumerationCompleted, EnumerationCompleted(handler)); -} - -template void impl_IPnpObjectWatcher::EnumerationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnumerationCompleted(token)); -} - -template event_token impl_IPnpObjectWatcher::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IPnpObjectWatcher::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::Pnp::IPnpObjectWatcher::remove_Stopped, Stopped(handler)); -} - -template void impl_IPnpObjectWatcher::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template Windows::Devices::Enumeration::DeviceWatcherStatus impl_IPnpObjectWatcher::Status() const -{ - Windows::Devices::Enumeration::DeviceWatcherStatus status {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&status)); - return status; -} - -template void impl_IPnpObjectWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IPnpObjectWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template Windows::Foundation::IAsyncOperation impl_IPnpObjectStatics::CreateFromIdAsync(Windows::Devices::Enumeration::Pnp::PnpObjectType type, hstring_ref id, const Windows::Foundation::Collections::IIterable & requestedProperties) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromIdAsync(type, get(id), get(requestedProperties), put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IPnpObjectStatics::FindAllAsync(Windows::Devices::Enumeration::Pnp::PnpObjectType type, const Windows::Foundation::Collections::IIterable & requestedProperties) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsync(type, get(requestedProperties), put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IPnpObjectStatics::FindAllAsync(Windows::Devices::Enumeration::Pnp::PnpObjectType type, const Windows::Foundation::Collections::IIterable & requestedProperties, hstring_ref aqsFilter) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsyncAqsFilter(type, get(requestedProperties), get(aqsFilter), put(asyncOp))); - return asyncOp; -} - -template Windows::Devices::Enumeration::Pnp::PnpObjectWatcher impl_IPnpObjectStatics::CreateWatcher(Windows::Devices::Enumeration::Pnp::PnpObjectType type, const Windows::Foundation::Collections::IIterable & requestedProperties) const -{ - Windows::Devices::Enumeration::Pnp::PnpObjectWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcher(type, get(requestedProperties), put(watcher))); - return watcher; -} - -template Windows::Devices::Enumeration::Pnp::PnpObjectWatcher impl_IPnpObjectStatics::CreateWatcher(Windows::Devices::Enumeration::Pnp::PnpObjectType type, const Windows::Foundation::Collections::IIterable & requestedProperties, hstring_ref aqsFilter) const -{ - Windows::Devices::Enumeration::Pnp::PnpObjectWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcherAqsFilter(type, get(requestedProperties), get(aqsFilter), put(watcher))); - return watcher; -} - -template Windows::Devices::Enumeration::Pnp::PnpObjectType impl_IPnpObject::Type() const -{ - Windows::Devices::Enumeration::Pnp::PnpObjectType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template hstring impl_IPnpObject::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IPnpObject::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template void impl_IPnpObject::Update(const Windows::Devices::Enumeration::Pnp::PnpObjectUpdate & updateInfo) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Update(get(updateInfo))); -} - -inline Windows::Foundation::IAsyncOperation PnpObject::CreateFromIdAsync(Windows::Devices::Enumeration::Pnp::PnpObjectType type, hstring_ref id, const Windows::Foundation::Collections::IIterable & requestedProperties) -{ - return get_activation_factory().CreateFromIdAsync(type, id, requestedProperties); -} - -inline Windows::Foundation::IAsyncOperation PnpObject::FindAllAsync(Windows::Devices::Enumeration::Pnp::PnpObjectType type, const Windows::Foundation::Collections::IIterable & requestedProperties) -{ - return get_activation_factory().FindAllAsync(type, requestedProperties); -} - -inline Windows::Foundation::IAsyncOperation PnpObject::FindAllAsync(Windows::Devices::Enumeration::Pnp::PnpObjectType type, const Windows::Foundation::Collections::IIterable & requestedProperties, hstring_ref aqsFilter) -{ - return get_activation_factory().FindAllAsync(type, requestedProperties, aqsFilter); -} - -inline Windows::Devices::Enumeration::Pnp::PnpObjectWatcher PnpObject::CreateWatcher(Windows::Devices::Enumeration::Pnp::PnpObjectType type, const Windows::Foundation::Collections::IIterable & requestedProperties) -{ - return get_activation_factory().CreateWatcher(type, requestedProperties); -} - -inline Windows::Devices::Enumeration::Pnp::PnpObjectWatcher PnpObject::CreateWatcher(Windows::Devices::Enumeration::Pnp::PnpObjectType type, const Windows::Foundation::Collections::IIterable & requestedProperties, hstring_ref aqsFilter) -{ - return get_activation_factory().CreateWatcher(type, requestedProperties, aqsFilter); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Enumeration.h b/10.0.14393.0/winrt/Windows.Devices.Enumeration.h deleted file mode 100644 index 23ada1217..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Enumeration.h +++ /dev/null @@ -1,2592 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Popups.3.h" -#include "internal/Windows.ApplicationModel.Background.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" -#include "Windows.Foundation.Collections.h" -#include "Windows.Storage.Streams.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Enumeration::DeviceAccessStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_AccessChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().AccessChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AccessChanged(event_token cookie) noexcept override - { - try - { - this->shim().AccessChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentStatus(Windows::Devices::Enumeration::DeviceAccessStatus * status) noexcept override - { - try - { - *status = detach(this->shim().CurrentStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromId(abi_arg_in deviceId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromId(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromDeviceClassId(GUID deviceClassId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromDeviceClassId(deviceClassId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromDeviceClass(Windows::Devices::Enumeration::DeviceClass deviceClass, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromDeviceClass(deviceClass)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Device(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Device()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDefault(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDefault()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EnclosureLocation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EnclosureLocation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Update(abi_arg_in updateInfo) noexcept override - { - try - { - this->shim().Update(*reinterpret_cast(&updateInfo)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetThumbnailAsync(abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().GetThumbnailAsync()); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGlyphThumbnailAsync(abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().GetGlyphThumbnailAsync()); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::Devices::Enumeration::DeviceInformationKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pairing(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pairing()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_PairAsync(Windows::Devices::Enumeration::DevicePairingKinds pairingKindsSupported, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().PairAsync(pairingKindsSupported)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PairWithProtectionLevelAsync(Windows::Devices::Enumeration::DevicePairingKinds pairingKindsSupported, Windows::Devices::Enumeration::DevicePairingProtectionLevel minProtectionLevel, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().PairAsync(pairingKindsSupported, minProtectionLevel)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PairWithProtectionLevelAndSettingsAsync(Windows::Devices::Enumeration::DevicePairingKinds pairingKindsSupported, Windows::Devices::Enumeration::DevicePairingProtectionLevel minProtectionLevel, abi_arg_in devicePairingSettings, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().PairAsync(pairingKindsSupported, minProtectionLevel, *reinterpret_cast(&devicePairingSettings))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PairingRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PairingRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PairingRequested(event_token token) noexcept override - { - try - { - this->shim().PairingRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsPaired(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPaired()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanPair(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanPair()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PairAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().PairAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PairWithProtectionLevelAsync(Windows::Devices::Enumeration::DevicePairingProtectionLevel minProtectionLevel, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().PairAsync(minProtectionLevel)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProtectionLevel(Windows::Devices::Enumeration::DevicePairingProtectionLevel * value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Custom(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Custom()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PairWithProtectionLevelAndSettingsAsync(Windows::Devices::Enumeration::DevicePairingProtectionLevel minProtectionLevel, abi_arg_in devicePairingSettings, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().PairAsync(minProtectionLevel, *reinterpret_cast(&devicePairingSettings))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnpairAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().UnpairAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryRegisterForAllInboundPairingRequests(Windows::Devices::Enumeration::DevicePairingKinds pairingKindsSupported, bool * result) noexcept override - { - try - { - *result = detach(this->shim().TryRegisterForAllInboundPairingRequests(pairingKindsSupported)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromIdAsync(abi_arg_in deviceId, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().CreateFromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromIdAsyncAdditionalProperties(abi_arg_in deviceId, abi_arg_in> additionalProperties, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().CreateFromIdAsync(*reinterpret_cast(&deviceId), *reinterpret_cast *>(&additionalProperties))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsync(abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FindAllAsync()); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsyncDeviceClass(Windows::Devices::Enumeration::DeviceClass deviceClass, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FindAllAsync(deviceClass)); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsyncAqsFilter(abi_arg_in aqsFilter, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FindAllAsync(*reinterpret_cast(&aqsFilter))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsyncAqsFilterAndAdditionalProperties(abi_arg_in aqsFilter, abi_arg_in> additionalProperties, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FindAllAsync(*reinterpret_cast(&aqsFilter), *reinterpret_cast *>(&additionalProperties))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWatcher(abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher()); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWatcherDeviceClass(Windows::Devices::Enumeration::DeviceClass deviceClass, abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher(deviceClass)); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWatcherAqsFilter(abi_arg_in aqsFilter, abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher(*reinterpret_cast(&aqsFilter))); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWatcherAqsFilterAndAdditionalProperties(abi_arg_in aqsFilter, abi_arg_in> additionalProperties, abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher(*reinterpret_cast(&aqsFilter), *reinterpret_cast *>(&additionalProperties))); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAqsFilterFromDeviceClass(Windows::Devices::Enumeration::DeviceClass deviceClass, abi_arg_out aqsFilter) noexcept override - { - try - { - *aqsFilter = detach(this->shim().GetAqsFilterFromDeviceClass(deviceClass)); - return S_OK; - } - catch (...) - { - *aqsFilter = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromIdAsyncWithKindAndAdditionalProperties(abi_arg_in deviceId, abi_arg_in> additionalProperties, Windows::Devices::Enumeration::DeviceInformationKind kind, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().CreateFromIdAsync(*reinterpret_cast(&deviceId), *reinterpret_cast *>(&additionalProperties), kind)); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsyncWithKindAqsFilterAndAdditionalProperties(abi_arg_in aqsFilter, abi_arg_in> additionalProperties, Windows::Devices::Enumeration::DeviceInformationKind kind, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FindAllAsync(*reinterpret_cast(&aqsFilter), *reinterpret_cast *>(&additionalProperties), kind)); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWatcherWithKindAqsFilterAndAdditionalProperties(abi_arg_in aqsFilter, abi_arg_in> additionalProperties, Windows::Devices::Enumeration::DeviceInformationKind kind, abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher(*reinterpret_cast(&aqsFilter), *reinterpret_cast *>(&additionalProperties), kind)); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::Devices::Enumeration::DeviceInformationKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PairingKind(Windows::Devices::Enumeration::DevicePairingKinds * value) noexcept override - { - try - { - *value = detach(this->shim().PairingKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pin()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Accept() noexcept override - { - try - { - this->shim().Accept(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcceptWithPin(abi_arg_in pin) noexcept override - { - try - { - this->shim().Accept(*reinterpret_cast(&pin)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Enumeration::DevicePairingResultStatus * status) noexcept override - { - try - { - *status = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtectionLevelUsed(Windows::Devices::Enumeration::DevicePairingProtectionLevel * value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionLevelUsed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Filter(abi_arg_out filter) noexcept override - { - try - { - *filter = detach(this->shim().Filter()); - return S_OK; - } - catch (...) - { - *filter = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Appearance(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Appearance()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequestedProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequestedProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DeviceSelected(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DeviceSelected(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DeviceSelected(event_token token) noexcept override - { - try - { - this->shim().DeviceSelected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DisconnectButtonClicked(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DisconnectButtonClicked(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DisconnectButtonClicked(event_token token) noexcept override - { - try - { - this->shim().DisconnectButtonClicked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DevicePickerDismissed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DevicePickerDismissed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DevicePickerDismissed(event_token token) noexcept override - { - try - { - this->shim().DevicePickerDismissed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Show(abi_arg_in selection) noexcept override - { - try - { - this->shim().Show(*reinterpret_cast(&selection)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowWithPlacement(abi_arg_in selection, Windows::UI::Popups::Placement placement) noexcept override - { - try - { - this->shim().Show(*reinterpret_cast(&selection), placement); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickSingleDeviceAsync(abi_arg_in selection, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PickSingleDeviceAsync(*reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickSingleDeviceAsyncWithPlacement(abi_arg_in selection, Windows::UI::Popups::Placement placement, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PickSingleDeviceAsync(*reinterpret_cast(&selection), placement)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Hide() noexcept override - { - try - { - this->shim().Hide(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDisplayStatus(abi_arg_in device, abi_arg_in status, Windows::Devices::Enumeration::DevicePickerDisplayStatusOptions options) noexcept override - { - try - { - this->shim().SetDisplayStatus(*reinterpret_cast(&device), *reinterpret_cast(&status), options); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ForegroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().ForegroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackgroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().BackgroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccentColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccentColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AccentColor(abi_arg_in value) noexcept override - { - try - { - this->shim().AccentColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedForegroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedForegroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedForegroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedForegroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedBackgroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedBackgroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedAccentColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedAccentColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedAccentColor(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedAccentColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SupportedDeviceClasses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedDeviceClasses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedDeviceSelectors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedDeviceSelectors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedDevice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedDevice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Enumeration::DeviceUnpairingResultStatus * status) noexcept override - { - try - { - *status = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Added(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Added(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Added(event_token token) noexcept override - { - try - { - this->shim().Added(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Updated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Updated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Updated(event_token token) noexcept override - { - try - { - this->shim().Updated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Removed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Removed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Removed(event_token token) noexcept override - { - try - { - this->shim().Removed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnumerationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnumerationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnumerationCompleted(event_token token) noexcept override - { - try - { - this->shim().EnumerationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Devices::Enumeration::DeviceWatcherStatus * status) noexcept override - { - try - { - *status = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetBackgroundTrigger(abi_arg_in> requestedEventKinds, abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().GetBackgroundTrigger(*reinterpret_cast *>(&requestedEventKinds))); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::Devices::Enumeration::DeviceWatcherEventKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceInformationUpdate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformationUpdate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceWatcherEvents(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DeviceWatcherEvents()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InDock(bool * value) noexcept override - { - try - { - *value = detach(this->shim().InDock()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InLid(bool * value) noexcept override - { - try - { - *value = detach(this->shim().InLid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Panel(Windows::Devices::Enumeration::Panel * value) noexcept override - { - try - { - *value = detach(this->shim().Panel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RotationAngleInDegreesClockwise(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RotationAngleInDegreesClockwise()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Enumeration { - -template hstring impl_IDeviceConnectionChangeTriggerDetails::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template hstring impl_IDevicePickerAppearance::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IDevicePickerAppearance::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template Windows::UI::Color impl_IDevicePickerAppearance::ForegroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_ForegroundColor(put(value))); - return value; -} - -template void impl_IDevicePickerAppearance::ForegroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ForegroundColor(get(value))); -} - -template Windows::UI::Color impl_IDevicePickerAppearance::BackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(put(value))); - return value; -} - -template void impl_IDevicePickerAppearance::BackgroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackgroundColor(get(value))); -} - -template Windows::UI::Color impl_IDevicePickerAppearance::AccentColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_AccentColor(put(value))); - return value; -} - -template void impl_IDevicePickerAppearance::AccentColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AccentColor(get(value))); -} - -template Windows::UI::Color impl_IDevicePickerAppearance::SelectedForegroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedForegroundColor(put(value))); - return value; -} - -template void impl_IDevicePickerAppearance::SelectedForegroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedForegroundColor(get(value))); -} - -template Windows::UI::Color impl_IDevicePickerAppearance::SelectedBackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedBackgroundColor(put(value))); - return value; -} - -template void impl_IDevicePickerAppearance::SelectedBackgroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedBackgroundColor(get(value))); -} - -template Windows::UI::Color impl_IDevicePickerAppearance::SelectedAccentColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedAccentColor(put(value))); - return value; -} - -template void impl_IDevicePickerAppearance::SelectedAccentColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedAccentColor(get(value))); -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IDeviceSelectedEventArgs::SelectedDevice() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedDevice(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IDeviceDisconnectButtonClickedEventArgs::Device() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Device(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IDevicePickerFilter::SupportedDeviceClasses() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SupportedDeviceClasses(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IDevicePickerFilter::SupportedDeviceSelectors() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SupportedDeviceSelectors(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DevicePickerFilter impl_IDevicePicker::Filter() const -{ - Windows::Devices::Enumeration::DevicePickerFilter filter { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Filter(put(filter))); - return filter; -} - -template Windows::Devices::Enumeration::DevicePickerAppearance impl_IDevicePicker::Appearance() const -{ - Windows::Devices::Enumeration::DevicePickerAppearance value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Appearance(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IDevicePicker::RequestedProperties() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_RequestedProperties(put(value))); - return value; -} - -template event_token impl_IDevicePicker::DeviceSelected(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DeviceSelected(get(handler), &token)); - return token; -} - -template event_revoker impl_IDevicePicker::DeviceSelected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::IDevicePicker::remove_DeviceSelected, DeviceSelected(handler)); -} - -template void impl_IDevicePicker::DeviceSelected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DeviceSelected(token)); -} - -template event_token impl_IDevicePicker::DisconnectButtonClicked(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DisconnectButtonClicked(get(handler), &token)); - return token; -} - -template event_revoker impl_IDevicePicker::DisconnectButtonClicked(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::IDevicePicker::remove_DisconnectButtonClicked, DisconnectButtonClicked(handler)); -} - -template void impl_IDevicePicker::DisconnectButtonClicked(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DisconnectButtonClicked(token)); -} - -template event_token impl_IDevicePicker::DevicePickerDismissed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DevicePickerDismissed(get(handler), &token)); - return token; -} - -template event_revoker impl_IDevicePicker::DevicePickerDismissed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::IDevicePicker::remove_DevicePickerDismissed, DevicePickerDismissed(handler)); -} - -template void impl_IDevicePicker::DevicePickerDismissed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DevicePickerDismissed(token)); -} - -template void impl_IDevicePicker::Show(const Windows::Foundation::Rect & selection) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Show(get(selection))); -} - -template void impl_IDevicePicker::Show(const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement placement) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowWithPlacement(get(selection), placement)); -} - -template Windows::Foundation::IAsyncOperation impl_IDevicePicker::PickSingleDeviceAsync(const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PickSingleDeviceAsync(get(selection), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDevicePicker::PickSingleDeviceAsync(const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement placement) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PickSingleDeviceAsyncWithPlacement(get(selection), placement, put(operation))); - return operation; -} - -template void impl_IDevicePicker::Hide() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Hide()); -} - -template void impl_IDevicePicker::SetDisplayStatus(const Windows::Devices::Enumeration::DeviceInformation & device, hstring_ref status, Windows::Devices::Enumeration::DevicePickerDisplayStatusOptions options) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDisplayStatus(get(device), get(status), options)); -} - -template bool impl_IEnclosureLocation::InDock() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_InDock(&value)); - return value; -} - -template bool impl_IEnclosureLocation::InLid() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_InLid(&value)); - return value; -} - -template Windows::Devices::Enumeration::Panel impl_IEnclosureLocation::Panel() const -{ - Windows::Devices::Enumeration::Panel value {}; - check_hresult(static_cast(static_cast(*this))->get_Panel(&value)); - return value; -} - -template uint32_t impl_IEnclosureLocation2::RotationAngleInDegreesClockwise() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RotationAngleInDegreesClockwise(&value)); - return value; -} - -template hstring impl_IDeviceInformationUpdate::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IDeviceInformationUpdate::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformationKind impl_IDeviceInformationUpdate2::Kind() const -{ - Windows::Devices::Enumeration::DeviceInformationKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template event_token impl_IDeviceWatcher::Added(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Added(get(handler), &token)); - return token; -} - -template event_revoker impl_IDeviceWatcher::Added(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::IDeviceWatcher::remove_Added, Added(handler)); -} - -template void impl_IDeviceWatcher::Added(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Added(token)); -} - -template event_token impl_IDeviceWatcher::Updated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Updated(get(handler), &token)); - return token; -} - -template event_revoker impl_IDeviceWatcher::Updated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::IDeviceWatcher::remove_Updated, Updated(handler)); -} - -template void impl_IDeviceWatcher::Updated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Updated(token)); -} - -template event_token impl_IDeviceWatcher::Removed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Removed(get(handler), &token)); - return token; -} - -template event_revoker impl_IDeviceWatcher::Removed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::IDeviceWatcher::remove_Removed, Removed(handler)); -} - -template void impl_IDeviceWatcher::Removed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Removed(token)); -} - -template event_token impl_IDeviceWatcher::EnumerationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnumerationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IDeviceWatcher::EnumerationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::IDeviceWatcher::remove_EnumerationCompleted, EnumerationCompleted(handler)); -} - -template void impl_IDeviceWatcher::EnumerationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnumerationCompleted(token)); -} - -template event_token impl_IDeviceWatcher::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IDeviceWatcher::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::IDeviceWatcher::remove_Stopped, Stopped(handler)); -} - -template void impl_IDeviceWatcher::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template Windows::Devices::Enumeration::DeviceWatcherStatus impl_IDeviceWatcher::Status() const -{ - Windows::Devices::Enumeration::DeviceWatcherStatus status {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&status)); - return status; -} - -template void impl_IDeviceWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IDeviceWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template Windows::ApplicationModel::Background::DeviceWatcherTrigger impl_IDeviceWatcher2::GetBackgroundTrigger(const Windows::Foundation::Collections::IIterable & requestedEventKinds) const -{ - Windows::ApplicationModel::Background::DeviceWatcherTrigger trigger { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetBackgroundTrigger(get(requestedEventKinds), put(trigger))); - return trigger; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationStatics::CreateFromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromIdAsync(get(deviceId), put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationStatics::CreateFromIdAsync(hstring_ref deviceId, const Windows::Foundation::Collections::IIterable & additionalProperties) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromIdAsyncAdditionalProperties(get(deviceId), get(additionalProperties), put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationStatics::FindAllAsync() const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsync(put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationStatics::FindAllAsync(Windows::Devices::Enumeration::DeviceClass deviceClass) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsyncDeviceClass(deviceClass, put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationStatics::FindAllAsync(hstring_ref aqsFilter) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsyncAqsFilter(get(aqsFilter), put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationStatics::FindAllAsync(hstring_ref aqsFilter, const Windows::Foundation::Collections::IIterable & additionalProperties) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsyncAqsFilterAndAdditionalProperties(get(aqsFilter), get(additionalProperties), put(asyncOp))); - return asyncOp; -} - -template Windows::Devices::Enumeration::DeviceWatcher impl_IDeviceInformationStatics::CreateWatcher() const -{ - Windows::Devices::Enumeration::DeviceWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcher(put(watcher))); - return watcher; -} - -template Windows::Devices::Enumeration::DeviceWatcher impl_IDeviceInformationStatics::CreateWatcher(Windows::Devices::Enumeration::DeviceClass deviceClass) const -{ - Windows::Devices::Enumeration::DeviceWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcherDeviceClass(deviceClass, put(watcher))); - return watcher; -} - -template Windows::Devices::Enumeration::DeviceWatcher impl_IDeviceInformationStatics::CreateWatcher(hstring_ref aqsFilter) const -{ - Windows::Devices::Enumeration::DeviceWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcherAqsFilter(get(aqsFilter), put(watcher))); - return watcher; -} - -template Windows::Devices::Enumeration::DeviceWatcher impl_IDeviceInformationStatics::CreateWatcher(hstring_ref aqsFilter, const Windows::Foundation::Collections::IIterable & additionalProperties) const -{ - Windows::Devices::Enumeration::DeviceWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcherAqsFilterAndAdditionalProperties(get(aqsFilter), get(additionalProperties), put(watcher))); - return watcher; -} - -template hstring impl_IDeviceInformationStatics2::GetAqsFilterFromDeviceClass(Windows::Devices::Enumeration::DeviceClass deviceClass) const -{ - hstring aqsFilter; - check_hresult(static_cast(static_cast(*this))->abi_GetAqsFilterFromDeviceClass(deviceClass, put(aqsFilter))); - return aqsFilter; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationStatics2::CreateFromIdAsync(hstring_ref deviceId, const Windows::Foundation::Collections::IIterable & additionalProperties, Windows::Devices::Enumeration::DeviceInformationKind kind) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromIdAsyncWithKindAndAdditionalProperties(get(deviceId), get(additionalProperties), kind, put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationStatics2::FindAllAsync(hstring_ref aqsFilter, const Windows::Foundation::Collections::IIterable & additionalProperties, Windows::Devices::Enumeration::DeviceInformationKind kind) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsyncWithKindAqsFilterAndAdditionalProperties(get(aqsFilter), get(additionalProperties), kind, put(asyncOp))); - return asyncOp; -} - -template Windows::Devices::Enumeration::DeviceWatcher impl_IDeviceInformationStatics2::CreateWatcher(hstring_ref aqsFilter, const Windows::Foundation::Collections::IIterable & additionalProperties, Windows::Devices::Enumeration::DeviceInformationKind kind) const -{ - Windows::Devices::Enumeration::DeviceWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcherWithKindAqsFilterAndAdditionalProperties(get(aqsFilter), get(additionalProperties), kind, put(watcher))); - return watcher; -} - -template hstring impl_IDeviceInformation::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IDeviceInformation::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template bool impl_IDeviceInformation::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template bool impl_IDeviceInformation::IsDefault() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDefault(&value)); - return value; -} - -template Windows::Devices::Enumeration::EnclosureLocation impl_IDeviceInformation::EnclosureLocation() const -{ - Windows::Devices::Enumeration::EnclosureLocation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EnclosureLocation(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IDeviceInformation::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template void impl_IDeviceInformation::Update(const Windows::Devices::Enumeration::DeviceInformationUpdate & updateInfo) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Update(get(updateInfo))); -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformation::GetThumbnailAsync() const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_GetThumbnailAsync(put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformation::GetGlyphThumbnailAsync() const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_GetGlyphThumbnailAsync(put(asyncOp))); - return asyncOp; -} - -template Windows::Devices::Enumeration::DevicePairingResultStatus impl_IDevicePairingResult::Status() const -{ - Windows::Devices::Enumeration::DevicePairingResultStatus status {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&status)); - return status; -} - -template Windows::Devices::Enumeration::DevicePairingProtectionLevel impl_IDevicePairingResult::ProtectionLevelUsed() const -{ - Windows::Devices::Enumeration::DevicePairingProtectionLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtectionLevelUsed(&value)); - return value; -} - -template Windows::Devices::Enumeration::DeviceUnpairingResultStatus impl_IDeviceUnpairingResult::Status() const -{ - Windows::Devices::Enumeration::DeviceUnpairingResultStatus status {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&status)); - return status; -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IDevicePairingRequestedEventArgs::DeviceInformation() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformation(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DevicePairingKinds impl_IDevicePairingRequestedEventArgs::PairingKind() const -{ - Windows::Devices::Enumeration::DevicePairingKinds value {}; - check_hresult(static_cast(static_cast(*this))->get_PairingKind(&value)); - return value; -} - -template hstring impl_IDevicePairingRequestedEventArgs::Pin() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Pin(put(value))); - return value; -} - -template void impl_IDevicePairingRequestedEventArgs::Accept() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Accept()); -} - -template void impl_IDevicePairingRequestedEventArgs::Accept(hstring_ref pin) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptWithPin(get(pin))); -} - -template Windows::Foundation::Deferral impl_IDevicePairingRequestedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationCustomPairing::PairAsync(Windows::Devices::Enumeration::DevicePairingKinds pairingKindsSupported) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_PairAsync(pairingKindsSupported, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationCustomPairing::PairAsync(Windows::Devices::Enumeration::DevicePairingKinds pairingKindsSupported, Windows::Devices::Enumeration::DevicePairingProtectionLevel minProtectionLevel) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_PairWithProtectionLevelAsync(pairingKindsSupported, minProtectionLevel, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationCustomPairing::PairAsync(Windows::Devices::Enumeration::DevicePairingKinds pairingKindsSupported, Windows::Devices::Enumeration::DevicePairingProtectionLevel minProtectionLevel, const Windows::Devices::Enumeration::IDevicePairingSettings & devicePairingSettings) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_PairWithProtectionLevelAndSettingsAsync(pairingKindsSupported, minProtectionLevel, get(devicePairingSettings), put(result))); - return result; -} - -template event_token impl_IDeviceInformationCustomPairing::PairingRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PairingRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IDeviceInformationCustomPairing::PairingRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::IDeviceInformationCustomPairing::remove_PairingRequested, PairingRequested(handler)); -} - -template void impl_IDeviceInformationCustomPairing::PairingRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PairingRequested(token)); -} - -template bool impl_IDeviceInformationPairing::IsPaired() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPaired(&value)); - return value; -} - -template bool impl_IDeviceInformationPairing::CanPair() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanPair(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationPairing::PairAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_PairAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationPairing::PairAsync(Windows::Devices::Enumeration::DevicePairingProtectionLevel minProtectionLevel) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_PairWithProtectionLevelAsync(minProtectionLevel, put(result))); - return result; -} - -template Windows::Devices::Enumeration::DevicePairingProtectionLevel impl_IDeviceInformationPairing2::ProtectionLevel() const -{ - Windows::Devices::Enumeration::DevicePairingProtectionLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtectionLevel(&value)); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformationCustomPairing impl_IDeviceInformationPairing2::Custom() const -{ - Windows::Devices::Enumeration::DeviceInformationCustomPairing value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Custom(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationPairing2::PairAsync(Windows::Devices::Enumeration::DevicePairingProtectionLevel minProtectionLevel, const Windows::Devices::Enumeration::IDevicePairingSettings & devicePairingSettings) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_PairWithProtectionLevelAndSettingsAsync(minProtectionLevel, get(devicePairingSettings), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDeviceInformationPairing2::UnpairAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_UnpairAsync(put(result))); - return result; -} - -template bool impl_IDeviceInformationPairingStatics::TryRegisterForAllInboundPairingRequests(Windows::Devices::Enumeration::DevicePairingKinds pairingKindsSupported) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryRegisterForAllInboundPairingRequests(pairingKindsSupported, &result)); - return result; -} - -template Windows::Devices::Enumeration::DeviceInformationKind impl_IDeviceInformation2::Kind() const -{ - Windows::Devices::Enumeration::DeviceInformationKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformationPairing impl_IDeviceInformation2::Pairing() const -{ - Windows::Devices::Enumeration::DeviceInformationPairing value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Pairing(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceAccessStatus impl_IDeviceAccessChangedEventArgs::Status() const -{ - Windows::Devices::Enumeration::DeviceAccessStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template hstring impl_IDeviceAccessChangedEventArgs2::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template event_token impl_IDeviceAccessInformation::AccessChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_AccessChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IDeviceAccessInformation::AccessChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Enumeration::IDeviceAccessInformation::remove_AccessChanged, AccessChanged(handler)); -} - -template void impl_IDeviceAccessInformation::AccessChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AccessChanged(cookie)); -} - -template Windows::Devices::Enumeration::DeviceAccessStatus impl_IDeviceAccessInformation::CurrentStatus() const -{ - Windows::Devices::Enumeration::DeviceAccessStatus status {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentStatus(&status)); - return status; -} - -template Windows::Devices::Enumeration::DeviceAccessInformation impl_IDeviceAccessInformationStatics::CreateFromId(hstring_ref deviceId) const -{ - Windows::Devices::Enumeration::DeviceAccessInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromId(get(deviceId), put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceAccessInformation impl_IDeviceAccessInformationStatics::CreateFromDeviceClassId(GUID deviceClassId) const -{ - Windows::Devices::Enumeration::DeviceAccessInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromDeviceClassId(deviceClassId, put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceAccessInformation impl_IDeviceAccessInformationStatics::CreateFromDeviceClass(Windows::Devices::Enumeration::DeviceClass deviceClass) const -{ - Windows::Devices::Enumeration::DeviceAccessInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromDeviceClass(deviceClass, put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceWatcherEventKind impl_IDeviceWatcherEvent::Kind() const -{ - Windows::Devices::Enumeration::DeviceWatcherEventKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IDeviceWatcherEvent::DeviceInformation() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformation(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformationUpdate impl_IDeviceWatcherEvent::DeviceInformationUpdate() const -{ - Windows::Devices::Enumeration::DeviceInformationUpdate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformationUpdate(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IDeviceWatcherTriggerDetails::DeviceWatcherEvents() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_DeviceWatcherEvents(put(value))); - return value; -} - -inline Windows::Devices::Enumeration::DeviceAccessInformation DeviceAccessInformation::CreateFromId(hstring_ref deviceId) -{ - return get_activation_factory().CreateFromId(deviceId); -} - -inline Windows::Devices::Enumeration::DeviceAccessInformation DeviceAccessInformation::CreateFromDeviceClassId(GUID deviceClassId) -{ - return get_activation_factory().CreateFromDeviceClassId(deviceClassId); -} - -inline Windows::Devices::Enumeration::DeviceAccessInformation DeviceAccessInformation::CreateFromDeviceClass(Windows::Devices::Enumeration::DeviceClass deviceClass) -{ - return get_activation_factory().CreateFromDeviceClass(deviceClass); -} - -inline Windows::Foundation::IAsyncOperation DeviceInformation::CreateFromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().CreateFromIdAsync(deviceId); -} - -inline Windows::Foundation::IAsyncOperation DeviceInformation::CreateFromIdAsync(hstring_ref deviceId, const Windows::Foundation::Collections::IIterable & additionalProperties) -{ - return get_activation_factory().CreateFromIdAsync(deviceId, additionalProperties); -} - -inline Windows::Foundation::IAsyncOperation DeviceInformation::FindAllAsync() -{ - return get_activation_factory().FindAllAsync(); -} - -inline Windows::Foundation::IAsyncOperation DeviceInformation::FindAllAsync(Windows::Devices::Enumeration::DeviceClass deviceClass) -{ - return get_activation_factory().FindAllAsync(deviceClass); -} - -inline Windows::Foundation::IAsyncOperation DeviceInformation::FindAllAsync(hstring_ref aqsFilter) -{ - return get_activation_factory().FindAllAsync(aqsFilter); -} - -inline Windows::Foundation::IAsyncOperation DeviceInformation::FindAllAsync(hstring_ref aqsFilter, const Windows::Foundation::Collections::IIterable & additionalProperties) -{ - return get_activation_factory().FindAllAsync(aqsFilter, additionalProperties); -} - -inline Windows::Devices::Enumeration::DeviceWatcher DeviceInformation::CreateWatcher() -{ - return get_activation_factory().CreateWatcher(); -} - -inline Windows::Devices::Enumeration::DeviceWatcher DeviceInformation::CreateWatcher(Windows::Devices::Enumeration::DeviceClass deviceClass) -{ - return get_activation_factory().CreateWatcher(deviceClass); -} - -inline Windows::Devices::Enumeration::DeviceWatcher DeviceInformation::CreateWatcher(hstring_ref aqsFilter) -{ - return get_activation_factory().CreateWatcher(aqsFilter); -} - -inline Windows::Devices::Enumeration::DeviceWatcher DeviceInformation::CreateWatcher(hstring_ref aqsFilter, const Windows::Foundation::Collections::IIterable & additionalProperties) -{ - return get_activation_factory().CreateWatcher(aqsFilter, additionalProperties); -} - -inline hstring DeviceInformation::GetAqsFilterFromDeviceClass(Windows::Devices::Enumeration::DeviceClass deviceClass) -{ - return get_activation_factory().GetAqsFilterFromDeviceClass(deviceClass); -} - -inline Windows::Foundation::IAsyncOperation DeviceInformation::CreateFromIdAsync(hstring_ref deviceId, const Windows::Foundation::Collections::IIterable & additionalProperties, Windows::Devices::Enumeration::DeviceInformationKind kind) -{ - return get_activation_factory().CreateFromIdAsync(deviceId, additionalProperties, kind); -} - -inline Windows::Foundation::IAsyncOperation DeviceInformation::FindAllAsync(hstring_ref aqsFilter, const Windows::Foundation::Collections::IIterable & additionalProperties, Windows::Devices::Enumeration::DeviceInformationKind kind) -{ - return get_activation_factory().FindAllAsync(aqsFilter, additionalProperties, kind); -} - -inline Windows::Devices::Enumeration::DeviceWatcher DeviceInformation::CreateWatcher(hstring_ref aqsFilter, const Windows::Foundation::Collections::IIterable & additionalProperties, Windows::Devices::Enumeration::DeviceInformationKind kind) -{ - return get_activation_factory().CreateWatcher(aqsFilter, additionalProperties, kind); -} - -inline bool DeviceInformationPairing::TryRegisterForAllInboundPairingRequests(Windows::Devices::Enumeration::DevicePairingKinds pairingKindsSupported) -{ - return get_activation_factory().TryRegisterForAllInboundPairingRequests(pairingKindsSupported); -} - -inline DevicePicker::DevicePicker() : - DevicePicker(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Geolocation.Geofencing.h b/10.0.14393.0/winrt/Windows.Devices.Geolocation.Geofencing.h deleted file mode 100644 index 90d7c0415..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Geolocation.Geofencing.h +++ /dev/null @@ -1,561 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Devices.Geolocation.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Geolocation.Geofencing.3.h" -#include "Windows.Devices.Geolocation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DwellTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DwellTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonitoredStates(Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates * value) noexcept override - { - try - { - *value = detach(this->shim().MonitoredStates()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Geoshape(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Geoshape()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SingleUse(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SingleUse()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in id, abi_arg_in geoshape, abi_arg_out geofence) noexcept override - { - try - { - *geofence = detach(this->shim().Create(*reinterpret_cast(&id), *reinterpret_cast(&geoshape))); - return S_OK; - } - catch (...) - { - *geofence = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithMonitorStates(abi_arg_in id, abi_arg_in geoshape, Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates monitoredStates, bool singleUse, abi_arg_out geofence) noexcept override - { - try - { - *geofence = detach(this->shim().CreateWithMonitorStates(*reinterpret_cast(&id), *reinterpret_cast(&geoshape), monitoredStates, singleUse)); - return S_OK; - } - catch (...) - { - *geofence = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithMonitorStatesAndDwellTime(abi_arg_in id, abi_arg_in geoshape, Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates monitoredStates, bool singleUse, abi_arg_in dwellTime, abi_arg_out geofence) noexcept override - { - try - { - *geofence = detach(this->shim().CreateWithMonitorStatesAndDwellTime(*reinterpret_cast(&id), *reinterpret_cast(&geoshape), monitoredStates, singleUse, *reinterpret_cast(&dwellTime))); - return S_OK; - } - catch (...) - { - *geofence = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithMonitorStatesDwellTimeStartTimeAndDuration(abi_arg_in id, abi_arg_in geoshape, Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates monitoredStates, bool singleUse, abi_arg_in dwellTime, abi_arg_in startTime, abi_arg_in duration, abi_arg_out geofence) noexcept override - { - try - { - *geofence = detach(this->shim().CreateWithMonitorStatesDwellTimeStartTimeAndDuration(*reinterpret_cast(&id), *reinterpret_cast(&geoshape), monitoredStates, singleUse, *reinterpret_cast(&dwellTime), *reinterpret_cast(&startTime), *reinterpret_cast(&duration))); - return S_OK; - } - catch (...) - { - *geofence = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Geolocation::Geofencing::GeofenceMonitorStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Geofences(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Geofences()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastKnownGeoposition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastKnownGeoposition()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_GeofenceStateChanged(abi_arg_in> eventHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().GeofenceStateChanged(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_GeofenceStateChanged(event_token token) noexcept override - { - try - { - this->shim().GeofenceStateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadReports(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ReadReports()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StatusChanged(abi_arg_in> eventHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StatusChanged(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StatusChanged(event_token token) noexcept override - { - try - { - this->shim().StatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Current(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Current()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NewState(Windows::Devices::Geolocation::Geofencing::GeofenceState * value) noexcept override - { - try - { - *value = detach(this->shim().NewState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Geofence(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Geofence()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Geoposition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Geoposition()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemovalReason(Windows::Devices::Geolocation::Geofencing::GeofenceRemovalReason * value) noexcept override - { - try - { - *value = detach(this->shim().RemovalReason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Geolocation::Geofencing { - -template Windows::Devices::Geolocation::Geofencing::Geofence impl_IGeofenceFactory::Create(hstring_ref id, const Windows::Devices::Geolocation::IGeoshape & geoshape) const -{ - Windows::Devices::Geolocation::Geofencing::Geofence geofence { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(id), get(geoshape), put(geofence))); - return geofence; -} - -template Windows::Devices::Geolocation::Geofencing::Geofence impl_IGeofenceFactory::CreateWithMonitorStates(hstring_ref id, const Windows::Devices::Geolocation::IGeoshape & geoshape, Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates monitoredStates, bool singleUse) const -{ - Windows::Devices::Geolocation::Geofencing::Geofence geofence { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithMonitorStates(get(id), get(geoshape), monitoredStates, singleUse, put(geofence))); - return geofence; -} - -template Windows::Devices::Geolocation::Geofencing::Geofence impl_IGeofenceFactory::CreateWithMonitorStatesAndDwellTime(hstring_ref id, const Windows::Devices::Geolocation::IGeoshape & geoshape, Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates monitoredStates, bool singleUse, const Windows::Foundation::TimeSpan & dwellTime) const -{ - Windows::Devices::Geolocation::Geofencing::Geofence geofence { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithMonitorStatesAndDwellTime(get(id), get(geoshape), monitoredStates, singleUse, get(dwellTime), put(geofence))); - return geofence; -} - -template Windows::Devices::Geolocation::Geofencing::Geofence impl_IGeofenceFactory::CreateWithMonitorStatesDwellTimeStartTimeAndDuration(hstring_ref id, const Windows::Devices::Geolocation::IGeoshape & geoshape, Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates monitoredStates, bool singleUse, const Windows::Foundation::TimeSpan & dwellTime, const Windows::Foundation::DateTime & startTime, const Windows::Foundation::TimeSpan & duration) const -{ - Windows::Devices::Geolocation::Geofencing::Geofence geofence { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithMonitorStatesDwellTimeStartTimeAndDuration(get(id), get(geoshape), monitoredStates, singleUse, get(dwellTime), get(startTime), get(duration), put(geofence))); - return geofence; -} - -template Windows::Foundation::DateTime impl_IGeofence::StartTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IGeofence::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IGeofence::DwellTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_DwellTime(put(value))); - return value; -} - -template hstring impl_IGeofence::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates impl_IGeofence::MonitoredStates() const -{ - Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates value {}; - check_hresult(static_cast(static_cast(*this))->get_MonitoredStates(&value)); - return value; -} - -template Windows::Devices::Geolocation::IGeoshape impl_IGeofence::Geoshape() const -{ - Windows::Devices::Geolocation::IGeoshape value; - check_hresult(static_cast(static_cast(*this))->get_Geoshape(put(value))); - return value; -} - -template bool impl_IGeofence::SingleUse() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SingleUse(&value)); - return value; -} - -template Windows::Devices::Geolocation::Geofencing::GeofenceState impl_IGeofenceStateChangeReport::NewState() const -{ - Windows::Devices::Geolocation::Geofencing::GeofenceState value {}; - check_hresult(static_cast(static_cast(*this))->get_NewState(&value)); - return value; -} - -template Windows::Devices::Geolocation::Geofencing::Geofence impl_IGeofenceStateChangeReport::Geofence() const -{ - Windows::Devices::Geolocation::Geofencing::Geofence value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Geofence(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geoposition impl_IGeofenceStateChangeReport::Geoposition() const -{ - Windows::Devices::Geolocation::Geoposition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Geoposition(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geofencing::GeofenceRemovalReason impl_IGeofenceStateChangeReport::RemovalReason() const -{ - Windows::Devices::Geolocation::Geofencing::GeofenceRemovalReason value {}; - check_hresult(static_cast(static_cast(*this))->get_RemovalReason(&value)); - return value; -} - -template Windows::Devices::Geolocation::Geofencing::GeofenceMonitor impl_IGeofenceMonitorStatics::Current() const -{ - Windows::Devices::Geolocation::Geofencing::GeofenceMonitor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Current(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geofencing::GeofenceMonitorStatus impl_IGeofenceMonitor::Status() const -{ - Windows::Devices::Geolocation::Geofencing::GeofenceMonitorStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IGeofenceMonitor::Geofences() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Geofences(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geoposition impl_IGeofenceMonitor::LastKnownGeoposition() const -{ - Windows::Devices::Geolocation::Geoposition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LastKnownGeoposition(put(value))); - return value; -} - -template event_token impl_IGeofenceMonitor::GeofenceStateChanged(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_GeofenceStateChanged(get(eventHandler), &token)); - return token; -} - -template event_revoker impl_IGeofenceMonitor::GeofenceStateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Geolocation::Geofencing::IGeofenceMonitor::remove_GeofenceStateChanged, GeofenceStateChanged(eventHandler)); -} - -template void impl_IGeofenceMonitor::GeofenceStateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_GeofenceStateChanged(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_IGeofenceMonitor::ReadReports() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_ReadReports(put(value))); - return value; -} - -template event_token impl_IGeofenceMonitor::StatusChanged(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StatusChanged(get(eventHandler), &token)); - return token; -} - -template event_revoker impl_IGeofenceMonitor::StatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Geolocation::Geofencing::IGeofenceMonitor::remove_StatusChanged, StatusChanged(eventHandler)); -} - -template void impl_IGeofenceMonitor::StatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StatusChanged(token)); -} - -inline Geofence::Geofence(hstring_ref id, const Windows::Devices::Geolocation::IGeoshape & geoshape) : - Geofence(get_activation_factory().Create(id, geoshape)) -{} - -inline Geofence::Geofence(hstring_ref id, const Windows::Devices::Geolocation::IGeoshape & geoshape, Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates monitoredStates, bool singleUse) : - Geofence(get_activation_factory().CreateWithMonitorStates(id, geoshape, monitoredStates, singleUse)) -{} - -inline Geofence::Geofence(hstring_ref id, const Windows::Devices::Geolocation::IGeoshape & geoshape, Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates monitoredStates, bool singleUse, const Windows::Foundation::TimeSpan & dwellTime) : - Geofence(get_activation_factory().CreateWithMonitorStatesAndDwellTime(id, geoshape, monitoredStates, singleUse, dwellTime)) -{} - -inline Geofence::Geofence(hstring_ref id, const Windows::Devices::Geolocation::IGeoshape & geoshape, Windows::Devices::Geolocation::Geofencing::MonitoredGeofenceStates monitoredStates, bool singleUse, const Windows::Foundation::TimeSpan & dwellTime, const Windows::Foundation::DateTime & startTime, const Windows::Foundation::TimeSpan & duration) : - Geofence(get_activation_factory().CreateWithMonitorStatesDwellTimeStartTimeAndDuration(id, geoshape, monitoredStates, singleUse, dwellTime, startTime, duration)) -{} - -inline Windows::Devices::Geolocation::Geofencing::GeofenceMonitor GeofenceMonitor::Current() -{ - return get_activation_factory().Current(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Geolocation.h b/10.0.14393.0/winrt/Windows.Devices.Geolocation.h deleted file mode 100644 index effdd5f95..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Geolocation.h +++ /dev/null @@ -1,1779 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Geolocation.3.h" -#include "Windows.Devices.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Country(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Country()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_City(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().City()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PostalCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PostalCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NorthwestCorner(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NorthwestCorner()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SoutheastCorner(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SoutheastCorner()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Center(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Center()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinAltitude(double * value) noexcept override - { - try - { - *value = detach(this->shim().MinAltitude()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxAltitude(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxAltitude()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in northwestCorner, abi_arg_in southeastCorner, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&northwestCorner), *reinterpret_cast(&southeastCorner))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithAltitudeReference(abi_arg_in northwestCorner, abi_arg_in southeastCorner, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithAltitudeReference(*reinterpret_cast(&northwestCorner), *reinterpret_cast(&southeastCorner), altitudeReferenceSystem)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithAltitudeReferenceAndSpatialReference(abi_arg_in northwestCorner, abi_arg_in southeastCorner, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithAltitudeReferenceAndSpatialReference(*reinterpret_cast(&northwestCorner), *reinterpret_cast(&southeastCorner), altitudeReferenceSystem, spatialReferenceId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryCompute(abi_arg_in> positions, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryCompute(*reinterpret_cast *>(&positions))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryComputeWithAltitudeReference(abi_arg_in> positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeRefSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryCompute(*reinterpret_cast *>(&positions), altitudeRefSystem)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryComputeWithAltitudeReferenceAndSpatialReference(abi_arg_in> positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeRefSystem, uint32_t spatialReferenceId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryCompute(*reinterpret_cast *>(&positions), altitudeRefSystem, spatialReferenceId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Center(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Center()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Radius(double * value) noexcept override - { - try - { - *value = detach(this->shim().Radius()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in position, double radius, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&position), radius)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithAltitudeReferenceSystem(abi_arg_in position, double radius, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithAltitudeReferenceSystem(*reinterpret_cast(&position), radius, altitudeReferenceSystem)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithAltitudeReferenceSystemAndSpatialReferenceId(abi_arg_in position, double radius, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithAltitudeReferenceSystemAndSpatialReferenceId(*reinterpret_cast(&position), radius, altitudeReferenceSystem, spatialReferenceId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Latitude(double * value) noexcept override - { - try - { - *value = detach(this->shim().Latitude()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Longitude(double * value) noexcept override - { - try - { - *value = detach(this->shim().Longitude()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Altitude(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Altitude()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Accuracy(double * value) noexcept override - { - try - { - *value = detach(this->shim().Accuracy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AltitudeAccuracy(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AltitudeAccuracy()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Heading(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Heading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Speed(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Speed()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PositionDilutionOfPrecision(abi_arg_out> ppValue) noexcept override - { - try - { - *ppValue = detach(this->shim().PositionDilutionOfPrecision()); - return S_OK; - } - catch (...) - { - *ppValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalDilutionOfPrecision(abi_arg_out> ppValue) noexcept override - { - try - { - *ppValue = detach(this->shim().HorizontalDilutionOfPrecision()); - return S_OK; - } - catch (...) - { - *ppValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalDilutionOfPrecision(abi_arg_out> ppValue) noexcept override - { - try - { - *ppValue = detach(this->shim().VerticalDilutionOfPrecision()); - return S_OK; - } - catch (...) - { - *ppValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Point(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Point()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PositionSource(Windows::Devices::Geolocation::PositionSource * pValue) noexcept override - { - try - { - *pValue = detach(this->shim().PositionSource()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SatelliteData(abi_arg_out ppValue) noexcept override - { - try - { - *ppValue = detach(this->shim().SatelliteData()); - return S_OK; - } - catch (...) - { - *ppValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PositionSourceTimestamp(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PositionSourceTimestamp()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DesiredAccuracy(Windows::Devices::Geolocation::PositionAccuracy * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredAccuracy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredAccuracy(Windows::Devices::Geolocation::PositionAccuracy value) noexcept override - { - try - { - this->shim().DesiredAccuracy(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MovementThreshold(double * value) noexcept override - { - try - { - *value = detach(this->shim().MovementThreshold()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MovementThreshold(double value) noexcept override - { - try - { - this->shim().MovementThreshold(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocationStatus(Windows::Devices::Geolocation::PositionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().LocationStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGeopositionAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetGeopositionAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGeopositionAsyncWithAgeAndTimeout(abi_arg_in maximumAge, abi_arg_in timeout, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetGeopositionAsync(*reinterpret_cast(&maximumAge), *reinterpret_cast(&timeout))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PositionChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PositionChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PositionChanged(event_token token) noexcept override - { - try - { - this->shim().PositionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StatusChanged(event_token token) noexcept override - { - try - { - this->shim().StatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AllowFallbackToConsentlessPositions() noexcept override - { - try - { - this->shim().AllowFallbackToConsentlessPositions(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGeopositionHistoryAsync(abi_arg_in startTime, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetGeopositionHistoryAsync(*reinterpret_cast(&startTime))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGeopositionHistoryWithDurationAsync(abi_arg_in startTime, abi_arg_in duration, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetGeopositionHistoryAsync(*reinterpret_cast(&startTime), *reinterpret_cast(&duration))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsDefaultGeopositionRecommended(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDefaultGeopositionRecommended()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultGeoposition(abi_arg_in> value) noexcept override - { - try - { - this->shim().DefaultGeoposition(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultGeoposition(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DefaultGeoposition()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DesiredAccuracyInMeters(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DesiredAccuracyInMeters()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredAccuracyInMeters(abi_arg_in> value) noexcept override - { - try - { - this->shim().DesiredAccuracyInMeters(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Positions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Positions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in> positions, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast *>(&positions))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithAltitudeReference(abi_arg_in> positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithAltitudeReference(*reinterpret_cast *>(&positions), altitudeReferenceSystem)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithAltitudeReferenceAndSpatialReference(abi_arg_in> positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithAltitudeReferenceAndSpatialReference(*reinterpret_cast *>(&positions), altitudeReferenceSystem, spatialReferenceId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in position, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&position))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithAltitudeReferenceSystem(abi_arg_in position, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithAltitudeReferenceSystem(*reinterpret_cast(&position), altitudeReferenceSystem)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithAltitudeReferenceSystemAndSpatialReferenceId(abi_arg_in position, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithAltitudeReferenceSystemAndSpatialReferenceId(*reinterpret_cast(&position), altitudeReferenceSystem, spatialReferenceId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Coordinate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Coordinate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CivicAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CivicAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VenueData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VenueData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GeoshapeType(Windows::Devices::Geolocation::GeoshapeType * value) noexcept override - { - try - { - *value = detach(this->shim().GeoshapeType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpatialReferenceId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SpatialReferenceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AltitudeReferenceSystem(Windows::Devices::Geolocation::AltitudeReferenceSystem * value) noexcept override - { - try - { - *value = detach(this->shim().AltitudeReferenceSystem()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Geolocation::PositionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Level(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Level()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Geolocation { - -template Windows::Devices::Geolocation::GeoshapeType impl_IGeoshape::GeoshapeType() const -{ - Windows::Devices::Geolocation::GeoshapeType value {}; - check_hresult(static_cast(static_cast(*this))->get_GeoshapeType(&value)); - return value; -} - -template uint32_t impl_IGeoshape::SpatialReferenceId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SpatialReferenceId(&value)); - return value; -} - -template Windows::Devices::Geolocation::AltitudeReferenceSystem impl_IGeoshape::AltitudeReferenceSystem() const -{ - Windows::Devices::Geolocation::AltitudeReferenceSystem value {}; - check_hresult(static_cast(static_cast(*this))->get_AltitudeReferenceSystem(&value)); - return value; -} - -template Windows::Devices::Geolocation::BasicGeoposition impl_IGeopoint::Position() const -{ - Windows::Devices::Geolocation::BasicGeoposition value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IGeopointFactory::Create(const Windows::Devices::Geolocation::BasicGeoposition & position) const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(position), put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IGeopointFactory::CreateWithAltitudeReferenceSystem(const Windows::Devices::Geolocation::BasicGeoposition & position, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem) const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithAltitudeReferenceSystem(get(position), altitudeReferenceSystem, put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IGeopointFactory::CreateWithAltitudeReferenceSystemAndSpatialReferenceId(const Windows::Devices::Geolocation::BasicGeoposition & position, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId) const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithAltitudeReferenceSystemAndSpatialReferenceId(get(position), altitudeReferenceSystem, spatialReferenceId, put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGeopath::Positions() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Positions(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopath impl_IGeopathFactory::Create(const Windows::Foundation::Collections::IIterable & positions) const -{ - Windows::Devices::Geolocation::Geopath value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(positions), put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopath impl_IGeopathFactory::CreateWithAltitudeReference(const Windows::Foundation::Collections::IIterable & positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem) const -{ - Windows::Devices::Geolocation::Geopath value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithAltitudeReference(get(positions), altitudeReferenceSystem, put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopath impl_IGeopathFactory::CreateWithAltitudeReferenceAndSpatialReference(const Windows::Foundation::Collections::IIterable & positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId) const -{ - Windows::Devices::Geolocation::Geopath value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithAltitudeReferenceAndSpatialReference(get(positions), altitudeReferenceSystem, spatialReferenceId, put(value))); - return value; -} - -template Windows::Devices::Geolocation::BasicGeoposition impl_IGeoboundingBox::NorthwestCorner() const -{ - Windows::Devices::Geolocation::BasicGeoposition value {}; - check_hresult(static_cast(static_cast(*this))->get_NorthwestCorner(put(value))); - return value; -} - -template Windows::Devices::Geolocation::BasicGeoposition impl_IGeoboundingBox::SoutheastCorner() const -{ - Windows::Devices::Geolocation::BasicGeoposition value {}; - check_hresult(static_cast(static_cast(*this))->get_SoutheastCorner(put(value))); - return value; -} - -template Windows::Devices::Geolocation::BasicGeoposition impl_IGeoboundingBox::Center() const -{ - Windows::Devices::Geolocation::BasicGeoposition value {}; - check_hresult(static_cast(static_cast(*this))->get_Center(put(value))); - return value; -} - -template double impl_IGeoboundingBox::MinAltitude() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MinAltitude(&value)); - return value; -} - -template double impl_IGeoboundingBox::MaxAltitude() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxAltitude(&value)); - return value; -} - -template Windows::Devices::Geolocation::GeoboundingBox impl_IGeoboundingBoxFactory::Create(const Windows::Devices::Geolocation::BasicGeoposition & northwestCorner, const Windows::Devices::Geolocation::BasicGeoposition & southeastCorner) const -{ - Windows::Devices::Geolocation::GeoboundingBox value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(northwestCorner), get(southeastCorner), put(value))); - return value; -} - -template Windows::Devices::Geolocation::GeoboundingBox impl_IGeoboundingBoxFactory::CreateWithAltitudeReference(const Windows::Devices::Geolocation::BasicGeoposition & northwestCorner, const Windows::Devices::Geolocation::BasicGeoposition & southeastCorner, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem) const -{ - Windows::Devices::Geolocation::GeoboundingBox value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithAltitudeReference(get(northwestCorner), get(southeastCorner), altitudeReferenceSystem, put(value))); - return value; -} - -template Windows::Devices::Geolocation::GeoboundingBox impl_IGeoboundingBoxFactory::CreateWithAltitudeReferenceAndSpatialReference(const Windows::Devices::Geolocation::BasicGeoposition & northwestCorner, const Windows::Devices::Geolocation::BasicGeoposition & southeastCorner, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId) const -{ - Windows::Devices::Geolocation::GeoboundingBox value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithAltitudeReferenceAndSpatialReference(get(northwestCorner), get(southeastCorner), altitudeReferenceSystem, spatialReferenceId, put(value))); - return value; -} - -template Windows::Devices::Geolocation::GeoboundingBox impl_IGeoboundingBoxStatics::TryCompute(const Windows::Foundation::Collections::IIterable & positions) const -{ - Windows::Devices::Geolocation::GeoboundingBox value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryCompute(get(positions), put(value))); - return value; -} - -template Windows::Devices::Geolocation::GeoboundingBox impl_IGeoboundingBoxStatics::TryCompute(const Windows::Foundation::Collections::IIterable & positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeRefSystem) const -{ - Windows::Devices::Geolocation::GeoboundingBox value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryComputeWithAltitudeReference(get(positions), altitudeRefSystem, put(value))); - return value; -} - -template Windows::Devices::Geolocation::GeoboundingBox impl_IGeoboundingBoxStatics::TryCompute(const Windows::Foundation::Collections::IIterable & positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeRefSystem, uint32_t spatialReferenceId) const -{ - Windows::Devices::Geolocation::GeoboundingBox value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryComputeWithAltitudeReferenceAndSpatialReference(get(positions), altitudeRefSystem, spatialReferenceId, put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IGeocoordinateSatelliteData::PositionDilutionOfPrecision() const -{ - Windows::Foundation::IReference ppValue; - check_hresult(static_cast(static_cast(*this))->get_PositionDilutionOfPrecision(put(ppValue))); - return ppValue; -} - -template Windows::Foundation::IReference impl_IGeocoordinateSatelliteData::HorizontalDilutionOfPrecision() const -{ - Windows::Foundation::IReference ppValue; - check_hresult(static_cast(static_cast(*this))->get_HorizontalDilutionOfPrecision(put(ppValue))); - return ppValue; -} - -template Windows::Foundation::IReference impl_IGeocoordinateSatelliteData::VerticalDilutionOfPrecision() const -{ - Windows::Foundation::IReference ppValue; - check_hresult(static_cast(static_cast(*this))->get_VerticalDilutionOfPrecision(put(ppValue))); - return ppValue; -} - -template hstring impl_IVenueData::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IVenueData::Level() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Level(put(value))); - return value; -} - -template double impl_IGeocoordinate::Latitude() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Latitude(&value)); - return value; -} - -template double impl_IGeocoordinate::Longitude() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Longitude(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IGeocoordinate::Altitude() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Altitude(put(value))); - return value; -} - -template double impl_IGeocoordinate::Accuracy() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Accuracy(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IGeocoordinate::AltitudeAccuracy() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_AltitudeAccuracy(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IGeocoordinate::Heading() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Heading(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IGeocoordinate::Speed() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Speed(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IGeocoordinate::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Devices::Geolocation::PositionSource impl_IGeocoordinateWithPositionData::PositionSource() const -{ - Windows::Devices::Geolocation::PositionSource pValue {}; - check_hresult(static_cast(static_cast(*this))->get_PositionSource(&pValue)); - return pValue; -} - -template Windows::Devices::Geolocation::GeocoordinateSatelliteData impl_IGeocoordinateWithPositionData::SatelliteData() const -{ - Windows::Devices::Geolocation::GeocoordinateSatelliteData ppValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SatelliteData(put(ppValue))); - return ppValue; -} - -template Windows::Devices::Geolocation::Geopoint impl_IGeocoordinateWithPoint::Point() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Point(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IGeocoordinateWithPositionSourceTimestamp::PositionSourceTimestamp() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_PositionSourceTimestamp(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geocoordinate impl_IGeoposition::Coordinate() const -{ - Windows::Devices::Geolocation::Geocoordinate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Coordinate(put(value))); - return value; -} - -template Windows::Devices::Geolocation::CivicAddress impl_IGeoposition::CivicAddress() const -{ - Windows::Devices::Geolocation::CivicAddress value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CivicAddress(put(value))); - return value; -} - -template Windows::Devices::Geolocation::VenueData impl_IGeoposition2::VenueData() const -{ - Windows::Devices::Geolocation::VenueData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VenueData(put(value))); - return value; -} - -template hstring impl_ICivicAddress::Country() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Country(put(value))); - return value; -} - -template hstring impl_ICivicAddress::State() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_State(put(value))); - return value; -} - -template hstring impl_ICivicAddress::City() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_City(put(value))); - return value; -} - -template hstring impl_ICivicAddress::PostalCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PostalCode(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ICivicAddress::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geoposition impl_IPositionChangedEventArgs::Position() const -{ - Windows::Devices::Geolocation::Geoposition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Devices::Geolocation::PositionStatus impl_IStatusChangedEventArgs::Status() const -{ - Windows::Devices::Geolocation::PositionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::Geolocation::PositionAccuracy impl_IGeolocator::DesiredAccuracy() const -{ - Windows::Devices::Geolocation::PositionAccuracy value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredAccuracy(&value)); - return value; -} - -template void impl_IGeolocator::DesiredAccuracy(Windows::Devices::Geolocation::PositionAccuracy value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredAccuracy(value)); -} - -template double impl_IGeolocator::MovementThreshold() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MovementThreshold(&value)); - return value; -} - -template void impl_IGeolocator::MovementThreshold(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MovementThreshold(value)); -} - -template uint32_t impl_IGeolocator::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template void impl_IGeolocator::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template Windows::Devices::Geolocation::PositionStatus impl_IGeolocator::LocationStatus() const -{ - Windows::Devices::Geolocation::PositionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_LocationStatus(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IGeolocator::GetGeopositionAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetGeopositionAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IGeolocator::GetGeopositionAsync(const Windows::Foundation::TimeSpan & maximumAge, const Windows::Foundation::TimeSpan & timeout) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetGeopositionAsyncWithAgeAndTimeout(get(maximumAge), get(timeout), put(value))); - return value; -} - -template event_token impl_IGeolocator::PositionChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PositionChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IGeolocator::PositionChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Geolocation::IGeolocator::remove_PositionChanged, PositionChanged(handler)); -} - -template void impl_IGeolocator::PositionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PositionChanged(token)); -} - -template event_token impl_IGeolocator::StatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IGeolocator::StatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Geolocation::IGeolocator::remove_StatusChanged, StatusChanged(handler)); -} - -template void impl_IGeolocator::StatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StatusChanged(token)); -} - -template Windows::Foundation::IReference impl_IGeolocatorWithScalarAccuracy::DesiredAccuracyInMeters() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DesiredAccuracyInMeters(put(value))); - return value; -} - -template void impl_IGeolocatorWithScalarAccuracy::DesiredAccuracyInMeters(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredAccuracyInMeters(get(value))); -} - -template void impl_IGeolocator2::AllowFallbackToConsentlessPositions() const -{ - check_hresult(static_cast(static_cast(*this))->abi_AllowFallbackToConsentlessPositions()); -} - -template Windows::Foundation::IAsyncOperation impl_IGeolocatorStatics::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IGeolocatorStatics::GetGeopositionHistoryAsync(const Windows::Foundation::DateTime & startTime) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetGeopositionHistoryAsync(get(startTime), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IGeolocatorStatics::GetGeopositionHistoryAsync(const Windows::Foundation::DateTime & startTime, const Windows::Foundation::TimeSpan & duration) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetGeopositionHistoryWithDurationAsync(get(startTime), get(duration), put(result))); - return result; -} - -template bool impl_IGeolocatorStatics2::IsDefaultGeopositionRecommended() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDefaultGeopositionRecommended(&value)); - return value; -} - -template void impl_IGeolocatorStatics2::DefaultGeoposition(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultGeoposition(get(value))); -} - -template Windows::Foundation::IReference impl_IGeolocatorStatics2::DefaultGeoposition() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DefaultGeoposition(put(value))); - return value; -} - -template Windows::Devices::Geolocation::BasicGeoposition impl_IGeocircle::Center() const -{ - Windows::Devices::Geolocation::BasicGeoposition value {}; - check_hresult(static_cast(static_cast(*this))->get_Center(put(value))); - return value; -} - -template double impl_IGeocircle::Radius() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Radius(&value)); - return value; -} - -template Windows::Devices::Geolocation::Geocircle impl_IGeocircleFactory::Create(const Windows::Devices::Geolocation::BasicGeoposition & position, double radius) const -{ - Windows::Devices::Geolocation::Geocircle value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(position), radius, put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geocircle impl_IGeocircleFactory::CreateWithAltitudeReferenceSystem(const Windows::Devices::Geolocation::BasicGeoposition & position, double radius, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem) const -{ - Windows::Devices::Geolocation::Geocircle value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithAltitudeReferenceSystem(get(position), radius, altitudeReferenceSystem, put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geocircle impl_IGeocircleFactory::CreateWithAltitudeReferenceSystemAndSpatialReferenceId(const Windows::Devices::Geolocation::BasicGeoposition & position, double radius, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId) const -{ - Windows::Devices::Geolocation::Geocircle value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithAltitudeReferenceSystemAndSpatialReferenceId(get(position), radius, altitudeReferenceSystem, spatialReferenceId, put(value))); - return value; -} - -inline GeoboundingBox::GeoboundingBox(const Windows::Devices::Geolocation::BasicGeoposition & northwestCorner, const Windows::Devices::Geolocation::BasicGeoposition & southeastCorner) : - GeoboundingBox(get_activation_factory().Create(northwestCorner, southeastCorner)) -{} - -inline GeoboundingBox::GeoboundingBox(const Windows::Devices::Geolocation::BasicGeoposition & northwestCorner, const Windows::Devices::Geolocation::BasicGeoposition & southeastCorner, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem) : - GeoboundingBox(get_activation_factory().CreateWithAltitudeReference(northwestCorner, southeastCorner, altitudeReferenceSystem)) -{} - -inline GeoboundingBox::GeoboundingBox(const Windows::Devices::Geolocation::BasicGeoposition & northwestCorner, const Windows::Devices::Geolocation::BasicGeoposition & southeastCorner, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId) : - GeoboundingBox(get_activation_factory().CreateWithAltitudeReferenceAndSpatialReference(northwestCorner, southeastCorner, altitudeReferenceSystem, spatialReferenceId)) -{} - -inline Windows::Devices::Geolocation::GeoboundingBox GeoboundingBox::TryCompute(const Windows::Foundation::Collections::IIterable & positions) -{ - return get_activation_factory().TryCompute(positions); -} - -inline Windows::Devices::Geolocation::GeoboundingBox GeoboundingBox::TryCompute(const Windows::Foundation::Collections::IIterable & positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeRefSystem) -{ - return get_activation_factory().TryCompute(positions, altitudeRefSystem); -} - -inline Windows::Devices::Geolocation::GeoboundingBox GeoboundingBox::TryCompute(const Windows::Foundation::Collections::IIterable & positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeRefSystem, uint32_t spatialReferenceId) -{ - return get_activation_factory().TryCompute(positions, altitudeRefSystem, spatialReferenceId); -} - -inline Geocircle::Geocircle(const Windows::Devices::Geolocation::BasicGeoposition & position, double radius) : - Geocircle(get_activation_factory().Create(position, radius)) -{} - -inline Geocircle::Geocircle(const Windows::Devices::Geolocation::BasicGeoposition & position, double radius, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem) : - Geocircle(get_activation_factory().CreateWithAltitudeReferenceSystem(position, radius, altitudeReferenceSystem)) -{} - -inline Geocircle::Geocircle(const Windows::Devices::Geolocation::BasicGeoposition & position, double radius, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId) : - Geocircle(get_activation_factory().CreateWithAltitudeReferenceSystemAndSpatialReferenceId(position, radius, altitudeReferenceSystem, spatialReferenceId)) -{} - -inline Geolocator::Geolocator() : - Geolocator(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation Geolocator::RequestAccessAsync() -{ - return get_activation_factory().RequestAccessAsync(); -} - -inline Windows::Foundation::IAsyncOperation> Geolocator::GetGeopositionHistoryAsync(const Windows::Foundation::DateTime & startTime) -{ - return get_activation_factory().GetGeopositionHistoryAsync(startTime); -} - -inline Windows::Foundation::IAsyncOperation> Geolocator::GetGeopositionHistoryAsync(const Windows::Foundation::DateTime & startTime, const Windows::Foundation::TimeSpan & duration) -{ - return get_activation_factory().GetGeopositionHistoryAsync(startTime, duration); -} - -inline bool Geolocator::IsDefaultGeopositionRecommended() -{ - return get_activation_factory().IsDefaultGeopositionRecommended(); -} - -inline void Geolocator::DefaultGeoposition(const Windows::Foundation::IReference & value) -{ - get_activation_factory().DefaultGeoposition(value); -} - -inline Windows::Foundation::IReference Geolocator::DefaultGeoposition() -{ - return get_activation_factory().DefaultGeoposition(); -} - -inline Geopath::Geopath(const Windows::Foundation::Collections::IIterable & positions) : - Geopath(get_activation_factory().Create(positions)) -{} - -inline Geopath::Geopath(const Windows::Foundation::Collections::IIterable & positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem) : - Geopath(get_activation_factory().CreateWithAltitudeReference(positions, altitudeReferenceSystem)) -{} - -inline Geopath::Geopath(const Windows::Foundation::Collections::IIterable & positions, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId) : - Geopath(get_activation_factory().CreateWithAltitudeReferenceAndSpatialReference(positions, altitudeReferenceSystem, spatialReferenceId)) -{} - -inline Geopoint::Geopoint(const Windows::Devices::Geolocation::BasicGeoposition & position) : - Geopoint(get_activation_factory().Create(position)) -{} - -inline Geopoint::Geopoint(const Windows::Devices::Geolocation::BasicGeoposition & position, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem) : - Geopoint(get_activation_factory().CreateWithAltitudeReferenceSystem(position, altitudeReferenceSystem)) -{} - -inline Geopoint::Geopoint(const Windows::Devices::Geolocation::BasicGeoposition & position, Windows::Devices::Geolocation::AltitudeReferenceSystem altitudeReferenceSystem, uint32_t spatialReferenceId) : - Geopoint(get_activation_factory().CreateWithAltitudeReferenceSystemAndSpatialReferenceId(position, altitudeReferenceSystem, spatialReferenceId)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Gpio.Provider.h b/10.0.14393.0/winrt/Windows.Devices.Gpio.Provider.h deleted file mode 100644 index f0c297f95..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Gpio.Provider.h +++ /dev/null @@ -1,365 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Gpio.Provider.3.h" -#include "Windows.Devices.Gpio.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PinCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PinCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenPinProvider(int32_t pin, Windows::Devices::Gpio::Provider::ProviderGpioSharingMode sharingMode, abi_arg_out gpioPinProvider) noexcept override - { - try - { - *gpioPinProvider = detach(this->shim().OpenPinProvider(pin, sharingMode)); - return S_OK; - } - catch (...) - { - *gpioPinProvider = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ValueChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ValueChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ValueChanged(event_token token) noexcept override - { - try - { - this->shim().ValueChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DebounceTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DebounceTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DebounceTimeout(abi_arg_in value) noexcept override - { - try - { - this->shim().DebounceTimeout(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PinNumber(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PinNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SharingMode(Windows::Devices::Gpio::Provider::ProviderGpioSharingMode * value) noexcept override - { - try - { - *value = detach(this->shim().SharingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsDriveModeSupported(Windows::Devices::Gpio::Provider::ProviderGpioPinDriveMode driveMode, bool * supported) noexcept override - { - try - { - *supported = detach(this->shim().IsDriveModeSupported(driveMode)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDriveMode(Windows::Devices::Gpio::Provider::ProviderGpioPinDriveMode * value) noexcept override - { - try - { - *value = detach(this->shim().GetDriveMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDriveMode(Windows::Devices::Gpio::Provider::ProviderGpioPinDriveMode value) noexcept override - { - try - { - this->shim().SetDriveMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Write(Windows::Devices::Gpio::Provider::ProviderGpioPinValue value) noexcept override - { - try - { - this->shim().Write(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Read(Windows::Devices::Gpio::Provider::ProviderGpioPinValue * value) noexcept override - { - try - { - *value = detach(this->shim().Read()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Edge(Windows::Devices::Gpio::Provider::ProviderGpioPinEdge * value) noexcept override - { - try - { - *value = detach(this->shim().Edge()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::Devices::Gpio::Provider::ProviderGpioPinEdge edge, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(edge)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetControllers(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetControllers()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Gpio::Provider { - -template Windows::Devices::Gpio::Provider::GpioPinProviderValueChangedEventArgs impl_IGpioPinProviderValueChangedEventArgsFactory::Create(Windows::Devices::Gpio::Provider::ProviderGpioPinEdge edge) const -{ - Windows::Devices::Gpio::Provider::GpioPinProviderValueChangedEventArgs value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(edge, put(value))); - return value; -} - -template Windows::Devices::Gpio::Provider::ProviderGpioPinEdge impl_IGpioPinProviderValueChangedEventArgs::Edge() const -{ - Windows::Devices::Gpio::Provider::ProviderGpioPinEdge value {}; - check_hresult(static_cast(static_cast(*this))->get_Edge(&value)); - return value; -} - -template event_token impl_IGpioPinProvider::ValueChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ValueChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IGpioPinProvider::ValueChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Gpio::Provider::IGpioPinProvider::remove_ValueChanged, ValueChanged(handler)); -} - -template void impl_IGpioPinProvider::ValueChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ValueChanged(token)); -} - -template Windows::Foundation::TimeSpan impl_IGpioPinProvider::DebounceTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_DebounceTimeout(put(value))); - return value; -} - -template void impl_IGpioPinProvider::DebounceTimeout(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DebounceTimeout(get(value))); -} - -template int32_t impl_IGpioPinProvider::PinNumber() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PinNumber(&value)); - return value; -} - -template Windows::Devices::Gpio::Provider::ProviderGpioSharingMode impl_IGpioPinProvider::SharingMode() const -{ - Windows::Devices::Gpio::Provider::ProviderGpioSharingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SharingMode(&value)); - return value; -} - -template bool impl_IGpioPinProvider::IsDriveModeSupported(Windows::Devices::Gpio::Provider::ProviderGpioPinDriveMode driveMode) const -{ - bool supported {}; - check_hresult(static_cast(static_cast(*this))->abi_IsDriveModeSupported(driveMode, &supported)); - return supported; -} - -template Windows::Devices::Gpio::Provider::ProviderGpioPinDriveMode impl_IGpioPinProvider::GetDriveMode() const -{ - Windows::Devices::Gpio::Provider::ProviderGpioPinDriveMode value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetDriveMode(&value)); - return value; -} - -template void impl_IGpioPinProvider::SetDriveMode(Windows::Devices::Gpio::Provider::ProviderGpioPinDriveMode value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDriveMode(value)); -} - -template void impl_IGpioPinProvider::Write(Windows::Devices::Gpio::Provider::ProviderGpioPinValue value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Write(value)); -} - -template Windows::Devices::Gpio::Provider::ProviderGpioPinValue impl_IGpioPinProvider::Read() const -{ - Windows::Devices::Gpio::Provider::ProviderGpioPinValue value {}; - check_hresult(static_cast(static_cast(*this))->abi_Read(&value)); - return value; -} - -template int32_t impl_IGpioControllerProvider::PinCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PinCount(&value)); - return value; -} - -template Windows::Devices::Gpio::Provider::IGpioPinProvider impl_IGpioControllerProvider::OpenPinProvider(int32_t pin, Windows::Devices::Gpio::Provider::ProviderGpioSharingMode sharingMode) const -{ - Windows::Devices::Gpio::Provider::IGpioPinProvider gpioPinProvider; - check_hresult(static_cast(static_cast(*this))->abi_OpenPinProvider(pin, sharingMode, put(gpioPinProvider))); - return gpioPinProvider; -} - -template Windows::Foundation::Collections::IVectorView impl_IGpioProvider::GetControllers() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetControllers(put(result))); - return result; -} - -inline GpioPinProviderValueChangedEventArgs::GpioPinProviderValueChangedEventArgs(Windows::Devices::Gpio::Provider::ProviderGpioPinEdge edge) : - GpioPinProviderValueChangedEventArgs(get_activation_factory().Create(edge)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Gpio.h b/10.0.14393.0/winrt/Windows.Devices.Gpio.h deleted file mode 100644 index e4e0b4c98..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Gpio.h +++ /dev/null @@ -1,440 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Devices.Gpio.Provider.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Gpio.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PinCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PinCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenPin(int32_t pinNumber, abi_arg_out pin) noexcept override - { - try - { - *pin = detach(this->shim().OpenPin(pinNumber)); - return S_OK; - } - catch (...) - { - *pin = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenPinWithSharingMode(int32_t pinNumber, Windows::Devices::Gpio::GpioSharingMode sharingMode, abi_arg_out pin) noexcept override - { - try - { - *pin = detach(this->shim().OpenPin(pinNumber, sharingMode)); - return S_OK; - } - catch (...) - { - *pin = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryOpenPin(int32_t pinNumber, Windows::Devices::Gpio::GpioSharingMode sharingMode, abi_arg_out pin, Windows::Devices::Gpio::GpioOpenStatus * openStatus, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TryOpenPin(pinNumber, sharingMode, *pin, *openStatus)); - return S_OK; - } - catch (...) - { - *pin = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetControllersAsync(abi_arg_in provider, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetControllersAsync(*reinterpret_cast(&provider))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ValueChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ValueChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ValueChanged(event_token token) noexcept override - { - try - { - this->shim().ValueChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DebounceTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DebounceTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DebounceTimeout(abi_arg_in value) noexcept override - { - try - { - this->shim().DebounceTimeout(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PinNumber(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PinNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SharingMode(Windows::Devices::Gpio::GpioSharingMode * value) noexcept override - { - try - { - *value = detach(this->shim().SharingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsDriveModeSupported(Windows::Devices::Gpio::GpioPinDriveMode driveMode, bool * supported) noexcept override - { - try - { - *supported = detach(this->shim().IsDriveModeSupported(driveMode)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDriveMode(Windows::Devices::Gpio::GpioPinDriveMode * value) noexcept override - { - try - { - *value = detach(this->shim().GetDriveMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDriveMode(Windows::Devices::Gpio::GpioPinDriveMode value) noexcept override - { - try - { - this->shim().SetDriveMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Write(Windows::Devices::Gpio::GpioPinValue value) noexcept override - { - try - { - this->shim().Write(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Read(Windows::Devices::Gpio::GpioPinValue * value) noexcept override - { - try - { - *value = detach(this->shim().Read()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Edge(Windows::Devices::Gpio::GpioPinEdge * value) noexcept override - { - try - { - *value = detach(this->shim().Edge()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Gpio { - -template Windows::Devices::Gpio::GpioPinEdge impl_IGpioPinValueChangedEventArgs::Edge() const -{ - Windows::Devices::Gpio::GpioPinEdge value {}; - check_hresult(static_cast(static_cast(*this))->get_Edge(&value)); - return value; -} - -template int32_t impl_IGpioController::PinCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PinCount(&value)); - return value; -} - -template Windows::Devices::Gpio::GpioPin impl_IGpioController::OpenPin(int32_t pinNumber) const -{ - Windows::Devices::Gpio::GpioPin pin { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenPin(pinNumber, put(pin))); - return pin; -} - -template Windows::Devices::Gpio::GpioPin impl_IGpioController::OpenPin(int32_t pinNumber, Windows::Devices::Gpio::GpioSharingMode sharingMode) const -{ - Windows::Devices::Gpio::GpioPin pin { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenPinWithSharingMode(pinNumber, sharingMode, put(pin))); - return pin; -} - -template bool impl_IGpioController::TryOpenPin(int32_t pinNumber, Windows::Devices::Gpio::GpioSharingMode sharingMode, Windows::Devices::Gpio::GpioPin & pin, Windows::Devices::Gpio::GpioOpenStatus & openStatus) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TryOpenPin(pinNumber, sharingMode, put(pin), &openStatus, &succeeded)); - return succeeded; -} - -template Windows::Devices::Gpio::GpioController impl_IGpioControllerStatics::GetDefault() const -{ - Windows::Devices::Gpio::GpioController value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IGpioControllerStatics2::GetControllersAsync(const Windows::Devices::Gpio::Provider::IGpioProvider & provider) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetControllersAsync(get(provider), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IGpioControllerStatics2::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(operation))); - return operation; -} - -template event_token impl_IGpioPin::ValueChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ValueChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IGpioPin::ValueChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Gpio::IGpioPin::remove_ValueChanged, ValueChanged(handler)); -} - -template void impl_IGpioPin::ValueChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ValueChanged(token)); -} - -template Windows::Foundation::TimeSpan impl_IGpioPin::DebounceTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_DebounceTimeout(put(value))); - return value; -} - -template void impl_IGpioPin::DebounceTimeout(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DebounceTimeout(get(value))); -} - -template int32_t impl_IGpioPin::PinNumber() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PinNumber(&value)); - return value; -} - -template Windows::Devices::Gpio::GpioSharingMode impl_IGpioPin::SharingMode() const -{ - Windows::Devices::Gpio::GpioSharingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SharingMode(&value)); - return value; -} - -template bool impl_IGpioPin::IsDriveModeSupported(Windows::Devices::Gpio::GpioPinDriveMode driveMode) const -{ - bool supported {}; - check_hresult(static_cast(static_cast(*this))->abi_IsDriveModeSupported(driveMode, &supported)); - return supported; -} - -template Windows::Devices::Gpio::GpioPinDriveMode impl_IGpioPin::GetDriveMode() const -{ - Windows::Devices::Gpio::GpioPinDriveMode value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetDriveMode(&value)); - return value; -} - -template void impl_IGpioPin::SetDriveMode(Windows::Devices::Gpio::GpioPinDriveMode value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDriveMode(value)); -} - -template void impl_IGpioPin::Write(Windows::Devices::Gpio::GpioPinValue value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Write(value)); -} - -template Windows::Devices::Gpio::GpioPinValue impl_IGpioPin::Read() const -{ - Windows::Devices::Gpio::GpioPinValue value {}; - check_hresult(static_cast(static_cast(*this))->abi_Read(&value)); - return value; -} - -inline Windows::Devices::Gpio::GpioController GpioController::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Foundation::IAsyncOperation> GpioController::GetControllersAsync(const Windows::Devices::Gpio::Provider::IGpioProvider & provider) -{ - return get_activation_factory().GetControllersAsync(provider); -} - -inline Windows::Foundation::IAsyncOperation GpioController::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.HumanInterfaceDevice.h b/10.0.14393.0/winrt/Windows.Devices.HumanInterfaceDevice.h deleted file mode 100644 index 8b16a3200..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.HumanInterfaceDevice.h +++ /dev/null @@ -1,1857 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Devices.HumanInterfaceDevice.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsagePage(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsagePage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsageId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsageId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsActive(bool value) noexcept override - { - try - { - this->shim().IsActive(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ControlDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ControlDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportType(Windows::Devices::HumanInterfaceDevice::HidReportType * value) noexcept override - { - try - { - *value = detach(this->shim().ReportType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsagePage(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsagePage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsageId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsageId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ParentCollections(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ParentCollections()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsAbsolute(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAbsolute()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::Devices::HumanInterfaceDevice::HidCollectionType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsagePage(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsagePage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsageId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsageId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VendorId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().VendorId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProductId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().ProductId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Version(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Version()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsagePage(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsagePage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsageId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsageId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInputReportAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetInputReportAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInputReportByIdAsync(uint16_t reportId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetInputReportAsync(reportId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFeatureReportAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetFeatureReportAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFeatureReportByIdAsync(uint16_t reportId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetFeatureReportAsync(reportId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateOutputReport(abi_arg_out outputReport) noexcept override - { - try - { - *outputReport = detach(this->shim().CreateOutputReport()); - return S_OK; - } - catch (...) - { - *outputReport = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateOutputReportById(uint16_t reportId, abi_arg_out outputReport) noexcept override - { - try - { - *outputReport = detach(this->shim().CreateOutputReport(reportId)); - return S_OK; - } - catch (...) - { - *outputReport = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFeatureReport(abi_arg_out featureReport) noexcept override - { - try - { - *featureReport = detach(this->shim().CreateFeatureReport()); - return S_OK; - } - catch (...) - { - *featureReport = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFeatureReportById(uint16_t reportId, abi_arg_out featureReport) noexcept override - { - try - { - *featureReport = detach(this->shim().CreateFeatureReport(reportId)); - return S_OK; - } - catch (...) - { - *featureReport = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendOutputReportAsync(abi_arg_in outputReport, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SendOutputReportAsync(*reinterpret_cast(&outputReport))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendFeatureReportAsync(abi_arg_in featureReport, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SendFeatureReportAsync(*reinterpret_cast(&featureReport))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBooleanControlDescriptions(Windows::Devices::HumanInterfaceDevice::HidReportType reportType, uint16_t usagePage, uint16_t usageId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetBooleanControlDescriptions(reportType, usagePage, usageId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNumericControlDescriptions(Windows::Devices::HumanInterfaceDevice::HidReportType reportType, uint16_t usagePage, uint16_t usageId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetNumericControlDescriptions(reportType, usagePage, usageId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_InputReportReceived(abi_arg_in> reportHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().InputReportReceived(*reinterpret_cast *>(&reportHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_InputReportReceived(event_token token) noexcept override - { - try - { - this->shim().InputReportReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(uint16_t usagePage, uint16_t usageId, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelector(usagePage, usageId)); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorVidPid(uint16_t usagePage, uint16_t usageId, uint16_t vendorId, uint16_t productId, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelector(usagePage, usageId, vendorId, productId)); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, Windows::Storage::FileAccessMode accessMode, abi_arg_out> hidDevice) noexcept override - { - try - { - *hidDevice = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId), accessMode)); - return S_OK; - } - catch (...) - { - *hidDevice = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Data(abi_arg_in value) noexcept override - { - try - { - this->shim().Data(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBooleanControl(uint16_t usagePage, uint16_t usageId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetBooleanControl(usagePage, usageId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBooleanControlByDescription(abi_arg_in controlDescription, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetBooleanControlByDescription(*reinterpret_cast(&controlDescription))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNumericControl(uint16_t usagePage, uint16_t usageId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetNumericControl(usagePage, usageId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNumericControlByDescription(abi_arg_in controlDescription, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetNumericControlByDescription(*reinterpret_cast(&controlDescription))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActivatedBooleanControls(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ActivatedBooleanControls()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransitionedBooleanControls(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TransitionedBooleanControls()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBooleanControl(uint16_t usagePage, uint16_t usageId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetBooleanControl(usagePage, usageId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBooleanControlByDescription(abi_arg_in controlDescription, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetBooleanControlByDescription(*reinterpret_cast(&controlDescription))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNumericControl(uint16_t usagePage, uint16_t usageId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetNumericControl(usagePage, usageId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNumericControlByDescription(abi_arg_in controlDescription, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetNumericControlByDescription(*reinterpret_cast(&controlDescription))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Report(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Report()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGrouped(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGrouped()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsagePage(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsagePage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsageId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsageId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(int64_t value) noexcept override - { - try - { - this->shim().Value(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScaledValue(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().ScaledValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScaledValue(int64_t value) noexcept override - { - try - { - this->shim().ScaledValue(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ControlDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ControlDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportType(Windows::Devices::HumanInterfaceDevice::HidReportType * value) noexcept override - { - try - { - *value = detach(this->shim().ReportType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportSize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsagePage(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsagePage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsageId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsageId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LogicalMinimum(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LogicalMinimum()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LogicalMaximum(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LogicalMaximum()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhysicalMinimum(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PhysicalMinimum()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhysicalMaximum(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PhysicalMaximum()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UnitExponent(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UnitExponent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Unit(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Unit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAbsolute(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAbsolute()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasNull(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasNull()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ParentCollections(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ParentCollections()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Data(abi_arg_in value) noexcept override - { - try - { - this->shim().Data(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBooleanControl(uint16_t usagePage, uint16_t usageId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetBooleanControl(usagePage, usageId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBooleanControlByDescription(abi_arg_in controlDescription, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetBooleanControlByDescription(*reinterpret_cast(&controlDescription))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNumericControl(uint16_t usagePage, uint16_t usageId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetNumericControl(usagePage, usageId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNumericControlByDescription(abi_arg_in controlDescription, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetNumericControlByDescription(*reinterpret_cast(&controlDescription))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::HumanInterfaceDevice { - -template hstring impl_IHidDeviceStatics::GetDeviceSelector(uint16_t usagePage, uint16_t usageId) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(usagePage, usageId, put(selector))); - return selector; -} - -template hstring impl_IHidDeviceStatics::GetDeviceSelector(uint16_t usagePage, uint16_t usageId, uint16_t vendorId, uint16_t productId) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorVidPid(usagePage, usageId, vendorId, productId, put(selector))); - return selector; -} - -template Windows::Foundation::IAsyncOperation impl_IHidDeviceStatics::FromIdAsync(hstring_ref deviceId, Windows::Storage::FileAccessMode accessMode) const -{ - Windows::Foundation::IAsyncOperation hidDevice; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), accessMode, put(hidDevice))); - return hidDevice; -} - -template uint32_t impl_IHidBooleanControlDescription::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template uint16_t impl_IHidBooleanControlDescription::ReportId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportId(&value)); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidReportType impl_IHidBooleanControlDescription::ReportType() const -{ - Windows::Devices::HumanInterfaceDevice::HidReportType value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportType(&value)); - return value; -} - -template uint16_t impl_IHidBooleanControlDescription::UsagePage() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsagePage(&value)); - return value; -} - -template uint16_t impl_IHidBooleanControlDescription::UsageId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsageId(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IHidBooleanControlDescription::ParentCollections() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ParentCollections(put(value))); - return value; -} - -template bool impl_IHidBooleanControlDescription2::IsAbsolute() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAbsolute(&value)); - return value; -} - -template uint32_t impl_IHidNumericControlDescription::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template uint16_t impl_IHidNumericControlDescription::ReportId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportId(&value)); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidReportType impl_IHidNumericControlDescription::ReportType() const -{ - Windows::Devices::HumanInterfaceDevice::HidReportType value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportType(&value)); - return value; -} - -template uint32_t impl_IHidNumericControlDescription::ReportSize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportSize(&value)); - return value; -} - -template uint32_t impl_IHidNumericControlDescription::ReportCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportCount(&value)); - return value; -} - -template uint16_t impl_IHidNumericControlDescription::UsagePage() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsagePage(&value)); - return value; -} - -template uint16_t impl_IHidNumericControlDescription::UsageId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsageId(&value)); - return value; -} - -template int32_t impl_IHidNumericControlDescription::LogicalMinimum() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LogicalMinimum(&value)); - return value; -} - -template int32_t impl_IHidNumericControlDescription::LogicalMaximum() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LogicalMaximum(&value)); - return value; -} - -template int32_t impl_IHidNumericControlDescription::PhysicalMinimum() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PhysicalMinimum(&value)); - return value; -} - -template int32_t impl_IHidNumericControlDescription::PhysicalMaximum() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PhysicalMaximum(&value)); - return value; -} - -template uint32_t impl_IHidNumericControlDescription::UnitExponent() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UnitExponent(&value)); - return value; -} - -template uint32_t impl_IHidNumericControlDescription::Unit() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Unit(&value)); - return value; -} - -template bool impl_IHidNumericControlDescription::IsAbsolute() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAbsolute(&value)); - return value; -} - -template bool impl_IHidNumericControlDescription::HasNull() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasNull(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IHidNumericControlDescription::ParentCollections() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ParentCollections(put(value))); - return value; -} - -template uint32_t impl_IHidCollection::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidCollectionType impl_IHidCollection::Type() const -{ - Windows::Devices::HumanInterfaceDevice::HidCollectionType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template uint32_t impl_IHidCollection::UsagePage() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsagePage(&value)); - return value; -} - -template uint32_t impl_IHidCollection::UsageId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsageId(&value)); - return value; -} - -template uint16_t impl_IHidInputReport::Id() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IHidInputReport::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IHidInputReport::ActivatedBooleanControls() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ActivatedBooleanControls(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IHidInputReport::TransitionedBooleanControls() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_TransitionedBooleanControls(put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidBooleanControl impl_IHidInputReport::GetBooleanControl(uint16_t usagePage, uint16_t usageId) const -{ - Windows::Devices::HumanInterfaceDevice::HidBooleanControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetBooleanControl(usagePage, usageId, put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidBooleanControl impl_IHidInputReport::GetBooleanControlByDescription(const Windows::Devices::HumanInterfaceDevice::HidBooleanControlDescription & controlDescription) const -{ - Windows::Devices::HumanInterfaceDevice::HidBooleanControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetBooleanControlByDescription(get(controlDescription), put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidNumericControl impl_IHidInputReport::GetNumericControl(uint16_t usagePage, uint16_t usageId) const -{ - Windows::Devices::HumanInterfaceDevice::HidNumericControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNumericControl(usagePage, usageId, put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidNumericControl impl_IHidInputReport::GetNumericControlByDescription(const Windows::Devices::HumanInterfaceDevice::HidNumericControlDescription & controlDescription) const -{ - Windows::Devices::HumanInterfaceDevice::HidNumericControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNumericControlByDescription(get(controlDescription), put(value))); - return value; -} - -template uint16_t impl_IHidOutputReport::Id() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IHidOutputReport::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template void impl_IHidOutputReport::Data(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Data(get(value))); -} - -template Windows::Devices::HumanInterfaceDevice::HidBooleanControl impl_IHidOutputReport::GetBooleanControl(uint16_t usagePage, uint16_t usageId) const -{ - Windows::Devices::HumanInterfaceDevice::HidBooleanControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetBooleanControl(usagePage, usageId, put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidBooleanControl impl_IHidOutputReport::GetBooleanControlByDescription(const Windows::Devices::HumanInterfaceDevice::HidBooleanControlDescription & controlDescription) const -{ - Windows::Devices::HumanInterfaceDevice::HidBooleanControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetBooleanControlByDescription(get(controlDescription), put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidNumericControl impl_IHidOutputReport::GetNumericControl(uint16_t usagePage, uint16_t usageId) const -{ - Windows::Devices::HumanInterfaceDevice::HidNumericControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNumericControl(usagePage, usageId, put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidNumericControl impl_IHidOutputReport::GetNumericControlByDescription(const Windows::Devices::HumanInterfaceDevice::HidNumericControlDescription & controlDescription) const -{ - Windows::Devices::HumanInterfaceDevice::HidNumericControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNumericControlByDescription(get(controlDescription), put(value))); - return value; -} - -template uint16_t impl_IHidFeatureReport::Id() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IHidFeatureReport::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template void impl_IHidFeatureReport::Data(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Data(get(value))); -} - -template Windows::Devices::HumanInterfaceDevice::HidBooleanControl impl_IHidFeatureReport::GetBooleanControl(uint16_t usagePage, uint16_t usageId) const -{ - Windows::Devices::HumanInterfaceDevice::HidBooleanControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetBooleanControl(usagePage, usageId, put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidBooleanControl impl_IHidFeatureReport::GetBooleanControlByDescription(const Windows::Devices::HumanInterfaceDevice::HidBooleanControlDescription & controlDescription) const -{ - Windows::Devices::HumanInterfaceDevice::HidBooleanControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetBooleanControlByDescription(get(controlDescription), put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidNumericControl impl_IHidFeatureReport::GetNumericControl(uint16_t usagePage, uint16_t usageId) const -{ - Windows::Devices::HumanInterfaceDevice::HidNumericControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNumericControl(usagePage, usageId, put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidNumericControl impl_IHidFeatureReport::GetNumericControlByDescription(const Windows::Devices::HumanInterfaceDevice::HidNumericControlDescription & controlDescription) const -{ - Windows::Devices::HumanInterfaceDevice::HidNumericControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNumericControlByDescription(get(controlDescription), put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidInputReport impl_IHidInputReportReceivedEventArgs::Report() const -{ - Windows::Devices::HumanInterfaceDevice::HidInputReport value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Report(put(value))); - return value; -} - -template uint32_t impl_IHidBooleanControl::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template uint16_t impl_IHidBooleanControl::UsagePage() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsagePage(&value)); - return value; -} - -template uint16_t impl_IHidBooleanControl::UsageId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsageId(&value)); - return value; -} - -template bool impl_IHidBooleanControl::IsActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActive(&value)); - return value; -} - -template void impl_IHidBooleanControl::IsActive(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsActive(value)); -} - -template Windows::Devices::HumanInterfaceDevice::HidBooleanControlDescription impl_IHidBooleanControl::ControlDescription() const -{ - Windows::Devices::HumanInterfaceDevice::HidBooleanControlDescription value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ControlDescription(put(value))); - return value; -} - -template uint32_t impl_IHidNumericControl::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template bool impl_IHidNumericControl::IsGrouped() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsGrouped(&value)); - return value; -} - -template uint16_t impl_IHidNumericControl::UsagePage() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsagePage(&value)); - return value; -} - -template uint16_t impl_IHidNumericControl::UsageId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsageId(&value)); - return value; -} - -template int64_t impl_IHidNumericControl::Value() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template void impl_IHidNumericControl::Value(int64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(value)); -} - -template int64_t impl_IHidNumericControl::ScaledValue() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ScaledValue(&value)); - return value; -} - -template void impl_IHidNumericControl::ScaledValue(int64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScaledValue(value)); -} - -template Windows::Devices::HumanInterfaceDevice::HidNumericControlDescription impl_IHidNumericControl::ControlDescription() const -{ - Windows::Devices::HumanInterfaceDevice::HidNumericControlDescription value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ControlDescription(put(value))); - return value; -} - -template uint16_t impl_IHidDevice::VendorId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VendorId(&value)); - return value; -} - -template uint16_t impl_IHidDevice::ProductId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ProductId(&value)); - return value; -} - -template uint16_t impl_IHidDevice::Version() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Version(&value)); - return value; -} - -template uint16_t impl_IHidDevice::UsagePage() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsagePage(&value)); - return value; -} - -template uint16_t impl_IHidDevice::UsageId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsageId(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IHidDevice::GetInputReportAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetInputReportAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IHidDevice::GetInputReportAsync(uint16_t reportId) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetInputReportByIdAsync(reportId, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IHidDevice::GetFeatureReportAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetFeatureReportAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IHidDevice::GetFeatureReportAsync(uint16_t reportId) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetFeatureReportByIdAsync(reportId, put(value))); - return value; -} - -template Windows::Devices::HumanInterfaceDevice::HidOutputReport impl_IHidDevice::CreateOutputReport() const -{ - Windows::Devices::HumanInterfaceDevice::HidOutputReport outputReport { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateOutputReport(put(outputReport))); - return outputReport; -} - -template Windows::Devices::HumanInterfaceDevice::HidOutputReport impl_IHidDevice::CreateOutputReport(uint16_t reportId) const -{ - Windows::Devices::HumanInterfaceDevice::HidOutputReport outputReport { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateOutputReportById(reportId, put(outputReport))); - return outputReport; -} - -template Windows::Devices::HumanInterfaceDevice::HidFeatureReport impl_IHidDevice::CreateFeatureReport() const -{ - Windows::Devices::HumanInterfaceDevice::HidFeatureReport featureReport { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFeatureReport(put(featureReport))); - return featureReport; -} - -template Windows::Devices::HumanInterfaceDevice::HidFeatureReport impl_IHidDevice::CreateFeatureReport(uint16_t reportId) const -{ - Windows::Devices::HumanInterfaceDevice::HidFeatureReport featureReport { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFeatureReportById(reportId, put(featureReport))); - return featureReport; -} - -template Windows::Foundation::IAsyncOperation impl_IHidDevice::SendOutputReportAsync(const Windows::Devices::HumanInterfaceDevice::HidOutputReport & outputReport) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SendOutputReportAsync(get(outputReport), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IHidDevice::SendFeatureReportAsync(const Windows::Devices::HumanInterfaceDevice::HidFeatureReport & featureReport) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SendFeatureReportAsync(get(featureReport), put(operation))); - return operation; -} - -template Windows::Foundation::Collections::IVectorView impl_IHidDevice::GetBooleanControlDescriptions(Windows::Devices::HumanInterfaceDevice::HidReportType reportType, uint16_t usagePage, uint16_t usageId) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetBooleanControlDescriptions(reportType, usagePage, usageId, put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IHidDevice::GetNumericControlDescriptions(Windows::Devices::HumanInterfaceDevice::HidReportType reportType, uint16_t usagePage, uint16_t usageId) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetNumericControlDescriptions(reportType, usagePage, usageId, put(value))); - return value; -} - -template event_token impl_IHidDevice::InputReportReceived(const Windows::Foundation::TypedEventHandler & reportHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_InputReportReceived(get(reportHandler), &token)); - return token; -} - -template event_revoker impl_IHidDevice::InputReportReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & reportHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::HumanInterfaceDevice::IHidDevice::remove_InputReportReceived, InputReportReceived(reportHandler)); -} - -template void impl_IHidDevice::InputReportReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_InputReportReceived(token)); -} - -inline hstring HidDevice::GetDeviceSelector(uint16_t usagePage, uint16_t usageId) -{ - return get_activation_factory().GetDeviceSelector(usagePage, usageId); -} - -inline hstring HidDevice::GetDeviceSelector(uint16_t usagePage, uint16_t usageId, uint16_t vendorId, uint16_t productId) -{ - return get_activation_factory().GetDeviceSelector(usagePage, usageId, vendorId, productId); -} - -inline Windows::Foundation::IAsyncOperation HidDevice::FromIdAsync(hstring_ref deviceId, Windows::Storage::FileAccessMode accessMode) -{ - return get_activation_factory().FromIdAsync(deviceId, accessMode); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.I2c.Provider.h b/10.0.14393.0/winrt/Windows.Devices.I2c.Provider.h deleted file mode 100644 index fefa163b2..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.I2c.Provider.h +++ /dev/null @@ -1,327 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.I2c.Provider.3.h" -#include "Windows.Devices.I2c.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceProvider(abi_arg_in settings, abi_arg_out device) noexcept override - { - try - { - *device = detach(this->shim().GetDeviceProvider(*reinterpret_cast(&settings))); - return S_OK; - } - catch (...) - { - *device = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Write(uint32_t __bufferSize, abi_arg_in * buffer) noexcept override - { - try - { - this->shim().Write(array_ref(buffer, buffer + __bufferSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WritePartial(uint32_t __bufferSize, abi_arg_in * buffer, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().WritePartial(array_ref(buffer, buffer + __bufferSize))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Read(uint32_t __bufferSize, abi_arg_out buffer) noexcept override - { - try - { - this->shim().Read(*buffer); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadPartial(uint32_t __bufferSize, abi_arg_out buffer, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReadPartial(*buffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteRead(uint32_t __writeBufferSize, abi_arg_in * writeBuffer, uint32_t __readBufferSize, abi_arg_out readBuffer) noexcept override - { - try - { - this->shim().WriteRead(array_ref(writeBuffer, writeBuffer + __writeBufferSize), *readBuffer); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteReadPartial(uint32_t __writeBufferSize, abi_arg_in * writeBuffer, uint32_t __readBufferSize, abi_arg_out readBuffer, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().WriteReadPartial(array_ref(writeBuffer, writeBuffer + __writeBufferSize), *readBuffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetControllersAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetControllersAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SlaveAddress(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SlaveAddress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SlaveAddress(int32_t value) noexcept override - { - try - { - this->shim().SlaveAddress(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BusSpeed(Windows::Devices::I2c::Provider::ProviderI2cBusSpeed * value) noexcept override - { - try - { - *value = detach(this->shim().BusSpeed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BusSpeed(Windows::Devices::I2c::Provider::ProviderI2cBusSpeed value) noexcept override - { - try - { - this->shim().BusSpeed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SharingMode(Windows::Devices::I2c::Provider::ProviderI2cSharingMode * value) noexcept override - { - try - { - *value = detach(this->shim().SharingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SharingMode(Windows::Devices::I2c::Provider::ProviderI2cSharingMode value) noexcept override - { - try - { - this->shim().SharingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::I2c::Provider { - -template int32_t impl_IProviderI2cConnectionSettings::SlaveAddress() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SlaveAddress(&value)); - return value; -} - -template void impl_IProviderI2cConnectionSettings::SlaveAddress(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SlaveAddress(value)); -} - -template Windows::Devices::I2c::Provider::ProviderI2cBusSpeed impl_IProviderI2cConnectionSettings::BusSpeed() const -{ - Windows::Devices::I2c::Provider::ProviderI2cBusSpeed value {}; - check_hresult(static_cast(static_cast(*this))->get_BusSpeed(&value)); - return value; -} - -template void impl_IProviderI2cConnectionSettings::BusSpeed(Windows::Devices::I2c::Provider::ProviderI2cBusSpeed value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BusSpeed(value)); -} - -template Windows::Devices::I2c::Provider::ProviderI2cSharingMode impl_IProviderI2cConnectionSettings::SharingMode() const -{ - Windows::Devices::I2c::Provider::ProviderI2cSharingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SharingMode(&value)); - return value; -} - -template void impl_IProviderI2cConnectionSettings::SharingMode(Windows::Devices::I2c::Provider::ProviderI2cSharingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SharingMode(value)); -} - -template Windows::Devices::I2c::Provider::II2cDeviceProvider impl_II2cControllerProvider::GetDeviceProvider(const Windows::Devices::I2c::Provider::ProviderI2cConnectionSettings & settings) const -{ - Windows::Devices::I2c::Provider::II2cDeviceProvider device; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceProvider(get(settings), put(device))); - return device; -} - -template Windows::Foundation::IAsyncOperation> impl_II2cProvider::GetControllersAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetControllersAsync(put(operation))); - return operation; -} - -template hstring impl_II2cDeviceProvider::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template void impl_II2cDeviceProvider::Write(array_ref buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Write(buffer.size(), get(buffer))); -} - -template Windows::Devices::I2c::Provider::ProviderI2cTransferResult impl_II2cDeviceProvider::WritePartial(array_ref buffer) const -{ - Windows::Devices::I2c::Provider::ProviderI2cTransferResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_WritePartial(buffer.size(), get(buffer), put(result))); - return result; -} - -template void impl_II2cDeviceProvider::Read(array_ref buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Read(buffer.size(), get(buffer))); -} - -template Windows::Devices::I2c::Provider::ProviderI2cTransferResult impl_II2cDeviceProvider::ReadPartial(array_ref buffer) const -{ - Windows::Devices::I2c::Provider::ProviderI2cTransferResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadPartial(buffer.size(), get(buffer), put(result))); - return result; -} - -template void impl_II2cDeviceProvider::WriteRead(array_ref writeBuffer, array_ref readBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteRead(writeBuffer.size(), get(writeBuffer), readBuffer.size(), get(readBuffer))); -} - -template Windows::Devices::I2c::Provider::ProviderI2cTransferResult impl_II2cDeviceProvider::WriteReadPartial(array_ref writeBuffer, array_ref readBuffer) const -{ - Windows::Devices::I2c::Provider::ProviderI2cTransferResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_WriteReadPartial(writeBuffer.size(), get(writeBuffer), readBuffer.size(), get(readBuffer), put(result))); - return result; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.I2c.h b/10.0.14393.0/winrt/Windows.Devices.I2c.h deleted file mode 100644 index eb1973c4b..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.I2c.h +++ /dev/null @@ -1,492 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.I2c.Provider.3.h" -#include "internal/Windows.Devices.I2c.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SlaveAddress(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SlaveAddress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SlaveAddress(int32_t value) noexcept override - { - try - { - this->shim().SlaveAddress(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BusSpeed(Windows::Devices::I2c::I2cBusSpeed * value) noexcept override - { - try - { - *value = detach(this->shim().BusSpeed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BusSpeed(Windows::Devices::I2c::I2cBusSpeed value) noexcept override - { - try - { - this->shim().BusSpeed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SharingMode(Windows::Devices::I2c::I2cSharingMode * value) noexcept override - { - try - { - *value = detach(this->shim().SharingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SharingMode(Windows::Devices::I2c::I2cSharingMode value) noexcept override - { - try - { - this->shim().SharingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(int32_t slaveAddress, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(slaveAddress)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDevice(abi_arg_in settings, abi_arg_out device) noexcept override - { - try - { - *device = detach(this->shim().GetDevice(*reinterpret_cast(&settings))); - return S_OK; - } - catch (...) - { - *device = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetControllersAsync(abi_arg_in provider, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetControllersAsync(*reinterpret_cast(&provider))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Write(uint32_t __bufferSize, abi_arg_in * buffer) noexcept override - { - try - { - this->shim().Write(array_ref(buffer, buffer + __bufferSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WritePartial(uint32_t __bufferSize, abi_arg_in * buffer, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().WritePartial(array_ref(buffer, buffer + __bufferSize))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Read(uint32_t __bufferSize, abi_arg_out buffer) noexcept override - { - try - { - this->shim().Read(*buffer); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadPartial(uint32_t __bufferSize, abi_arg_out buffer, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReadPartial(*buffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteRead(uint32_t __writeBufferSize, abi_arg_in * writeBuffer, uint32_t __readBufferSize, abi_arg_out readBuffer) noexcept override - { - try - { - this->shim().WriteRead(array_ref(writeBuffer, writeBuffer + __writeBufferSize), *readBuffer); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteReadPartial(uint32_t __writeBufferSize, abi_arg_in * writeBuffer, uint32_t __readBufferSize, abi_arg_out readBuffer, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().WriteReadPartial(array_ref(writeBuffer, writeBuffer + __writeBufferSize), *readBuffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromFriendlyName(abi_arg_in friendlyName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector(*reinterpret_cast(&friendlyName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_in settings, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId), *reinterpret_cast(&settings))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::I2c { - -template Windows::Devices::I2c::I2cConnectionSettings impl_II2cConnectionSettingsFactory::Create(int32_t slaveAddress) const -{ - Windows::Devices::I2c::I2cConnectionSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(slaveAddress, put(value))); - return value; -} - -template int32_t impl_II2cConnectionSettings::SlaveAddress() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SlaveAddress(&value)); - return value; -} - -template void impl_II2cConnectionSettings::SlaveAddress(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SlaveAddress(value)); -} - -template Windows::Devices::I2c::I2cBusSpeed impl_II2cConnectionSettings::BusSpeed() const -{ - Windows::Devices::I2c::I2cBusSpeed value {}; - check_hresult(static_cast(static_cast(*this))->get_BusSpeed(&value)); - return value; -} - -template void impl_II2cConnectionSettings::BusSpeed(Windows::Devices::I2c::I2cBusSpeed value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BusSpeed(value)); -} - -template Windows::Devices::I2c::I2cSharingMode impl_II2cConnectionSettings::SharingMode() const -{ - Windows::Devices::I2c::I2cSharingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SharingMode(&value)); - return value; -} - -template void impl_II2cConnectionSettings::SharingMode(Windows::Devices::I2c::I2cSharingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SharingMode(value)); -} - -template hstring impl_II2cDeviceStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template hstring impl_II2cDeviceStatics::GetDeviceSelector(hstring_ref friendlyName) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromFriendlyName(get(friendlyName), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_II2cDeviceStatics::FromIdAsync(hstring_ref deviceId, const Windows::Devices::I2c::I2cConnectionSettings & settings) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), get(settings), put(operation))); - return operation; -} - -template Windows::Devices::I2c::I2cDevice impl_II2cController::GetDevice(const Windows::Devices::I2c::I2cConnectionSettings & settings) const -{ - Windows::Devices::I2c::I2cDevice device { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDevice(get(settings), put(device))); - return device; -} - -template Windows::Foundation::IAsyncOperation> impl_II2cControllerStatics::GetControllersAsync(const Windows::Devices::I2c::Provider::II2cProvider & provider) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetControllersAsync(get(provider), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_II2cControllerStatics::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(operation))); - return operation; -} - -template hstring impl_II2cDevice::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::I2c::I2cConnectionSettings impl_II2cDevice::ConnectionSettings() const -{ - Windows::Devices::I2c::I2cConnectionSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ConnectionSettings(put(value))); - return value; -} - -template void impl_II2cDevice::Write(array_ref buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Write(buffer.size(), get(buffer))); -} - -template Windows::Devices::I2c::I2cTransferResult impl_II2cDevice::WritePartial(array_ref buffer) const -{ - Windows::Devices::I2c::I2cTransferResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_WritePartial(buffer.size(), get(buffer), put(result))); - return result; -} - -template void impl_II2cDevice::Read(array_ref buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Read(buffer.size(), get(buffer))); -} - -template Windows::Devices::I2c::I2cTransferResult impl_II2cDevice::ReadPartial(array_ref buffer) const -{ - Windows::Devices::I2c::I2cTransferResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadPartial(buffer.size(), get(buffer), put(result))); - return result; -} - -template void impl_II2cDevice::WriteRead(array_ref writeBuffer, array_ref readBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteRead(writeBuffer.size(), get(writeBuffer), readBuffer.size(), get(readBuffer))); -} - -template Windows::Devices::I2c::I2cTransferResult impl_II2cDevice::WriteReadPartial(array_ref writeBuffer, array_ref readBuffer) const -{ - Windows::Devices::I2c::I2cTransferResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_WriteReadPartial(writeBuffer.size(), get(writeBuffer), readBuffer.size(), get(readBuffer), put(result))); - return result; -} - -inline I2cConnectionSettings::I2cConnectionSettings(int32_t slaveAddress) : - I2cConnectionSettings(get_activation_factory().Create(slaveAddress)) -{} - -inline Windows::Foundation::IAsyncOperation> I2cController::GetControllersAsync(const Windows::Devices::I2c::Provider::II2cProvider & provider) -{ - return get_activation_factory().GetControllersAsync(provider); -} - -inline Windows::Foundation::IAsyncOperation I2cController::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -inline hstring I2cDevice::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline hstring I2cDevice::GetDeviceSelector(hstring_ref friendlyName) -{ - return get_activation_factory().GetDeviceSelector(friendlyName); -} - -inline Windows::Foundation::IAsyncOperation I2cDevice::FromIdAsync(hstring_ref deviceId, const Windows::Devices::I2c::I2cConnectionSettings & settings) -{ - return get_activation_factory().FromIdAsync(deviceId, settings); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Input.h b/10.0.14393.0/winrt/Windows.Devices.Input.h deleted file mode 100644 index 295e8a8ec..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Input.h +++ /dev/null @@ -1,511 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Input.3.h" -#include "Windows.Devices.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_KeyboardPresent(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().KeyboardPresent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MousePresent(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MousePresent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalWheelPresent(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalWheelPresent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalWheelPresent(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalWheelPresent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SwapButtons(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SwapButtons()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfButtons(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfButtons()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_MouseMoved(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().MouseMoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MouseMoved(event_token cookie) noexcept override - { - try - { - this->shim().MouseMoved(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out mouseDevice) noexcept override - { - try - { - *mouseDevice = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *mouseDevice = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MouseDelta(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MouseDelta()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerDeviceType(Windows::Devices::Input::PointerDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().PointerDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsIntegrated(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIntegrated()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxContacts(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxContacts()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhysicalDeviceRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhysicalDeviceRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScreenRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScreenRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedUsages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedUsages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxPointersWithZDistance(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPointersWithZDistance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPointerDevice(uint32_t pointerId, abi_arg_out pointerDevice) noexcept override - { - try - { - *pointerDevice = detach(this->shim().GetPointerDevice(pointerId)); - return S_OK; - } - catch (...) - { - *pointerDevice = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPointerDevices(abi_arg_out> pointerDevices) noexcept override - { - try - { - *pointerDevices = detach(this->shim().GetPointerDevices()); - return S_OK; - } - catch (...) - { - *pointerDevices = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TouchPresent(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TouchPresent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contacts(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Contacts()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Input { - -template int32_t impl_IMouseCapabilities::MousePresent() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MousePresent(&value)); - return value; -} - -template int32_t impl_IMouseCapabilities::VerticalWheelPresent() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalWheelPresent(&value)); - return value; -} - -template int32_t impl_IMouseCapabilities::HorizontalWheelPresent() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalWheelPresent(&value)); - return value; -} - -template int32_t impl_IMouseCapabilities::SwapButtons() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SwapButtons(&value)); - return value; -} - -template uint32_t impl_IMouseCapabilities::NumberOfButtons() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfButtons(&value)); - return value; -} - -template int32_t impl_IKeyboardCapabilities::KeyboardPresent() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyboardPresent(&value)); - return value; -} - -template int32_t impl_ITouchCapabilities::TouchPresent() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TouchPresent(&value)); - return value; -} - -template uint32_t impl_ITouchCapabilities::Contacts() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Contacts(&value)); - return value; -} - -template Windows::Devices::Input::PointerDevice impl_IPointerDeviceStatics::GetPointerDevice(uint32_t pointerId) const -{ - Windows::Devices::Input::PointerDevice pointerDevice { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetPointerDevice(pointerId, put(pointerDevice))); - return pointerDevice; -} - -template Windows::Foundation::Collections::IVectorView impl_IPointerDeviceStatics::GetPointerDevices() const -{ - Windows::Foundation::Collections::IVectorView pointerDevices; - check_hresult(static_cast(static_cast(*this))->abi_GetPointerDevices(put(pointerDevices))); - return pointerDevices; -} - -template Windows::Devices::Input::PointerDeviceType impl_IPointerDevice::PointerDeviceType() const -{ - Windows::Devices::Input::PointerDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerDeviceType(&value)); - return value; -} - -template bool impl_IPointerDevice::IsIntegrated() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsIntegrated(&value)); - return value; -} - -template uint32_t impl_IPointerDevice::MaxContacts() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxContacts(&value)); - return value; -} - -template Windows::Foundation::Rect impl_IPointerDevice::PhysicalDeviceRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_PhysicalDeviceRect(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IPointerDevice::ScreenRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_ScreenRect(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPointerDevice::SupportedUsages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedUsages(put(value))); - return value; -} - -template uint32_t impl_IPointerDevice2::MaxPointersWithZDistance() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPointersWithZDistance(&value)); - return value; -} - -template Windows::Devices::Input::MouseDelta impl_IMouseEventArgs::MouseDelta() const -{ - Windows::Devices::Input::MouseDelta value {}; - check_hresult(static_cast(static_cast(*this))->get_MouseDelta(put(value))); - return value; -} - -template event_token impl_IMouseDevice::MouseMoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_MouseMoved(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMouseDevice::MouseMoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Input::IMouseDevice::remove_MouseMoved, MouseMoved(handler)); -} - -template void impl_IMouseDevice::MouseMoved(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MouseMoved(cookie)); -} - -template Windows::Devices::Input::MouseDevice impl_IMouseDeviceStatics::GetForCurrentView() const -{ - Windows::Devices::Input::MouseDevice mouseDevice { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(mouseDevice))); - return mouseDevice; -} - -inline KeyboardCapabilities::KeyboardCapabilities() : - KeyboardCapabilities(activate_instance()) -{} - -inline MouseCapabilities::MouseCapabilities() : - MouseCapabilities(activate_instance()) -{} - -inline Windows::Devices::Input::MouseDevice MouseDevice::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline Windows::Devices::Input::PointerDevice PointerDevice::GetPointerDevice(uint32_t pointerId) -{ - return get_activation_factory().GetPointerDevice(pointerId); -} - -inline Windows::Foundation::Collections::IVectorView PointerDevice::GetPointerDevices() -{ - return get_activation_factory().GetPointerDevices(); -} - -inline TouchCapabilities::TouchCapabilities() : - TouchCapabilities(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Lights.h b/10.0.14393.0/winrt/Windows.Devices.Lights.h deleted file mode 100644 index 5d6b71402..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Lights.h +++ /dev/null @@ -1,330 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Devices.Lights.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsEnabled(bool value) noexcept override - { - try - { - this->shim().IsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrightnessLevel(float * value) noexcept override - { - try - { - *value = detach(this->shim().BrightnessLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BrightnessLevel(float value) noexcept override - { - try - { - this->shim().BrightnessLevel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsColorSettable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsColorSettable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Color(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Color()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Color(abi_arg_in value) noexcept override - { - try - { - this->shim().Color(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AvailabilityChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AvailabilityChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AvailabilityChanged(event_token token) noexcept override - { - try - { - this->shim().AvailabilityChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsAvailable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAvailable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Lights { - -template hstring impl_ILampStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ILampStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILampStatics::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(operation))); - return operation; -} - -template bool impl_ILampAvailabilityChangedEventArgs::IsAvailable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAvailable(&value)); - return value; -} - -template hstring impl_ILamp::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template bool impl_ILamp::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_ILamp::IsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsEnabled(value)); -} - -template float impl_ILamp::BrightnessLevel() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_BrightnessLevel(&value)); - return value; -} - -template void impl_ILamp::BrightnessLevel(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BrightnessLevel(value)); -} - -template bool impl_ILamp::IsColorSettable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsColorSettable(&value)); - return value; -} - -template Windows::UI::Color impl_ILamp::Color() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_Color(put(value))); - return value; -} - -template void impl_ILamp::Color(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Color(get(value))); -} - -template event_token impl_ILamp::AvailabilityChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AvailabilityChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ILamp::AvailabilityChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Lights::ILamp::remove_AvailabilityChanged, AvailabilityChanged(handler)); -} - -template void impl_ILamp::AvailabilityChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AvailabilityChanged(token)); -} - -inline hstring Lamp::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Foundation::IAsyncOperation Lamp::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline Windows::Foundation::IAsyncOperation Lamp::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Midi.h b/10.0.14393.0/winrt/Windows.Devices.Midi.h deleted file mode 100644 index d672cae3f..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Midi.h +++ /dev/null @@ -1,1325 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Devices.Midi.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Channel(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Channel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pressure(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Pressure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMidiChannelPressureMessage(uint8_t channel, uint8_t pressure, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMidiChannelPressureMessage(channel, pressure)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Channel(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Channel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Controller(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Controller()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ControlValue(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ControlValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMidiControlChangeMessage(uint8_t channel, uint8_t controller, uint8_t controlValue, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMidiControlChangeMessage(channel, controller, controlValue)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_MessageReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MessageReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MessageReceived(event_token token) noexcept override - { - try - { - this->shim().MessageReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RawData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::Devices::Midi::MidiMessageType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Channel(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Channel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Note(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Note()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Velocity(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Velocity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMidiNoteOffMessage(uint8_t channel, uint8_t note, uint8_t velocity, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMidiNoteOffMessage(channel, note, velocity)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Channel(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Channel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Note(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Note()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Velocity(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Velocity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMidiNoteOnMessage(uint8_t channel, uint8_t note, uint8_t velocity, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMidiNoteOnMessage(channel, note, velocity)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SendMessage(abi_arg_in midiMessage) noexcept override - { - try - { - this->shim().SendMessage(*reinterpret_cast(&midiMessage)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendBuffer(abi_arg_in midiData) noexcept override - { - try - { - this->shim().SendBuffer(*reinterpret_cast(&midiData)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Channel(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Channel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bend(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Bend()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMidiPitchBendChangeMessage(uint8_t channel, uint16_t bend, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMidiPitchBendChangeMessage(channel, bend)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Channel(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Channel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Note(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Note()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pressure(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Pressure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMidiPolyphonicKeyPressureMessage(uint8_t channel, uint8_t note, uint8_t pressure, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMidiPolyphonicKeyPressureMessage(channel, note, pressure)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Channel(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Channel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Program(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Program()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMidiProgramChangeMessage(uint8_t channel, uint8_t program, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMidiProgramChangeMessage(channel, program)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Beats(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Beats()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMidiSongPositionPointerMessage(uint16_t beats, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMidiSongPositionPointerMessage(beats)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Song(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Song()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMidiSongSelectMessage(uint8_t song, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMidiSongSelectMessage(song)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AudioDevice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioDevice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Volume(double * value) noexcept override - { - try - { - *value = detach(this->shim().Volume()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Volume(double value) noexcept override - { - try - { - this->shim().Volume(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromAudioDeviceAsync(abi_arg_in audioDevice, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateAsync(*reinterpret_cast(&audioDevice))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsSynthesizer(abi_arg_in midiDevice, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSynthesizer(*reinterpret_cast(&midiDevice))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMidiSystemExclusiveMessage(abi_arg_in rawData, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMidiSystemExclusiveMessage(*reinterpret_cast(&rawData))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameType(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().FrameType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Values(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Values()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMidiTimeCodeMessage(uint8_t frameType, uint8_t values, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMidiTimeCodeMessage(frameType, values)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Midi { - -template Windows::Foundation::TimeSpan impl_IMidiMessage::Timestamp() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IMidiMessage::RawData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_RawData(put(value))); - return value; -} - -template Windows::Devices::Midi::MidiMessageType impl_IMidiMessage::Type() const -{ - Windows::Devices::Midi::MidiMessageType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template uint8_t impl_IMidiNoteOffMessage::Channel() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Channel(&value)); - return value; -} - -template uint8_t impl_IMidiNoteOffMessage::Note() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Note(&value)); - return value; -} - -template uint8_t impl_IMidiNoteOffMessage::Velocity() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Velocity(&value)); - return value; -} - -template uint8_t impl_IMidiNoteOnMessage::Channel() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Channel(&value)); - return value; -} - -template uint8_t impl_IMidiNoteOnMessage::Note() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Note(&value)); - return value; -} - -template uint8_t impl_IMidiNoteOnMessage::Velocity() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Velocity(&value)); - return value; -} - -template uint8_t impl_IMidiPolyphonicKeyPressureMessage::Channel() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Channel(&value)); - return value; -} - -template uint8_t impl_IMidiPolyphonicKeyPressureMessage::Note() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Note(&value)); - return value; -} - -template uint8_t impl_IMidiPolyphonicKeyPressureMessage::Pressure() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Pressure(&value)); - return value; -} - -template uint8_t impl_IMidiControlChangeMessage::Channel() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Channel(&value)); - return value; -} - -template uint8_t impl_IMidiControlChangeMessage::Controller() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Controller(&value)); - return value; -} - -template uint8_t impl_IMidiControlChangeMessage::ControlValue() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ControlValue(&value)); - return value; -} - -template uint8_t impl_IMidiProgramChangeMessage::Channel() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Channel(&value)); - return value; -} - -template uint8_t impl_IMidiProgramChangeMessage::Program() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Program(&value)); - return value; -} - -template uint8_t impl_IMidiChannelPressureMessage::Channel() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Channel(&value)); - return value; -} - -template uint8_t impl_IMidiChannelPressureMessage::Pressure() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Pressure(&value)); - return value; -} - -template uint8_t impl_IMidiPitchBendChangeMessage::Channel() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Channel(&value)); - return value; -} - -template uint16_t impl_IMidiPitchBendChangeMessage::Bend() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Bend(&value)); - return value; -} - -template uint8_t impl_IMidiTimeCodeMessage::FrameType() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FrameType(&value)); - return value; -} - -template uint8_t impl_IMidiTimeCodeMessage::Values() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Values(&value)); - return value; -} - -template uint16_t impl_IMidiSongPositionPointerMessage::Beats() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Beats(&value)); - return value; -} - -template uint8_t impl_IMidiSongSelectMessage::Song() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Song(&value)); - return value; -} - -template Windows::Devices::Midi::MidiNoteOffMessage impl_IMidiNoteOffMessageFactory::CreateMidiNoteOffMessage(uint8_t channel, uint8_t note, uint8_t velocity) const -{ - Windows::Devices::Midi::MidiNoteOffMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMidiNoteOffMessage(channel, note, velocity, put(value))); - return value; -} - -template Windows::Devices::Midi::MidiNoteOnMessage impl_IMidiNoteOnMessageFactory::CreateMidiNoteOnMessage(uint8_t channel, uint8_t note, uint8_t velocity) const -{ - Windows::Devices::Midi::MidiNoteOnMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMidiNoteOnMessage(channel, note, velocity, put(value))); - return value; -} - -template Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage impl_IMidiPolyphonicKeyPressureMessageFactory::CreateMidiPolyphonicKeyPressureMessage(uint8_t channel, uint8_t note, uint8_t pressure) const -{ - Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMidiPolyphonicKeyPressureMessage(channel, note, pressure, put(value))); - return value; -} - -template Windows::Devices::Midi::MidiControlChangeMessage impl_IMidiControlChangeMessageFactory::CreateMidiControlChangeMessage(uint8_t channel, uint8_t controller, uint8_t controlValue) const -{ - Windows::Devices::Midi::MidiControlChangeMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMidiControlChangeMessage(channel, controller, controlValue, put(value))); - return value; -} - -template Windows::Devices::Midi::MidiProgramChangeMessage impl_IMidiProgramChangeMessageFactory::CreateMidiProgramChangeMessage(uint8_t channel, uint8_t program) const -{ - Windows::Devices::Midi::MidiProgramChangeMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMidiProgramChangeMessage(channel, program, put(value))); - return value; -} - -template Windows::Devices::Midi::MidiChannelPressureMessage impl_IMidiChannelPressureMessageFactory::CreateMidiChannelPressureMessage(uint8_t channel, uint8_t pressure) const -{ - Windows::Devices::Midi::MidiChannelPressureMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMidiChannelPressureMessage(channel, pressure, put(value))); - return value; -} - -template Windows::Devices::Midi::MidiPitchBendChangeMessage impl_IMidiPitchBendChangeMessageFactory::CreateMidiPitchBendChangeMessage(uint8_t channel, uint16_t bend) const -{ - Windows::Devices::Midi::MidiPitchBendChangeMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMidiPitchBendChangeMessage(channel, bend, put(value))); - return value; -} - -template Windows::Devices::Midi::MidiSystemExclusiveMessage impl_IMidiSystemExclusiveMessageFactory::CreateMidiSystemExclusiveMessage(const Windows::Storage::Streams::IBuffer & rawData) const -{ - Windows::Devices::Midi::MidiSystemExclusiveMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMidiSystemExclusiveMessage(get(rawData), put(value))); - return value; -} - -template Windows::Devices::Midi::MidiTimeCodeMessage impl_IMidiTimeCodeMessageFactory::CreateMidiTimeCodeMessage(uint8_t frameType, uint8_t values) const -{ - Windows::Devices::Midi::MidiTimeCodeMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMidiTimeCodeMessage(frameType, values, put(value))); - return value; -} - -template Windows::Devices::Midi::MidiSongPositionPointerMessage impl_IMidiSongPositionPointerMessageFactory::CreateMidiSongPositionPointerMessage(uint16_t beats) const -{ - Windows::Devices::Midi::MidiSongPositionPointerMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMidiSongPositionPointerMessage(beats, put(value))); - return value; -} - -template Windows::Devices::Midi::MidiSongSelectMessage impl_IMidiSongSelectMessageFactory::CreateMidiSongSelectMessage(uint8_t song) const -{ - Windows::Devices::Midi::MidiSongSelectMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMidiSongSelectMessage(song, put(value))); - return value; -} - -template Windows::Devices::Midi::IMidiMessage impl_IMidiMessageReceivedEventArgs::Message() const -{ - Windows::Devices::Midi::IMidiMessage value; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMidiInPortStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(value))); - return value; -} - -template hstring impl_IMidiInPortStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMidiOutPortStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(value))); - return value; -} - -template hstring impl_IMidiOutPortStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMidiSynthesizerStatics::CreateAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMidiSynthesizerStatics::CreateAsync(const Windows::Devices::Enumeration::DeviceInformation & audioDevice) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromAudioDeviceAsync(get(audioDevice), put(value))); - return value; -} - -template bool impl_IMidiSynthesizerStatics::IsSynthesizer(const Windows::Devices::Enumeration::DeviceInformation & midiDevice) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsSynthesizer(get(midiDevice), &value)); - return value; -} - -template void impl_IMidiOutPort::SendMessage(const Windows::Devices::Midi::IMidiMessage & midiMessage) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SendMessage(get(midiMessage))); -} - -template void impl_IMidiOutPort::SendBuffer(const Windows::Storage::Streams::IBuffer & midiData) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SendBuffer(get(midiData))); -} - -template hstring impl_IMidiOutPort::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template event_token impl_IMidiInPort::MessageReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MessageReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMidiInPort::MessageReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Midi::IMidiInPort::remove_MessageReceived, MessageReceived(handler)); -} - -template void impl_IMidiInPort::MessageReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MessageReceived(token)); -} - -template hstring impl_IMidiInPort::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IMidiSynthesizer::AudioDevice() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AudioDevice(put(value))); - return value; -} - -template double impl_IMidiSynthesizer::Volume() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Volume(&value)); - return value; -} - -template void impl_IMidiSynthesizer::Volume(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Volume(value)); -} - -inline MidiActiveSensingMessage::MidiActiveSensingMessage() : - MidiActiveSensingMessage(activate_instance()) -{} - -inline MidiChannelPressureMessage::MidiChannelPressureMessage(uint8_t channel, uint8_t pressure) : - MidiChannelPressureMessage(get_activation_factory().CreateMidiChannelPressureMessage(channel, pressure)) -{} - -inline MidiContinueMessage::MidiContinueMessage() : - MidiContinueMessage(activate_instance()) -{} - -inline MidiControlChangeMessage::MidiControlChangeMessage(uint8_t channel, uint8_t controller, uint8_t controlValue) : - MidiControlChangeMessage(get_activation_factory().CreateMidiControlChangeMessage(channel, controller, controlValue)) -{} - -inline Windows::Foundation::IAsyncOperation MidiInPort::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring MidiInPort::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline MidiNoteOffMessage::MidiNoteOffMessage(uint8_t channel, uint8_t note, uint8_t velocity) : - MidiNoteOffMessage(get_activation_factory().CreateMidiNoteOffMessage(channel, note, velocity)) -{} - -inline MidiNoteOnMessage::MidiNoteOnMessage(uint8_t channel, uint8_t note, uint8_t velocity) : - MidiNoteOnMessage(get_activation_factory().CreateMidiNoteOnMessage(channel, note, velocity)) -{} - -inline Windows::Foundation::IAsyncOperation MidiOutPort::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring MidiOutPort::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline MidiPitchBendChangeMessage::MidiPitchBendChangeMessage(uint8_t channel, uint16_t bend) : - MidiPitchBendChangeMessage(get_activation_factory().CreateMidiPitchBendChangeMessage(channel, bend)) -{} - -inline MidiPolyphonicKeyPressureMessage::MidiPolyphonicKeyPressureMessage(uint8_t channel, uint8_t note, uint8_t pressure) : - MidiPolyphonicKeyPressureMessage(get_activation_factory().CreateMidiPolyphonicKeyPressureMessage(channel, note, pressure)) -{} - -inline MidiProgramChangeMessage::MidiProgramChangeMessage(uint8_t channel, uint8_t program) : - MidiProgramChangeMessage(get_activation_factory().CreateMidiProgramChangeMessage(channel, program)) -{} - -inline MidiSongPositionPointerMessage::MidiSongPositionPointerMessage(uint16_t beats) : - MidiSongPositionPointerMessage(get_activation_factory().CreateMidiSongPositionPointerMessage(beats)) -{} - -inline MidiSongSelectMessage::MidiSongSelectMessage(uint8_t song) : - MidiSongSelectMessage(get_activation_factory().CreateMidiSongSelectMessage(song)) -{} - -inline MidiStartMessage::MidiStartMessage() : - MidiStartMessage(activate_instance()) -{} - -inline MidiStopMessage::MidiStopMessage() : - MidiStopMessage(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation MidiSynthesizer::CreateAsync() -{ - return get_activation_factory().CreateAsync(); -} - -inline Windows::Foundation::IAsyncOperation MidiSynthesizer::CreateAsync(const Windows::Devices::Enumeration::DeviceInformation & audioDevice) -{ - return get_activation_factory().CreateAsync(audioDevice); -} - -inline bool MidiSynthesizer::IsSynthesizer(const Windows::Devices::Enumeration::DeviceInformation & midiDevice) -{ - return get_activation_factory().IsSynthesizer(midiDevice); -} - -inline MidiSystemExclusiveMessage::MidiSystemExclusiveMessage(const Windows::Storage::Streams::IBuffer & rawData) : - MidiSystemExclusiveMessage(get_activation_factory().CreateMidiSystemExclusiveMessage(rawData)) -{} - -inline MidiSystemResetMessage::MidiSystemResetMessage() : - MidiSystemResetMessage(activate_instance()) -{} - -inline MidiTimeCodeMessage::MidiTimeCodeMessage(uint8_t frameType, uint8_t values) : - MidiTimeCodeMessage(get_activation_factory().CreateMidiTimeCodeMessage(frameType, values)) -{} - -inline MidiTimingClockMessage::MidiTimingClockMessage() : - MidiTimingClockMessage(activate_instance()) -{} - -inline MidiTuneRequestMessage::MidiTuneRequestMessage() : - MidiTuneRequestMessage(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Perception.Provider.h b/10.0.14393.0/winrt/Windows.Devices.Perception.Provider.h deleted file mode 100644 index 51887fb33..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Perception.Provider.h +++ /dev/null @@ -1,1248 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Graphics.Imaging.3.h" -#include "internal/Windows.Devices.Perception.3.h" -#include "internal/Windows.Media.3.h" -#include "internal/Windows.Devices.Perception.Provider.3.h" -#include "Windows.Devices.Perception.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Devices::Perception::Provider { - -template PerceptionStartFaceAuthenticationHandler::PerceptionStartFaceAuthenticationHandler(L lambda) : - PerceptionStartFaceAuthenticationHandler(impl::make_delegate, PerceptionStartFaceAuthenticationHandler>(std::forward(lambda))) -{} - -template PerceptionStartFaceAuthenticationHandler::PerceptionStartFaceAuthenticationHandler(F * function) : - PerceptionStartFaceAuthenticationHandler([=](auto && ... args) { return function(args ...); }) -{} - -template PerceptionStartFaceAuthenticationHandler::PerceptionStartFaceAuthenticationHandler(O * object, M method) : - PerceptionStartFaceAuthenticationHandler([=](auto && ... args) { return ((*object).*(method))(args ...); }) -{} - -inline bool PerceptionStartFaceAuthenticationHandler::operator()(const Windows::Devices::Perception::Provider::PerceptionFaceAuthenticationGroup & sender) const -{ - bool result {}; - check_hresult((*this)->abi_Invoke(get(sender), &result)); - return result; -} - -template PerceptionStopFaceAuthenticationHandler::PerceptionStopFaceAuthenticationHandler(L lambda) : - PerceptionStopFaceAuthenticationHandler(impl::make_delegate, PerceptionStopFaceAuthenticationHandler>(std::forward(lambda))) -{} - -template PerceptionStopFaceAuthenticationHandler::PerceptionStopFaceAuthenticationHandler(F * function) : - PerceptionStopFaceAuthenticationHandler([=](auto && ... args) { function(args ...); }) -{} - -template PerceptionStopFaceAuthenticationHandler::PerceptionStopFaceAuthenticationHandler(O * object, M method) : - PerceptionStopFaceAuthenticationHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void PerceptionStopFaceAuthenticationHandler::operator()(const Windows::Devices::Perception::Provider::PerceptionFaceAuthenticationGroup & sender) const -{ - check_hresult((*this)->abi_Invoke(get(sender))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Color(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Color()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Depth(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Depth()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Infrared(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Infrared()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameProviderIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FrameProviderIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in> ids, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast *>(&ids))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TargetId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in targetId, abi_arg_in position, abi_arg_in orientation, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&targetId), *reinterpret_cast(&position), *reinterpret_cast(&orientation))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RelativeLocations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RelativeLocations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in> relativeLocations, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast *>(&relativeLocations))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameProviderIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FrameProviderIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in> ids, abi_arg_in startHandler, abi_arg_in stopHandler, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast *>(&ids), *reinterpret_cast(&startHandler), *reinterpret_cast(&stopHandler))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RelativeTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RelativeTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RelativeTime(abi_arg_in value) noexcept override - { - try - { - this->shim().RelativeTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameProviderInfo(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().FrameProviderInfo()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Available(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Available()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetProperty(abi_arg_in value) noexcept override - { - try - { - this->shim().SetProperty(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Id(abi_arg_in value) noexcept override - { - try - { - this->shim().Id(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceKind(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceKind()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DeviceKind(abi_arg_in value) noexcept override - { - try - { - this->shim().DeviceKind(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameKind(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameKind()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FrameKind(abi_arg_in value) noexcept override - { - try - { - this->shim().FrameKind(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Hidden(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Hidden()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Hidden(bool value) noexcept override - { - try - { - this->shim().Hidden(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetFrameProvider(abi_arg_in frameProviderInfo, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetFrameProvider(*reinterpret_cast(&frameProviderInfo))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RegisterFrameProviderInfo(abi_arg_in manager, abi_arg_in frameProviderInfo) noexcept override - { - try - { - this->shim().RegisterFrameProviderInfo(*reinterpret_cast(&manager), *reinterpret_cast(&frameProviderInfo)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnregisterFrameProviderInfo(abi_arg_in manager, abi_arg_in frameProviderInfo) noexcept override - { - try - { - this->shim().UnregisterFrameProviderInfo(*reinterpret_cast(&manager), *reinterpret_cast(&frameProviderInfo)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterFaceAuthenticationGroup(abi_arg_in manager, abi_arg_in faceAuthenticationGroup) noexcept override - { - try - { - this->shim().RegisterFaceAuthenticationGroup(*reinterpret_cast(&manager), *reinterpret_cast(&faceAuthenticationGroup)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnregisterFaceAuthenticationGroup(abi_arg_in manager, abi_arg_in faceAuthenticationGroup) noexcept override - { - try - { - this->shim().UnregisterFaceAuthenticationGroup(*reinterpret_cast(&manager), *reinterpret_cast(&faceAuthenticationGroup)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterControlGroup(abi_arg_in manager, abi_arg_in controlGroup) noexcept override - { - try - { - this->shim().RegisterControlGroup(*reinterpret_cast(&manager), *reinterpret_cast(&controlGroup)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnregisterControlGroup(abi_arg_in manager, abi_arg_in controlGroup) noexcept override - { - try - { - this->shim().UnregisterControlGroup(*reinterpret_cast(&manager), *reinterpret_cast(&controlGroup)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterCorrelationGroup(abi_arg_in manager, abi_arg_in correlationGroup) noexcept override - { - try - { - this->shim().RegisterCorrelationGroup(*reinterpret_cast(&manager), *reinterpret_cast(&correlationGroup)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnregisterCorrelationGroup(abi_arg_in manager, abi_arg_in correlationGroup) noexcept override - { - try - { - this->shim().UnregisterCorrelationGroup(*reinterpret_cast(&manager), *reinterpret_cast(&correlationGroup)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateAvailabilityForProvider(abi_arg_in provider, bool available) noexcept override - { - try - { - this->shim().UpdateAvailabilityForProvider(*reinterpret_cast(&provider), available); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PublishFrameForProvider(abi_arg_in provider, abi_arg_in frame) noexcept override - { - try - { - this->shim().PublishFrameForProvider(*reinterpret_cast(&provider), *reinterpret_cast(&frame)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Devices::Perception::PerceptionFrameSourcePropertyChangeStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Status(Windows::Devices::Perception::PerceptionFrameSourcePropertyChangeStatus value) noexcept override - { - try - { - this->shim().Status(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AllocateFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AllocateFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyFromVideoFrame(abi_arg_in frame, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CopyFromVideoFrame(*reinterpret_cast(&frame))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t maxOutstandingFrameCountForWrite, Windows::Graphics::Imaging::BitmapPixelFormat format, abi_arg_in resolution, Windows::Graphics::Imaging::BitmapAlphaMode alpha, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(maxOutstandingFrameCountForWrite, format, *reinterpret_cast(&resolution), alpha)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Perception::Provider { - -template hstring impl_IKnownPerceptionFrameKindStatics::Color() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Color(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionFrameKindStatics::Depth() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Depth(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionFrameKindStatics::Infrared() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Infrared(put(value))); - return value; -} - -template void impl_IPerceptionFrameProviderManagerServiceStatics::RegisterFrameProviderInfo(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionFrameProviderInfo & frameProviderInfo) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterFrameProviderInfo(get(manager), get(frameProviderInfo))); -} - -template void impl_IPerceptionFrameProviderManagerServiceStatics::UnregisterFrameProviderInfo(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionFrameProviderInfo & frameProviderInfo) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UnregisterFrameProviderInfo(get(manager), get(frameProviderInfo))); -} - -template void impl_IPerceptionFrameProviderManagerServiceStatics::RegisterFaceAuthenticationGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionFaceAuthenticationGroup & faceAuthenticationGroup) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterFaceAuthenticationGroup(get(manager), get(faceAuthenticationGroup))); -} - -template void impl_IPerceptionFrameProviderManagerServiceStatics::UnregisterFaceAuthenticationGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionFaceAuthenticationGroup & faceAuthenticationGroup) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UnregisterFaceAuthenticationGroup(get(manager), get(faceAuthenticationGroup))); -} - -template void impl_IPerceptionFrameProviderManagerServiceStatics::RegisterControlGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionControlGroup & controlGroup) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterControlGroup(get(manager), get(controlGroup))); -} - -template void impl_IPerceptionFrameProviderManagerServiceStatics::UnregisterControlGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionControlGroup & controlGroup) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UnregisterControlGroup(get(manager), get(controlGroup))); -} - -template void impl_IPerceptionFrameProviderManagerServiceStatics::RegisterCorrelationGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionCorrelationGroup & correlationGroup) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterCorrelationGroup(get(manager), get(correlationGroup))); -} - -template void impl_IPerceptionFrameProviderManagerServiceStatics::UnregisterCorrelationGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionCorrelationGroup & correlationGroup) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UnregisterCorrelationGroup(get(manager), get(correlationGroup))); -} - -template void impl_IPerceptionFrameProviderManagerServiceStatics::UpdateAvailabilityForProvider(const Windows::Devices::Perception::Provider::IPerceptionFrameProvider & provider, bool available) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateAvailabilityForProvider(get(provider), available)); -} - -template void impl_IPerceptionFrameProviderManagerServiceStatics::PublishFrameForProvider(const Windows::Devices::Perception::Provider::IPerceptionFrameProvider & provider, const Windows::Devices::Perception::Provider::PerceptionFrame & frame) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PublishFrameForProvider(get(provider), get(frame))); -} - -template hstring impl_IPerceptionFrameProviderInfo::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template void impl_IPerceptionFrameProviderInfo::Id(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Id(get(value))); -} - -template hstring impl_IPerceptionFrameProviderInfo::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IPerceptionFrameProviderInfo::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IPerceptionFrameProviderInfo::DeviceKind() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceKind(put(value))); - return value; -} - -template void impl_IPerceptionFrameProviderInfo::DeviceKind(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DeviceKind(get(value))); -} - -template hstring impl_IPerceptionFrameProviderInfo::FrameKind() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FrameKind(put(value))); - return value; -} - -template void impl_IPerceptionFrameProviderInfo::FrameKind(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FrameKind(get(value))); -} - -template bool impl_IPerceptionFrameProviderInfo::Hidden() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Hidden(&value)); - return value; -} - -template void impl_IPerceptionFrameProviderInfo::Hidden(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Hidden(value)); -} - -template Windows::Devices::Perception::Provider::PerceptionControlGroup impl_IPerceptionControlGroupFactory::Create(const Windows::Foundation::Collections::IIterable & ids) const -{ - Windows::Devices::Perception::Provider::PerceptionControlGroup result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(ids), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_IPerceptionControlGroup::FrameProviderIds() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_FrameProviderIds(put(value))); - return value; -} - -template Windows::Devices::Perception::Provider::PerceptionFaceAuthenticationGroup impl_IPerceptionFaceAuthenticationGroupFactory::Create(const Windows::Foundation::Collections::IIterable & ids, const Windows::Devices::Perception::Provider::PerceptionStartFaceAuthenticationHandler & startHandler, const Windows::Devices::Perception::Provider::PerceptionStopFaceAuthenticationHandler & stopHandler) const -{ - Windows::Devices::Perception::Provider::PerceptionFaceAuthenticationGroup result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(ids), get(startHandler), get(stopHandler), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_IPerceptionFaceAuthenticationGroup::FrameProviderIds() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_FrameProviderIds(put(value))); - return value; -} - -template Windows::Devices::Perception::Provider::PerceptionCorrelation impl_IPerceptionCorrelationFactory::Create(hstring_ref targetId, const Windows::Foundation::Numerics::float3 & position, const Windows::Foundation::Numerics::quaternion & orientation) const -{ - Windows::Devices::Perception::Provider::PerceptionCorrelation result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(targetId), get(position), get(orientation), put(result))); - return result; -} - -template hstring impl_IPerceptionCorrelation::TargetId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TargetId(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_IPerceptionCorrelation::Position() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Foundation::Numerics::quaternion impl_IPerceptionCorrelation::Orientation() const -{ - Windows::Foundation::Numerics::quaternion value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(put(value))); - return value; -} - -template Windows::Devices::Perception::Provider::PerceptionCorrelationGroup impl_IPerceptionCorrelationGroupFactory::Create(const Windows::Foundation::Collections::IIterable & relativeLocations) const -{ - Windows::Devices::Perception::Provider::PerceptionCorrelationGroup result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(relativeLocations), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_IPerceptionCorrelationGroup::RelativeLocations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_RelativeLocations(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IPerceptionFrame::RelativeTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_RelativeTime(put(value))); - return value; -} - -template void impl_IPerceptionFrame::RelativeTime(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RelativeTime(get(value))); -} - -template Windows::Foundation::Collections::ValueSet impl_IPerceptionFrame::Properties() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Foundation::IMemoryBuffer impl_IPerceptionFrame::FrameData() const -{ - Windows::Foundation::IMemoryBuffer value; - check_hresult(static_cast(static_cast(*this))->get_FrameData(put(value))); - return value; -} - -template Windows::Devices::Perception::Provider::PerceptionVideoFrameAllocator impl_IPerceptionVideoFrameAllocatorFactory::Create(uint32_t maxOutstandingFrameCountForWrite, Windows::Graphics::Imaging::BitmapPixelFormat format, const Windows::Foundation::Size & resolution, Windows::Graphics::Imaging::BitmapAlphaMode alpha) const -{ - Windows::Devices::Perception::Provider::PerceptionVideoFrameAllocator result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(maxOutstandingFrameCountForWrite, format, get(resolution), alpha, put(result))); - return result; -} - -template hstring impl_IPerceptionPropertyChangeRequest::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::IInspectable impl_IPerceptionPropertyChangeRequest::Value() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionFrameSourcePropertyChangeStatus impl_IPerceptionPropertyChangeRequest::Status() const -{ - Windows::Devices::Perception::PerceptionFrameSourcePropertyChangeStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template void impl_IPerceptionPropertyChangeRequest::Status(Windows::Devices::Perception::PerceptionFrameSourcePropertyChangeStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Status(value)); -} - -template Windows::Foundation::Deferral impl_IPerceptionPropertyChangeRequest::GetDeferral() const -{ - Windows::Foundation::Deferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -template Windows::Devices::Perception::Provider::IPerceptionFrameProvider impl_IPerceptionFrameProviderManager::GetFrameProvider(const Windows::Devices::Perception::Provider::PerceptionFrameProviderInfo & frameProviderInfo) const -{ - Windows::Devices::Perception::Provider::IPerceptionFrameProvider result; - check_hresult(static_cast(static_cast(*this))->abi_GetFrameProvider(get(frameProviderInfo), put(result))); - return result; -} - -template Windows::Devices::Perception::Provider::PerceptionFrameProviderInfo impl_IPerceptionFrameProvider::FrameProviderInfo() const -{ - Windows::Devices::Perception::Provider::PerceptionFrameProviderInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameProviderInfo(put(result))); - return result; -} - -template bool impl_IPerceptionFrameProvider::Available() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Available(&value)); - return value; -} - -template Windows::Foundation::Collections::IPropertySet impl_IPerceptionFrameProvider::Properties() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template void impl_IPerceptionFrameProvider::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IPerceptionFrameProvider::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template void impl_IPerceptionFrameProvider::SetProperty(const Windows::Devices::Perception::Provider::PerceptionPropertyChangeRequest & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetProperty(get(value))); -} - -template Windows::Devices::Perception::Provider::PerceptionFrame impl_IPerceptionVideoFrameAllocator::AllocateFrame() const -{ - Windows::Devices::Perception::Provider::PerceptionFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AllocateFrame(put(value))); - return value; -} - -template Windows::Devices::Perception::Provider::PerceptionFrame impl_IPerceptionVideoFrameAllocator::CopyFromVideoFrame(const Windows::Media::VideoFrame & frame) const -{ - Windows::Devices::Perception::Provider::PerceptionFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CopyFromVideoFrame(get(frame), put(value))); - return value; -} - -inline hstring KnownPerceptionFrameKind::Color() -{ - return get_activation_factory().Color(); -} - -inline hstring KnownPerceptionFrameKind::Depth() -{ - return get_activation_factory().Depth(); -} - -inline hstring KnownPerceptionFrameKind::Infrared() -{ - return get_activation_factory().Infrared(); -} - -inline PerceptionControlGroup::PerceptionControlGroup(const Windows::Foundation::Collections::IIterable & ids) : - PerceptionControlGroup(get_activation_factory().Create(ids)) -{} - -inline PerceptionCorrelation::PerceptionCorrelation(hstring_ref targetId, const Windows::Foundation::Numerics::float3 & position, const Windows::Foundation::Numerics::quaternion & orientation) : - PerceptionCorrelation(get_activation_factory().Create(targetId, position, orientation)) -{} - -inline PerceptionCorrelationGroup::PerceptionCorrelationGroup(const Windows::Foundation::Collections::IIterable & relativeLocations) : - PerceptionCorrelationGroup(get_activation_factory().Create(relativeLocations)) -{} - -inline PerceptionFaceAuthenticationGroup::PerceptionFaceAuthenticationGroup(const Windows::Foundation::Collections::IIterable & ids, const Windows::Devices::Perception::Provider::PerceptionStartFaceAuthenticationHandler & startHandler, const Windows::Devices::Perception::Provider::PerceptionStopFaceAuthenticationHandler & stopHandler) : - PerceptionFaceAuthenticationGroup(get_activation_factory().Create(ids, startHandler, stopHandler)) -{} - -inline PerceptionFrameProviderInfo::PerceptionFrameProviderInfo() : - PerceptionFrameProviderInfo(activate_instance()) -{} - -inline void PerceptionFrameProviderManagerService::RegisterFrameProviderInfo(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionFrameProviderInfo & frameProviderInfo) -{ - get_activation_factory().RegisterFrameProviderInfo(manager, frameProviderInfo); -} - -inline void PerceptionFrameProviderManagerService::UnregisterFrameProviderInfo(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionFrameProviderInfo & frameProviderInfo) -{ - get_activation_factory().UnregisterFrameProviderInfo(manager, frameProviderInfo); -} - -inline void PerceptionFrameProviderManagerService::RegisterFaceAuthenticationGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionFaceAuthenticationGroup & faceAuthenticationGroup) -{ - get_activation_factory().RegisterFaceAuthenticationGroup(manager, faceAuthenticationGroup); -} - -inline void PerceptionFrameProviderManagerService::UnregisterFaceAuthenticationGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionFaceAuthenticationGroup & faceAuthenticationGroup) -{ - get_activation_factory().UnregisterFaceAuthenticationGroup(manager, faceAuthenticationGroup); -} - -inline void PerceptionFrameProviderManagerService::RegisterControlGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionControlGroup & controlGroup) -{ - get_activation_factory().RegisterControlGroup(manager, controlGroup); -} - -inline void PerceptionFrameProviderManagerService::UnregisterControlGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionControlGroup & controlGroup) -{ - get_activation_factory().UnregisterControlGroup(manager, controlGroup); -} - -inline void PerceptionFrameProviderManagerService::RegisterCorrelationGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionCorrelationGroup & correlationGroup) -{ - get_activation_factory().RegisterCorrelationGroup(manager, correlationGroup); -} - -inline void PerceptionFrameProviderManagerService::UnregisterCorrelationGroup(const Windows::Devices::Perception::Provider::IPerceptionFrameProviderManager & manager, const Windows::Devices::Perception::Provider::PerceptionCorrelationGroup & correlationGroup) -{ - get_activation_factory().UnregisterCorrelationGroup(manager, correlationGroup); -} - -inline void PerceptionFrameProviderManagerService::UpdateAvailabilityForProvider(const Windows::Devices::Perception::Provider::IPerceptionFrameProvider & provider, bool available) -{ - get_activation_factory().UpdateAvailabilityForProvider(provider, available); -} - -inline void PerceptionFrameProviderManagerService::PublishFrameForProvider(const Windows::Devices::Perception::Provider::IPerceptionFrameProvider & provider, const Windows::Devices::Perception::Provider::PerceptionFrame & frame) -{ - get_activation_factory().PublishFrameForProvider(provider, frame); -} - -inline PerceptionVideoFrameAllocator::PerceptionVideoFrameAllocator(uint32_t maxOutstandingFrameCountForWrite, Windows::Graphics::Imaging::BitmapPixelFormat format, const Windows::Foundation::Size & resolution, Windows::Graphics::Imaging::BitmapAlphaMode alpha) : - PerceptionVideoFrameAllocator(get_activation_factory().Create(maxOutstandingFrameCountForWrite, format, resolution, alpha)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Perception.h b/10.0.14393.0/winrt/Windows.Devices.Perception.h deleted file mode 100644 index 4710cbe16..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Perception.h +++ /dev/null @@ -1,5012 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.Devices.Core.3.h" -#include "internal/Windows.Graphics.Imaging.3.h" -#include "internal/Windows.Media.3.h" -#include "internal/Windows.Devices.Perception.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FocalLength(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocalLength()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrincipalPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrincipalPoint()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RadialDistortion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RadialDistortion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TangentialDistortion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TangentialDistortion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Exposure(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Exposure()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoExposureEnabled(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutoExposureEnabled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExposureCompensation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExposureCompensation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MinDepth(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinDepth()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDepth(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxDepth()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhysicalDeviceIds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhysicalDeviceIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameKind(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameKind()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceModelVersion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceModelVersion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EnclosureLocation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EnclosureLocation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Exposure(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Exposure()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoExposureEnabled(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutoExposureEnabled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExposureCompensation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExposureCompensation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActiveIlluminationEnabled(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActiveIlluminationEnabled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AmbientSubtractionEnabled(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AmbientSubtractionEnabled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StructureLightPatternEnabled(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StructureLightPatternEnabled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InterleavedIlluminationEnabled(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InterleavedIlluminationEnabled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VideoProfile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoProfile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedVideoProfiles(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SupportedVideoProfiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AvailableVideoProfiles(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AvailableVideoProfiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMirrored(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsMirrored()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CameraIntrinsics(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CameraIntrinsics()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BitmapPixelFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BitmapPixelFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitmapAlphaMode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BitmapAlphaMode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Width(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameDuration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VideoFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RelativeTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RelativeTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryOpenFrame(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TryOpenFrame()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_FrameArrived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FrameArrived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FrameArrived(event_token token) noexcept override - { - try - { - this->shim().FrameArrived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPaused(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPaused()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPaused(bool value) noexcept override - { - try - { - this->shim().IsPaused(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryReadLatestFrame(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TryReadLatestFrame()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_AvailableChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AvailableChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AvailableChanged(event_token token) noexcept override - { - try - { - this->shim().AvailableChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ActiveChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ActiveChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ActiveChanged(event_token token) noexcept override - { - try - { - this->shim().ActiveChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PropertiesChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PropertiesChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PropertiesChanged(event_token token) noexcept override - { - try - { - this->shim().PropertiesChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VideoProfileChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VideoProfileChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VideoProfileChanged(event_token token) noexcept override - { - try - { - this->shim().VideoProfileChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CameraIntrinsicsChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CameraIntrinsicsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CameraIntrinsicsChanged(event_token token) noexcept override - { - try - { - this->shim().CameraIntrinsicsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceKind(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceKind()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Available(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Available()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Active(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Active()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsControlled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsControlled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedVideoProfiles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedVideoProfiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AvailableVideoProfiles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AvailableVideoProfiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoProfile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoProfile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CameraIntrinsics(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CameraIntrinsics()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcquireControlSession(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AcquireControlSession()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanControlIndependentlyFrom(abi_arg_in targetId, bool * result) noexcept override - { - try - { - *result = detach(this->shim().CanControlIndependentlyFrom(*reinterpret_cast(&targetId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsCorrelatedWith(abi_arg_in targetId, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsCorrelatedWith(*reinterpret_cast(&targetId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetTransformTo(abi_arg_in targetId, abi_arg_out result, bool * hasResult) noexcept override - { - try - { - *hasResult = detach(this->shim().TryGetTransformTo(*reinterpret_cast(&targetId), *result)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetDepthCorrelatedCameraIntrinsicsAsync(abi_arg_in correlatedDepthFrameSource, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryGetDepthCorrelatedCameraIntrinsicsAsync(*reinterpret_cast(&correlatedDepthFrameSource))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetDepthCorrelatedCoordinateMapperAsync(abi_arg_in targetSourceId, abi_arg_in correlatedDepthFrameSource, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryGetDepthCorrelatedCoordinateMapperAsync(*reinterpret_cast(&targetSourceId), *reinterpret_cast(&correlatedDepthFrameSource))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetVideoProfileAsync(abi_arg_in controlSession, abi_arg_in profile, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TrySetVideoProfileAsync(*reinterpret_cast(&controlSession), *reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().OpenReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWatcher(abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher()); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAllAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_SourceAdded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceAdded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceAdded(event_token token) noexcept override - { - try - { - this->shim().SourceAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceRemoved(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceRemoved(event_token token) noexcept override - { - try - { - this->shim().SourceRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnumerationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnumerationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnumerationCompleted(event_token token) noexcept override - { - try - { - this->shim().EnumerationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Devices::Enumeration::DeviceWatcherStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ControlLost(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ControlLost(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ControlLost(event_token token) noexcept override - { - try - { - this->shim().ControlLost(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetPropertyAsync(abi_arg_in name, abi_arg_in value, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TrySetPropertyAsync(*reinterpret_cast(&name), *reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_UnprojectPixelAtCorrelatedDepth(abi_arg_in pixelCoordinate, abi_arg_in depthFrame, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UnprojectPixelAtCorrelatedDepth(*reinterpret_cast(&pixelCoordinate), *reinterpret_cast(&depthFrame))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnprojectPixelsAtCorrelatedDepth(uint32_t __sourceCoordinatesSize, abi_arg_in * sourceCoordinates, abi_arg_in depthFrame, uint32_t __resultsSize, abi_arg_out results) noexcept override - { - try - { - this->shim().UnprojectPixelsAtCorrelatedDepth(*reinterpret_cast(&sourceCoordinates), *reinterpret_cast(&depthFrame), *results); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnprojectRegionPixelsAtCorrelatedDepthAsync(abi_arg_in region, abi_arg_in depthFrame, uint32_t __resultsSize, abi_arg_out results, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UnprojectRegionPixelsAtCorrelatedDepthAsync(*reinterpret_cast(®ion), *reinterpret_cast(&depthFrame), *results)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnprojectAllPixelsAtCorrelatedDepthAsync(abi_arg_in depthFrame, uint32_t __resultsSize, abi_arg_out results, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UnprojectAllPixelsAtCorrelatedDepthAsync(*reinterpret_cast(&depthFrame), *results)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_MapPixelToTarget(abi_arg_in sourcePixelCoordinate, abi_arg_in depthFrame, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MapPixelToTarget(*reinterpret_cast(&sourcePixelCoordinate), *reinterpret_cast(&depthFrame))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MapPixelsToTarget(uint32_t __sourceCoordinatesSize, abi_arg_in * sourceCoordinates, abi_arg_in depthFrame, uint32_t __resultsSize, abi_arg_out results) noexcept override - { - try - { - this->shim().MapPixelsToTarget(*reinterpret_cast(&sourceCoordinates), *reinterpret_cast(&depthFrame), *results); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MapRegionOfPixelsToTargetAsync(abi_arg_in region, abi_arg_in depthFrame, uint32_t __targetCoordinatesSize, abi_arg_out targetCoordinates, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MapRegionOfPixelsToTargetAsync(*reinterpret_cast(®ion), *reinterpret_cast(&depthFrame), *targetCoordinates)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MapAllPixelsToTargetAsync(abi_arg_in depthFrame, uint32_t __targetCoordinatesSize, abi_arg_out targetCoordinates, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MapAllPixelsToTargetAsync(*reinterpret_cast(&depthFrame), *targetCoordinates)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VideoFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RelativeTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RelativeTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryOpenFrame(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TryOpenFrame()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_FrameArrived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FrameArrived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FrameArrived(event_token token) noexcept override - { - try - { - this->shim().FrameArrived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPaused(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPaused()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPaused(bool value) noexcept override - { - try - { - this->shim().IsPaused(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryReadLatestFrame(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TryReadLatestFrame()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_AvailableChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AvailableChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AvailableChanged(event_token token) noexcept override - { - try - { - this->shim().AvailableChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ActiveChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ActiveChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ActiveChanged(event_token token) noexcept override - { - try - { - this->shim().ActiveChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PropertiesChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PropertiesChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PropertiesChanged(event_token token) noexcept override - { - try - { - this->shim().PropertiesChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VideoProfileChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VideoProfileChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VideoProfileChanged(event_token token) noexcept override - { - try - { - this->shim().VideoProfileChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CameraIntrinsicsChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CameraIntrinsicsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CameraIntrinsicsChanged(event_token token) noexcept override - { - try - { - this->shim().CameraIntrinsicsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceKind(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceKind()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Available(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Available()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Active(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Active()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsControlled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsControlled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedVideoProfiles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedVideoProfiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AvailableVideoProfiles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AvailableVideoProfiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoProfile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoProfile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CameraIntrinsics(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CameraIntrinsics()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcquireControlSession(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().AcquireControlSession()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanControlIndependentlyFrom(abi_arg_in targetId, bool * result) noexcept override - { - try - { - *result = detach(this->shim().CanControlIndependentlyFrom(*reinterpret_cast(&targetId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsCorrelatedWith(abi_arg_in targetId, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsCorrelatedWith(*reinterpret_cast(&targetId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetTransformTo(abi_arg_in targetId, abi_arg_out result, bool * hasResult) noexcept override - { - try - { - *hasResult = detach(this->shim().TryGetTransformTo(*reinterpret_cast(&targetId), *result)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetDepthCorrelatedCameraIntrinsicsAsync(abi_arg_in target, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryGetDepthCorrelatedCameraIntrinsicsAsync(*reinterpret_cast(&target))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetDepthCorrelatedCoordinateMapperAsync(abi_arg_in targetId, abi_arg_in depthFrameSourceToMapWith, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryGetDepthCorrelatedCoordinateMapperAsync(*reinterpret_cast(&targetId), *reinterpret_cast(&depthFrameSourceToMapWith))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetVideoProfileAsync(abi_arg_in controlSession, abi_arg_in profile, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TrySetVideoProfileAsync(*reinterpret_cast(&controlSession), *reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().OpenReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWatcher(abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher()); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAllAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_SourceAdded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceAdded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceAdded(event_token token) noexcept override - { - try - { - this->shim().SourceAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceRemoved(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceRemoved(event_token token) noexcept override - { - try - { - this->shim().SourceRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnumerationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnumerationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnumerationCompleted(event_token token) noexcept override - { - try - { - this->shim().EnumerationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Devices::Enumeration::DeviceWatcherStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CollectionChange(Windows::Foundation::Collections::CollectionChange * value) noexcept override - { - try - { - *value = detach(this->shim().CollectionChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Key(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Key()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Perception::PerceptionFrameSourcePropertyChangeStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewValue(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewValue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VideoFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RelativeTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RelativeTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryOpenFrame(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TryOpenFrame()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_FrameArrived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FrameArrived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FrameArrived(event_token token) noexcept override - { - try - { - this->shim().FrameArrived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPaused(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPaused()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPaused(bool value) noexcept override - { - try - { - this->shim().IsPaused(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryReadLatestFrame(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TryReadLatestFrame()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_AvailableChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AvailableChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AvailableChanged(event_token token) noexcept override - { - try - { - this->shim().AvailableChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ActiveChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ActiveChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ActiveChanged(event_token token) noexcept override - { - try - { - this->shim().ActiveChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PropertiesChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PropertiesChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PropertiesChanged(event_token token) noexcept override - { - try - { - this->shim().PropertiesChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VideoProfileChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VideoProfileChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VideoProfileChanged(event_token token) noexcept override - { - try - { - this->shim().VideoProfileChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CameraIntrinsicsChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CameraIntrinsicsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CameraIntrinsicsChanged(event_token token) noexcept override - { - try - { - this->shim().CameraIntrinsicsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceKind(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceKind()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Available(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Available()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Active(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Active()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsControlled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsControlled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedVideoProfiles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedVideoProfiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AvailableVideoProfiles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AvailableVideoProfiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoProfile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoProfile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CameraIntrinsics(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CameraIntrinsics()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcquireControlSession(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().AcquireControlSession()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanControlIndependentlyFrom(abi_arg_in targetId, bool * result) noexcept override - { - try - { - *result = detach(this->shim().CanControlIndependentlyFrom(*reinterpret_cast(&targetId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsCorrelatedWith(abi_arg_in targetId, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsCorrelatedWith(*reinterpret_cast(&targetId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetTransformTo(abi_arg_in targetId, abi_arg_out result, bool * hasResult) noexcept override - { - try - { - *hasResult = detach(this->shim().TryGetTransformTo(*reinterpret_cast(&targetId), *result)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetDepthCorrelatedCameraIntrinsicsAsync(abi_arg_in target, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryGetDepthCorrelatedCameraIntrinsicsAsync(*reinterpret_cast(&target))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetDepthCorrelatedCoordinateMapperAsync(abi_arg_in targetId, abi_arg_in depthFrameSourceToMapWith, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryGetDepthCorrelatedCoordinateMapperAsync(*reinterpret_cast(&targetId), *reinterpret_cast(&depthFrameSourceToMapWith))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetVideoProfileAsync(abi_arg_in controlSession, abi_arg_in profile, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TrySetVideoProfileAsync(*reinterpret_cast(&controlSession), *reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenReader(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().OpenReader()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWatcher(abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher()); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAllAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in id, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_SourceAdded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceAdded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceAdded(event_token token) noexcept override - { - try - { - this->shim().SourceAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceRemoved(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceRemoved(event_token token) noexcept override - { - try - { - this->shim().SourceRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnumerationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnumerationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnumerationCompleted(event_token token) noexcept override - { - try - { - this->shim().EnumerationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Devices::Enumeration::DeviceWatcherStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BitmapPixelFormat(Windows::Graphics::Imaging::BitmapPixelFormat * value) noexcept override - { - try - { - *value = detach(this->shim().BitmapPixelFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitmapAlphaMode(Windows::Graphics::Imaging::BitmapAlphaMode * value) noexcept override - { - try - { - *value = detach(this->shim().BitmapAlphaMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Width(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEqual(abi_arg_in other, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsEqual(*reinterpret_cast(&other))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Perception { - -template event_token impl_IPerceptionColorFrameSourceWatcher::SourceAdded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceAdded(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionColorFrameSourceWatcher::SourceAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionColorFrameSourceWatcher::remove_SourceAdded, SourceAdded(handler)); -} - -template void impl_IPerceptionColorFrameSourceWatcher::SourceAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceAdded(token)); -} - -template event_token impl_IPerceptionColorFrameSourceWatcher::SourceRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceRemoved(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionColorFrameSourceWatcher::SourceRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionColorFrameSourceWatcher::remove_SourceRemoved, SourceRemoved(handler)); -} - -template void impl_IPerceptionColorFrameSourceWatcher::SourceRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceRemoved(token)); -} - -template event_token impl_IPerceptionColorFrameSourceWatcher::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionColorFrameSourceWatcher::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionColorFrameSourceWatcher::remove_Stopped, Stopped(handler)); -} - -template void impl_IPerceptionColorFrameSourceWatcher::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template event_token impl_IPerceptionColorFrameSourceWatcher::EnumerationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnumerationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionColorFrameSourceWatcher::EnumerationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionColorFrameSourceWatcher::remove_EnumerationCompleted, EnumerationCompleted(handler)); -} - -template void impl_IPerceptionColorFrameSourceWatcher::EnumerationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnumerationCompleted(token)); -} - -template Windows::Devices::Enumeration::DeviceWatcherStatus impl_IPerceptionColorFrameSourceWatcher::Status() const -{ - Windows::Devices::Enumeration::DeviceWatcherStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template void impl_IPerceptionColorFrameSourceWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IPerceptionColorFrameSourceWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template event_token impl_IPerceptionDepthFrameSourceWatcher::SourceAdded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceAdded(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionDepthFrameSourceWatcher::SourceAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionDepthFrameSourceWatcher::remove_SourceAdded, SourceAdded(handler)); -} - -template void impl_IPerceptionDepthFrameSourceWatcher::SourceAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceAdded(token)); -} - -template event_token impl_IPerceptionDepthFrameSourceWatcher::SourceRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceRemoved(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionDepthFrameSourceWatcher::SourceRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionDepthFrameSourceWatcher::remove_SourceRemoved, SourceRemoved(handler)); -} - -template void impl_IPerceptionDepthFrameSourceWatcher::SourceRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceRemoved(token)); -} - -template event_token impl_IPerceptionDepthFrameSourceWatcher::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionDepthFrameSourceWatcher::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionDepthFrameSourceWatcher::remove_Stopped, Stopped(handler)); -} - -template void impl_IPerceptionDepthFrameSourceWatcher::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template event_token impl_IPerceptionDepthFrameSourceWatcher::EnumerationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnumerationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionDepthFrameSourceWatcher::EnumerationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionDepthFrameSourceWatcher::remove_EnumerationCompleted, EnumerationCompleted(handler)); -} - -template void impl_IPerceptionDepthFrameSourceWatcher::EnumerationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnumerationCompleted(token)); -} - -template Windows::Devices::Enumeration::DeviceWatcherStatus impl_IPerceptionDepthFrameSourceWatcher::Status() const -{ - Windows::Devices::Enumeration::DeviceWatcherStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template void impl_IPerceptionDepthFrameSourceWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IPerceptionDepthFrameSourceWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template event_token impl_IPerceptionInfraredFrameSourceWatcher::SourceAdded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceAdded(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionInfraredFrameSourceWatcher::SourceAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionInfraredFrameSourceWatcher::remove_SourceAdded, SourceAdded(handler)); -} - -template void impl_IPerceptionInfraredFrameSourceWatcher::SourceAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceAdded(token)); -} - -template event_token impl_IPerceptionInfraredFrameSourceWatcher::SourceRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceRemoved(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionInfraredFrameSourceWatcher::SourceRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionInfraredFrameSourceWatcher::remove_SourceRemoved, SourceRemoved(handler)); -} - -template void impl_IPerceptionInfraredFrameSourceWatcher::SourceRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceRemoved(token)); -} - -template event_token impl_IPerceptionInfraredFrameSourceWatcher::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionInfraredFrameSourceWatcher::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionInfraredFrameSourceWatcher::remove_Stopped, Stopped(handler)); -} - -template void impl_IPerceptionInfraredFrameSourceWatcher::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template event_token impl_IPerceptionInfraredFrameSourceWatcher::EnumerationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnumerationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionInfraredFrameSourceWatcher::EnumerationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionInfraredFrameSourceWatcher::remove_EnumerationCompleted, EnumerationCompleted(handler)); -} - -template void impl_IPerceptionInfraredFrameSourceWatcher::EnumerationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnumerationCompleted(token)); -} - -template Windows::Devices::Enumeration::DeviceWatcherStatus impl_IPerceptionInfraredFrameSourceWatcher::Status() const -{ - Windows::Devices::Enumeration::DeviceWatcherStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template void impl_IPerceptionInfraredFrameSourceWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IPerceptionInfraredFrameSourceWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template Windows::Devices::Perception::PerceptionColorFrameSource impl_IPerceptionColorFrameSourceAddedEventArgs::FrameSource() const -{ - Windows::Devices::Perception::PerceptionColorFrameSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameSource(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionColorFrameSource impl_IPerceptionColorFrameSourceRemovedEventArgs::FrameSource() const -{ - Windows::Devices::Perception::PerceptionColorFrameSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameSource(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionDepthFrameSource impl_IPerceptionDepthFrameSourceAddedEventArgs::FrameSource() const -{ - Windows::Devices::Perception::PerceptionDepthFrameSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameSource(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionDepthFrameSource impl_IPerceptionDepthFrameSourceRemovedEventArgs::FrameSource() const -{ - Windows::Devices::Perception::PerceptionDepthFrameSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameSource(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionInfraredFrameSource impl_IPerceptionInfraredFrameSourceAddedEventArgs::FrameSource() const -{ - Windows::Devices::Perception::PerceptionInfraredFrameSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameSource(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionInfraredFrameSource impl_IPerceptionInfraredFrameSourceRemovedEventArgs::FrameSource() const -{ - Windows::Devices::Perception::PerceptionInfraredFrameSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameSource(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionFrameSourcePropertiesStatics::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionFrameSourcePropertiesStatics::PhysicalDeviceIds() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PhysicalDeviceIds(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionFrameSourcePropertiesStatics::FrameKind() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FrameKind(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionFrameSourcePropertiesStatics::DeviceModelVersion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceModelVersion(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionFrameSourcePropertiesStatics::EnclosureLocation() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EnclosureLocation(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionFrameSourcePropertiesStatics2::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionVideoFrameSourcePropertiesStatics::VideoProfile() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VideoProfile(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionVideoFrameSourcePropertiesStatics::SupportedVideoProfiles() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SupportedVideoProfiles(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionVideoFrameSourcePropertiesStatics::AvailableVideoProfiles() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AvailableVideoProfiles(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionVideoFrameSourcePropertiesStatics::IsMirrored() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IsMirrored(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionVideoFrameSourcePropertiesStatics::CameraIntrinsics() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CameraIntrinsics(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionInfraredFrameSourcePropertiesStatics::Exposure() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Exposure(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionInfraredFrameSourcePropertiesStatics::AutoExposureEnabled() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AutoExposureEnabled(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionInfraredFrameSourcePropertiesStatics::ExposureCompensation() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExposureCompensation(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionInfraredFrameSourcePropertiesStatics::ActiveIlluminationEnabled() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ActiveIlluminationEnabled(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionInfraredFrameSourcePropertiesStatics::AmbientSubtractionEnabled() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AmbientSubtractionEnabled(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionInfraredFrameSourcePropertiesStatics::StructureLightPatternEnabled() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StructureLightPatternEnabled(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionInfraredFrameSourcePropertiesStatics::InterleavedIlluminationEnabled() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InterleavedIlluminationEnabled(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionDepthFrameSourcePropertiesStatics::MinDepth() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MinDepth(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionDepthFrameSourcePropertiesStatics::MaxDepth() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MaxDepth(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionColorFrameSourcePropertiesStatics::Exposure() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Exposure(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionColorFrameSourcePropertiesStatics::AutoExposureEnabled() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AutoExposureEnabled(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionColorFrameSourcePropertiesStatics::ExposureCompensation() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExposureCompensation(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionVideoProfilePropertiesStatics::BitmapPixelFormat() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BitmapPixelFormat(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionVideoProfilePropertiesStatics::BitmapAlphaMode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BitmapAlphaMode(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionVideoProfilePropertiesStatics::Width() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Width(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionVideoProfilePropertiesStatics::Height() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Height(put(value))); - return value; -} - -template hstring impl_IKnownPerceptionVideoProfilePropertiesStatics::FrameDuration() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FrameDuration(put(value))); - return value; -} - -template hstring impl_IKnownCameraIntrinsicsPropertiesStatics::FocalLength() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FocalLength(put(value))); - return value; -} - -template hstring impl_IKnownCameraIntrinsicsPropertiesStatics::PrincipalPoint() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PrincipalPoint(put(value))); - return value; -} - -template hstring impl_IKnownCameraIntrinsicsPropertiesStatics::RadialDistortion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RadialDistortion(put(value))); - return value; -} - -template hstring impl_IKnownCameraIntrinsicsPropertiesStatics::TangentialDistortion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TangentialDistortion(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionFrameSourcePropertyChangeStatus impl_IPerceptionFrameSourcePropertyChangeResult::Status() const -{ - Windows::Devices::Perception::PerceptionFrameSourcePropertyChangeStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::IInspectable impl_IPerceptionFrameSourcePropertyChangeResult::NewValue() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_NewValue(put(value))); - return value; -} - -template Windows::Foundation::Collections::CollectionChange impl_IPerceptionFrameSourcePropertiesChangedEventArgs::CollectionChange() const -{ - Windows::Foundation::Collections::CollectionChange value {}; - check_hresult(static_cast(static_cast(*this))->get_CollectionChange(&value)); - return value; -} - -template hstring impl_IPerceptionFrameSourcePropertiesChangedEventArgs::Key() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Key(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionInfraredFrameSourceWatcher impl_IPerceptionInfraredFrameSourceStatics::CreateWatcher() const -{ - Windows::Devices::Perception::PerceptionInfraredFrameSourceWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcher(put(watcher))); - return watcher; -} - -template Windows::Foundation::IAsyncOperation> impl_IPerceptionInfraredFrameSourceStatics::FindAllAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionInfraredFrameSourceStatics::FromIdAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionInfraredFrameSourceStatics::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(result))); - return result; -} - -template Windows::Devices::Perception::PerceptionDepthFrameSourceWatcher impl_IPerceptionDepthFrameSourceStatics::CreateWatcher() const -{ - Windows::Devices::Perception::PerceptionDepthFrameSourceWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcher(put(watcher))); - return watcher; -} - -template Windows::Foundation::IAsyncOperation> impl_IPerceptionDepthFrameSourceStatics::FindAllAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionDepthFrameSourceStatics::FromIdAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionDepthFrameSourceStatics::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(result))); - return result; -} - -template Windows::Devices::Perception::PerceptionColorFrameSourceWatcher impl_IPerceptionColorFrameSourceStatics::CreateWatcher() const -{ - Windows::Devices::Perception::PerceptionColorFrameSourceWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcher(put(watcher))); - return watcher; -} - -template Windows::Foundation::IAsyncOperation> impl_IPerceptionColorFrameSourceStatics::FindAllAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionColorFrameSourceStatics::FromIdAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(id), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionColorFrameSourceStatics::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(result))); - return result; -} - -template event_token impl_IPerceptionColorFrameSource::AvailableChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AvailableChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionColorFrameSource::AvailableChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionColorFrameSource::remove_AvailableChanged, AvailableChanged(handler)); -} - -template void impl_IPerceptionColorFrameSource::AvailableChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AvailableChanged(token)); -} - -template event_token impl_IPerceptionColorFrameSource::ActiveChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ActiveChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionColorFrameSource::ActiveChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionColorFrameSource::remove_ActiveChanged, ActiveChanged(handler)); -} - -template void impl_IPerceptionColorFrameSource::ActiveChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ActiveChanged(token)); -} - -template event_token impl_IPerceptionColorFrameSource::PropertiesChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PropertiesChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionColorFrameSource::PropertiesChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionColorFrameSource::remove_PropertiesChanged, PropertiesChanged(handler)); -} - -template void impl_IPerceptionColorFrameSource::PropertiesChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PropertiesChanged(token)); -} - -template event_token impl_IPerceptionColorFrameSource::VideoProfileChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VideoProfileChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionColorFrameSource::VideoProfileChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionColorFrameSource::remove_VideoProfileChanged, VideoProfileChanged(handler)); -} - -template void impl_IPerceptionColorFrameSource::VideoProfileChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VideoProfileChanged(token)); -} - -template event_token impl_IPerceptionColorFrameSource::CameraIntrinsicsChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CameraIntrinsicsChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionColorFrameSource::CameraIntrinsicsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionColorFrameSource::remove_CameraIntrinsicsChanged, CameraIntrinsicsChanged(handler)); -} - -template void impl_IPerceptionColorFrameSource::CameraIntrinsicsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CameraIntrinsicsChanged(token)); -} - -template hstring impl_IPerceptionColorFrameSource::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IPerceptionColorFrameSource::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IPerceptionColorFrameSource::DeviceKind() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceKind(put(value))); - return value; -} - -template bool impl_IPerceptionColorFrameSource::Available() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Available(&value)); - return value; -} - -template bool impl_IPerceptionColorFrameSource::Active() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Active(&value)); - return value; -} - -template bool impl_IPerceptionColorFrameSource::IsControlled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsControlled(&value)); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IPerceptionColorFrameSource::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPerceptionColorFrameSource::SupportedVideoProfiles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedVideoProfiles(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPerceptionColorFrameSource::AvailableVideoProfiles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AvailableVideoProfiles(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionVideoProfile impl_IPerceptionColorFrameSource::VideoProfile() const -{ - Windows::Devices::Perception::PerceptionVideoProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoProfile(put(value))); - return value; -} - -template Windows::Media::Devices::Core::CameraIntrinsics impl_IPerceptionColorFrameSource::CameraIntrinsics() const -{ - Windows::Media::Devices::Core::CameraIntrinsics value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CameraIntrinsics(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionControlSession impl_IPerceptionColorFrameSource::AcquireControlSession() const -{ - Windows::Devices::Perception::PerceptionControlSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AcquireControlSession(put(value))); - return value; -} - -template bool impl_IPerceptionColorFrameSource::CanControlIndependentlyFrom(hstring_ref targetId) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_CanControlIndependentlyFrom(get(targetId), &result)); - return result; -} - -template bool impl_IPerceptionColorFrameSource::IsCorrelatedWith(hstring_ref targetId) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsCorrelatedWith(get(targetId), &result)); - return result; -} - -template bool impl_IPerceptionColorFrameSource::TryGetTransformTo(hstring_ref targetId, Windows::Foundation::Numerics::float4x4 & result) const -{ - bool hasResult {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetTransformTo(get(targetId), put(result), &hasResult)); - return hasResult; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionColorFrameSource::TryGetDepthCorrelatedCameraIntrinsicsAsync(const Windows::Devices::Perception::PerceptionDepthFrameSource & correlatedDepthFrameSource) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryGetDepthCorrelatedCameraIntrinsicsAsync(get(correlatedDepthFrameSource), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionColorFrameSource::TryGetDepthCorrelatedCoordinateMapperAsync(hstring_ref targetSourceId, const Windows::Devices::Perception::PerceptionDepthFrameSource & correlatedDepthFrameSource) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryGetDepthCorrelatedCoordinateMapperAsync(get(targetSourceId), get(correlatedDepthFrameSource), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionColorFrameSource::TrySetVideoProfileAsync(const Windows::Devices::Perception::PerceptionControlSession & controlSession, const Windows::Devices::Perception::PerceptionVideoProfile & profile) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TrySetVideoProfileAsync(get(controlSession), get(profile), put(result))); - return result; -} - -template Windows::Devices::Perception::PerceptionColorFrameReader impl_IPerceptionColorFrameSource::OpenReader() const -{ - Windows::Devices::Perception::PerceptionColorFrameReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenReader(put(result))); - return result; -} - -template hstring impl_IPerceptionColorFrameSource2::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template event_token impl_IPerceptionDepthFrameSource::AvailableChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AvailableChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionDepthFrameSource::AvailableChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionDepthFrameSource::remove_AvailableChanged, AvailableChanged(handler)); -} - -template void impl_IPerceptionDepthFrameSource::AvailableChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AvailableChanged(token)); -} - -template event_token impl_IPerceptionDepthFrameSource::ActiveChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ActiveChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionDepthFrameSource::ActiveChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionDepthFrameSource::remove_ActiveChanged, ActiveChanged(handler)); -} - -template void impl_IPerceptionDepthFrameSource::ActiveChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ActiveChanged(token)); -} - -template event_token impl_IPerceptionDepthFrameSource::PropertiesChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PropertiesChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionDepthFrameSource::PropertiesChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionDepthFrameSource::remove_PropertiesChanged, PropertiesChanged(handler)); -} - -template void impl_IPerceptionDepthFrameSource::PropertiesChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PropertiesChanged(token)); -} - -template event_token impl_IPerceptionDepthFrameSource::VideoProfileChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VideoProfileChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionDepthFrameSource::VideoProfileChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionDepthFrameSource::remove_VideoProfileChanged, VideoProfileChanged(handler)); -} - -template void impl_IPerceptionDepthFrameSource::VideoProfileChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VideoProfileChanged(token)); -} - -template event_token impl_IPerceptionDepthFrameSource::CameraIntrinsicsChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CameraIntrinsicsChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionDepthFrameSource::CameraIntrinsicsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionDepthFrameSource::remove_CameraIntrinsicsChanged, CameraIntrinsicsChanged(handler)); -} - -template void impl_IPerceptionDepthFrameSource::CameraIntrinsicsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CameraIntrinsicsChanged(token)); -} - -template hstring impl_IPerceptionDepthFrameSource::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IPerceptionDepthFrameSource::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IPerceptionDepthFrameSource::DeviceKind() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceKind(put(value))); - return value; -} - -template bool impl_IPerceptionDepthFrameSource::Available() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Available(&value)); - return value; -} - -template bool impl_IPerceptionDepthFrameSource::Active() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Active(&value)); - return value; -} - -template bool impl_IPerceptionDepthFrameSource::IsControlled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsControlled(&value)); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IPerceptionDepthFrameSource::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPerceptionDepthFrameSource::SupportedVideoProfiles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedVideoProfiles(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPerceptionDepthFrameSource::AvailableVideoProfiles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AvailableVideoProfiles(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionVideoProfile impl_IPerceptionDepthFrameSource::VideoProfile() const -{ - Windows::Devices::Perception::PerceptionVideoProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoProfile(put(value))); - return value; -} - -template Windows::Media::Devices::Core::CameraIntrinsics impl_IPerceptionDepthFrameSource::CameraIntrinsics() const -{ - Windows::Media::Devices::Core::CameraIntrinsics value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CameraIntrinsics(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionControlSession impl_IPerceptionDepthFrameSource::AcquireControlSession() const -{ - Windows::Devices::Perception::PerceptionControlSession result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AcquireControlSession(put(result))); - return result; -} - -template bool impl_IPerceptionDepthFrameSource::CanControlIndependentlyFrom(hstring_ref targetId) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_CanControlIndependentlyFrom(get(targetId), &result)); - return result; -} - -template bool impl_IPerceptionDepthFrameSource::IsCorrelatedWith(hstring_ref targetId) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsCorrelatedWith(get(targetId), &result)); - return result; -} - -template bool impl_IPerceptionDepthFrameSource::TryGetTransformTo(hstring_ref targetId, Windows::Foundation::Numerics::float4x4 & result) const -{ - bool hasResult {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetTransformTo(get(targetId), put(result), &hasResult)); - return hasResult; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionDepthFrameSource::TryGetDepthCorrelatedCameraIntrinsicsAsync(const Windows::Devices::Perception::PerceptionDepthFrameSource & target) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryGetDepthCorrelatedCameraIntrinsicsAsync(get(target), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionDepthFrameSource::TryGetDepthCorrelatedCoordinateMapperAsync(hstring_ref targetId, const Windows::Devices::Perception::PerceptionDepthFrameSource & depthFrameSourceToMapWith) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryGetDepthCorrelatedCoordinateMapperAsync(get(targetId), get(depthFrameSourceToMapWith), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionDepthFrameSource::TrySetVideoProfileAsync(const Windows::Devices::Perception::PerceptionControlSession & controlSession, const Windows::Devices::Perception::PerceptionVideoProfile & profile) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TrySetVideoProfileAsync(get(controlSession), get(profile), put(result))); - return result; -} - -template Windows::Devices::Perception::PerceptionDepthFrameReader impl_IPerceptionDepthFrameSource::OpenReader() const -{ - Windows::Devices::Perception::PerceptionDepthFrameReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenReader(put(result))); - return result; -} - -template hstring impl_IPerceptionDepthFrameSource2::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template event_token impl_IPerceptionInfraredFrameSource::AvailableChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AvailableChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionInfraredFrameSource::AvailableChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionInfraredFrameSource::remove_AvailableChanged, AvailableChanged(handler)); -} - -template void impl_IPerceptionInfraredFrameSource::AvailableChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AvailableChanged(token)); -} - -template event_token impl_IPerceptionInfraredFrameSource::ActiveChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ActiveChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionInfraredFrameSource::ActiveChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionInfraredFrameSource::remove_ActiveChanged, ActiveChanged(handler)); -} - -template void impl_IPerceptionInfraredFrameSource::ActiveChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ActiveChanged(token)); -} - -template event_token impl_IPerceptionInfraredFrameSource::PropertiesChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PropertiesChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionInfraredFrameSource::PropertiesChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionInfraredFrameSource::remove_PropertiesChanged, PropertiesChanged(handler)); -} - -template void impl_IPerceptionInfraredFrameSource::PropertiesChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PropertiesChanged(token)); -} - -template event_token impl_IPerceptionInfraredFrameSource::VideoProfileChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VideoProfileChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionInfraredFrameSource::VideoProfileChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionInfraredFrameSource::remove_VideoProfileChanged, VideoProfileChanged(handler)); -} - -template void impl_IPerceptionInfraredFrameSource::VideoProfileChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VideoProfileChanged(token)); -} - -template event_token impl_IPerceptionInfraredFrameSource::CameraIntrinsicsChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CameraIntrinsicsChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionInfraredFrameSource::CameraIntrinsicsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionInfraredFrameSource::remove_CameraIntrinsicsChanged, CameraIntrinsicsChanged(handler)); -} - -template void impl_IPerceptionInfraredFrameSource::CameraIntrinsicsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CameraIntrinsicsChanged(token)); -} - -template hstring impl_IPerceptionInfraredFrameSource::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IPerceptionInfraredFrameSource::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IPerceptionInfraredFrameSource::DeviceKind() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceKind(put(value))); - return value; -} - -template bool impl_IPerceptionInfraredFrameSource::Available() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Available(&value)); - return value; -} - -template bool impl_IPerceptionInfraredFrameSource::Active() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Active(&value)); - return value; -} - -template bool impl_IPerceptionInfraredFrameSource::IsControlled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsControlled(&value)); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IPerceptionInfraredFrameSource::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPerceptionInfraredFrameSource::SupportedVideoProfiles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedVideoProfiles(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPerceptionInfraredFrameSource::AvailableVideoProfiles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AvailableVideoProfiles(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionVideoProfile impl_IPerceptionInfraredFrameSource::VideoProfile() const -{ - Windows::Devices::Perception::PerceptionVideoProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoProfile(put(value))); - return value; -} - -template Windows::Media::Devices::Core::CameraIntrinsics impl_IPerceptionInfraredFrameSource::CameraIntrinsics() const -{ - Windows::Media::Devices::Core::CameraIntrinsics value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CameraIntrinsics(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionControlSession impl_IPerceptionInfraredFrameSource::AcquireControlSession() const -{ - Windows::Devices::Perception::PerceptionControlSession result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AcquireControlSession(put(result))); - return result; -} - -template bool impl_IPerceptionInfraredFrameSource::CanControlIndependentlyFrom(hstring_ref targetId) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_CanControlIndependentlyFrom(get(targetId), &result)); - return result; -} - -template bool impl_IPerceptionInfraredFrameSource::IsCorrelatedWith(hstring_ref targetId) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsCorrelatedWith(get(targetId), &result)); - return result; -} - -template bool impl_IPerceptionInfraredFrameSource::TryGetTransformTo(hstring_ref targetId, Windows::Foundation::Numerics::float4x4 & result) const -{ - bool hasResult {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetTransformTo(get(targetId), put(result), &hasResult)); - return hasResult; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionInfraredFrameSource::TryGetDepthCorrelatedCameraIntrinsicsAsync(const Windows::Devices::Perception::PerceptionDepthFrameSource & target) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryGetDepthCorrelatedCameraIntrinsicsAsync(get(target), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionInfraredFrameSource::TryGetDepthCorrelatedCoordinateMapperAsync(hstring_ref targetId, const Windows::Devices::Perception::PerceptionDepthFrameSource & depthFrameSourceToMapWith) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryGetDepthCorrelatedCoordinateMapperAsync(get(targetId), get(depthFrameSourceToMapWith), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionInfraredFrameSource::TrySetVideoProfileAsync(const Windows::Devices::Perception::PerceptionControlSession & controlSession, const Windows::Devices::Perception::PerceptionVideoProfile & profile) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TrySetVideoProfileAsync(get(controlSession), get(profile), put(result))); - return result; -} - -template Windows::Devices::Perception::PerceptionInfraredFrameReader impl_IPerceptionInfraredFrameSource::OpenReader() const -{ - Windows::Devices::Perception::PerceptionInfraredFrameReader result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenReader(put(result))); - return result; -} - -template hstring impl_IPerceptionInfraredFrameSource2::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Graphics::Imaging::BitmapPixelFormat impl_IPerceptionVideoProfile::BitmapPixelFormat() const -{ - Windows::Graphics::Imaging::BitmapPixelFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_BitmapPixelFormat(&value)); - return value; -} - -template Windows::Graphics::Imaging::BitmapAlphaMode impl_IPerceptionVideoProfile::BitmapAlphaMode() const -{ - Windows::Graphics::Imaging::BitmapAlphaMode value {}; - check_hresult(static_cast(static_cast(*this))->get_BitmapAlphaMode(&value)); - return value; -} - -template int32_t impl_IPerceptionVideoProfile::Width() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(&value)); - return value; -} - -template int32_t impl_IPerceptionVideoProfile::Height() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IPerceptionVideoProfile::FrameDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_FrameDuration(put(value))); - return value; -} - -template bool impl_IPerceptionVideoProfile::IsEqual(const Windows::Devices::Perception::PerceptionVideoProfile & other) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEqual(get(other), &result)); - return result; -} - -template Windows::Foundation::TimeSpan impl_IPerceptionColorFrameArrivedEventArgs::RelativeTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_RelativeTime(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionColorFrame impl_IPerceptionColorFrameArrivedEventArgs::TryOpenFrame() const -{ - Windows::Devices::Perception::PerceptionColorFrame result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryOpenFrame(put(result))); - return result; -} - -template Windows::Foundation::TimeSpan impl_IPerceptionDepthFrameArrivedEventArgs::RelativeTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_RelativeTime(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionDepthFrame impl_IPerceptionDepthFrameArrivedEventArgs::TryOpenFrame() const -{ - Windows::Devices::Perception::PerceptionDepthFrame result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryOpenFrame(put(result))); - return result; -} - -template Windows::Foundation::TimeSpan impl_IPerceptionInfraredFrameArrivedEventArgs::RelativeTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_RelativeTime(put(value))); - return value; -} - -template Windows::Devices::Perception::PerceptionInfraredFrame impl_IPerceptionInfraredFrameArrivedEventArgs::TryOpenFrame() const -{ - Windows::Devices::Perception::PerceptionInfraredFrame result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryOpenFrame(put(result))); - return result; -} - -template Windows::Foundation::Numerics::float3 impl_IPerceptionDepthCorrelatedCameraIntrinsics::UnprojectPixelAtCorrelatedDepth(const Windows::Foundation::Point & pixelCoordinate, const Windows::Devices::Perception::PerceptionDepthFrame & depthFrame) const -{ - Windows::Foundation::Numerics::float3 result {}; - check_hresult(static_cast(static_cast(*this))->abi_UnprojectPixelAtCorrelatedDepth(get(pixelCoordinate), get(depthFrame), put(result))); - return result; -} - -template void impl_IPerceptionDepthCorrelatedCameraIntrinsics::UnprojectPixelsAtCorrelatedDepth(array_ref sourceCoordinates, const Windows::Devices::Perception::PerceptionDepthFrame & depthFrame, array_ref results) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UnprojectPixelsAtCorrelatedDepth(sourceCoordinates.size(), get(sourceCoordinates), get(depthFrame), results.size(), get(results))); -} - -template Windows::Foundation::IAsyncAction impl_IPerceptionDepthCorrelatedCameraIntrinsics::UnprojectRegionPixelsAtCorrelatedDepthAsync(const Windows::Foundation::Rect & region, const Windows::Devices::Perception::PerceptionDepthFrame & depthFrame, array_ref results) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_UnprojectRegionPixelsAtCorrelatedDepthAsync(get(region), get(depthFrame), results.size(), get(results), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IPerceptionDepthCorrelatedCameraIntrinsics::UnprojectAllPixelsAtCorrelatedDepthAsync(const Windows::Devices::Perception::PerceptionDepthFrame & depthFrame, array_ref results) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_UnprojectAllPixelsAtCorrelatedDepthAsync(get(depthFrame), results.size(), get(results), put(result))); - return result; -} - -template Windows::Foundation::Point impl_IPerceptionDepthCorrelatedCoordinateMapper::MapPixelToTarget(const Windows::Foundation::Point & sourcePixelCoordinate, const Windows::Devices::Perception::PerceptionDepthFrame & depthFrame) const -{ - Windows::Foundation::Point result {}; - check_hresult(static_cast(static_cast(*this))->abi_MapPixelToTarget(get(sourcePixelCoordinate), get(depthFrame), put(result))); - return result; -} - -template void impl_IPerceptionDepthCorrelatedCoordinateMapper::MapPixelsToTarget(array_ref sourceCoordinates, const Windows::Devices::Perception::PerceptionDepthFrame & depthFrame, array_ref results) const -{ - check_hresult(static_cast(static_cast(*this))->abi_MapPixelsToTarget(sourceCoordinates.size(), get(sourceCoordinates), get(depthFrame), results.size(), get(results))); -} - -template Windows::Foundation::IAsyncAction impl_IPerceptionDepthCorrelatedCoordinateMapper::MapRegionOfPixelsToTargetAsync(const Windows::Foundation::Rect & region, const Windows::Devices::Perception::PerceptionDepthFrame & depthFrame, array_ref targetCoordinates) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MapRegionOfPixelsToTargetAsync(get(region), get(depthFrame), targetCoordinates.size(), get(targetCoordinates), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IPerceptionDepthCorrelatedCoordinateMapper::MapAllPixelsToTargetAsync(const Windows::Devices::Perception::PerceptionDepthFrame & depthFrame, array_ref targetCoordinates) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_MapAllPixelsToTargetAsync(get(depthFrame), targetCoordinates.size(), get(targetCoordinates), put(result))); - return result; -} - -template event_token impl_IPerceptionControlSession::ControlLost(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ControlLost(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionControlSession::ControlLost(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionControlSession::remove_ControlLost, ControlLost(handler)); -} - -template void impl_IPerceptionControlSession::ControlLost(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ControlLost(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IPerceptionControlSession::TrySetPropertyAsync(hstring_ref name, const Windows::IInspectable & value) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TrySetPropertyAsync(get(name), get(value), put(result))); - return result; -} - -template event_token impl_IPerceptionColorFrameReader::FrameArrived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FrameArrived(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionColorFrameReader::FrameArrived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionColorFrameReader::remove_FrameArrived, FrameArrived(handler)); -} - -template void impl_IPerceptionColorFrameReader::FrameArrived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FrameArrived(token)); -} - -template Windows::Devices::Perception::PerceptionColorFrameSource impl_IPerceptionColorFrameReader::Source() const -{ - Windows::Devices::Perception::PerceptionColorFrameSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template bool impl_IPerceptionColorFrameReader::IsPaused() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPaused(&value)); - return value; -} - -template void impl_IPerceptionColorFrameReader::IsPaused(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPaused(value)); -} - -template Windows::Devices::Perception::PerceptionColorFrame impl_IPerceptionColorFrameReader::TryReadLatestFrame() const -{ - Windows::Devices::Perception::PerceptionColorFrame result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryReadLatestFrame(put(result))); - return result; -} - -template event_token impl_IPerceptionDepthFrameReader::FrameArrived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FrameArrived(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionDepthFrameReader::FrameArrived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionDepthFrameReader::remove_FrameArrived, FrameArrived(handler)); -} - -template void impl_IPerceptionDepthFrameReader::FrameArrived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FrameArrived(token)); -} - -template Windows::Devices::Perception::PerceptionDepthFrameSource impl_IPerceptionDepthFrameReader::Source() const -{ - Windows::Devices::Perception::PerceptionDepthFrameSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template bool impl_IPerceptionDepthFrameReader::IsPaused() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPaused(&value)); - return value; -} - -template void impl_IPerceptionDepthFrameReader::IsPaused(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPaused(value)); -} - -template Windows::Devices::Perception::PerceptionDepthFrame impl_IPerceptionDepthFrameReader::TryReadLatestFrame() const -{ - Windows::Devices::Perception::PerceptionDepthFrame result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryReadLatestFrame(put(result))); - return result; -} - -template event_token impl_IPerceptionInfraredFrameReader::FrameArrived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FrameArrived(get(handler), &token)); - return token; -} - -template event_revoker impl_IPerceptionInfraredFrameReader::FrameArrived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Perception::IPerceptionInfraredFrameReader::remove_FrameArrived, FrameArrived(handler)); -} - -template void impl_IPerceptionInfraredFrameReader::FrameArrived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FrameArrived(token)); -} - -template Windows::Devices::Perception::PerceptionInfraredFrameSource impl_IPerceptionInfraredFrameReader::Source() const -{ - Windows::Devices::Perception::PerceptionInfraredFrameSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template bool impl_IPerceptionInfraredFrameReader::IsPaused() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPaused(&value)); - return value; -} - -template void impl_IPerceptionInfraredFrameReader::IsPaused(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPaused(value)); -} - -template Windows::Devices::Perception::PerceptionInfraredFrame impl_IPerceptionInfraredFrameReader::TryReadLatestFrame() const -{ - Windows::Devices::Perception::PerceptionInfraredFrame result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryReadLatestFrame(put(result))); - return result; -} - -template Windows::Media::VideoFrame impl_IPerceptionColorFrame::VideoFrame() const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoFrame(put(value))); - return value; -} - -template Windows::Media::VideoFrame impl_IPerceptionDepthFrame::VideoFrame() const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoFrame(put(value))); - return value; -} - -template Windows::Media::VideoFrame impl_IPerceptionInfraredFrame::VideoFrame() const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoFrame(put(value))); - return value; -} - -inline hstring KnownCameraIntrinsicsProperties::FocalLength() -{ - return get_activation_factory().FocalLength(); -} - -inline hstring KnownCameraIntrinsicsProperties::PrincipalPoint() -{ - return get_activation_factory().PrincipalPoint(); -} - -inline hstring KnownCameraIntrinsicsProperties::RadialDistortion() -{ - return get_activation_factory().RadialDistortion(); -} - -inline hstring KnownCameraIntrinsicsProperties::TangentialDistortion() -{ - return get_activation_factory().TangentialDistortion(); -} - -inline hstring KnownPerceptionColorFrameSourceProperties::Exposure() -{ - return get_activation_factory().Exposure(); -} - -inline hstring KnownPerceptionColorFrameSourceProperties::AutoExposureEnabled() -{ - return get_activation_factory().AutoExposureEnabled(); -} - -inline hstring KnownPerceptionColorFrameSourceProperties::ExposureCompensation() -{ - return get_activation_factory().ExposureCompensation(); -} - -inline hstring KnownPerceptionDepthFrameSourceProperties::MinDepth() -{ - return get_activation_factory().MinDepth(); -} - -inline hstring KnownPerceptionDepthFrameSourceProperties::MaxDepth() -{ - return get_activation_factory().MaxDepth(); -} - -inline hstring KnownPerceptionFrameSourceProperties::Id() -{ - return get_activation_factory().Id(); -} - -inline hstring KnownPerceptionFrameSourceProperties::PhysicalDeviceIds() -{ - return get_activation_factory().PhysicalDeviceIds(); -} - -inline hstring KnownPerceptionFrameSourceProperties::FrameKind() -{ - return get_activation_factory().FrameKind(); -} - -inline hstring KnownPerceptionFrameSourceProperties::DeviceModelVersion() -{ - return get_activation_factory().DeviceModelVersion(); -} - -inline hstring KnownPerceptionFrameSourceProperties::EnclosureLocation() -{ - return get_activation_factory().EnclosureLocation(); -} - -inline hstring KnownPerceptionFrameSourceProperties::DeviceId() -{ - return get_activation_factory().DeviceId(); -} - -inline hstring KnownPerceptionInfraredFrameSourceProperties::Exposure() -{ - return get_activation_factory().Exposure(); -} - -inline hstring KnownPerceptionInfraredFrameSourceProperties::AutoExposureEnabled() -{ - return get_activation_factory().AutoExposureEnabled(); -} - -inline hstring KnownPerceptionInfraredFrameSourceProperties::ExposureCompensation() -{ - return get_activation_factory().ExposureCompensation(); -} - -inline hstring KnownPerceptionInfraredFrameSourceProperties::ActiveIlluminationEnabled() -{ - return get_activation_factory().ActiveIlluminationEnabled(); -} - -inline hstring KnownPerceptionInfraredFrameSourceProperties::AmbientSubtractionEnabled() -{ - return get_activation_factory().AmbientSubtractionEnabled(); -} - -inline hstring KnownPerceptionInfraredFrameSourceProperties::StructureLightPatternEnabled() -{ - return get_activation_factory().StructureLightPatternEnabled(); -} - -inline hstring KnownPerceptionInfraredFrameSourceProperties::InterleavedIlluminationEnabled() -{ - return get_activation_factory().InterleavedIlluminationEnabled(); -} - -inline hstring KnownPerceptionVideoFrameSourceProperties::VideoProfile() -{ - return get_activation_factory().VideoProfile(); -} - -inline hstring KnownPerceptionVideoFrameSourceProperties::SupportedVideoProfiles() -{ - return get_activation_factory().SupportedVideoProfiles(); -} - -inline hstring KnownPerceptionVideoFrameSourceProperties::AvailableVideoProfiles() -{ - return get_activation_factory().AvailableVideoProfiles(); -} - -inline hstring KnownPerceptionVideoFrameSourceProperties::IsMirrored() -{ - return get_activation_factory().IsMirrored(); -} - -inline hstring KnownPerceptionVideoFrameSourceProperties::CameraIntrinsics() -{ - return get_activation_factory().CameraIntrinsics(); -} - -inline hstring KnownPerceptionVideoProfileProperties::BitmapPixelFormat() -{ - return get_activation_factory().BitmapPixelFormat(); -} - -inline hstring KnownPerceptionVideoProfileProperties::BitmapAlphaMode() -{ - return get_activation_factory().BitmapAlphaMode(); -} - -inline hstring KnownPerceptionVideoProfileProperties::Width() -{ - return get_activation_factory().Width(); -} - -inline hstring KnownPerceptionVideoProfileProperties::Height() -{ - return get_activation_factory().Height(); -} - -inline hstring KnownPerceptionVideoProfileProperties::FrameDuration() -{ - return get_activation_factory().FrameDuration(); -} - -inline Windows::Devices::Perception::PerceptionColorFrameSourceWatcher PerceptionColorFrameSource::CreateWatcher() -{ - return get_activation_factory().CreateWatcher(); -} - -inline Windows::Foundation::IAsyncOperation> PerceptionColorFrameSource::FindAllAsync() -{ - return get_activation_factory().FindAllAsync(); -} - -inline Windows::Foundation::IAsyncOperation PerceptionColorFrameSource::FromIdAsync(hstring_ref id) -{ - return get_activation_factory().FromIdAsync(id); -} - -inline Windows::Foundation::IAsyncOperation PerceptionColorFrameSource::RequestAccessAsync() -{ - return get_activation_factory().RequestAccessAsync(); -} - -inline Windows::Devices::Perception::PerceptionDepthFrameSourceWatcher PerceptionDepthFrameSource::CreateWatcher() -{ - return get_activation_factory().CreateWatcher(); -} - -inline Windows::Foundation::IAsyncOperation> PerceptionDepthFrameSource::FindAllAsync() -{ - return get_activation_factory().FindAllAsync(); -} - -inline Windows::Foundation::IAsyncOperation PerceptionDepthFrameSource::FromIdAsync(hstring_ref id) -{ - return get_activation_factory().FromIdAsync(id); -} - -inline Windows::Foundation::IAsyncOperation PerceptionDepthFrameSource::RequestAccessAsync() -{ - return get_activation_factory().RequestAccessAsync(); -} - -inline Windows::Devices::Perception::PerceptionInfraredFrameSourceWatcher PerceptionInfraredFrameSource::CreateWatcher() -{ - return get_activation_factory().CreateWatcher(); -} - -inline Windows::Foundation::IAsyncOperation> PerceptionInfraredFrameSource::FindAllAsync() -{ - return get_activation_factory().FindAllAsync(); -} - -inline Windows::Foundation::IAsyncOperation PerceptionInfraredFrameSource::FromIdAsync(hstring_ref id) -{ - return get_activation_factory().FromIdAsync(id); -} - -inline Windows::Foundation::IAsyncOperation PerceptionInfraredFrameSource::RequestAccessAsync() -{ - return get_activation_factory().RequestAccessAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.PointOfService.h b/10.0.14393.0/winrt/Windows.Devices.PointOfService.h deleted file mode 100644 index 64dc75241..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.PointOfService.h +++ /dev/null @@ -1,10020 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Graphics.Imaging.3.h" -#include "internal/Windows.Devices.PointOfService.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Capabilities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Capabilities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClaimScannerAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ClaimScannerAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckHealthAsync(Windows::Devices::PointOfService::UnifiedPosHealthCheckLevel level, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CheckHealthAsync(level)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSupportedSymbologiesAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetSupportedSymbologiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsSymbologySupportedAsync(uint32_t barcodeSymbology, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().IsSymbologySupportedAsync(barcodeSymbology)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetrieveStatisticsAsync(abi_arg_in> statisticsCategories, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RetrieveStatisticsAsync(*reinterpret_cast *>(&statisticsCategories))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSupportedProfiles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetSupportedProfiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsProfileSupported(abi_arg_in profile, bool * isSupported) noexcept override - { - try - { - *isSupported = detach(this->shim().IsProfileSupported(*reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StatusUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StatusUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StatusUpdated(event_token token) noexcept override - { - try - { - this->shim().StatusUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VideoDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PowerReportingType(Windows::Devices::PointOfService::UnifiedPosPowerReportingType * value) noexcept override - { - try - { - *value = detach(this->shim().PowerReportingType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStatisticsReportingSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStatisticsReportingSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStatisticsUpdatingSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStatisticsUpdatingSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsImagePreviewSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsImagePreviewSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSoftwareTriggerSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSoftwareTriggerSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Report(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Report()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PartialInputData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PartialInputData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRetriable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRetriable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ErrorData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Preview(abi_arg_out preview) noexcept override - { - try - { - *preview = detach(this->shim().Preview()); - return S_OK; - } - catch (...) - { - *preview = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ScanDataType(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ScanDataType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScanData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScanData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScanDataLabel(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScanDataLabel()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::PointOfService::BarcodeScannerStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedStatus(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Unknown(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Unknown()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ean8(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ean8()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ean8Add2(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ean8Add2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ean8Add5(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ean8Add5()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Eanv(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Eanv()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EanvAdd2(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().EanvAdd2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EanvAdd5(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().EanvAdd5()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ean13(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ean13()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ean13Add2(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ean13Add2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ean13Add5(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ean13Add5()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Isbn(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Isbn()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsbnAdd5(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IsbnAdd5()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ismn(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ismn()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsmnAdd2(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IsmnAdd2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsmnAdd5(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IsmnAdd5()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Issn(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Issn()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IssnAdd2(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IssnAdd2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IssnAdd5(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IssnAdd5()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ean99(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ean99()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ean99Add2(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ean99Add2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ean99Add5(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ean99Add5()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Upca(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Upca()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpcaAdd2(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UpcaAdd2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpcaAdd5(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UpcaAdd5()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Upce(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Upce()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpceAdd2(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UpceAdd2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpceAdd5(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UpceAdd5()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpcCoupon(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UpcCoupon()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TfStd(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TfStd()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TfDis(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TfDis()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TfInt(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TfInt()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TfInd(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TfInd()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TfMat(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TfMat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TfIata(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TfIata()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gs1DatabarType1(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Gs1DatabarType1()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gs1DatabarType2(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Gs1DatabarType2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gs1DatabarType3(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Gs1DatabarType3()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Code39(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Code39()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Code39Ex(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Code39Ex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Trioptic39(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Trioptic39()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Code32(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Code32()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pzn(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Pzn()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Code93(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Code93()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Code93Ex(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Code93Ex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Code128(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Code128()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gs1128(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Gs1128()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gs1128Coupon(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Gs1128Coupon()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UccEan128(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UccEan128()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sisac(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Sisac()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Isbt(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Isbt()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Codabar(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Codabar()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Code11(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Code11()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Msi(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Msi()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Plessey(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Plessey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Telepen(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Telepen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Code16k(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Code16k()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CodablockA(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CodablockA()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CodablockF(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CodablockF()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Codablock128(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Codablock128()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Code49(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Code49()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Aztec(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Aztec()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataCode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DataCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataMatrix(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DataMatrix()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HanXin(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().HanXin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Maxicode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Maxicode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MicroPdf417(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MicroPdf417()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MicroQr(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MicroQr()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pdf417(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Pdf417()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Qr(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Qr()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MsTag(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MsTag()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ccab(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ccab()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ccc(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ccc()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tlc39(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Tlc39()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AusPost(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AusPost()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanPost(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CanPost()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChinaPost(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChinaPost()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DutchKix(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DutchKix()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InfoMail(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InfoMail()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItalianPost25(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ItalianPost25()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItalianPost39(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ItalianPost39()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JapanPost(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().JapanPost()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KoreanPost(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().KoreanPost()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SwedenPost(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SwedenPost()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UkPost(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UkPost()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsIntelligent(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsIntelligent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsIntelligentPkg(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsIntelligentPkg()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsPlanet(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsPlanet()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsPostNet(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsPostNet()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Us4StateFics(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Us4StateFics()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OcrA(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OcrA()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OcrB(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OcrB()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Micr(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Micr()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedBase(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedBase()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetName(uint32_t scanDataType, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetName(scanDataType)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Capabilities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Capabilities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDrawerOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDrawerOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DrawerEventSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DrawerEventSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClaimDrawerAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ClaimDrawerAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckHealthAsync(Windows::Devices::PointOfService::UnifiedPosHealthCheckLevel level, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CheckHealthAsync(level)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStatisticsAsync(abi_arg_in> statisticsCategories, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetStatisticsAsync(*reinterpret_cast *>(&statisticsCategories))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StatusUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StatusUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StatusUpdated(event_token token) noexcept override - { - try - { - this->shim().StatusUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PowerReportingType(Windows::Devices::PointOfService::UnifiedPosPowerReportingType * value) noexcept override - { - try - { - *value = detach(this->shim().PowerReportingType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStatisticsReportingSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStatisticsReportingSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStatisticsUpdatingSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStatisticsUpdatingSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStatusReportingSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStatusReportingSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStatusMultiDrawerDetectSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStatusMultiDrawerDetectSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDrawerOpenSensorAvailable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDrawerOpenSensorAvailable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_AlarmTimeout(abi_arg_in value) noexcept override - { - try - { - this->shim().AlarmTimeout(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlarmTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlarmTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BeepFrequency(uint32_t value) noexcept override - { - try - { - this->shim().BeepFrequency(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BeepFrequency(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BeepFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BeepDuration(abi_arg_in value) noexcept override - { - try - { - this->shim().BeepDuration(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BeepDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BeepDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BeepDelay(abi_arg_in value) noexcept override - { - try - { - this->shim().BeepDelay(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BeepDelay(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BeepDelay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AlarmTimeoutExpired(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AlarmTimeoutExpired(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AlarmTimeoutExpired(event_token token) noexcept override - { - try - { - this->shim().AlarmTimeoutExpired(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().StartAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_DrawerClosed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DrawerClosed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DrawerClosed(event_token token) noexcept override - { - try - { - this->shim().DrawerClosed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DrawerOpened(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DrawerOpened(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DrawerOpened(event_token token) noexcept override - { - try - { - this->shim().DrawerOpened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CashDrawer(abi_arg_out drawer) noexcept override - { - try - { - *drawer = detach(this->shim().CashDrawer()); - return S_OK; - } - catch (...) - { - *drawer = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StatusKind(Windows::Devices::PointOfService::CashDrawerStatusKind * value) noexcept override - { - try - { - *value = detach(this->shim().StatusKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedStatus(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDisabledOnDataReceived(bool value) noexcept override - { - try - { - this->shim().IsDisabledOnDataReceived(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDisabledOnDataReceived(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDisabledOnDataReceived()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDecodeDataEnabled(bool value) noexcept override - { - try - { - this->shim().IsDecodeDataEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDecodeDataEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDecodeDataEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().EnableAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisableAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DisableAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetainDevice() noexcept override - { - try - { - this->shim().RetainDevice(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetActiveSymbologiesAsync(abi_arg_in> symbologies, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SetActiveSymbologiesAsync(*reinterpret_cast *>(&symbologies))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetStatisticsAsync(abi_arg_in> statisticsCategories, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ResetStatisticsAsync(*reinterpret_cast *>(&statisticsCategories))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateStatisticsAsync(abi_arg_in>> statistics, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UpdateStatisticsAsync(*reinterpret_cast> *>(&statistics))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetActiveProfileAsync(abi_arg_in profile, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SetActiveProfileAsync(*reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DataReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DataReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DataReceived(event_token token) noexcept override - { - try - { - this->shim().DataReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TriggerPressed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TriggerPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TriggerPressed(event_token token) noexcept override - { - try - { - this->shim().TriggerPressed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TriggerReleased(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TriggerReleased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TriggerReleased(event_token token) noexcept override - { - try - { - this->shim().TriggerReleased(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReleaseDeviceRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReleaseDeviceRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReleaseDeviceRequested(event_token token) noexcept override - { - try - { - this->shim().ReleaseDeviceRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ImagePreviewReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ImagePreviewReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ImagePreviewReceived(event_token token) noexcept override - { - try - { - this->shim().ImagePreviewReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ErrorOccurred(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ErrorOccurred(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ErrorOccurred(event_token token) noexcept override - { - try - { - this->shim().ErrorOccurred(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartSoftwareTriggerAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().StartSoftwareTriggerAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopSoftwareTriggerAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().StopSoftwareTriggerAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDrawerOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDrawerOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CloseAlarm(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CloseAlarm()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenDrawerAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().OpenDrawerAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().EnableAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisableAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().DisableAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetainDeviceAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RetainDeviceAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetStatisticsAsync(abi_arg_in> statisticsCategories, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ResetStatisticsAsync(*reinterpret_cast *>(&statisticsCategories))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateStatisticsAsync(abi_arg_in>> statistics, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().UpdateStatisticsAsync(*reinterpret_cast> *>(&statistics))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReleaseDeviceRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReleaseDeviceRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReleaseDeviceRequested(event_token token) noexcept override - { - try - { - this->shim().ReleaseDeviceRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateJob(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateJob()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDisabledOnDataReceived(bool value) noexcept override - { - try - { - this->shim().IsDisabledOnDataReceived(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDisabledOnDataReceived(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDisabledOnDataReceived()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDecodeDataEnabled(bool value) noexcept override - { - try - { - this->shim().IsDecodeDataEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDecodeDataEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDecodeDataEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDeviceAuthenticated(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDeviceAuthenticated()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataEncryptionAlgorithm(uint32_t value) noexcept override - { - try - { - this->shim().DataEncryptionAlgorithm(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataEncryptionAlgorithm(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DataEncryptionAlgorithm()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TracksToRead(Windows::Devices::PointOfService::MagneticStripeReaderTrackIds value) noexcept override - { - try - { - this->shim().TracksToRead(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TracksToRead(Windows::Devices::PointOfService::MagneticStripeReaderTrackIds * value) noexcept override - { - try - { - *value = detach(this->shim().TracksToRead()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTransmitSentinelsEnabled(bool value) noexcept override - { - try - { - this->shim().IsTransmitSentinelsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTransmitSentinelsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTransmitSentinelsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().EnableAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisableAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DisableAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetainDevice() noexcept override - { - try - { - this->shim().RetainDevice(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetErrorReportingType(Windows::Devices::PointOfService::MagneticStripeReaderErrorReportingType value) noexcept override - { - try - { - this->shim().SetErrorReportingType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetrieveDeviceAuthenticationDataAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RetrieveDeviceAuthenticationDataAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AuthenticateDeviceAsync(uint32_t __responseTokenSize, abi_arg_in * responseToken, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().AuthenticateDeviceAsync(array_ref(responseToken, responseToken + __responseTokenSize))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeAuthenticateDeviceAsync(uint32_t __responseTokenSize, abi_arg_in * responseToken, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DeAuthenticateDeviceAsync(array_ref(responseToken, responseToken + __responseTokenSize))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateKeyAsync(abi_arg_in key, abi_arg_in keyName, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UpdateKeyAsync(*reinterpret_cast(&key), *reinterpret_cast(&keyName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetStatisticsAsync(abi_arg_in> statisticsCategories, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ResetStatisticsAsync(*reinterpret_cast *>(&statisticsCategories))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateStatisticsAsync(abi_arg_in>> statistics, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UpdateStatisticsAsync(*reinterpret_cast> *>(&statistics))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BankCardDataReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BankCardDataReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BankCardDataReceived(event_token token) noexcept override - { - try - { - this->shim().BankCardDataReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AamvaCardDataReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AamvaCardDataReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AamvaCardDataReceived(event_token token) noexcept override - { - try - { - this->shim().AamvaCardDataReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VendorSpecificDataReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VendorSpecificDataReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VendorSpecificDataReceived(event_token token) noexcept override - { - try - { - this->shim().VendorSpecificDataReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReleaseDeviceRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReleaseDeviceRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReleaseDeviceRequested(event_token token) noexcept override - { - try - { - this->shim().ReleaseDeviceRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ErrorOccurred(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ErrorOccurred(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ErrorOccurred(event_token token) noexcept override - { - try - { - this->shim().ErrorOccurred(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CharacterSet(uint32_t value) noexcept override - { - try - { - this->shim().CharacterSet(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacterSet(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CharacterSet()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCoverOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCoverOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsCharacterSetMappingEnabled(bool value) noexcept override - { - try - { - this->shim().IsCharacterSetMappingEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCharacterSetMappingEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCharacterSetMappingEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MapMode(Windows::Devices::PointOfService::PosPrinterMapMode value) noexcept override - { - try - { - this->shim().MapMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MapMode(Windows::Devices::PointOfService::PosPrinterMapMode * value) noexcept override - { - try - { - *value = detach(this->shim().MapMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Receipt(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Receipt()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Slip(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Slip()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Journal(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Journal()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().EnableAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisableAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().DisableAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetainDeviceAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RetainDeviceAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetStatisticsAsync(abi_arg_in> statisticsCategories, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ResetStatisticsAsync(*reinterpret_cast *>(&statisticsCategories))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateStatisticsAsync(abi_arg_in>> statistics, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().UpdateStatisticsAsync(*reinterpret_cast> *>(&statistics))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReleaseDeviceRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReleaseDeviceRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReleaseDeviceRequested(event_token token) noexcept override - { - try - { - this->shim().ReleaseDeviceRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SidewaysMaxLines(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SidewaysMaxLines()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SidewaysMaxChars(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SidewaysMaxChars()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinesToPaperCut(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LinesToPaperCut()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PageSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrintArea(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrintArea()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateJob(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateJob()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SidewaysMaxLines(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SidewaysMaxLines()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SidewaysMaxChars(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SidewaysMaxChars()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLines(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxLines()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinesNearEndToEnd(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LinesNearEndToEnd()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrintSide(Windows::Devices::PointOfService::PosPrinterPrintSide * value) noexcept override - { - try - { - *value = detach(this->shim().PrintSide()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PageSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrintArea(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrintArea()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenJaws() noexcept override - { - try - { - this->shim().OpenJaws(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CloseJaws() noexcept override - { - try - { - this->shim().CloseJaws(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertSlipAsync(abi_arg_in timeout, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().InsertSlipAsync(*reinterpret_cast(&timeout))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveSlipAsync(abi_arg_in timeout, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RemoveSlipAsync(*reinterpret_cast(&timeout))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ChangePrintSide(Windows::Devices::PointOfService::PosPrinterPrintSide printSide) noexcept override - { - try - { - this->shim().ChangePrintSide(printSide); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateJob(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateJob()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_CharactersPerLine(uint32_t value) noexcept override - { - try - { - this->shim().CharactersPerLine(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharactersPerLine(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CharactersPerLine()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LineHeight(uint32_t value) noexcept override - { - try - { - this->shim().LineHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineHeight(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LineHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LineSpacing(uint32_t value) noexcept override - { - try - { - this->shim().LineSpacing(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineSpacing(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LineSpacing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineWidth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LineWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsLetterQuality(bool value) noexcept override - { - try - { - this->shim().IsLetterQuality(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLetterQuality(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsLetterQuality()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPaperNearEnd(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPaperNearEnd()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ColorCartridge(Windows::Devices::PointOfService::PosPrinterColorCartridge value) noexcept override - { - try - { - this->shim().ColorCartridge(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColorCartridge(Windows::Devices::PointOfService::PosPrinterColorCartridge * value) noexcept override - { - try - { - *value = detach(this->shim().ColorCartridge()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCoverOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCoverOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCartridgeRemoved(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCartridgeRemoved()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCartridgeEmpty(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCartridgeEmpty()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHeadCleaning(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHeadCleaning()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPaperEmpty(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPaperEmpty()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsReadyToPrint(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReadyToPrint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ValidateData(abi_arg_in data, bool * result) noexcept override - { - try - { - *result = detach(this->shim().ValidateData(*reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsPrinterPresent(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPrinterPresent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDualColorSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDualColorSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColorCartridgeCapabilities(Windows::Devices::PointOfService::PosPrinterColorCapabilities * value) noexcept override - { - try - { - *value = detach(this->shim().ColorCartridgeCapabilities()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CartridgeSensors(Windows::Devices::PointOfService::PosPrinterCartridgeSensors * value) noexcept override - { - try - { - *value = detach(this->shim().CartridgeSensors()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsBoldSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBoldSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsItalicSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsItalicSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsUnderlineSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsUnderlineSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDoubleHighPrintSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDoubleHighPrintSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDoubleWidePrintSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDoubleWidePrintSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDoubleHighDoubleWidePrintSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDoubleHighDoubleWidePrintSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPaperEmptySensorSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPaperEmptySensorSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPaperNearEndSensorSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPaperNearEndSensorSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedCharactersPerLine(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedCharactersPerLine()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsBarcodeSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBarcodeSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsBitmapSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBitmapSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLeft90RotationSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsLeft90RotationSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRight90RotationSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRight90RotationSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Is180RotationSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Is180RotationSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPrintAreaSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPrintAreaSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RuledLineCapabilities(Windows::Devices::PointOfService::PosPrinterRuledLineCapabilities * value) noexcept override - { - try - { - *value = detach(this->shim().RuledLineCapabilities()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedBarcodeRotations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedBarcodeRotations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedBitmapRotations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedBitmapRotations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Capabilities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Capabilities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedCardTypes(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().SupportedCardTypes()); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceAuthenticationProtocol(Windows::Devices::PointOfService::MagneticStripeReaderAuthenticationProtocol * value) noexcept override - { - try - { - *value = detach(this->shim().DeviceAuthenticationProtocol()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckHealthAsync(Windows::Devices::PointOfService::UnifiedPosHealthCheckLevel level, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CheckHealthAsync(level)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClaimReaderAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ClaimReaderAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetrieveStatisticsAsync(abi_arg_in> statisticsCategories, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RetrieveStatisticsAsync(*reinterpret_cast *>(&statisticsCategories))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetErrorReportingType(Windows::Devices::PointOfService::MagneticStripeReaderErrorReportingType * value) noexcept override - { - try - { - *value = detach(this->shim().GetErrorReportingType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StatusUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StatusUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StatusUpdated(event_token token) noexcept override - { - try - { - this->shim().StatusUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Report(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Report()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LicenseNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LicenseNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Restrictions(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Restrictions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Class(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Class()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Endorsements(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Endorsements()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BirthDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BirthDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Surname(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Surname()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Suffix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Suffix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gender(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Gender()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HairColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HairColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EyeColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EyeColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Weight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Weight()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Address(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Address()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_City(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().City()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PostalCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PostalCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Report(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Report()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccountNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccountNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MiddleInitial(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MiddleInitial()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Surname(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Surname()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Suffix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Suffix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CardAuthentication(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CardAuthentication()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedEncryptionAlgorithms(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SupportedEncryptionAlgorithms()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationLevel(Windows::Devices::PointOfService::MagneticStripeReaderAuthenticationLevel * value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsIsoSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIsoSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsJisOneSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsJisOneSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsJisTwoSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsJisTwoSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PowerReportingType(Windows::Devices::PointOfService::UnifiedPosPowerReportingType * value) noexcept override - { - try - { - *value = detach(this->shim().PowerReportingType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStatisticsReportingSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStatisticsReportingSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStatisticsUpdatingSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStatisticsUpdatingSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTrackDataMaskingSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTrackDataMaskingSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTransmitSentinelsSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTransmitSentinelsSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Unknown(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Unknown()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bank(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Bank()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Aamva(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Aamva()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedBase(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedBase()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_None(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().None()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TripleDesDukpt(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TripleDesDukpt()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedBase(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedBase()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Track1Status(Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType * value) noexcept override - { - try - { - *value = detach(this->shim().Track1Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Track2Status(Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType * value) noexcept override - { - try - { - *value = detach(this->shim().Track2Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Track3Status(Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType * value) noexcept override - { - try - { - *value = detach(this->shim().Track3Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Track4Status(Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType * value) noexcept override - { - try - { - *value = detach(this->shim().Track4Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ErrorData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PartialInputData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PartialInputData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CardType(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CardType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Track1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Track1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Track2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Track2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Track3(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Track3()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Track4(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Track4()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CardAuthenticationData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CardAuthenticationData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CardAuthenticationDataLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CardAuthenticationDataLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdditionalSecurityInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdditionalSecurityInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::PointOfService::MagneticStripeReaderStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedStatus(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DiscretionaryData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DiscretionaryData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EncryptedData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EncryptedData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Report(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Report()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Capabilities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Capabilities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedCharacterSets(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedCharacterSets()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedTypeFaces(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedTypeFaces()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClaimPrinterAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ClaimPrinterAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckHealthAsync(Windows::Devices::PointOfService::UnifiedPosHealthCheckLevel level, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CheckHealthAsync(level)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStatisticsAsync(abi_arg_in> statisticsCategories, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetStatisticsAsync(*reinterpret_cast *>(&statisticsCategories))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StatusUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StatusUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StatusUpdated(event_token token) noexcept override - { - try - { - this->shim().StatusUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PowerReportingType(Windows::Devices::PointOfService::UnifiedPosPowerReportingType * value) noexcept override - { - try - { - *value = detach(this->shim().PowerReportingType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStatisticsReportingSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStatisticsReportingSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStatisticsUpdatingSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStatisticsUpdatingSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultCharacterSet(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultCharacterSet()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasCoverSensor(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasCoverSensor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanMapCharacterSet(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanMapCharacterSet()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTransactionSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTransactionSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Receipt(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Receipt()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Slip(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Slip()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Journal(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Journal()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Utf16LE(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Utf16LE()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ascii(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ascii()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ansi(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Ansi()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Print(abi_arg_in data) noexcept override - { - try - { - this->shim().Print(*reinterpret_cast(&data)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrintLine(abi_arg_in data) noexcept override - { - try - { - this->shim().PrintLine(*reinterpret_cast(&data)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrintNewline() noexcept override - { - try - { - this->shim().PrintLine(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ExecuteAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ExecuteAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StatusKind(Windows::Devices::PointOfService::PosPrinterStatusKind * value) noexcept override - { - try - { - *value = detach(this->shim().StatusKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedStatus(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetBarcodeRotation(Windows::Devices::PointOfService::PosPrinterRotation value) noexcept override - { - try - { - this->shim().SetBarcodeRotation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPrintRotation(Windows::Devices::PointOfService::PosPrinterRotation value, bool includeBitmaps) noexcept override - { - try - { - this->shim().SetPrintRotation(value, includeBitmaps); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPrintArea(abi_arg_in value) noexcept override - { - try - { - this->shim().SetPrintArea(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetBitmap(uint32_t bitmapNumber, abi_arg_in bitmap, Windows::Devices::PointOfService::PosPrinterAlignment alignment) noexcept override - { - try - { - this->shim().SetBitmap(bitmapNumber, *reinterpret_cast(&bitmap), alignment); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetBitmapCustomWidthStandardAlign(uint32_t bitmapNumber, abi_arg_in bitmap, Windows::Devices::PointOfService::PosPrinterAlignment alignment, uint32_t width) noexcept override - { - try - { - this->shim().SetBitmap(bitmapNumber, *reinterpret_cast(&bitmap), alignment, width); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetCustomAlignedBitmap(uint32_t bitmapNumber, abi_arg_in bitmap, uint32_t alignmentDistance) noexcept override - { - try - { - this->shim().SetCustomAlignedBitmap(bitmapNumber, *reinterpret_cast(&bitmap), alignmentDistance); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetBitmapCustomWidthCustomAlign(uint32_t bitmapNumber, abi_arg_in bitmap, uint32_t alignmentDistance, uint32_t width) noexcept override - { - try - { - this->shim().SetCustomAlignedBitmap(bitmapNumber, *reinterpret_cast(&bitmap), alignmentDistance, width); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrintSavedBitmap(uint32_t bitmapNumber) noexcept override - { - try - { - this->shim().PrintSavedBitmap(bitmapNumber); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DrawRuledLine(abi_arg_in positionList, Windows::Devices::PointOfService::PosPrinterLineDirection lineDirection, uint32_t lineWidth, Windows::Devices::PointOfService::PosPrinterLineStyle lineStyle, uint32_t lineColor) noexcept override - { - try - { - this->shim().DrawRuledLine(*reinterpret_cast(&positionList), lineDirection, lineWidth, lineStyle, lineColor); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrintBarcode(abi_arg_in data, uint32_t symbology, uint32_t height, uint32_t width, Windows::Devices::PointOfService::PosPrinterBarcodeTextPosition textPosition, Windows::Devices::PointOfService::PosPrinterAlignment alignment) noexcept override - { - try - { - this->shim().PrintBarcode(*reinterpret_cast(&data), symbology, height, width, textPosition, alignment); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrintBarcodeCustomAlign(abi_arg_in data, uint32_t symbology, uint32_t height, uint32_t width, Windows::Devices::PointOfService::PosPrinterBarcodeTextPosition textPosition, uint32_t alignmentDistance) noexcept override - { - try - { - this->shim().PrintBarcodeCustomAlign(*reinterpret_cast(&data), symbology, height, width, textPosition, alignmentDistance); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrintBitmap(abi_arg_in bitmap, Windows::Devices::PointOfService::PosPrinterAlignment alignment) noexcept override - { - try - { - this->shim().PrintBitmap(*reinterpret_cast(&bitmap), alignment); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrintBitmapCustomWidthStandardAlign(abi_arg_in bitmap, Windows::Devices::PointOfService::PosPrinterAlignment alignment, uint32_t width) noexcept override - { - try - { - this->shim().PrintBitmap(*reinterpret_cast(&bitmap), alignment, width); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrintCustomAlignedBitmap(abi_arg_in bitmap, uint32_t alignmentDistance) noexcept override - { - try - { - this->shim().PrintCustomAlignedBitmap(*reinterpret_cast(&bitmap), alignmentDistance); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrintBitmapCustomWidthCustomAlign(abi_arg_in bitmap, uint32_t alignmentDistance, uint32_t width) noexcept override - { - try - { - this->shim().PrintCustomAlignedBitmap(*reinterpret_cast(&bitmap), alignmentDistance, width); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_MarkFeed(Windows::Devices::PointOfService::PosPrinterMarkFeedKind kind) noexcept override - { - try - { - this->shim().MarkFeed(kind); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CutPaper(double percentage) noexcept override - { - try - { - this->shim().CutPaper(percentage); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CutPaperDefault() noexcept override - { - try - { - this->shim().CutPaper(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanCutPaper(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanCutPaper()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStampSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStampSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MarkFeedCapabilities(Windows::Devices::PointOfService::PosPrinterMarkFeedCapabilities * value) noexcept override - { - try - { - *value = detach(this->shim().MarkFeedCapabilities()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsFullLengthSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFullLengthSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsBothSidesPrintingSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBothSidesPrintingSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Severity(Windows::Devices::PointOfService::UnifiedPosErrorSeverity * value) noexcept override - { - try - { - *value = detach(this->shim().Severity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Reason(Windows::Devices::PointOfService::UnifiedPosErrorReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedReason(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedReason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::PointOfService { - -template hstring impl_IUnifiedPosErrorData::Message() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template Windows::Devices::PointOfService::UnifiedPosErrorSeverity impl_IUnifiedPosErrorData::Severity() const -{ - Windows::Devices::PointOfService::UnifiedPosErrorSeverity value {}; - check_hresult(static_cast(static_cast(*this))->get_Severity(&value)); - return value; -} - -template Windows::Devices::PointOfService::UnifiedPosErrorReason impl_IUnifiedPosErrorData::Reason() const -{ - Windows::Devices::PointOfService::UnifiedPosErrorReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template uint32_t impl_IUnifiedPosErrorData::ExtendedReason() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedReason(&value)); - return value; -} - -template Windows::Devices::PointOfService::BarcodeScannerStatus impl_IBarcodeScannerStatusUpdatedEventArgs::Status() const -{ - Windows::Devices::PointOfService::BarcodeScannerStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template uint32_t impl_IBarcodeScannerStatusUpdatedEventArgs::ExtendedStatus() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedStatus(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Unknown() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Unknown(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ean8() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ean8(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ean8Add2() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ean8Add2(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ean8Add5() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ean8Add5(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Eanv() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Eanv(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::EanvAdd2() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EanvAdd2(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::EanvAdd5() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EanvAdd5(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ean13() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ean13(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ean13Add2() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ean13Add2(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ean13Add5() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ean13Add5(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Isbn() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Isbn(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::IsbnAdd5() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IsbnAdd5(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ismn() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ismn(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::IsmnAdd2() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IsmnAdd2(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::IsmnAdd5() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IsmnAdd5(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Issn() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Issn(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::IssnAdd2() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IssnAdd2(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::IssnAdd5() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IssnAdd5(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ean99() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ean99(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ean99Add2() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ean99Add2(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ean99Add5() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ean99Add5(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Upca() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Upca(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::UpcaAdd2() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UpcaAdd2(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::UpcaAdd5() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UpcaAdd5(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Upce() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Upce(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::UpceAdd2() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UpceAdd2(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::UpceAdd5() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UpceAdd5(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::UpcCoupon() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UpcCoupon(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::TfStd() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TfStd(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::TfDis() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TfDis(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::TfInt() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TfInt(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::TfInd() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TfInd(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::TfMat() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TfMat(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::TfIata() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TfIata(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Gs1DatabarType1() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Gs1DatabarType1(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Gs1DatabarType2() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Gs1DatabarType2(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Gs1DatabarType3() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Gs1DatabarType3(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Code39() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Code39(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Code39Ex() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Code39Ex(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Trioptic39() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Trioptic39(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Code32() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Code32(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Pzn() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Pzn(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Code93() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Code93(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Code93Ex() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Code93Ex(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Code128() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Code128(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Gs1128() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Gs1128(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Gs1128Coupon() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Gs1128Coupon(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::UccEan128() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UccEan128(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Sisac() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Sisac(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Isbt() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Isbt(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Codabar() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Codabar(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Code11() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Code11(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Msi() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Msi(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Plessey() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Plessey(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Telepen() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Telepen(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Code16k() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Code16k(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::CodablockA() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CodablockA(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::CodablockF() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CodablockF(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Codablock128() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Codablock128(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Code49() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Code49(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Aztec() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Aztec(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::DataCode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DataCode(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::DataMatrix() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DataMatrix(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::HanXin() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HanXin(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Maxicode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Maxicode(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::MicroPdf417() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MicroPdf417(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::MicroQr() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MicroQr(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Pdf417() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Pdf417(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Qr() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Qr(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::MsTag() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MsTag(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ccab() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ccab(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Ccc() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ccc(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Tlc39() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Tlc39(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::AusPost() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AusPost(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::CanPost() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CanPost(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::ChinaPost() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChinaPost(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::DutchKix() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DutchKix(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::InfoMail() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InfoMail(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::ItalianPost25() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ItalianPost25(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::ItalianPost39() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ItalianPost39(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::JapanPost() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_JapanPost(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::KoreanPost() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_KoreanPost(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::SwedenPost() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SwedenPost(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::UkPost() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UkPost(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::UsIntelligent() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsIntelligent(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::UsIntelligentPkg() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsIntelligentPkg(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::UsPlanet() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsPlanet(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::UsPostNet() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsPostNet(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Us4StateFics() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Us4StateFics(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::OcrA() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OcrA(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::OcrB() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OcrB(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::Micr() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Micr(&value)); - return value; -} - -template uint32_t impl_IBarcodeSymbologiesStatics::ExtendedBase() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedBase(&value)); - return value; -} - -template hstring impl_IBarcodeSymbologiesStatics::GetName(uint32_t scanDataType) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetName(scanDataType, put(value))); - return value; -} - -template Windows::Devices::PointOfService::BarcodeScannerReport impl_IBarcodeScannerDataReceivedEventArgs::Report() const -{ - Windows::Devices::PointOfService::BarcodeScannerReport value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Report(put(value))); - return value; -} - -template uint32_t impl_IBarcodeScannerReport::ScanDataType() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ScanDataType(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IBarcodeScannerReport::ScanData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_ScanData(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IBarcodeScannerReport::ScanDataLabel() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_ScanDataLabel(put(value))); - return value; -} - -template Windows::Devices::PointOfService::BarcodeScannerReport impl_IBarcodeScannerErrorOccurredEventArgs::PartialInputData() const -{ - Windows::Devices::PointOfService::BarcodeScannerReport value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PartialInputData(put(value))); - return value; -} - -template bool impl_IBarcodeScannerErrorOccurredEventArgs::IsRetriable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRetriable(&value)); - return value; -} - -template Windows::Devices::PointOfService::UnifiedPosErrorData impl_IBarcodeScannerErrorOccurredEventArgs::ErrorData() const -{ - Windows::Devices::PointOfService::UnifiedPosErrorData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ErrorData(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamWithContentType impl_IBarcodeScannerImagePreviewReceivedEventArgs::Preview() const -{ - Windows::Storage::Streams::IRandomAccessStreamWithContentType preview; - check_hresult(static_cast(static_cast(*this))->get_Preview(put(preview))); - return preview; -} - -template Windows::Devices::PointOfService::UnifiedPosPowerReportingType impl_IBarcodeScannerCapabilities::PowerReportingType() const -{ - Windows::Devices::PointOfService::UnifiedPosPowerReportingType value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerReportingType(&value)); - return value; -} - -template bool impl_IBarcodeScannerCapabilities::IsStatisticsReportingSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStatisticsReportingSupported(&value)); - return value; -} - -template bool impl_IBarcodeScannerCapabilities::IsStatisticsUpdatingSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStatisticsUpdatingSupported(&value)); - return value; -} - -template bool impl_IBarcodeScannerCapabilities::IsImagePreviewSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsImagePreviewSupported(&value)); - return value; -} - -template bool impl_IBarcodeScannerCapabilities1::IsSoftwareTriggerSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSoftwareTriggerSupported(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBarcodeScannerStatics::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IBarcodeScannerStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(result))); - return result; -} - -template hstring impl_IBarcodeScannerStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template hstring impl_IBarcodeScanner::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::PointOfService::BarcodeScannerCapabilities impl_IBarcodeScanner::Capabilities() const -{ - Windows::Devices::PointOfService::BarcodeScannerCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Capabilities(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBarcodeScanner::ClaimScannerAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ClaimScannerAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBarcodeScanner::CheckHealthAsync(Windows::Devices::PointOfService::UnifiedPosHealthCheckLevel level) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CheckHealthAsync(level, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IBarcodeScanner::GetSupportedSymbologiesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetSupportedSymbologiesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBarcodeScanner::IsSymbologySupportedAsync(uint32_t barcodeSymbology) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_IsSymbologySupportedAsync(barcodeSymbology, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBarcodeScanner::RetrieveStatisticsAsync(const Windows::Foundation::Collections::IIterable & statisticsCategories) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RetrieveStatisticsAsync(get(statisticsCategories), put(operation))); - return operation; -} - -template Windows::Foundation::Collections::IVectorView impl_IBarcodeScanner::GetSupportedProfiles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetSupportedProfiles(put(value))); - return value; -} - -template bool impl_IBarcodeScanner::IsProfileSupported(hstring_ref profile) const -{ - bool isSupported {}; - check_hresult(static_cast(static_cast(*this))->abi_IsProfileSupported(get(profile), &isSupported)); - return isSupported; -} - -template event_token impl_IBarcodeScanner::StatusUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StatusUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_IBarcodeScanner::StatusUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IBarcodeScanner::remove_StatusUpdated, StatusUpdated(handler)); -} - -template void impl_IBarcodeScanner::StatusUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StatusUpdated(token)); -} - -template hstring impl_IBarcodeScanner2::VideoDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VideoDeviceId(put(value))); - return value; -} - -template uint32_t impl_IMagneticStripeReaderEncryptionAlgorithmsStatics::None() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_None(&value)); - return value; -} - -template uint32_t impl_IMagneticStripeReaderEncryptionAlgorithmsStatics::TripleDesDukpt() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TripleDesDukpt(&value)); - return value; -} - -template uint32_t impl_IMagneticStripeReaderEncryptionAlgorithmsStatics::ExtendedBase() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedBase(&value)); - return value; -} - -template uint32_t impl_IMagneticStripeReaderCardTypesStatics::Unknown() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Unknown(&value)); - return value; -} - -template uint32_t impl_IMagneticStripeReaderCardTypesStatics::Bank() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Bank(&value)); - return value; -} - -template uint32_t impl_IMagneticStripeReaderCardTypesStatics::Aamva() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Aamva(&value)); - return value; -} - -template uint32_t impl_IMagneticStripeReaderCardTypesStatics::ExtendedBase() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedBase(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IMagneticStripeReaderTrackData::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IMagneticStripeReaderTrackData::DiscretionaryData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_DiscretionaryData(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IMagneticStripeReaderTrackData::EncryptedData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_EncryptedData(put(value))); - return value; -} - -template uint32_t impl_IMagneticStripeReaderReport::CardType() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CardType(&value)); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderTrackData impl_IMagneticStripeReaderReport::Track1() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderTrackData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Track1(put(value))); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderTrackData impl_IMagneticStripeReaderReport::Track2() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderTrackData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Track2(put(value))); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderTrackData impl_IMagneticStripeReaderReport::Track3() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderTrackData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Track3(put(value))); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderTrackData impl_IMagneticStripeReaderReport::Track4() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderTrackData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Track4(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IMagneticStripeReaderReport::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IMagneticStripeReaderReport::CardAuthenticationData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_CardAuthenticationData(put(value))); - return value; -} - -template uint32_t impl_IMagneticStripeReaderReport::CardAuthenticationDataLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CardAuthenticationDataLength(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IMagneticStripeReaderReport::AdditionalSecurityInformation() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_AdditionalSecurityInformation(put(value))); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderReport impl_IMagneticStripeReaderBankCardDataReceivedEventArgs::Report() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderReport value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Report(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderBankCardDataReceivedEventArgs::AccountNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AccountNumber(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderBankCardDataReceivedEventArgs::ExpirationDate() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExpirationDate(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderBankCardDataReceivedEventArgs::ServiceCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceCode(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderBankCardDataReceivedEventArgs::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderBankCardDataReceivedEventArgs::FirstName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FirstName(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderBankCardDataReceivedEventArgs::MiddleInitial() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MiddleInitial(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderBankCardDataReceivedEventArgs::Surname() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Surname(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderBankCardDataReceivedEventArgs::Suffix() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Suffix(put(value))); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderReport impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::Report() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderReport value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Report(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::LicenseNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LicenseNumber(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::ExpirationDate() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExpirationDate(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::Restrictions() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Restrictions(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::Class() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Class(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::Endorsements() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Endorsements(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::BirthDate() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BirthDate(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::FirstName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FirstName(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::Surname() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Surname(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::Suffix() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Suffix(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::Gender() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Gender(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::HairColor() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HairColor(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::EyeColor() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EyeColor(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::Height() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Height(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::Weight() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Weight(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::Address() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Address(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::City() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_City(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::State() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_State(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReaderAamvaCardDataReceivedEventArgs::PostalCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PostalCode(put(value))); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderReport impl_IMagneticStripeReaderVendorSpecificCardDataReceivedEventArgs::Report() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderReport value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Report(put(value))); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType impl_IMagneticStripeReaderErrorOccurredEventArgs::Track1Status() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType value {}; - check_hresult(static_cast(static_cast(*this))->get_Track1Status(&value)); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType impl_IMagneticStripeReaderErrorOccurredEventArgs::Track2Status() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType value {}; - check_hresult(static_cast(static_cast(*this))->get_Track2Status(&value)); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType impl_IMagneticStripeReaderErrorOccurredEventArgs::Track3Status() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType value {}; - check_hresult(static_cast(static_cast(*this))->get_Track3Status(&value)); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType impl_IMagneticStripeReaderErrorOccurredEventArgs::Track4Status() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderTrackErrorType value {}; - check_hresult(static_cast(static_cast(*this))->get_Track4Status(&value)); - return value; -} - -template Windows::Devices::PointOfService::UnifiedPosErrorData impl_IMagneticStripeReaderErrorOccurredEventArgs::ErrorData() const -{ - Windows::Devices::PointOfService::UnifiedPosErrorData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ErrorData(put(value))); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderReport impl_IMagneticStripeReaderErrorOccurredEventArgs::PartialInputData() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderReport value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PartialInputData(put(value))); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderStatus impl_IMagneticStripeReaderStatusUpdatedEventArgs::Status() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template uint32_t impl_IMagneticStripeReaderStatusUpdatedEventArgs::ExtendedStatus() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedStatus(&value)); - return value; -} - -template hstring impl_IMagneticStripeReaderCapabilities::CardAuthentication() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CardAuthentication(put(value))); - return value; -} - -template uint32_t impl_IMagneticStripeReaderCapabilities::SupportedEncryptionAlgorithms() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportedEncryptionAlgorithms(&value)); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderAuthenticationLevel impl_IMagneticStripeReaderCapabilities::AuthenticationLevel() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderAuthenticationLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationLevel(&value)); - return value; -} - -template bool impl_IMagneticStripeReaderCapabilities::IsIsoSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsIsoSupported(&value)); - return value; -} - -template bool impl_IMagneticStripeReaderCapabilities::IsJisOneSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsJisOneSupported(&value)); - return value; -} - -template bool impl_IMagneticStripeReaderCapabilities::IsJisTwoSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsJisTwoSupported(&value)); - return value; -} - -template Windows::Devices::PointOfService::UnifiedPosPowerReportingType impl_IMagneticStripeReaderCapabilities::PowerReportingType() const -{ - Windows::Devices::PointOfService::UnifiedPosPowerReportingType value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerReportingType(&value)); - return value; -} - -template bool impl_IMagneticStripeReaderCapabilities::IsStatisticsReportingSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStatisticsReportingSupported(&value)); - return value; -} - -template bool impl_IMagneticStripeReaderCapabilities::IsStatisticsUpdatingSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStatisticsUpdatingSupported(&value)); - return value; -} - -template bool impl_IMagneticStripeReaderCapabilities::IsTrackDataMaskingSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTrackDataMaskingSupported(&value)); - return value; -} - -template bool impl_IMagneticStripeReaderCapabilities::IsTransmitSentinelsSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTransmitSentinelsSupported(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMagneticStripeReaderStatics::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMagneticStripeReaderStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(result))); - return result; -} - -template hstring impl_IMagneticStripeReaderStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template hstring impl_IMagneticStripeReader::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderCapabilities impl_IMagneticStripeReader::Capabilities() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Capabilities(put(value))); - return value; -} - -template com_array impl_IMagneticStripeReader::SupportedCardTypes() const -{ - com_array value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportedCardTypes(put_size(value), put(value))); - return value; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderAuthenticationProtocol impl_IMagneticStripeReader::DeviceAuthenticationProtocol() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderAuthenticationProtocol value {}; - check_hresult(static_cast(static_cast(*this))->get_DeviceAuthenticationProtocol(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMagneticStripeReader::CheckHealthAsync(Windows::Devices::PointOfService::UnifiedPosHealthCheckLevel level) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CheckHealthAsync(level, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMagneticStripeReader::ClaimReaderAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ClaimReaderAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMagneticStripeReader::RetrieveStatisticsAsync(const Windows::Foundation::Collections::IIterable & statisticsCategories) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RetrieveStatisticsAsync(get(statisticsCategories), put(operation))); - return operation; -} - -template Windows::Devices::PointOfService::MagneticStripeReaderErrorReportingType impl_IMagneticStripeReader::GetErrorReportingType() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderErrorReportingType value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetErrorReportingType(&value)); - return value; -} - -template event_token impl_IMagneticStripeReader::StatusUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StatusUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_IMagneticStripeReader::StatusUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IMagneticStripeReader::remove_StatusUpdated, StatusUpdated(handler)); -} - -template void impl_IMagneticStripeReader::StatusUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StatusUpdated(token)); -} - -template uint32_t impl_IPosPrinterCharacterSetIdsStatics::Utf16LE() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Utf16LE(&value)); - return value; -} - -template uint32_t impl_IPosPrinterCharacterSetIdsStatics::Ascii() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ascii(&value)); - return value; -} - -template uint32_t impl_IPosPrinterCharacterSetIdsStatics::Ansi() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Ansi(&value)); - return value; -} - -template bool impl_ICommonPosPrintStationCapabilities::IsPrinterPresent() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPrinterPresent(&value)); - return value; -} - -template bool impl_ICommonPosPrintStationCapabilities::IsDualColorSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDualColorSupported(&value)); - return value; -} - -template Windows::Devices::PointOfService::PosPrinterColorCapabilities impl_ICommonPosPrintStationCapabilities::ColorCartridgeCapabilities() const -{ - Windows::Devices::PointOfService::PosPrinterColorCapabilities value {}; - check_hresult(static_cast(static_cast(*this))->get_ColorCartridgeCapabilities(&value)); - return value; -} - -template Windows::Devices::PointOfService::PosPrinterCartridgeSensors impl_ICommonPosPrintStationCapabilities::CartridgeSensors() const -{ - Windows::Devices::PointOfService::PosPrinterCartridgeSensors value {}; - check_hresult(static_cast(static_cast(*this))->get_CartridgeSensors(&value)); - return value; -} - -template bool impl_ICommonPosPrintStationCapabilities::IsBoldSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsBoldSupported(&value)); - return value; -} - -template bool impl_ICommonPosPrintStationCapabilities::IsItalicSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsItalicSupported(&value)); - return value; -} - -template bool impl_ICommonPosPrintStationCapabilities::IsUnderlineSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsUnderlineSupported(&value)); - return value; -} - -template bool impl_ICommonPosPrintStationCapabilities::IsDoubleHighPrintSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDoubleHighPrintSupported(&value)); - return value; -} - -template bool impl_ICommonPosPrintStationCapabilities::IsDoubleWidePrintSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDoubleWidePrintSupported(&value)); - return value; -} - -template bool impl_ICommonPosPrintStationCapabilities::IsDoubleHighDoubleWidePrintSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDoubleHighDoubleWidePrintSupported(&value)); - return value; -} - -template bool impl_ICommonPosPrintStationCapabilities::IsPaperEmptySensorSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPaperEmptySensorSupported(&value)); - return value; -} - -template bool impl_ICommonPosPrintStationCapabilities::IsPaperNearEndSensorSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPaperNearEndSensorSupported(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ICommonPosPrintStationCapabilities::SupportedCharactersPerLine() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedCharactersPerLine(put(value))); - return value; -} - -template bool impl_ICommonReceiptSlipCapabilities::IsBarcodeSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsBarcodeSupported(&value)); - return value; -} - -template bool impl_ICommonReceiptSlipCapabilities::IsBitmapSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsBitmapSupported(&value)); - return value; -} - -template bool impl_ICommonReceiptSlipCapabilities::IsLeft90RotationSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsLeft90RotationSupported(&value)); - return value; -} - -template bool impl_ICommonReceiptSlipCapabilities::IsRight90RotationSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRight90RotationSupported(&value)); - return value; -} - -template bool impl_ICommonReceiptSlipCapabilities::Is180RotationSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Is180RotationSupported(&value)); - return value; -} - -template bool impl_ICommonReceiptSlipCapabilities::IsPrintAreaSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPrintAreaSupported(&value)); - return value; -} - -template Windows::Devices::PointOfService::PosPrinterRuledLineCapabilities impl_ICommonReceiptSlipCapabilities::RuledLineCapabilities() const -{ - Windows::Devices::PointOfService::PosPrinterRuledLineCapabilities value {}; - check_hresult(static_cast(static_cast(*this))->get_RuledLineCapabilities(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ICommonReceiptSlipCapabilities::SupportedBarcodeRotations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedBarcodeRotations(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ICommonReceiptSlipCapabilities::SupportedBitmapRotations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedBitmapRotations(put(value))); - return value; -} - -template bool impl_IReceiptPrinterCapabilities::CanCutPaper() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanCutPaper(&value)); - return value; -} - -template bool impl_IReceiptPrinterCapabilities::IsStampSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStampSupported(&value)); - return value; -} - -template Windows::Devices::PointOfService::PosPrinterMarkFeedCapabilities impl_IReceiptPrinterCapabilities::MarkFeedCapabilities() const -{ - Windows::Devices::PointOfService::PosPrinterMarkFeedCapabilities value {}; - check_hresult(static_cast(static_cast(*this))->get_MarkFeedCapabilities(&value)); - return value; -} - -template bool impl_ISlipPrinterCapabilities::IsFullLengthSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFullLengthSupported(&value)); - return value; -} - -template bool impl_ISlipPrinterCapabilities::IsBothSidesPrintingSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsBothSidesPrintingSupported(&value)); - return value; -} - -template Windows::Devices::PointOfService::UnifiedPosPowerReportingType impl_IPosPrinterCapabilities::PowerReportingType() const -{ - Windows::Devices::PointOfService::UnifiedPosPowerReportingType value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerReportingType(&value)); - return value; -} - -template bool impl_IPosPrinterCapabilities::IsStatisticsReportingSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStatisticsReportingSupported(&value)); - return value; -} - -template bool impl_IPosPrinterCapabilities::IsStatisticsUpdatingSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStatisticsUpdatingSupported(&value)); - return value; -} - -template uint32_t impl_IPosPrinterCapabilities::DefaultCharacterSet() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultCharacterSet(&value)); - return value; -} - -template bool impl_IPosPrinterCapabilities::HasCoverSensor() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasCoverSensor(&value)); - return value; -} - -template bool impl_IPosPrinterCapabilities::CanMapCharacterSet() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanMapCharacterSet(&value)); - return value; -} - -template bool impl_IPosPrinterCapabilities::IsTransactionSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTransactionSupported(&value)); - return value; -} - -template Windows::Devices::PointOfService::ReceiptPrinterCapabilities impl_IPosPrinterCapabilities::Receipt() const -{ - Windows::Devices::PointOfService::ReceiptPrinterCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Receipt(put(value))); - return value; -} - -template Windows::Devices::PointOfService::SlipPrinterCapabilities impl_IPosPrinterCapabilities::Slip() const -{ - Windows::Devices::PointOfService::SlipPrinterCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Slip(put(value))); - return value; -} - -template Windows::Devices::PointOfService::JournalPrinterCapabilities impl_IPosPrinterCapabilities::Journal() const -{ - Windows::Devices::PointOfService::JournalPrinterCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Journal(put(value))); - return value; -} - -template Windows::Devices::PointOfService::PosPrinterStatusKind impl_IPosPrinterStatus::StatusKind() const -{ - Windows::Devices::PointOfService::PosPrinterStatusKind value {}; - check_hresult(static_cast(static_cast(*this))->get_StatusKind(&value)); - return value; -} - -template uint32_t impl_IPosPrinterStatus::ExtendedStatus() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedStatus(&value)); - return value; -} - -template Windows::Devices::PointOfService::PosPrinterStatus impl_IPosPrinterStatusUpdatedEventArgs::Status() const -{ - Windows::Devices::PointOfService::PosPrinterStatus value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Status(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPosPrinterStatics::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPosPrinterStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(result))); - return result; -} - -template hstring impl_IPosPrinterStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template hstring impl_IPosPrinter::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::PointOfService::PosPrinterCapabilities impl_IPosPrinter::Capabilities() const -{ - Windows::Devices::PointOfService::PosPrinterCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Capabilities(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPosPrinter::SupportedCharacterSets() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedCharacterSets(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPosPrinter::SupportedTypeFaces() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedTypeFaces(put(value))); - return value; -} - -template Windows::Devices::PointOfService::PosPrinterStatus impl_IPosPrinter::Status() const -{ - Windows::Devices::PointOfService::PosPrinterStatus value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Status(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPosPrinter::ClaimPrinterAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ClaimPrinterAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPosPrinter::CheckHealthAsync(Windows::Devices::PointOfService::UnifiedPosHealthCheckLevel level) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CheckHealthAsync(level, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPosPrinter::GetStatisticsAsync(const Windows::Foundation::Collections::IIterable & statisticsCategories) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetStatisticsAsync(get(statisticsCategories), put(operation))); - return operation; -} - -template event_token impl_IPosPrinter::StatusUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StatusUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_IPosPrinter::StatusUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IPosPrinter::remove_StatusUpdated, StatusUpdated(handler)); -} - -template void impl_IPosPrinter::StatusUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StatusUpdated(token)); -} - -template void impl_IPosPrinterJob::Print(hstring_ref data) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Print(get(data))); -} - -template void impl_IPosPrinterJob::PrintLine(hstring_ref data) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PrintLine(get(data))); -} - -template void impl_IPosPrinterJob::PrintLine() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PrintNewline()); -} - -template Windows::Foundation::IAsyncOperation impl_IPosPrinterJob::ExecuteAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ExecuteAsync(put(operation))); - return operation; -} - -template void impl_IReceiptOrSlipJob::SetBarcodeRotation(Windows::Devices::PointOfService::PosPrinterRotation value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBarcodeRotation(value)); -} - -template void impl_IReceiptOrSlipJob::SetPrintRotation(Windows::Devices::PointOfService::PosPrinterRotation value, bool includeBitmaps) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPrintRotation(value, includeBitmaps)); -} - -template void impl_IReceiptOrSlipJob::SetPrintArea(const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPrintArea(get(value))); -} - -template void impl_IReceiptOrSlipJob::SetBitmap(uint32_t bitmapNumber, const Windows::Graphics::Imaging::BitmapFrame & bitmap, Windows::Devices::PointOfService::PosPrinterAlignment alignment) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBitmap(bitmapNumber, get(bitmap), alignment)); -} - -template void impl_IReceiptOrSlipJob::SetBitmap(uint32_t bitmapNumber, const Windows::Graphics::Imaging::BitmapFrame & bitmap, Windows::Devices::PointOfService::PosPrinterAlignment alignment, uint32_t width) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBitmapCustomWidthStandardAlign(bitmapNumber, get(bitmap), alignment, width)); -} - -template void impl_IReceiptOrSlipJob::SetCustomAlignedBitmap(uint32_t bitmapNumber, const Windows::Graphics::Imaging::BitmapFrame & bitmap, uint32_t alignmentDistance) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetCustomAlignedBitmap(bitmapNumber, get(bitmap), alignmentDistance)); -} - -template void impl_IReceiptOrSlipJob::SetCustomAlignedBitmap(uint32_t bitmapNumber, const Windows::Graphics::Imaging::BitmapFrame & bitmap, uint32_t alignmentDistance, uint32_t width) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBitmapCustomWidthCustomAlign(bitmapNumber, get(bitmap), alignmentDistance, width)); -} - -template void impl_IReceiptOrSlipJob::PrintSavedBitmap(uint32_t bitmapNumber) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PrintSavedBitmap(bitmapNumber)); -} - -template void impl_IReceiptOrSlipJob::DrawRuledLine(hstring_ref positionList, Windows::Devices::PointOfService::PosPrinterLineDirection lineDirection, uint32_t lineWidth, Windows::Devices::PointOfService::PosPrinterLineStyle lineStyle, uint32_t lineColor) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DrawRuledLine(get(positionList), lineDirection, lineWidth, lineStyle, lineColor)); -} - -template void impl_IReceiptOrSlipJob::PrintBarcode(hstring_ref data, uint32_t symbology, uint32_t height, uint32_t width, Windows::Devices::PointOfService::PosPrinterBarcodeTextPosition textPosition, Windows::Devices::PointOfService::PosPrinterAlignment alignment) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PrintBarcode(get(data), symbology, height, width, textPosition, alignment)); -} - -template void impl_IReceiptOrSlipJob::PrintBarcodeCustomAlign(hstring_ref data, uint32_t symbology, uint32_t height, uint32_t width, Windows::Devices::PointOfService::PosPrinterBarcodeTextPosition textPosition, uint32_t alignmentDistance) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PrintBarcodeCustomAlign(get(data), symbology, height, width, textPosition, alignmentDistance)); -} - -template void impl_IReceiptOrSlipJob::PrintBitmap(const Windows::Graphics::Imaging::BitmapFrame & bitmap, Windows::Devices::PointOfService::PosPrinterAlignment alignment) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PrintBitmap(get(bitmap), alignment)); -} - -template void impl_IReceiptOrSlipJob::PrintBitmap(const Windows::Graphics::Imaging::BitmapFrame & bitmap, Windows::Devices::PointOfService::PosPrinterAlignment alignment, uint32_t width) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PrintBitmapCustomWidthStandardAlign(get(bitmap), alignment, width)); -} - -template void impl_IReceiptOrSlipJob::PrintCustomAlignedBitmap(const Windows::Graphics::Imaging::BitmapFrame & bitmap, uint32_t alignmentDistance) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PrintCustomAlignedBitmap(get(bitmap), alignmentDistance)); -} - -template void impl_IReceiptOrSlipJob::PrintCustomAlignedBitmap(const Windows::Graphics::Imaging::BitmapFrame & bitmap, uint32_t alignmentDistance, uint32_t width) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PrintBitmapCustomWidthCustomAlign(get(bitmap), alignmentDistance, width)); -} - -template void impl_IReceiptPrintJob::MarkFeed(Windows::Devices::PointOfService::PosPrinterMarkFeedKind kind) const -{ - check_hresult(static_cast(static_cast(*this))->abi_MarkFeed(kind)); -} - -template void impl_IReceiptPrintJob::CutPaper(double percentage) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CutPaper(percentage)); -} - -template void impl_IReceiptPrintJob::CutPaper() const -{ - check_hresult(static_cast(static_cast(*this))->abi_CutPaperDefault()); -} - -template void impl_ICommonClaimedPosPrinterStation::CharactersPerLine(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CharactersPerLine(value)); -} - -template uint32_t impl_ICommonClaimedPosPrinterStation::CharactersPerLine() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CharactersPerLine(&value)); - return value; -} - -template void impl_ICommonClaimedPosPrinterStation::LineHeight(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LineHeight(value)); -} - -template uint32_t impl_ICommonClaimedPosPrinterStation::LineHeight() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LineHeight(&value)); - return value; -} - -template void impl_ICommonClaimedPosPrinterStation::LineSpacing(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LineSpacing(value)); -} - -template uint32_t impl_ICommonClaimedPosPrinterStation::LineSpacing() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LineSpacing(&value)); - return value; -} - -template uint32_t impl_ICommonClaimedPosPrinterStation::LineWidth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LineWidth(&value)); - return value; -} - -template void impl_ICommonClaimedPosPrinterStation::IsLetterQuality(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsLetterQuality(value)); -} - -template bool impl_ICommonClaimedPosPrinterStation::IsLetterQuality() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsLetterQuality(&value)); - return value; -} - -template bool impl_ICommonClaimedPosPrinterStation::IsPaperNearEnd() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPaperNearEnd(&value)); - return value; -} - -template void impl_ICommonClaimedPosPrinterStation::ColorCartridge(Windows::Devices::PointOfService::PosPrinterColorCartridge value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ColorCartridge(value)); -} - -template Windows::Devices::PointOfService::PosPrinterColorCartridge impl_ICommonClaimedPosPrinterStation::ColorCartridge() const -{ - Windows::Devices::PointOfService::PosPrinterColorCartridge value {}; - check_hresult(static_cast(static_cast(*this))->get_ColorCartridge(&value)); - return value; -} - -template bool impl_ICommonClaimedPosPrinterStation::IsCoverOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCoverOpen(&value)); - return value; -} - -template bool impl_ICommonClaimedPosPrinterStation::IsCartridgeRemoved() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCartridgeRemoved(&value)); - return value; -} - -template bool impl_ICommonClaimedPosPrinterStation::IsCartridgeEmpty() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCartridgeEmpty(&value)); - return value; -} - -template bool impl_ICommonClaimedPosPrinterStation::IsHeadCleaning() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsHeadCleaning(&value)); - return value; -} - -template bool impl_ICommonClaimedPosPrinterStation::IsPaperEmpty() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPaperEmpty(&value)); - return value; -} - -template bool impl_ICommonClaimedPosPrinterStation::IsReadyToPrint() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsReadyToPrint(&value)); - return value; -} - -template bool impl_ICommonClaimedPosPrinterStation::ValidateData(hstring_ref data) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_ValidateData(get(data), &result)); - return result; -} - -template uint32_t impl_IClaimedReceiptPrinter::SidewaysMaxLines() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SidewaysMaxLines(&value)); - return value; -} - -template uint32_t impl_IClaimedReceiptPrinter::SidewaysMaxChars() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SidewaysMaxChars(&value)); - return value; -} - -template uint32_t impl_IClaimedReceiptPrinter::LinesToPaperCut() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LinesToPaperCut(&value)); - return value; -} - -template Windows::Foundation::Size impl_IClaimedReceiptPrinter::PageSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_PageSize(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IClaimedReceiptPrinter::PrintArea() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_PrintArea(put(value))); - return value; -} - -template Windows::Devices::PointOfService::ReceiptPrintJob impl_IClaimedReceiptPrinter::CreateJob() const -{ - Windows::Devices::PointOfService::ReceiptPrintJob value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateJob(put(value))); - return value; -} - -template uint32_t impl_IClaimedSlipPrinter::SidewaysMaxLines() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SidewaysMaxLines(&value)); - return value; -} - -template uint32_t impl_IClaimedSlipPrinter::SidewaysMaxChars() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SidewaysMaxChars(&value)); - return value; -} - -template uint32_t impl_IClaimedSlipPrinter::MaxLines() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxLines(&value)); - return value; -} - -template uint32_t impl_IClaimedSlipPrinter::LinesNearEndToEnd() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LinesNearEndToEnd(&value)); - return value; -} - -template Windows::Devices::PointOfService::PosPrinterPrintSide impl_IClaimedSlipPrinter::PrintSide() const -{ - Windows::Devices::PointOfService::PosPrinterPrintSide value {}; - check_hresult(static_cast(static_cast(*this))->get_PrintSide(&value)); - return value; -} - -template Windows::Foundation::Size impl_IClaimedSlipPrinter::PageSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_PageSize(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IClaimedSlipPrinter::PrintArea() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_PrintArea(put(value))); - return value; -} - -template void impl_IClaimedSlipPrinter::OpenJaws() const -{ - check_hresult(static_cast(static_cast(*this))->abi_OpenJaws()); -} - -template void impl_IClaimedSlipPrinter::CloseJaws() const -{ - check_hresult(static_cast(static_cast(*this))->abi_CloseJaws()); -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedSlipPrinter::InsertSlipAsync(const Windows::Foundation::TimeSpan & timeout) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_InsertSlipAsync(get(timeout), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedSlipPrinter::RemoveSlipAsync(const Windows::Foundation::TimeSpan & timeout) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RemoveSlipAsync(get(timeout), put(result))); - return result; -} - -template void impl_IClaimedSlipPrinter::ChangePrintSide(Windows::Devices::PointOfService::PosPrinterPrintSide printSide) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ChangePrintSide(printSide)); -} - -template Windows::Devices::PointOfService::SlipPrintJob impl_IClaimedSlipPrinter::CreateJob() const -{ - Windows::Devices::PointOfService::SlipPrintJob value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateJob(put(value))); - return value; -} - -template Windows::Devices::PointOfService::JournalPrintJob impl_IClaimedJournalPrinter::CreateJob() const -{ - Windows::Devices::PointOfService::JournalPrintJob value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateJob(put(value))); - return value; -} - -template Windows::Devices::PointOfService::CashDrawerStatus impl_ICashDrawerStatusUpdatedEventArgs::Status() const -{ - Windows::Devices::PointOfService::CashDrawerStatus value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Status(put(value))); - return value; -} - -template Windows::Devices::PointOfService::CashDrawerStatusKind impl_ICashDrawerStatus::StatusKind() const -{ - Windows::Devices::PointOfService::CashDrawerStatusKind value {}; - check_hresult(static_cast(static_cast(*this))->get_StatusKind(&value)); - return value; -} - -template uint32_t impl_ICashDrawerStatus::ExtendedStatus() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedStatus(&value)); - return value; -} - -template Windows::Devices::PointOfService::UnifiedPosPowerReportingType impl_ICashDrawerCapabilities::PowerReportingType() const -{ - Windows::Devices::PointOfService::UnifiedPosPowerReportingType value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerReportingType(&value)); - return value; -} - -template bool impl_ICashDrawerCapabilities::IsStatisticsReportingSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStatisticsReportingSupported(&value)); - return value; -} - -template bool impl_ICashDrawerCapabilities::IsStatisticsUpdatingSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStatisticsUpdatingSupported(&value)); - return value; -} - -template bool impl_ICashDrawerCapabilities::IsStatusReportingSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStatusReportingSupported(&value)); - return value; -} - -template bool impl_ICashDrawerCapabilities::IsStatusMultiDrawerDetectSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStatusMultiDrawerDetectSupported(&value)); - return value; -} - -template bool impl_ICashDrawerCapabilities::IsDrawerOpenSensorAvailable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDrawerOpenSensorAvailable(&value)); - return value; -} - -template Windows::Devices::PointOfService::CashDrawer impl_ICashDrawerEventSourceEventArgs::CashDrawer() const -{ - Windows::Devices::PointOfService::CashDrawer drawer { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CashDrawer(put(drawer))); - return drawer; -} - -template event_token impl_ICashDrawerEventSource::DrawerClosed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DrawerClosed(get(handler), &token)); - return token; -} - -template event_revoker impl_ICashDrawerEventSource::DrawerClosed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::ICashDrawerEventSource::remove_DrawerClosed, DrawerClosed(handler)); -} - -template void impl_ICashDrawerEventSource::DrawerClosed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DrawerClosed(token)); -} - -template event_token impl_ICashDrawerEventSource::DrawerOpened(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DrawerOpened(get(handler), &token)); - return token; -} - -template event_revoker impl_ICashDrawerEventSource::DrawerOpened(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::ICashDrawerEventSource::remove_DrawerOpened, DrawerOpened(handler)); -} - -template void impl_ICashDrawerEventSource::DrawerOpened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DrawerOpened(token)); -} - -template Windows::Foundation::IAsyncOperation impl_ICashDrawerStatics::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ICashDrawerStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(result))); - return result; -} - -template hstring impl_ICashDrawerStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template hstring impl_ICashDrawer::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::PointOfService::CashDrawerCapabilities impl_ICashDrawer::Capabilities() const -{ - Windows::Devices::PointOfService::CashDrawerCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Capabilities(put(value))); - return value; -} - -template Windows::Devices::PointOfService::CashDrawerStatus impl_ICashDrawer::Status() const -{ - Windows::Devices::PointOfService::CashDrawerStatus value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Status(put(value))); - return value; -} - -template bool impl_ICashDrawer::IsDrawerOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDrawerOpen(&value)); - return value; -} - -template Windows::Devices::PointOfService::CashDrawerEventSource impl_ICashDrawer::DrawerEventSource() const -{ - Windows::Devices::PointOfService::CashDrawerEventSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DrawerEventSource(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICashDrawer::ClaimDrawerAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ClaimDrawerAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ICashDrawer::CheckHealthAsync(Windows::Devices::PointOfService::UnifiedPosHealthCheckLevel level) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CheckHealthAsync(level, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ICashDrawer::GetStatisticsAsync(const Windows::Foundation::Collections::IIterable & statisticsCategories) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetStatisticsAsync(get(statisticsCategories), put(operation))); - return operation; -} - -template event_token impl_ICashDrawer::StatusUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StatusUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_ICashDrawer::StatusUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::ICashDrawer::remove_StatusUpdated, StatusUpdated(handler)); -} - -template void impl_ICashDrawer::StatusUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StatusUpdated(token)); -} - -template void impl_ICashDrawerCloseAlarm::AlarmTimeout(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AlarmTimeout(get(value))); -} - -template Windows::Foundation::TimeSpan impl_ICashDrawerCloseAlarm::AlarmTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_AlarmTimeout(put(value))); - return value; -} - -template void impl_ICashDrawerCloseAlarm::BeepFrequency(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BeepFrequency(value)); -} - -template uint32_t impl_ICashDrawerCloseAlarm::BeepFrequency() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BeepFrequency(&value)); - return value; -} - -template void impl_ICashDrawerCloseAlarm::BeepDuration(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BeepDuration(get(value))); -} - -template Windows::Foundation::TimeSpan impl_ICashDrawerCloseAlarm::BeepDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_BeepDuration(put(value))); - return value; -} - -template void impl_ICashDrawerCloseAlarm::BeepDelay(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BeepDelay(get(value))); -} - -template Windows::Foundation::TimeSpan impl_ICashDrawerCloseAlarm::BeepDelay() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_BeepDelay(put(value))); - return value; -} - -template event_token impl_ICashDrawerCloseAlarm::AlarmTimeoutExpired(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AlarmTimeoutExpired(get(handler), &token)); - return token; -} - -template event_revoker impl_ICashDrawerCloseAlarm::AlarmTimeoutExpired(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::ICashDrawerCloseAlarm::remove_AlarmTimeoutExpired, AlarmTimeoutExpired(handler)); -} - -template void impl_ICashDrawerCloseAlarm::AlarmTimeoutExpired(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AlarmTimeoutExpired(token)); -} - -template Windows::Foundation::IAsyncOperation impl_ICashDrawerCloseAlarm::StartAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_StartAsync(put(result))); - return result; -} - -template hstring impl_IClaimedBarcodeScanner::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template bool impl_IClaimedBarcodeScanner::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_IClaimedBarcodeScanner::IsDisabledOnDataReceived(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDisabledOnDataReceived(value)); -} - -template bool impl_IClaimedBarcodeScanner::IsDisabledOnDataReceived() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDisabledOnDataReceived(&value)); - return value; -} - -template void impl_IClaimedBarcodeScanner::IsDecodeDataEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDecodeDataEnabled(value)); -} - -template bool impl_IClaimedBarcodeScanner::IsDecodeDataEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDecodeDataEnabled(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedBarcodeScanner::EnableAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_EnableAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedBarcodeScanner::DisableAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DisableAsync(put(result))); - return result; -} - -template void impl_IClaimedBarcodeScanner::RetainDevice() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RetainDevice()); -} - -template Windows::Foundation::IAsyncAction impl_IClaimedBarcodeScanner::SetActiveSymbologiesAsync(const Windows::Foundation::Collections::IIterable & symbologies) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SetActiveSymbologiesAsync(get(symbologies), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedBarcodeScanner::ResetStatisticsAsync(const Windows::Foundation::Collections::IIterable & statisticsCategories) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ResetStatisticsAsync(get(statisticsCategories), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedBarcodeScanner::UpdateStatisticsAsync(const Windows::Foundation::Collections::IIterable> & statistics) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_UpdateStatisticsAsync(get(statistics), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedBarcodeScanner::SetActiveProfileAsync(hstring_ref profile) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SetActiveProfileAsync(get(profile), put(result))); - return result; -} - -template event_token impl_IClaimedBarcodeScanner::DataReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DataReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedBarcodeScanner::DataReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedBarcodeScanner::remove_DataReceived, DataReceived(handler)); -} - -template void impl_IClaimedBarcodeScanner::DataReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DataReceived(token)); -} - -template event_token impl_IClaimedBarcodeScanner::TriggerPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TriggerPressed(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedBarcodeScanner::TriggerPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedBarcodeScanner::remove_TriggerPressed, TriggerPressed(handler)); -} - -template void impl_IClaimedBarcodeScanner::TriggerPressed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TriggerPressed(token)); -} - -template event_token impl_IClaimedBarcodeScanner::TriggerReleased(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TriggerReleased(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedBarcodeScanner::TriggerReleased(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedBarcodeScanner::remove_TriggerReleased, TriggerReleased(handler)); -} - -template void impl_IClaimedBarcodeScanner::TriggerReleased(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TriggerReleased(token)); -} - -template event_token impl_IClaimedBarcodeScanner::ReleaseDeviceRequested(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReleaseDeviceRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedBarcodeScanner::ReleaseDeviceRequested(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedBarcodeScanner::remove_ReleaseDeviceRequested, ReleaseDeviceRequested(handler)); -} - -template void impl_IClaimedBarcodeScanner::ReleaseDeviceRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReleaseDeviceRequested(token)); -} - -template event_token impl_IClaimedBarcodeScanner::ImagePreviewReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ImagePreviewReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedBarcodeScanner::ImagePreviewReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedBarcodeScanner::remove_ImagePreviewReceived, ImagePreviewReceived(handler)); -} - -template void impl_IClaimedBarcodeScanner::ImagePreviewReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ImagePreviewReceived(token)); -} - -template event_token impl_IClaimedBarcodeScanner::ErrorOccurred(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ErrorOccurred(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedBarcodeScanner::ErrorOccurred(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedBarcodeScanner::remove_ErrorOccurred, ErrorOccurred(handler)); -} - -template void impl_IClaimedBarcodeScanner::ErrorOccurred(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ErrorOccurred(token)); -} - -template Windows::Foundation::IAsyncAction impl_IClaimedBarcodeScanner1::StartSoftwareTriggerAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_StartSoftwareTriggerAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedBarcodeScanner1::StopSoftwareTriggerAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_StopSoftwareTriggerAsync(put(result))); - return result; -} - -template hstring impl_IClaimedMagneticStripeReader::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template bool impl_IClaimedMagneticStripeReader::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_IClaimedMagneticStripeReader::IsDisabledOnDataReceived(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDisabledOnDataReceived(value)); -} - -template bool impl_IClaimedMagneticStripeReader::IsDisabledOnDataReceived() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDisabledOnDataReceived(&value)); - return value; -} - -template void impl_IClaimedMagneticStripeReader::IsDecodeDataEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDecodeDataEnabled(value)); -} - -template bool impl_IClaimedMagneticStripeReader::IsDecodeDataEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDecodeDataEnabled(&value)); - return value; -} - -template bool impl_IClaimedMagneticStripeReader::IsDeviceAuthenticated() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDeviceAuthenticated(&value)); - return value; -} - -template void impl_IClaimedMagneticStripeReader::DataEncryptionAlgorithm(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataEncryptionAlgorithm(value)); -} - -template uint32_t impl_IClaimedMagneticStripeReader::DataEncryptionAlgorithm() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DataEncryptionAlgorithm(&value)); - return value; -} - -template void impl_IClaimedMagneticStripeReader::TracksToRead(Windows::Devices::PointOfService::MagneticStripeReaderTrackIds value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TracksToRead(value)); -} - -template Windows::Devices::PointOfService::MagneticStripeReaderTrackIds impl_IClaimedMagneticStripeReader::TracksToRead() const -{ - Windows::Devices::PointOfService::MagneticStripeReaderTrackIds value {}; - check_hresult(static_cast(static_cast(*this))->get_TracksToRead(&value)); - return value; -} - -template void impl_IClaimedMagneticStripeReader::IsTransmitSentinelsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTransmitSentinelsEnabled(value)); -} - -template bool impl_IClaimedMagneticStripeReader::IsTransmitSentinelsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTransmitSentinelsEnabled(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedMagneticStripeReader::EnableAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_EnableAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedMagneticStripeReader::DisableAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DisableAsync(put(result))); - return result; -} - -template void impl_IClaimedMagneticStripeReader::RetainDevice() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RetainDevice()); -} - -template void impl_IClaimedMagneticStripeReader::SetErrorReportingType(Windows::Devices::PointOfService::MagneticStripeReaderErrorReportingType value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetErrorReportingType(value)); -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedMagneticStripeReader::RetrieveDeviceAuthenticationDataAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RetrieveDeviceAuthenticationDataAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedMagneticStripeReader::AuthenticateDeviceAsync(array_ref responseToken) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_AuthenticateDeviceAsync(responseToken.size(), get(responseToken), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedMagneticStripeReader::DeAuthenticateDeviceAsync(array_ref responseToken) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DeAuthenticateDeviceAsync(responseToken.size(), get(responseToken), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedMagneticStripeReader::UpdateKeyAsync(hstring_ref key, hstring_ref keyName) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_UpdateKeyAsync(get(key), get(keyName), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedMagneticStripeReader::ResetStatisticsAsync(const Windows::Foundation::Collections::IIterable & statisticsCategories) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ResetStatisticsAsync(get(statisticsCategories), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IClaimedMagneticStripeReader::UpdateStatisticsAsync(const Windows::Foundation::Collections::IIterable> & statistics) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_UpdateStatisticsAsync(get(statistics), put(result))); - return result; -} - -template event_token impl_IClaimedMagneticStripeReader::BankCardDataReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BankCardDataReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedMagneticStripeReader::BankCardDataReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedMagneticStripeReader::remove_BankCardDataReceived, BankCardDataReceived(handler)); -} - -template void impl_IClaimedMagneticStripeReader::BankCardDataReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BankCardDataReceived(token)); -} - -template event_token impl_IClaimedMagneticStripeReader::AamvaCardDataReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AamvaCardDataReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedMagneticStripeReader::AamvaCardDataReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedMagneticStripeReader::remove_AamvaCardDataReceived, AamvaCardDataReceived(handler)); -} - -template void impl_IClaimedMagneticStripeReader::AamvaCardDataReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AamvaCardDataReceived(token)); -} - -template event_token impl_IClaimedMagneticStripeReader::VendorSpecificDataReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VendorSpecificDataReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedMagneticStripeReader::VendorSpecificDataReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedMagneticStripeReader::remove_VendorSpecificDataReceived, VendorSpecificDataReceived(handler)); -} - -template void impl_IClaimedMagneticStripeReader::VendorSpecificDataReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VendorSpecificDataReceived(token)); -} - -template event_token impl_IClaimedMagneticStripeReader::ReleaseDeviceRequested(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReleaseDeviceRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedMagneticStripeReader::ReleaseDeviceRequested(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedMagneticStripeReader::remove_ReleaseDeviceRequested, ReleaseDeviceRequested(handler)); -} - -template void impl_IClaimedMagneticStripeReader::ReleaseDeviceRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReleaseDeviceRequested(token)); -} - -template event_token impl_IClaimedMagneticStripeReader::ErrorOccurred(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ErrorOccurred(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedMagneticStripeReader::ErrorOccurred(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedMagneticStripeReader::remove_ErrorOccurred, ErrorOccurred(handler)); -} - -template void impl_IClaimedMagneticStripeReader::ErrorOccurred(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ErrorOccurred(token)); -} - -template hstring impl_IClaimedPosPrinter::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template bool impl_IClaimedPosPrinter::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_IClaimedPosPrinter::CharacterSet(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CharacterSet(value)); -} - -template uint32_t impl_IClaimedPosPrinter::CharacterSet() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CharacterSet(&value)); - return value; -} - -template bool impl_IClaimedPosPrinter::IsCoverOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCoverOpen(&value)); - return value; -} - -template void impl_IClaimedPosPrinter::IsCharacterSetMappingEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsCharacterSetMappingEnabled(value)); -} - -template bool impl_IClaimedPosPrinter::IsCharacterSetMappingEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCharacterSetMappingEnabled(&value)); - return value; -} - -template void impl_IClaimedPosPrinter::MapMode(Windows::Devices::PointOfService::PosPrinterMapMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MapMode(value)); -} - -template Windows::Devices::PointOfService::PosPrinterMapMode impl_IClaimedPosPrinter::MapMode() const -{ - Windows::Devices::PointOfService::PosPrinterMapMode value {}; - check_hresult(static_cast(static_cast(*this))->get_MapMode(&value)); - return value; -} - -template Windows::Devices::PointOfService::ClaimedReceiptPrinter impl_IClaimedPosPrinter::Receipt() const -{ - Windows::Devices::PointOfService::ClaimedReceiptPrinter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Receipt(put(value))); - return value; -} - -template Windows::Devices::PointOfService::ClaimedSlipPrinter impl_IClaimedPosPrinter::Slip() const -{ - Windows::Devices::PointOfService::ClaimedSlipPrinter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Slip(put(value))); - return value; -} - -template Windows::Devices::PointOfService::ClaimedJournalPrinter impl_IClaimedPosPrinter::Journal() const -{ - Windows::Devices::PointOfService::ClaimedJournalPrinter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Journal(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedPosPrinter::EnableAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_EnableAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedPosPrinter::DisableAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_DisableAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedPosPrinter::RetainDeviceAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RetainDeviceAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedPosPrinter::ResetStatisticsAsync(const Windows::Foundation::Collections::IIterable & statisticsCategories) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ResetStatisticsAsync(get(statisticsCategories), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedPosPrinter::UpdateStatisticsAsync(const Windows::Foundation::Collections::IIterable> & statistics) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_UpdateStatisticsAsync(get(statistics), put(result))); - return result; -} - -template event_token impl_IClaimedPosPrinter::ReleaseDeviceRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReleaseDeviceRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedPosPrinter::ReleaseDeviceRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedPosPrinter::remove_ReleaseDeviceRequested, ReleaseDeviceRequested(handler)); -} - -template void impl_IClaimedPosPrinter::ReleaseDeviceRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReleaseDeviceRequested(token)); -} - -template hstring impl_IClaimedCashDrawer::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template bool impl_IClaimedCashDrawer::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template bool impl_IClaimedCashDrawer::IsDrawerOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDrawerOpen(&value)); - return value; -} - -template Windows::Devices::PointOfService::CashDrawerCloseAlarm impl_IClaimedCashDrawer::CloseAlarm() const -{ - Windows::Devices::PointOfService::CashDrawerCloseAlarm value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CloseAlarm(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedCashDrawer::OpenDrawerAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_OpenDrawerAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedCashDrawer::EnableAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_EnableAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedCashDrawer::DisableAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_DisableAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedCashDrawer::RetainDeviceAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RetainDeviceAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedCashDrawer::ResetStatisticsAsync(const Windows::Foundation::Collections::IIterable & statisticsCategories) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ResetStatisticsAsync(get(statisticsCategories), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IClaimedCashDrawer::UpdateStatisticsAsync(const Windows::Foundation::Collections::IIterable> & statistics) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_UpdateStatisticsAsync(get(statistics), put(result))); - return result; -} - -template event_token impl_IClaimedCashDrawer::ReleaseDeviceRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReleaseDeviceRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IClaimedCashDrawer::ReleaseDeviceRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::PointOfService::IClaimedCashDrawer::remove_ReleaseDeviceRequested, ReleaseDeviceRequested(handler)); -} - -template void impl_IClaimedCashDrawer::ReleaseDeviceRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReleaseDeviceRequested(token)); -} - -inline Windows::Foundation::IAsyncOperation BarcodeScanner::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -inline Windows::Foundation::IAsyncOperation BarcodeScanner::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring BarcodeScanner::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline uint32_t BarcodeSymbologies::Unknown() -{ - return get_activation_factory().Unknown(); -} - -inline uint32_t BarcodeSymbologies::Ean8() -{ - return get_activation_factory().Ean8(); -} - -inline uint32_t BarcodeSymbologies::Ean8Add2() -{ - return get_activation_factory().Ean8Add2(); -} - -inline uint32_t BarcodeSymbologies::Ean8Add5() -{ - return get_activation_factory().Ean8Add5(); -} - -inline uint32_t BarcodeSymbologies::Eanv() -{ - return get_activation_factory().Eanv(); -} - -inline uint32_t BarcodeSymbologies::EanvAdd2() -{ - return get_activation_factory().EanvAdd2(); -} - -inline uint32_t BarcodeSymbologies::EanvAdd5() -{ - return get_activation_factory().EanvAdd5(); -} - -inline uint32_t BarcodeSymbologies::Ean13() -{ - return get_activation_factory().Ean13(); -} - -inline uint32_t BarcodeSymbologies::Ean13Add2() -{ - return get_activation_factory().Ean13Add2(); -} - -inline uint32_t BarcodeSymbologies::Ean13Add5() -{ - return get_activation_factory().Ean13Add5(); -} - -inline uint32_t BarcodeSymbologies::Isbn() -{ - return get_activation_factory().Isbn(); -} - -inline uint32_t BarcodeSymbologies::IsbnAdd5() -{ - return get_activation_factory().IsbnAdd5(); -} - -inline uint32_t BarcodeSymbologies::Ismn() -{ - return get_activation_factory().Ismn(); -} - -inline uint32_t BarcodeSymbologies::IsmnAdd2() -{ - return get_activation_factory().IsmnAdd2(); -} - -inline uint32_t BarcodeSymbologies::IsmnAdd5() -{ - return get_activation_factory().IsmnAdd5(); -} - -inline uint32_t BarcodeSymbologies::Issn() -{ - return get_activation_factory().Issn(); -} - -inline uint32_t BarcodeSymbologies::IssnAdd2() -{ - return get_activation_factory().IssnAdd2(); -} - -inline uint32_t BarcodeSymbologies::IssnAdd5() -{ - return get_activation_factory().IssnAdd5(); -} - -inline uint32_t BarcodeSymbologies::Ean99() -{ - return get_activation_factory().Ean99(); -} - -inline uint32_t BarcodeSymbologies::Ean99Add2() -{ - return get_activation_factory().Ean99Add2(); -} - -inline uint32_t BarcodeSymbologies::Ean99Add5() -{ - return get_activation_factory().Ean99Add5(); -} - -inline uint32_t BarcodeSymbologies::Upca() -{ - return get_activation_factory().Upca(); -} - -inline uint32_t BarcodeSymbologies::UpcaAdd2() -{ - return get_activation_factory().UpcaAdd2(); -} - -inline uint32_t BarcodeSymbologies::UpcaAdd5() -{ - return get_activation_factory().UpcaAdd5(); -} - -inline uint32_t BarcodeSymbologies::Upce() -{ - return get_activation_factory().Upce(); -} - -inline uint32_t BarcodeSymbologies::UpceAdd2() -{ - return get_activation_factory().UpceAdd2(); -} - -inline uint32_t BarcodeSymbologies::UpceAdd5() -{ - return get_activation_factory().UpceAdd5(); -} - -inline uint32_t BarcodeSymbologies::UpcCoupon() -{ - return get_activation_factory().UpcCoupon(); -} - -inline uint32_t BarcodeSymbologies::TfStd() -{ - return get_activation_factory().TfStd(); -} - -inline uint32_t BarcodeSymbologies::TfDis() -{ - return get_activation_factory().TfDis(); -} - -inline uint32_t BarcodeSymbologies::TfInt() -{ - return get_activation_factory().TfInt(); -} - -inline uint32_t BarcodeSymbologies::TfInd() -{ - return get_activation_factory().TfInd(); -} - -inline uint32_t BarcodeSymbologies::TfMat() -{ - return get_activation_factory().TfMat(); -} - -inline uint32_t BarcodeSymbologies::TfIata() -{ - return get_activation_factory().TfIata(); -} - -inline uint32_t BarcodeSymbologies::Gs1DatabarType1() -{ - return get_activation_factory().Gs1DatabarType1(); -} - -inline uint32_t BarcodeSymbologies::Gs1DatabarType2() -{ - return get_activation_factory().Gs1DatabarType2(); -} - -inline uint32_t BarcodeSymbologies::Gs1DatabarType3() -{ - return get_activation_factory().Gs1DatabarType3(); -} - -inline uint32_t BarcodeSymbologies::Code39() -{ - return get_activation_factory().Code39(); -} - -inline uint32_t BarcodeSymbologies::Code39Ex() -{ - return get_activation_factory().Code39Ex(); -} - -inline uint32_t BarcodeSymbologies::Trioptic39() -{ - return get_activation_factory().Trioptic39(); -} - -inline uint32_t BarcodeSymbologies::Code32() -{ - return get_activation_factory().Code32(); -} - -inline uint32_t BarcodeSymbologies::Pzn() -{ - return get_activation_factory().Pzn(); -} - -inline uint32_t BarcodeSymbologies::Code93() -{ - return get_activation_factory().Code93(); -} - -inline uint32_t BarcodeSymbologies::Code93Ex() -{ - return get_activation_factory().Code93Ex(); -} - -inline uint32_t BarcodeSymbologies::Code128() -{ - return get_activation_factory().Code128(); -} - -inline uint32_t BarcodeSymbologies::Gs1128() -{ - return get_activation_factory().Gs1128(); -} - -inline uint32_t BarcodeSymbologies::Gs1128Coupon() -{ - return get_activation_factory().Gs1128Coupon(); -} - -inline uint32_t BarcodeSymbologies::UccEan128() -{ - return get_activation_factory().UccEan128(); -} - -inline uint32_t BarcodeSymbologies::Sisac() -{ - return get_activation_factory().Sisac(); -} - -inline uint32_t BarcodeSymbologies::Isbt() -{ - return get_activation_factory().Isbt(); -} - -inline uint32_t BarcodeSymbologies::Codabar() -{ - return get_activation_factory().Codabar(); -} - -inline uint32_t BarcodeSymbologies::Code11() -{ - return get_activation_factory().Code11(); -} - -inline uint32_t BarcodeSymbologies::Msi() -{ - return get_activation_factory().Msi(); -} - -inline uint32_t BarcodeSymbologies::Plessey() -{ - return get_activation_factory().Plessey(); -} - -inline uint32_t BarcodeSymbologies::Telepen() -{ - return get_activation_factory().Telepen(); -} - -inline uint32_t BarcodeSymbologies::Code16k() -{ - return get_activation_factory().Code16k(); -} - -inline uint32_t BarcodeSymbologies::CodablockA() -{ - return get_activation_factory().CodablockA(); -} - -inline uint32_t BarcodeSymbologies::CodablockF() -{ - return get_activation_factory().CodablockF(); -} - -inline uint32_t BarcodeSymbologies::Codablock128() -{ - return get_activation_factory().Codablock128(); -} - -inline uint32_t BarcodeSymbologies::Code49() -{ - return get_activation_factory().Code49(); -} - -inline uint32_t BarcodeSymbologies::Aztec() -{ - return get_activation_factory().Aztec(); -} - -inline uint32_t BarcodeSymbologies::DataCode() -{ - return get_activation_factory().DataCode(); -} - -inline uint32_t BarcodeSymbologies::DataMatrix() -{ - return get_activation_factory().DataMatrix(); -} - -inline uint32_t BarcodeSymbologies::HanXin() -{ - return get_activation_factory().HanXin(); -} - -inline uint32_t BarcodeSymbologies::Maxicode() -{ - return get_activation_factory().Maxicode(); -} - -inline uint32_t BarcodeSymbologies::MicroPdf417() -{ - return get_activation_factory().MicroPdf417(); -} - -inline uint32_t BarcodeSymbologies::MicroQr() -{ - return get_activation_factory().MicroQr(); -} - -inline uint32_t BarcodeSymbologies::Pdf417() -{ - return get_activation_factory().Pdf417(); -} - -inline uint32_t BarcodeSymbologies::Qr() -{ - return get_activation_factory().Qr(); -} - -inline uint32_t BarcodeSymbologies::MsTag() -{ - return get_activation_factory().MsTag(); -} - -inline uint32_t BarcodeSymbologies::Ccab() -{ - return get_activation_factory().Ccab(); -} - -inline uint32_t BarcodeSymbologies::Ccc() -{ - return get_activation_factory().Ccc(); -} - -inline uint32_t BarcodeSymbologies::Tlc39() -{ - return get_activation_factory().Tlc39(); -} - -inline uint32_t BarcodeSymbologies::AusPost() -{ - return get_activation_factory().AusPost(); -} - -inline uint32_t BarcodeSymbologies::CanPost() -{ - return get_activation_factory().CanPost(); -} - -inline uint32_t BarcodeSymbologies::ChinaPost() -{ - return get_activation_factory().ChinaPost(); -} - -inline uint32_t BarcodeSymbologies::DutchKix() -{ - return get_activation_factory().DutchKix(); -} - -inline uint32_t BarcodeSymbologies::InfoMail() -{ - return get_activation_factory().InfoMail(); -} - -inline uint32_t BarcodeSymbologies::ItalianPost25() -{ - return get_activation_factory().ItalianPost25(); -} - -inline uint32_t BarcodeSymbologies::ItalianPost39() -{ - return get_activation_factory().ItalianPost39(); -} - -inline uint32_t BarcodeSymbologies::JapanPost() -{ - return get_activation_factory().JapanPost(); -} - -inline uint32_t BarcodeSymbologies::KoreanPost() -{ - return get_activation_factory().KoreanPost(); -} - -inline uint32_t BarcodeSymbologies::SwedenPost() -{ - return get_activation_factory().SwedenPost(); -} - -inline uint32_t BarcodeSymbologies::UkPost() -{ - return get_activation_factory().UkPost(); -} - -inline uint32_t BarcodeSymbologies::UsIntelligent() -{ - return get_activation_factory().UsIntelligent(); -} - -inline uint32_t BarcodeSymbologies::UsIntelligentPkg() -{ - return get_activation_factory().UsIntelligentPkg(); -} - -inline uint32_t BarcodeSymbologies::UsPlanet() -{ - return get_activation_factory().UsPlanet(); -} - -inline uint32_t BarcodeSymbologies::UsPostNet() -{ - return get_activation_factory().UsPostNet(); -} - -inline uint32_t BarcodeSymbologies::Us4StateFics() -{ - return get_activation_factory().Us4StateFics(); -} - -inline uint32_t BarcodeSymbologies::OcrA() -{ - return get_activation_factory().OcrA(); -} - -inline uint32_t BarcodeSymbologies::OcrB() -{ - return get_activation_factory().OcrB(); -} - -inline uint32_t BarcodeSymbologies::Micr() -{ - return get_activation_factory().Micr(); -} - -inline uint32_t BarcodeSymbologies::ExtendedBase() -{ - return get_activation_factory().ExtendedBase(); -} - -inline hstring BarcodeSymbologies::GetName(uint32_t scanDataType) -{ - return get_activation_factory().GetName(scanDataType); -} - -inline Windows::Foundation::IAsyncOperation CashDrawer::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -inline Windows::Foundation::IAsyncOperation CashDrawer::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring CashDrawer::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Foundation::IAsyncOperation MagneticStripeReader::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -inline Windows::Foundation::IAsyncOperation MagneticStripeReader::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring MagneticStripeReader::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline uint32_t MagneticStripeReaderCardTypes::Unknown() -{ - return get_activation_factory().Unknown(); -} - -inline uint32_t MagneticStripeReaderCardTypes::Bank() -{ - return get_activation_factory().Bank(); -} - -inline uint32_t MagneticStripeReaderCardTypes::Aamva() -{ - return get_activation_factory().Aamva(); -} - -inline uint32_t MagneticStripeReaderCardTypes::ExtendedBase() -{ - return get_activation_factory().ExtendedBase(); -} - -inline uint32_t MagneticStripeReaderEncryptionAlgorithms::None() -{ - return get_activation_factory().None(); -} - -inline uint32_t MagneticStripeReaderEncryptionAlgorithms::TripleDesDukpt() -{ - return get_activation_factory().TripleDesDukpt(); -} - -inline uint32_t MagneticStripeReaderEncryptionAlgorithms::ExtendedBase() -{ - return get_activation_factory().ExtendedBase(); -} - -inline Windows::Foundation::IAsyncOperation PosPrinter::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -inline Windows::Foundation::IAsyncOperation PosPrinter::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring PosPrinter::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline uint32_t PosPrinterCharacterSetIds::Utf16LE() -{ - return get_activation_factory().Utf16LE(); -} - -inline uint32_t PosPrinterCharacterSetIds::Ascii() -{ - return get_activation_factory().Ascii(); -} - -inline uint32_t PosPrinterCharacterSetIds::Ansi() -{ - return get_activation_factory().Ansi(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Portable.h b/10.0.14393.0/winrt/Windows.Devices.Portable.h deleted file mode 100644 index 9276e7b91..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Portable.h +++ /dev/null @@ -1,132 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Devices.Portable.3.h" -#include "Windows.Devices.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(Windows::Devices::Portable::ServiceDeviceType serviceType, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelector(serviceType)); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromServiceId(GUID serviceId, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelectorFromServiceId(serviceId)); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromId(abi_arg_in deviceId, abi_arg_out deviceRoot) noexcept override - { - try - { - *deviceRoot = detach(this->shim().FromId(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *deviceRoot = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Portable { - -template Windows::Storage::StorageFolder impl_IStorageDeviceStatics::FromId(hstring_ref deviceId) const -{ - Windows::Storage::StorageFolder deviceRoot { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromId(get(deviceId), put(deviceRoot))); - return deviceRoot; -} - -template hstring impl_IStorageDeviceStatics::GetDeviceSelector() const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(selector))); - return selector; -} - -template hstring impl_IServiceDeviceStatics::GetDeviceSelector(Windows::Devices::Portable::ServiceDeviceType serviceType) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(serviceType, put(selector))); - return selector; -} - -template hstring impl_IServiceDeviceStatics::GetDeviceSelectorFromServiceId(GUID serviceId) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromServiceId(serviceId, put(selector))); - return selector; -} - -inline hstring ServiceDevice::GetDeviceSelector(Windows::Devices::Portable::ServiceDeviceType serviceType) -{ - return get_activation_factory().GetDeviceSelector(serviceType); -} - -inline hstring ServiceDevice::GetDeviceSelectorFromServiceId(GUID serviceId) -{ - return get_activation_factory().GetDeviceSelectorFromServiceId(serviceId); -} - -inline Windows::Storage::StorageFolder StorageDevice::FromId(hstring_ref deviceId) -{ - return get_activation_factory().FromId(deviceId); -} - -inline hstring StorageDevice::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Power.h b/10.0.14393.0/winrt/Windows.Devices.Power.h deleted file mode 100644 index 55bc51f6b..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Power.h +++ /dev/null @@ -1,300 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.Power.3.h" -#include "internal/Windows.Devices.Power.3.h" -#include "Windows.Devices.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetReport(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetReport()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReportUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReportUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReportUpdated(event_token token) noexcept override - { - try - { - this->shim().ReportUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChargeRateInMilliwatts(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ChargeRateInMilliwatts()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesignCapacityInMilliwattHours(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DesignCapacityInMilliwattHours()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FullChargeCapacityInMilliwattHours(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FullChargeCapacityInMilliwattHours()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemainingCapacityInMilliwattHours(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RemainingCapacityInMilliwattHours()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::System::Power::BatteryStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AggregateBattery(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().AggregateBattery()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Power { - -template hstring impl_IBattery::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Power::BatteryReport impl_IBattery::GetReport() const -{ - Windows::Devices::Power::BatteryReport result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetReport(put(result))); - return result; -} - -template event_token impl_IBattery::ReportUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReportUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_IBattery::ReportUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Power::IBattery::remove_ReportUpdated, ReportUpdated(handler)); -} - -template void impl_IBattery::ReportUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReportUpdated(token)); -} - -template Windows::Foundation::IReference impl_IBatteryReport::ChargeRateInMilliwatts() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ChargeRateInMilliwatts(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IBatteryReport::DesignCapacityInMilliwattHours() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DesignCapacityInMilliwattHours(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IBatteryReport::FullChargeCapacityInMilliwattHours() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_FullChargeCapacityInMilliwattHours(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IBatteryReport::RemainingCapacityInMilliwattHours() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_RemainingCapacityInMilliwattHours(put(value))); - return value; -} - -template Windows::System::Power::BatteryStatus impl_IBatteryReport::Status() const -{ - Windows::System::Power::BatteryStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::Power::Battery impl_IBatteryStatics::AggregateBattery() const -{ - Windows::Devices::Power::Battery result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AggregateBattery(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IBatteryStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(result))); - return result; -} - -template hstring impl_IBatteryStatics::GetDeviceSelector() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(result))); - return result; -} - -inline Windows::Devices::Power::Battery Battery::AggregateBattery() -{ - return get_activation_factory().AggregateBattery(); -} - -inline Windows::Foundation::IAsyncOperation Battery::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring Battery::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Printers.Extensions.h b/10.0.14393.0/winrt/Windows.Devices.Printers.Extensions.h deleted file mode 100644 index 70317a98a..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Printers.Extensions.h +++ /dev/null @@ -1,587 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Printers.Extensions.3.h" -#include "Windows.Devices.Printers.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceID(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceID()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPrintModelPackage(abi_arg_out printModelPackage) noexcept override - { - try - { - *printModelPackage = detach(this->shim().GetPrintModelPackage()); - return S_OK; - } - catch (...) - { - *printModelPackage = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPrintReady(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPrintReady()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPrintReady(bool value) noexcept override - { - try - { - this->shim().IsPrintReady(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PrintRequested(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().PrintRequested(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PrintRequested(event_token eventCookie) noexcept override - { - try - { - this->shim().PrintRequested(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_PrinterChanged(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().PrinterChanged(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PrinterChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().PrinterChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::Printers::Extensions::Print3DWorkflowStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetExtendedStatus(Windows::Devices::Printers::Extensions::Print3DWorkflowDetail value) noexcept override - { - try - { - this->shim().SetExtendedStatus(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetSource(abi_arg_in source) noexcept override - { - try - { - this->shim().SetSource(*reinterpret_cast(&source)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetSourceChanged(bool value) noexcept override - { - try - { - this->shim().SetSourceChanged(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NewDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromDeviceId(abi_arg_in deviceId, abi_arg_out context) noexcept override - { - try - { - *context = detach(this->shim().FromDeviceId(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *context = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrinterName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrinterName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EventData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EventData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EventData(abi_arg_in value) noexcept override - { - try - { - this->shim().EventData(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrinterExtensionContext(abi_arg_out context) noexcept override - { - try - { - *context = detach(this->shim().PrinterExtensionContext()); - return S_OK; - } - catch (...) - { - *context = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SaveRequested(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().SaveRequested(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SaveRequested(event_token eventCookie) noexcept override - { - try - { - this->shim().SaveRequested(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Cancel() noexcept override - { - try - { - this->shim().Cancel(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Save(abi_arg_in printerExtensionContext) noexcept override - { - try - { - this->shim().Save(*reinterpret_cast(&printerExtensionContext)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out context) noexcept override - { - try - { - *context = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *context = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Printers::Extensions { - -template Windows::Devices::Printers::Extensions::Print3DWorkflowStatus impl_IPrint3DWorkflowPrintRequestedEventArgs::Status() const -{ - Windows::Devices::Printers::Extensions::Print3DWorkflowStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template void impl_IPrint3DWorkflowPrintRequestedEventArgs::SetExtendedStatus(Windows::Devices::Printers::Extensions::Print3DWorkflowDetail value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetExtendedStatus(value)); -} - -template void impl_IPrint3DWorkflowPrintRequestedEventArgs::SetSource(const Windows::IInspectable & source) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSource(get(source))); -} - -template void impl_IPrint3DWorkflowPrintRequestedEventArgs::SetSourceChanged(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSourceChanged(value)); -} - -template hstring impl_IPrint3DWorkflowPrinterChangedEventArgs::NewDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NewDeviceId(put(value))); - return value; -} - -template hstring impl_IPrint3DWorkflow::DeviceID() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceID(put(value))); - return value; -} - -template Windows::IInspectable impl_IPrint3DWorkflow::GetPrintModelPackage() const -{ - Windows::IInspectable printModelPackage; - check_hresult(static_cast(static_cast(*this))->abi_GetPrintModelPackage(put(printModelPackage))); - return printModelPackage; -} - -template bool impl_IPrint3DWorkflow::IsPrintReady() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPrintReady(&value)); - return value; -} - -template void impl_IPrint3DWorkflow::IsPrintReady(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPrintReady(value)); -} - -template event_token impl_IPrint3DWorkflow::PrintRequested(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_PrintRequested(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrint3DWorkflow::PrintRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Printers::Extensions::IPrint3DWorkflow::remove_PrintRequested, PrintRequested(eventHandler)); -} - -template void impl_IPrint3DWorkflow::PrintRequested(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PrintRequested(eventCookie)); -} - -template event_token impl_IPrint3DWorkflow2::PrinterChanged(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_PrinterChanged(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrint3DWorkflow2::PrinterChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Printers::Extensions::IPrint3DWorkflow2::remove_PrinterChanged, PrinterChanged(eventHandler)); -} - -template void impl_IPrint3DWorkflow2::PrinterChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PrinterChanged(eventCookie)); -} - -template void impl_IPrintTaskConfigurationSaveRequestedDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template void impl_IPrintTaskConfigurationSaveRequest::Cancel() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Cancel()); -} - -template void impl_IPrintTaskConfigurationSaveRequest::Save(const Windows::IInspectable & printerExtensionContext) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Save(get(printerExtensionContext))); -} - -template Windows::Devices::Printers::Extensions::PrintTaskConfigurationSaveRequestedDeferral impl_IPrintTaskConfigurationSaveRequest::GetDeferral() const -{ - Windows::Devices::Printers::Extensions::PrintTaskConfigurationSaveRequestedDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template Windows::Foundation::DateTime impl_IPrintTaskConfigurationSaveRequest::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template Windows::Devices::Printers::Extensions::PrintTaskConfigurationSaveRequest impl_IPrintTaskConfigurationSaveRequestedEventArgs::Request() const -{ - Windows::Devices::Printers::Extensions::PrintTaskConfigurationSaveRequest context { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(context))); - return context; -} - -template Windows::IInspectable impl_IPrintTaskConfiguration::PrinterExtensionContext() const -{ - Windows::IInspectable context; - check_hresult(static_cast(static_cast(*this))->get_PrinterExtensionContext(put(context))); - return context; -} - -template event_token impl_IPrintTaskConfiguration::SaveRequested(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_SaveRequested(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrintTaskConfiguration::SaveRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Printers::Extensions::IPrintTaskConfiguration::remove_SaveRequested, SaveRequested(eventHandler)); -} - -template void impl_IPrintTaskConfiguration::SaveRequested(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SaveRequested(eventCookie)); -} - -template hstring impl_IPrintNotificationEventDetails::PrinterName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PrinterName(put(value))); - return value; -} - -template hstring impl_IPrintNotificationEventDetails::EventData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EventData(put(value))); - return value; -} - -template void impl_IPrintNotificationEventDetails::EventData(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EventData(get(value))); -} - -template Windows::IInspectable impl_IPrintExtensionContextStatic::FromDeviceId(hstring_ref deviceId) const -{ - Windows::IInspectable context; - check_hresult(static_cast(static_cast(*this))->abi_FromDeviceId(get(deviceId), put(context))); - return context; -} - -inline Windows::IInspectable PrintExtensionContext::FromDeviceId(hstring_ref deviceId) -{ - return get_activation_factory().FromDeviceId(deviceId); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Printers.h b/10.0.14393.0/winrt/Windows.Devices.Printers.h deleted file mode 100644 index ca2baabe0..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Printers.h +++ /dev/null @@ -1,169 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Devices.Printers.3.h" -#include "Windows.Devices.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrintSchema(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrintSchema()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultPrintTicketAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDefaultPrintTicketAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCapabilitiesAsync(abi_arg_in constrainTicket, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCapabilitiesAsync(*reinterpret_cast(&constrainTicket))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MergeAndValidateWithDefaultPrintTicketAsync(abi_arg_in deltaTicket, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().MergeAndValidateWithDefaultPrintTicketAsync(*reinterpret_cast(&deltaTicket))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Printers { - -template Windows::Foundation::IAsyncOperation impl_IPrint3DDeviceStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(operation))); - return operation; -} - -template hstring impl_IPrint3DDeviceStatics::GetDeviceSelector() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(result))); - return result; -} - -template Windows::Devices::Printers::PrintSchema impl_IPrint3DDevice::PrintSchema() const -{ - Windows::Devices::Printers::PrintSchema value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PrintSchema(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPrintSchema::GetDefaultPrintTicketAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultPrintTicketAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPrintSchema::GetCapabilitiesAsync(const Windows::Storage::Streams::IRandomAccessStreamWithContentType & constrainTicket) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCapabilitiesAsync(get(constrainTicket), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPrintSchema::MergeAndValidateWithDefaultPrintTicketAsync(const Windows::Storage::Streams::IRandomAccessStreamWithContentType & deltaTicket) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_MergeAndValidateWithDefaultPrintTicketAsync(get(deltaTicket), put(operation))); - return operation; -} - -inline Windows::Foundation::IAsyncOperation Print3DDevice::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring Print3DDevice::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Pwm.Provider.h b/10.0.14393.0/winrt/Windows.Devices.Pwm.Provider.h deleted file mode 100644 index 9a2a929ed..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Pwm.Provider.h +++ /dev/null @@ -1,239 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Pwm.Provider.3.h" -#include "Windows.Devices.Pwm.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PinCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PinCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActualFrequency(double * value) noexcept override - { - try - { - *value = detach(this->shim().ActualFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDesiredFrequency(double frequency, double * value) noexcept override - { - try - { - *value = detach(this->shim().SetDesiredFrequency(frequency)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxFrequency(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinFrequency(double * value) noexcept override - { - try - { - *value = detach(this->shim().MinFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcquirePin(int32_t pin) noexcept override - { - try - { - this->shim().AcquirePin(pin); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReleasePin(int32_t pin) noexcept override - { - try - { - this->shim().ReleasePin(pin); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnablePin(int32_t pin) noexcept override - { - try - { - this->shim().EnablePin(pin); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisablePin(int32_t pin) noexcept override - { - try - { - this->shim().DisablePin(pin); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPulseParameters(int32_t pin, double dutyCycle, bool invertPolarity) noexcept override - { - try - { - this->shim().SetPulseParameters(pin, dutyCycle, invertPolarity); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetControllers(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetControllers()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Pwm::Provider { - -template int32_t impl_IPwmControllerProvider::PinCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PinCount(&value)); - return value; -} - -template double impl_IPwmControllerProvider::ActualFrequency() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ActualFrequency(&value)); - return value; -} - -template double impl_IPwmControllerProvider::SetDesiredFrequency(double frequency) const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->abi_SetDesiredFrequency(frequency, &value)); - return value; -} - -template double impl_IPwmControllerProvider::MaxFrequency() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxFrequency(&value)); - return value; -} - -template double impl_IPwmControllerProvider::MinFrequency() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MinFrequency(&value)); - return value; -} - -template void impl_IPwmControllerProvider::AcquirePin(int32_t pin) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcquirePin(pin)); -} - -template void impl_IPwmControllerProvider::ReleasePin(int32_t pin) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReleasePin(pin)); -} - -template void impl_IPwmControllerProvider::EnablePin(int32_t pin) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnablePin(pin)); -} - -template void impl_IPwmControllerProvider::DisablePin(int32_t pin) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DisablePin(pin)); -} - -template void impl_IPwmControllerProvider::SetPulseParameters(int32_t pin, double dutyCycle, bool invertPolarity) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPulseParameters(pin, dutyCycle, invertPolarity)); -} - -template Windows::Foundation::Collections::IVectorView impl_IPwmProvider::GetControllers() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetControllers(put(result))); - return result; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Pwm.h b/10.0.14393.0/winrt/Windows.Devices.Pwm.h deleted file mode 100644 index 8d5b04873..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Pwm.h +++ /dev/null @@ -1,364 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Devices.Pwm.Provider.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Pwm.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PinCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PinCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActualFrequency(double * value) noexcept override - { - try - { - *value = detach(this->shim().ActualFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDesiredFrequency(double desiredFrequency, double * value) noexcept override - { - try - { - *value = detach(this->shim().SetDesiredFrequency(desiredFrequency)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinFrequency(double * value) noexcept override - { - try - { - *value = detach(this->shim().MinFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxFrequency(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenPin(int32_t pinNumber, abi_arg_out pin) noexcept override - { - try - { - *pin = detach(this->shim().OpenPin(pinNumber)); - return S_OK; - } - catch (...) - { - *pin = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetControllersAsync(abi_arg_in provider, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetControllersAsync(*reinterpret_cast(&provider))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Controller(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Controller()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetActiveDutyCyclePercentage(double * result) noexcept override - { - try - { - *result = detach(this->shim().GetActiveDutyCyclePercentage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetActiveDutyCyclePercentage(double dutyCyclePercentage) noexcept override - { - try - { - this->shim().SetActiveDutyCyclePercentage(dutyCyclePercentage); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Polarity(Windows::Devices::Pwm::PwmPulsePolarity * value) noexcept override - { - try - { - *value = detach(this->shim().Polarity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Polarity(Windows::Devices::Pwm::PwmPulsePolarity value) noexcept override - { - try - { - this->shim().Polarity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStarted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStarted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Pwm { - -template int32_t impl_IPwmController::PinCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PinCount(&value)); - return value; -} - -template double impl_IPwmController::ActualFrequency() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ActualFrequency(&value)); - return value; -} - -template double impl_IPwmController::SetDesiredFrequency(double desiredFrequency) const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->abi_SetDesiredFrequency(desiredFrequency, &value)); - return value; -} - -template double impl_IPwmController::MinFrequency() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MinFrequency(&value)); - return value; -} - -template double impl_IPwmController::MaxFrequency() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxFrequency(&value)); - return value; -} - -template Windows::Devices::Pwm::PwmPin impl_IPwmController::OpenPin(int32_t pinNumber) const -{ - Windows::Devices::Pwm::PwmPin pin { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenPin(pinNumber, put(pin))); - return pin; -} - -template Windows::Foundation::IAsyncOperation> impl_IPwmControllerStatics::GetControllersAsync(const Windows::Devices::Pwm::Provider::IPwmProvider & provider) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetControllersAsync(get(provider), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPwmControllerStatics2::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(operation))); - return operation; -} - -template Windows::Devices::Pwm::PwmController impl_IPwmPin::Controller() const -{ - Windows::Devices::Pwm::PwmController value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Controller(put(value))); - return value; -} - -template double impl_IPwmPin::GetActiveDutyCyclePercentage() const -{ - double result {}; - check_hresult(static_cast(static_cast(*this))->abi_GetActiveDutyCyclePercentage(&result)); - return result; -} - -template void impl_IPwmPin::SetActiveDutyCyclePercentage(double dutyCyclePercentage) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetActiveDutyCyclePercentage(dutyCyclePercentage)); -} - -template Windows::Devices::Pwm::PwmPulsePolarity impl_IPwmPin::Polarity() const -{ - Windows::Devices::Pwm::PwmPulsePolarity value {}; - check_hresult(static_cast(static_cast(*this))->get_Polarity(&value)); - return value; -} - -template void impl_IPwmPin::Polarity(Windows::Devices::Pwm::PwmPulsePolarity value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Polarity(value)); -} - -template void impl_IPwmPin::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IPwmPin::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template bool impl_IPwmPin::IsStarted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStarted(&value)); - return value; -} - -inline Windows::Foundation::IAsyncOperation> PwmController::GetControllersAsync(const Windows::Devices::Pwm::Provider::IPwmProvider & provider) -{ - return get_activation_factory().GetControllersAsync(provider); -} - -inline Windows::Foundation::IAsyncOperation PwmController::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Radios.h b/10.0.14393.0/winrt/Windows.Devices.Radios.h deleted file mode 100644 index 446ae45f5..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Radios.h +++ /dev/null @@ -1,257 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Radios.3.h" -#include "Windows.Devices.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetStateAsync(Windows::Devices::Radios::RadioState value, abi_arg_out> retval) noexcept override - { - try - { - *retval = detach(this->shim().SetStateAsync(value)); - return S_OK; - } - catch (...) - { - *retval = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StateChanged(abi_arg_in> handler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().StateChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StateChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().StateChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(Windows::Devices::Radios::RadioState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::Devices::Radios::RadioKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetRadiosAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().GetRadiosAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Radios { - -template Windows::Foundation::IAsyncOperation> impl_IRadioStatics::GetRadiosAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_GetRadiosAsync(put(value))); - return value; -} - -template hstring impl_IRadioStatics::GetDeviceSelector() const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(deviceSelector))); - return deviceSelector; -} - -template Windows::Foundation::IAsyncOperation impl_IRadioStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IRadioStatics::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IRadio::SetStateAsync(Windows::Devices::Radios::RadioState value) const -{ - Windows::Foundation::IAsyncOperation retval; - check_hresult(static_cast(static_cast(*this))->abi_SetStateAsync(value, put(retval))); - return retval; -} - -template event_token impl_IRadio::StateChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_StateChanged(get(handler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IRadio::StateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Radios::IRadio::remove_StateChanged, StateChanged(handler)); -} - -template void impl_IRadio::StateChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StateChanged(eventCookie)); -} - -template Windows::Devices::Radios::RadioState impl_IRadio::State() const -{ - Windows::Devices::Radios::RadioState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template hstring impl_IRadio::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Devices::Radios::RadioKind impl_IRadio::Kind() const -{ - Windows::Devices::Radios::RadioKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -inline Windows::Foundation::IAsyncOperation> Radio::GetRadiosAsync() -{ - return get_activation_factory().GetRadiosAsync(); -} - -inline hstring Radio::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Foundation::IAsyncOperation Radio::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline Windows::Foundation::IAsyncOperation Radio::RequestAccessAsync() -{ - return get_activation_factory().RequestAccessAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Scanners.h b/10.0.14393.0/winrt/Windows.Devices.Scanners.h deleted file mode 100644 index d81621748..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Scanners.h +++ /dev/null @@ -1,1325 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Graphics.Printing.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Devices.Scanners.3.h" -#include "Windows.Devices.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultScanSource(Windows::Devices::Scanners::ImageScannerScanSource * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultScanSource()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsScanSourceSupported(Windows::Devices::Scanners::ImageScannerScanSource value, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsScanSourceSupported(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlatbedConfiguration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FlatbedConfiguration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FeederConfiguration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FeederConfiguration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoConfiguration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutoConfiguration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsPreviewSupported(Windows::Devices::Scanners::ImageScannerScanSource scanSource, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsPreviewSupported(scanSource)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ScanPreviewToStreamAsync(Windows::Devices::Scanners::ImageScannerScanSource scanSource, abi_arg_in targetStream, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ScanPreviewToStreamAsync(scanSource, *reinterpret_cast(&targetStream))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ScanFilesToFolderAsync(Windows::Devices::Scanners::ImageScannerScanSource scanSource, abi_arg_in storageFolder, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ScanFilesToFolderAsync(scanSource, *reinterpret_cast(&storageFolder))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanAutoDetectPageSize(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanAutoDetectPageSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoDetectPageSize(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoDetectPageSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoDetectPageSize(bool value) noexcept override - { - try - { - this->shim().AutoDetectPageSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageSize(Windows::Graphics::Printing::PrintMediaSize * value) noexcept override - { - try - { - *value = detach(this->shim().PageSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PageSize(Windows::Graphics::Printing::PrintMediaSize value) noexcept override - { - try - { - this->shim().PageSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageOrientation(Windows::Graphics::Printing::PrintOrientation * value) noexcept override - { - try - { - *value = detach(this->shim().PageOrientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PageOrientation(Windows::Graphics::Printing::PrintOrientation value) noexcept override - { - try - { - this->shim().PageOrientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageSizeDimensions(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PageSizeDimensions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsPageSizeSupported(Windows::Graphics::Printing::PrintMediaSize pageSize, Windows::Graphics::Printing::PrintOrientation pageOrientation, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsPageSizeSupported(pageSize, pageOrientation)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxNumberOfPages(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxNumberOfPages()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxNumberOfPages(uint32_t value) noexcept override - { - try - { - this->shim().MaxNumberOfPages(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanScanDuplex(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanScanDuplex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duplex(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Duplex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Duplex(bool value) noexcept override - { - try - { - this->shim().Duplex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanScanAhead(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanScanAhead()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScanAhead(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ScanAhead()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScanAhead(bool value) noexcept override - { - try - { - this->shim().ScanAhead(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DefaultFormat(Windows::Devices::Scanners::ImageScannerFormat * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Format(Windows::Devices::Scanners::ImageScannerFormat * value) noexcept override - { - try - { - *value = detach(this->shim().Format()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Format(Windows::Devices::Scanners::ImageScannerFormat value) noexcept override - { - try - { - this->shim().Format(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsFormatSupported(Windows::Devices::Scanners::ImageScannerFormat value, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsFormatSupported(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Succeeded(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Succeeded()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Format(Windows::Devices::Scanners::ImageScannerFormat * value) noexcept override - { - try - { - *value = detach(this->shim().Format()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ScannedFiles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ScannedFiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MinScanArea(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinScanArea()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxScanArea(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxScanArea()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedScanRegion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedScanRegion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedScanRegion(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedScanRegion(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoCroppingMode(Windows::Devices::Scanners::ImageScannerAutoCroppingMode * value) noexcept override - { - try - { - *value = detach(this->shim().AutoCroppingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoCroppingMode(Windows::Devices::Scanners::ImageScannerAutoCroppingMode value) noexcept override - { - try - { - this->shim().AutoCroppingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsAutoCroppingModeSupported(Windows::Devices::Scanners::ImageScannerAutoCroppingMode value, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsAutoCroppingModeSupported(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinResolution(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinResolution()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxResolution(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxResolution()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OpticalResolution(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OpticalResolution()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredResolution(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DesiredResolution()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredResolution(abi_arg_in value) noexcept override - { - try - { - this->shim().DesiredResolution(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActualResolution(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActualResolution()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultColorMode(Windows::Devices::Scanners::ImageScannerColorMode * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultColorMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColorMode(Windows::Devices::Scanners::ImageScannerColorMode * value) noexcept override - { - try - { - *value = detach(this->shim().ColorMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ColorMode(Windows::Devices::Scanners::ImageScannerColorMode value) noexcept override - { - try - { - this->shim().ColorMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsColorModeSupported(Windows::Devices::Scanners::ImageScannerColorMode value, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsColorModeSupported(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinBrightness(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinBrightness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxBrightness(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxBrightness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrightnessStep(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BrightnessStep()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultBrightness(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultBrightness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Brightness(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Brightness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Brightness(int32_t value) noexcept override - { - try - { - this->shim().Brightness(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinContrast(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinContrast()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxContrast(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxContrast()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContrastStep(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ContrastStep()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultContrast(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultContrast()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contrast(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Contrast()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Contrast(int32_t value) noexcept override - { - try - { - this->shim().Contrast(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Scanners { - -template Windows::Devices::Scanners::ImageScannerFormat impl_IImageScannerFormatConfiguration::DefaultFormat() const -{ - Windows::Devices::Scanners::ImageScannerFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultFormat(&value)); - return value; -} - -template Windows::Devices::Scanners::ImageScannerFormat impl_IImageScannerFormatConfiguration::Format() const -{ - Windows::Devices::Scanners::ImageScannerFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_Format(&value)); - return value; -} - -template void impl_IImageScannerFormatConfiguration::Format(Windows::Devices::Scanners::ImageScannerFormat value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Format(value)); -} - -template bool impl_IImageScannerFormatConfiguration::IsFormatSupported(Windows::Devices::Scanners::ImageScannerFormat value) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsFormatSupported(value, &result)); - return result; -} - -template Windows::Foundation::Size impl_IImageScannerSourceConfiguration::MinScanArea() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_MinScanArea(put(value))); - return value; -} - -template Windows::Foundation::Size impl_IImageScannerSourceConfiguration::MaxScanArea() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxScanArea(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IImageScannerSourceConfiguration::SelectedScanRegion() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedScanRegion(put(value))); - return value; -} - -template void impl_IImageScannerSourceConfiguration::SelectedScanRegion(const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedScanRegion(get(value))); -} - -template Windows::Devices::Scanners::ImageScannerAutoCroppingMode impl_IImageScannerSourceConfiguration::AutoCroppingMode() const -{ - Windows::Devices::Scanners::ImageScannerAutoCroppingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoCroppingMode(&value)); - return value; -} - -template void impl_IImageScannerSourceConfiguration::AutoCroppingMode(Windows::Devices::Scanners::ImageScannerAutoCroppingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoCroppingMode(value)); -} - -template bool impl_IImageScannerSourceConfiguration::IsAutoCroppingModeSupported(Windows::Devices::Scanners::ImageScannerAutoCroppingMode value) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsAutoCroppingModeSupported(value, &result)); - return result; -} - -template Windows::Devices::Scanners::ImageScannerResolution impl_IImageScannerSourceConfiguration::MinResolution() const -{ - Windows::Devices::Scanners::ImageScannerResolution value {}; - check_hresult(static_cast(static_cast(*this))->get_MinResolution(put(value))); - return value; -} - -template Windows::Devices::Scanners::ImageScannerResolution impl_IImageScannerSourceConfiguration::MaxResolution() const -{ - Windows::Devices::Scanners::ImageScannerResolution value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxResolution(put(value))); - return value; -} - -template Windows::Devices::Scanners::ImageScannerResolution impl_IImageScannerSourceConfiguration::OpticalResolution() const -{ - Windows::Devices::Scanners::ImageScannerResolution value {}; - check_hresult(static_cast(static_cast(*this))->get_OpticalResolution(put(value))); - return value; -} - -template Windows::Devices::Scanners::ImageScannerResolution impl_IImageScannerSourceConfiguration::DesiredResolution() const -{ - Windows::Devices::Scanners::ImageScannerResolution value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredResolution(put(value))); - return value; -} - -template void impl_IImageScannerSourceConfiguration::DesiredResolution(const Windows::Devices::Scanners::ImageScannerResolution & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredResolution(get(value))); -} - -template Windows::Devices::Scanners::ImageScannerResolution impl_IImageScannerSourceConfiguration::ActualResolution() const -{ - Windows::Devices::Scanners::ImageScannerResolution value {}; - check_hresult(static_cast(static_cast(*this))->get_ActualResolution(put(value))); - return value; -} - -template Windows::Devices::Scanners::ImageScannerColorMode impl_IImageScannerSourceConfiguration::DefaultColorMode() const -{ - Windows::Devices::Scanners::ImageScannerColorMode value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultColorMode(&value)); - return value; -} - -template Windows::Devices::Scanners::ImageScannerColorMode impl_IImageScannerSourceConfiguration::ColorMode() const -{ - Windows::Devices::Scanners::ImageScannerColorMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ColorMode(&value)); - return value; -} - -template void impl_IImageScannerSourceConfiguration::ColorMode(Windows::Devices::Scanners::ImageScannerColorMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ColorMode(value)); -} - -template bool impl_IImageScannerSourceConfiguration::IsColorModeSupported(Windows::Devices::Scanners::ImageScannerColorMode value) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsColorModeSupported(value, &result)); - return result; -} - -template int32_t impl_IImageScannerSourceConfiguration::MinBrightness() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinBrightness(&value)); - return value; -} - -template int32_t impl_IImageScannerSourceConfiguration::MaxBrightness() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxBrightness(&value)); - return value; -} - -template uint32_t impl_IImageScannerSourceConfiguration::BrightnessStep() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BrightnessStep(&value)); - return value; -} - -template int32_t impl_IImageScannerSourceConfiguration::DefaultBrightness() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultBrightness(&value)); - return value; -} - -template int32_t impl_IImageScannerSourceConfiguration::Brightness() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Brightness(&value)); - return value; -} - -template void impl_IImageScannerSourceConfiguration::Brightness(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Brightness(value)); -} - -template int32_t impl_IImageScannerSourceConfiguration::MinContrast() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinContrast(&value)); - return value; -} - -template int32_t impl_IImageScannerSourceConfiguration::MaxContrast() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxContrast(&value)); - return value; -} - -template uint32_t impl_IImageScannerSourceConfiguration::ContrastStep() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ContrastStep(&value)); - return value; -} - -template int32_t impl_IImageScannerSourceConfiguration::DefaultContrast() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultContrast(&value)); - return value; -} - -template int32_t impl_IImageScannerSourceConfiguration::Contrast() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Contrast(&value)); - return value; -} - -template void impl_IImageScannerSourceConfiguration::Contrast(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Contrast(value)); -} - -template bool impl_IImageScannerFeederConfiguration::CanAutoDetectPageSize() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanAutoDetectPageSize(&value)); - return value; -} - -template bool impl_IImageScannerFeederConfiguration::AutoDetectPageSize() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoDetectPageSize(&value)); - return value; -} - -template void impl_IImageScannerFeederConfiguration::AutoDetectPageSize(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoDetectPageSize(value)); -} - -template Windows::Graphics::Printing::PrintMediaSize impl_IImageScannerFeederConfiguration::PageSize() const -{ - Windows::Graphics::Printing::PrintMediaSize value {}; - check_hresult(static_cast(static_cast(*this))->get_PageSize(&value)); - return value; -} - -template void impl_IImageScannerFeederConfiguration::PageSize(Windows::Graphics::Printing::PrintMediaSize value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PageSize(value)); -} - -template Windows::Graphics::Printing::PrintOrientation impl_IImageScannerFeederConfiguration::PageOrientation() const -{ - Windows::Graphics::Printing::PrintOrientation value {}; - check_hresult(static_cast(static_cast(*this))->get_PageOrientation(&value)); - return value; -} - -template void impl_IImageScannerFeederConfiguration::PageOrientation(Windows::Graphics::Printing::PrintOrientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PageOrientation(value)); -} - -template Windows::Foundation::Size impl_IImageScannerFeederConfiguration::PageSizeDimensions() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_PageSizeDimensions(put(value))); - return value; -} - -template bool impl_IImageScannerFeederConfiguration::IsPageSizeSupported(Windows::Graphics::Printing::PrintMediaSize pageSize, Windows::Graphics::Printing::PrintOrientation pageOrientation) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsPageSizeSupported(pageSize, pageOrientation, &result)); - return result; -} - -template uint32_t impl_IImageScannerFeederConfiguration::MaxNumberOfPages() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxNumberOfPages(&value)); - return value; -} - -template void impl_IImageScannerFeederConfiguration::MaxNumberOfPages(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxNumberOfPages(value)); -} - -template bool impl_IImageScannerFeederConfiguration::CanScanDuplex() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanScanDuplex(&value)); - return value; -} - -template bool impl_IImageScannerFeederConfiguration::Duplex() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Duplex(&value)); - return value; -} - -template void impl_IImageScannerFeederConfiguration::Duplex(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Duplex(value)); -} - -template bool impl_IImageScannerFeederConfiguration::CanScanAhead() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanScanAhead(&value)); - return value; -} - -template bool impl_IImageScannerFeederConfiguration::ScanAhead() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ScanAhead(&value)); - return value; -} - -template void impl_IImageScannerFeederConfiguration::ScanAhead(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScanAhead(value)); -} - -template Windows::Foundation::Collections::IVectorView impl_IImageScannerScanResult::ScannedFiles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ScannedFiles(put(value))); - return value; -} - -template bool impl_IImageScannerPreviewResult::Succeeded() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Succeeded(&value)); - return value; -} - -template Windows::Devices::Scanners::ImageScannerFormat impl_IImageScannerPreviewResult::Format() const -{ - Windows::Devices::Scanners::ImageScannerFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_Format(&value)); - return value; -} - -template hstring impl_IImageScanner::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Scanners::ImageScannerScanSource impl_IImageScanner::DefaultScanSource() const -{ - Windows::Devices::Scanners::ImageScannerScanSource value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultScanSource(&value)); - return value; -} - -template bool impl_IImageScanner::IsScanSourceSupported(Windows::Devices::Scanners::ImageScannerScanSource value) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsScanSourceSupported(value, &result)); - return result; -} - -template Windows::Devices::Scanners::ImageScannerFlatbedConfiguration impl_IImageScanner::FlatbedConfiguration() const -{ - Windows::Devices::Scanners::ImageScannerFlatbedConfiguration value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FlatbedConfiguration(put(value))); - return value; -} - -template Windows::Devices::Scanners::ImageScannerFeederConfiguration impl_IImageScanner::FeederConfiguration() const -{ - Windows::Devices::Scanners::ImageScannerFeederConfiguration value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FeederConfiguration(put(value))); - return value; -} - -template Windows::Devices::Scanners::ImageScannerAutoConfiguration impl_IImageScanner::AutoConfiguration() const -{ - Windows::Devices::Scanners::ImageScannerAutoConfiguration value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AutoConfiguration(put(value))); - return value; -} - -template bool impl_IImageScanner::IsPreviewSupported(Windows::Devices::Scanners::ImageScannerScanSource scanSource) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsPreviewSupported(scanSource, &result)); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IImageScanner::ScanPreviewToStreamAsync(Windows::Devices::Scanners::ImageScannerScanSource scanSource, const Windows::Storage::Streams::IRandomAccessStream & targetStream) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ScanPreviewToStreamAsync(scanSource, get(targetStream), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IImageScanner::ScanFilesToFolderAsync(Windows::Devices::Scanners::ImageScannerScanSource scanSource, const Windows::Storage::StorageFolder & storageFolder) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_ScanFilesToFolderAsync(scanSource, get(storageFolder), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IImageScannerStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(asyncInfo))); - return asyncInfo; -} - -template hstring impl_IImageScannerStatics::GetDeviceSelector() const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(selector))); - return selector; -} - -inline Windows::Foundation::IAsyncOperation ImageScanner::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring ImageScanner::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Sensors.Custom.h b/10.0.14393.0/winrt/Windows.Devices.Sensors.Custom.h deleted file mode 100644 index 2259284fb..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Sensors.Custom.h +++ /dev/null @@ -1,294 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Sensors.Custom.3.h" -#include "Windows.Devices.Sensors.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(GUID interfaceId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeviceSelector(interfaceId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in sensorId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&sensorId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Sensors::Custom { - -template hstring impl_ICustomSensorStatics::GetDeviceSelector(GUID interfaceId) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(interfaceId, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ICustomSensorStatics::FromIdAsync(hstring_ref sensorId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(sensorId), put(result))); - return result; -} - -template Windows::Devices::Sensors::Custom::CustomSensorReading impl_ICustomSensor::GetCurrentReading() const -{ - Windows::Devices::Sensors::Custom::CustomSensorReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template uint32_t impl_ICustomSensor::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template void impl_ICustomSensor::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template uint32_t impl_ICustomSensor::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template hstring impl_ICustomSensor::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template event_token impl_ICustomSensor::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ICustomSensor::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::Custom::ICustomSensor::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_ICustomSensor::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template Windows::Foundation::DateTime impl_ICustomSensorReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_ICustomSensorReading::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Devices::Sensors::Custom::CustomSensorReading impl_ICustomSensorReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::Custom::CustomSensorReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -inline hstring CustomSensor::GetDeviceSelector(GUID interfaceId) -{ - return get_activation_factory().GetDeviceSelector(interfaceId); -} - -inline Windows::Foundation::IAsyncOperation CustomSensor::FromIdAsync(hstring_ref sensorId) -{ - return get_activation_factory().FromIdAsync(sensorId); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Sensors.h b/10.0.14393.0/winrt/Windows.Devices.Sensors.h deleted file mode 100644 index 25b2ad9be..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Sensors.h +++ /dev/null @@ -1,4980 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Graphics.Display.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Sensors.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Shaken(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Shaken(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Shaken(event_token token) noexcept override - { - try - { - this->shim().Shaken(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) noexcept override - { - try - { - this->shim().ReadingTransform(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadingTransform(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().ReadingTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ReportLatency(uint32_t value) noexcept override - { - try - { - this->shim().ReportLatency(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportLatency(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportLatency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxBatchSize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxBatchSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ReadingType(Windows::Devices::Sensors::AccelerometerReadingType * type) noexcept override - { - try - { - *type = detach(this->shim().ReadingType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccelerationX(double * value) noexcept override - { - try - { - *value = detach(this->shim().AccelerationX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccelerationY(double * value) noexcept override - { - try - { - *value = detach(this->shim().AccelerationY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccelerationZ(double * value) noexcept override - { - try - { - *value = detach(this->shim().AccelerationZ()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultWithAccelerometerReadingType(Windows::Devices::Sensors::AccelerometerReadingType readingType, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault(readingType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReadingAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetCurrentReadingAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubscribedActivities(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SubscribedActivities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PowerInMilliwatts(double * value) noexcept override - { - try - { - *value = detach(this->shim().PowerInMilliwatts()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedActivities(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedActivities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Activity(Windows::Devices::Sensors::ActivityType * value) noexcept override - { - try - { - *value = detach(this->shim().Activity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Confidence(Windows::Devices::Sensors::ActivitySensorReadingConfidence * value) noexcept override - { - try - { - *value = detach(this->shim().Confidence()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSystemHistoryAsync(abi_arg_in fromTime, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetSystemHistoryAsync(*reinterpret_cast(&fromTime))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSystemHistoryWithDurationAsync(abi_arg_in fromTime, abi_arg_in duration, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetSystemHistoryAsync(*reinterpret_cast(&fromTime), *reinterpret_cast(&duration))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadReports(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ReadReports()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AltitudeChangeInMeters(double * value) noexcept override - { - try - { - *value = detach(this->shim().AltitudeChangeInMeters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StationPressureInHectopascals(double * value) noexcept override - { - try - { - *value = detach(this->shim().StationPressureInHectopascals()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) noexcept override - { - try - { - this->shim().ReadingTransform(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadingTransform(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().ReadingTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeadingMagneticNorth(double * value) noexcept override - { - try - { - *value = detach(this->shim().HeadingMagneticNorth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeadingTrueNorth(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().HeadingTrueNorth()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeadingAccuracy(Windows::Devices::Sensors::MagnetometerAccuracy * value) noexcept override - { - try - { - *value = detach(this->shim().HeadingAccuracy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) noexcept override - { - try - { - this->shim().ReadingTransform(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadingTransform(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().ReadingTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AngularVelocityX(double * value) noexcept override - { - try - { - *value = detach(this->shim().AngularVelocityX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AngularVelocityY(double * value) noexcept override - { - try - { - *value = detach(this->shim().AngularVelocityY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AngularVelocityZ(double * value) noexcept override - { - try - { - *value = detach(this->shim().AngularVelocityZ()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) noexcept override - { - try - { - this->shim().ReadingTransform(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadingTransform(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().ReadingTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadingType(Windows::Devices::Sensors::SensorReadingType * type) noexcept override - { - try - { - *type = detach(this->shim().ReadingType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PitchDegrees(float * value) noexcept override - { - try - { - *value = detach(this->shim().PitchDegrees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RollDegrees(float * value) noexcept override - { - try - { - *value = detach(this->shim().RollDegrees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YawDegrees(float * value) noexcept override - { - try - { - *value = detach(this->shim().YawDegrees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_YawAccuracy(Windows::Devices::Sensors::MagnetometerAccuracy * value) noexcept override - { - try - { - *value = detach(this->shim().YawAccuracy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultForRelativeReadings(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefaultForRelativeReadings()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultWithSensorReadingType(Windows::Devices::Sensors::SensorReadingType sensorReadingtype, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault(sensorReadingtype)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IlluminanceInLux(float * value) noexcept override - { - try - { - *value = detach(this->shim().IlluminanceInLux()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) noexcept override - { - try - { - this->shim().ReadingTransform(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadingTransform(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().ReadingTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MagneticFieldX(float * value) noexcept override - { - try - { - *value = detach(this->shim().MagneticFieldX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MagneticFieldY(float * value) noexcept override - { - try - { - *value = detach(this->shim().MagneticFieldY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MagneticFieldZ(float * value) noexcept override - { - try - { - *value = detach(this->shim().MagneticFieldZ()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DirectionalAccuracy(Windows::Devices::Sensors::MagnetometerAccuracy * value) noexcept override - { - try - { - *value = detach(this->shim().DirectionalAccuracy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) noexcept override - { - try - { - this->shim().ReadingTransform(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadingTransform(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().ReadingTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadingType(Windows::Devices::Sensors::SensorReadingType * type) noexcept override - { - try - { - *type = detach(this->shim().ReadingType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RotationMatrix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RotationMatrix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Quaternion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Quaternion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_YawAccuracy(Windows::Devices::Sensors::MagnetometerAccuracy * value) noexcept override - { - try - { - *value = detach(this->shim().YawAccuracy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultForRelativeReadings(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefaultForRelativeReadings()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultWithSensorReadingType(Windows::Devices::Sensors::SensorReadingType sensorReadingtype, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault(sensorReadingtype)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultWithSensorReadingTypeAndSensorOptimizationGoal(Windows::Devices::Sensors::SensorReadingType sensorReadingType, Windows::Devices::Sensors::SensorOptimizationGoal optimizationGoal, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault(sensorReadingType, optimizationGoal)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PowerInMilliwatts(double * value) noexcept override - { - try - { - *value = detach(this->shim().PowerInMilliwatts()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinimumReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReportInterval(uint32_t value) noexcept override - { - try - { - this->shim().ReportInterval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReportInterval(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReportInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReadings(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReadings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in sensor, int32_t stepGoal, abi_arg_out threshold) noexcept override - { - try - { - *threshold = detach(this->shim().Create(*reinterpret_cast(&sensor), stepGoal)); - return S_OK; - } - catch (...) - { - *threshold = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StepKind(Windows::Devices::Sensors::PedometerStepKind * value) noexcept override - { - try - { - *value = detach(this->shim().StepKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CumulativeSteps(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CumulativeSteps()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CumulativeStepsDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CumulativeStepsDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSystemHistoryAsync(abi_arg_in fromTime, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetSystemHistoryAsync(*reinterpret_cast(&fromTime))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSystemHistoryWithDurationAsync(abi_arg_in fromTime, abi_arg_in duration, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetSystemHistoryAsync(*reinterpret_cast(&fromTime), *reinterpret_cast(&duration))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetReadingsFromTriggerDetails(abi_arg_in triggerDetails, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetReadingsFromTriggerDetails(*reinterpret_cast(&triggerDetails))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDistanceInMillimeters(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxDistanceInMillimeters()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinDistanceInMillimeters(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MinDistanceInMillimeters()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReadingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReadingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReadingChanged(event_token token) noexcept override - { - try - { - this->shim().ReadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDisplayOnOffController(abi_arg_out controller) noexcept override - { - try - { - *controller = detach(this->shim().CreateDisplayOnOffController()); - return S_OK; - } - catch (...) - { - *controller = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in sensor, abi_arg_out threshold) noexcept override - { - try - { - *threshold = detach(this->shim().Create(*reinterpret_cast(&sensor))); - return S_OK; - } - catch (...) - { - *threshold = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDetected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDetected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DistanceInMillimeters(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DistanceInMillimeters()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromId(abi_arg_in sensorId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().FromId(*reinterpret_cast(&sensorId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetReadingsFromTriggerDetails(abi_arg_in triggerDetails, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetReadingsFromTriggerDetails(*reinterpret_cast(&triggerDetails))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SensorType(Windows::Devices::Sensors::SensorType * value) noexcept override - { - try - { - *value = detach(this->shim().SensorType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_W(float * value) noexcept override - { - try - { - *value = detach(this->shim().W()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_X(float * value) noexcept override - { - try - { - *value = detach(this->shim().X()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Y(float * value) noexcept override - { - try - { - *value = detach(this->shim().Y()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Z(float * value) noexcept override - { - try - { - *value = detach(this->shim().Z()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_M11(float * value) noexcept override - { - try - { - *value = detach(this->shim().M11()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_M12(float * value) noexcept override - { - try - { - *value = detach(this->shim().M12()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_M13(float * value) noexcept override - { - try - { - *value = detach(this->shim().M13()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_M21(float * value) noexcept override - { - try - { - *value = detach(this->shim().M21()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_M22(float * value) noexcept override - { - try - { - *value = detach(this->shim().M22()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_M23(float * value) noexcept override - { - try - { - *value = detach(this->shim().M23()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_M31(float * value) noexcept override - { - try - { - *value = detach(this->shim().M31()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_M32(float * value) noexcept override - { - try - { - *value = detach(this->shim().M32()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_M33(float * value) noexcept override - { - try - { - *value = detach(this->shim().M33()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentOrientation(Windows::Devices::Sensors::SimpleOrientation * value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentOrientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_OrientationChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().OrientationChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_OrientationChanged(event_token token) noexcept override - { - try - { - this->shim().OrientationChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) noexcept override - { - try - { - this->shim().ReadingTransform(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadingTransform(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().ReadingTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::Devices::Sensors::SimpleOrientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Sensors { - -template hstring impl_ISensorDataThresholdTriggerDetails::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Sensors::SensorType impl_ISensorDataThresholdTriggerDetails::SensorType() const -{ - Windows::Devices::Sensors::SensorType value {}; - check_hresult(static_cast(static_cast(*this))->get_SensorType(&value)); - return value; -} - -template hstring impl_IAccelerometerDeviceId::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Sensors::Accelerometer impl_IAccelerometerStatics::GetDefault() const -{ - Windows::Devices::Sensors::Accelerometer result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template Windows::Devices::Sensors::Accelerometer impl_IAccelerometerStatics2::GetDefault(Windows::Devices::Sensors::AccelerometerReadingType readingType) const -{ - Windows::Devices::Sensors::Accelerometer result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultWithAccelerometerReadingType(readingType, put(result))); - return result; -} - -template Windows::Devices::Sensors::AccelerometerReading impl_IAccelerometer::GetCurrentReading() const -{ - Windows::Devices::Sensors::AccelerometerReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template uint32_t impl_IAccelerometer::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template void impl_IAccelerometer::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template uint32_t impl_IAccelerometer::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template event_token impl_IAccelerometer::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAccelerometer::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::IAccelerometer::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_IAccelerometer::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template event_token impl_IAccelerometer::Shaken(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Shaken(get(handler), &token)); - return token; -} - -template event_revoker impl_IAccelerometer::Shaken(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::IAccelerometer::remove_Shaken, Shaken(handler)); -} - -template void impl_IAccelerometer::Shaken(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Shaken(token)); -} - -template void impl_IAccelerometer2::ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReadingTransform(value)); -} - -template Windows::Graphics::Display::DisplayOrientations impl_IAccelerometer2::ReadingTransform() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadingTransform(&value)); - return value; -} - -template void impl_IAccelerometer3::ReportLatency(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportLatency(value)); -} - -template uint32_t impl_IAccelerometer3::ReportLatency() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportLatency(&value)); - return value; -} - -template uint32_t impl_IAccelerometer3::MaxBatchSize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxBatchSize(&value)); - return value; -} - -template Windows::Devices::Sensors::AccelerometerReadingType impl_IAccelerometer4::ReadingType() const -{ - Windows::Devices::Sensors::AccelerometerReadingType type {}; - check_hresult(static_cast(static_cast(*this))->get_ReadingType(&type)); - return type; -} - -template Windows::Foundation::DateTime impl_IAccelerometerReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template double impl_IAccelerometerReading::AccelerationX() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_AccelerationX(&value)); - return value; -} - -template double impl_IAccelerometerReading::AccelerationY() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_AccelerationY(&value)); - return value; -} - -template double impl_IAccelerometerReading::AccelerationZ() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_AccelerationZ(&value)); - return value; -} - -template Windows::Devices::Sensors::AccelerometerReading impl_IAccelerometerReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::AccelerometerReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IAccelerometerShakenEventArgs::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template hstring impl_IInclinometerDeviceId::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Sensors::Inclinometer impl_IInclinometerStatics::GetDefault() const -{ - Windows::Devices::Sensors::Inclinometer result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template Windows::Devices::Sensors::Inclinometer impl_IInclinometerStatics2::GetDefaultForRelativeReadings() const -{ - Windows::Devices::Sensors::Inclinometer result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultForRelativeReadings(put(result))); - return result; -} - -template Windows::Devices::Sensors::Inclinometer impl_IInclinometerStatics3::GetDefault(Windows::Devices::Sensors::SensorReadingType sensorReadingtype) const -{ - Windows::Devices::Sensors::Inclinometer result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultWithSensorReadingType(sensorReadingtype, put(result))); - return result; -} - -template Windows::Devices::Sensors::InclinometerReading impl_IInclinometer::GetCurrentReading() const -{ - Windows::Devices::Sensors::InclinometerReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template uint32_t impl_IInclinometer::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template void impl_IInclinometer::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template uint32_t impl_IInclinometer::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template event_token impl_IInclinometer::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IInclinometer::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::IInclinometer::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_IInclinometer::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template void impl_IInclinometer2::ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReadingTransform(value)); -} - -template Windows::Graphics::Display::DisplayOrientations impl_IInclinometer2::ReadingTransform() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadingTransform(&value)); - return value; -} - -template Windows::Devices::Sensors::SensorReadingType impl_IInclinometer2::ReadingType() const -{ - Windows::Devices::Sensors::SensorReadingType type {}; - check_hresult(static_cast(static_cast(*this))->get_ReadingType(&type)); - return type; -} - -template Windows::Foundation::DateTime impl_IInclinometerReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template float impl_IInclinometerReading::PitchDegrees() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_PitchDegrees(&value)); - return value; -} - -template float impl_IInclinometerReading::RollDegrees() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RollDegrees(&value)); - return value; -} - -template float impl_IInclinometerReading::YawDegrees() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_YawDegrees(&value)); - return value; -} - -template Windows::Devices::Sensors::MagnetometerAccuracy impl_IInclinometerReadingYawAccuracy::YawAccuracy() const -{ - Windows::Devices::Sensors::MagnetometerAccuracy value {}; - check_hresult(static_cast(static_cast(*this))->get_YawAccuracy(&value)); - return value; -} - -template Windows::Devices::Sensors::InclinometerReading impl_IInclinometerReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::InclinometerReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template hstring impl_IGyrometerDeviceId::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Sensors::Gyrometer impl_IGyrometerStatics::GetDefault() const -{ - Windows::Devices::Sensors::Gyrometer result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template Windows::Devices::Sensors::GyrometerReading impl_IGyrometer::GetCurrentReading() const -{ - Windows::Devices::Sensors::GyrometerReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template uint32_t impl_IGyrometer::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template void impl_IGyrometer::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template uint32_t impl_IGyrometer::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template event_token impl_IGyrometer::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IGyrometer::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::IGyrometer::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_IGyrometer::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template void impl_IGyrometer2::ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReadingTransform(value)); -} - -template Windows::Graphics::Display::DisplayOrientations impl_IGyrometer2::ReadingTransform() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadingTransform(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IGyrometerReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template double impl_IGyrometerReading::AngularVelocityX() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_AngularVelocityX(&value)); - return value; -} - -template double impl_IGyrometerReading::AngularVelocityY() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_AngularVelocityY(&value)); - return value; -} - -template double impl_IGyrometerReading::AngularVelocityZ() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_AngularVelocityZ(&value)); - return value; -} - -template Windows::Devices::Sensors::GyrometerReading impl_IGyrometerReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::GyrometerReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template hstring impl_ICompassDeviceId::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Sensors::Compass impl_ICompassStatics::GetDefault() const -{ - Windows::Devices::Sensors::Compass result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template Windows::Devices::Sensors::CompassReading impl_ICompass::GetCurrentReading() const -{ - Windows::Devices::Sensors::CompassReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template uint32_t impl_ICompass::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template void impl_ICompass::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template uint32_t impl_ICompass::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template event_token impl_ICompass::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ICompass::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::ICompass::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_ICompass::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template void impl_ICompass2::ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReadingTransform(value)); -} - -template Windows::Graphics::Display::DisplayOrientations impl_ICompass2::ReadingTransform() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadingTransform(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_ICompassReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template double impl_ICompassReading::HeadingMagneticNorth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HeadingMagneticNorth(&value)); - return value; -} - -template Windows::Foundation::IReference impl_ICompassReading::HeadingTrueNorth() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_HeadingTrueNorth(put(value))); - return value; -} - -template Windows::Devices::Sensors::MagnetometerAccuracy impl_ICompassReadingHeadingAccuracy::HeadingAccuracy() const -{ - Windows::Devices::Sensors::MagnetometerAccuracy value {}; - check_hresult(static_cast(static_cast(*this))->get_HeadingAccuracy(&value)); - return value; -} - -template Windows::Devices::Sensors::CompassReading impl_ICompassReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::CompassReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template hstring impl_ILightSensorDeviceId::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Sensors::LightSensor impl_ILightSensorStatics::GetDefault() const -{ - Windows::Devices::Sensors::LightSensor result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template Windows::Devices::Sensors::LightSensorReading impl_ILightSensor::GetCurrentReading() const -{ - Windows::Devices::Sensors::LightSensorReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template uint32_t impl_ILightSensor::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template void impl_ILightSensor::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template uint32_t impl_ILightSensor::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template event_token impl_ILightSensor::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ILightSensor::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::ILightSensor::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_ILightSensor::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template Windows::Foundation::DateTime impl_ILightSensorReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template float impl_ILightSensorReading::IlluminanceInLux() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_IlluminanceInLux(&value)); - return value; -} - -template Windows::Devices::Sensors::LightSensorReading impl_ILightSensorReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::LightSensorReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template float impl_ISensorRotationMatrix::M11() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_M11(&value)); - return value; -} - -template float impl_ISensorRotationMatrix::M12() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_M12(&value)); - return value; -} - -template float impl_ISensorRotationMatrix::M13() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_M13(&value)); - return value; -} - -template float impl_ISensorRotationMatrix::M21() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_M21(&value)); - return value; -} - -template float impl_ISensorRotationMatrix::M22() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_M22(&value)); - return value; -} - -template float impl_ISensorRotationMatrix::M23() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_M23(&value)); - return value; -} - -template float impl_ISensorRotationMatrix::M31() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_M31(&value)); - return value; -} - -template float impl_ISensorRotationMatrix::M32() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_M32(&value)); - return value; -} - -template float impl_ISensorRotationMatrix::M33() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_M33(&value)); - return value; -} - -template float impl_ISensorQuaternion::W() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_W(&value)); - return value; -} - -template float impl_ISensorQuaternion::X() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_X(&value)); - return value; -} - -template float impl_ISensorQuaternion::Y() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Y(&value)); - return value; -} - -template float impl_ISensorQuaternion::Z() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Z(&value)); - return value; -} - -template hstring impl_IOrientationSensorDeviceId::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Sensors::OrientationSensor impl_IOrientationSensorStatics::GetDefault() const -{ - Windows::Devices::Sensors::OrientationSensor result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template Windows::Devices::Sensors::OrientationSensor impl_IOrientationSensorStatics2::GetDefaultForRelativeReadings() const -{ - Windows::Devices::Sensors::OrientationSensor result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultForRelativeReadings(put(result))); - return result; -} - -template Windows::Devices::Sensors::OrientationSensor impl_IOrientationSensorStatics3::GetDefault(Windows::Devices::Sensors::SensorReadingType sensorReadingtype) const -{ - Windows::Devices::Sensors::OrientationSensor result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultWithSensorReadingType(sensorReadingtype, put(result))); - return result; -} - -template Windows::Devices::Sensors::OrientationSensor impl_IOrientationSensorStatics3::GetDefault(Windows::Devices::Sensors::SensorReadingType sensorReadingType, Windows::Devices::Sensors::SensorOptimizationGoal optimizationGoal) const -{ - Windows::Devices::Sensors::OrientationSensor result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultWithSensorReadingTypeAndSensorOptimizationGoal(sensorReadingType, optimizationGoal, put(result))); - return result; -} - -template Windows::Devices::Sensors::OrientationSensorReading impl_IOrientationSensor::GetCurrentReading() const -{ - Windows::Devices::Sensors::OrientationSensorReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template uint32_t impl_IOrientationSensor::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template void impl_IOrientationSensor::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template uint32_t impl_IOrientationSensor::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template event_token impl_IOrientationSensor::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IOrientationSensor::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::IOrientationSensor::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_IOrientationSensor::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template void impl_IOrientationSensor2::ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReadingTransform(value)); -} - -template Windows::Graphics::Display::DisplayOrientations impl_IOrientationSensor2::ReadingTransform() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadingTransform(&value)); - return value; -} - -template Windows::Devices::Sensors::SensorReadingType impl_IOrientationSensor2::ReadingType() const -{ - Windows::Devices::Sensors::SensorReadingType type {}; - check_hresult(static_cast(static_cast(*this))->get_ReadingType(&type)); - return type; -} - -template Windows::Foundation::DateTime impl_IOrientationSensorReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Devices::Sensors::SensorRotationMatrix impl_IOrientationSensorReading::RotationMatrix() const -{ - Windows::Devices::Sensors::SensorRotationMatrix value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RotationMatrix(put(value))); - return value; -} - -template Windows::Devices::Sensors::SensorQuaternion impl_IOrientationSensorReading::Quaternion() const -{ - Windows::Devices::Sensors::SensorQuaternion value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Quaternion(put(value))); - return value; -} - -template Windows::Devices::Sensors::MagnetometerAccuracy impl_IOrientationSensorReadingYawAccuracy::YawAccuracy() const -{ - Windows::Devices::Sensors::MagnetometerAccuracy value {}; - check_hresult(static_cast(static_cast(*this))->get_YawAccuracy(&value)); - return value; -} - -template Windows::Devices::Sensors::OrientationSensorReading impl_IOrientationSensorReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::OrientationSensorReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template hstring impl_ISimpleOrientationSensorDeviceId::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Sensors::SimpleOrientationSensor impl_ISimpleOrientationSensorStatics::GetDefault() const -{ - Windows::Devices::Sensors::SimpleOrientationSensor result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template Windows::Devices::Sensors::SimpleOrientation impl_ISimpleOrientationSensor::GetCurrentOrientation() const -{ - Windows::Devices::Sensors::SimpleOrientation value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentOrientation(&value)); - return value; -} - -template event_token impl_ISimpleOrientationSensor::OrientationChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_OrientationChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ISimpleOrientationSensor::OrientationChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::ISimpleOrientationSensor::remove_OrientationChanged, OrientationChanged(handler)); -} - -template void impl_ISimpleOrientationSensor::OrientationChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_OrientationChanged(token)); -} - -template void impl_ISimpleOrientationSensor2::ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReadingTransform(value)); -} - -template Windows::Graphics::Display::DisplayOrientations impl_ISimpleOrientationSensor2::ReadingTransform() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadingTransform(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_ISimpleOrientationSensorOrientationChangedEventArgs::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Devices::Sensors::SimpleOrientation impl_ISimpleOrientationSensorOrientationChangedEventArgs::Orientation() const -{ - Windows::Devices::Sensors::SimpleOrientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template hstring impl_IMagnetometerDeviceId::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Sensors::Magnetometer impl_IMagnetometerStatics::GetDefault() const -{ - Windows::Devices::Sensors::Magnetometer result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template Windows::Devices::Sensors::MagnetometerReading impl_IMagnetometer::GetCurrentReading() const -{ - Windows::Devices::Sensors::MagnetometerReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template uint32_t impl_IMagnetometer::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template void impl_IMagnetometer::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template uint32_t impl_IMagnetometer::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template event_token impl_IMagnetometer::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMagnetometer::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::IMagnetometer::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_IMagnetometer::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template void impl_IMagnetometer2::ReadingTransform(Windows::Graphics::Display::DisplayOrientations value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReadingTransform(value)); -} - -template Windows::Graphics::Display::DisplayOrientations impl_IMagnetometer2::ReadingTransform() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadingTransform(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IMagnetometerReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template float impl_IMagnetometerReading::MagneticFieldX() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_MagneticFieldX(&value)); - return value; -} - -template float impl_IMagnetometerReading::MagneticFieldY() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_MagneticFieldY(&value)); - return value; -} - -template float impl_IMagnetometerReading::MagneticFieldZ() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_MagneticFieldZ(&value)); - return value; -} - -template Windows::Devices::Sensors::MagnetometerAccuracy impl_IMagnetometerReading::DirectionalAccuracy() const -{ - Windows::Devices::Sensors::MagnetometerAccuracy value {}; - check_hresult(static_cast(static_cast(*this))->get_DirectionalAccuracy(&value)); - return value; -} - -template Windows::Devices::Sensors::MagnetometerReading impl_IMagnetometerReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::MagnetometerReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IActivitySensorStatics::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(result))); - return result; -} - -template hstring impl_IActivitySensorStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IActivitySensorStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IActivitySensorStatics::GetSystemHistoryAsync(const Windows::Foundation::DateTime & fromTime) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetSystemHistoryAsync(get(fromTime), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IActivitySensorStatics::GetSystemHistoryAsync(const Windows::Foundation::DateTime & fromTime, const Windows::Foundation::TimeSpan & duration) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetSystemHistoryWithDurationAsync(get(fromTime), get(duration), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IActivitySensor::GetCurrentReadingAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReadingAsync(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IActivitySensor::SubscribedActivities() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SubscribedActivities(put(value))); - return value; -} - -template double impl_IActivitySensor::PowerInMilliwatts() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerInMilliwatts(&value)); - return value; -} - -template hstring impl_IActivitySensor::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IActivitySensor::SupportedActivities() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedActivities(put(value))); - return value; -} - -template uint32_t impl_IActivitySensor::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template event_token impl_IActivitySensor::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IActivitySensor::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::IActivitySensor::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_IActivitySensor::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template Windows::Foundation::DateTime impl_IActivitySensorReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Devices::Sensors::ActivityType impl_IActivitySensorReading::Activity() const -{ - Windows::Devices::Sensors::ActivityType value {}; - check_hresult(static_cast(static_cast(*this))->get_Activity(&value)); - return value; -} - -template Windows::Devices::Sensors::ActivitySensorReadingConfidence impl_IActivitySensorReading::Confidence() const -{ - Windows::Devices::Sensors::ActivitySensorReadingConfidence value {}; - check_hresult(static_cast(static_cast(*this))->get_Confidence(&value)); - return value; -} - -template Windows::Devices::Sensors::ActivitySensorReading impl_IActivitySensorReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::ActivitySensorReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template Windows::Devices::Sensors::ActivitySensorReading impl_IActivitySensorReadingChangeReport::Reading() const -{ - Windows::Devices::Sensors::ActivitySensorReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IActivitySensorTriggerDetails::ReadReports() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_ReadReports(put(value))); - return value; -} - -template Windows::Devices::Sensors::Barometer impl_IBarometerStatics::GetDefault() const -{ - Windows::Devices::Sensors::Barometer result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template Windows::Devices::Sensors::BarometerReading impl_IBarometer::GetCurrentReading() const -{ - Windows::Devices::Sensors::BarometerReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template hstring impl_IBarometer::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template uint32_t impl_IBarometer::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template void impl_IBarometer::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template uint32_t impl_IBarometer::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template event_token impl_IBarometer::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IBarometer::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::IBarometer::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_IBarometer::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template Windows::Foundation::DateTime impl_IBarometerReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template double impl_IBarometerReading::StationPressureInHectopascals() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_StationPressureInHectopascals(&value)); - return value; -} - -template Windows::Devices::Sensors::BarometerReading impl_IBarometerReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::BarometerReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template Windows::Devices::Sensors::PedometerStepKind impl_IPedometerReading::StepKind() const -{ - Windows::Devices::Sensors::PedometerStepKind value {}; - check_hresult(static_cast(static_cast(*this))->get_StepKind(&value)); - return value; -} - -template int32_t impl_IPedometerReading::CumulativeSteps() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CumulativeSteps(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IPedometerReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IPedometerReading::CumulativeStepsDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_CumulativeStepsDuration(put(value))); - return value; -} - -template Windows::Devices::Sensors::PedometerReading impl_IPedometerReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::PedometerReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPedometerStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPedometerStatics::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(operation))); - return operation; -} - -template hstring impl_IPedometerStatics::GetDeviceSelector() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IPedometerStatics::GetSystemHistoryAsync(const Windows::Foundation::DateTime & fromTime) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetSystemHistoryAsync(get(fromTime), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IPedometerStatics::GetSystemHistoryAsync(const Windows::Foundation::DateTime & fromTime, const Windows::Foundation::TimeSpan & duration) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetSystemHistoryWithDurationAsync(get(fromTime), get(duration), put(operation))); - return operation; -} - -template Windows::Foundation::Collections::IVectorView impl_IPedometerStatics2::GetReadingsFromTriggerDetails(const Windows::Devices::Sensors::SensorDataThresholdTriggerDetails & triggerDetails) const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetReadingsFromTriggerDetails(get(triggerDetails), put(result))); - return result; -} - -template Windows::Foundation::Collections::IMapView impl_IPedometer2::GetCurrentReadings() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReadings(put(value))); - return value; -} - -template hstring impl_IPedometer::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template double impl_IPedometer::PowerInMilliwatts() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerInMilliwatts(&value)); - return value; -} - -template uint32_t impl_IPedometer::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template void impl_IPedometer::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template uint32_t impl_IPedometer::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template event_token impl_IPedometer::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPedometer::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::IPedometer::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_IPedometer::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template Windows::Devices::Sensors::PedometerDataThreshold impl_IPedometerDataThresholdFactory::Create(const Windows::Devices::Sensors::Pedometer & sensor, int32_t stepGoal) const -{ - Windows::Devices::Sensors::PedometerDataThreshold threshold { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(sensor), stepGoal, put(threshold))); - return threshold; -} - -template hstring impl_IProximitySensorStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template Windows::Devices::Sensors::ProximitySensor impl_IProximitySensorStatics::FromId(hstring_ref sensorId) const -{ - Windows::Devices::Sensors::ProximitySensor result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromId(get(sensorId), put(result))); - return result; -} - -template hstring impl_IProximitySensor::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IProximitySensor::MaxDistanceInMillimeters() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxDistanceInMillimeters(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IProximitySensor::MinDistanceInMillimeters() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MinDistanceInMillimeters(put(value))); - return value; -} - -template Windows::Devices::Sensors::ProximitySensorReading impl_IProximitySensor::GetCurrentReading() const -{ - Windows::Devices::Sensors::ProximitySensorReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template event_token impl_IProximitySensor::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IProximitySensor::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::IProximitySensor::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_IProximitySensor::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template Windows::Devices::Sensors::ProximitySensorDisplayOnOffController impl_IProximitySensor::CreateDisplayOnOffController() const -{ - Windows::Devices::Sensors::ProximitySensorDisplayOnOffController controller { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDisplayOnOffController(put(controller))); - return controller; -} - -template Windows::Devices::Sensors::ProximitySensorReading impl_IProximitySensorReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::ProximitySensorReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IProximitySensorReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template bool impl_IProximitySensorReading::IsDetected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDetected(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IProximitySensorReading::DistanceInMillimeters() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DistanceInMillimeters(put(value))); - return value; -} - -template Windows::Devices::Sensors::ProximitySensorDataThreshold impl_IProximitySensorDataThresholdFactory::Create(const Windows::Devices::Sensors::ProximitySensor & sensor) const -{ - Windows::Devices::Sensors::ProximitySensorDataThreshold threshold { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(sensor), put(threshold))); - return threshold; -} - -template Windows::Foundation::Collections::IVectorView impl_IProximitySensorStatics2::GetReadingsFromTriggerDetails(const Windows::Devices::Sensors::SensorDataThresholdTriggerDetails & triggerDetails) const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetReadingsFromTriggerDetails(get(triggerDetails), put(result))); - return result; -} - -template Windows::Devices::Sensors::Altimeter impl_IAltimeterStatics::GetDefault() const -{ - Windows::Devices::Sensors::Altimeter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template Windows::Devices::Sensors::AltimeterReading impl_IAltimeter::GetCurrentReading() const -{ - Windows::Devices::Sensors::AltimeterReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template hstring impl_IAltimeter::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template uint32_t impl_IAltimeter::MinimumReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimumReportInterval(&value)); - return value; -} - -template void impl_IAltimeter::ReportInterval(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReportInterval(value)); -} - -template uint32_t impl_IAltimeter::ReportInterval() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReportInterval(&value)); - return value; -} - -template event_token impl_IAltimeter::ReadingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReadingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAltimeter::ReadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sensors::IAltimeter::remove_ReadingChanged, ReadingChanged(handler)); -} - -template void impl_IAltimeter::ReadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReadingChanged(token)); -} - -template Windows::Foundation::DateTime impl_IAltimeterReading::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template double impl_IAltimeterReading::AltitudeChangeInMeters() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_AltitudeChangeInMeters(&value)); - return value; -} - -template Windows::Devices::Sensors::AltimeterReading impl_IAltimeterReadingChangedEventArgs::Reading() const -{ - Windows::Devices::Sensors::AltimeterReading value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reading(put(value))); - return value; -} - -inline Windows::Devices::Sensors::Accelerometer Accelerometer::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Devices::Sensors::Accelerometer Accelerometer::GetDefault(Windows::Devices::Sensors::AccelerometerReadingType readingType) -{ - return get_activation_factory().GetDefault(readingType); -} - -inline Windows::Foundation::IAsyncOperation ActivitySensor::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -inline hstring ActivitySensor::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Foundation::IAsyncOperation ActivitySensor::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline Windows::Foundation::IAsyncOperation> ActivitySensor::GetSystemHistoryAsync(const Windows::Foundation::DateTime & fromTime) -{ - return get_activation_factory().GetSystemHistoryAsync(fromTime); -} - -inline Windows::Foundation::IAsyncOperation> ActivitySensor::GetSystemHistoryAsync(const Windows::Foundation::DateTime & fromTime, const Windows::Foundation::TimeSpan & duration) -{ - return get_activation_factory().GetSystemHistoryAsync(fromTime, duration); -} - -inline Windows::Devices::Sensors::Altimeter Altimeter::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Devices::Sensors::Barometer Barometer::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Devices::Sensors::Compass Compass::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Devices::Sensors::Gyrometer Gyrometer::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Devices::Sensors::Inclinometer Inclinometer::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Devices::Sensors::Inclinometer Inclinometer::GetDefaultForRelativeReadings() -{ - return get_activation_factory().GetDefaultForRelativeReadings(); -} - -inline Windows::Devices::Sensors::Inclinometer Inclinometer::GetDefault(Windows::Devices::Sensors::SensorReadingType sensorReadingtype) -{ - return get_activation_factory().GetDefault(sensorReadingtype); -} - -inline Windows::Devices::Sensors::LightSensor LightSensor::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Devices::Sensors::Magnetometer Magnetometer::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Devices::Sensors::OrientationSensor OrientationSensor::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Devices::Sensors::OrientationSensor OrientationSensor::GetDefaultForRelativeReadings() -{ - return get_activation_factory().GetDefaultForRelativeReadings(); -} - -inline Windows::Devices::Sensors::OrientationSensor OrientationSensor::GetDefault(Windows::Devices::Sensors::SensorReadingType sensorReadingtype) -{ - return get_activation_factory().GetDefault(sensorReadingtype); -} - -inline Windows::Devices::Sensors::OrientationSensor OrientationSensor::GetDefault(Windows::Devices::Sensors::SensorReadingType sensorReadingType, Windows::Devices::Sensors::SensorOptimizationGoal optimizationGoal) -{ - return get_activation_factory().GetDefault(sensorReadingType, optimizationGoal); -} - -inline Windows::Foundation::IAsyncOperation Pedometer::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline Windows::Foundation::IAsyncOperation Pedometer::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -inline hstring Pedometer::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Foundation::IAsyncOperation> Pedometer::GetSystemHistoryAsync(const Windows::Foundation::DateTime & fromTime) -{ - return get_activation_factory().GetSystemHistoryAsync(fromTime); -} - -inline Windows::Foundation::IAsyncOperation> Pedometer::GetSystemHistoryAsync(const Windows::Foundation::DateTime & fromTime, const Windows::Foundation::TimeSpan & duration) -{ - return get_activation_factory().GetSystemHistoryAsync(fromTime, duration); -} - -inline Windows::Foundation::Collections::IVectorView Pedometer::GetReadingsFromTriggerDetails(const Windows::Devices::Sensors::SensorDataThresholdTriggerDetails & triggerDetails) -{ - return get_activation_factory().GetReadingsFromTriggerDetails(triggerDetails); -} - -inline PedometerDataThreshold::PedometerDataThreshold(const Windows::Devices::Sensors::Pedometer & sensor, int32_t stepGoal) : - PedometerDataThreshold(get_activation_factory().Create(sensor, stepGoal)) -{} - -inline hstring ProximitySensor::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Devices::Sensors::ProximitySensor ProximitySensor::FromId(hstring_ref sensorId) -{ - return get_activation_factory().FromId(sensorId); -} - -inline Windows::Foundation::Collections::IVectorView ProximitySensor::GetReadingsFromTriggerDetails(const Windows::Devices::Sensors::SensorDataThresholdTriggerDetails & triggerDetails) -{ - return get_activation_factory().GetReadingsFromTriggerDetails(triggerDetails); -} - -inline ProximitySensorDataThreshold::ProximitySensorDataThreshold(const Windows::Devices::Sensors::ProximitySensor & sensor) : - ProximitySensorDataThreshold(get_activation_factory().Create(sensor)) -{} - -inline Windows::Devices::Sensors::SimpleOrientationSensor SimpleOrientationSensor::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.SerialCommunication.h b/10.0.14393.0/winrt/Windows.Devices.SerialCommunication.h deleted file mode 100644 index 80bfed27b..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.SerialCommunication.h +++ /dev/null @@ -1,831 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Devices.SerialCommunication.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Error(Windows::Devices::SerialCommunication::SerialError * value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PinChange(Windows::Devices::SerialCommunication::SerialPinChange * value) noexcept override - { - try - { - *value = detach(this->shim().PinChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BaudRate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BaudRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BaudRate(uint32_t value) noexcept override - { - try - { - this->shim().BaudRate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BreakSignalState(bool * value) noexcept override - { - try - { - *value = detach(this->shim().BreakSignalState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BreakSignalState(bool value) noexcept override - { - try - { - this->shim().BreakSignalState(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BytesReceived(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BytesReceived()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CarrierDetectState(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CarrierDetectState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClearToSendState(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ClearToSendState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataBits(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().DataBits()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataBits(uint16_t value) noexcept override - { - try - { - this->shim().DataBits(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataSetReadyState(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DataSetReadyState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Handshake(Windows::Devices::SerialCommunication::SerialHandshake * value) noexcept override - { - try - { - *value = detach(this->shim().Handshake()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handshake(Windows::Devices::SerialCommunication::SerialHandshake value) noexcept override - { - try - { - this->shim().Handshake(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDataTerminalReadyEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDataTerminalReadyEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDataTerminalReadyEnabled(bool value) noexcept override - { - try - { - this->shim().IsDataTerminalReadyEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRequestToSendEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRequestToSendEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsRequestToSendEnabled(bool value) noexcept override - { - try - { - this->shim().IsRequestToSendEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Parity(Windows::Devices::SerialCommunication::SerialParity * value) noexcept override - { - try - { - *value = detach(this->shim().Parity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Parity(Windows::Devices::SerialCommunication::SerialParity value) noexcept override - { - try - { - this->shim().Parity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PortName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PortName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReadTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReadTimeout(abi_arg_in value) noexcept override - { - try - { - this->shim().ReadTimeout(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StopBits(Windows::Devices::SerialCommunication::SerialStopBitCount * value) noexcept override - { - try - { - *value = detach(this->shim().StopBits()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StopBits(Windows::Devices::SerialCommunication::SerialStopBitCount value) noexcept override - { - try - { - this->shim().StopBits(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsbVendorId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsbVendorId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsbProductId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().UsbProductId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WriteTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WriteTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WriteTimeout(abi_arg_in value) noexcept override - { - try - { - this->shim().WriteTimeout(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ErrorReceived(abi_arg_in> reportHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ErrorReceived(*reinterpret_cast *>(&reportHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ErrorReceived(event_token token) noexcept override - { - try - { - this->shim().ErrorReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PinChanged(abi_arg_in> reportHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PinChanged(*reinterpret_cast *>(&reportHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PinChanged(event_token token) noexcept override - { - try - { - this->shim().PinChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromPortName(abi_arg_in portName, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeviceSelector(*reinterpret_cast(&portName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromUsbVidPid(uint16_t vendorId, uint16_t productId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeviceSelectorFromUsbVidPid(vendorId, productId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::SerialCommunication { - -template hstring impl_ISerialDeviceStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template hstring impl_ISerialDeviceStatics::GetDeviceSelector(hstring_ref portName) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromPortName(get(portName), put(result))); - return result; -} - -template hstring impl_ISerialDeviceStatics::GetDeviceSelectorFromUsbVidPid(uint16_t vendorId, uint16_t productId) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromUsbVidPid(vendorId, productId, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISerialDeviceStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(result))); - return result; -} - -template Windows::Devices::SerialCommunication::SerialError impl_IErrorReceivedEventArgs::Error() const -{ - Windows::Devices::SerialCommunication::SerialError value {}; - check_hresult(static_cast(static_cast(*this))->get_Error(&value)); - return value; -} - -template Windows::Devices::SerialCommunication::SerialPinChange impl_IPinChangedEventArgs::PinChange() const -{ - Windows::Devices::SerialCommunication::SerialPinChange value {}; - check_hresult(static_cast(static_cast(*this))->get_PinChange(&value)); - return value; -} - -template uint32_t impl_ISerialDevice::BaudRate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BaudRate(&value)); - return value; -} - -template void impl_ISerialDevice::BaudRate(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BaudRate(value)); -} - -template bool impl_ISerialDevice::BreakSignalState() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_BreakSignalState(&value)); - return value; -} - -template void impl_ISerialDevice::BreakSignalState(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BreakSignalState(value)); -} - -template uint32_t impl_ISerialDevice::BytesReceived() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BytesReceived(&value)); - return value; -} - -template bool impl_ISerialDevice::CarrierDetectState() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CarrierDetectState(&value)); - return value; -} - -template bool impl_ISerialDevice::ClearToSendState() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ClearToSendState(&value)); - return value; -} - -template uint16_t impl_ISerialDevice::DataBits() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DataBits(&value)); - return value; -} - -template void impl_ISerialDevice::DataBits(uint16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataBits(value)); -} - -template bool impl_ISerialDevice::DataSetReadyState() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DataSetReadyState(&value)); - return value; -} - -template Windows::Devices::SerialCommunication::SerialHandshake impl_ISerialDevice::Handshake() const -{ - Windows::Devices::SerialCommunication::SerialHandshake value {}; - check_hresult(static_cast(static_cast(*this))->get_Handshake(&value)); - return value; -} - -template void impl_ISerialDevice::Handshake(Windows::Devices::SerialCommunication::SerialHandshake value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handshake(value)); -} - -template bool impl_ISerialDevice::IsDataTerminalReadyEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDataTerminalReadyEnabled(&value)); - return value; -} - -template void impl_ISerialDevice::IsDataTerminalReadyEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDataTerminalReadyEnabled(value)); -} - -template bool impl_ISerialDevice::IsRequestToSendEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRequestToSendEnabled(&value)); - return value; -} - -template void impl_ISerialDevice::IsRequestToSendEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsRequestToSendEnabled(value)); -} - -template Windows::Devices::SerialCommunication::SerialParity impl_ISerialDevice::Parity() const -{ - Windows::Devices::SerialCommunication::SerialParity value {}; - check_hresult(static_cast(static_cast(*this))->get_Parity(&value)); - return value; -} - -template void impl_ISerialDevice::Parity(Windows::Devices::SerialCommunication::SerialParity value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Parity(value)); -} - -template hstring impl_ISerialDevice::PortName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PortName(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_ISerialDevice::ReadTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadTimeout(put(value))); - return value; -} - -template void impl_ISerialDevice::ReadTimeout(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReadTimeout(get(value))); -} - -template Windows::Devices::SerialCommunication::SerialStopBitCount impl_ISerialDevice::StopBits() const -{ - Windows::Devices::SerialCommunication::SerialStopBitCount value {}; - check_hresult(static_cast(static_cast(*this))->get_StopBits(&value)); - return value; -} - -template void impl_ISerialDevice::StopBits(Windows::Devices::SerialCommunication::SerialStopBitCount value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StopBits(value)); -} - -template uint16_t impl_ISerialDevice::UsbVendorId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsbVendorId(&value)); - return value; -} - -template uint16_t impl_ISerialDevice::UsbProductId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UsbProductId(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_ISerialDevice::WriteTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_WriteTimeout(put(value))); - return value; -} - -template void impl_ISerialDevice::WriteTimeout(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WriteTimeout(get(value))); -} - -template Windows::Storage::Streams::IInputStream impl_ISerialDevice::InputStream() const -{ - Windows::Storage::Streams::IInputStream value; - check_hresult(static_cast(static_cast(*this))->get_InputStream(put(value))); - return value; -} - -template Windows::Storage::Streams::IOutputStream impl_ISerialDevice::OutputStream() const -{ - Windows::Storage::Streams::IOutputStream value; - check_hresult(static_cast(static_cast(*this))->get_OutputStream(put(value))); - return value; -} - -template event_token impl_ISerialDevice::ErrorReceived(const Windows::Foundation::TypedEventHandler & reportHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ErrorReceived(get(reportHandler), &token)); - return token; -} - -template event_revoker impl_ISerialDevice::ErrorReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & reportHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::SerialCommunication::ISerialDevice::remove_ErrorReceived, ErrorReceived(reportHandler)); -} - -template void impl_ISerialDevice::ErrorReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ErrorReceived(token)); -} - -template event_token impl_ISerialDevice::PinChanged(const Windows::Foundation::TypedEventHandler & reportHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PinChanged(get(reportHandler), &token)); - return token; -} - -template event_revoker impl_ISerialDevice::PinChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & reportHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::SerialCommunication::ISerialDevice::remove_PinChanged, PinChanged(reportHandler)); -} - -template void impl_ISerialDevice::PinChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PinChanged(token)); -} - -inline hstring SerialDevice::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline hstring SerialDevice::GetDeviceSelector(hstring_ref portName) -{ - return get_activation_factory().GetDeviceSelector(portName); -} - -inline hstring SerialDevice::GetDeviceSelectorFromUsbVidPid(uint16_t vendorId, uint16_t productId) -{ - return get_activation_factory().GetDeviceSelectorFromUsbVidPid(vendorId, productId); -} - -inline Windows::Foundation::IAsyncOperation SerialDevice::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.SmartCards.h b/10.0.14393.0/winrt/Windows.Devices.SmartCards.h deleted file mode 100644 index 30b9b1e0b..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.SmartCards.h +++ /dev/null @@ -1,3502 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Security.Cryptography.Core.3.h" -#include "internal/Windows.Devices.SmartCards.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Devices::SmartCards { - -template SmartCardPinResetHandler::SmartCardPinResetHandler(L lambda) : - SmartCardPinResetHandler(impl::make_delegate, SmartCardPinResetHandler>(std::forward(lambda))) -{} - -template SmartCardPinResetHandler::SmartCardPinResetHandler(F * function) : - SmartCardPinResetHandler([=](auto && ... args) { function(args ...); }) -{} - -template SmartCardPinResetHandler::SmartCardPinResetHandler(O * object, M method) : - SmartCardPinResetHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void SmartCardPinResetHandler::operator()(const Windows::Devices::SmartCards::SmartCardProvisioning & sender, const Windows::Devices::SmartCards::SmartCardPinResetRequest & request) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(request))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SmartCard(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmartCard()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SmartCard(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmartCard()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStatusAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetStatusAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAnswerToResetAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetAnswerToResetAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppletIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AppletIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmartCardEmulationCategory(Windows::Devices::SmartCards::SmartCardEmulationCategory * value) noexcept override - { - try - { - *value = detach(this->shim().SmartCardEmulationCategory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SmartCardEmulationCategory(Windows::Devices::SmartCards::SmartCardEmulationCategory value) noexcept override - { - try - { - this->shim().SmartCardEmulationCategory(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmartCardEmulationType(Windows::Devices::SmartCards::SmartCardEmulationType * value) noexcept override - { - try - { - *value = detach(this->shim().SmartCardEmulationType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SmartCardEmulationType(Windows::Devices::SmartCards::SmartCardEmulationType value) noexcept override - { - try - { - this->shim().SmartCardEmulationType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutomaticEnablement(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutomaticEnablement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutomaticEnablement(bool value) noexcept override - { - try - { - this->shim().AutomaticEnablement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in displayName, abi_arg_in> appletIds, Windows::Devices::SmartCards::SmartCardEmulationCategory emulationCategory, Windows::Devices::SmartCards::SmartCardEmulationType emulationType, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&displayName), *reinterpret_cast *>(&appletIds), emulationCategory, emulationType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ActivationPolicy(Windows::Devices::SmartCards::SmartCardAppletIdGroupActivationPolicy * value) noexcept override - { - try - { - *value = detach(this->shim().ActivationPolicy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppletIdGroup(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppletIdGroup()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestActivationPolicyChangeAsync(Windows::Devices::SmartCards::SmartCardAppletIdGroupActivationPolicy policy, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestActivationPolicyChangeAsync(policy)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAutomaticResponseApdusAsync(abi_arg_in> apdus, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SetAutomaticResponseApdusAsync(*reinterpret_cast *>(&apdus))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxAppletIds(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxAppletIds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CommandApdu(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandApdu()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CommandApdu(abi_arg_in value) noexcept override - { - try - { - this->shim().CommandApdu(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommandApduBitMask(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandApduBitMask()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CommandApduBitMask(abi_arg_in value) noexcept override - { - try - { - this->shim().CommandApduBitMask(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShouldMatchLength(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShouldMatchLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShouldMatchLength(bool value) noexcept override - { - try - { - this->shim().ShouldMatchLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppletId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppletId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppletId(abi_arg_in value) noexcept override - { - try - { - this->shim().AppletId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResponseApdu(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResponseApdu()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ResponseApdu(abi_arg_in value) noexcept override - { - try - { - this->shim().ResponseApdu(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InputState(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InputState()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InputState(abi_arg_in> value) noexcept override - { - try - { - this->shim().InputState(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputState(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().OutputState()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutputState(abi_arg_in> value) noexcept override - { - try - { - this->shim().OutputState(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllowWhenCryptogramGeneratorNotPrepared(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowWhenCryptogramGeneratorNotPrepared()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowWhenCryptogramGeneratorNotPrepared(bool value) noexcept override - { - try - { - this->shim().AllowWhenCryptogramGeneratorNotPrepared(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in commandApdu, abi_arg_in responseApdu, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&commandApdu), *reinterpret_cast(&responseApdu))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Challenge(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Challenge()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_VerifyResponseAsync(abi_arg_in response, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().VerifyResponseAsync(*reinterpret_cast(&response))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProvisionAsync(abi_arg_in response, bool formatCard, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ProvisionAsync(*reinterpret_cast(&response), formatCard)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProvisionAsyncWithNewCardId(abi_arg_in response, bool formatCard, GUID newCardId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ProvisionAsync(*reinterpret_cast(&response), formatCard, newCardId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ChangeAdministrativeKeyAsync(abi_arg_in response, abi_arg_in newAdministrativeKey, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ChangeAdministrativeKeyAsync(*reinterpret_cast(&response), *reinterpret_cast(&newAdministrativeKey))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ConnectAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ConnectAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TransmitAsync(abi_arg_in command, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TransmitAsync(*reinterpret_cast(&command))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SupportedCryptogramMaterialTypes(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SupportedCryptogramMaterialTypes()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedCryptogramAlgorithms(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SupportedCryptogramAlgorithms()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedCryptogramMaterialPackageFormats(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SupportedCryptogramMaterialPackageFormats()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedCryptogramMaterialPackageConfirmationResponseFormats(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SupportedCryptogramMaterialPackageConfirmationResponseFormats()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedSmartCardCryptogramStorageKeyCapabilities(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SupportedSmartCardCryptogramStorageKeyCapabilities()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteCryptogramMaterialStorageKeyAsync(abi_arg_in storageKeyName, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().DeleteCryptogramMaterialStorageKeyAsync(*reinterpret_cast(&storageKeyName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCryptogramMaterialStorageKeyAsync(Windows::Devices::SmartCards::SmartCardUnlockPromptingBehavior promptingBehavior, abi_arg_in storageKeyName, Windows::Devices::SmartCards::SmartCardCryptogramStorageKeyAlgorithm algorithm, Windows::Devices::SmartCards::SmartCardCryptogramStorageKeyCapabilities capabilities, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateCryptogramMaterialStorageKeyAsync(promptingBehavior, *reinterpret_cast(&storageKeyName), algorithm, capabilities)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCryptogramMaterialStorageKeyInfoAsync(Windows::Devices::SmartCards::SmartCardUnlockPromptingBehavior promptingBehavior, abi_arg_in storageKeyName, Windows::Security::Cryptography::Core::CryptographicPublicKeyBlobType format, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestCryptogramMaterialStorageKeyInfoAsync(promptingBehavior, *reinterpret_cast(&storageKeyName), format)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportCryptogramMaterialPackageAsync(Windows::Devices::SmartCards::SmartCardCryptogramMaterialPackageFormat format, abi_arg_in storageKeyName, abi_arg_in materialPackageName, abi_arg_in cryptogramMaterialPackage, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ImportCryptogramMaterialPackageAsync(format, *reinterpret_cast(&storageKeyName), *reinterpret_cast(&materialPackageName), *reinterpret_cast(&cryptogramMaterialPackage))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryProvePossessionOfCryptogramMaterialPackageAsync(Windows::Devices::SmartCards::SmartCardUnlockPromptingBehavior promptingBehavior, Windows::Devices::SmartCards::SmartCardCryptogramMaterialPackageConfirmationResponseFormat responseFormat, abi_arg_in materialPackageName, abi_arg_in materialName, abi_arg_in challenge, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryProvePossessionOfCryptogramMaterialPackageAsync(promptingBehavior, responseFormat, *reinterpret_cast(&materialPackageName), *reinterpret_cast(&materialName), *reinterpret_cast(&challenge))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestUnlockCryptogramMaterialForUseAsync(Windows::Devices::SmartCards::SmartCardUnlockPromptingBehavior promptingBehavior, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestUnlockCryptogramMaterialForUseAsync(promptingBehavior)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteCryptogramMaterialPackageAsync(abi_arg_in materialPackageName, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().DeleteCryptogramMaterialPackageAsync(*reinterpret_cast(&materialPackageName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetSmartCardCryptogramGeneratorAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetSmartCardCryptogramGeneratorAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OperationStatus(Windows::Devices::SmartCards::SmartCardCryptogramGeneratorOperationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().OperationStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Proof(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Proof()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Algorithm(Windows::Devices::SmartCards::SmartCardCryptogramAlgorithm * value) noexcept override - { - try - { - *value = detach(this->shim().Algorithm()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Algorithm(Windows::Devices::SmartCards::SmartCardCryptogramAlgorithm value) noexcept override - { - try - { - this->shim().Algorithm(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SourceData(abi_arg_in value) noexcept override - { - try - { - this->shim().SourceData(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CryptogramMaterialPackageName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CryptogramMaterialPackageName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CryptogramMaterialPackageName(abi_arg_in value) noexcept override - { - try - { - this->shim().CryptogramMaterialPackageName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CryptogramMaterialName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CryptogramMaterialName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CryptogramMaterialName(abi_arg_in value) noexcept override - { - try - { - this->shim().CryptogramMaterialName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateOffset(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TemplateOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TemplateOffset(int32_t value) noexcept override - { - try - { - this->shim().TemplateOffset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CryptogramOffset(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CryptogramOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CryptogramOffset(int32_t value) noexcept override - { - try - { - this->shim().CryptogramOffset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CryptogramLength(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CryptogramLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CryptogramLength(int32_t value) noexcept override - { - try - { - this->shim().CryptogramLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CryptogramPlacementOptions(Windows::Devices::SmartCards::SmartCardCryptogramPlacementOptions * value) noexcept override - { - try - { - *value = detach(this->shim().CryptogramPlacementOptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CryptogramPlacementOptions(Windows::Devices::SmartCards::SmartCardCryptogramPlacementOptions value) noexcept override - { - try - { - this->shim().CryptogramPlacementOptions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChainedOutputStep(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChainedOutputStep()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChainedOutputStep(abi_arg_in value) noexcept override - { - try - { - this->shim().ChainedOutputStep(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OperationStatus(Windows::Devices::SmartCards::SmartCardCryptogramGeneratorOperationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().OperationStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PublicKeyBlobType(Windows::Security::Cryptography::Core::CryptographicPublicKeyBlobType * value) noexcept override - { - try - { - *value = detach(this->shim().PublicKeyBlobType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PublicKey(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PublicKey()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttestationStatus(Windows::Devices::SmartCards::SmartCardCryptographicKeyAttestationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().AttestationStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Attestation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Attestation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttestationCertificateChain(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AttestationCertificateChain()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Capabilities(Windows::Devices::SmartCards::SmartCardCryptogramStorageKeyCapabilities * value) noexcept override - { - try - { - *value = detach(this->shim().Capabilities()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OperationalRequirements(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OperationalRequirements()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnablementPolicy(Windows::Devices::SmartCards::SmartCardEmulatorEnablementPolicy * value) noexcept override - { - try - { - *value = detach(this->shim().EnablementPolicy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ApduReceived(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ApduReceived(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ApduReceived(event_token value) noexcept override - { - try - { - this->shim().ApduReceived(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ConnectionDeactivated(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ConnectionDeactivated(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ConnectionDeactivated(event_token value) noexcept override - { - try - { - this->shim().ConnectionDeactivated(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsHostCardEmulationSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHostCardEmulationSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CommandApdu(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandApdu()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryRespondAsync(abi_arg_in responseApdu, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryRespondAsync(*reinterpret_cast(&responseApdu))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutomaticResponseStatus(Windows::Devices::SmartCards::SmartCardAutomaticResponseStatus * value) noexcept override - { - try - { - *value = detach(this->shim().AutomaticResponseStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_State(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryRespondWithStateAsync(abi_arg_in responseApdu, abi_arg_in> nextState, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryRespondAsync(*reinterpret_cast(&responseApdu), *reinterpret_cast *>(&nextState))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryRespondWithCryptogramsAsync(abi_arg_in responseTemplate, abi_arg_in> cryptogramPlacementSteps, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryRespondWithCryptogramsAsync(*reinterpret_cast(&responseTemplate), *reinterpret_cast *>(&cryptogramPlacementSteps))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryRespondWithCryptogramsAndStateAsync(abi_arg_in responseTemplate, abi_arg_in> cryptogramPlacementSteps, abi_arg_in> nextState, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryRespondWithCryptogramsAsync(*reinterpret_cast(&responseTemplate), *reinterpret_cast *>(&cryptogramPlacementSteps), *reinterpret_cast *>(&nextState))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConnectionProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Reason(Windows::Devices::SmartCards::SmartCardEmulatorConnectionDeactivatedReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(Windows::Devices::SmartCards::SmartCardEmulatorConnectionSource * value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAppletIdGroupRegistrationsAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetAppletIdGroupRegistrationsAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterAppletIdGroupAsync(abi_arg_in appletIdGroup, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RegisterAppletIdGroupAsync(*reinterpret_cast(&appletIdGroup))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnregisterAppletIdGroupAsync(abi_arg_in registration, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UnregisterAppletIdGroupAsync(*reinterpret_cast(®istration))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxAppletIdGroupRegistrations(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxAppletIdGroupRegistrations()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MinLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinLength(uint32_t value) noexcept override - { - try - { - this->shim().MinLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxLength(uint32_t value) noexcept override - { - try - { - this->shim().MaxLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UppercaseLetters(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption * value) noexcept override - { - try - { - *value = detach(this->shim().UppercaseLetters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UppercaseLetters(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value) noexcept override - { - try - { - this->shim().UppercaseLetters(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LowercaseLetters(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption * value) noexcept override - { - try - { - *value = detach(this->shim().LowercaseLetters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LowercaseLetters(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value) noexcept override - { - try - { - this->shim().LowercaseLetters(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Digits(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption * value) noexcept override - { - try - { - *value = detach(this->shim().Digits()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Digits(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value) noexcept override - { - try - { - this->shim().Digits(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpecialCharacters(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption * value) noexcept override - { - try - { - *value = detach(this->shim().SpecialCharacters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SpecialCharacters(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value) noexcept override - { - try - { - this->shim().SpecialCharacters(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Challenge(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Challenge()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetResponse(abi_arg_in response) noexcept override - { - try - { - this->shim().SetResponse(*reinterpret_cast(&response)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SmartCard(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmartCard()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIdAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetIdAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNameAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetNameAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetChallengeContextAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetChallengeContextAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestPinChangeAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestPinChangeAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestPinResetAsync(abi_arg_in handler, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestPinResetAsync(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAuthorityKeyContainerNameAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetAuthorityKeyContainerNameAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromSmartCardAsync(abi_arg_in card, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromSmartCardAsync(*reinterpret_cast(&card))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestVirtualSmartCardCreationAsync(abi_arg_in friendlyName, abi_arg_in administrativeKey, abi_arg_in pinPolicy, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestVirtualSmartCardCreationAsync(*reinterpret_cast(&friendlyName), *reinterpret_cast(&administrativeKey), *reinterpret_cast(&pinPolicy))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestVirtualSmartCardCreationAsyncWithCardId(abi_arg_in friendlyName, abi_arg_in administrativeKey, abi_arg_in pinPolicy, GUID cardId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestVirtualSmartCardCreationAsync(*reinterpret_cast(&friendlyName), *reinterpret_cast(&administrativeKey), *reinterpret_cast(&pinPolicy), cardId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestVirtualSmartCardDeletionAsync(abi_arg_in card, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestVirtualSmartCardDeletionAsync(*reinterpret_cast(&card))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAttestedVirtualSmartCardCreationAsync(abi_arg_in friendlyName, abi_arg_in administrativeKey, abi_arg_in pinPolicy, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAttestedVirtualSmartCardCreationAsync(*reinterpret_cast(&friendlyName), *reinterpret_cast(&administrativeKey), *reinterpret_cast(&pinPolicy))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAttestedVirtualSmartCardCreationAsyncWithCardId(abi_arg_in friendlyName, abi_arg_in administrativeKey, abi_arg_in pinPolicy, GUID cardId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAttestedVirtualSmartCardCreationAsync(*reinterpret_cast(&friendlyName), *reinterpret_cast(&administrativeKey), *reinterpret_cast(&pinPolicy), cardId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::Devices::SmartCards::SmartCardReaderKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStatusAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetStatusAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllCardsAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().FindAllCardsAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CardAdded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CardAdded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CardAdded(event_token token) noexcept override - { - try - { - this->shim().CardAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CardRemoved(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CardRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CardRemoved(event_token token) noexcept override - { - try - { - this->shim().CardRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorWithKind(Windows::Devices::SmartCards::SmartCardReaderKind kind, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelector(kind)); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TriggerType(Windows::Devices::SmartCards::SmartCardTriggerType * value) noexcept override - { - try - { - *value = detach(this->shim().TriggerType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceAppletId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceAppletId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TriggerData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TriggerData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Emulator(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Emulator()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryLaunchCurrentAppAsync(abi_arg_in arguments, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryLaunchCurrentAppAsync(*reinterpret_cast(&arguments))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryLaunchCurrentAppWithBehaviorAsync(abi_arg_in arguments, Windows::Devices::SmartCards::SmartCardLaunchBehavior behavior, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().TryLaunchCurrentAppAsync(*reinterpret_cast(&arguments), behavior)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::SmartCards { - -template hstring impl_ISmartCardReaderStatics::GetDeviceSelector() const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(selector))); - return selector; -} - -template hstring impl_ISmartCardReaderStatics::GetDeviceSelector(Windows::Devices::SmartCards::SmartCardReaderKind kind) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorWithKind(kind, put(selector))); - return selector; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardReaderStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(result))); - return result; -} - -template hstring impl_ISmartCardReader::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template hstring impl_ISmartCardReader::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCardReaderKind impl_ISmartCardReader::Kind() const -{ - Windows::Devices::SmartCards::SmartCardReaderKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardReader::GetStatusAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetStatusAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_ISmartCardReader::FindAllCardsAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_FindAllCardsAsync(put(result))); - return result; -} - -template event_token impl_ISmartCardReader::CardAdded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CardAdded(get(handler), &token)); - return token; -} - -template event_revoker impl_ISmartCardReader::CardAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::SmartCards::ISmartCardReader::remove_CardAdded, CardAdded(handler)); -} - -template void impl_ISmartCardReader::CardAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CardAdded(token)); -} - -template event_token impl_ISmartCardReader::CardRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CardRemoved(get(handler), &token)); - return token; -} - -template event_revoker impl_ISmartCardReader::CardRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::SmartCards::ISmartCardReader::remove_CardRemoved, CardRemoved(handler)); -} - -template void impl_ISmartCardReader::CardRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CardRemoved(token)); -} - -template Windows::Devices::SmartCards::SmartCard impl_ICardAddedEventArgs::SmartCard() const -{ - Windows::Devices::SmartCards::SmartCard value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SmartCard(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCard impl_ICardRemovedEventArgs::SmartCard() const -{ - Windows::Devices::SmartCards::SmartCard value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SmartCard(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCardReader impl_ISmartCard::Reader() const -{ - Windows::Devices::SmartCards::SmartCardReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Reader(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCard::GetStatusAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetStatusAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCard::GetAnswerToResetAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetAnswerToResetAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioningStatics::FromSmartCardAsync(const Windows::Devices::SmartCards::SmartCard & card) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromSmartCardAsync(get(card), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioningStatics::RequestVirtualSmartCardCreationAsync(hstring_ref friendlyName, const Windows::Storage::Streams::IBuffer & administrativeKey, const Windows::Devices::SmartCards::SmartCardPinPolicy & pinPolicy) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestVirtualSmartCardCreationAsync(get(friendlyName), get(administrativeKey), get(pinPolicy), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioningStatics::RequestVirtualSmartCardCreationAsync(hstring_ref friendlyName, const Windows::Storage::Streams::IBuffer & administrativeKey, const Windows::Devices::SmartCards::SmartCardPinPolicy & pinPolicy, GUID cardId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestVirtualSmartCardCreationAsyncWithCardId(get(friendlyName), get(administrativeKey), get(pinPolicy), cardId, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioningStatics::RequestVirtualSmartCardDeletionAsync(const Windows::Devices::SmartCards::SmartCard & card) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestVirtualSmartCardDeletionAsync(get(card), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioningStatics2::RequestAttestedVirtualSmartCardCreationAsync(hstring_ref friendlyName, const Windows::Storage::Streams::IBuffer & administrativeKey, const Windows::Devices::SmartCards::SmartCardPinPolicy & pinPolicy) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAttestedVirtualSmartCardCreationAsync(get(friendlyName), get(administrativeKey), get(pinPolicy), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioningStatics2::RequestAttestedVirtualSmartCardCreationAsync(hstring_ref friendlyName, const Windows::Storage::Streams::IBuffer & administrativeKey, const Windows::Devices::SmartCards::SmartCardPinPolicy & pinPolicy, GUID cardId) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAttestedVirtualSmartCardCreationAsyncWithCardId(get(friendlyName), get(administrativeKey), get(pinPolicy), cardId, put(result))); - return result; -} - -template Windows::Devices::SmartCards::SmartCard impl_ISmartCardProvisioning::SmartCard() const -{ - Windows::Devices::SmartCards::SmartCard value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SmartCard(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioning::GetIdAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetIdAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioning::GetNameAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetNameAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioning::GetChallengeContextAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetChallengeContextAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioning::RequestPinChangeAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestPinChangeAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioning::RequestPinResetAsync(const Windows::Devices::SmartCards::SmartCardPinResetHandler & handler) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestPinResetAsync(get(handler), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardProvisioning2::GetAuthorityKeyContainerNameAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetAuthorityKeyContainerNameAsync(put(result))); - return result; -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardPinResetRequest::Challenge() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Challenge(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ISmartCardPinResetRequest::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCardPinResetDeferral impl_ISmartCardPinResetRequest::GetDeferral() const -{ - Windows::Devices::SmartCards::SmartCardPinResetDeferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -template void impl_ISmartCardPinResetRequest::SetResponse(const Windows::Storage::Streams::IBuffer & response) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetResponse(get(response))); -} - -template void impl_ISmartCardPinResetDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template uint32_t impl_ISmartCardPinPolicy::MinLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinLength(&value)); - return value; -} - -template void impl_ISmartCardPinPolicy::MinLength(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinLength(value)); -} - -template uint32_t impl_ISmartCardPinPolicy::MaxLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxLength(&value)); - return value; -} - -template void impl_ISmartCardPinPolicy::MaxLength(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxLength(value)); -} - -template Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption impl_ISmartCardPinPolicy::UppercaseLetters() const -{ - Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value {}; - check_hresult(static_cast(static_cast(*this))->get_UppercaseLetters(&value)); - return value; -} - -template void impl_ISmartCardPinPolicy::UppercaseLetters(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UppercaseLetters(value)); -} - -template Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption impl_ISmartCardPinPolicy::LowercaseLetters() const -{ - Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value {}; - check_hresult(static_cast(static_cast(*this))->get_LowercaseLetters(&value)); - return value; -} - -template void impl_ISmartCardPinPolicy::LowercaseLetters(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LowercaseLetters(value)); -} - -template Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption impl_ISmartCardPinPolicy::Digits() const -{ - Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value {}; - check_hresult(static_cast(static_cast(*this))->get_Digits(&value)); - return value; -} - -template void impl_ISmartCardPinPolicy::Digits(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Digits(value)); -} - -template Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption impl_ISmartCardPinPolicy::SpecialCharacters() const -{ - Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value {}; - check_hresult(static_cast(static_cast(*this))->get_SpecialCharacters(&value)); - return value; -} - -template void impl_ISmartCardPinPolicy::SpecialCharacters(Windows::Devices::SmartCards::SmartCardPinCharacterPolicyOption value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SpecialCharacters(value)); -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardConnect::ConnectAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ConnectAsync(put(result))); - return result; -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardChallengeContext::Challenge() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Challenge(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardChallengeContext::VerifyResponseAsync(const Windows::Storage::Streams::IBuffer & response) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_VerifyResponseAsync(get(response), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_ISmartCardChallengeContext::ProvisionAsync(const Windows::Storage::Streams::IBuffer & response, bool formatCard) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ProvisionAsync(get(response), formatCard, put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_ISmartCardChallengeContext::ProvisionAsync(const Windows::Storage::Streams::IBuffer & response, bool formatCard, GUID newCardId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ProvisionAsyncWithNewCardId(get(response), formatCard, newCardId, put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_ISmartCardChallengeContext::ChangeAdministrativeKeyAsync(const Windows::Storage::Streams::IBuffer & response, const Windows::Storage::Streams::IBuffer & newAdministrativeKey) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ChangeAdministrativeKeyAsync(get(response), get(newAdministrativeKey), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardConnection::TransmitAsync(const Windows::Storage::Streams::IBuffer & command) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TransmitAsync(get(command), put(result))); - return result; -} - -template Windows::Devices::SmartCards::SmartCardTriggerType impl_ISmartCardTriggerDetails::TriggerType() const -{ - Windows::Devices::SmartCards::SmartCardTriggerType value {}; - check_hresult(static_cast(static_cast(*this))->get_TriggerType(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardTriggerDetails::SourceAppletId() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_SourceAppletId(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardTriggerDetails::TriggerData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_TriggerData(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCardEmulator impl_ISmartCardTriggerDetails2::Emulator() const -{ - Windows::Devices::SmartCards::SmartCardEmulator value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Emulator(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardTriggerDetails2::TryLaunchCurrentAppAsync(hstring_ref arguments) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryLaunchCurrentAppAsync(get(arguments), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardTriggerDetails2::TryLaunchCurrentAppAsync(hstring_ref arguments, Windows::Devices::SmartCards::SmartCardLaunchBehavior behavior) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryLaunchCurrentAppWithBehaviorAsync(get(arguments), behavior, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardEmulatorStatics::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_ISmartCardEmulatorStatics2::GetAppletIdGroupRegistrationsAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetAppletIdGroupRegistrationsAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardEmulatorStatics2::RegisterAppletIdGroupAsync(const Windows::Devices::SmartCards::SmartCardAppletIdGroup & appletIdGroup) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RegisterAppletIdGroupAsync(get(appletIdGroup), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_ISmartCardEmulatorStatics2::UnregisterAppletIdGroupAsync(const Windows::Devices::SmartCards::SmartCardAppletIdGroupRegistration & registration) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_UnregisterAppletIdGroupAsync(get(registration), put(result))); - return result; -} - -template uint16_t impl_ISmartCardEmulatorStatics2::MaxAppletIdGroupRegistrations() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxAppletIdGroupRegistrations(&value)); - return value; -} - -template Windows::Devices::SmartCards::SmartCardEmulatorEnablementPolicy impl_ISmartCardEmulator::EnablementPolicy() const -{ - Windows::Devices::SmartCards::SmartCardEmulatorEnablementPolicy value {}; - check_hresult(static_cast(static_cast(*this))->get_EnablementPolicy(&value)); - return value; -} - -template event_token impl_ISmartCardEmulator2::ApduReceived(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ApduReceived(get(value), &token)); - return token; -} - -template event_revoker impl_ISmartCardEmulator2::ApduReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::SmartCards::ISmartCardEmulator2::remove_ApduReceived, ApduReceived(value)); -} - -template void impl_ISmartCardEmulator2::ApduReceived(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ApduReceived(value)); -} - -template event_token impl_ISmartCardEmulator2::ConnectionDeactivated(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ConnectionDeactivated(get(value), &token)); - return token; -} - -template event_revoker impl_ISmartCardEmulator2::ConnectionDeactivated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::SmartCards::ISmartCardEmulator2::remove_ConnectionDeactivated, ConnectionDeactivated(value)); -} - -template void impl_ISmartCardEmulator2::ConnectionDeactivated(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ConnectionDeactivated(value)); -} - -template void impl_ISmartCardEmulator2::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template bool impl_ISmartCardEmulator2::IsHostCardEmulationSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsHostCardEmulationSupported(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardEmulatorApduReceivedEventArgs::CommandApdu() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_CommandApdu(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCardEmulatorConnectionProperties impl_ISmartCardEmulatorApduReceivedEventArgs::ConnectionProperties() const -{ - Windows::Devices::SmartCards::SmartCardEmulatorConnectionProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ConnectionProperties(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardEmulatorApduReceivedEventArgs::TryRespondAsync(const Windows::Storage::Streams::IBuffer & responseApdu) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryRespondAsync(get(responseApdu), put(result))); - return result; -} - -template Windows::Devices::SmartCards::SmartCardAutomaticResponseStatus impl_ISmartCardEmulatorApduReceivedEventArgs::AutomaticResponseStatus() const -{ - Windows::Devices::SmartCards::SmartCardAutomaticResponseStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_AutomaticResponseStatus(&value)); - return value; -} - -template uint32_t impl_ISmartCardEmulatorApduReceivedEventArgs2::State() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardEmulatorApduReceivedEventArgs2::TryRespondAsync(const Windows::Storage::Streams::IBuffer & responseApdu, const Windows::Foundation::IReference & nextState) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryRespondWithStateAsync(get(responseApdu), get(nextState), put(result))); - return result; -} - -template GUID impl_ISmartCardEmulatorConnectionProperties::Id() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Devices::SmartCards::SmartCardEmulatorConnectionSource impl_ISmartCardEmulatorConnectionProperties::Source() const -{ - Windows::Devices::SmartCards::SmartCardEmulatorConnectionSource value {}; - check_hresult(static_cast(static_cast(*this))->get_Source(&value)); - return value; -} - -template Windows::Devices::SmartCards::SmartCardEmulatorConnectionProperties impl_ISmartCardEmulatorConnectionDeactivatedEventArgs::ConnectionProperties() const -{ - Windows::Devices::SmartCards::SmartCardEmulatorConnectionProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ConnectionProperties(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCardEmulatorConnectionDeactivatedReason impl_ISmartCardEmulatorConnectionDeactivatedEventArgs::Reason() const -{ - Windows::Devices::SmartCards::SmartCardEmulatorConnectionDeactivatedReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template hstring impl_ISmartCardAppletIdGroup::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_ISmartCardAppletIdGroup::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_ISmartCardAppletIdGroup::AppletIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_AppletIds(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCardEmulationCategory impl_ISmartCardAppletIdGroup::SmartCardEmulationCategory() const -{ - Windows::Devices::SmartCards::SmartCardEmulationCategory value {}; - check_hresult(static_cast(static_cast(*this))->get_SmartCardEmulationCategory(&value)); - return value; -} - -template void impl_ISmartCardAppletIdGroup::SmartCardEmulationCategory(Windows::Devices::SmartCards::SmartCardEmulationCategory value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SmartCardEmulationCategory(value)); -} - -template Windows::Devices::SmartCards::SmartCardEmulationType impl_ISmartCardAppletIdGroup::SmartCardEmulationType() const -{ - Windows::Devices::SmartCards::SmartCardEmulationType value {}; - check_hresult(static_cast(static_cast(*this))->get_SmartCardEmulationType(&value)); - return value; -} - -template void impl_ISmartCardAppletIdGroup::SmartCardEmulationType(Windows::Devices::SmartCards::SmartCardEmulationType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SmartCardEmulationType(value)); -} - -template bool impl_ISmartCardAppletIdGroup::AutomaticEnablement() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutomaticEnablement(&value)); - return value; -} - -template void impl_ISmartCardAppletIdGroup::AutomaticEnablement(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutomaticEnablement(value)); -} - -template Windows::Devices::SmartCards::SmartCardAppletIdGroup impl_ISmartCardAppletIdGroupFactory::Create(hstring_ref displayName, const Windows::Foundation::Collections::IVector & appletIds, Windows::Devices::SmartCards::SmartCardEmulationCategory emulationCategory, Windows::Devices::SmartCards::SmartCardEmulationType emulationType) const -{ - Windows::Devices::SmartCards::SmartCardAppletIdGroup result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(displayName), get(appletIds), emulationCategory, emulationType, put(result))); - return result; -} - -template uint16_t impl_ISmartCardAppletIdGroupStatics::MaxAppletIds() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxAppletIds(&value)); - return value; -} - -template Windows::Devices::SmartCards::SmartCardAppletIdGroupActivationPolicy impl_ISmartCardAppletIdGroupRegistration::ActivationPolicy() const -{ - Windows::Devices::SmartCards::SmartCardAppletIdGroupActivationPolicy value {}; - check_hresult(static_cast(static_cast(*this))->get_ActivationPolicy(&value)); - return value; -} - -template Windows::Devices::SmartCards::SmartCardAppletIdGroup impl_ISmartCardAppletIdGroupRegistration::AppletIdGroup() const -{ - Windows::Devices::SmartCards::SmartCardAppletIdGroup value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppletIdGroup(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardAppletIdGroupRegistration::RequestActivationPolicyChangeAsync(Windows::Devices::SmartCards::SmartCardAppletIdGroupActivationPolicy policy) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestActivationPolicyChangeAsync(policy, put(result))); - return result; -} - -template GUID impl_ISmartCardAppletIdGroupRegistration::Id() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ISmartCardAppletIdGroupRegistration::SetAutomaticResponseApdusAsync(const Windows::Foundation::Collections::IIterable & apdus) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SetAutomaticResponseApdusAsync(get(apdus), put(result))); - return result; -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardAutomaticResponseApdu::CommandApdu() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_CommandApdu(put(value))); - return value; -} - -template void impl_ISmartCardAutomaticResponseApdu::CommandApdu(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CommandApdu(get(value))); -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardAutomaticResponseApdu::CommandApduBitMask() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_CommandApduBitMask(put(value))); - return value; -} - -template void impl_ISmartCardAutomaticResponseApdu::CommandApduBitMask(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CommandApduBitMask(get(value))); -} - -template bool impl_ISmartCardAutomaticResponseApdu::ShouldMatchLength() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShouldMatchLength(&value)); - return value; -} - -template void impl_ISmartCardAutomaticResponseApdu::ShouldMatchLength(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShouldMatchLength(value)); -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardAutomaticResponseApdu::AppletId() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_AppletId(put(value))); - return value; -} - -template void impl_ISmartCardAutomaticResponseApdu::AppletId(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppletId(get(value))); -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardAutomaticResponseApdu::ResponseApdu() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_ResponseApdu(put(value))); - return value; -} - -template void impl_ISmartCardAutomaticResponseApdu::ResponseApdu(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ResponseApdu(get(value))); -} - -template Windows::Foundation::IReference impl_ISmartCardAutomaticResponseApdu2::InputState() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InputState(put(value))); - return value; -} - -template void impl_ISmartCardAutomaticResponseApdu2::InputState(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InputState(get(value))); -} - -template Windows::Foundation::IReference impl_ISmartCardAutomaticResponseApdu2::OutputState() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_OutputState(put(value))); - return value; -} - -template void impl_ISmartCardAutomaticResponseApdu2::OutputState(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutputState(get(value))); -} - -template bool impl_ISmartCardAutomaticResponseApdu3::AllowWhenCryptogramGeneratorNotPrepared() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowWhenCryptogramGeneratorNotPrepared(&value)); - return value; -} - -template void impl_ISmartCardAutomaticResponseApdu3::AllowWhenCryptogramGeneratorNotPrepared(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowWhenCryptogramGeneratorNotPrepared(value)); -} - -template Windows::Devices::SmartCards::SmartCardAutomaticResponseApdu impl_ISmartCardAutomaticResponseApduFactory::Create(const Windows::Storage::Streams::IBuffer & commandApdu, const Windows::Storage::Streams::IBuffer & responseApdu) const -{ - Windows::Devices::SmartCards::SmartCardAutomaticResponseApdu result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(commandApdu), get(responseApdu), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardEmulatorApduReceivedEventArgsWithCryptograms::TryRespondWithCryptogramsAsync(const Windows::Storage::Streams::IBuffer & responseTemplate, const Windows::Foundation::Collections::IIterable & cryptogramPlacementSteps) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryRespondWithCryptogramsAsync(get(responseTemplate), get(cryptogramPlacementSteps), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardEmulatorApduReceivedEventArgsWithCryptograms::TryRespondWithCryptogramsAsync(const Windows::Storage::Streams::IBuffer & responseTemplate, const Windows::Foundation::Collections::IIterable & cryptogramPlacementSteps, const Windows::Foundation::IReference & nextState) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryRespondWithCryptogramsAndStateAsync(get(responseTemplate), get(cryptogramPlacementSteps), get(nextState), put(result))); - return result; -} - -template Windows::Devices::SmartCards::SmartCardCryptogramGeneratorOperationStatus impl_ISmartCardCryptogramStorageKeyInfo::OperationStatus() const -{ - Windows::Devices::SmartCards::SmartCardCryptogramGeneratorOperationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_OperationStatus(&value)); - return value; -} - -template Windows::Security::Cryptography::Core::CryptographicPublicKeyBlobType impl_ISmartCardCryptogramStorageKeyInfo::PublicKeyBlobType() const -{ - Windows::Security::Cryptography::Core::CryptographicPublicKeyBlobType value {}; - check_hresult(static_cast(static_cast(*this))->get_PublicKeyBlobType(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardCryptogramStorageKeyInfo::PublicKey() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_PublicKey(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCardCryptographicKeyAttestationStatus impl_ISmartCardCryptogramStorageKeyInfo::AttestationStatus() const -{ - Windows::Devices::SmartCards::SmartCardCryptographicKeyAttestationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_AttestationStatus(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardCryptogramStorageKeyInfo::Attestation() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Attestation(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardCryptogramStorageKeyInfo::AttestationCertificateChain() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_AttestationCertificateChain(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCardCryptogramStorageKeyCapabilities impl_ISmartCardCryptogramStorageKeyInfo::Capabilities() const -{ - Windows::Devices::SmartCards::SmartCardCryptogramStorageKeyCapabilities value {}; - check_hresult(static_cast(static_cast(*this))->get_Capabilities(&value)); - return value; -} - -template hstring impl_ISmartCardCryptogramStorageKeyInfo2::OperationalRequirements() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OperationalRequirements(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCardCryptogramGeneratorOperationStatus impl_ISmartCardCryptogramMaterialPossessionProof::OperationStatus() const -{ - Windows::Devices::SmartCards::SmartCardCryptogramGeneratorOperationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_OperationStatus(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardCryptogramMaterialPossessionProof::Proof() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Proof(put(value))); - return value; -} - -template Windows::Devices::SmartCards::SmartCardCryptogramAlgorithm impl_ISmartCardCryptogramPlacementStep::Algorithm() const -{ - Windows::Devices::SmartCards::SmartCardCryptogramAlgorithm value {}; - check_hresult(static_cast(static_cast(*this))->get_Algorithm(&value)); - return value; -} - -template void impl_ISmartCardCryptogramPlacementStep::Algorithm(Windows::Devices::SmartCards::SmartCardCryptogramAlgorithm value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Algorithm(value)); -} - -template Windows::Storage::Streams::IBuffer impl_ISmartCardCryptogramPlacementStep::SourceData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_SourceData(put(value))); - return value; -} - -template void impl_ISmartCardCryptogramPlacementStep::SourceData(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SourceData(get(value))); -} - -template hstring impl_ISmartCardCryptogramPlacementStep::CryptogramMaterialPackageName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CryptogramMaterialPackageName(put(value))); - return value; -} - -template void impl_ISmartCardCryptogramPlacementStep::CryptogramMaterialPackageName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CryptogramMaterialPackageName(get(value))); -} - -template hstring impl_ISmartCardCryptogramPlacementStep::CryptogramMaterialName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CryptogramMaterialName(put(value))); - return value; -} - -template void impl_ISmartCardCryptogramPlacementStep::CryptogramMaterialName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CryptogramMaterialName(get(value))); -} - -template int32_t impl_ISmartCardCryptogramPlacementStep::TemplateOffset() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TemplateOffset(&value)); - return value; -} - -template void impl_ISmartCardCryptogramPlacementStep::TemplateOffset(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TemplateOffset(value)); -} - -template int32_t impl_ISmartCardCryptogramPlacementStep::CryptogramOffset() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CryptogramOffset(&value)); - return value; -} - -template void impl_ISmartCardCryptogramPlacementStep::CryptogramOffset(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CryptogramOffset(value)); -} - -template int32_t impl_ISmartCardCryptogramPlacementStep::CryptogramLength() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CryptogramLength(&value)); - return value; -} - -template void impl_ISmartCardCryptogramPlacementStep::CryptogramLength(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CryptogramLength(value)); -} - -template Windows::Devices::SmartCards::SmartCardCryptogramPlacementOptions impl_ISmartCardCryptogramPlacementStep::CryptogramPlacementOptions() const -{ - Windows::Devices::SmartCards::SmartCardCryptogramPlacementOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_CryptogramPlacementOptions(&value)); - return value; -} - -template void impl_ISmartCardCryptogramPlacementStep::CryptogramPlacementOptions(Windows::Devices::SmartCards::SmartCardCryptogramPlacementOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CryptogramPlacementOptions(value)); -} - -template Windows::Devices::SmartCards::SmartCardCryptogramPlacementStep impl_ISmartCardCryptogramPlacementStep::ChainedOutputStep() const -{ - Windows::Devices::SmartCards::SmartCardCryptogramPlacementStep value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChainedOutputStep(put(value))); - return value; -} - -template void impl_ISmartCardCryptogramPlacementStep::ChainedOutputStep(const Windows::Devices::SmartCards::SmartCardCryptogramPlacementStep & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChainedOutputStep(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardCryptogramGeneratorStatics::GetSmartCardCryptogramGeneratorAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetSmartCardCryptogramGeneratorAsync(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_ISmartCardCryptogramGenerator::SupportedCryptogramMaterialTypes() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->get_SupportedCryptogramMaterialTypes(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_ISmartCardCryptogramGenerator::SupportedCryptogramAlgorithms() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->get_SupportedCryptogramAlgorithms(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_ISmartCardCryptogramGenerator::SupportedCryptogramMaterialPackageFormats() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->get_SupportedCryptogramMaterialPackageFormats(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_ISmartCardCryptogramGenerator::SupportedCryptogramMaterialPackageConfirmationResponseFormats() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->get_SupportedCryptogramMaterialPackageConfirmationResponseFormats(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_ISmartCardCryptogramGenerator::SupportedSmartCardCryptogramStorageKeyCapabilities() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->get_SupportedSmartCardCryptogramStorageKeyCapabilities(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardCryptogramGenerator::DeleteCryptogramMaterialStorageKeyAsync(hstring_ref storageKeyName) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteCryptogramMaterialStorageKeyAsync(get(storageKeyName), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardCryptogramGenerator::CreateCryptogramMaterialStorageKeyAsync(Windows::Devices::SmartCards::SmartCardUnlockPromptingBehavior promptingBehavior, hstring_ref storageKeyName, Windows::Devices::SmartCards::SmartCardCryptogramStorageKeyAlgorithm algorithm, Windows::Devices::SmartCards::SmartCardCryptogramStorageKeyCapabilities capabilities) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateCryptogramMaterialStorageKeyAsync(promptingBehavior, get(storageKeyName), algorithm, capabilities, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardCryptogramGenerator::RequestCryptogramMaterialStorageKeyInfoAsync(Windows::Devices::SmartCards::SmartCardUnlockPromptingBehavior promptingBehavior, hstring_ref storageKeyName, Windows::Security::Cryptography::Core::CryptographicPublicKeyBlobType format) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestCryptogramMaterialStorageKeyInfoAsync(promptingBehavior, get(storageKeyName), format, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardCryptogramGenerator::ImportCryptogramMaterialPackageAsync(Windows::Devices::SmartCards::SmartCardCryptogramMaterialPackageFormat format, hstring_ref storageKeyName, hstring_ref materialPackageName, const Windows::Storage::Streams::IBuffer & cryptogramMaterialPackage) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ImportCryptogramMaterialPackageAsync(format, get(storageKeyName), get(materialPackageName), get(cryptogramMaterialPackage), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardCryptogramGenerator::TryProvePossessionOfCryptogramMaterialPackageAsync(Windows::Devices::SmartCards::SmartCardUnlockPromptingBehavior promptingBehavior, Windows::Devices::SmartCards::SmartCardCryptogramMaterialPackageConfirmationResponseFormat responseFormat, hstring_ref materialPackageName, hstring_ref materialName, const Windows::Storage::Streams::IBuffer & challenge) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_TryProvePossessionOfCryptogramMaterialPackageAsync(promptingBehavior, responseFormat, get(materialPackageName), get(materialName), get(challenge), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardCryptogramGenerator::RequestUnlockCryptogramMaterialForUseAsync(Windows::Devices::SmartCards::SmartCardUnlockPromptingBehavior promptingBehavior) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestUnlockCryptogramMaterialForUseAsync(promptingBehavior, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISmartCardCryptogramGenerator::DeleteCryptogramMaterialPackageAsync(hstring_ref materialPackageName) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteCryptogramMaterialPackageAsync(get(materialPackageName), put(result))); - return result; -} - -inline SmartCardAppletIdGroup::SmartCardAppletIdGroup() : - SmartCardAppletIdGroup(activate_instance()) -{} - -inline SmartCardAppletIdGroup::SmartCardAppletIdGroup(hstring_ref displayName, const Windows::Foundation::Collections::IVector & appletIds, Windows::Devices::SmartCards::SmartCardEmulationCategory emulationCategory, Windows::Devices::SmartCards::SmartCardEmulationType emulationType) : - SmartCardAppletIdGroup(get_activation_factory().Create(displayName, appletIds, emulationCategory, emulationType)) -{} - -inline uint16_t SmartCardAppletIdGroup::MaxAppletIds() -{ - return get_activation_factory().MaxAppletIds(); -} - -inline SmartCardAutomaticResponseApdu::SmartCardAutomaticResponseApdu(const Windows::Storage::Streams::IBuffer & commandApdu, const Windows::Storage::Streams::IBuffer & responseApdu) : - SmartCardAutomaticResponseApdu(get_activation_factory().Create(commandApdu, responseApdu)) -{} - -inline Windows::Foundation::IAsyncOperation SmartCardCryptogramGenerator::GetSmartCardCryptogramGeneratorAsync() -{ - return get_activation_factory().GetSmartCardCryptogramGeneratorAsync(); -} - -inline SmartCardCryptogramPlacementStep::SmartCardCryptogramPlacementStep() : - SmartCardCryptogramPlacementStep(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation SmartCardEmulator::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -inline Windows::Foundation::IAsyncOperation> SmartCardEmulator::GetAppletIdGroupRegistrationsAsync() -{ - return get_activation_factory().GetAppletIdGroupRegistrationsAsync(); -} - -inline Windows::Foundation::IAsyncOperation SmartCardEmulator::RegisterAppletIdGroupAsync(const Windows::Devices::SmartCards::SmartCardAppletIdGroup & appletIdGroup) -{ - return get_activation_factory().RegisterAppletIdGroupAsync(appletIdGroup); -} - -inline Windows::Foundation::IAsyncAction SmartCardEmulator::UnregisterAppletIdGroupAsync(const Windows::Devices::SmartCards::SmartCardAppletIdGroupRegistration & registration) -{ - return get_activation_factory().UnregisterAppletIdGroupAsync(registration); -} - -inline uint16_t SmartCardEmulator::MaxAppletIdGroupRegistrations() -{ - return get_activation_factory().MaxAppletIdGroupRegistrations(); -} - -inline SmartCardPinPolicy::SmartCardPinPolicy() : - SmartCardPinPolicy(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation SmartCardProvisioning::FromSmartCardAsync(const Windows::Devices::SmartCards::SmartCard & card) -{ - return get_activation_factory().FromSmartCardAsync(card); -} - -inline Windows::Foundation::IAsyncOperation SmartCardProvisioning::RequestVirtualSmartCardCreationAsync(hstring_ref friendlyName, const Windows::Storage::Streams::IBuffer & administrativeKey, const Windows::Devices::SmartCards::SmartCardPinPolicy & pinPolicy) -{ - return get_activation_factory().RequestVirtualSmartCardCreationAsync(friendlyName, administrativeKey, pinPolicy); -} - -inline Windows::Foundation::IAsyncOperation SmartCardProvisioning::RequestVirtualSmartCardCreationAsync(hstring_ref friendlyName, const Windows::Storage::Streams::IBuffer & administrativeKey, const Windows::Devices::SmartCards::SmartCardPinPolicy & pinPolicy, GUID cardId) -{ - return get_activation_factory().RequestVirtualSmartCardCreationAsync(friendlyName, administrativeKey, pinPolicy, cardId); -} - -inline Windows::Foundation::IAsyncOperation SmartCardProvisioning::RequestVirtualSmartCardDeletionAsync(const Windows::Devices::SmartCards::SmartCard & card) -{ - return get_activation_factory().RequestVirtualSmartCardDeletionAsync(card); -} - -inline Windows::Foundation::IAsyncOperation SmartCardProvisioning::RequestAttestedVirtualSmartCardCreationAsync(hstring_ref friendlyName, const Windows::Storage::Streams::IBuffer & administrativeKey, const Windows::Devices::SmartCards::SmartCardPinPolicy & pinPolicy) -{ - return get_activation_factory().RequestAttestedVirtualSmartCardCreationAsync(friendlyName, administrativeKey, pinPolicy); -} - -inline Windows::Foundation::IAsyncOperation SmartCardProvisioning::RequestAttestedVirtualSmartCardCreationAsync(hstring_ref friendlyName, const Windows::Storage::Streams::IBuffer & administrativeKey, const Windows::Devices::SmartCards::SmartCardPinPolicy & pinPolicy, GUID cardId) -{ - return get_activation_factory().RequestAttestedVirtualSmartCardCreationAsync(friendlyName, administrativeKey, pinPolicy, cardId); -} - -inline hstring SmartCardReader::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline hstring SmartCardReader::GetDeviceSelector(Windows::Devices::SmartCards::SmartCardReaderKind kind) -{ - return get_activation_factory().GetDeviceSelector(kind); -} - -inline Windows::Foundation::IAsyncOperation SmartCardReader::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Sms.h b/10.0.14393.0/winrt/Windows.Devices.Sms.h deleted file mode 100644 index 83266dd2c..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Sms.h +++ /dev/null @@ -1,3736 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Sms.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Devices::Sms { - -template SmsDeviceStatusChangedEventHandler::SmsDeviceStatusChangedEventHandler(L lambda) : - SmsDeviceStatusChangedEventHandler(impl::make_delegate, SmsDeviceStatusChangedEventHandler>(std::forward(lambda))) -{} - -template SmsDeviceStatusChangedEventHandler::SmsDeviceStatusChangedEventHandler(F * function) : - SmsDeviceStatusChangedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template SmsDeviceStatusChangedEventHandler::SmsDeviceStatusChangedEventHandler(O * object, M method) : - SmsDeviceStatusChangedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void SmsDeviceStatusChangedEventHandler::operator()(const Windows::Devices::Sms::SmsDevice & sender) const -{ - check_hresult((*this)->abi_Invoke(get(sender))); -} - -template SmsMessageReceivedEventHandler::SmsMessageReceivedEventHandler(L lambda) : - SmsMessageReceivedEventHandler(impl::make_delegate, SmsMessageReceivedEventHandler>(std::forward(lambda))) -{} - -template SmsMessageReceivedEventHandler::SmsMessageReceivedEventHandler(F * function) : - SmsMessageReceivedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template SmsMessageReceivedEventHandler::SmsMessageReceivedEventHandler(O * object, M method) : - SmsMessageReceivedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void SmsMessageReceivedEventHandler::operator()(const Windows::Devices::Sms::SmsDevice & sender, const Windows::Devices::Sms::SmsMessageReceivedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_To(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().To()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_To(abi_arg_in value) noexcept override - { - try - { - this->shim().To(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_From(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().From()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Body(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Body()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Body(abi_arg_in value) noexcept override - { - try - { - this->shim().Body(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallbackNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CallbackNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CallbackNumber(abi_arg_in value) noexcept override - { - try - { - this->shim().CallbackNumber(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDeliveryNotificationEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDeliveryNotificationEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDeliveryNotificationEnabled(bool value) noexcept override - { - try - { - this->shim().IsDeliveryNotificationEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RetryAttemptCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RetryAttemptCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RetryAttemptCount(int32_t value) noexcept override - { - try - { - this->shim().RetryAttemptCount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Encoding(Windows::Devices::Sms::SmsEncoding * value) noexcept override - { - try - { - *value = detach(this->shim().Encoding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Encoding(Windows::Devices::Sms::SmsEncoding value) noexcept override - { - try - { - this->shim().Encoding(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PortNumber(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PortNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PortNumber(int32_t value) noexcept override - { - try - { - this->shim().PortNumber(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TeleserviceId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TeleserviceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TeleserviceId(int32_t value) noexcept override - { - try - { - this->shim().TeleserviceId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtocolId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ProtocolId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProtocolId(int32_t value) noexcept override - { - try - { - this->shim().ProtocolId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BinaryBody(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BinaryBody()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BinaryBody(abi_arg_in value) noexcept override - { - try - { - this->shim().BinaryBody(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Format(Windows::Devices::Sms::SmsDataFormat * value) noexcept override - { - try - { - *value = detach(this->shim().Format()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Format(Windows::Devices::Sms::SmsDataFormat value) noexcept override - { - try - { - this->shim().Format(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetData(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().GetData()); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetData(uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().SetData(array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_To(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().To()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Body(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Body()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Channel(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Channel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GeographicalScope(Windows::Devices::Sms::SmsGeographicalScope * value) noexcept override - { - try - { - *value = detach(this->shim().GeographicalScope()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageCode(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MessageCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpdateNumber(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UpdateNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BroadcastType(Windows::Devices::Sms::SmsBroadcastType * value) noexcept override - { - try - { - *value = detach(this->shim().BroadcastType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEmergencyAlert(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEmergencyAlert()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsUserPopupRequested(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsUserPopupRequested()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SendMessageAsync(abi_arg_in message, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SendMessageAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CalculateLength(abi_arg_in message, abi_arg_out encodedLength) noexcept override - { - try - { - *encodedLength = detach(this->shim().CalculateLength(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccountPhoneNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccountPhoneNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CellularClass(Windows::Devices::Sms::CellularClass * value) noexcept override - { - try - { - *value = detach(this->shim().CellularClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageStore(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MessageStore()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceStatus(Windows::Devices::Sms::SmsDeviceStatus * value) noexcept override - { - try - { - *value = detach(this->shim().DeviceStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SmsMessageReceived(abi_arg_in eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().SmsMessageReceived(*reinterpret_cast(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SmsMessageReceived(event_token eventCookie) noexcept override - { - try - { - this->shim().SmsMessageReceived(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SmsDeviceStatusChanged(abi_arg_in eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().SmsDeviceStatusChanged(*reinterpret_cast(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SmsDeviceStatusChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().SmsDeviceStatusChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SmscAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmscAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SmscAddress(abi_arg_in value) noexcept override - { - try - { - this->shim().SmscAddress(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ParentDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ParentDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccountPhoneNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccountPhoneNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CellularClass(Windows::Devices::Sms::CellularClass * value) noexcept override - { - try - { - *value = detach(this->shim().CellularClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceStatus(Windows::Devices::Sms::SmsDeviceStatus * value) noexcept override - { - try - { - *value = detach(this->shim().DeviceStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CalculateLength(abi_arg_in message, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalculateLength(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendMessageAndGetResultAsync(abi_arg_in message, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SendMessageAndGetResultAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DeviceStatusChanged(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().DeviceStatusChanged(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DeviceStatusChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().DeviceStatusChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromId(abi_arg_in deviceId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FromId(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefault(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromParentId(abi_arg_in parentDeviceId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FromParentId(*reinterpret_cast(&parentDeviceId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_DeleteMessageAsync(uint32_t messageId, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().DeleteMessageAsync(messageId)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteMessagesAsync(Windows::Devices::Sms::SmsMessageFilter messageFilter, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().DeleteMessagesAsync(messageFilter)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessageAsync(uint32_t messageId, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetMessageAsync(messageId)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMessagesAsync(Windows::Devices::Sms::SmsMessageFilter messageFilter, abi_arg_out, int32_t>> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetMessagesAsync(messageFilter)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxMessages(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxMessages()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out phstrDeviceClassSelector) noexcept override - { - try - { - *phstrDeviceClassSelector = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *phstrDeviceClassSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromNetworkAccountIdAsync(abi_arg_in networkAccountId, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().FromNetworkAccountIdAsync(*reinterpret_cast(&networkAccountId))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MessageType(Windows::Devices::Sms::SmsMessageType * value) noexcept override - { - try - { - *value = detach(this->shim().MessageType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImsiPrefixes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ImsiPrefixes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DeviceIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SenderNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SenderNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextMessagePrefixes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TextMessagePrefixes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PortNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PortNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CellularClass(Windows::Devices::Sms::CellularClass * value) noexcept override - { - try - { - *value = detach(this->shim().CellularClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CellularClass(Windows::Devices::Sms::CellularClass value) noexcept override - { - try - { - this->shim().CellularClass(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtocolIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ProtocolIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TeleserviceIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TeleserviceIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WapApplicationIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().WapApplicationIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WapContentTypes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().WapContentTypes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BroadcastTypes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BroadcastTypes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BroadcastChannels(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BroadcastChannels()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFilterRule(Windows::Devices::Sms::SmsMessageType messageType, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFilterRule(messageType)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ActionType(Windows::Devices::Sms::SmsFilterActionType * value) noexcept override - { - try - { - *value = detach(this->shim().ActionType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rules(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Rules()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFilterRules(Windows::Devices::Sms::SmsFilterActionType actionType, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFilterRules(actionType)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageClass(Windows::Devices::Sms::SmsMessageClass * value) noexcept override - { - try - { - *value = detach(this->shim().MessageClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MessageType(Windows::Devices::Sms::SmsMessageType * value) noexcept override - { - try - { - *value = detach(this->shim().MessageType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CellularClass(Windows::Devices::Sms::CellularClass * value) noexcept override - { - try - { - *value = detach(this->shim().CellularClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageClass(Windows::Devices::Sms::SmsMessageClass * value) noexcept override - { - try - { - *value = detach(this->shim().MessageClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SimIccId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SimIccId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BinaryMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BinaryMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MessageType(Windows::Devices::Sms::SmsMessageType * value) noexcept override - { - try - { - *value = detach(this->shim().MessageType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WapMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WapMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BroadcastMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BroadcastMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VoicemailMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VoicemailMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StatusMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StatusMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Drop() noexcept override - { - try - { - this->shim().Drop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Accept() noexcept override - { - try - { - this->shim().Accept(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Unregister() noexcept override - { - try - { - this->shim().Unregister(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MessageReceived(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().MessageReceived(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MessageReceived(event_token eventCookie) noexcept override - { - try - { - this->shim().MessageReceived(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllRegistrations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AllRegistrations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Register(abi_arg_in id, abi_arg_in filterRules, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Register(*reinterpret_cast(&id), *reinterpret_cast(&filterRules))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageIndex(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MessageIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MessageClass(Windows::Devices::Sms::SmsMessageClass * value) noexcept override - { - try - { - *value = detach(this->shim().MessageClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BinaryMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BinaryMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSuccessful(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSuccessful()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageReferenceNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MessageReferenceNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CellularClass(Windows::Devices::Sms::CellularClass * value) noexcept override - { - try - { - *value = detach(this->shim().CellularClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModemErrorCode(Windows::Devices::Sms::SmsModemErrorCode * value) noexcept override - { - try - { - *value = detach(this->shim().ModemErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsErrorTransient(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsErrorTransient()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkCauseCode(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkCauseCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportFailureCause(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TransportFailureCause()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_To(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().To()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_From(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().From()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Body(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Body()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageReferenceNumber(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MessageReferenceNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceCenterTimestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceCenterTimestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DischargeTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DischargeTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PartReferenceId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PartReferenceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PartNumber(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PartNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PartCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PartCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_To(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().To()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_To(abi_arg_in value) noexcept override - { - try - { - this->shim().To(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_From(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().From()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_From(abi_arg_in value) noexcept override - { - try - { - this->shim().From(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Body(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Body()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Body(abi_arg_in value) noexcept override - { - try - { - this->shim().Body(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Encoding(Windows::Devices::Sms::SmsEncoding * value) noexcept override - { - try - { - *value = detach(this->shim().Encoding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Encoding(Windows::Devices::Sms::SmsEncoding value) noexcept override - { - try - { - this->shim().Encoding(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ToBinaryMessages(Windows::Devices::Sms::SmsDataFormat format, abi_arg_out> messages) noexcept override - { - try - { - *messages = detach(this->shim().ToBinaryMessages(format)); - return S_OK; - } - catch (...) - { - *messages = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_To(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().To()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_To(abi_arg_in value) noexcept override - { - try - { - this->shim().To(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_From(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().From()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Body(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Body()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Body(abi_arg_in value) noexcept override - { - try - { - this->shim().Body(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Encoding(Windows::Devices::Sms::SmsEncoding * value) noexcept override - { - try - { - *value = detach(this->shim().Encoding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Encoding(Windows::Devices::Sms::SmsEncoding value) noexcept override - { - try - { - this->shim().Encoding(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallbackNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CallbackNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CallbackNumber(abi_arg_in value) noexcept override - { - try - { - this->shim().CallbackNumber(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDeliveryNotificationEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDeliveryNotificationEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDeliveryNotificationEnabled(bool value) noexcept override - { - try - { - this->shim().IsDeliveryNotificationEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RetryAttemptCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RetryAttemptCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RetryAttemptCount(int32_t value) noexcept override - { - try - { - this->shim().RetryAttemptCount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TeleserviceId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TeleserviceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtocolId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ProtocolId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromBinaryMessage(abi_arg_in binaryMessage, abi_arg_out textMessage) noexcept override - { - try - { - *textMessage = detach(this->shim().FromBinaryMessage(*reinterpret_cast(&binaryMessage))); - return S_OK; - } - catch (...) - { - *textMessage = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromBinaryData(Windows::Devices::Sms::SmsDataFormat format, uint32_t __valueSize, abi_arg_in * value, abi_arg_out textMessage) noexcept override - { - try - { - *textMessage = detach(this->shim().FromBinaryData(format, array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *textMessage = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_To(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().To()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Body(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Body()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageCount(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MessageCount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_To(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().To()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_From(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().From()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApplicationId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BinaryBody(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BinaryBody()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Headers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Headers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Sms { - -template Windows::Devices::Sms::SmsMessageType impl_ISmsMessageBase::MessageType() const -{ - Windows::Devices::Sms::SmsMessageType value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageType(&value)); - return value; -} - -template hstring impl_ISmsMessageBase::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Sms::CellularClass impl_ISmsMessageBase::CellularClass() const -{ - Windows::Devices::Sms::CellularClass value {}; - check_hresult(static_cast(static_cast(*this))->get_CellularClass(&value)); - return value; -} - -template Windows::Devices::Sms::SmsMessageClass impl_ISmsMessageBase::MessageClass() const -{ - Windows::Devices::Sms::SmsMessageClass value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageClass(&value)); - return value; -} - -template hstring impl_ISmsMessageBase::SimIccId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SimIccId(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ISmsTextMessage2::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template hstring impl_ISmsTextMessage2::To() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_To(put(value))); - return value; -} - -template void impl_ISmsTextMessage2::To(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_To(get(value))); -} - -template hstring impl_ISmsTextMessage2::From() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_From(put(value))); - return value; -} - -template hstring impl_ISmsTextMessage2::Body() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Body(put(value))); - return value; -} - -template void impl_ISmsTextMessage2::Body(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Body(get(value))); -} - -template Windows::Devices::Sms::SmsEncoding impl_ISmsTextMessage2::Encoding() const -{ - Windows::Devices::Sms::SmsEncoding value {}; - check_hresult(static_cast(static_cast(*this))->get_Encoding(&value)); - return value; -} - -template void impl_ISmsTextMessage2::Encoding(Windows::Devices::Sms::SmsEncoding value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Encoding(value)); -} - -template hstring impl_ISmsTextMessage2::CallbackNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CallbackNumber(put(value))); - return value; -} - -template void impl_ISmsTextMessage2::CallbackNumber(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CallbackNumber(get(value))); -} - -template bool impl_ISmsTextMessage2::IsDeliveryNotificationEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDeliveryNotificationEnabled(&value)); - return value; -} - -template void impl_ISmsTextMessage2::IsDeliveryNotificationEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDeliveryNotificationEnabled(value)); -} - -template int32_t impl_ISmsTextMessage2::RetryAttemptCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RetryAttemptCount(&value)); - return value; -} - -template void impl_ISmsTextMessage2::RetryAttemptCount(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RetryAttemptCount(value)); -} - -template int32_t impl_ISmsTextMessage2::TeleserviceId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TeleserviceId(&value)); - return value; -} - -template int32_t impl_ISmsTextMessage2::ProtocolId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtocolId(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_ISmsWapMessage::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template hstring impl_ISmsWapMessage::To() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_To(put(value))); - return value; -} - -template hstring impl_ISmsWapMessage::From() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_From(put(value))); - return value; -} - -template hstring impl_ISmsWapMessage::ApplicationId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ApplicationId(put(value))); - return value; -} - -template hstring impl_ISmsWapMessage::ContentType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContentType(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISmsWapMessage::BinaryBody() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_BinaryBody(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMap impl_ISmsWapMessage::Headers() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_Headers(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ISmsAppMessage::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template hstring impl_ISmsAppMessage::To() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_To(put(value))); - return value; -} - -template void impl_ISmsAppMessage::To(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_To(get(value))); -} - -template hstring impl_ISmsAppMessage::From() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_From(put(value))); - return value; -} - -template hstring impl_ISmsAppMessage::Body() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Body(put(value))); - return value; -} - -template void impl_ISmsAppMessage::Body(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Body(get(value))); -} - -template hstring impl_ISmsAppMessage::CallbackNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CallbackNumber(put(value))); - return value; -} - -template void impl_ISmsAppMessage::CallbackNumber(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CallbackNumber(get(value))); -} - -template bool impl_ISmsAppMessage::IsDeliveryNotificationEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDeliveryNotificationEnabled(&value)); - return value; -} - -template void impl_ISmsAppMessage::IsDeliveryNotificationEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDeliveryNotificationEnabled(value)); -} - -template int32_t impl_ISmsAppMessage::RetryAttemptCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RetryAttemptCount(&value)); - return value; -} - -template void impl_ISmsAppMessage::RetryAttemptCount(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RetryAttemptCount(value)); -} - -template Windows::Devices::Sms::SmsEncoding impl_ISmsAppMessage::Encoding() const -{ - Windows::Devices::Sms::SmsEncoding value {}; - check_hresult(static_cast(static_cast(*this))->get_Encoding(&value)); - return value; -} - -template void impl_ISmsAppMessage::Encoding(Windows::Devices::Sms::SmsEncoding value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Encoding(value)); -} - -template int32_t impl_ISmsAppMessage::PortNumber() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PortNumber(&value)); - return value; -} - -template void impl_ISmsAppMessage::PortNumber(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PortNumber(value)); -} - -template int32_t impl_ISmsAppMessage::TeleserviceId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TeleserviceId(&value)); - return value; -} - -template void impl_ISmsAppMessage::TeleserviceId(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TeleserviceId(value)); -} - -template int32_t impl_ISmsAppMessage::ProtocolId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtocolId(&value)); - return value; -} - -template void impl_ISmsAppMessage::ProtocolId(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProtocolId(value)); -} - -template Windows::Storage::Streams::IBuffer impl_ISmsAppMessage::BinaryBody() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_BinaryBody(put(value))); - return value; -} - -template void impl_ISmsAppMessage::BinaryBody(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BinaryBody(get(value))); -} - -template Windows::Foundation::DateTime impl_ISmsBroadcastMessage::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template hstring impl_ISmsBroadcastMessage::To() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_To(put(value))); - return value; -} - -template hstring impl_ISmsBroadcastMessage::Body() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Body(put(value))); - return value; -} - -template int32_t impl_ISmsBroadcastMessage::Channel() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Channel(&value)); - return value; -} - -template Windows::Devices::Sms::SmsGeographicalScope impl_ISmsBroadcastMessage::GeographicalScope() const -{ - Windows::Devices::Sms::SmsGeographicalScope value {}; - check_hresult(static_cast(static_cast(*this))->get_GeographicalScope(&value)); - return value; -} - -template int32_t impl_ISmsBroadcastMessage::MessageCode() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageCode(&value)); - return value; -} - -template int32_t impl_ISmsBroadcastMessage::UpdateNumber() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UpdateNumber(&value)); - return value; -} - -template Windows::Devices::Sms::SmsBroadcastType impl_ISmsBroadcastMessage::BroadcastType() const -{ - Windows::Devices::Sms::SmsBroadcastType value {}; - check_hresult(static_cast(static_cast(*this))->get_BroadcastType(&value)); - return value; -} - -template bool impl_ISmsBroadcastMessage::IsEmergencyAlert() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEmergencyAlert(&value)); - return value; -} - -template bool impl_ISmsBroadcastMessage::IsUserPopupRequested() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsUserPopupRequested(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_ISmsVoicemailMessage::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template hstring impl_ISmsVoicemailMessage::To() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_To(put(value))); - return value; -} - -template hstring impl_ISmsVoicemailMessage::Body() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Body(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ISmsVoicemailMessage::MessageCount() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MessageCount(put(value))); - return value; -} - -template hstring impl_ISmsStatusMessage::To() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_To(put(value))); - return value; -} - -template hstring impl_ISmsStatusMessage::From() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_From(put(value))); - return value; -} - -template hstring impl_ISmsStatusMessage::Body() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Body(put(value))); - return value; -} - -template int32_t impl_ISmsStatusMessage::Status() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template int32_t impl_ISmsStatusMessage::MessageReferenceNumber() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageReferenceNumber(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_ISmsStatusMessage::ServiceCenterTimestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceCenterTimestamp(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ISmsStatusMessage::DischargeTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_DischargeTime(put(value))); - return value; -} - -template bool impl_ISmsSendMessageResult::IsSuccessful() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSuccessful(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISmsSendMessageResult::MessageReferenceNumbers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_MessageReferenceNumbers(put(value))); - return value; -} - -template Windows::Devices::Sms::CellularClass impl_ISmsSendMessageResult::CellularClass() const -{ - Windows::Devices::Sms::CellularClass value {}; - check_hresult(static_cast(static_cast(*this))->get_CellularClass(&value)); - return value; -} - -template Windows::Devices::Sms::SmsModemErrorCode impl_ISmsSendMessageResult::ModemErrorCode() const -{ - Windows::Devices::Sms::SmsModemErrorCode value {}; - check_hresult(static_cast(static_cast(*this))->get_ModemErrorCode(&value)); - return value; -} - -template bool impl_ISmsSendMessageResult::IsErrorTransient() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsErrorTransient(&value)); - return value; -} - -template int32_t impl_ISmsSendMessageResult::NetworkCauseCode() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkCauseCode(&value)); - return value; -} - -template int32_t impl_ISmsSendMessageResult::TransportFailureCause() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TransportFailureCause(&value)); - return value; -} - -template hstring impl_ISmsDevice2Statics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsDevice2 impl_ISmsDevice2Statics::FromId(hstring_ref deviceId) const -{ - Windows::Devices::Sms::SmsDevice2 value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromId(get(deviceId), put(value))); - return value; -} - -template Windows::Devices::Sms::SmsDevice2 impl_ISmsDevice2Statics::GetDefault() const -{ - Windows::Devices::Sms::SmsDevice2 value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsDevice2 impl_ISmsDevice2Statics::FromParentId(hstring_ref parentDeviceId) const -{ - Windows::Devices::Sms::SmsDevice2 value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromParentId(get(parentDeviceId), put(value))); - return value; -} - -template hstring impl_ISmsDevice2::SmscAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SmscAddress(put(value))); - return value; -} - -template void impl_ISmsDevice2::SmscAddress(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SmscAddress(get(value))); -} - -template hstring impl_ISmsDevice2::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template hstring impl_ISmsDevice2::ParentDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ParentDeviceId(put(value))); - return value; -} - -template hstring impl_ISmsDevice2::AccountPhoneNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AccountPhoneNumber(put(value))); - return value; -} - -template Windows::Devices::Sms::CellularClass impl_ISmsDevice2::CellularClass() const -{ - Windows::Devices::Sms::CellularClass value {}; - check_hresult(static_cast(static_cast(*this))->get_CellularClass(&value)); - return value; -} - -template Windows::Devices::Sms::SmsDeviceStatus impl_ISmsDevice2::DeviceStatus() const -{ - Windows::Devices::Sms::SmsDeviceStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_DeviceStatus(&value)); - return value; -} - -template Windows::Devices::Sms::SmsEncodedLength impl_ISmsDevice2::CalculateLength(const Windows::Devices::Sms::ISmsMessageBase & message) const -{ - Windows::Devices::Sms::SmsEncodedLength value {}; - check_hresult(static_cast(static_cast(*this))->abi_CalculateLength(get(message), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISmsDevice2::SendMessageAndGetResultAsync(const Windows::Devices::Sms::ISmsMessageBase & message) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SendMessageAndGetResultAsync(get(message), put(asyncInfo))); - return asyncInfo; -} - -template event_token impl_ISmsDevice2::DeviceStatusChanged(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_DeviceStatusChanged(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_ISmsDevice2::DeviceStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sms::ISmsDevice2::remove_DeviceStatusChanged, DeviceStatusChanged(eventHandler)); -} - -template void impl_ISmsDevice2::DeviceStatusChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DeviceStatusChanged(eventCookie)); -} - -template Windows::Devices::Sms::SmsMessageType impl_ISmsMessageReceivedTriggerDetails::MessageType() const -{ - Windows::Devices::Sms::SmsMessageType value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageType(&value)); - return value; -} - -template Windows::Devices::Sms::SmsTextMessage2 impl_ISmsMessageReceivedTriggerDetails::TextMessage() const -{ - Windows::Devices::Sms::SmsTextMessage2 value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextMessage(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsWapMessage impl_ISmsMessageReceivedTriggerDetails::WapMessage() const -{ - Windows::Devices::Sms::SmsWapMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WapMessage(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsAppMessage impl_ISmsMessageReceivedTriggerDetails::AppMessage() const -{ - Windows::Devices::Sms::SmsAppMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppMessage(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsBroadcastMessage impl_ISmsMessageReceivedTriggerDetails::BroadcastMessage() const -{ - Windows::Devices::Sms::SmsBroadcastMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BroadcastMessage(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsVoicemailMessage impl_ISmsMessageReceivedTriggerDetails::VoicemailMessage() const -{ - Windows::Devices::Sms::SmsVoicemailMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VoicemailMessage(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsStatusMessage impl_ISmsMessageReceivedTriggerDetails::StatusMessage() const -{ - Windows::Devices::Sms::SmsStatusMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StatusMessage(put(value))); - return value; -} - -template void impl_ISmsMessageReceivedTriggerDetails::Drop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Drop()); -} - -template void impl_ISmsMessageReceivedTriggerDetails::Accept() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Accept()); -} - -template Windows::Devices::Sms::SmsMessageType impl_ISmsFilterRule::MessageType() const -{ - Windows::Devices::Sms::SmsMessageType value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageType(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRule::ImsiPrefixes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ImsiPrefixes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRule::DeviceIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DeviceIds(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRule::SenderNumbers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SenderNumbers(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRule::TextMessagePrefixes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_TextMessagePrefixes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRule::PortNumbers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_PortNumbers(put(value))); - return value; -} - -template Windows::Devices::Sms::CellularClass impl_ISmsFilterRule::CellularClass() const -{ - Windows::Devices::Sms::CellularClass value {}; - check_hresult(static_cast(static_cast(*this))->get_CellularClass(&value)); - return value; -} - -template void impl_ISmsFilterRule::CellularClass(Windows::Devices::Sms::CellularClass value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CellularClass(value)); -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRule::ProtocolIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ProtocolIds(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRule::TeleserviceIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_TeleserviceIds(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRule::WapApplicationIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_WapApplicationIds(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRule::WapContentTypes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_WapContentTypes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRule::BroadcastTypes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_BroadcastTypes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRule::BroadcastChannels() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_BroadcastChannels(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsFilterRule impl_ISmsFilterRuleFactory::CreateFilterRule(Windows::Devices::Sms::SmsMessageType messageType) const -{ - Windows::Devices::Sms::SmsFilterRule value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFilterRule(messageType, put(value))); - return value; -} - -template Windows::Devices::Sms::SmsFilterActionType impl_ISmsFilterRules::ActionType() const -{ - Windows::Devices::Sms::SmsFilterActionType value {}; - check_hresult(static_cast(static_cast(*this))->get_ActionType(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISmsFilterRules::Rules() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Rules(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsFilterRules impl_ISmsFilterRulesFactory::CreateFilterRules(Windows::Devices::Sms::SmsFilterActionType actionType) const -{ - Windows::Devices::Sms::SmsFilterRules value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFilterRules(actionType, put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISmsMessageRegistrationStatics::AllRegistrations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AllRegistrations(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsMessageRegistration impl_ISmsMessageRegistrationStatics::Register(hstring_ref id, const Windows::Devices::Sms::SmsFilterRules & filterRules) const -{ - Windows::Devices::Sms::SmsMessageRegistration value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Register(get(id), get(filterRules), put(value))); - return value; -} - -template hstring impl_ISmsMessageRegistration::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template void impl_ISmsMessageRegistration::Unregister() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Unregister()); -} - -template event_token impl_ISmsMessageRegistration::MessageReceived(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_MessageReceived(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_ISmsMessageRegistration::MessageReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sms::ISmsMessageRegistration::remove_MessageReceived, MessageReceived(eventHandler)); -} - -template void impl_ISmsMessageRegistration::MessageReceived(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MessageReceived(eventCookie)); -} - -template uint32_t impl_ISmsMessage::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Devices::Sms::SmsMessageClass impl_ISmsMessage::MessageClass() const -{ - Windows::Devices::Sms::SmsMessageClass value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageClass(&value)); - return value; -} - -template Windows::Devices::Sms::SmsDataFormat impl_ISmsBinaryMessage::Format() const -{ - Windows::Devices::Sms::SmsDataFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_Format(&value)); - return value; -} - -template void impl_ISmsBinaryMessage::Format(Windows::Devices::Sms::SmsDataFormat value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Format(value)); -} - -template com_array impl_ISmsBinaryMessage::GetData() const -{ - com_array value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetData(put_size(value), put(value))); - return value; -} - -template void impl_ISmsBinaryMessage::SetData(array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetData(value.size(), get(value))); -} - -template Windows::Foundation::DateTime impl_ISmsTextMessage::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template uint32_t impl_ISmsTextMessage::PartReferenceId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PartReferenceId(&value)); - return value; -} - -template uint32_t impl_ISmsTextMessage::PartNumber() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PartNumber(&value)); - return value; -} - -template uint32_t impl_ISmsTextMessage::PartCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PartCount(&value)); - return value; -} - -template hstring impl_ISmsTextMessage::To() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_To(put(value))); - return value; -} - -template void impl_ISmsTextMessage::To(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_To(get(value))); -} - -template hstring impl_ISmsTextMessage::From() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_From(put(value))); - return value; -} - -template void impl_ISmsTextMessage::From(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_From(get(value))); -} - -template hstring impl_ISmsTextMessage::Body() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Body(put(value))); - return value; -} - -template void impl_ISmsTextMessage::Body(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Body(get(value))); -} - -template Windows::Devices::Sms::SmsEncoding impl_ISmsTextMessage::Encoding() const -{ - Windows::Devices::Sms::SmsEncoding value {}; - check_hresult(static_cast(static_cast(*this))->get_Encoding(&value)); - return value; -} - -template void impl_ISmsTextMessage::Encoding(Windows::Devices::Sms::SmsEncoding value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Encoding(value)); -} - -template Windows::Foundation::Collections::IVectorView impl_ISmsTextMessage::ToBinaryMessages(Windows::Devices::Sms::SmsDataFormat format) const -{ - Windows::Foundation::Collections::IVectorView messages; - check_hresult(static_cast(static_cast(*this))->abi_ToBinaryMessages(format, put(messages))); - return messages; -} - -template Windows::Devices::Sms::SmsTextMessage impl_ISmsTextMessageStatics::FromBinaryMessage(const Windows::Devices::Sms::SmsBinaryMessage & binaryMessage) const -{ - Windows::Devices::Sms::SmsTextMessage textMessage { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromBinaryMessage(get(binaryMessage), put(textMessage))); - return textMessage; -} - -template Windows::Devices::Sms::SmsTextMessage impl_ISmsTextMessageStatics::FromBinaryData(Windows::Devices::Sms::SmsDataFormat format, array_ref value) const -{ - Windows::Devices::Sms::SmsTextMessage textMessage { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromBinaryData(format, value.size(), get(value), put(textMessage))); - return textMessage; -} - -template Windows::Foundation::IAsyncAction impl_ISmsDeviceMessageStore::DeleteMessageAsync(uint32_t messageId) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_DeleteMessageAsync(messageId, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_ISmsDeviceMessageStore::DeleteMessagesAsync(Windows::Devices::Sms::SmsMessageFilter messageFilter) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_DeleteMessagesAsync(messageFilter, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_ISmsDeviceMessageStore::GetMessageAsync(uint32_t messageId) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageAsync(messageId, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperationWithProgress, int32_t> impl_ISmsDeviceMessageStore::GetMessagesAsync(Windows::Devices::Sms::SmsMessageFilter messageFilter) const -{ - Windows::Foundation::IAsyncOperationWithProgress, int32_t> asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetMessagesAsync(messageFilter, put(asyncInfo))); - return asyncInfo; -} - -template uint32_t impl_ISmsDeviceMessageStore::MaxMessages() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxMessages(&value)); - return value; -} - -template Windows::Devices::Sms::SmsTextMessage impl_ISmsMessageReceivedEventArgs::TextMessage() const -{ - Windows::Devices::Sms::SmsTextMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextMessage(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsBinaryMessage impl_ISmsMessageReceivedEventArgs::BinaryMessage() const -{ - Windows::Devices::Sms::SmsBinaryMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BinaryMessage(put(value))); - return value; -} - -template hstring impl_ISmsDeviceStatics::GetDeviceSelector() const -{ - hstring phstrDeviceClassSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(phstrDeviceClassSelector))); - return phstrDeviceClassSelector; -} - -template Windows::Foundation::IAsyncOperation impl_ISmsDeviceStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_ISmsDeviceStatics::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_ISmsDeviceStatics2::FromNetworkAccountIdAsync(hstring_ref networkAccountId) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_FromNetworkAccountIdAsync(get(networkAccountId), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Devices::Sms::SendSmsMessageOperation impl_ISmsDevice::SendMessageAsync(const Windows::Devices::Sms::ISmsMessage & message) const -{ - Windows::Devices::Sms::SendSmsMessageOperation asyncInfo { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SendMessageAsync(get(message), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Devices::Sms::SmsEncodedLength impl_ISmsDevice::CalculateLength(const Windows::Devices::Sms::SmsTextMessage & message) const -{ - Windows::Devices::Sms::SmsEncodedLength encodedLength {}; - check_hresult(static_cast(static_cast(*this))->abi_CalculateLength(get(message), put(encodedLength))); - return encodedLength; -} - -template hstring impl_ISmsDevice::AccountPhoneNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AccountPhoneNumber(put(value))); - return value; -} - -template Windows::Devices::Sms::CellularClass impl_ISmsDevice::CellularClass() const -{ - Windows::Devices::Sms::CellularClass value {}; - check_hresult(static_cast(static_cast(*this))->get_CellularClass(&value)); - return value; -} - -template Windows::Devices::Sms::SmsDeviceMessageStore impl_ISmsDevice::MessageStore() const -{ - Windows::Devices::Sms::SmsDeviceMessageStore value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MessageStore(put(value))); - return value; -} - -template Windows::Devices::Sms::SmsDeviceStatus impl_ISmsDevice::DeviceStatus() const -{ - Windows::Devices::Sms::SmsDeviceStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_DeviceStatus(&value)); - return value; -} - -template event_token impl_ISmsDevice::SmsMessageReceived(const Windows::Devices::Sms::SmsMessageReceivedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_SmsMessageReceived(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_ISmsDevice::SmsMessageReceived(auto_revoke_t, const Windows::Devices::Sms::SmsMessageReceivedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sms::ISmsDevice::remove_SmsMessageReceived, SmsMessageReceived(eventHandler)); -} - -template void impl_ISmsDevice::SmsMessageReceived(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SmsMessageReceived(eventCookie)); -} - -template event_token impl_ISmsDevice::SmsDeviceStatusChanged(const Windows::Devices::Sms::SmsDeviceStatusChangedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_SmsDeviceStatusChanged(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_ISmsDevice::SmsDeviceStatusChanged(auto_revoke_t, const Windows::Devices::Sms::SmsDeviceStatusChangedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Sms::ISmsDevice::remove_SmsDeviceStatusChanged, SmsDeviceStatusChanged(eventHandler)); -} - -template void impl_ISmsDevice::SmsDeviceStatusChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SmsDeviceStatusChanged(eventCookie)); -} - -template hstring impl_ISmsReceivedEventDetails::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template uint32_t impl_ISmsReceivedEventDetails::MessageIndex() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageIndex(&value)); - return value; -} - -template Windows::Devices::Sms::SmsMessageClass impl_ISmsReceivedEventDetails2::MessageClass() const -{ - Windows::Devices::Sms::SmsMessageClass value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageClass(&value)); - return value; -} - -template Windows::Devices::Sms::SmsBinaryMessage impl_ISmsReceivedEventDetails2::BinaryMessage() const -{ - Windows::Devices::Sms::SmsBinaryMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BinaryMessage(put(value))); - return value; -} - -inline SmsAppMessage::SmsAppMessage() : - SmsAppMessage(activate_instance()) -{} - -inline SmsBinaryMessage::SmsBinaryMessage() : - SmsBinaryMessage(activate_instance()) -{} - -inline hstring SmsDevice::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Foundation::IAsyncOperation SmsDevice::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline Windows::Foundation::IAsyncOperation SmsDevice::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -inline Windows::Foundation::IAsyncOperation SmsDevice::FromNetworkAccountIdAsync(hstring_ref networkAccountId) -{ - return get_activation_factory().FromNetworkAccountIdAsync(networkAccountId); -} - -inline hstring SmsDevice2::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Devices::Sms::SmsDevice2 SmsDevice2::FromId(hstring_ref deviceId) -{ - return get_activation_factory().FromId(deviceId); -} - -inline Windows::Devices::Sms::SmsDevice2 SmsDevice2::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Devices::Sms::SmsDevice2 SmsDevice2::FromParentId(hstring_ref parentDeviceId) -{ - return get_activation_factory().FromParentId(parentDeviceId); -} - -inline SmsFilterRule::SmsFilterRule(Windows::Devices::Sms::SmsMessageType messageType) : - SmsFilterRule(get_activation_factory().CreateFilterRule(messageType)) -{} - -inline SmsFilterRules::SmsFilterRules(Windows::Devices::Sms::SmsFilterActionType actionType) : - SmsFilterRules(get_activation_factory().CreateFilterRules(actionType)) -{} - -inline Windows::Foundation::Collections::IVectorView SmsMessageRegistration::AllRegistrations() -{ - return get_activation_factory().AllRegistrations(); -} - -inline Windows::Devices::Sms::SmsMessageRegistration SmsMessageRegistration::Register(hstring_ref id, const Windows::Devices::Sms::SmsFilterRules & filterRules) -{ - return get_activation_factory().Register(id, filterRules); -} - -inline SmsTextMessage::SmsTextMessage() : - SmsTextMessage(activate_instance()) -{} - -inline Windows::Devices::Sms::SmsTextMessage SmsTextMessage::FromBinaryMessage(const Windows::Devices::Sms::SmsBinaryMessage & binaryMessage) -{ - return get_activation_factory().FromBinaryMessage(binaryMessage); -} - -inline Windows::Devices::Sms::SmsTextMessage SmsTextMessage::FromBinaryData(Windows::Devices::Sms::SmsDataFormat format, array_ref value) -{ - return get_activation_factory().FromBinaryData(format, value); -} - -inline SmsTextMessage2::SmsTextMessage2() : - SmsTextMessage2(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Spi.Provider.h b/10.0.14393.0/winrt/Windows.Devices.Spi.Provider.h deleted file mode 100644 index 07439f0df..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Spi.Provider.h +++ /dev/null @@ -1,411 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Spi.Provider.3.h" -#include "Windows.Devices.Spi.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChipSelectLine(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChipSelectLine()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChipSelectLine(int32_t value) noexcept override - { - try - { - this->shim().ChipSelectLine(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mode(Windows::Devices::Spi::Provider::ProviderSpiMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::Devices::Spi::Provider::ProviderSpiMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataBitLength(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DataBitLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataBitLength(int32_t value) noexcept override - { - try - { - this->shim().DataBitLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClockFrequency(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ClockFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClockFrequency(int32_t value) noexcept override - { - try - { - this->shim().ClockFrequency(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SharingMode(Windows::Devices::Spi::Provider::ProviderSpiSharingMode * value) noexcept override - { - try - { - *value = detach(this->shim().SharingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SharingMode(Windows::Devices::Spi::Provider::ProviderSpiSharingMode value) noexcept override - { - try - { - this->shim().SharingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(int32_t chipSelectLine, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(chipSelectLine)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceProvider(abi_arg_in settings, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeviceProvider(*reinterpret_cast(&settings))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Write(uint32_t __bufferSize, abi_arg_in * buffer) noexcept override - { - try - { - this->shim().Write(array_ref(buffer, buffer + __bufferSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Read(uint32_t __bufferSize, abi_arg_out buffer) noexcept override - { - try - { - this->shim().Read(*buffer); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferSequential(uint32_t __writeBufferSize, abi_arg_in * writeBuffer, uint32_t __readBufferSize, abi_arg_out readBuffer) noexcept override - { - try - { - this->shim().TransferSequential(array_ref(writeBuffer, writeBuffer + __writeBufferSize), *readBuffer); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferFullDuplex(uint32_t __writeBufferSize, abi_arg_in * writeBuffer, uint32_t __readBufferSize, abi_arg_out readBuffer) noexcept override - { - try - { - this->shim().TransferFullDuplex(array_ref(writeBuffer, writeBuffer + __writeBufferSize), *readBuffer); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetControllersAsync(abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetControllersAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Spi::Provider { - -template Windows::Devices::Spi::Provider::ProviderSpiConnectionSettings impl_IProviderSpiConnectionSettingsFactory::Create(int32_t chipSelectLine) const -{ - Windows::Devices::Spi::Provider::ProviderSpiConnectionSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(chipSelectLine, put(value))); - return value; -} - -template int32_t impl_IProviderSpiConnectionSettings::ChipSelectLine() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChipSelectLine(&value)); - return value; -} - -template void impl_IProviderSpiConnectionSettings::ChipSelectLine(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChipSelectLine(value)); -} - -template Windows::Devices::Spi::Provider::ProviderSpiMode impl_IProviderSpiConnectionSettings::Mode() const -{ - Windows::Devices::Spi::Provider::ProviderSpiMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IProviderSpiConnectionSettings::Mode(Windows::Devices::Spi::Provider::ProviderSpiMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template int32_t impl_IProviderSpiConnectionSettings::DataBitLength() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DataBitLength(&value)); - return value; -} - -template void impl_IProviderSpiConnectionSettings::DataBitLength(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataBitLength(value)); -} - -template int32_t impl_IProviderSpiConnectionSettings::ClockFrequency() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ClockFrequency(&value)); - return value; -} - -template void impl_IProviderSpiConnectionSettings::ClockFrequency(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ClockFrequency(value)); -} - -template Windows::Devices::Spi::Provider::ProviderSpiSharingMode impl_IProviderSpiConnectionSettings::SharingMode() const -{ - Windows::Devices::Spi::Provider::ProviderSpiSharingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SharingMode(&value)); - return value; -} - -template void impl_IProviderSpiConnectionSettings::SharingMode(Windows::Devices::Spi::Provider::ProviderSpiSharingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SharingMode(value)); -} - -template Windows::Devices::Spi::Provider::ISpiDeviceProvider impl_ISpiControllerProvider::GetDeviceProvider(const Windows::Devices::Spi::Provider::ProviderSpiConnectionSettings & settings) const -{ - Windows::Devices::Spi::Provider::ISpiDeviceProvider result; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceProvider(get(settings), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_ISpiProvider::GetControllersAsync() const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetControllersAsync(put(result))); - return result; -} - -template hstring impl_ISpiDeviceProvider::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Spi::Provider::ProviderSpiConnectionSettings impl_ISpiDeviceProvider::ConnectionSettings() const -{ - Windows::Devices::Spi::Provider::ProviderSpiConnectionSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ConnectionSettings(put(value))); - return value; -} - -template void impl_ISpiDeviceProvider::Write(array_ref buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Write(buffer.size(), get(buffer))); -} - -template void impl_ISpiDeviceProvider::Read(array_ref buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Read(buffer.size(), get(buffer))); -} - -template void impl_ISpiDeviceProvider::TransferSequential(array_ref writeBuffer, array_ref readBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferSequential(writeBuffer.size(), get(writeBuffer), readBuffer.size(), get(readBuffer))); -} - -template void impl_ISpiDeviceProvider::TransferFullDuplex(array_ref writeBuffer, array_ref readBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferFullDuplex(writeBuffer.size(), get(writeBuffer), readBuffer.size(), get(readBuffer))); -} - -inline ProviderSpiConnectionSettings::ProviderSpiConnectionSettings(int32_t chipSelectLine) : - ProviderSpiConnectionSettings(get_activation_factory().Create(chipSelectLine)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Spi.h b/10.0.14393.0/winrt/Windows.Devices.Spi.h deleted file mode 100644 index 269c8df44..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Spi.h +++ /dev/null @@ -1,638 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Spi.Provider.3.h" -#include "internal/Windows.Devices.Spi.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChipSelectLineCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChipSelectLineCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinClockFrequency(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinClockFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxClockFrequency(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxClockFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedDataBitLengths(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedDataBitLengths()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChipSelectLine(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChipSelectLine()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChipSelectLine(int32_t value) noexcept override - { - try - { - this->shim().ChipSelectLine(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mode(Windows::Devices::Spi::SpiMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::Devices::Spi::SpiMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataBitLength(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DataBitLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataBitLength(int32_t value) noexcept override - { - try - { - this->shim().DataBitLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClockFrequency(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ClockFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClockFrequency(int32_t value) noexcept override - { - try - { - this->shim().ClockFrequency(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SharingMode(Windows::Devices::Spi::SpiSharingMode * value) noexcept override - { - try - { - *value = detach(this->shim().SharingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SharingMode(Windows::Devices::Spi::SpiSharingMode value) noexcept override - { - try - { - this->shim().SharingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(int32_t chipSelectLine, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(chipSelectLine)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDevice(abi_arg_in settings, abi_arg_out device) noexcept override - { - try - { - *device = detach(this->shim().GetDevice(*reinterpret_cast(&settings))); - return S_OK; - } - catch (...) - { - *device = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefaultAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDefaultAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetControllersAsync(abi_arg_in provider, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetControllersAsync(*reinterpret_cast(&provider))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Write(uint32_t __bufferSize, abi_arg_in * buffer) noexcept override - { - try - { - this->shim().Write(array_ref(buffer, buffer + __bufferSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Read(uint32_t __bufferSize, abi_arg_out buffer) noexcept override - { - try - { - this->shim().Read(*buffer); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferSequential(uint32_t __writeBufferSize, abi_arg_in * writeBuffer, uint32_t __readBufferSize, abi_arg_out readBuffer) noexcept override - { - try - { - this->shim().TransferSequential(array_ref(writeBuffer, writeBuffer + __writeBufferSize), *readBuffer); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferFullDuplex(uint32_t __writeBufferSize, abi_arg_in * writeBuffer, uint32_t __readBufferSize, abi_arg_out readBuffer) noexcept override - { - try - { - this->shim().TransferFullDuplex(array_ref(writeBuffer, writeBuffer + __writeBufferSize), *readBuffer); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromFriendlyName(abi_arg_in friendlyName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector(*reinterpret_cast(&friendlyName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBusInfo(abi_arg_in busId, abi_arg_out busInfo) noexcept override - { - try - { - *busInfo = detach(this->shim().GetBusInfo(*reinterpret_cast(&busId))); - return S_OK; - } - catch (...) - { - *busInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in busId, abi_arg_in settings, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&busId), *reinterpret_cast(&settings))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Spi { - -template Windows::Devices::Spi::SpiConnectionSettings impl_ISpiConnectionSettingsFactory::Create(int32_t chipSelectLine) const -{ - Windows::Devices::Spi::SpiConnectionSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(chipSelectLine, put(value))); - return value; -} - -template int32_t impl_ISpiConnectionSettings::ChipSelectLine() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChipSelectLine(&value)); - return value; -} - -template void impl_ISpiConnectionSettings::ChipSelectLine(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChipSelectLine(value)); -} - -template Windows::Devices::Spi::SpiMode impl_ISpiConnectionSettings::Mode() const -{ - Windows::Devices::Spi::SpiMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_ISpiConnectionSettings::Mode(Windows::Devices::Spi::SpiMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template int32_t impl_ISpiConnectionSettings::DataBitLength() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DataBitLength(&value)); - return value; -} - -template void impl_ISpiConnectionSettings::DataBitLength(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataBitLength(value)); -} - -template int32_t impl_ISpiConnectionSettings::ClockFrequency() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ClockFrequency(&value)); - return value; -} - -template void impl_ISpiConnectionSettings::ClockFrequency(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ClockFrequency(value)); -} - -template Windows::Devices::Spi::SpiSharingMode impl_ISpiConnectionSettings::SharingMode() const -{ - Windows::Devices::Spi::SpiSharingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SharingMode(&value)); - return value; -} - -template void impl_ISpiConnectionSettings::SharingMode(Windows::Devices::Spi::SpiSharingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SharingMode(value)); -} - -template int32_t impl_ISpiBusInfo::ChipSelectLineCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChipSelectLineCount(&value)); - return value; -} - -template int32_t impl_ISpiBusInfo::MinClockFrequency() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinClockFrequency(&value)); - return value; -} - -template int32_t impl_ISpiBusInfo::MaxClockFrequency() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxClockFrequency(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISpiBusInfo::SupportedDataBitLengths() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedDataBitLengths(put(value))); - return value; -} - -template hstring impl_ISpiDeviceStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template hstring impl_ISpiDeviceStatics::GetDeviceSelector(hstring_ref friendlyName) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromFriendlyName(get(friendlyName), put(value))); - return value; -} - -template Windows::Devices::Spi::SpiBusInfo impl_ISpiDeviceStatics::GetBusInfo(hstring_ref busId) const -{ - Windows::Devices::Spi::SpiBusInfo busInfo { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetBusInfo(get(busId), put(busInfo))); - return busInfo; -} - -template Windows::Foundation::IAsyncOperation impl_ISpiDeviceStatics::FromIdAsync(hstring_ref busId, const Windows::Devices::Spi::SpiConnectionSettings & settings) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(busId), get(settings), put(operation))); - return operation; -} - -template Windows::Devices::Spi::SpiDevice impl_ISpiController::GetDevice(const Windows::Devices::Spi::SpiConnectionSettings & settings) const -{ - Windows::Devices::Spi::SpiDevice device { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDevice(get(settings), put(device))); - return device; -} - -template Windows::Foundation::IAsyncOperation impl_ISpiControllerStatics::GetDefaultAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_ISpiControllerStatics::GetControllersAsync(const Windows::Devices::Spi::Provider::ISpiProvider & provider) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetControllersAsync(get(provider), put(operation))); - return operation; -} - -template hstring impl_ISpiDevice::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Devices::Spi::SpiConnectionSettings impl_ISpiDevice::ConnectionSettings() const -{ - Windows::Devices::Spi::SpiConnectionSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ConnectionSettings(put(value))); - return value; -} - -template void impl_ISpiDevice::Write(array_ref buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Write(buffer.size(), get(buffer))); -} - -template void impl_ISpiDevice::Read(array_ref buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Read(buffer.size(), get(buffer))); -} - -template void impl_ISpiDevice::TransferSequential(array_ref writeBuffer, array_ref readBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferSequential(writeBuffer.size(), get(writeBuffer), readBuffer.size(), get(readBuffer))); -} - -template void impl_ISpiDevice::TransferFullDuplex(array_ref writeBuffer, array_ref readBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferFullDuplex(writeBuffer.size(), get(writeBuffer), readBuffer.size(), get(readBuffer))); -} - -inline SpiConnectionSettings::SpiConnectionSettings(int32_t chipSelectLine) : - SpiConnectionSettings(get_activation_factory().Create(chipSelectLine)) -{} - -inline Windows::Foundation::IAsyncOperation SpiController::GetDefaultAsync() -{ - return get_activation_factory().GetDefaultAsync(); -} - -inline Windows::Foundation::IAsyncOperation> SpiController::GetControllersAsync(const Windows::Devices::Spi::Provider::ISpiProvider & provider) -{ - return get_activation_factory().GetControllersAsync(provider); -} - -inline hstring SpiDevice::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline hstring SpiDevice::GetDeviceSelector(hstring_ref friendlyName) -{ - return get_activation_factory().GetDeviceSelector(friendlyName); -} - -inline Windows::Devices::Spi::SpiBusInfo SpiDevice::GetBusInfo(hstring_ref busId) -{ - return get_activation_factory().GetBusInfo(busId); -} - -inline Windows::Foundation::IAsyncOperation SpiDevice::FromIdAsync(hstring_ref busId, const Windows::Devices::Spi::SpiConnectionSettings & settings) -{ - return get_activation_factory().FromIdAsync(busId, settings); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.Usb.h b/10.0.14393.0/winrt/Windows.Devices.Usb.h deleted file mode 100644 index 791b467ed..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.Usb.h +++ /dev/null @@ -1,2907 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Usb.3.h" -#include "Windows.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxPacketSize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPacketSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndpointNumber(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().EndpointNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pipe(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pipe()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxTransferSizeBytes(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxTransferSizeBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndpointDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EndpointDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearStallAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ClearStallAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReadOptions(Windows::Devices::Usb::UsbReadOptions value) noexcept override - { - try - { - this->shim().ReadOptions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadOptions(Windows::Devices::Usb::UsbReadOptions * value) noexcept override - { - try - { - *value = detach(this->shim().ReadOptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FlushBuffer() noexcept override - { - try - { - this->shim().FlushBuffer(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxPacketSize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPacketSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndpointNumber(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().EndpointNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pipe(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pipe()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EndpointDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EndpointDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearStallAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ClearStallAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WriteOptions(Windows::Devices::Usb::UsbWriteOptions value) noexcept override - { - try - { - this->shim().WriteOptions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WriteOptions(Windows::Devices::Usb::UsbWriteOptions * value) noexcept override - { - try - { - *value = detach(this->shim().WriteOptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UsbInterfaces(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().UsbInterfaces()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConfigurationDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConfigurationDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Descriptors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Descriptors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConfigurationValue(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ConfigurationValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPowerMilliamps(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPowerMilliamps()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelfPowered(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SelfPowered()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteWakeup(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RemoteWakeup()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryParse(abi_arg_in descriptor, abi_arg_out parsed, bool * success) noexcept override - { - try - { - *success = detach(this->shim().TryParse(*reinterpret_cast(&descriptor), *parsed)); - return S_OK; - } - catch (...) - { - *parsed = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Parse(abi_arg_in descriptor, abi_arg_out parsed) noexcept override - { - try - { - *parsed = detach(this->shim().Parse(*reinterpret_cast(&descriptor))); - return S_OK; - } - catch (...) - { - *parsed = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Direction(Windows::Devices::Usb::UsbTransferDirection * value) noexcept override - { - try - { - *value = detach(this->shim().Direction()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Direction(Windows::Devices::Usb::UsbTransferDirection value) noexcept override - { - try - { - this->shim().Direction(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ControlTransferType(Windows::Devices::Usb::UsbControlTransferType * value) noexcept override - { - try - { - *value = detach(this->shim().ControlTransferType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ControlTransferType(Windows::Devices::Usb::UsbControlTransferType value) noexcept override - { - try - { - this->shim().ControlTransferType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Recipient(Windows::Devices::Usb::UsbControlRecipient * value) noexcept override - { - try - { - *value = detach(this->shim().Recipient()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Recipient(Windows::Devices::Usb::UsbControlRecipient value) noexcept override - { - try - { - this->shim().Recipient(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AsByte(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().AsByte()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AsByte(uint8_t value) noexcept override - { - try - { - this->shim().AsByte(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Length(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DescriptorType(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().DescriptorType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadDescriptorBuffer(abi_arg_in buffer) noexcept override - { - try - { - this->shim().ReadDescriptorBuffer(*reinterpret_cast(&buffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SendControlOutTransferAsync(abi_arg_in setupPacket, abi_arg_in buffer, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SendControlOutTransferAsync(*reinterpret_cast(&setupPacket), *reinterpret_cast(&buffer))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendControlOutTransferAsyncNoBuffer(abi_arg_in setupPacket, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SendControlOutTransferAsync(*reinterpret_cast(&setupPacket))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendControlInTransferAsync(abi_arg_in setupPacket, abi_arg_in buffer, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SendControlInTransferAsync(*reinterpret_cast(&setupPacket), *reinterpret_cast(&buffer))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendControlInTransferAsyncNoBuffer(abi_arg_in setupPacket, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SendControlInTransferAsync(*reinterpret_cast(&setupPacket))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultInterface(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultInterface()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Configuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Configuration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClassCode(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ClassCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClassCode(uint8_t value) noexcept override - { - try - { - this->shim().ClassCode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubclassCode(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SubclassCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SubclassCode(abi_arg_in> value) noexcept override - { - try - { - this->shim().SubclassCode(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtocolCode(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ProtocolCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProtocolCode(abi_arg_in> value) noexcept override - { - try - { - this->shim().ProtocolCode(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CdcControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CdcControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Physical(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Physical()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PersonalHealthcare(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PersonalHealthcare()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActiveSync(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActiveSync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PalmSync(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PalmSync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceFirmwareUpdate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceFirmwareUpdate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Irda(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Irda()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Measurement(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Measurement()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VendorSpecific(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VendorSpecific()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BcdUsb(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BcdUsb()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPacketSize0(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPacketSize0()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VendorId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().VendorId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProductId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ProductId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BcdDeviceRevision(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BcdDeviceRevision()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfConfigurations(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfConfigurations()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(uint32_t vendorId, uint32_t productId, GUID winUsbInterfaceClass, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector(vendorId, productId, winUsbInterfaceClass)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorGuidOnly(GUID winUsbInterfaceClass, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector(winUsbInterfaceClass)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorVidPidOnly(uint32_t vendorId, uint32_t productId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector(vendorId, productId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceClassSelector(abi_arg_in usbClass, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceClassSelector(*reinterpret_cast(&usbClass))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EndpointNumber(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().EndpointNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Direction(Windows::Devices::Usb::UsbTransferDirection * value) noexcept override - { - try - { - *value = detach(this->shim().Direction()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndpointType(Windows::Devices::Usb::UsbEndpointType * value) noexcept override - { - try - { - *value = detach(this->shim().EndpointType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AsBulkInEndpointDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AsBulkInEndpointDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AsInterruptInEndpointDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AsInterruptInEndpointDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AsBulkOutEndpointDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AsBulkOutEndpointDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AsInterruptOutEndpointDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AsInterruptOutEndpointDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryParse(abi_arg_in descriptor, abi_arg_out parsed, bool * success) noexcept override - { - try - { - *success = detach(this->shim().TryParse(*reinterpret_cast(&descriptor), *parsed)); - return S_OK; - } - catch (...) - { - *parsed = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Parse(abi_arg_in descriptor, abi_arg_out parsed) noexcept override - { - try - { - *parsed = detach(this->shim().Parse(*reinterpret_cast(&descriptor))); - return S_OK; - } - catch (...) - { - *parsed = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BulkInPipes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BulkInPipes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InterruptInPipes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InterruptInPipes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BulkOutPipes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BulkOutPipes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InterruptOutPipes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InterruptOutPipes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InterfaceSettings(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InterfaceSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InterfaceNumber(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().InterfaceNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Descriptors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Descriptors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClassCode(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ClassCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubclassCode(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SubclassCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtocolCode(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ProtocolCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlternateSettingNumber(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().AlternateSettingNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InterfaceNumber(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().InterfaceNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryParse(abi_arg_in descriptor, abi_arg_out parsed, bool * success) noexcept override - { - try - { - *success = detach(this->shim().TryParse(*reinterpret_cast(&descriptor), *parsed)); - return S_OK; - } - catch (...) - { - *parsed = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Parse(abi_arg_in descriptor, abi_arg_out parsed) noexcept override - { - try - { - *parsed = detach(this->shim().Parse(*reinterpret_cast(&descriptor))); - return S_OK; - } - catch (...) - { - *parsed = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BulkInEndpoints(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BulkInEndpoints()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InterruptInEndpoints(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InterruptInEndpoints()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BulkOutEndpoints(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BulkOutEndpoints()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InterruptOutEndpoints(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InterruptOutEndpoints()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Selected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Selected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectSettingAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SelectSettingAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InterfaceDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InterfaceDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Descriptors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Descriptors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxPacketSize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPacketSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndpointNumber(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().EndpointNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Interval(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Interval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pipe(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pipe()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InterruptData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InterruptData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EndpointDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EndpointDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearStallAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ClearStallAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DataReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DataReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DataReceived(event_token token) noexcept override - { - try - { - this->shim().DataReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxPacketSize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPacketSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndpointNumber(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().EndpointNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Interval(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Interval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pipe(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pipe()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EndpointDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EndpointDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearStallAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ClearStallAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WriteOptions(Windows::Devices::Usb::UsbWriteOptions value) noexcept override - { - try - { - this->shim().WriteOptions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WriteOptions(Windows::Devices::Usb::UsbWriteOptions * value) noexcept override - { - try - { - *value = detach(this->shim().WriteOptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequestType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RequestType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RequestType(abi_arg_in value) noexcept override - { - try - { - this->shim().RequestType(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Request(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Request(uint8_t value) noexcept override - { - try - { - this->shim().Request(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(uint32_t value) noexcept override - { - try - { - this->shim().Value(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Index(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Index()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Index(uint32_t value) noexcept override - { - try - { - this->shim().Index(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Length(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Length(uint32_t value) noexcept override - { - try - { - this->shim().Length(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithEightByteBuffer(abi_arg_in eightByteBuffer, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithEightByteBuffer(*reinterpret_cast(&eightByteBuffer))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::Usb { - -template Windows::Devices::Usb::UsbTransferDirection impl_IUsbControlRequestType::Direction() const -{ - Windows::Devices::Usb::UsbTransferDirection value {}; - check_hresult(static_cast(static_cast(*this))->get_Direction(&value)); - return value; -} - -template void impl_IUsbControlRequestType::Direction(Windows::Devices::Usb::UsbTransferDirection value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Direction(value)); -} - -template Windows::Devices::Usb::UsbControlTransferType impl_IUsbControlRequestType::ControlTransferType() const -{ - Windows::Devices::Usb::UsbControlTransferType value {}; - check_hresult(static_cast(static_cast(*this))->get_ControlTransferType(&value)); - return value; -} - -template void impl_IUsbControlRequestType::ControlTransferType(Windows::Devices::Usb::UsbControlTransferType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ControlTransferType(value)); -} - -template Windows::Devices::Usb::UsbControlRecipient impl_IUsbControlRequestType::Recipient() const -{ - Windows::Devices::Usb::UsbControlRecipient value {}; - check_hresult(static_cast(static_cast(*this))->get_Recipient(&value)); - return value; -} - -template void impl_IUsbControlRequestType::Recipient(Windows::Devices::Usb::UsbControlRecipient value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Recipient(value)); -} - -template uint8_t impl_IUsbControlRequestType::AsByte() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AsByte(&value)); - return value; -} - -template void impl_IUsbControlRequestType::AsByte(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AsByte(value)); -} - -template Windows::Devices::Usb::UsbSetupPacket impl_IUsbSetupPacketFactory::CreateWithEightByteBuffer(const Windows::Storage::Streams::IBuffer & eightByteBuffer) const -{ - Windows::Devices::Usb::UsbSetupPacket value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithEightByteBuffer(get(eightByteBuffer), put(value))); - return value; -} - -template Windows::Devices::Usb::UsbControlRequestType impl_IUsbSetupPacket::RequestType() const -{ - Windows::Devices::Usb::UsbControlRequestType value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RequestType(put(value))); - return value; -} - -template void impl_IUsbSetupPacket::RequestType(const Windows::Devices::Usb::UsbControlRequestType & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RequestType(get(value))); -} - -template uint8_t impl_IUsbSetupPacket::Request() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Request(&value)); - return value; -} - -template void impl_IUsbSetupPacket::Request(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Request(value)); -} - -template uint32_t impl_IUsbSetupPacket::Value() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template void impl_IUsbSetupPacket::Value(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(value)); -} - -template uint32_t impl_IUsbSetupPacket::Index() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Index(&value)); - return value; -} - -template void impl_IUsbSetupPacket::Index(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Index(value)); -} - -template uint32_t impl_IUsbSetupPacket::Length() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template void impl_IUsbSetupPacket::Length(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Length(value)); -} - -template uint8_t impl_IUsbDeviceClass::ClassCode() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ClassCode(&value)); - return value; -} - -template void impl_IUsbDeviceClass::ClassCode(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ClassCode(value)); -} - -template Windows::Foundation::IReference impl_IUsbDeviceClass::SubclassCode() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_SubclassCode(put(value))); - return value; -} - -template void impl_IUsbDeviceClass::SubclassCode(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SubclassCode(get(value))); -} - -template Windows::Foundation::IReference impl_IUsbDeviceClass::ProtocolCode() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ProtocolCode(put(value))); - return value; -} - -template void impl_IUsbDeviceClass::ProtocolCode(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProtocolCode(get(value))); -} - -template Windows::Devices::Usb::UsbDeviceClass impl_IUsbDeviceClassesStatics::CdcControl() const -{ - Windows::Devices::Usb::UsbDeviceClass value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CdcControl(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbDeviceClass impl_IUsbDeviceClassesStatics::Physical() const -{ - Windows::Devices::Usb::UsbDeviceClass value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Physical(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbDeviceClass impl_IUsbDeviceClassesStatics::PersonalHealthcare() const -{ - Windows::Devices::Usb::UsbDeviceClass value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PersonalHealthcare(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbDeviceClass impl_IUsbDeviceClassesStatics::ActiveSync() const -{ - Windows::Devices::Usb::UsbDeviceClass value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ActiveSync(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbDeviceClass impl_IUsbDeviceClassesStatics::PalmSync() const -{ - Windows::Devices::Usb::UsbDeviceClass value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PalmSync(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbDeviceClass impl_IUsbDeviceClassesStatics::DeviceFirmwareUpdate() const -{ - Windows::Devices::Usb::UsbDeviceClass value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceFirmwareUpdate(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbDeviceClass impl_IUsbDeviceClassesStatics::Irda() const -{ - Windows::Devices::Usb::UsbDeviceClass value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Irda(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbDeviceClass impl_IUsbDeviceClassesStatics::Measurement() const -{ - Windows::Devices::Usb::UsbDeviceClass value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Measurement(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbDeviceClass impl_IUsbDeviceClassesStatics::VendorSpecific() const -{ - Windows::Devices::Usb::UsbDeviceClass value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VendorSpecific(put(value))); - return value; -} - -template hstring impl_IUsbDeviceStatics::GetDeviceSelector(uint32_t vendorId, uint32_t productId, GUID winUsbInterfaceClass) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(vendorId, productId, winUsbInterfaceClass, put(value))); - return value; -} - -template hstring impl_IUsbDeviceStatics::GetDeviceSelector(GUID winUsbInterfaceClass) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorGuidOnly(winUsbInterfaceClass, put(value))); - return value; -} - -template hstring impl_IUsbDeviceStatics::GetDeviceSelector(uint32_t vendorId, uint32_t productId) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorVidPidOnly(vendorId, productId, put(value))); - return value; -} - -template hstring impl_IUsbDeviceStatics::GetDeviceClassSelector(const Windows::Devices::Usb::UsbDeviceClass & usbClass) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceClassSelector(get(usbClass), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IUsbDeviceStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(operation))); - return operation; -} - -template uint32_t impl_IUsbDeviceDescriptor::BcdUsb() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BcdUsb(&value)); - return value; -} - -template uint8_t impl_IUsbDeviceDescriptor::MaxPacketSize0() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPacketSize0(&value)); - return value; -} - -template uint32_t impl_IUsbDeviceDescriptor::VendorId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VendorId(&value)); - return value; -} - -template uint32_t impl_IUsbDeviceDescriptor::ProductId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ProductId(&value)); - return value; -} - -template uint32_t impl_IUsbDeviceDescriptor::BcdDeviceRevision() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BcdDeviceRevision(&value)); - return value; -} - -template uint8_t impl_IUsbDeviceDescriptor::NumberOfConfigurations() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfConfigurations(&value)); - return value; -} - -template uint8_t impl_IUsbConfigurationDescriptor::ConfigurationValue() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ConfigurationValue(&value)); - return value; -} - -template uint32_t impl_IUsbConfigurationDescriptor::MaxPowerMilliamps() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPowerMilliamps(&value)); - return value; -} - -template bool impl_IUsbConfigurationDescriptor::SelfPowered() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SelfPowered(&value)); - return value; -} - -template bool impl_IUsbConfigurationDescriptor::RemoteWakeup() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RemoteWakeup(&value)); - return value; -} - -template bool impl_IUsbConfigurationDescriptorStatics::TryParse(const Windows::Devices::Usb::UsbDescriptor & descriptor, Windows::Devices::Usb::UsbConfigurationDescriptor & parsed) const -{ - bool success {}; - check_hresult(static_cast(static_cast(*this))->abi_TryParse(get(descriptor), put(parsed), &success)); - return success; -} - -template Windows::Devices::Usb::UsbConfigurationDescriptor impl_IUsbConfigurationDescriptorStatics::Parse(const Windows::Devices::Usb::UsbDescriptor & descriptor) const -{ - Windows::Devices::Usb::UsbConfigurationDescriptor parsed { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Parse(get(descriptor), put(parsed))); - return parsed; -} - -template uint8_t impl_IUsbInterfaceDescriptor::ClassCode() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ClassCode(&value)); - return value; -} - -template uint8_t impl_IUsbInterfaceDescriptor::SubclassCode() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SubclassCode(&value)); - return value; -} - -template uint8_t impl_IUsbInterfaceDescriptor::ProtocolCode() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtocolCode(&value)); - return value; -} - -template uint8_t impl_IUsbInterfaceDescriptor::AlternateSettingNumber() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AlternateSettingNumber(&value)); - return value; -} - -template uint8_t impl_IUsbInterfaceDescriptor::InterfaceNumber() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InterfaceNumber(&value)); - return value; -} - -template bool impl_IUsbInterfaceDescriptorStatics::TryParse(const Windows::Devices::Usb::UsbDescriptor & descriptor, Windows::Devices::Usb::UsbInterfaceDescriptor & parsed) const -{ - bool success {}; - check_hresult(static_cast(static_cast(*this))->abi_TryParse(get(descriptor), put(parsed), &success)); - return success; -} - -template Windows::Devices::Usb::UsbInterfaceDescriptor impl_IUsbInterfaceDescriptorStatics::Parse(const Windows::Devices::Usb::UsbDescriptor & descriptor) const -{ - Windows::Devices::Usb::UsbInterfaceDescriptor parsed { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Parse(get(descriptor), put(parsed))); - return parsed; -} - -template uint8_t impl_IUsbEndpointDescriptor::EndpointNumber() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EndpointNumber(&value)); - return value; -} - -template Windows::Devices::Usb::UsbTransferDirection impl_IUsbEndpointDescriptor::Direction() const -{ - Windows::Devices::Usb::UsbTransferDirection value {}; - check_hresult(static_cast(static_cast(*this))->get_Direction(&value)); - return value; -} - -template Windows::Devices::Usb::UsbEndpointType impl_IUsbEndpointDescriptor::EndpointType() const -{ - Windows::Devices::Usb::UsbEndpointType value {}; - check_hresult(static_cast(static_cast(*this))->get_EndpointType(&value)); - return value; -} - -template Windows::Devices::Usb::UsbBulkInEndpointDescriptor impl_IUsbEndpointDescriptor::AsBulkInEndpointDescriptor() const -{ - Windows::Devices::Usb::UsbBulkInEndpointDescriptor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AsBulkInEndpointDescriptor(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbInterruptInEndpointDescriptor impl_IUsbEndpointDescriptor::AsInterruptInEndpointDescriptor() const -{ - Windows::Devices::Usb::UsbInterruptInEndpointDescriptor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AsInterruptInEndpointDescriptor(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbBulkOutEndpointDescriptor impl_IUsbEndpointDescriptor::AsBulkOutEndpointDescriptor() const -{ - Windows::Devices::Usb::UsbBulkOutEndpointDescriptor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AsBulkOutEndpointDescriptor(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbInterruptOutEndpointDescriptor impl_IUsbEndpointDescriptor::AsInterruptOutEndpointDescriptor() const -{ - Windows::Devices::Usb::UsbInterruptOutEndpointDescriptor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AsInterruptOutEndpointDescriptor(put(value))); - return value; -} - -template bool impl_IUsbEndpointDescriptorStatics::TryParse(const Windows::Devices::Usb::UsbDescriptor & descriptor, Windows::Devices::Usb::UsbEndpointDescriptor & parsed) const -{ - bool success {}; - check_hresult(static_cast(static_cast(*this))->abi_TryParse(get(descriptor), put(parsed), &success)); - return success; -} - -template Windows::Devices::Usb::UsbEndpointDescriptor impl_IUsbEndpointDescriptorStatics::Parse(const Windows::Devices::Usb::UsbDescriptor & descriptor) const -{ - Windows::Devices::Usb::UsbEndpointDescriptor parsed { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Parse(get(descriptor), put(parsed))); - return parsed; -} - -template uint8_t impl_IUsbDescriptor::Length() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template uint8_t impl_IUsbDescriptor::DescriptorType() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DescriptorType(&value)); - return value; -} - -template void impl_IUsbDescriptor::ReadDescriptorBuffer(const Windows::Storage::Streams::IBuffer & buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReadDescriptorBuffer(get(buffer))); -} - -template Windows::Storage::Streams::IBuffer impl_IUsbInterruptInEventArgs::InterruptData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_InterruptData(put(value))); - return value; -} - -template uint32_t impl_IUsbBulkInPipe::MaxTransferSizeBytes() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxTransferSizeBytes(&value)); - return value; -} - -template Windows::Devices::Usb::UsbBulkInEndpointDescriptor impl_IUsbBulkInPipe::EndpointDescriptor() const -{ - Windows::Devices::Usb::UsbBulkInEndpointDescriptor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EndpointDescriptor(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IUsbBulkInPipe::ClearStallAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ClearStallAsync(put(operation))); - return operation; -} - -template void impl_IUsbBulkInPipe::ReadOptions(Windows::Devices::Usb::UsbReadOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReadOptions(value)); -} - -template Windows::Devices::Usb::UsbReadOptions impl_IUsbBulkInPipe::ReadOptions() const -{ - Windows::Devices::Usb::UsbReadOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadOptions(&value)); - return value; -} - -template void impl_IUsbBulkInPipe::FlushBuffer() const -{ - check_hresult(static_cast(static_cast(*this))->abi_FlushBuffer()); -} - -template Windows::Storage::Streams::IInputStream impl_IUsbBulkInPipe::InputStream() const -{ - Windows::Storage::Streams::IInputStream value; - check_hresult(static_cast(static_cast(*this))->get_InputStream(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbInterruptInEndpointDescriptor impl_IUsbInterruptInPipe::EndpointDescriptor() const -{ - Windows::Devices::Usb::UsbInterruptInEndpointDescriptor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EndpointDescriptor(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IUsbInterruptInPipe::ClearStallAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ClearStallAsync(put(operation))); - return operation; -} - -template event_token impl_IUsbInterruptInPipe::DataReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DataReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IUsbInterruptInPipe::DataReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::Usb::IUsbInterruptInPipe::remove_DataReceived, DataReceived(handler)); -} - -template void impl_IUsbInterruptInPipe::DataReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DataReceived(token)); -} - -template Windows::Devices::Usb::UsbBulkOutEndpointDescriptor impl_IUsbBulkOutPipe::EndpointDescriptor() const -{ - Windows::Devices::Usb::UsbBulkOutEndpointDescriptor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EndpointDescriptor(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IUsbBulkOutPipe::ClearStallAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ClearStallAsync(put(operation))); - return operation; -} - -template void impl_IUsbBulkOutPipe::WriteOptions(Windows::Devices::Usb::UsbWriteOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WriteOptions(value)); -} - -template Windows::Devices::Usb::UsbWriteOptions impl_IUsbBulkOutPipe::WriteOptions() const -{ - Windows::Devices::Usb::UsbWriteOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_WriteOptions(&value)); - return value; -} - -template Windows::Storage::Streams::IOutputStream impl_IUsbBulkOutPipe::OutputStream() const -{ - Windows::Storage::Streams::IOutputStream value; - check_hresult(static_cast(static_cast(*this))->get_OutputStream(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbInterruptOutEndpointDescriptor impl_IUsbInterruptOutPipe::EndpointDescriptor() const -{ - Windows::Devices::Usb::UsbInterruptOutEndpointDescriptor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EndpointDescriptor(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IUsbInterruptOutPipe::ClearStallAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ClearStallAsync(put(operation))); - return operation; -} - -template void impl_IUsbInterruptOutPipe::WriteOptions(Windows::Devices::Usb::UsbWriteOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WriteOptions(value)); -} - -template Windows::Devices::Usb::UsbWriteOptions impl_IUsbInterruptOutPipe::WriteOptions() const -{ - Windows::Devices::Usb::UsbWriteOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_WriteOptions(&value)); - return value; -} - -template Windows::Storage::Streams::IOutputStream impl_IUsbInterruptOutPipe::OutputStream() const -{ - Windows::Storage::Streams::IOutputStream value; - check_hresult(static_cast(static_cast(*this))->get_OutputStream(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbConfiguration::UsbInterfaces() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_UsbInterfaces(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbConfigurationDescriptor impl_IUsbConfiguration::ConfigurationDescriptor() const -{ - Windows::Devices::Usb::UsbConfigurationDescriptor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ConfigurationDescriptor(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbConfiguration::Descriptors() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Descriptors(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbInterface::BulkInPipes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_BulkInPipes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbInterface::InterruptInPipes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_InterruptInPipes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbInterface::BulkOutPipes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_BulkOutPipes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbInterface::InterruptOutPipes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_InterruptOutPipes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbInterface::InterfaceSettings() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_InterfaceSettings(put(value))); - return value; -} - -template uint8_t impl_IUsbInterface::InterfaceNumber() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InterfaceNumber(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbInterface::Descriptors() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Descriptors(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbInterfaceSetting::BulkInEndpoints() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_BulkInEndpoints(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbInterfaceSetting::InterruptInEndpoints() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_InterruptInEndpoints(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbInterfaceSetting::BulkOutEndpoints() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_BulkOutEndpoints(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbInterfaceSetting::InterruptOutEndpoints() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_InterruptOutEndpoints(put(value))); - return value; -} - -template bool impl_IUsbInterfaceSetting::Selected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Selected(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IUsbInterfaceSetting::SelectSettingAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SelectSettingAsync(put(operation))); - return operation; -} - -template Windows::Devices::Usb::UsbInterfaceDescriptor impl_IUsbInterfaceSetting::InterfaceDescriptor() const -{ - Windows::Devices::Usb::UsbInterfaceDescriptor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InterfaceDescriptor(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUsbInterfaceSetting::Descriptors() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Descriptors(put(value))); - return value; -} - -template uint32_t impl_IUsbBulkInEndpointDescriptor::MaxPacketSize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPacketSize(&value)); - return value; -} - -template uint8_t impl_IUsbBulkInEndpointDescriptor::EndpointNumber() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EndpointNumber(&value)); - return value; -} - -template Windows::Devices::Usb::UsbBulkInPipe impl_IUsbBulkInEndpointDescriptor::Pipe() const -{ - Windows::Devices::Usb::UsbBulkInPipe value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Pipe(put(value))); - return value; -} - -template uint32_t impl_IUsbInterruptInEndpointDescriptor::MaxPacketSize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPacketSize(&value)); - return value; -} - -template uint8_t impl_IUsbInterruptInEndpointDescriptor::EndpointNumber() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EndpointNumber(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IUsbInterruptInEndpointDescriptor::Interval() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Interval(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbInterruptInPipe impl_IUsbInterruptInEndpointDescriptor::Pipe() const -{ - Windows::Devices::Usb::UsbInterruptInPipe value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Pipe(put(value))); - return value; -} - -template uint32_t impl_IUsbBulkOutEndpointDescriptor::MaxPacketSize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPacketSize(&value)); - return value; -} - -template uint8_t impl_IUsbBulkOutEndpointDescriptor::EndpointNumber() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EndpointNumber(&value)); - return value; -} - -template Windows::Devices::Usb::UsbBulkOutPipe impl_IUsbBulkOutEndpointDescriptor::Pipe() const -{ - Windows::Devices::Usb::UsbBulkOutPipe value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Pipe(put(value))); - return value; -} - -template uint32_t impl_IUsbInterruptOutEndpointDescriptor::MaxPacketSize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPacketSize(&value)); - return value; -} - -template uint8_t impl_IUsbInterruptOutEndpointDescriptor::EndpointNumber() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EndpointNumber(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IUsbInterruptOutEndpointDescriptor::Interval() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Interval(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbInterruptOutPipe impl_IUsbInterruptOutEndpointDescriptor::Pipe() const -{ - Windows::Devices::Usb::UsbInterruptOutPipe value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Pipe(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IUsbDevice::SendControlOutTransferAsync(const Windows::Devices::Usb::UsbSetupPacket & setupPacket, const Windows::Storage::Streams::IBuffer & buffer) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SendControlOutTransferAsync(get(setupPacket), get(buffer), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUsbDevice::SendControlOutTransferAsync(const Windows::Devices::Usb::UsbSetupPacket & setupPacket) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SendControlOutTransferAsyncNoBuffer(get(setupPacket), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUsbDevice::SendControlInTransferAsync(const Windows::Devices::Usb::UsbSetupPacket & setupPacket, const Windows::Storage::Streams::IBuffer & buffer) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SendControlInTransferAsync(get(setupPacket), get(buffer), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUsbDevice::SendControlInTransferAsync(const Windows::Devices::Usb::UsbSetupPacket & setupPacket) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SendControlInTransferAsyncNoBuffer(get(setupPacket), put(operation))); - return operation; -} - -template Windows::Devices::Usb::UsbInterface impl_IUsbDevice::DefaultInterface() const -{ - Windows::Devices::Usb::UsbInterface value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DefaultInterface(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbDeviceDescriptor impl_IUsbDevice::DeviceDescriptor() const -{ - Windows::Devices::Usb::UsbDeviceDescriptor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceDescriptor(put(value))); - return value; -} - -template Windows::Devices::Usb::UsbConfiguration impl_IUsbDevice::Configuration() const -{ - Windows::Devices::Usb::UsbConfiguration value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Configuration(put(value))); - return value; -} - -inline bool UsbConfigurationDescriptor::TryParse(const Windows::Devices::Usb::UsbDescriptor & descriptor, Windows::Devices::Usb::UsbConfigurationDescriptor & parsed) -{ - return get_activation_factory().TryParse(descriptor, parsed); -} - -inline Windows::Devices::Usb::UsbConfigurationDescriptor UsbConfigurationDescriptor::Parse(const Windows::Devices::Usb::UsbDescriptor & descriptor) -{ - return get_activation_factory().Parse(descriptor); -} - -inline UsbControlRequestType::UsbControlRequestType() : - UsbControlRequestType(activate_instance()) -{} - -inline hstring UsbDevice::GetDeviceSelector(uint32_t vendorId, uint32_t productId, GUID winUsbInterfaceClass) -{ - return get_activation_factory().GetDeviceSelector(vendorId, productId, winUsbInterfaceClass); -} - -inline hstring UsbDevice::GetDeviceSelector(GUID winUsbInterfaceClass) -{ - return get_activation_factory().GetDeviceSelector(winUsbInterfaceClass); -} - -inline hstring UsbDevice::GetDeviceSelector(uint32_t vendorId, uint32_t productId) -{ - return get_activation_factory().GetDeviceSelector(vendorId, productId); -} - -inline hstring UsbDevice::GetDeviceClassSelector(const Windows::Devices::Usb::UsbDeviceClass & usbClass) -{ - return get_activation_factory().GetDeviceClassSelector(usbClass); -} - -inline Windows::Foundation::IAsyncOperation UsbDevice::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline UsbDeviceClass::UsbDeviceClass() : - UsbDeviceClass(activate_instance()) -{} - -inline Windows::Devices::Usb::UsbDeviceClass UsbDeviceClasses::CdcControl() -{ - return get_activation_factory().CdcControl(); -} - -inline Windows::Devices::Usb::UsbDeviceClass UsbDeviceClasses::Physical() -{ - return get_activation_factory().Physical(); -} - -inline Windows::Devices::Usb::UsbDeviceClass UsbDeviceClasses::PersonalHealthcare() -{ - return get_activation_factory().PersonalHealthcare(); -} - -inline Windows::Devices::Usb::UsbDeviceClass UsbDeviceClasses::ActiveSync() -{ - return get_activation_factory().ActiveSync(); -} - -inline Windows::Devices::Usb::UsbDeviceClass UsbDeviceClasses::PalmSync() -{ - return get_activation_factory().PalmSync(); -} - -inline Windows::Devices::Usb::UsbDeviceClass UsbDeviceClasses::DeviceFirmwareUpdate() -{ - return get_activation_factory().DeviceFirmwareUpdate(); -} - -inline Windows::Devices::Usb::UsbDeviceClass UsbDeviceClasses::Irda() -{ - return get_activation_factory().Irda(); -} - -inline Windows::Devices::Usb::UsbDeviceClass UsbDeviceClasses::Measurement() -{ - return get_activation_factory().Measurement(); -} - -inline Windows::Devices::Usb::UsbDeviceClass UsbDeviceClasses::VendorSpecific() -{ - return get_activation_factory().VendorSpecific(); -} - -inline bool UsbEndpointDescriptor::TryParse(const Windows::Devices::Usb::UsbDescriptor & descriptor, Windows::Devices::Usb::UsbEndpointDescriptor & parsed) -{ - return get_activation_factory().TryParse(descriptor, parsed); -} - -inline Windows::Devices::Usb::UsbEndpointDescriptor UsbEndpointDescriptor::Parse(const Windows::Devices::Usb::UsbDescriptor & descriptor) -{ - return get_activation_factory().Parse(descriptor); -} - -inline bool UsbInterfaceDescriptor::TryParse(const Windows::Devices::Usb::UsbDescriptor & descriptor, Windows::Devices::Usb::UsbInterfaceDescriptor & parsed) -{ - return get_activation_factory().TryParse(descriptor, parsed); -} - -inline Windows::Devices::Usb::UsbInterfaceDescriptor UsbInterfaceDescriptor::Parse(const Windows::Devices::Usb::UsbDescriptor & descriptor) -{ - return get_activation_factory().Parse(descriptor); -} - -inline UsbSetupPacket::UsbSetupPacket() : - UsbSetupPacket(activate_instance()) -{} - -inline UsbSetupPacket::UsbSetupPacket(const Windows::Storage::Streams::IBuffer & eightByteBuffer) : - UsbSetupPacket(get_activation_factory().CreateWithEightByteBuffer(eightByteBuffer)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.WiFi.h b/10.0.14393.0/winrt/Windows.Devices.WiFi.h deleted file mode 100644 index d28a78572..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.WiFi.h +++ /dev/null @@ -1,618 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Networking.Connectivity.3.h" -#include "internal/Windows.Security.Credentials.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.WiFi.3.h" -#include "Windows.Devices.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkAdapter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAdapter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ScanAsync(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScanAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkReport(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkReport()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AvailableNetworksChanged(abi_arg_in> args, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().AvailableNetworksChanged(*reinterpret_cast *>(&args))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AvailableNetworksChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().AvailableNetworksChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectAsync(abi_arg_in availableNetwork, Windows::Devices::WiFi::WiFiReconnectionKind reconnectionKind, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ConnectAsync(*reinterpret_cast(&availableNetwork), reconnectionKind)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectWithPasswordCredentialAsync(abi_arg_in availableNetwork, Windows::Devices::WiFi::WiFiReconnectionKind reconnectionKind, abi_arg_in passwordCredential, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ConnectAsync(*reinterpret_cast(&availableNetwork), reconnectionKind, *reinterpret_cast(&passwordCredential))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectWithPasswordCredentialAndSsidAsync(abi_arg_in availableNetwork, Windows::Devices::WiFi::WiFiReconnectionKind reconnectionKind, abi_arg_in passwordCredential, abi_arg_in ssid, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ConnectAsync(*reinterpret_cast(&availableNetwork), reconnectionKind, *reinterpret_cast(&passwordCredential), *reinterpret_cast(&ssid))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Disconnect() noexcept override - { - try - { - this->shim().Disconnect(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindAllAdaptersAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().FindAllAdaptersAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uptime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uptime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ssid(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ssid()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bssid(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bssid()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChannelCenterFrequencyInKilohertz(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChannelCenterFrequencyInKilohertz()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkRssiInDecibelMilliwatts(double * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkRssiInDecibelMilliwatts()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SignalBars(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().SignalBars()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkKind(Windows::Devices::WiFi::WiFiNetworkKind * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhyKind(Windows::Devices::WiFi::WiFiPhyKind * value) noexcept override - { - try - { - *value = detach(this->shim().PhyKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecuritySettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecuritySettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BeaconInterval(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BeaconInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsWiFiDirect(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsWiFiDirect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConnectionStatus(Windows::Devices::WiFi::WiFiConnectionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AvailableNetworks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AvailableNetworks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::WiFi { - -template Windows::Foundation::IAsyncOperation> impl_IWiFiAdapterStatics::FindAllAdaptersAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAdaptersAsync(put(value))); - return value; -} - -template hstring impl_IWiFiAdapterStatics::GetDeviceSelector() const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(deviceSelector))); - return deviceSelector; -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiAdapterStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiAdapterStatics::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(value))); - return value; -} - -template Windows::Networking::Connectivity::NetworkAdapter impl_IWiFiAdapter::NetworkAdapter() const -{ - Windows::Networking::Connectivity::NetworkAdapter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NetworkAdapter(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IWiFiAdapter::ScanAsync() const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_ScanAsync(put(value))); - return value; -} - -template Windows::Devices::WiFi::WiFiNetworkReport impl_IWiFiAdapter::NetworkReport() const -{ - Windows::Devices::WiFi::WiFiNetworkReport value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NetworkReport(put(value))); - return value; -} - -template event_token impl_IWiFiAdapter::AvailableNetworksChanged(const Windows::Foundation::TypedEventHandler & args) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_AvailableNetworksChanged(get(args), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IWiFiAdapter::AvailableNetworksChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & args) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::WiFi::IWiFiAdapter::remove_AvailableNetworksChanged, AvailableNetworksChanged(args)); -} - -template void impl_IWiFiAdapter::AvailableNetworksChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AvailableNetworksChanged(eventCookie)); -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiAdapter::ConnectAsync(const Windows::Devices::WiFi::WiFiAvailableNetwork & availableNetwork, Windows::Devices::WiFi::WiFiReconnectionKind reconnectionKind) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_ConnectAsync(get(availableNetwork), reconnectionKind, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiAdapter::ConnectAsync(const Windows::Devices::WiFi::WiFiAvailableNetwork & availableNetwork, Windows::Devices::WiFi::WiFiReconnectionKind reconnectionKind, const Windows::Security::Credentials::PasswordCredential & passwordCredential) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_ConnectWithPasswordCredentialAsync(get(availableNetwork), reconnectionKind, get(passwordCredential), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiAdapter::ConnectAsync(const Windows::Devices::WiFi::WiFiAvailableNetwork & availableNetwork, Windows::Devices::WiFi::WiFiReconnectionKind reconnectionKind, const Windows::Security::Credentials::PasswordCredential & passwordCredential, hstring_ref ssid) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_ConnectWithPasswordCredentialAndSsidAsync(get(availableNetwork), reconnectionKind, get(passwordCredential), get(ssid), put(value))); - return value; -} - -template void impl_IWiFiAdapter::Disconnect() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Disconnect()); -} - -template Windows::Foundation::DateTime impl_IWiFiNetworkReport::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IWiFiNetworkReport::AvailableNetworks() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AvailableNetworks(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IWiFiAvailableNetwork::Uptime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Uptime(put(value))); - return value; -} - -template hstring impl_IWiFiAvailableNetwork::Ssid() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ssid(put(value))); - return value; -} - -template hstring impl_IWiFiAvailableNetwork::Bssid() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Bssid(put(value))); - return value; -} - -template int32_t impl_IWiFiAvailableNetwork::ChannelCenterFrequencyInKilohertz() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChannelCenterFrequencyInKilohertz(&value)); - return value; -} - -template double impl_IWiFiAvailableNetwork::NetworkRssiInDecibelMilliwatts() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkRssiInDecibelMilliwatts(&value)); - return value; -} - -template uint8_t impl_IWiFiAvailableNetwork::SignalBars() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SignalBars(&value)); - return value; -} - -template Windows::Devices::WiFi::WiFiNetworkKind impl_IWiFiAvailableNetwork::NetworkKind() const -{ - Windows::Devices::WiFi::WiFiNetworkKind value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkKind(&value)); - return value; -} - -template Windows::Devices::WiFi::WiFiPhyKind impl_IWiFiAvailableNetwork::PhyKind() const -{ - Windows::Devices::WiFi::WiFiPhyKind value {}; - check_hresult(static_cast(static_cast(*this))->get_PhyKind(&value)); - return value; -} - -template Windows::Networking::Connectivity::NetworkSecuritySettings impl_IWiFiAvailableNetwork::SecuritySettings() const -{ - Windows::Networking::Connectivity::NetworkSecuritySettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SecuritySettings(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IWiFiAvailableNetwork::BeaconInterval() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_BeaconInterval(put(value))); - return value; -} - -template bool impl_IWiFiAvailableNetwork::IsWiFiDirect() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsWiFiDirect(&value)); - return value; -} - -template Windows::Devices::WiFi::WiFiConnectionStatus impl_IWiFiConnectionResult::ConnectionStatus() const -{ - Windows::Devices::WiFi::WiFiConnectionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ConnectionStatus(&value)); - return value; -} - -inline Windows::Foundation::IAsyncOperation> WiFiAdapter::FindAllAdaptersAsync() -{ - return get_activation_factory().FindAllAdaptersAsync(); -} - -inline hstring WiFiAdapter::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Foundation::IAsyncOperation WiFiAdapter::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline Windows::Foundation::IAsyncOperation WiFiAdapter::RequestAccessAsync() -{ - return get_activation_factory().RequestAccessAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.WiFiDirect.Services.h b/10.0.14393.0/winrt/Windows.Devices.WiFiDirect.Services.h deleted file mode 100644 index 39de07fcd..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.WiFiDirect.Services.h +++ /dev/null @@ -1,1477 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Networking.Sockets.3.h" -#include "internal/Windows.Devices.WiFiDirect.Services.3.h" -#include "Windows.Devices.WiFiDirect.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoteServiceInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteServiceInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedConfigurationMethods(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedConfigurationMethods()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreferGroupOwnerMode(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PreferGroupOwnerMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreferGroupOwnerMode(bool value) noexcept override - { - try - { - this->shim().PreferGroupOwnerMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SessionInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SessionInfo(abi_arg_in value) noexcept override - { - try - { - this->shim().SessionInfo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceError(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceError * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SessionDeferred(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SessionDeferred(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SessionDeferred(event_token token) noexcept override - { - try - { - this->shim().SessionDeferred(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetProvisioningInfoAsync(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceConfigurationMethod selectedConfigurationMethod, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetProvisioningInfoAsync(selectedConfigurationMethod)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ConnectAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectAsyncWithPin(abi_arg_in pin, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ConnectAsync(*reinterpret_cast(&pin))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServiceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceNamePrefixes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServiceNamePrefixes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ServiceInfo(abi_arg_in value) noexcept override - { - try - { - this->shim().ServiceInfo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoAcceptSession(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoAcceptSession()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoAcceptSession(bool value) noexcept override - { - try - { - this->shim().AutoAcceptSession(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreferGroupOwnerMode(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PreferGroupOwnerMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreferGroupOwnerMode(bool value) noexcept override - { - try - { - this->shim().PreferGroupOwnerMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreferredConfigurationMethods(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PreferredConfigurationMethods()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceStatus(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ServiceStatus(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceStatus value) noexcept override - { - try - { - this->shim().ServiceStatus(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomServiceStatusCode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CustomServiceStatusCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CustomServiceStatusCode(uint32_t value) noexcept override - { - try - { - this->shim().CustomServiceStatusCode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeferredSessionInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeferredSessionInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DeferredSessionInfo(abi_arg_in value) noexcept override - { - try - { - this->shim().DeferredSessionInfo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdvertisementStatus(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceAdvertisementStatus * value) noexcept override - { - try - { - *value = detach(this->shim().AdvertisementStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceError(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceError * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SessionRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SessionRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SessionRequested(event_token token) noexcept override - { - try - { - this->shim().SessionRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AutoAcceptSessionConnected(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AutoAcceptSessionConnected(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AutoAcceptSessionConnected(event_token token) noexcept override - { - try - { - this->shim().AutoAcceptSessionConnected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AdvertisementStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AdvertisementStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AdvertisementStatusChanged(event_token token) noexcept override - { - try - { - this->shim().AdvertisementStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectAsync(abi_arg_in deviceInfo, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ConnectAsync(*reinterpret_cast(&deviceInfo))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectAsyncWithPin(abi_arg_in deviceInfo, abi_arg_in pin, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ConnectAsync(*reinterpret_cast(&deviceInfo), *reinterpret_cast(&pin))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWiFiDirectServiceAdvertiser(abi_arg_in serviceName, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWiFiDirectServiceAdvertiser(*reinterpret_cast(&serviceName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Session(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Session()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SessionInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedConfigurationMethod(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceConfigurationMethod * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedConfigurationMethod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGroupFormationNeeded(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGroupFormationNeeded()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EndpointPairs(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EndpointPairs()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Protocol(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceIPProtocol * value) noexcept override - { - try - { - *value = detach(this->shim().Protocol()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServiceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceSessionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorStatus(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceSessionErrorStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SessionId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdvertisementId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AdvertisementId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SessionAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConnectionEndpointPairs(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetConnectionEndpointPairs()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SessionStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SessionStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SessionStatusChanged(event_token token) noexcept override - { - try - { - this->shim().SessionStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddStreamSocketListenerAsync(abi_arg_in value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().AddStreamSocketListenerAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDatagramSocketAsync(abi_arg_in value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().AddDatagramSocketAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RemotePortAdded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RemotePortAdded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RemotePortAdded(event_token token) noexcept override - { - try - { - this->shim().RemotePortAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeferredSessionInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeferredSessionInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProvisioningInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProvisioningInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SessionInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetSessionRequest(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetSessionRequest()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetSelector(abi_arg_in serviceName, abi_arg_out serviceSelector) noexcept override - { - try - { - *serviceSelector = detach(this->shim().GetSelector(*reinterpret_cast(&serviceName))); - return S_OK; - } - catch (...) - { - *serviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSelectorWithFilter(abi_arg_in serviceName, abi_arg_in serviceInfoFilter, abi_arg_out serviceSelector) noexcept override - { - try - { - *serviceSelector = detach(this->shim().GetSelector(*reinterpret_cast(&serviceName), *reinterpret_cast(&serviceInfoFilter))); - return S_OK; - } - catch (...) - { - *serviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::WiFiDirect::Services { - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceConfigurationMethod impl_IWiFiDirectServiceProvisioningInfo::SelectedConfigurationMethod() const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceConfigurationMethod value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedConfigurationMethod(&value)); - return value; -} - -template bool impl_IWiFiDirectServiceProvisioningInfo::IsGroupFormationNeeded() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsGroupFormationNeeded(&value)); - return value; -} - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceSession impl_IWiFiDirectServiceAutoAcceptSessionConnectedEventArgs::Session() const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Session(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IWiFiDirectServiceAutoAcceptSessionConnectedEventArgs::SessionInfo() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_SessionInfo(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IWiFiDirectServiceRemotePortAddedEventArgs::EndpointPairs() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_EndpointPairs(put(value))); - return value; -} - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceIPProtocol impl_IWiFiDirectServiceRemotePortAddedEventArgs::Protocol() const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceIPProtocol value {}; - check_hresult(static_cast(static_cast(*this))->get_Protocol(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IWiFiDirectServiceSessionDeferredEventArgs::DeferredSessionInfo() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_DeferredSessionInfo(put(value))); - return value; -} - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceSessionRequest impl_IWiFiDirectServiceSessionRequestedEventArgs::GetSessionRequest() const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceSessionRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetSessionRequest(put(value))); - return value; -} - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceAdvertiser impl_IWiFiDirectServiceAdvertiserFactory::CreateWiFiDirectServiceAdvertiser(hstring_ref serviceName) const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceAdvertiser result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWiFiDirectServiceAdvertiser(get(serviceName), put(result))); - return result; -} - -template hstring impl_IWiFiDirectServiceAdvertiser::ServiceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IWiFiDirectServiceAdvertiser::ServiceNamePrefixes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ServiceNamePrefixes(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IWiFiDirectServiceAdvertiser::ServiceInfo() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_ServiceInfo(put(value))); - return value; -} - -template void impl_IWiFiDirectServiceAdvertiser::ServiceInfo(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ServiceInfo(get(value))); -} - -template bool impl_IWiFiDirectServiceAdvertiser::AutoAcceptSession() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoAcceptSession(&value)); - return value; -} - -template void impl_IWiFiDirectServiceAdvertiser::AutoAcceptSession(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoAcceptSession(value)); -} - -template bool impl_IWiFiDirectServiceAdvertiser::PreferGroupOwnerMode() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PreferGroupOwnerMode(&value)); - return value; -} - -template void impl_IWiFiDirectServiceAdvertiser::PreferGroupOwnerMode(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreferGroupOwnerMode(value)); -} - -template Windows::Foundation::Collections::IVector impl_IWiFiDirectServiceAdvertiser::PreferredConfigurationMethods() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_PreferredConfigurationMethods(put(value))); - return value; -} - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceStatus impl_IWiFiDirectServiceAdvertiser::ServiceStatus() const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceStatus(&value)); - return value; -} - -template void impl_IWiFiDirectServiceAdvertiser::ServiceStatus(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ServiceStatus(value)); -} - -template uint32_t impl_IWiFiDirectServiceAdvertiser::CustomServiceStatusCode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CustomServiceStatusCode(&value)); - return value; -} - -template void impl_IWiFiDirectServiceAdvertiser::CustomServiceStatusCode(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CustomServiceStatusCode(value)); -} - -template Windows::Storage::Streams::IBuffer impl_IWiFiDirectServiceAdvertiser::DeferredSessionInfo() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_DeferredSessionInfo(put(value))); - return value; -} - -template void impl_IWiFiDirectServiceAdvertiser::DeferredSessionInfo(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DeferredSessionInfo(get(value))); -} - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceAdvertisementStatus impl_IWiFiDirectServiceAdvertiser::AdvertisementStatus() const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceAdvertisementStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_AdvertisementStatus(&value)); - return value; -} - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceError impl_IWiFiDirectServiceAdvertiser::ServiceError() const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceError value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceError(&value)); - return value; -} - -template event_token impl_IWiFiDirectServiceAdvertiser::SessionRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SessionRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IWiFiDirectServiceAdvertiser::SessionRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::WiFiDirect::Services::IWiFiDirectServiceAdvertiser::remove_SessionRequested, SessionRequested(handler)); -} - -template void impl_IWiFiDirectServiceAdvertiser::SessionRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SessionRequested(token)); -} - -template event_token impl_IWiFiDirectServiceAdvertiser::AutoAcceptSessionConnected(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AutoAcceptSessionConnected(get(handler), &token)); - return token; -} - -template event_revoker impl_IWiFiDirectServiceAdvertiser::AutoAcceptSessionConnected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::WiFiDirect::Services::IWiFiDirectServiceAdvertiser::remove_AutoAcceptSessionConnected, AutoAcceptSessionConnected(handler)); -} - -template void impl_IWiFiDirectServiceAdvertiser::AutoAcceptSessionConnected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AutoAcceptSessionConnected(token)); -} - -template event_token impl_IWiFiDirectServiceAdvertiser::AdvertisementStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AdvertisementStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IWiFiDirectServiceAdvertiser::AdvertisementStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::WiFiDirect::Services::IWiFiDirectServiceAdvertiser::remove_AdvertisementStatusChanged, AdvertisementStatusChanged(handler)); -} - -template void impl_IWiFiDirectServiceAdvertiser::AdvertisementStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AdvertisementStatusChanged(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiDirectServiceAdvertiser::ConnectAsync(const Windows::Devices::Enumeration::DeviceInformation & deviceInfo) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ConnectAsync(get(deviceInfo), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiDirectServiceAdvertiser::ConnectAsync(const Windows::Devices::Enumeration::DeviceInformation & deviceInfo, hstring_ref pin) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ConnectAsyncWithPin(get(deviceInfo), get(pin), put(result))); - return result; -} - -template void impl_IWiFiDirectServiceAdvertiser::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IWiFiDirectServiceAdvertiser::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template hstring impl_IWiFiDirectServiceStatics::GetSelector(hstring_ref serviceName) const -{ - hstring serviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetSelector(get(serviceName), put(serviceSelector))); - return serviceSelector; -} - -template hstring impl_IWiFiDirectServiceStatics::GetSelector(hstring_ref serviceName, const Windows::Storage::Streams::IBuffer & serviceInfoFilter) const -{ - hstring serviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetSelectorWithFilter(get(serviceName), get(serviceInfoFilter), put(serviceSelector))); - return serviceSelector; -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiDirectServiceStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(asyncOp))); - return asyncOp; -} - -template Windows::Storage::Streams::IBuffer impl_IWiFiDirectService::RemoteServiceInfo() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_RemoteServiceInfo(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IWiFiDirectService::SupportedConfigurationMethods() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedConfigurationMethods(put(value))); - return value; -} - -template bool impl_IWiFiDirectService::PreferGroupOwnerMode() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PreferGroupOwnerMode(&value)); - return value; -} - -template void impl_IWiFiDirectService::PreferGroupOwnerMode(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreferGroupOwnerMode(value)); -} - -template Windows::Storage::Streams::IBuffer impl_IWiFiDirectService::SessionInfo() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_SessionInfo(put(value))); - return value; -} - -template void impl_IWiFiDirectService::SessionInfo(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SessionInfo(get(value))); -} - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceError impl_IWiFiDirectService::ServiceError() const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceError value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceError(&value)); - return value; -} - -template event_token impl_IWiFiDirectService::SessionDeferred(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SessionDeferred(get(handler), &token)); - return token; -} - -template event_revoker impl_IWiFiDirectService::SessionDeferred(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::WiFiDirect::Services::IWiFiDirectService::remove_SessionDeferred, SessionDeferred(handler)); -} - -template void impl_IWiFiDirectService::SessionDeferred(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SessionDeferred(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiDirectService::GetProvisioningInfoAsync(Windows::Devices::WiFiDirect::Services::WiFiDirectServiceConfigurationMethod selectedConfigurationMethod) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetProvisioningInfoAsync(selectedConfigurationMethod, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiDirectService::ConnectAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ConnectAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiDirectService::ConnectAsync(hstring_ref pin) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ConnectAsyncWithPin(get(pin), put(result))); - return result; -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IWiFiDirectServiceSessionRequest::DeviceInformation() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformation(put(value))); - return value; -} - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceProvisioningInfo impl_IWiFiDirectServiceSessionRequest::ProvisioningInfo() const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceProvisioningInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProvisioningInfo(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IWiFiDirectServiceSessionRequest::SessionInfo() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_SessionInfo(put(value))); - return value; -} - -template hstring impl_IWiFiDirectServiceSession::ServiceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceName(put(value))); - return value; -} - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceSessionStatus impl_IWiFiDirectServiceSession::Status() const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceSessionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::WiFiDirect::Services::WiFiDirectServiceSessionErrorStatus impl_IWiFiDirectServiceSession::ErrorStatus() const -{ - Windows::Devices::WiFiDirect::Services::WiFiDirectServiceSessionErrorStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorStatus(&value)); - return value; -} - -template uint32_t impl_IWiFiDirectServiceSession::SessionId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SessionId(&value)); - return value; -} - -template uint32_t impl_IWiFiDirectServiceSession::AdvertisementId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AdvertisementId(&value)); - return value; -} - -template hstring impl_IWiFiDirectServiceSession::ServiceAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceAddress(put(value))); - return value; -} - -template hstring impl_IWiFiDirectServiceSession::SessionAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SessionAddress(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IWiFiDirectServiceSession::GetConnectionEndpointPairs() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetConnectionEndpointPairs(put(value))); - return value; -} - -template event_token impl_IWiFiDirectServiceSession::SessionStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SessionStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IWiFiDirectServiceSession::SessionStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::WiFiDirect::Services::IWiFiDirectServiceSession::remove_SessionStatusChanged, SessionStatusChanged(handler)); -} - -template void impl_IWiFiDirectServiceSession::SessionStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SessionStatusChanged(token)); -} - -template Windows::Foundation::IAsyncAction impl_IWiFiDirectServiceSession::AddStreamSocketListenerAsync(const Windows::Networking::Sockets::StreamSocketListener & value) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_AddStreamSocketListenerAsync(get(value), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IWiFiDirectServiceSession::AddDatagramSocketAsync(const Windows::Networking::Sockets::DatagramSocket & value) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_AddDatagramSocketAsync(get(value), put(result))); - return result; -} - -template event_token impl_IWiFiDirectServiceSession::RemotePortAdded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RemotePortAdded(get(handler), &token)); - return token; -} - -template event_revoker impl_IWiFiDirectServiceSession::RemotePortAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::WiFiDirect::Services::IWiFiDirectServiceSession::remove_RemotePortAdded, RemotePortAdded(handler)); -} - -template void impl_IWiFiDirectServiceSession::RemotePortAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RemotePortAdded(token)); -} - -inline hstring WiFiDirectService::GetSelector(hstring_ref serviceName) -{ - return get_activation_factory().GetSelector(serviceName); -} - -inline hstring WiFiDirectService::GetSelector(hstring_ref serviceName, const Windows::Storage::Streams::IBuffer & serviceInfoFilter) -{ - return get_activation_factory().GetSelector(serviceName, serviceInfoFilter); -} - -inline Windows::Foundation::IAsyncOperation WiFiDirectService::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline WiFiDirectServiceAdvertiser::WiFiDirectServiceAdvertiser(hstring_ref serviceName) : - WiFiDirectServiceAdvertiser(get_activation_factory().CreateWiFiDirectServiceAdvertiser(serviceName)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.WiFiDirect.h b/10.0.14393.0/winrt/Windows.Devices.WiFiDirect.h deleted file mode 100644 index 27c9a5fe6..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.WiFiDirect.h +++ /dev/null @@ -1,1123 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Security.Credentials.3.h" -#include "internal/Windows.Devices.WiFiDirect.3.h" -#include "Windows.Devices.h" -#include "Windows.Devices.Enumeration.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InformationElements(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InformationElements()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InformationElements(abi_arg_in> value) noexcept override - { - try - { - this->shim().InformationElements(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListenStateDiscoverability(Windows::Devices::WiFiDirect::WiFiDirectAdvertisementListenStateDiscoverability * value) noexcept override - { - try - { - *value = detach(this->shim().ListenStateDiscoverability()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ListenStateDiscoverability(Windows::Devices::WiFiDirect::WiFiDirectAdvertisementListenStateDiscoverability value) noexcept override - { - try - { - this->shim().ListenStateDiscoverability(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAutonomousGroupOwnerEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAutonomousGroupOwnerEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsAutonomousGroupOwnerEnabled(bool value) noexcept override - { - try - { - this->shim().IsAutonomousGroupOwnerEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LegacySettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LegacySettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SupportedConfigurationMethods(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedConfigurationMethods()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Advertisement(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Advertisement()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Devices::WiFiDirect::WiFiDirectAdvertisementPublisherStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StatusChanged(event_token token) noexcept override - { - try - { - this->shim().StatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Devices::WiFiDirect::WiFiDirectAdvertisementPublisherStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Error(Windows::Devices::WiFiDirect::WiFiDirectError * value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ConnectionRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ConnectionRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ConnectionRequested(event_token token) noexcept override - { - try - { - this->shim().ConnectionRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GroupOwnerIntent(int16_t * value) noexcept override - { - try - { - *value = detach(this->shim().GroupOwnerIntent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GroupOwnerIntent(int16_t value) noexcept override - { - try - { - this->shim().GroupOwnerIntent(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PreferenceOrderedConfigurationMethods(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PreferenceOrderedConfigurationMethods()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreferredPairingProcedure(Windows::Devices::WiFiDirect::WiFiDirectPairingProcedure * value) noexcept override - { - try - { - *value = detach(this->shim().PreferredPairingProcedure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreferredPairingProcedure(Windows::Devices::WiFiDirect::WiFiDirectPairingProcedure value) noexcept override - { - try - { - this->shim().PreferredPairingProcedure(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDevicePairingKinds(Windows::Devices::WiFiDirect::WiFiDirectConfigurationMethod configurationMethod, Windows::Devices::Enumeration::DevicePairingKinds * result) noexcept override - { - try - { - *result = detach(this->shim().GetDevicePairingKinds(configurationMethod)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetConnectionRequest(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetConnectionRequest()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConnectionStatus(Windows::Devices::WiFiDirect::WiFiDirectConnectionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ConnectionStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ConnectionStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ConnectionStatusChanged(event_token token) noexcept override - { - try - { - this->shim().ConnectionStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConnectionEndpointPairs(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetConnectionEndpointPairs()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out deviceSelector) noexcept override - { - try - { - *deviceSelector = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *deviceSelector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(Windows::Devices::WiFiDirect::WiFiDirectDeviceSelectorType type, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeviceSelector(type)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in deviceId, abi_arg_in connectionParameters, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FromIdAsync(*reinterpret_cast(&deviceId), *reinterpret_cast(&connectionParameters))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Oui(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Oui()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Oui(abi_arg_in value) noexcept override - { - try - { - this->shim().Oui(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OuiType(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().OuiType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OuiType(uint8_t value) noexcept override - { - try - { - this->shim().OuiType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(abi_arg_in value) noexcept override - { - try - { - this->shim().Value(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromBuffer(abi_arg_in buffer, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromBuffer(*reinterpret_cast(&buffer))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromDeviceInformation(abi_arg_in deviceInformation, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromDeviceInformation(*reinterpret_cast(&deviceInformation))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsEnabled(bool value) noexcept override - { - try - { - this->shim().IsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ssid(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ssid()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Ssid(abi_arg_in value) noexcept override - { - try - { - this->shim().Ssid(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Passphrase(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Passphrase()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Passphrase(abi_arg_in value) noexcept override - { - try - { - this->shim().Passphrase(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices::WiFiDirect { - -template hstring impl_IWiFiDirectDeviceStatics::GetDeviceSelector() const -{ - hstring deviceSelector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(deviceSelector))); - return deviceSelector; -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiDirectDeviceStatics::FromIdAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), put(asyncOp))); - return asyncOp; -} - -template hstring impl_IWiFiDirectDeviceStatics2::GetDeviceSelector(Windows::Devices::WiFiDirect::WiFiDirectDeviceSelectorType type) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(type, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IWiFiDirectDeviceStatics2::FromIdAsync(hstring_ref deviceId, const Windows::Devices::WiFiDirect::WiFiDirectConnectionParameters & connectionParameters) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(deviceId), get(connectionParameters), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IWiFiDirectInformationElementStatics::CreateFromBuffer(const Windows::Storage::Streams::IBuffer & buffer) const -{ - Windows::Foundation::Collections::IVector result; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromBuffer(get(buffer), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IWiFiDirectInformationElementStatics::CreateFromDeviceInformation(const Windows::Devices::Enumeration::DeviceInformation & deviceInformation) const -{ - Windows::Foundation::Collections::IVector result; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromDeviceInformation(get(deviceInformation), put(result))); - return result; -} - -template Windows::Storage::Streams::IBuffer impl_IWiFiDirectInformationElement::Oui() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Oui(put(value))); - return value; -} - -template void impl_IWiFiDirectInformationElement::Oui(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Oui(get(value))); -} - -template uint8_t impl_IWiFiDirectInformationElement::OuiType() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OuiType(&value)); - return value; -} - -template void impl_IWiFiDirectInformationElement::OuiType(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OuiType(value)); -} - -template Windows::Storage::Streams::IBuffer impl_IWiFiDirectInformationElement::Value() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template void impl_IWiFiDirectInformationElement::Value(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(get(value))); -} - -template bool impl_IWiFiDirectLegacySettings::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_IWiFiDirectLegacySettings::IsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsEnabled(value)); -} - -template hstring impl_IWiFiDirectLegacySettings::Ssid() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ssid(put(value))); - return value; -} - -template void impl_IWiFiDirectLegacySettings::Ssid(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Ssid(get(value))); -} - -template Windows::Security::Credentials::PasswordCredential impl_IWiFiDirectLegacySettings::Passphrase() const -{ - Windows::Security::Credentials::PasswordCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Passphrase(put(value))); - return value; -} - -template void impl_IWiFiDirectLegacySettings::Passphrase(const Windows::Security::Credentials::PasswordCredential & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Passphrase(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IWiFiDirectAdvertisement::InformationElements() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_InformationElements(put(value))); - return value; -} - -template void impl_IWiFiDirectAdvertisement::InformationElements(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InformationElements(get(value))); -} - -template Windows::Devices::WiFiDirect::WiFiDirectAdvertisementListenStateDiscoverability impl_IWiFiDirectAdvertisement::ListenStateDiscoverability() const -{ - Windows::Devices::WiFiDirect::WiFiDirectAdvertisementListenStateDiscoverability value {}; - check_hresult(static_cast(static_cast(*this))->get_ListenStateDiscoverability(&value)); - return value; -} - -template void impl_IWiFiDirectAdvertisement::ListenStateDiscoverability(Windows::Devices::WiFiDirect::WiFiDirectAdvertisementListenStateDiscoverability value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ListenStateDiscoverability(value)); -} - -template bool impl_IWiFiDirectAdvertisement::IsAutonomousGroupOwnerEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAutonomousGroupOwnerEnabled(&value)); - return value; -} - -template void impl_IWiFiDirectAdvertisement::IsAutonomousGroupOwnerEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsAutonomousGroupOwnerEnabled(value)); -} - -template Windows::Devices::WiFiDirect::WiFiDirectLegacySettings impl_IWiFiDirectAdvertisement::LegacySettings() const -{ - Windows::Devices::WiFiDirect::WiFiDirectLegacySettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LegacySettings(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IWiFiDirectAdvertisement2::SupportedConfigurationMethods() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SupportedConfigurationMethods(put(value))); - return value; -} - -template Windows::Devices::WiFiDirect::WiFiDirectAdvertisementPublisherStatus impl_IWiFiDirectAdvertisementPublisherStatusChangedEventArgs::Status() const -{ - Windows::Devices::WiFiDirect::WiFiDirectAdvertisementPublisherStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::WiFiDirect::WiFiDirectError impl_IWiFiDirectAdvertisementPublisherStatusChangedEventArgs::Error() const -{ - Windows::Devices::WiFiDirect::WiFiDirectError value {}; - check_hresult(static_cast(static_cast(*this))->get_Error(&value)); - return value; -} - -template Windows::Devices::WiFiDirect::WiFiDirectAdvertisement impl_IWiFiDirectAdvertisementPublisher::Advertisement() const -{ - Windows::Devices::WiFiDirect::WiFiDirectAdvertisement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Advertisement(put(value))); - return value; -} - -template Windows::Devices::WiFiDirect::WiFiDirectAdvertisementPublisherStatus impl_IWiFiDirectAdvertisementPublisher::Status() const -{ - Windows::Devices::WiFiDirect::WiFiDirectAdvertisementPublisherStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template event_token impl_IWiFiDirectAdvertisementPublisher::StatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IWiFiDirectAdvertisementPublisher::StatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::WiFiDirect::IWiFiDirectAdvertisementPublisher::remove_StatusChanged, StatusChanged(handler)); -} - -template void impl_IWiFiDirectAdvertisementPublisher::StatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StatusChanged(token)); -} - -template void impl_IWiFiDirectAdvertisementPublisher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IWiFiDirectAdvertisementPublisher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template Windows::Devices::Enumeration::DevicePairingKinds impl_IWiFiDirectConnectionParametersStatics::GetDevicePairingKinds(Windows::Devices::WiFiDirect::WiFiDirectConfigurationMethod configurationMethod) const -{ - Windows::Devices::Enumeration::DevicePairingKinds result {}; - check_hresult(static_cast(static_cast(*this))->abi_GetDevicePairingKinds(configurationMethod, &result)); - return result; -} - -template int16_t impl_IWiFiDirectConnectionParameters::GroupOwnerIntent() const -{ - int16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_GroupOwnerIntent(&value)); - return value; -} - -template void impl_IWiFiDirectConnectionParameters::GroupOwnerIntent(int16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GroupOwnerIntent(value)); -} - -template Windows::Foundation::Collections::IVector impl_IWiFiDirectConnectionParameters2::PreferenceOrderedConfigurationMethods() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_PreferenceOrderedConfigurationMethods(put(value))); - return value; -} - -template Windows::Devices::WiFiDirect::WiFiDirectPairingProcedure impl_IWiFiDirectConnectionParameters2::PreferredPairingProcedure() const -{ - Windows::Devices::WiFiDirect::WiFiDirectPairingProcedure value {}; - check_hresult(static_cast(static_cast(*this))->get_PreferredPairingProcedure(&value)); - return value; -} - -template void impl_IWiFiDirectConnectionParameters2::PreferredPairingProcedure(Windows::Devices::WiFiDirect::WiFiDirectPairingProcedure value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreferredPairingProcedure(value)); -} - -template Windows::Devices::WiFiDirect::WiFiDirectConnectionRequest impl_IWiFiDirectConnectionRequestedEventArgs::GetConnectionRequest() const -{ - Windows::Devices::WiFiDirect::WiFiDirectConnectionRequest result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetConnectionRequest(put(result))); - return result; -} - -template event_token impl_IWiFiDirectConnectionListener::ConnectionRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ConnectionRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IWiFiDirectConnectionListener::ConnectionRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::WiFiDirect::IWiFiDirectConnectionListener::remove_ConnectionRequested, ConnectionRequested(handler)); -} - -template void impl_IWiFiDirectConnectionListener::ConnectionRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ConnectionRequested(token)); -} - -template Windows::Devices::WiFiDirect::WiFiDirectConnectionStatus impl_IWiFiDirectDevice::ConnectionStatus() const -{ - Windows::Devices::WiFiDirect::WiFiDirectConnectionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ConnectionStatus(&value)); - return value; -} - -template hstring impl_IWiFiDirectDevice::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template event_token impl_IWiFiDirectDevice::ConnectionStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ConnectionStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IWiFiDirectDevice::ConnectionStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Devices::WiFiDirect::IWiFiDirectDevice::remove_ConnectionStatusChanged, ConnectionStatusChanged(handler)); -} - -template void impl_IWiFiDirectDevice::ConnectionStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ConnectionStatusChanged(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_IWiFiDirectDevice::GetConnectionEndpointPairs() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetConnectionEndpointPairs(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IWiFiDirectConnectionRequest::DeviceInformation() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformation(put(value))); - return value; -} - -inline WiFiDirectAdvertisementPublisher::WiFiDirectAdvertisementPublisher() : - WiFiDirectAdvertisementPublisher(activate_instance()) -{} - -inline WiFiDirectConnectionListener::WiFiDirectConnectionListener() : - WiFiDirectConnectionListener(activate_instance()) -{} - -inline WiFiDirectConnectionParameters::WiFiDirectConnectionParameters() : - WiFiDirectConnectionParameters(activate_instance()) -{} - -inline Windows::Devices::Enumeration::DevicePairingKinds WiFiDirectConnectionParameters::GetDevicePairingKinds(Windows::Devices::WiFiDirect::WiFiDirectConfigurationMethod configurationMethod) -{ - return get_activation_factory().GetDevicePairingKinds(configurationMethod); -} - -inline hstring WiFiDirectDevice::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Foundation::IAsyncOperation WiFiDirectDevice::FromIdAsync(hstring_ref deviceId) -{ - return get_activation_factory().FromIdAsync(deviceId); -} - -inline hstring WiFiDirectDevice::GetDeviceSelector(Windows::Devices::WiFiDirect::WiFiDirectDeviceSelectorType type) -{ - return get_activation_factory().GetDeviceSelector(type); -} - -inline Windows::Foundation::IAsyncOperation WiFiDirectDevice::FromIdAsync(hstring_ref deviceId, const Windows::Devices::WiFiDirect::WiFiDirectConnectionParameters & connectionParameters) -{ - return get_activation_factory().FromIdAsync(deviceId, connectionParameters); -} - -inline WiFiDirectInformationElement::WiFiDirectInformationElement() : - WiFiDirectInformationElement(activate_instance()) -{} - -inline Windows::Foundation::Collections::IVector WiFiDirectInformationElement::CreateFromBuffer(const Windows::Storage::Streams::IBuffer & buffer) -{ - return get_activation_factory().CreateFromBuffer(buffer); -} - -inline Windows::Foundation::Collections::IVector WiFiDirectInformationElement::CreateFromDeviceInformation(const Windows::Devices::Enumeration::DeviceInformation & deviceInformation) -{ - return get_activation_factory().CreateFromDeviceInformation(deviceInformation); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Devices.h b/10.0.14393.0/winrt/Windows.Devices.h deleted file mode 100644 index efb13e60b..000000000 --- a/10.0.14393.0/winrt/Windows.Devices.h +++ /dev/null @@ -1,218 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Devices.Adc.Provider.3.h" -#include "internal/Windows.Devices.Pwm.Provider.3.h" -#include "internal/Windows.Devices.Gpio.Provider.3.h" -#include "internal/Windows.Devices.I2c.Provider.3.h" -#include "internal/Windows.Devices.Spi.Provider.3.h" -#include "internal/Windows.Devices.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AdcControllerProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdcControllerProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PwmControllerProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PwmControllerProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GpioControllerProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GpioControllerProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_I2cControllerProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().I2cControllerProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpiControllerProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SpiControllerProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in adc, abi_arg_in pwm, abi_arg_in gpio, abi_arg_in i2c, abi_arg_in spi, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&adc), *reinterpret_cast(&pwm), *reinterpret_cast(&gpio), *reinterpret_cast(&i2c), *reinterpret_cast(&spi))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DefaultProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultProvider(abi_arg_in value) noexcept override - { - try - { - this->shim().DefaultProvider(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Devices { - -template Windows::Devices::Adc::Provider::IAdcControllerProvider impl_ILowLevelDevicesAggregateProvider::AdcControllerProvider() const -{ - Windows::Devices::Adc::Provider::IAdcControllerProvider value; - check_hresult(static_cast(static_cast(*this))->get_AdcControllerProvider(put(value))); - return value; -} - -template Windows::Devices::Pwm::Provider::IPwmControllerProvider impl_ILowLevelDevicesAggregateProvider::PwmControllerProvider() const -{ - Windows::Devices::Pwm::Provider::IPwmControllerProvider value; - check_hresult(static_cast(static_cast(*this))->get_PwmControllerProvider(put(value))); - return value; -} - -template Windows::Devices::Gpio::Provider::IGpioControllerProvider impl_ILowLevelDevicesAggregateProvider::GpioControllerProvider() const -{ - Windows::Devices::Gpio::Provider::IGpioControllerProvider value; - check_hresult(static_cast(static_cast(*this))->get_GpioControllerProvider(put(value))); - return value; -} - -template Windows::Devices::I2c::Provider::II2cControllerProvider impl_ILowLevelDevicesAggregateProvider::I2cControllerProvider() const -{ - Windows::Devices::I2c::Provider::II2cControllerProvider value; - check_hresult(static_cast(static_cast(*this))->get_I2cControllerProvider(put(value))); - return value; -} - -template Windows::Devices::Spi::Provider::ISpiControllerProvider impl_ILowLevelDevicesAggregateProvider::SpiControllerProvider() const -{ - Windows::Devices::Spi::Provider::ISpiControllerProvider value; - check_hresult(static_cast(static_cast(*this))->get_SpiControllerProvider(put(value))); - return value; -} - -template Windows::Devices::LowLevelDevicesAggregateProvider impl_ILowLevelDevicesAggregateProviderFactory::Create(const Windows::Devices::Adc::Provider::IAdcControllerProvider & adc, const Windows::Devices::Pwm::Provider::IPwmControllerProvider & pwm, const Windows::Devices::Gpio::Provider::IGpioControllerProvider & gpio, const Windows::Devices::I2c::Provider::II2cControllerProvider & i2c, const Windows::Devices::Spi::Provider::ISpiControllerProvider & spi) const -{ - Windows::Devices::LowLevelDevicesAggregateProvider value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(adc), get(pwm), get(gpio), get(i2c), get(spi), put(value))); - return value; -} - -template Windows::Devices::ILowLevelDevicesAggregateProvider impl_ILowLevelDevicesControllerStatics::DefaultProvider() const -{ - Windows::Devices::ILowLevelDevicesAggregateProvider value; - check_hresult(static_cast(static_cast(*this))->get_DefaultProvider(put(value))); - return value; -} - -template void impl_ILowLevelDevicesControllerStatics::DefaultProvider(const Windows::Devices::ILowLevelDevicesAggregateProvider & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultProvider(get(value))); -} - -inline LowLevelDevicesAggregateProvider::LowLevelDevicesAggregateProvider(const Windows::Devices::Adc::Provider::IAdcControllerProvider & adc, const Windows::Devices::Pwm::Provider::IPwmControllerProvider & pwm, const Windows::Devices::Gpio::Provider::IGpioControllerProvider & gpio, const Windows::Devices::I2c::Provider::II2cControllerProvider & i2c, const Windows::Devices::Spi::Provider::ISpiControllerProvider & spi) : - LowLevelDevicesAggregateProvider(get_activation_factory().Create(adc, pwm, gpio, i2c, spi)) -{} - -inline Windows::Devices::ILowLevelDevicesAggregateProvider LowLevelDevicesController::DefaultProvider() -{ - return get_activation_factory().DefaultProvider(); -} - -inline void LowLevelDevicesController::DefaultProvider(const Windows::Devices::ILowLevelDevicesAggregateProvider & value) -{ - get_activation_factory().DefaultProvider(value); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Embedded.DeviceLockdown.h b/10.0.14393.0/winrt/Windows.Embedded.DeviceLockdown.h deleted file mode 100644 index 2817c4ba0..000000000 --- a/10.0.14393.0/winrt/Windows.Embedded.DeviceLockdown.h +++ /dev/null @@ -1,152 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Embedded.DeviceLockdown.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out phProfileName) noexcept override - { - try - { - *phProfileName = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *phProfileName = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetSupportedLockdownProfiles(abi_arg_out> ppProfileIDs) noexcept override - { - try - { - *ppProfileIDs = detach(this->shim().GetSupportedLockdownProfiles()); - return S_OK; - } - catch (...) - { - *ppProfileIDs = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentLockdownProfile(GUID * pProfileID) noexcept override - { - try - { - *pProfileID = detach(this->shim().GetCurrentLockdownProfile()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ApplyLockdownProfileAsync(GUID profileID, abi_arg_out ppWaitableOperation) noexcept override - { - try - { - *ppWaitableOperation = detach(this->shim().ApplyLockdownProfileAsync(profileID)); - return S_OK; - } - catch (...) - { - *ppWaitableOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLockdownProfileInformation(GUID profileID, abi_arg_out ppInformation) noexcept override - { - try - { - *ppInformation = detach(this->shim().GetLockdownProfileInformation(profileID)); - return S_OK; - } - catch (...) - { - *ppInformation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Embedded::DeviceLockdown { - -template hstring impl_IDeviceLockdownProfileInformation::Name() const -{ - hstring phProfileName; - check_hresult(static_cast(static_cast(*this))->get_Name(put(phProfileName))); - return phProfileName; -} - -template Windows::Foundation::Collections::IVectorView impl_IDeviceLockdownProfileStatics::GetSupportedLockdownProfiles() const -{ - Windows::Foundation::Collections::IVectorView ppProfileIDs; - check_hresult(static_cast(static_cast(*this))->abi_GetSupportedLockdownProfiles(put(ppProfileIDs))); - return ppProfileIDs; -} - -template GUID impl_IDeviceLockdownProfileStatics::GetCurrentLockdownProfile() const -{ - GUID pProfileID {}; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentLockdownProfile(&pProfileID)); - return pProfileID; -} - -template Windows::Foundation::IAsyncAction impl_IDeviceLockdownProfileStatics::ApplyLockdownProfileAsync(GUID profileID) const -{ - Windows::Foundation::IAsyncAction ppWaitableOperation; - check_hresult(static_cast(static_cast(*this))->abi_ApplyLockdownProfileAsync(profileID, put(ppWaitableOperation))); - return ppWaitableOperation; -} - -template Windows::Embedded::DeviceLockdown::DeviceLockdownProfileInformation impl_IDeviceLockdownProfileStatics::GetLockdownProfileInformation(GUID profileID) const -{ - Windows::Embedded::DeviceLockdown::DeviceLockdownProfileInformation ppInformation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetLockdownProfileInformation(profileID, put(ppInformation))); - return ppInformation; -} - -inline Windows::Foundation::Collections::IVectorView DeviceLockdownProfile::GetSupportedLockdownProfiles() -{ - return get_activation_factory().GetSupportedLockdownProfiles(); -} - -inline GUID DeviceLockdownProfile::GetCurrentLockdownProfile() -{ - return get_activation_factory().GetCurrentLockdownProfile(); -} - -inline Windows::Foundation::IAsyncAction DeviceLockdownProfile::ApplyLockdownProfileAsync(GUID profileID) -{ - return get_activation_factory().ApplyLockdownProfileAsync(profileID); -} - -inline Windows::Embedded::DeviceLockdown::DeviceLockdownProfileInformation DeviceLockdownProfile::GetLockdownProfileInformation(GUID profileID) -{ - return get_activation_factory().GetLockdownProfileInformation(profileID); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Foundation.Collections.h b/10.0.14393.0/winrt/Windows.Foundation.Collections.h deleted file mode 100644 index 6ed21fe76..000000000 --- a/10.0.14393.0/winrt/Windows.Foundation.Collections.h +++ /dev/null @@ -1,35 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{}; - -} - -namespace Windows::Foundation::Collections { - -inline PropertySet::PropertySet() : - PropertySet(activate_instance()) -{} - -inline StringMap::StringMap() : - StringMap(activate_instance()) -{} - -inline ValueSet::ValueSet() : - ValueSet(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Foundation.Diagnostics.h b/10.0.14393.0/winrt/Windows.Foundation.Diagnostics.h deleted file mode 100644 index fec01dd96..000000000 --- a/10.0.14393.0/winrt/Windows.Foundation.Diagnostics.h +++ /dev/null @@ -1,3818 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.Diagnostics.3.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TraceOperationCreation(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, abi_arg_in operationName, uint64_t relatedContext) noexcept override - { - try - { - this->shim().TraceOperationCreation(traceLevel, source, platformId, operationId, *reinterpret_cast(&operationName), relatedContext); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TraceOperationCompletion(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, Windows::Foundation::AsyncStatus status) noexcept override - { - try - { - this->shim().TraceOperationCompletion(traceLevel, source, platformId, operationId, status); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TraceOperationRelation(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, Windows::Foundation::Diagnostics::CausalityRelation relation) noexcept override - { - try - { - this->shim().TraceOperationRelation(traceLevel, source, platformId, operationId, relation); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TraceSynchronousWorkStart(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, Windows::Foundation::Diagnostics::CausalitySynchronousWork work) noexcept override - { - try - { - this->shim().TraceSynchronousWorkStart(traceLevel, source, platformId, operationId, work); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TraceSynchronousWorkCompletion(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, Windows::Foundation::Diagnostics::CausalitySynchronousWork work) noexcept override - { - try - { - this->shim().TraceSynchronousWorkCompletion(traceLevel, source, work); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TracingStatusChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().TracingStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TracingStatusChanged(event_token cookie) noexcept override - { - try - { - this->shim().TracingStatusChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LongDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LongDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HelpUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HelpUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromHResultAsync(int32_t errorCode, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFromHResultAsync(errorCode)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetErrorOptions(Windows::Foundation::Diagnostics::ErrorOptions value) noexcept override - { - try - { - this->shim().SetErrorOptions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetErrorOptions(Windows::Foundation::Diagnostics::ErrorOptions * value) noexcept override - { - try - { - *value = detach(this->shim().GetErrorOptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddLoggingChannel(abi_arg_in loggingChannel) noexcept override - { - try - { - this->shim().AddLoggingChannel(*reinterpret_cast(&loggingChannel)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddLoggingChannelWithLevel(abi_arg_in loggingChannel, Windows::Foundation::Diagnostics::LoggingLevel maxLevel) noexcept override - { - try - { - this->shim().AddLoggingChannel(*reinterpret_cast(&loggingChannel), maxLevel); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveLoggingChannel(abi_arg_in loggingChannel) noexcept override - { - try - { - this->shim().RemoveLoggingChannel(*reinterpret_cast(&loggingChannel)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CloseAndSaveToFileAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CloseAndSaveToFileAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LogFileGenerated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LogFileGenerated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LogFileGenerated(event_token token) noexcept override - { - try - { - this->shim().LogFileGenerated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in name, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_File(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().File()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Channel(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Channel()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopActivity(abi_arg_in stopEventName) noexcept override - { - try - { - this->shim().StopActivity(*reinterpret_cast(&stopEventName)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopActivityWithFields(abi_arg_in stopEventName, abi_arg_in fields) noexcept override - { - try - { - this->shim().StopActivity(*reinterpret_cast(&stopEventName), *reinterpret_cast(&fields)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopActivityWithFieldsAndOptions(abi_arg_in stopEventName, abi_arg_in fields, abi_arg_in options) noexcept override - { - try - { - this->shim().StopActivity(*reinterpret_cast(&stopEventName), *reinterpret_cast(&fields), *reinterpret_cast(&options)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateLoggingActivity(abi_arg_in activityName, abi_arg_in loggingChannel, abi_arg_out loggingActivity) noexcept override - { - try - { - *loggingActivity = detach(this->shim().CreateLoggingActivity(*reinterpret_cast(&activityName), *reinterpret_cast(&loggingChannel))); - return S_OK; - } - catch (...) - { - *loggingActivity = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateLoggingActivityWithLevel(abi_arg_in activityName, abi_arg_in loggingChannel, Windows::Foundation::Diagnostics::LoggingLevel level, abi_arg_out loggingActivity) noexcept override - { - try - { - *loggingActivity = detach(this->shim().CreateLoggingActivityWithLevel(*reinterpret_cast(&activityName), *reinterpret_cast(&loggingChannel), level)); - return S_OK; - } - catch (...) - { - *loggingActivity = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Level(Windows::Foundation::Diagnostics::LoggingLevel * value) noexcept override - { - try - { - *value = detach(this->shim().Level()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LogMessage(abi_arg_in eventString) noexcept override - { - try - { - this->shim().LogMessage(*reinterpret_cast(&eventString)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LogMessageWithLevel(abi_arg_in eventString, Windows::Foundation::Diagnostics::LoggingLevel level) noexcept override - { - try - { - this->shim().LogMessage(*reinterpret_cast(&eventString), level); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LogValuePair(abi_arg_in value1, int32_t value2) noexcept override - { - try - { - this->shim().LogValuePair(*reinterpret_cast(&value1), value2); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LogValuePairWithLevel(abi_arg_in value1, int32_t value2, Windows::Foundation::Diagnostics::LoggingLevel level) noexcept override - { - try - { - this->shim().LogValuePair(*reinterpret_cast(&value1), value2, level); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LoggingEnabled(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LoggingEnabled(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LoggingEnabled(event_token token) noexcept override - { - try - { - this->shim().LoggingEnabled(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in name, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithOptions(abi_arg_in name, abi_arg_in options, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithOptions(*reinterpret_cast(&name), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithOptionsAndId(abi_arg_in name, abi_arg_in options, GUID id, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithOptionsAndId(*reinterpret_cast(&name), *reinterpret_cast(&options), id)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Group(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Group()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Group(GUID value) noexcept override - { - try - { - this->shim().Group(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(GUID group, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(group)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BeginStruct(abi_arg_in name) noexcept override - { - try - { - this->shim().BeginStruct(*reinterpret_cast(&name)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BeginStructWithTags(abi_arg_in name, int32_t tags) noexcept override - { - try - { - this->shim().BeginStruct(*reinterpret_cast(&name), tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EndStruct() noexcept override - { - try - { - this->shim().EndStruct(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddEmpty(abi_arg_in name) noexcept override - { - try - { - this->shim().AddEmpty(*reinterpret_cast(&name)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddEmptyWithFormat(abi_arg_in name, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddEmpty(*reinterpret_cast(&name), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddEmptyWithFormatAndTags(abi_arg_in name, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddEmpty(*reinterpret_cast(&name), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt8(abi_arg_in name, uint8_t value) noexcept override - { - try - { - this->shim().AddUInt8(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt8WithFormat(abi_arg_in name, uint8_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddUInt8(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt8WithFormatAndTags(abi_arg_in name, uint8_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddUInt8(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt8Array(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddUInt8Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt8ArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddUInt8Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt8ArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddUInt8Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt16(abi_arg_in name, int16_t value) noexcept override - { - try - { - this->shim().AddInt16(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt16WithFormat(abi_arg_in name, int16_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddInt16(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt16WithFormatAndTags(abi_arg_in name, int16_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddInt16(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt16Array(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddInt16Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt16ArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddInt16Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt16ArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddInt16Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt16(abi_arg_in name, uint16_t value) noexcept override - { - try - { - this->shim().AddUInt16(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt16WithFormat(abi_arg_in name, uint16_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddUInt16(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt16WithFormatAndTags(abi_arg_in name, uint16_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddUInt16(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt16Array(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddUInt16Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt16ArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddUInt16Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt16ArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddUInt16Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt32(abi_arg_in name, int32_t value) noexcept override - { - try - { - this->shim().AddInt32(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt32WithFormat(abi_arg_in name, int32_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddInt32(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt32WithFormatAndTags(abi_arg_in name, int32_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddInt32(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt32Array(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddInt32Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt32ArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddInt32Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt32ArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddInt32Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt32(abi_arg_in name, uint32_t value) noexcept override - { - try - { - this->shim().AddUInt32(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt32WithFormat(abi_arg_in name, uint32_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddUInt32(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt32WithFormatAndTags(abi_arg_in name, uint32_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddUInt32(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt32Array(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddUInt32Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt32ArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddUInt32Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt32ArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddUInt32Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt64(abi_arg_in name, int64_t value) noexcept override - { - try - { - this->shim().AddInt64(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt64WithFormat(abi_arg_in name, int64_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddInt64(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt64WithFormatAndTags(abi_arg_in name, int64_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddInt64(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt64Array(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddInt64Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt64ArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddInt64Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddInt64ArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddInt64Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt64(abi_arg_in name, uint64_t value) noexcept override - { - try - { - this->shim().AddUInt64(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt64WithFormat(abi_arg_in name, uint64_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddUInt64(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt64WithFormatAndTags(abi_arg_in name, uint64_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddUInt64(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt64Array(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddUInt64Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt64ArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddUInt64Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddUInt64ArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddUInt64Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSingle(abi_arg_in name, float value) noexcept override - { - try - { - this->shim().AddSingle(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSingleWithFormat(abi_arg_in name, float value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddSingle(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSingleWithFormatAndTags(abi_arg_in name, float value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddSingle(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSingleArray(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddSingleArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSingleArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddSingleArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSingleArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddSingleArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDouble(abi_arg_in name, double value) noexcept override - { - try - { - this->shim().AddDouble(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDoubleWithFormat(abi_arg_in name, double value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddDouble(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDoubleWithFormatAndTags(abi_arg_in name, double value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddDouble(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDoubleArray(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddDoubleArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDoubleArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddDoubleArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDoubleArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddDoubleArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddChar16(abi_arg_in name, wchar_t value) noexcept override - { - try - { - this->shim().AddChar16(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddChar16WithFormat(abi_arg_in name, wchar_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddChar16(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddChar16WithFormatAndTags(abi_arg_in name, wchar_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddChar16(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddChar16Array(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddChar16Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddChar16ArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddChar16Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddChar16ArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddChar16Array(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddBoolean(abi_arg_in name, bool value) noexcept override - { - try - { - this->shim().AddBoolean(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddBooleanWithFormat(abi_arg_in name, bool value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddBoolean(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddBooleanWithFormatAndTags(abi_arg_in name, bool value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddBoolean(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddBooleanArray(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddBooleanArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddBooleanArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddBooleanArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddBooleanArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddBooleanArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddString(abi_arg_in name, abi_arg_in value) noexcept override - { - try - { - this->shim().AddString(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddStringWithFormat(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddString(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddStringWithFormatAndTags(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddString(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddStringArray(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddStringArray(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddStringArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddStringArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddStringArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddStringArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddGuid(abi_arg_in name, GUID value) noexcept override - { - try - { - this->shim().AddGuid(*reinterpret_cast(&name), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddGuidWithFormat(abi_arg_in name, GUID value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddGuid(*reinterpret_cast(&name), value, format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddGuidWithFormatAndTags(abi_arg_in name, GUID value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddGuid(*reinterpret_cast(&name), value, format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddGuidArray(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddGuidArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddGuidArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddGuidArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddGuidArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddGuidArray(*reinterpret_cast(&name), array_ref(value, value + __valueSize), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDateTime(abi_arg_in name, abi_arg_in value) noexcept override - { - try - { - this->shim().AddDateTime(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDateTimeWithFormat(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddDateTime(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDateTimeWithFormatAndTags(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddDateTime(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDateTimeArray(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddDateTimeArray(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDateTimeArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddDateTimeArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDateTimeArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddDateTimeArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddTimeSpan(abi_arg_in name, abi_arg_in value) noexcept override - { - try - { - this->shim().AddTimeSpan(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddTimeSpanWithFormat(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddTimeSpan(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddTimeSpanWithFormatAndTags(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddTimeSpan(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddTimeSpanArray(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddTimeSpanArray(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddTimeSpanArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddTimeSpanArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddTimeSpanArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddTimeSpanArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddPoint(abi_arg_in name, abi_arg_in value) noexcept override - { - try - { - this->shim().AddPoint(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddPointWithFormat(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddPoint(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddPointWithFormatAndTags(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddPoint(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddPointArray(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddPointArray(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddPointArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddPointArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddPointArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddPointArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSize(abi_arg_in name, abi_arg_in value) noexcept override - { - try - { - this->shim().AddSize(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSizeWithFormat(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddSize(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSizeWithFormatAndTags(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddSize(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSizeArray(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddSizeArray(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSizeArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddSizeArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSizeArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddSizeArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddRect(abi_arg_in name, abi_arg_in value) noexcept override - { - try - { - this->shim().AddRect(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddRectWithFormat(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddRect(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddRectWithFormatAndTags(abi_arg_in name, abi_arg_in value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddRect(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddRectArray(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().AddRectArray(*reinterpret_cast(&name), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddRectArrayWithFormat(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) noexcept override - { - try - { - this->shim().AddRectArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddRectArrayWithFormatAndTags(abi_arg_in name, uint32_t __valueSize, abi_arg_in * value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) noexcept override - { - try - { - this->shim().AddRectArray(*reinterpret_cast(&name), *reinterpret_cast(&value), format, tags); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Keywords(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().Keywords()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Keywords(int64_t value) noexcept override - { - try - { - this->shim().Keywords(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tags(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Tags()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Tags(int32_t value) noexcept override - { - try - { - this->shim().Tags(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Task(int16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Task()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Task(int16_t value) noexcept override - { - try - { - this->shim().Task(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Opcode(Windows::Foundation::Diagnostics::LoggingOpcode * value) noexcept override - { - try - { - *value = detach(this->shim().Opcode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Opcode(Windows::Foundation::Diagnostics::LoggingOpcode value) noexcept override - { - try - { - this->shim().Opcode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActivityId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ActivityId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ActivityId(GUID value) noexcept override - { - try - { - this->shim().ActivityId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RelatedActivityId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().RelatedActivityId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RelatedActivityId(GUID value) noexcept override - { - try - { - this->shim().RelatedActivityId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithKeywords(int64_t keywords, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithKeywords(keywords)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveToFileAsync(abi_arg_in folder, abi_arg_in fileName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SaveToFileAsync(*reinterpret_cast(&folder), *reinterpret_cast(&fileName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddLoggingChannel(abi_arg_in loggingChannel) noexcept override - { - try - { - this->shim().AddLoggingChannel(*reinterpret_cast(&loggingChannel)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddLoggingChannelWithLevel(abi_arg_in loggingChannel, Windows::Foundation::Diagnostics::LoggingLevel maxLevel) noexcept override - { - try - { - this->shim().AddLoggingChannel(*reinterpret_cast(&loggingChannel), maxLevel); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveLoggingChannel(abi_arg_in loggingChannel) noexcept override - { - try - { - this->shim().RemoveLoggingChannel(*reinterpret_cast(&loggingChannel)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in name, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsEnabled(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEnabledWithLevel(Windows::Foundation::Diagnostics::LoggingLevel level, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsEnabled(level)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEnabledWithLevelAndKeywords(Windows::Foundation::Diagnostics::LoggingLevel level, int64_t keywords, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsEnabled(level, keywords)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LogEvent(abi_arg_in eventName) noexcept override - { - try - { - this->shim().LogEvent(*reinterpret_cast(&eventName)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LogEventWithFields(abi_arg_in eventName, abi_arg_in fields) noexcept override - { - try - { - this->shim().LogEvent(*reinterpret_cast(&eventName), *reinterpret_cast(&fields)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LogEventWithFieldsAndLevel(abi_arg_in eventName, abi_arg_in fields, Windows::Foundation::Diagnostics::LoggingLevel level) noexcept override - { - try - { - this->shim().LogEvent(*reinterpret_cast(&eventName), *reinterpret_cast(&fields), level); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LogEventWithFieldsAndOptions(abi_arg_in eventName, abi_arg_in fields, Windows::Foundation::Diagnostics::LoggingLevel level, abi_arg_in options) noexcept override - { - try - { - this->shim().LogEvent(*reinterpret_cast(&eventName), *reinterpret_cast(&fields), level, *reinterpret_cast(&options)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartActivity(abi_arg_in startEventName, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().StartActivity(*reinterpret_cast(&startEventName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartActivityWithFields(abi_arg_in startEventName, abi_arg_in fields, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().StartActivity(*reinterpret_cast(&startEventName), *reinterpret_cast(&fields))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartActivityWithFieldsAndLevel(abi_arg_in startEventName, abi_arg_in fields, Windows::Foundation::Diagnostics::LoggingLevel level, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().StartActivity(*reinterpret_cast(&startEventName), *reinterpret_cast(&fields), level)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartActivityWithFieldsAndOptions(abi_arg_in startEventName, abi_arg_in fields, Windows::Foundation::Diagnostics::LoggingLevel level, abi_arg_in options, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().StartActivity(*reinterpret_cast(&startEventName), *reinterpret_cast(&fields), level, *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Enabled(bool * enabled) noexcept override - { - try - { - *enabled = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TraceLevel(Windows::Foundation::Diagnostics::CausalityTraceLevel * value) noexcept override - { - try - { - *value = detach(this->shim().TraceLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Foundation::Diagnostics { - -template bool impl_ITracingStatusChangedEventArgs::Enabled() const -{ - bool enabled {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&enabled)); - return enabled; -} - -template Windows::Foundation::Diagnostics::CausalityTraceLevel impl_ITracingStatusChangedEventArgs::TraceLevel() const -{ - Windows::Foundation::Diagnostics::CausalityTraceLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_TraceLevel(&value)); - return value; -} - -template void impl_IAsyncCausalityTracerStatics::TraceOperationCreation(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, hstring_ref operationName, uint64_t relatedContext) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TraceOperationCreation(traceLevel, source, platformId, operationId, get(operationName), relatedContext)); -} - -template void impl_IAsyncCausalityTracerStatics::TraceOperationCompletion(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, Windows::Foundation::AsyncStatus status) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TraceOperationCompletion(traceLevel, source, platformId, operationId, status)); -} - -template void impl_IAsyncCausalityTracerStatics::TraceOperationRelation(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, Windows::Foundation::Diagnostics::CausalityRelation relation) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TraceOperationRelation(traceLevel, source, platformId, operationId, relation)); -} - -template void impl_IAsyncCausalityTracerStatics::TraceSynchronousWorkStart(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, Windows::Foundation::Diagnostics::CausalitySynchronousWork work) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TraceSynchronousWorkStart(traceLevel, source, platformId, operationId, work)); -} - -template void impl_IAsyncCausalityTracerStatics::TraceSynchronousWorkCompletion(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, Windows::Foundation::Diagnostics::CausalitySynchronousWork work) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TraceSynchronousWorkCompletion(traceLevel, source, work)); -} - -template event_token impl_IAsyncCausalityTracerStatics::TracingStatusChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_TracingStatusChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IAsyncCausalityTracerStatics::TracingStatusChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Foundation::Diagnostics::IAsyncCausalityTracerStatics::remove_TracingStatusChanged, TracingStatusChanged(handler)); -} - -template void impl_IAsyncCausalityTracerStatics::TracingStatusChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TracingStatusChanged(cookie)); -} - -template void impl_IErrorReportingSettings::SetErrorOptions(Windows::Foundation::Diagnostics::ErrorOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetErrorOptions(value)); -} - -template Windows::Foundation::Diagnostics::ErrorOptions impl_IErrorReportingSettings::GetErrorOptions() const -{ - Windows::Foundation::Diagnostics::ErrorOptions value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetErrorOptions(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IErrorDetailsStatics::CreateFromHResultAsync(int32_t errorCode) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromHResultAsync(errorCode, put(operation))); - return operation; -} - -template hstring impl_IErrorDetails::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template hstring impl_IErrorDetails::LongDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LongDescription(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IErrorDetails::HelpUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HelpUri(put(value))); - return value; -} - -template int64_t impl_ILoggingOptions::Keywords() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Keywords(&value)); - return value; -} - -template void impl_ILoggingOptions::Keywords(int64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Keywords(value)); -} - -template int32_t impl_ILoggingOptions::Tags() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Tags(&value)); - return value; -} - -template void impl_ILoggingOptions::Tags(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Tags(value)); -} - -template int16_t impl_ILoggingOptions::Task() const -{ - int16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Task(&value)); - return value; -} - -template void impl_ILoggingOptions::Task(int16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Task(value)); -} - -template Windows::Foundation::Diagnostics::LoggingOpcode impl_ILoggingOptions::Opcode() const -{ - Windows::Foundation::Diagnostics::LoggingOpcode value {}; - check_hresult(static_cast(static_cast(*this))->get_Opcode(&value)); - return value; -} - -template void impl_ILoggingOptions::Opcode(Windows::Foundation::Diagnostics::LoggingOpcode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Opcode(value)); -} - -template GUID impl_ILoggingOptions::ActivityId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ActivityId(&value)); - return value; -} - -template void impl_ILoggingOptions::ActivityId(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ActivityId(value)); -} - -template GUID impl_ILoggingOptions::RelatedActivityId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_RelatedActivityId(&value)); - return value; -} - -template void impl_ILoggingOptions::RelatedActivityId(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RelatedActivityId(value)); -} - -template Windows::Foundation::Diagnostics::LoggingOptions impl_ILoggingOptionsFactory::CreateWithKeywords(int64_t keywords) const -{ - Windows::Foundation::Diagnostics::LoggingOptions result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithKeywords(keywords, put(result))); - return result; -} - -template GUID impl_ILoggingChannelOptions::Group() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Group(&value)); - return value; -} - -template void impl_ILoggingChannelOptions::Group(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Group(value)); -} - -template Windows::Foundation::Diagnostics::LoggingChannelOptions impl_ILoggingChannelOptionsFactory::Create(GUID group) const -{ - Windows::Foundation::Diagnostics::LoggingChannelOptions result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(group, put(result))); - return result; -} - -template void impl_ILoggingFields::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template void impl_ILoggingFields::BeginStruct(hstring_ref name) const -{ - check_hresult(static_cast(static_cast(*this))->abi_BeginStruct(get(name))); -} - -template void impl_ILoggingFields::BeginStruct(hstring_ref name, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_BeginStructWithTags(get(name), tags)); -} - -template void impl_ILoggingFields::EndStruct() const -{ - check_hresult(static_cast(static_cast(*this))->abi_EndStruct()); -} - -template void impl_ILoggingFields::AddEmpty(hstring_ref name) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddEmpty(get(name))); -} - -template void impl_ILoggingFields::AddEmpty(hstring_ref name, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddEmptyWithFormat(get(name), format)); -} - -template void impl_ILoggingFields::AddEmpty(hstring_ref name, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddEmptyWithFormatAndTags(get(name), format, tags)); -} - -template void impl_ILoggingFields::AddUInt8(hstring_ref name, uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt8(get(name), value)); -} - -template void impl_ILoggingFields::AddUInt8(hstring_ref name, uint8_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt8WithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddUInt8(hstring_ref name, uint8_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt8WithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddUInt8Array(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt8Array(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddUInt8Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt8ArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddUInt8Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt8ArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddInt16(hstring_ref name, int16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt16(get(name), value)); -} - -template void impl_ILoggingFields::AddInt16(hstring_ref name, int16_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt16WithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddInt16(hstring_ref name, int16_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt16WithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddInt16Array(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt16Array(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddInt16Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt16ArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddInt16Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt16ArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddUInt16(hstring_ref name, uint16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt16(get(name), value)); -} - -template void impl_ILoggingFields::AddUInt16(hstring_ref name, uint16_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt16WithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddUInt16(hstring_ref name, uint16_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt16WithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddUInt16Array(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt16Array(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddUInt16Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt16ArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddUInt16Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt16ArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddInt32(hstring_ref name, int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt32(get(name), value)); -} - -template void impl_ILoggingFields::AddInt32(hstring_ref name, int32_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt32WithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddInt32(hstring_ref name, int32_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt32WithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddInt32Array(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt32Array(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddInt32Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt32ArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddInt32Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt32ArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddUInt32(hstring_ref name, uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt32(get(name), value)); -} - -template void impl_ILoggingFields::AddUInt32(hstring_ref name, uint32_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt32WithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddUInt32(hstring_ref name, uint32_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt32WithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddUInt32Array(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt32Array(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddUInt32Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt32ArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddUInt32Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt32ArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddInt64(hstring_ref name, int64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt64(get(name), value)); -} - -template void impl_ILoggingFields::AddInt64(hstring_ref name, int64_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt64WithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddInt64(hstring_ref name, int64_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt64WithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddInt64Array(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt64Array(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddInt64Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt64ArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddInt64Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInt64ArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddUInt64(hstring_ref name, uint64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt64(get(name), value)); -} - -template void impl_ILoggingFields::AddUInt64(hstring_ref name, uint64_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt64WithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddUInt64(hstring_ref name, uint64_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt64WithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddUInt64Array(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt64Array(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddUInt64Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt64ArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddUInt64Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddUInt64ArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddSingle(hstring_ref name, float value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSingle(get(name), value)); -} - -template void impl_ILoggingFields::AddSingle(hstring_ref name, float value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSingleWithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddSingle(hstring_ref name, float value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSingleWithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddSingleArray(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSingleArray(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddSingleArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSingleArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddSingleArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSingleArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddDouble(hstring_ref name, double value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDouble(get(name), value)); -} - -template void impl_ILoggingFields::AddDouble(hstring_ref name, double value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDoubleWithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddDouble(hstring_ref name, double value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDoubleWithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddDoubleArray(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDoubleArray(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddDoubleArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDoubleArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddDoubleArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDoubleArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddChar16(hstring_ref name, wchar_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddChar16(get(name), value)); -} - -template void impl_ILoggingFields::AddChar16(hstring_ref name, wchar_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddChar16WithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddChar16(hstring_ref name, wchar_t value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddChar16WithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddChar16Array(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddChar16Array(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddChar16Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddChar16ArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddChar16Array(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddChar16ArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddBoolean(hstring_ref name, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddBoolean(get(name), value)); -} - -template void impl_ILoggingFields::AddBoolean(hstring_ref name, bool value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddBooleanWithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddBoolean(hstring_ref name, bool value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddBooleanWithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddBooleanArray(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddBooleanArray(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddBooleanArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddBooleanArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddBooleanArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddBooleanArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddString(hstring_ref name, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddString(get(name), get(value))); -} - -template void impl_ILoggingFields::AddString(hstring_ref name, hstring_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddStringWithFormat(get(name), get(value), format)); -} - -template void impl_ILoggingFields::AddString(hstring_ref name, hstring_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddStringWithFormatAndTags(get(name), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddStringArray(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddStringArray(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddStringArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddStringArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddStringArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddStringArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddGuid(hstring_ref name, GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddGuid(get(name), value)); -} - -template void impl_ILoggingFields::AddGuid(hstring_ref name, GUID value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddGuidWithFormat(get(name), value, format)); -} - -template void impl_ILoggingFields::AddGuid(hstring_ref name, GUID value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddGuidWithFormatAndTags(get(name), value, format, tags)); -} - -template void impl_ILoggingFields::AddGuidArray(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddGuidArray(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddGuidArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddGuidArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddGuidArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddGuidArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddDateTime(hstring_ref name, const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDateTime(get(name), get(value))); -} - -template void impl_ILoggingFields::AddDateTime(hstring_ref name, const Windows::Foundation::DateTime & value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDateTimeWithFormat(get(name), get(value), format)); -} - -template void impl_ILoggingFields::AddDateTime(hstring_ref name, const Windows::Foundation::DateTime & value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDateTimeWithFormatAndTags(get(name), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddDateTimeArray(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDateTimeArray(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddDateTimeArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDateTimeArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddDateTimeArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDateTimeArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddTimeSpan(hstring_ref name, const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddTimeSpan(get(name), get(value))); -} - -template void impl_ILoggingFields::AddTimeSpan(hstring_ref name, const Windows::Foundation::TimeSpan & value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddTimeSpanWithFormat(get(name), get(value), format)); -} - -template void impl_ILoggingFields::AddTimeSpan(hstring_ref name, const Windows::Foundation::TimeSpan & value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddTimeSpanWithFormatAndTags(get(name), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddTimeSpanArray(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddTimeSpanArray(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddTimeSpanArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddTimeSpanArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddTimeSpanArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddTimeSpanArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddPoint(hstring_ref name, const Windows::Foundation::Point & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddPoint(get(name), get(value))); -} - -template void impl_ILoggingFields::AddPoint(hstring_ref name, const Windows::Foundation::Point & value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddPointWithFormat(get(name), get(value), format)); -} - -template void impl_ILoggingFields::AddPoint(hstring_ref name, const Windows::Foundation::Point & value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddPointWithFormatAndTags(get(name), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddPointArray(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddPointArray(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddPointArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddPointArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddPointArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddPointArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddSize(hstring_ref name, const Windows::Foundation::Size & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSize(get(name), get(value))); -} - -template void impl_ILoggingFields::AddSize(hstring_ref name, const Windows::Foundation::Size & value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSizeWithFormat(get(name), get(value), format)); -} - -template void impl_ILoggingFields::AddSize(hstring_ref name, const Windows::Foundation::Size & value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSizeWithFormatAndTags(get(name), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddSizeArray(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSizeArray(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddSizeArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSizeArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddSizeArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSizeArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddRect(hstring_ref name, const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddRect(get(name), get(value))); -} - -template void impl_ILoggingFields::AddRect(hstring_ref name, const Windows::Foundation::Rect & value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddRectWithFormat(get(name), get(value), format)); -} - -template void impl_ILoggingFields::AddRect(hstring_ref name, const Windows::Foundation::Rect & value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddRectWithFormatAndTags(get(name), get(value), format, tags)); -} - -template void impl_ILoggingFields::AddRectArray(hstring_ref name, array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddRectArray(get(name), value.size(), get(value))); -} - -template void impl_ILoggingFields::AddRectArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddRectArrayWithFormat(get(name), value.size(), get(value), format)); -} - -template void impl_ILoggingFields::AddRectArray(hstring_ref name, array_ref value, Windows::Foundation::Diagnostics::LoggingFieldFormat format, int32_t tags) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddRectArrayWithFormatAndTags(get(name), value.size(), get(value), format, tags)); -} - -template bool impl_ILoggingTarget::IsEnabled() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEnabled(&result)); - return result; -} - -template bool impl_ILoggingTarget::IsEnabled(Windows::Foundation::Diagnostics::LoggingLevel level) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEnabledWithLevel(level, &result)); - return result; -} - -template bool impl_ILoggingTarget::IsEnabled(Windows::Foundation::Diagnostics::LoggingLevel level, int64_t keywords) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEnabledWithLevelAndKeywords(level, keywords, &result)); - return result; -} - -template void impl_ILoggingTarget::LogEvent(hstring_ref eventName) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LogEvent(get(eventName))); -} - -template void impl_ILoggingTarget::LogEvent(hstring_ref eventName, const Windows::Foundation::Diagnostics::LoggingFields & fields) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LogEventWithFields(get(eventName), get(fields))); -} - -template void impl_ILoggingTarget::LogEvent(hstring_ref eventName, const Windows::Foundation::Diagnostics::LoggingFields & fields, Windows::Foundation::Diagnostics::LoggingLevel level) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LogEventWithFieldsAndLevel(get(eventName), get(fields), level)); -} - -template void impl_ILoggingTarget::LogEvent(hstring_ref eventName, const Windows::Foundation::Diagnostics::LoggingFields & fields, Windows::Foundation::Diagnostics::LoggingLevel level, const Windows::Foundation::Diagnostics::LoggingOptions & options) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LogEventWithFieldsAndOptions(get(eventName), get(fields), level, get(options))); -} - -template Windows::Foundation::Diagnostics::LoggingActivity impl_ILoggingTarget::StartActivity(hstring_ref startEventName) const -{ - Windows::Foundation::Diagnostics::LoggingActivity result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_StartActivity(get(startEventName), put(result))); - return result; -} - -template Windows::Foundation::Diagnostics::LoggingActivity impl_ILoggingTarget::StartActivity(hstring_ref startEventName, const Windows::Foundation::Diagnostics::LoggingFields & fields) const -{ - Windows::Foundation::Diagnostics::LoggingActivity result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_StartActivityWithFields(get(startEventName), get(fields), put(result))); - return result; -} - -template Windows::Foundation::Diagnostics::LoggingActivity impl_ILoggingTarget::StartActivity(hstring_ref startEventName, const Windows::Foundation::Diagnostics::LoggingFields & fields, Windows::Foundation::Diagnostics::LoggingLevel level) const -{ - Windows::Foundation::Diagnostics::LoggingActivity result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_StartActivityWithFieldsAndLevel(get(startEventName), get(fields), level, put(result))); - return result; -} - -template Windows::Foundation::Diagnostics::LoggingActivity impl_ILoggingTarget::StartActivity(hstring_ref startEventName, const Windows::Foundation::Diagnostics::LoggingFields & fields, Windows::Foundation::Diagnostics::LoggingLevel level, const Windows::Foundation::Diagnostics::LoggingOptions & options) const -{ - Windows::Foundation::Diagnostics::LoggingActivity result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_StartActivityWithFieldsAndOptions(get(startEventName), get(fields), level, get(options), put(result))); - return result; -} - -template hstring impl_ILoggingChannel::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template bool impl_ILoggingChannel::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template Windows::Foundation::Diagnostics::LoggingLevel impl_ILoggingChannel::Level() const -{ - Windows::Foundation::Diagnostics::LoggingLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_Level(&value)); - return value; -} - -template void impl_ILoggingChannel::LogMessage(hstring_ref eventString) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LogMessage(get(eventString))); -} - -template void impl_ILoggingChannel::LogMessage(hstring_ref eventString, Windows::Foundation::Diagnostics::LoggingLevel level) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LogMessageWithLevel(get(eventString), level)); -} - -template void impl_ILoggingChannel::LogValuePair(hstring_ref value1, int32_t value2) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LogValuePair(get(value1), value2)); -} - -template void impl_ILoggingChannel::LogValuePair(hstring_ref value1, int32_t value2, Windows::Foundation::Diagnostics::LoggingLevel level) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LogValuePairWithLevel(get(value1), value2, level)); -} - -template event_token impl_ILoggingChannel::LoggingEnabled(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LoggingEnabled(get(handler), &token)); - return token; -} - -template event_revoker impl_ILoggingChannel::LoggingEnabled(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Foundation::Diagnostics::ILoggingChannel::remove_LoggingEnabled, LoggingEnabled(handler)); -} - -template void impl_ILoggingChannel::LoggingEnabled(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LoggingEnabled(token)); -} - -template GUID impl_ILoggingChannel2::Id() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Foundation::Diagnostics::LoggingChannel impl_ILoggingChannelFactory::Create(hstring_ref name) const -{ - Windows::Foundation::Diagnostics::LoggingChannel result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(name), put(result))); - return result; -} - -template Windows::Foundation::Diagnostics::LoggingChannel impl_ILoggingChannelFactory2::CreateWithOptions(hstring_ref name, const Windows::Foundation::Diagnostics::LoggingChannelOptions & options) const -{ - Windows::Foundation::Diagnostics::LoggingChannel result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithOptions(get(name), get(options), put(result))); - return result; -} - -template Windows::Foundation::Diagnostics::LoggingChannel impl_ILoggingChannelFactory2::CreateWithOptionsAndId(hstring_ref name, const Windows::Foundation::Diagnostics::LoggingChannelOptions & options, GUID id) const -{ - Windows::Foundation::Diagnostics::LoggingChannel result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithOptionsAndId(get(name), get(options), id, put(result))); - return result; -} - -template hstring impl_ILoggingActivity::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template GUID impl_ILoggingActivity::Id() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Foundation::Diagnostics::LoggingChannel impl_ILoggingActivity2::Channel() const -{ - Windows::Foundation::Diagnostics::LoggingChannel value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Channel(put(value))); - return value; -} - -template void impl_ILoggingActivity2::StopActivity(hstring_ref stopEventName) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopActivity(get(stopEventName))); -} - -template void impl_ILoggingActivity2::StopActivity(hstring_ref stopEventName, const Windows::Foundation::Diagnostics::LoggingFields & fields) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopActivityWithFields(get(stopEventName), get(fields))); -} - -template void impl_ILoggingActivity2::StopActivity(hstring_ref stopEventName, const Windows::Foundation::Diagnostics::LoggingFields & fields, const Windows::Foundation::Diagnostics::LoggingOptions & options) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopActivityWithFieldsAndOptions(get(stopEventName), get(fields), get(options))); -} - -template Windows::Foundation::Diagnostics::LoggingActivity impl_ILoggingActivityFactory::CreateLoggingActivity(hstring_ref activityName, const Windows::Foundation::Diagnostics::ILoggingChannel & loggingChannel) const -{ - Windows::Foundation::Diagnostics::LoggingActivity loggingActivity { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateLoggingActivity(get(activityName), get(loggingChannel), put(loggingActivity))); - return loggingActivity; -} - -template Windows::Foundation::Diagnostics::LoggingActivity impl_ILoggingActivityFactory::CreateLoggingActivityWithLevel(hstring_ref activityName, const Windows::Foundation::Diagnostics::ILoggingChannel & loggingChannel, Windows::Foundation::Diagnostics::LoggingLevel level) const -{ - Windows::Foundation::Diagnostics::LoggingActivity loggingActivity { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateLoggingActivityWithLevel(get(activityName), get(loggingChannel), level, put(loggingActivity))); - return loggingActivity; -} - -template hstring impl_ILoggingSession::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ILoggingSession::SaveToFileAsync(const Windows::Storage::IStorageFolder & folder, hstring_ref fileName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SaveToFileAsync(get(folder), get(fileName), put(operation))); - return operation; -} - -template void impl_ILoggingSession::AddLoggingChannel(const Windows::Foundation::Diagnostics::ILoggingChannel & loggingChannel) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddLoggingChannel(get(loggingChannel))); -} - -template void impl_ILoggingSession::AddLoggingChannel(const Windows::Foundation::Diagnostics::ILoggingChannel & loggingChannel, Windows::Foundation::Diagnostics::LoggingLevel maxLevel) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddLoggingChannelWithLevel(get(loggingChannel), maxLevel)); -} - -template void impl_ILoggingSession::RemoveLoggingChannel(const Windows::Foundation::Diagnostics::ILoggingChannel & loggingChannel) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveLoggingChannel(get(loggingChannel))); -} - -template Windows::Foundation::Diagnostics::LoggingSession impl_ILoggingSessionFactory::Create(hstring_ref name) const -{ - Windows::Foundation::Diagnostics::LoggingSession result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(name), put(result))); - return result; -} - -template Windows::Storage::StorageFile impl_ILogFileGeneratedEventArgs::File() const -{ - Windows::Storage::StorageFile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_File(put(value))); - return value; -} - -template hstring impl_IFileLoggingSession::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IFileLoggingSession::AddLoggingChannel(const Windows::Foundation::Diagnostics::ILoggingChannel & loggingChannel) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddLoggingChannel(get(loggingChannel))); -} - -template void impl_IFileLoggingSession::AddLoggingChannel(const Windows::Foundation::Diagnostics::ILoggingChannel & loggingChannel, Windows::Foundation::Diagnostics::LoggingLevel maxLevel) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddLoggingChannelWithLevel(get(loggingChannel), maxLevel)); -} - -template void impl_IFileLoggingSession::RemoveLoggingChannel(const Windows::Foundation::Diagnostics::ILoggingChannel & loggingChannel) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveLoggingChannel(get(loggingChannel))); -} - -template Windows::Foundation::IAsyncOperation impl_IFileLoggingSession::CloseAndSaveToFileAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CloseAndSaveToFileAsync(put(operation))); - return operation; -} - -template event_token impl_IFileLoggingSession::LogFileGenerated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LogFileGenerated(get(handler), &token)); - return token; -} - -template event_revoker impl_IFileLoggingSession::LogFileGenerated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Foundation::Diagnostics::IFileLoggingSession::remove_LogFileGenerated, LogFileGenerated(handler)); -} - -template void impl_IFileLoggingSession::LogFileGenerated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LogFileGenerated(token)); -} - -template Windows::Foundation::Diagnostics::FileLoggingSession impl_IFileLoggingSessionFactory::Create(hstring_ref name) const -{ - Windows::Foundation::Diagnostics::FileLoggingSession result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(name), put(result))); - return result; -} - -inline void AsyncCausalityTracer::TraceOperationCreation(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, hstring_ref operationName, uint64_t relatedContext) -{ - get_activation_factory().TraceOperationCreation(traceLevel, source, platformId, operationId, operationName, relatedContext); -} - -inline void AsyncCausalityTracer::TraceOperationCompletion(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, Windows::Foundation::AsyncStatus status) -{ - get_activation_factory().TraceOperationCompletion(traceLevel, source, platformId, operationId, status); -} - -inline void AsyncCausalityTracer::TraceOperationRelation(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, Windows::Foundation::Diagnostics::CausalityRelation relation) -{ - get_activation_factory().TraceOperationRelation(traceLevel, source, platformId, operationId, relation); -} - -inline void AsyncCausalityTracer::TraceSynchronousWorkStart(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, GUID platformId, uint64_t operationId, Windows::Foundation::Diagnostics::CausalitySynchronousWork work) -{ - get_activation_factory().TraceSynchronousWorkStart(traceLevel, source, platformId, operationId, work); -} - -inline void AsyncCausalityTracer::TraceSynchronousWorkCompletion(Windows::Foundation::Diagnostics::CausalityTraceLevel traceLevel, Windows::Foundation::Diagnostics::CausalitySource source, Windows::Foundation::Diagnostics::CausalitySynchronousWork work) -{ - get_activation_factory().TraceSynchronousWorkCompletion(traceLevel, source, work); -} - -inline event_token AsyncCausalityTracer::TracingStatusChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().TracingStatusChanged(handler); -} - -inline factory_event_revoker AsyncCausalityTracer::TracingStatusChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Foundation::Diagnostics::IAsyncCausalityTracerStatics::remove_TracingStatusChanged, factory.TracingStatusChanged(handler) }; -} - -inline void AsyncCausalityTracer::TracingStatusChanged(event_token cookie) -{ - get_activation_factory().TracingStatusChanged(cookie); -} - -inline Windows::Foundation::IAsyncOperation ErrorDetails::CreateFromHResultAsync(int32_t errorCode) -{ - return get_activation_factory().CreateFromHResultAsync(errorCode); -} - -inline FileLoggingSession::FileLoggingSession(hstring_ref name) : - FileLoggingSession(get_activation_factory().Create(name)) -{} - -inline LoggingActivity::LoggingActivity(hstring_ref activityName, const Windows::Foundation::Diagnostics::ILoggingChannel & loggingChannel) : - LoggingActivity(get_activation_factory().CreateLoggingActivity(activityName, loggingChannel)) -{} - -inline LoggingActivity::LoggingActivity(hstring_ref activityName, const Windows::Foundation::Diagnostics::ILoggingChannel & loggingChannel, Windows::Foundation::Diagnostics::LoggingLevel level) : - LoggingActivity(get_activation_factory().CreateLoggingActivityWithLevel(activityName, loggingChannel, level)) -{} - -inline LoggingChannel::LoggingChannel(hstring_ref name, const Windows::Foundation::Diagnostics::LoggingChannelOptions & options) : - LoggingChannel(get_activation_factory().CreateWithOptions(name, options)) -{} - -inline LoggingChannel::LoggingChannel(hstring_ref name, const Windows::Foundation::Diagnostics::LoggingChannelOptions & options, GUID id) : - LoggingChannel(get_activation_factory().CreateWithOptionsAndId(name, options, id)) -{} - -inline LoggingChannel::LoggingChannel(hstring_ref name) : - LoggingChannel(get_activation_factory().Create(name)) -{} - -inline LoggingChannelOptions::LoggingChannelOptions() : - LoggingChannelOptions(activate_instance()) -{} - -inline LoggingChannelOptions::LoggingChannelOptions(GUID group) : - LoggingChannelOptions(get_activation_factory().Create(group)) -{} - -inline LoggingFields::LoggingFields() : - LoggingFields(activate_instance()) -{} - -inline LoggingOptions::LoggingOptions() : - LoggingOptions(activate_instance()) -{} - -inline LoggingOptions::LoggingOptions(int64_t keywords) : - LoggingOptions(get_activation_factory().CreateWithKeywords(keywords)) -{} - -inline LoggingSession::LoggingSession(hstring_ref name) : - LoggingSession(get_activation_factory().Create(name)) -{} - -inline RuntimeBrokerErrorSettings::RuntimeBrokerErrorSettings() : - RuntimeBrokerErrorSettings(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Foundation.Metadata.h b/10.0.14393.0/winrt/Windows.Foundation.Metadata.h deleted file mode 100644 index 8f9c2ce17..000000000 --- a/10.0.14393.0/winrt/Windows.Foundation.Metadata.h +++ /dev/null @@ -1,273 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Metadata.3.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsTypePresent(abi_arg_in typeName, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTypePresent(*reinterpret_cast(&typeName))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsMethodPresent(abi_arg_in typeName, abi_arg_in methodName, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMethodPresent(*reinterpret_cast(&typeName), *reinterpret_cast(&methodName))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsMethodPresentWithArity(abi_arg_in typeName, abi_arg_in methodName, uint32_t inputParameterCount, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMethodPresent(*reinterpret_cast(&typeName), *reinterpret_cast(&methodName), inputParameterCount)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEventPresent(abi_arg_in typeName, abi_arg_in eventName, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEventPresent(*reinterpret_cast(&typeName), *reinterpret_cast(&eventName))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsPropertyPresent(abi_arg_in typeName, abi_arg_in propertyName, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPropertyPresent(*reinterpret_cast(&typeName), *reinterpret_cast(&propertyName))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsReadOnlyPropertyPresent(abi_arg_in typeName, abi_arg_in propertyName, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnlyPropertyPresent(*reinterpret_cast(&typeName), *reinterpret_cast(&propertyName))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsWriteablePropertyPresent(abi_arg_in typeName, abi_arg_in propertyName, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsWriteablePropertyPresent(*reinterpret_cast(&typeName), *reinterpret_cast(&propertyName))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEnumNamedValuePresent(abi_arg_in enumTypeName, abi_arg_in valueName, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnumNamedValuePresent(*reinterpret_cast(&enumTypeName), *reinterpret_cast(&valueName))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsApiContractPresentByMajor(abi_arg_in contractName, uint16_t majorVersion, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsApiContractPresent(*reinterpret_cast(&contractName), majorVersion)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsApiContractPresentByMajorAndMinor(abi_arg_in contractName, uint16_t majorVersion, uint16_t minorVersion, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsApiContractPresent(*reinterpret_cast(&contractName), majorVersion, minorVersion)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Foundation::Metadata { - -template bool impl_IApiInformationStatics::IsTypePresent(hstring_ref typeName) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsTypePresent(get(typeName), &value)); - return value; -} - -template bool impl_IApiInformationStatics::IsMethodPresent(hstring_ref typeName, hstring_ref methodName) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsMethodPresent(get(typeName), get(methodName), &value)); - return value; -} - -template bool impl_IApiInformationStatics::IsMethodPresent(hstring_ref typeName, hstring_ref methodName, uint32_t inputParameterCount) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsMethodPresentWithArity(get(typeName), get(methodName), inputParameterCount, &value)); - return value; -} - -template bool impl_IApiInformationStatics::IsEventPresent(hstring_ref typeName, hstring_ref eventName) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEventPresent(get(typeName), get(eventName), &value)); - return value; -} - -template bool impl_IApiInformationStatics::IsPropertyPresent(hstring_ref typeName, hstring_ref propertyName) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsPropertyPresent(get(typeName), get(propertyName), &value)); - return value; -} - -template bool impl_IApiInformationStatics::IsReadOnlyPropertyPresent(hstring_ref typeName, hstring_ref propertyName) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsReadOnlyPropertyPresent(get(typeName), get(propertyName), &value)); - return value; -} - -template bool impl_IApiInformationStatics::IsWriteablePropertyPresent(hstring_ref typeName, hstring_ref propertyName) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsWriteablePropertyPresent(get(typeName), get(propertyName), &value)); - return value; -} - -template bool impl_IApiInformationStatics::IsEnumNamedValuePresent(hstring_ref enumTypeName, hstring_ref valueName) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEnumNamedValuePresent(get(enumTypeName), get(valueName), &value)); - return value; -} - -template bool impl_IApiInformationStatics::IsApiContractPresent(hstring_ref contractName, uint16_t majorVersion) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsApiContractPresentByMajor(get(contractName), majorVersion, &value)); - return value; -} - -template bool impl_IApiInformationStatics::IsApiContractPresent(hstring_ref contractName, uint16_t majorVersion, uint16_t minorVersion) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsApiContractPresentByMajorAndMinor(get(contractName), majorVersion, minorVersion, &value)); - return value; -} - -inline bool ApiInformation::IsTypePresent(hstring_ref typeName) -{ - return get_activation_factory().IsTypePresent(typeName); -} - -inline bool ApiInformation::IsMethodPresent(hstring_ref typeName, hstring_ref methodName) -{ - return get_activation_factory().IsMethodPresent(typeName, methodName); -} - -inline bool ApiInformation::IsMethodPresent(hstring_ref typeName, hstring_ref methodName, uint32_t inputParameterCount) -{ - return get_activation_factory().IsMethodPresent(typeName, methodName, inputParameterCount); -} - -inline bool ApiInformation::IsEventPresent(hstring_ref typeName, hstring_ref eventName) -{ - return get_activation_factory().IsEventPresent(typeName, eventName); -} - -inline bool ApiInformation::IsPropertyPresent(hstring_ref typeName, hstring_ref propertyName) -{ - return get_activation_factory().IsPropertyPresent(typeName, propertyName); -} - -inline bool ApiInformation::IsReadOnlyPropertyPresent(hstring_ref typeName, hstring_ref propertyName) -{ - return get_activation_factory().IsReadOnlyPropertyPresent(typeName, propertyName); -} - -inline bool ApiInformation::IsWriteablePropertyPresent(hstring_ref typeName, hstring_ref propertyName) -{ - return get_activation_factory().IsWriteablePropertyPresent(typeName, propertyName); -} - -inline bool ApiInformation::IsEnumNamedValuePresent(hstring_ref enumTypeName, hstring_ref valueName) -{ - return get_activation_factory().IsEnumNamedValuePresent(enumTypeName, valueName); -} - -inline bool ApiInformation::IsApiContractPresent(hstring_ref contractName, uint16_t majorVersion) -{ - return get_activation_factory().IsApiContractPresent(contractName, majorVersion); -} - -inline bool ApiInformation::IsApiContractPresent(hstring_ref contractName, uint16_t majorVersion, uint16_t minorVersion) -{ - return get_activation_factory().IsApiContractPresent(contractName, majorVersion, minorVersion); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Foundation.h b/10.0.14393.0/winrt/Windows.Foundation.h deleted file mode 100644 index c6938f14d..000000000 --- a/10.0.14393.0/winrt/Windows.Foundation.h +++ /dev/null @@ -1,2703 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Foundation { - -template DeferralCompletedHandler::DeferralCompletedHandler(L lambda) : - DeferralCompletedHandler(impl::make_delegate, DeferralCompletedHandler>(std::forward(lambda))) -{} - -template DeferralCompletedHandler::DeferralCompletedHandler(F * function) : - DeferralCompletedHandler([=](auto && ... args) { function(args ...); }) -{} - -template DeferralCompletedHandler::DeferralCompletedHandler(O * object, M method) : - DeferralCompletedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void DeferralCompletedHandler::operator()() const -{ - check_hresult((*this)->abi_Invoke()); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Close() noexcept override - { - try - { - this->shim().Close(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in handler, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetActivationFactory(abi_arg_in activatableClassId, abi_arg_out factory) noexcept override - { - try - { - *factory = detach(this->shim().GetActivationFactory(*reinterpret_cast(&activatableClassId))); - return S_OK; - } - catch (...) - { - *factory = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateReference(abi_arg_out reference) noexcept override - { - try - { - *reference = detach(this->shim().CreateReference()); - return S_OK; - } - catch (...) - { - *reference = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t capacity, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(capacity)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Capacity(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Capacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().Closed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token cookie) noexcept override - { - try - { - this->shim().Closed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::Foundation::PropertyType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsNumericScalar(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsNumericScalar()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUInt8(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetUInt8()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInt16(int16_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetInt16()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUInt16(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetUInt16()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInt32(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetInt32()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUInt32(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetUInt32()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInt64(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetInt64()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUInt64(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetUInt64()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSingle(float * value) noexcept override - { - try - { - *value = detach(this->shim().GetSingle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDouble(double * value) noexcept override - { - try - { - *value = detach(this->shim().GetDouble()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetChar16(wchar_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetChar16()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBoolean(bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetBoolean()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetString(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetString()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGuid(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GetGuid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDateTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDateTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTimeSpan(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetTimeSpan()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUInt8Array(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetUInt8Array(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInt16Array(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetInt16Array(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUInt16Array(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetUInt16Array(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInt32Array(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetInt32Array(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUInt32Array(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetUInt32Array(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInt64Array(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetInt64Array(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUInt64Array(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetUInt64Array(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSingleArray(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetSingleArray(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDoubleArray(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetDoubleArray(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetChar16Array(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetChar16Array(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBooleanArray(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetBooleanArray(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStringArray(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetStringArray(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInspectableArray(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetInspectableArray(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGuidArray(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetGuidArray(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDateTimeArray(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetDateTimeArray(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTimeSpanArray(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetTimeSpanArray(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPointArray(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetPointArray(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSizeArray(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetSizeArray(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRectArray(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetRectArray(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateEmpty(abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateEmpty()); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUInt8(uint8_t value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateUInt8(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInt16(int16_t value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateInt16(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUInt16(uint16_t value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateUInt16(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInt32(int32_t value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateInt32(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUInt32(uint32_t value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateUInt32(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInt64(int64_t value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateInt64(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUInt64(uint64_t value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateUInt64(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSingle(float value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateSingle(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDouble(double value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateDouble(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateChar16(wchar_t value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateChar16(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBoolean(bool value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateBoolean(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateString(abi_arg_in value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateString(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInspectable(abi_arg_in value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateInspectable(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateGuid(GUID value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateGuid(value)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDateTime(abi_arg_in value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateDateTime(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTimeSpan(abi_arg_in value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateTimeSpan(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePoint(abi_arg_in value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreatePoint(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSize(abi_arg_in value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateSize(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateRect(abi_arg_in value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateRect(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUInt8Array(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateUInt8Array(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInt16Array(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateInt16Array(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUInt16Array(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateUInt16Array(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInt32Array(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateInt32Array(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUInt32Array(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateUInt32Array(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInt64Array(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateInt64Array(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUInt64Array(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateUInt64Array(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSingleArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateSingleArray(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDoubleArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateDoubleArray(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateChar16Array(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateChar16Array(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBooleanArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateBooleanArray(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStringArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateStringArray(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *value = nullptr; - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInspectableArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateInspectableArray(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *value = nullptr; - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateGuidArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateGuidArray(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDateTimeArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateDateTimeArray(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTimeSpanArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateTimeSpanArray(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePointArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreatePointArray(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSizeArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateSizeArray(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateRectArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().CreateRectArray(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ToString(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ToString()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_UnescapeComponent(abi_arg_in toUnescape, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UnescapeComponent(*reinterpret_cast(&toUnescape))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EscapeComponent(abi_arg_in toEscape, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EscapeComponent(*reinterpret_cast(&toEscape))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AbsoluteUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AbsoluteUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Domain(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Domain()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Extension(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Extension()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Fragment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Fragment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Host(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Host()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Password(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Password()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Path(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Path()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Query(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Query()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QueryParsed(abi_arg_out ppWwwFormUrlDecoder) noexcept override - { - try - { - *ppWwwFormUrlDecoder = detach(this->shim().QueryParsed()); - return S_OK; - } - catch (...) - { - *ppWwwFormUrlDecoder = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RawUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SchemeName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SchemeName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Port(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Port()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Suspicious(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Suspicious()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Equals(abi_arg_in pUri, bool * value) noexcept override - { - try - { - *value = detach(this->shim().Equals(*reinterpret_cast(&pUri))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CombineUri(abi_arg_in relativeUri, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CombineUri(*reinterpret_cast(&relativeUri))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateUri(abi_arg_in uri, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateUri(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithRelativeUri(abi_arg_in baseUri, abi_arg_in relativeUri, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateWithRelativeUri(*reinterpret_cast(&baseUri), *reinterpret_cast(&relativeUri))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AbsoluteCanonicalUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AbsoluteCanonicalUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayIri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayIri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetFirstValueByName(abi_arg_in name, abi_arg_out phstrValue) noexcept override - { - try - { - *phstrValue = detach(this->shim().GetFirstValueByName(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *phstrValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWwwFormUrlDecoder(abi_arg_in query, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateWwwFormUrlDecoder(*reinterpret_cast(&query))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Foundation { - -template void impl_IClosable::Close() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Close()); -} - -template Windows::Foundation::PropertyType impl_IPropertyValue::Type() const -{ - Windows::Foundation::PropertyType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template bool impl_IPropertyValue::IsNumericScalar() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsNumericScalar(&value)); - return value; -} - -template uint8_t impl_IPropertyValue::GetUInt8() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetUInt8(&value)); - return value; -} - -template int16_t impl_IPropertyValue::GetInt16() const -{ - int16_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetInt16(&value)); - return value; -} - -template uint16_t impl_IPropertyValue::GetUInt16() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetUInt16(&value)); - return value; -} - -template int32_t impl_IPropertyValue::GetInt32() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetInt32(&value)); - return value; -} - -template uint32_t impl_IPropertyValue::GetUInt32() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetUInt32(&value)); - return value; -} - -template int64_t impl_IPropertyValue::GetInt64() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetInt64(&value)); - return value; -} - -template uint64_t impl_IPropertyValue::GetUInt64() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetUInt64(&value)); - return value; -} - -template float impl_IPropertyValue::GetSingle() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetSingle(&value)); - return value; -} - -template double impl_IPropertyValue::GetDouble() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetDouble(&value)); - return value; -} - -template wchar_t impl_IPropertyValue::GetChar16() const -{ - wchar_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetChar16(&value)); - return value; -} - -template bool impl_IPropertyValue::GetBoolean() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetBoolean(&value)); - return value; -} - -template hstring impl_IPropertyValue::GetString() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetString(put(value))); - return value; -} - -template GUID impl_IPropertyValue::GetGuid() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetGuid(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IPropertyValue::GetDateTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetDateTime(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IPropertyValue::GetTimeSpan() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetTimeSpan(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IPropertyValue::GetPoint() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPoint(put(value))); - return value; -} - -template Windows::Foundation::Size impl_IPropertyValue::GetSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetSize(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IPropertyValue::GetRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetRect(put(value))); - return value; -} - -template void impl_IPropertyValue::GetUInt8Array(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetUInt8Array(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetInt16Array(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetInt16Array(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetUInt16Array(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetUInt16Array(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetInt32Array(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetInt32Array(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetUInt32Array(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetUInt32Array(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetInt64Array(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetInt64Array(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetUInt64Array(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetUInt64Array(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetSingleArray(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetSingleArray(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetDoubleArray(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetDoubleArray(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetChar16Array(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetChar16Array(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetBooleanArray(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetBooleanArray(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetStringArray(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetStringArray(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetInspectableArray(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetInspectableArray(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetGuidArray(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetGuidArray(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetDateTimeArray(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetDateTimeArray(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetTimeSpanArray(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetTimeSpanArray(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetPointArray(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetPointArray(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetSizeArray(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetSizeArray(put_size(value), put(value))); -} - -template void impl_IPropertyValue::GetRectArray(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetRectArray(put_size(value), put(value))); -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateEmpty() const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateEmpty(put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateUInt8(uint8_t value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateUInt8(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateInt16(int16_t value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateInt16(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateUInt16(uint16_t value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateUInt16(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateInt32(int32_t value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateInt32(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateUInt32(uint32_t value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateUInt32(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateInt64(int64_t value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateInt64(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateUInt64(uint64_t value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateUInt64(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateSingle(float value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateSingle(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateDouble(double value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateDouble(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateChar16(wchar_t value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateChar16(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateBoolean(bool value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateBoolean(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateString(hstring_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateString(get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateInspectable(const Windows::IInspectable & value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateInspectable(get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateGuid(GUID value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateGuid(value, put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateDateTime(const Windows::Foundation::DateTime & value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateDateTime(get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateTimeSpan(const Windows::Foundation::TimeSpan & value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateTimeSpan(get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreatePoint(const Windows::Foundation::Point & value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreatePoint(get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateSize(const Windows::Foundation::Size & value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateSize(get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateRect(const Windows::Foundation::Rect & value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateRect(get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateUInt8Array(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateUInt8Array(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateInt16Array(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateInt16Array(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateUInt16Array(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateUInt16Array(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateInt32Array(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateInt32Array(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateUInt32Array(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateUInt32Array(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateInt64Array(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateInt64Array(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateUInt64Array(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateUInt64Array(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateSingleArray(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateSingleArray(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateDoubleArray(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateDoubleArray(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateChar16Array(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateChar16Array(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateBooleanArray(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateBooleanArray(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateStringArray(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateStringArray(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateInspectableArray(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateInspectableArray(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateGuidArray(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateGuidArray(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateDateTimeArray(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateDateTimeArray(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateTimeSpanArray(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateTimeSpanArray(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreatePointArray(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreatePointArray(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateSizeArray(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateSizeArray(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template Windows::IInspectable impl_IPropertyValueStatics::CreateRectArray(array_ref value) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateRectArray(value.size(), get(value), put(propertyValue))); - return propertyValue; -} - -template hstring impl_IStringable::ToString() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_ToString(put(value))); - return value; -} - -template void impl_IDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::Foundation::Deferral impl_IDeferralFactory::Create(const Windows::Foundation::DeferralCompletedHandler & handler) const -{ - Windows::Foundation::Deferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(handler), put(result))); - return result; -} - -template hstring impl_IUriRuntimeClass::AbsoluteUri() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AbsoluteUri(put(value))); - return value; -} - -template hstring impl_IUriRuntimeClass::DisplayUri() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayUri(put(value))); - return value; -} - -template hstring impl_IUriRuntimeClass::Domain() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Domain(put(value))); - return value; -} - -template hstring impl_IUriRuntimeClass::Extension() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Extension(put(value))); - return value; -} - -template hstring impl_IUriRuntimeClass::Fragment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Fragment(put(value))); - return value; -} - -template hstring impl_IUriRuntimeClass::Host() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Host(put(value))); - return value; -} - -template hstring impl_IUriRuntimeClass::Password() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Password(put(value))); - return value; -} - -template hstring impl_IUriRuntimeClass::Path() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Path(put(value))); - return value; -} - -template hstring impl_IUriRuntimeClass::Query() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Query(put(value))); - return value; -} - -template Windows::Foundation::WwwFormUrlDecoder impl_IUriRuntimeClass::QueryParsed() const -{ - Windows::Foundation::WwwFormUrlDecoder ppWwwFormUrlDecoder { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_QueryParsed(put(ppWwwFormUrlDecoder))); - return ppWwwFormUrlDecoder; -} - -template hstring impl_IUriRuntimeClass::RawUri() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RawUri(put(value))); - return value; -} - -template hstring impl_IUriRuntimeClass::SchemeName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SchemeName(put(value))); - return value; -} - -template hstring impl_IUriRuntimeClass::UserName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserName(put(value))); - return value; -} - -template int32_t impl_IUriRuntimeClass::Port() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Port(&value)); - return value; -} - -template bool impl_IUriRuntimeClass::Suspicious() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Suspicious(&value)); - return value; -} - -template bool impl_IUriRuntimeClass::Equals(const Windows::Foundation::Uri & pUri) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_Equals(get(pUri), &value)); - return value; -} - -template Windows::Foundation::Uri impl_IUriRuntimeClass::CombineUri(hstring_ref relativeUri) const -{ - Windows::Foundation::Uri instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CombineUri(get(relativeUri), put(instance))); - return instance; -} - -template hstring impl_IUriRuntimeClassWithAbsoluteCanonicalUri::AbsoluteCanonicalUri() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AbsoluteCanonicalUri(put(value))); - return value; -} - -template hstring impl_IUriRuntimeClassWithAbsoluteCanonicalUri::DisplayIri() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayIri(put(value))); - return value; -} - -template hstring impl_IUriEscapeStatics::UnescapeComponent(hstring_ref toUnescape) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_UnescapeComponent(get(toUnescape), put(value))); - return value; -} - -template hstring impl_IUriEscapeStatics::EscapeComponent(hstring_ref toEscape) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_EscapeComponent(get(toEscape), put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IUriRuntimeClassFactory::CreateUri(hstring_ref uri) const -{ - Windows::Foundation::Uri instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateUri(get(uri), put(instance))); - return instance; -} - -template Windows::Foundation::Uri impl_IUriRuntimeClassFactory::CreateWithRelativeUri(hstring_ref baseUri, hstring_ref relativeUri) const -{ - Windows::Foundation::Uri instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithRelativeUri(get(baseUri), get(relativeUri), put(instance))); - return instance; -} - -template hstring impl_IWwwFormUrlDecoderEntry::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template hstring impl_IWwwFormUrlDecoderEntry::Value() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template hstring impl_IWwwFormUrlDecoderRuntimeClass::GetFirstValueByName(hstring_ref name) const -{ - hstring phstrValue; - check_hresult(static_cast(static_cast(*this))->abi_GetFirstValueByName(get(name), put(phstrValue))); - return phstrValue; -} - -template Windows::Foundation::WwwFormUrlDecoder impl_IWwwFormUrlDecoderRuntimeClassFactory::CreateWwwFormUrlDecoder(hstring_ref query) const -{ - Windows::Foundation::WwwFormUrlDecoder instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWwwFormUrlDecoder(get(query), put(instance))); - return instance; -} - -template Windows::IInspectable impl_IGetActivationFactory::GetActivationFactory(hstring_ref activatableClassId) const -{ - Windows::IInspectable factory; - check_hresult(static_cast(static_cast(*this))->abi_GetActivationFactory(get(activatableClassId), put(factory))); - return factory; -} - -template uint32_t impl_IMemoryBufferReference::Capacity() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Capacity(&value)); - return value; -} - -template event_token impl_IMemoryBufferReference::Closed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMemoryBufferReference::Closed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Foundation::IMemoryBufferReference::remove_Closed, Closed(handler)); -} - -template void impl_IMemoryBufferReference::Closed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(cookie)); -} - -template Windows::Foundation::IMemoryBufferReference impl_IMemoryBuffer::CreateReference() const -{ - Windows::Foundation::IMemoryBufferReference reference; - check_hresult(static_cast(static_cast(*this))->abi_CreateReference(put(reference))); - return reference; -} - -template Windows::Foundation::MemoryBuffer impl_IMemoryBufferFactory::Create(uint32_t capacity) const -{ - Windows::Foundation::MemoryBuffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(capacity, put(value))); - return value; -} - -inline Deferral::Deferral(const Windows::Foundation::DeferralCompletedHandler & handler) : - Deferral(get_activation_factory().Create(handler)) -{} - -inline MemoryBuffer::MemoryBuffer(uint32_t capacity) : - MemoryBuffer(get_activation_factory().Create(capacity)) -{} - -inline Windows::IInspectable PropertyValue::CreateEmpty() -{ - return get_activation_factory().CreateEmpty(); -} - -inline Windows::IInspectable PropertyValue::CreateUInt8(uint8_t value) -{ - return get_activation_factory().CreateUInt8(value); -} - -inline Windows::IInspectable PropertyValue::CreateInt16(int16_t value) -{ - return get_activation_factory().CreateInt16(value); -} - -inline Windows::IInspectable PropertyValue::CreateUInt16(uint16_t value) -{ - return get_activation_factory().CreateUInt16(value); -} - -inline Windows::IInspectable PropertyValue::CreateInt32(int32_t value) -{ - return get_activation_factory().CreateInt32(value); -} - -inline Windows::IInspectable PropertyValue::CreateUInt32(uint32_t value) -{ - return get_activation_factory().CreateUInt32(value); -} - -inline Windows::IInspectable PropertyValue::CreateInt64(int64_t value) -{ - return get_activation_factory().CreateInt64(value); -} - -inline Windows::IInspectable PropertyValue::CreateUInt64(uint64_t value) -{ - return get_activation_factory().CreateUInt64(value); -} - -inline Windows::IInspectable PropertyValue::CreateSingle(float value) -{ - return get_activation_factory().CreateSingle(value); -} - -inline Windows::IInspectable PropertyValue::CreateDouble(double value) -{ - return get_activation_factory().CreateDouble(value); -} - -inline Windows::IInspectable PropertyValue::CreateChar16(wchar_t value) -{ - return get_activation_factory().CreateChar16(value); -} - -inline Windows::IInspectable PropertyValue::CreateBoolean(bool value) -{ - return get_activation_factory().CreateBoolean(value); -} - -inline Windows::IInspectable PropertyValue::CreateString(hstring_ref value) -{ - return get_activation_factory().CreateString(value); -} - -inline Windows::IInspectable PropertyValue::CreateInspectable(const Windows::IInspectable & value) -{ - return get_activation_factory().CreateInspectable(value); -} - -inline Windows::IInspectable PropertyValue::CreateGuid(GUID value) -{ - return get_activation_factory().CreateGuid(value); -} - -inline Windows::IInspectable PropertyValue::CreateDateTime(const Windows::Foundation::DateTime & value) -{ - return get_activation_factory().CreateDateTime(value); -} - -inline Windows::IInspectable PropertyValue::CreateTimeSpan(const Windows::Foundation::TimeSpan & value) -{ - return get_activation_factory().CreateTimeSpan(value); -} - -inline Windows::IInspectable PropertyValue::CreatePoint(const Windows::Foundation::Point & value) -{ - return get_activation_factory().CreatePoint(value); -} - -inline Windows::IInspectable PropertyValue::CreateSize(const Windows::Foundation::Size & value) -{ - return get_activation_factory().CreateSize(value); -} - -inline Windows::IInspectable PropertyValue::CreateRect(const Windows::Foundation::Rect & value) -{ - return get_activation_factory().CreateRect(value); -} - -inline Windows::IInspectable PropertyValue::CreateUInt8Array(array_ref value) -{ - return get_activation_factory().CreateUInt8Array(value); -} - -inline Windows::IInspectable PropertyValue::CreateInt16Array(array_ref value) -{ - return get_activation_factory().CreateInt16Array(value); -} - -inline Windows::IInspectable PropertyValue::CreateUInt16Array(array_ref value) -{ - return get_activation_factory().CreateUInt16Array(value); -} - -inline Windows::IInspectable PropertyValue::CreateInt32Array(array_ref value) -{ - return get_activation_factory().CreateInt32Array(value); -} - -inline Windows::IInspectable PropertyValue::CreateUInt32Array(array_ref value) -{ - return get_activation_factory().CreateUInt32Array(value); -} - -inline Windows::IInspectable PropertyValue::CreateInt64Array(array_ref value) -{ - return get_activation_factory().CreateInt64Array(value); -} - -inline Windows::IInspectable PropertyValue::CreateUInt64Array(array_ref value) -{ - return get_activation_factory().CreateUInt64Array(value); -} - -inline Windows::IInspectable PropertyValue::CreateSingleArray(array_ref value) -{ - return get_activation_factory().CreateSingleArray(value); -} - -inline Windows::IInspectable PropertyValue::CreateDoubleArray(array_ref value) -{ - return get_activation_factory().CreateDoubleArray(value); -} - -inline Windows::IInspectable PropertyValue::CreateChar16Array(array_ref value) -{ - return get_activation_factory().CreateChar16Array(value); -} - -inline Windows::IInspectable PropertyValue::CreateBooleanArray(array_ref value) -{ - return get_activation_factory().CreateBooleanArray(value); -} - -inline Windows::IInspectable PropertyValue::CreateStringArray(array_ref value) -{ - return get_activation_factory().CreateStringArray(value); -} - -inline Windows::IInspectable PropertyValue::CreateInspectableArray(array_ref value) -{ - return get_activation_factory().CreateInspectableArray(value); -} - -inline Windows::IInspectable PropertyValue::CreateGuidArray(array_ref value) -{ - return get_activation_factory().CreateGuidArray(value); -} - -inline Windows::IInspectable PropertyValue::CreateDateTimeArray(array_ref value) -{ - return get_activation_factory().CreateDateTimeArray(value); -} - -inline Windows::IInspectable PropertyValue::CreateTimeSpanArray(array_ref value) -{ - return get_activation_factory().CreateTimeSpanArray(value); -} - -inline Windows::IInspectable PropertyValue::CreatePointArray(array_ref value) -{ - return get_activation_factory().CreatePointArray(value); -} - -inline Windows::IInspectable PropertyValue::CreateSizeArray(array_ref value) -{ - return get_activation_factory().CreateSizeArray(value); -} - -inline Windows::IInspectable PropertyValue::CreateRectArray(array_ref value) -{ - return get_activation_factory().CreateRectArray(value); -} - -inline Uri::Uri(hstring_ref uri) : - Uri(get_activation_factory().CreateUri(uri)) -{} - -inline Uri::Uri(hstring_ref baseUri, hstring_ref relativeUri) : - Uri(get_activation_factory().CreateWithRelativeUri(baseUri, relativeUri)) -{} - -inline hstring Uri::UnescapeComponent(hstring_ref toUnescape) -{ - return get_activation_factory().UnescapeComponent(toUnescape); -} - -inline hstring Uri::EscapeComponent(hstring_ref toEscape) -{ - return get_activation_factory().EscapeComponent(toEscape); -} - -inline WwwFormUrlDecoder::WwwFormUrlDecoder(hstring_ref query) : - WwwFormUrlDecoder(get_activation_factory().CreateWwwFormUrlDecoder(query)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Gaming.Input.Custom.h b/10.0.14393.0/winrt/Windows.Gaming.Input.Custom.h deleted file mode 100644 index e867a174c..000000000 --- a/10.0.14393.0/winrt/Windows.Gaming.Input.Custom.h +++ /dev/null @@ -1,509 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Gaming.Input.3.h" -#include "internal/Windows.Gaming.Input.Custom.3.h" -#include "Windows.Gaming.Input.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateGameController(abi_arg_in provider, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateGameController(*reinterpret_cast(&provider))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnGameControllerAdded(abi_arg_in value) noexcept override - { - try - { - this->shim().OnGameControllerAdded(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnGameControllerRemoved(abi_arg_in value) noexcept override - { - try - { - this->shim().OnGameControllerRemoved(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RegisterCustomFactoryForGipInterface(abi_arg_in factory, GUID interfaceId) noexcept override - { - try - { - this->shim().RegisterCustomFactoryForGipInterface(*reinterpret_cast(&factory), interfaceId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterCustomFactoryForHardwareId(abi_arg_in factory, uint16_t hardwareVendorId, uint16_t hardwareProductId) noexcept override - { - try - { - this->shim().RegisterCustomFactoryForHardwareId(*reinterpret_cast(&factory), hardwareVendorId, hardwareProductId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterCustomFactoryForXusbType(abi_arg_in factory, Windows::Gaming::Input::Custom::XusbDeviceType xusbType, Windows::Gaming::Input::Custom::XusbDeviceSubtype xusbSubtype) noexcept override - { - try - { - this->shim().RegisterCustomFactoryForXusbType(*reinterpret_cast(&factory), xusbType, xusbSubtype); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnInputResumed(uint64_t timestamp) noexcept override - { - try - { - this->shim().OnInputResumed(timestamp); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnInputSuspended(uint64_t timestamp) noexcept override - { - try - { - this->shim().OnInputSuspended(timestamp); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FirmwareVersionInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirmwareVersionInfo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HardwareProductId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().HardwareProductId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HardwareVendorId(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().HardwareVendorId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HardwareVersionInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HardwareVersionInfo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsConnected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsConnected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExtendedErrorCode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FinalComponentId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FinalComponentId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Gaming::Input::Custom::GipFirmwareUpdateStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnKeyReceived(uint64_t timestamp, uint8_t keyCode, bool isPressed) noexcept override - { - try - { - this->shim().OnKeyReceived(timestamp, keyCode, isPressed); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnMessageReceived(uint64_t timestamp, Windows::Gaming::Input::Custom::GipMessageClass messageClass, uint8_t messageId, uint8_t sequenceId, uint32_t __messageBufferSize, abi_arg_in * messageBuffer) noexcept override - { - try - { - this->shim().OnMessageReceived(timestamp, messageClass, messageId, sequenceId, array_ref(messageBuffer, messageBuffer + __messageBufferSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SendMessage(Windows::Gaming::Input::Custom::GipMessageClass messageClass, uint8_t messageId, uint32_t __messageBufferSize, abi_arg_in * messageBuffer) noexcept override - { - try - { - this->shim().SendMessage(messageClass, messageId, array_ref(messageBuffer, messageBuffer + __messageBufferSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendReceiveMessage(Windows::Gaming::Input::Custom::GipMessageClass messageClass, uint8_t messageId, uint32_t __requestMessageBufferSize, abi_arg_in * requestMessageBuffer, uint32_t __responseMessageBufferSize, abi_arg_out responseMessageBuffer) noexcept override - { - try - { - this->shim().SendReceiveMessage(messageClass, messageId, array_ref(requestMessageBuffer, requestMessageBuffer + __requestMessageBufferSize), *responseMessageBuffer); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateFirmwareAsync(abi_arg_in firmwareImage, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().UpdateFirmwareAsync(*reinterpret_cast(&firmwareImage))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnInputReceived(uint64_t timestamp, uint8_t reportId, uint32_t __inputBufferSize, abi_arg_in * inputBuffer) noexcept override - { - try - { - this->shim().OnInputReceived(timestamp, reportId, array_ref(inputBuffer, inputBuffer + __inputBufferSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetVibration(double lowFrequencyMotorSpeed, double highFrequencyMotorSpeed) noexcept override - { - try - { - this->shim().SetVibration(lowFrequencyMotorSpeed, highFrequencyMotorSpeed); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Gaming::Input::Custom { - -template void impl_IGameControllerInputSink::OnInputResumed(uint64_t timestamp) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnInputResumed(timestamp)); -} - -template void impl_IGameControllerInputSink::OnInputSuspended(uint64_t timestamp) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnInputSuspended(timestamp)); -} - -template void impl_IGipGameControllerInputSink::OnKeyReceived(uint64_t timestamp, uint8_t keyCode, bool isPressed) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnKeyReceived(timestamp, keyCode, isPressed)); -} - -template void impl_IGipGameControllerInputSink::OnMessageReceived(uint64_t timestamp, Windows::Gaming::Input::Custom::GipMessageClass messageClass, uint8_t messageId, uint8_t sequenceId, array_ref messageBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnMessageReceived(timestamp, messageClass, messageId, sequenceId, messageBuffer.size(), get(messageBuffer))); -} - -template void impl_IXusbGameControllerInputSink::OnInputReceived(uint64_t timestamp, uint8_t reportId, array_ref inputBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnInputReceived(timestamp, reportId, inputBuffer.size(), get(inputBuffer))); -} - -template uint32_t impl_IGipFirmwareUpdateResult::ExtendedErrorCode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedErrorCode(&value)); - return value; -} - -template uint32_t impl_IGipFirmwareUpdateResult::FinalComponentId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FinalComponentId(&value)); - return value; -} - -template Windows::Gaming::Input::Custom::GipFirmwareUpdateStatus impl_IGipFirmwareUpdateResult::Status() const -{ - Windows::Gaming::Input::Custom::GipFirmwareUpdateStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Gaming::Input::Custom::GameControllerVersionInfo impl_IGameControllerProvider::FirmwareVersionInfo() const -{ - Windows::Gaming::Input::Custom::GameControllerVersionInfo value {}; - check_hresult(static_cast(static_cast(*this))->get_FirmwareVersionInfo(put(value))); - return value; -} - -template uint16_t impl_IGameControllerProvider::HardwareProductId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HardwareProductId(&value)); - return value; -} - -template uint16_t impl_IGameControllerProvider::HardwareVendorId() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HardwareVendorId(&value)); - return value; -} - -template Windows::Gaming::Input::Custom::GameControllerVersionInfo impl_IGameControllerProvider::HardwareVersionInfo() const -{ - Windows::Gaming::Input::Custom::GameControllerVersionInfo value {}; - check_hresult(static_cast(static_cast(*this))->get_HardwareVersionInfo(put(value))); - return value; -} - -template bool impl_IGameControllerProvider::IsConnected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsConnected(&value)); - return value; -} - -template void impl_IGipGameControllerProvider::SendMessage(Windows::Gaming::Input::Custom::GipMessageClass messageClass, uint8_t messageId, array_ref messageBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SendMessage(messageClass, messageId, messageBuffer.size(), get(messageBuffer))); -} - -template void impl_IGipGameControllerProvider::SendReceiveMessage(Windows::Gaming::Input::Custom::GipMessageClass messageClass, uint8_t messageId, array_ref requestMessageBuffer, array_ref responseMessageBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SendReceiveMessage(messageClass, messageId, requestMessageBuffer.size(), get(requestMessageBuffer), responseMessageBuffer.size(), get(responseMessageBuffer))); -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IGipGameControllerProvider::UpdateFirmwareAsync(const Windows::Storage::Streams::IInputStream & firmwareImage) const -{ - Windows::Foundation::IAsyncOperationWithProgress result; - check_hresult(static_cast(static_cast(*this))->abi_UpdateFirmwareAsync(get(firmwareImage), put(result))); - return result; -} - -template void impl_IXusbGameControllerProvider::SetVibration(double lowFrequencyMotorSpeed, double highFrequencyMotorSpeed) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetVibration(lowFrequencyMotorSpeed, highFrequencyMotorSpeed)); -} - -template Windows::IInspectable impl_ICustomGameControllerFactory::CreateGameController(const Windows::Gaming::Input::Custom::IGameControllerProvider & provider) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_CreateGameController(get(provider), put(value))); - return value; -} - -template void impl_ICustomGameControllerFactory::OnGameControllerAdded(const Windows::Gaming::Input::IGameController & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnGameControllerAdded(get(value))); -} - -template void impl_ICustomGameControllerFactory::OnGameControllerRemoved(const Windows::Gaming::Input::IGameController & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnGameControllerRemoved(get(value))); -} - -template void impl_IGameControllerFactoryManagerStatics::RegisterCustomFactoryForGipInterface(const Windows::Gaming::Input::Custom::ICustomGameControllerFactory & factory, GUID interfaceId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterCustomFactoryForGipInterface(get(factory), interfaceId)); -} - -template void impl_IGameControllerFactoryManagerStatics::RegisterCustomFactoryForHardwareId(const Windows::Gaming::Input::Custom::ICustomGameControllerFactory & factory, uint16_t hardwareVendorId, uint16_t hardwareProductId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterCustomFactoryForHardwareId(get(factory), hardwareVendorId, hardwareProductId)); -} - -template void impl_IGameControllerFactoryManagerStatics::RegisterCustomFactoryForXusbType(const Windows::Gaming::Input::Custom::ICustomGameControllerFactory & factory, Windows::Gaming::Input::Custom::XusbDeviceType xusbType, Windows::Gaming::Input::Custom::XusbDeviceSubtype xusbSubtype) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterCustomFactoryForXusbType(get(factory), xusbType, xusbSubtype)); -} - -inline void GameControllerFactoryManager::RegisterCustomFactoryForGipInterface(const Windows::Gaming::Input::Custom::ICustomGameControllerFactory & factory, GUID interfaceId) -{ - get_activation_factory().RegisterCustomFactoryForGipInterface(factory, interfaceId); -} - -inline void GameControllerFactoryManager::RegisterCustomFactoryForHardwareId(const Windows::Gaming::Input::Custom::ICustomGameControllerFactory & factory, uint16_t hardwareVendorId, uint16_t hardwareProductId) -{ - get_activation_factory().RegisterCustomFactoryForHardwareId(factory, hardwareVendorId, hardwareProductId); -} - -inline void GameControllerFactoryManager::RegisterCustomFactoryForXusbType(const Windows::Gaming::Input::Custom::ICustomGameControllerFactory & factory, Windows::Gaming::Input::Custom::XusbDeviceType xusbType, Windows::Gaming::Input::Custom::XusbDeviceSubtype xusbSubtype) -{ - get_activation_factory().RegisterCustomFactoryForXusbType(factory, xusbType, xusbSubtype); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Gaming.Input.ForceFeedback.h b/10.0.14393.0/winrt/Windows.Gaming.Input.ForceFeedback.h deleted file mode 100644 index cef8caf37..000000000 --- a/10.0.14393.0/winrt/Windows.Gaming.Input.ForceFeedback.h +++ /dev/null @@ -1,627 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Gaming.Input.ForceFeedback.3.h" -#include "Windows.Gaming.Input.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::Gaming::Input::ForceFeedback::ConditionForceEffectKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetParameters(abi_arg_in direction, float positiveCoefficient, float negativeCoefficient, float maxPositiveMagnitude, float maxNegativeMagnitude, float deadZone, float bias) noexcept override - { - try - { - this->shim().SetParameters(*reinterpret_cast(&direction), positiveCoefficient, negativeCoefficient, maxPositiveMagnitude, maxNegativeMagnitude, deadZone, bias); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(Windows::Gaming::Input::ForceFeedback::ConditionForceEffectKind effectKind, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateInstance(effectKind)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetParameters(abi_arg_in vector, abi_arg_in duration) noexcept override - { - try - { - this->shim().SetParameters(*reinterpret_cast(&vector), *reinterpret_cast(&duration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetParametersWithEnvelope(abi_arg_in vector, float attackGain, float sustainGain, float releaseGain, abi_arg_in startDelay, abi_arg_in attackDuration, abi_arg_in sustainDuration, abi_arg_in releaseDuration, uint32_t repeatCount) noexcept override - { - try - { - this->shim().SetParametersWithEnvelope(*reinterpret_cast(&vector), attackGain, sustainGain, releaseGain, *reinterpret_cast(&startDelay), *reinterpret_cast(&attackDuration), *reinterpret_cast(&sustainDuration), *reinterpret_cast(&releaseDuration), repeatCount); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Gain(double * value) noexcept override - { - try - { - *value = detach(this->shim().Gain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Gain(double value) noexcept override - { - try - { - this->shim().Gain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(Windows::Gaming::Input::ForceFeedback::ForceFeedbackEffectState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreEffectsPaused(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AreEffectsPaused()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MasterGain(double * value) noexcept override - { - try - { - *value = detach(this->shim().MasterGain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MasterGain(double value) noexcept override - { - try - { - this->shim().MasterGain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedAxes(Windows::Gaming::Input::ForceFeedback::ForceFeedbackEffectAxes * value) noexcept override - { - try - { - *value = detach(this->shim().SupportedAxes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadEffectAsync(abi_arg_in effect, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().LoadEffectAsync(*reinterpret_cast(&effect))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PauseAllEffects() noexcept override - { - try - { - this->shim().PauseAllEffects(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResumeAllEffects() noexcept override - { - try - { - this->shim().ResumeAllEffects(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopAllEffects() noexcept override - { - try - { - this->shim().StopAllEffects(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryDisableAsync(abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().TryDisableAsync()); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryEnableAsync(abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().TryEnableAsync()); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryResetAsync(abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().TryResetAsync()); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryUnloadEffectAsync(abi_arg_in effect, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().TryUnloadEffectAsync(*reinterpret_cast(&effect))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::Gaming::Input::ForceFeedback::PeriodicForceEffectKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetParameters(abi_arg_in vector, float frequency, float phase, float bias, abi_arg_in duration) noexcept override - { - try - { - this->shim().SetParameters(*reinterpret_cast(&vector), frequency, phase, bias, *reinterpret_cast(&duration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetParametersWithEnvelope(abi_arg_in vector, float frequency, float phase, float bias, float attackGain, float sustainGain, float releaseGain, abi_arg_in startDelay, abi_arg_in attackDuration, abi_arg_in sustainDuration, abi_arg_in releaseDuration, uint32_t repeatCount) noexcept override - { - try - { - this->shim().SetParametersWithEnvelope(*reinterpret_cast(&vector), frequency, phase, bias, attackGain, sustainGain, releaseGain, *reinterpret_cast(&startDelay), *reinterpret_cast(&attackDuration), *reinterpret_cast(&sustainDuration), *reinterpret_cast(&releaseDuration), repeatCount); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(Windows::Gaming::Input::ForceFeedback::PeriodicForceEffectKind effectKind, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateInstance(effectKind)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetParameters(abi_arg_in startVector, abi_arg_in endVector, abi_arg_in duration) noexcept override - { - try - { - this->shim().SetParameters(*reinterpret_cast(&startVector), *reinterpret_cast(&endVector), *reinterpret_cast(&duration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetParametersWithEnvelope(abi_arg_in startVector, abi_arg_in endVector, float attackGain, float sustainGain, float releaseGain, abi_arg_in startDelay, abi_arg_in attackDuration, abi_arg_in sustainDuration, abi_arg_in releaseDuration, uint32_t repeatCount) noexcept override - { - try - { - this->shim().SetParametersWithEnvelope(*reinterpret_cast(&startVector), *reinterpret_cast(&endVector), attackGain, sustainGain, releaseGain, *reinterpret_cast(&startDelay), *reinterpret_cast(&attackDuration), *reinterpret_cast(&sustainDuration), *reinterpret_cast(&releaseDuration), repeatCount); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Gaming::Input::ForceFeedback { - -template double impl_IForceFeedbackEffect::Gain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Gain(&value)); - return value; -} - -template void impl_IForceFeedbackEffect::Gain(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Gain(value)); -} - -template Windows::Gaming::Input::ForceFeedback::ForceFeedbackEffectState impl_IForceFeedbackEffect::State() const -{ - Windows::Gaming::Input::ForceFeedback::ForceFeedbackEffectState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template void impl_IForceFeedbackEffect::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IForceFeedbackEffect::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template Windows::Gaming::Input::ForceFeedback::ConditionForceEffectKind impl_IConditionForceEffect::Kind() const -{ - Windows::Gaming::Input::ForceFeedback::ConditionForceEffectKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template void impl_IConditionForceEffect::SetParameters(const Windows::Foundation::Numerics::float3 & direction, float positiveCoefficient, float negativeCoefficient, float maxPositiveMagnitude, float maxNegativeMagnitude, float deadZone, float bias) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetParameters(get(direction), positiveCoefficient, negativeCoefficient, maxPositiveMagnitude, maxNegativeMagnitude, deadZone, bias)); -} - -template Windows::Gaming::Input::ForceFeedback::ConditionForceEffect impl_IConditionForceEffectFactory::CreateInstance(Windows::Gaming::Input::ForceFeedback::ConditionForceEffectKind effectKind) const -{ - Windows::Gaming::Input::ForceFeedback::ConditionForceEffect value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(effectKind, put(value))); - return value; -} - -template void impl_IConstantForceEffect::SetParameters(const Windows::Foundation::Numerics::float3 & vector, const Windows::Foundation::TimeSpan & duration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetParameters(get(vector), get(duration))); -} - -template void impl_IConstantForceEffect::SetParametersWithEnvelope(const Windows::Foundation::Numerics::float3 & vector, float attackGain, float sustainGain, float releaseGain, const Windows::Foundation::TimeSpan & startDelay, const Windows::Foundation::TimeSpan & attackDuration, const Windows::Foundation::TimeSpan & sustainDuration, const Windows::Foundation::TimeSpan & releaseDuration, uint32_t repeatCount) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetParametersWithEnvelope(get(vector), attackGain, sustainGain, releaseGain, get(startDelay), get(attackDuration), get(sustainDuration), get(releaseDuration), repeatCount)); -} - -template Windows::Gaming::Input::ForceFeedback::PeriodicForceEffectKind impl_IPeriodicForceEffect::Kind() const -{ - Windows::Gaming::Input::ForceFeedback::PeriodicForceEffectKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template void impl_IPeriodicForceEffect::SetParameters(const Windows::Foundation::Numerics::float3 & vector, float frequency, float phase, float bias, const Windows::Foundation::TimeSpan & duration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetParameters(get(vector), frequency, phase, bias, get(duration))); -} - -template void impl_IPeriodicForceEffect::SetParametersWithEnvelope(const Windows::Foundation::Numerics::float3 & vector, float frequency, float phase, float bias, float attackGain, float sustainGain, float releaseGain, const Windows::Foundation::TimeSpan & startDelay, const Windows::Foundation::TimeSpan & attackDuration, const Windows::Foundation::TimeSpan & sustainDuration, const Windows::Foundation::TimeSpan & releaseDuration, uint32_t repeatCount) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetParametersWithEnvelope(get(vector), frequency, phase, bias, attackGain, sustainGain, releaseGain, get(startDelay), get(attackDuration), get(sustainDuration), get(releaseDuration), repeatCount)); -} - -template Windows::Gaming::Input::ForceFeedback::PeriodicForceEffect impl_IPeriodicForceEffectFactory::CreateInstance(Windows::Gaming::Input::ForceFeedback::PeriodicForceEffectKind effectKind) const -{ - Windows::Gaming::Input::ForceFeedback::PeriodicForceEffect value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(effectKind, put(value))); - return value; -} - -template void impl_IRampForceEffect::SetParameters(const Windows::Foundation::Numerics::float3 & startVector, const Windows::Foundation::Numerics::float3 & endVector, const Windows::Foundation::TimeSpan & duration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetParameters(get(startVector), get(endVector), get(duration))); -} - -template void impl_IRampForceEffect::SetParametersWithEnvelope(const Windows::Foundation::Numerics::float3 & startVector, const Windows::Foundation::Numerics::float3 & endVector, float attackGain, float sustainGain, float releaseGain, const Windows::Foundation::TimeSpan & startDelay, const Windows::Foundation::TimeSpan & attackDuration, const Windows::Foundation::TimeSpan & sustainDuration, const Windows::Foundation::TimeSpan & releaseDuration, uint32_t repeatCount) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetParametersWithEnvelope(get(startVector), get(endVector), attackGain, sustainGain, releaseGain, get(startDelay), get(attackDuration), get(sustainDuration), get(releaseDuration), repeatCount)); -} - -template bool impl_IForceFeedbackMotor::AreEffectsPaused() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AreEffectsPaused(&value)); - return value; -} - -template double impl_IForceFeedbackMotor::MasterGain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MasterGain(&value)); - return value; -} - -template void impl_IForceFeedbackMotor::MasterGain(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MasterGain(value)); -} - -template bool impl_IForceFeedbackMotor::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template Windows::Gaming::Input::ForceFeedback::ForceFeedbackEffectAxes impl_IForceFeedbackMotor::SupportedAxes() const -{ - Windows::Gaming::Input::ForceFeedback::ForceFeedbackEffectAxes value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportedAxes(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IForceFeedbackMotor::LoadEffectAsync(const Windows::Gaming::Input::ForceFeedback::IForceFeedbackEffect & effect) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_LoadEffectAsync(get(effect), put(asyncOperation))); - return asyncOperation; -} - -template void impl_IForceFeedbackMotor::PauseAllEffects() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PauseAllEffects()); -} - -template void impl_IForceFeedbackMotor::ResumeAllEffects() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ResumeAllEffects()); -} - -template void impl_IForceFeedbackMotor::StopAllEffects() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopAllEffects()); -} - -template Windows::Foundation::IAsyncOperation impl_IForceFeedbackMotor::TryDisableAsync() const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_TryDisableAsync(put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IForceFeedbackMotor::TryEnableAsync() const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_TryEnableAsync(put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IForceFeedbackMotor::TryResetAsync() const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_TryResetAsync(put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IForceFeedbackMotor::TryUnloadEffectAsync(const Windows::Gaming::Input::ForceFeedback::IForceFeedbackEffect & effect) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_TryUnloadEffectAsync(get(effect), put(asyncOperation))); - return asyncOperation; -} - -inline ConditionForceEffect::ConditionForceEffect(Windows::Gaming::Input::ForceFeedback::ConditionForceEffectKind effectKind) : - ConditionForceEffect(get_activation_factory().CreateInstance(effectKind)) -{} - -inline ConstantForceEffect::ConstantForceEffect() : - ConstantForceEffect(activate_instance()) -{} - -inline PeriodicForceEffect::PeriodicForceEffect(Windows::Gaming::Input::ForceFeedback::PeriodicForceEffectKind effectKind) : - PeriodicForceEffect(get_activation_factory().CreateInstance(effectKind)) -{} - -inline RampForceEffect::RampForceEffect() : - RampForceEffect(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Gaming.Input.h b/10.0.14393.0/winrt/Windows.Gaming.Input.h deleted file mode 100644 index b1749caaa..000000000 --- a/10.0.14393.0/winrt/Windows.Gaming.Input.h +++ /dev/null @@ -1,1214 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Gaming.Input.ForceFeedback.3.h" -#include "internal/Windows.Gaming.Input.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetButtonLabel(Windows::Gaming::Input::ArcadeStickButtons button, Windows::Gaming::Input::GameControllerButtonLabel * value) noexcept override - { - try - { - *value = detach(this->shim().GetButtonLabel(button)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ArcadeStickAdded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ArcadeStickAdded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ArcadeStickAdded(event_token token) noexcept override - { - try - { - this->shim().ArcadeStickAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ArcadeStickRemoved(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ArcadeStickRemoved(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ArcadeStickRemoved(event_token token) noexcept override - { - try - { - this->shim().ArcadeStickRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ArcadeSticks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ArcadeSticks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_HeadsetConnected(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().HeadsetConnected(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HeadsetConnected(event_token token) noexcept override - { - try - { - this->shim().HeadsetConnected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_HeadsetDisconnected(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().HeadsetDisconnected(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HeadsetDisconnected(event_token token) noexcept override - { - try - { - this->shim().HeadsetDisconnected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UserChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UserChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UserChanged(event_token token) noexcept override - { - try - { - this->shim().UserChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Headset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Headset()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsWireless(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsWireless()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Vibration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Vibration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Vibration(abi_arg_in value) noexcept override - { - try - { - this->shim().Vibration(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetButtonLabel(Windows::Gaming::Input::GamepadButtons button, Windows::Gaming::Input::GameControllerButtonLabel * value) noexcept override - { - try - { - *value = detach(this->shim().GetButtonLabel(button)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_GamepadAdded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().GamepadAdded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_GamepadAdded(event_token token) noexcept override - { - try - { - this->shim().GamepadAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_GamepadRemoved(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().GamepadRemoved(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_GamepadRemoved(event_token token) noexcept override - { - try - { - this->shim().GamepadRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gamepads(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Gamepads()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CaptureDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CaptureDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RenderDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RenderDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HasClutch(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasClutch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasHandbrake(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasHandbrake()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasPatternShifter(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasPatternShifter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPatternShifterGear(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPatternShifterGear()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxWheelAngle(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxWheelAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WheelMotor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WheelMotor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetButtonLabel(Windows::Gaming::Input::RacingWheelButtons button, Windows::Gaming::Input::GameControllerButtonLabel * value) noexcept override - { - try - { - *value = detach(this->shim().GetButtonLabel(button)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_RacingWheelAdded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RacingWheelAdded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RacingWheelAdded(event_token token) noexcept override - { - try - { - this->shim().RacingWheelAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RacingWheelRemoved(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RacingWheelRemoved(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RacingWheelRemoved(event_token token) noexcept override - { - try - { - this->shim().RacingWheelRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RacingWheels(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RacingWheels()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentReading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentReading()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetOptionalButtonLabel(Windows::Gaming::Input::OptionalUINavigationButtons button, Windows::Gaming::Input::GameControllerButtonLabel * value) noexcept override - { - try - { - *value = detach(this->shim().GetOptionalButtonLabel(button)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRequiredButtonLabel(Windows::Gaming::Input::RequiredUINavigationButtons button, Windows::Gaming::Input::GameControllerButtonLabel * value) noexcept override - { - try - { - *value = detach(this->shim().GetRequiredButtonLabel(button)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_UINavigationControllerAdded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UINavigationControllerAdded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UINavigationControllerAdded(event_token token) noexcept override - { - try - { - this->shim().UINavigationControllerAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UINavigationControllerRemoved(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UINavigationControllerRemoved(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UINavigationControllerRemoved(event_token token) noexcept override - { - try - { - this->shim().UINavigationControllerRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UINavigationControllers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().UINavigationControllers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Gaming::Input { - -template event_token impl_IGameController::HeadsetConnected(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_HeadsetConnected(get(value), &token)); - return token; -} - -template event_revoker impl_IGameController::HeadsetConnected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Input::IGameController::remove_HeadsetConnected, HeadsetConnected(value)); -} - -template void impl_IGameController::HeadsetConnected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HeadsetConnected(token)); -} - -template event_token impl_IGameController::HeadsetDisconnected(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_HeadsetDisconnected(get(value), &token)); - return token; -} - -template event_revoker impl_IGameController::HeadsetDisconnected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Input::IGameController::remove_HeadsetDisconnected, HeadsetDisconnected(value)); -} - -template void impl_IGameController::HeadsetDisconnected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HeadsetDisconnected(token)); -} - -template event_token impl_IGameController::UserChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UserChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IGameController::UserChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Input::IGameController::remove_UserChanged, UserChanged(value)); -} - -template void impl_IGameController::UserChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UserChanged(token)); -} - -template Windows::Gaming::Input::Headset impl_IGameController::Headset() const -{ - Windows::Gaming::Input::Headset value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Headset(put(value))); - return value; -} - -template bool impl_IGameController::IsWireless() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsWireless(&value)); - return value; -} - -template Windows::System::User impl_IGameController::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template Windows::Gaming::Input::GameControllerButtonLabel impl_IArcadeStick::GetButtonLabel(Windows::Gaming::Input::ArcadeStickButtons button) const -{ - Windows::Gaming::Input::GameControllerButtonLabel value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetButtonLabel(button, &value)); - return value; -} - -template Windows::Gaming::Input::ArcadeStickReading impl_IArcadeStick::GetCurrentReading() const -{ - Windows::Gaming::Input::ArcadeStickReading value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template event_token impl_IArcadeStickStatics::ArcadeStickAdded(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ArcadeStickAdded(get(value), &token)); - return token; -} - -template event_revoker impl_IArcadeStickStatics::ArcadeStickAdded(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Input::IArcadeStickStatics::remove_ArcadeStickAdded, ArcadeStickAdded(value)); -} - -template void impl_IArcadeStickStatics::ArcadeStickAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ArcadeStickAdded(token)); -} - -template event_token impl_IArcadeStickStatics::ArcadeStickRemoved(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ArcadeStickRemoved(get(value), &token)); - return token; -} - -template event_revoker impl_IArcadeStickStatics::ArcadeStickRemoved(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Input::IArcadeStickStatics::remove_ArcadeStickRemoved, ArcadeStickRemoved(value)); -} - -template void impl_IArcadeStickStatics::ArcadeStickRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ArcadeStickRemoved(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_IArcadeStickStatics::ArcadeSticks() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ArcadeSticks(put(value))); - return value; -} - -template Windows::Gaming::Input::GamepadVibration impl_IGamepad::Vibration() const -{ - Windows::Gaming::Input::GamepadVibration value {}; - check_hresult(static_cast(static_cast(*this))->get_Vibration(put(value))); - return value; -} - -template void impl_IGamepad::Vibration(const Windows::Gaming::Input::GamepadVibration & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Vibration(get(value))); -} - -template Windows::Gaming::Input::GamepadReading impl_IGamepad::GetCurrentReading() const -{ - Windows::Gaming::Input::GamepadReading value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template Windows::Gaming::Input::GameControllerButtonLabel impl_IGamepad2::GetButtonLabel(Windows::Gaming::Input::GamepadButtons button) const -{ - Windows::Gaming::Input::GameControllerButtonLabel value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetButtonLabel(button, &value)); - return value; -} - -template event_token impl_IGamepadStatics::GamepadAdded(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_GamepadAdded(get(value), &token)); - return token; -} - -template event_revoker impl_IGamepadStatics::GamepadAdded(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Input::IGamepadStatics::remove_GamepadAdded, GamepadAdded(value)); -} - -template void impl_IGamepadStatics::GamepadAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_GamepadAdded(token)); -} - -template event_token impl_IGamepadStatics::GamepadRemoved(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_GamepadRemoved(get(value), &token)); - return token; -} - -template event_revoker impl_IGamepadStatics::GamepadRemoved(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Input::IGamepadStatics::remove_GamepadRemoved, GamepadRemoved(value)); -} - -template void impl_IGamepadStatics::GamepadRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_GamepadRemoved(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_IGamepadStatics::Gamepads() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Gamepads(put(value))); - return value; -} - -template hstring impl_IHeadset::CaptureDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CaptureDeviceId(put(value))); - return value; -} - -template hstring impl_IHeadset::RenderDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RenderDeviceId(put(value))); - return value; -} - -template bool impl_IRacingWheel::HasClutch() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasClutch(&value)); - return value; -} - -template bool impl_IRacingWheel::HasHandbrake() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasHandbrake(&value)); - return value; -} - -template bool impl_IRacingWheel::HasPatternShifter() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasPatternShifter(&value)); - return value; -} - -template int32_t impl_IRacingWheel::MaxPatternShifterGear() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPatternShifterGear(&value)); - return value; -} - -template double impl_IRacingWheel::MaxWheelAngle() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxWheelAngle(&value)); - return value; -} - -template Windows::Gaming::Input::ForceFeedback::ForceFeedbackMotor impl_IRacingWheel::WheelMotor() const -{ - Windows::Gaming::Input::ForceFeedback::ForceFeedbackMotor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WheelMotor(put(value))); - return value; -} - -template Windows::Gaming::Input::GameControllerButtonLabel impl_IRacingWheel::GetButtonLabel(Windows::Gaming::Input::RacingWheelButtons button) const -{ - Windows::Gaming::Input::GameControllerButtonLabel value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetButtonLabel(button, &value)); - return value; -} - -template Windows::Gaming::Input::RacingWheelReading impl_IRacingWheel::GetCurrentReading() const -{ - Windows::Gaming::Input::RacingWheelReading value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template event_token impl_IRacingWheelStatics::RacingWheelAdded(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RacingWheelAdded(get(value), &token)); - return token; -} - -template event_revoker impl_IRacingWheelStatics::RacingWheelAdded(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Input::IRacingWheelStatics::remove_RacingWheelAdded, RacingWheelAdded(value)); -} - -template void impl_IRacingWheelStatics::RacingWheelAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RacingWheelAdded(token)); -} - -template event_token impl_IRacingWheelStatics::RacingWheelRemoved(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RacingWheelRemoved(get(value), &token)); - return token; -} - -template event_revoker impl_IRacingWheelStatics::RacingWheelRemoved(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Input::IRacingWheelStatics::remove_RacingWheelRemoved, RacingWheelRemoved(value)); -} - -template void impl_IRacingWheelStatics::RacingWheelRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RacingWheelRemoved(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_IRacingWheelStatics::RacingWheels() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_RacingWheels(put(value))); - return value; -} - -template Windows::Gaming::Input::UINavigationReading impl_IUINavigationController::GetCurrentReading() const -{ - Windows::Gaming::Input::UINavigationReading value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentReading(put(value))); - return value; -} - -template Windows::Gaming::Input::GameControllerButtonLabel impl_IUINavigationController::GetOptionalButtonLabel(Windows::Gaming::Input::OptionalUINavigationButtons button) const -{ - Windows::Gaming::Input::GameControllerButtonLabel value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetOptionalButtonLabel(button, &value)); - return value; -} - -template Windows::Gaming::Input::GameControllerButtonLabel impl_IUINavigationController::GetRequiredButtonLabel(Windows::Gaming::Input::RequiredUINavigationButtons button) const -{ - Windows::Gaming::Input::GameControllerButtonLabel value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetRequiredButtonLabel(button, &value)); - return value; -} - -template event_token impl_IUINavigationControllerStatics::UINavigationControllerAdded(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UINavigationControllerAdded(get(value), &token)); - return token; -} - -template event_revoker impl_IUINavigationControllerStatics::UINavigationControllerAdded(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Input::IUINavigationControllerStatics::remove_UINavigationControllerAdded, UINavigationControllerAdded(value)); -} - -template void impl_IUINavigationControllerStatics::UINavigationControllerAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UINavigationControllerAdded(token)); -} - -template event_token impl_IUINavigationControllerStatics::UINavigationControllerRemoved(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UINavigationControllerRemoved(get(value), &token)); - return token; -} - -template event_revoker impl_IUINavigationControllerStatics::UINavigationControllerRemoved(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Input::IUINavigationControllerStatics::remove_UINavigationControllerRemoved, UINavigationControllerRemoved(value)); -} - -template void impl_IUINavigationControllerStatics::UINavigationControllerRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UINavigationControllerRemoved(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_IUINavigationControllerStatics::UINavigationControllers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_UINavigationControllers(put(value))); - return value; -} - -inline event_token ArcadeStick::ArcadeStickAdded(const Windows::Foundation::EventHandler & value) -{ - return get_activation_factory().ArcadeStickAdded(value); -} - -inline factory_event_revoker ArcadeStick::ArcadeStickAdded(auto_revoke_t, const Windows::Foundation::EventHandler & value) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::Input::IArcadeStickStatics::remove_ArcadeStickAdded, factory.ArcadeStickAdded(value) }; -} - -inline void ArcadeStick::ArcadeStickAdded(event_token token) -{ - get_activation_factory().ArcadeStickAdded(token); -} - -inline event_token ArcadeStick::ArcadeStickRemoved(const Windows::Foundation::EventHandler & value) -{ - return get_activation_factory().ArcadeStickRemoved(value); -} - -inline factory_event_revoker ArcadeStick::ArcadeStickRemoved(auto_revoke_t, const Windows::Foundation::EventHandler & value) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::Input::IArcadeStickStatics::remove_ArcadeStickRemoved, factory.ArcadeStickRemoved(value) }; -} - -inline void ArcadeStick::ArcadeStickRemoved(event_token token) -{ - get_activation_factory().ArcadeStickRemoved(token); -} - -inline Windows::Foundation::Collections::IVectorView ArcadeStick::ArcadeSticks() -{ - return get_activation_factory().ArcadeSticks(); -} - -inline event_token Gamepad::GamepadAdded(const Windows::Foundation::EventHandler & value) -{ - return get_activation_factory().GamepadAdded(value); -} - -inline factory_event_revoker Gamepad::GamepadAdded(auto_revoke_t, const Windows::Foundation::EventHandler & value) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::Input::IGamepadStatics::remove_GamepadAdded, factory.GamepadAdded(value) }; -} - -inline void Gamepad::GamepadAdded(event_token token) -{ - get_activation_factory().GamepadAdded(token); -} - -inline event_token Gamepad::GamepadRemoved(const Windows::Foundation::EventHandler & value) -{ - return get_activation_factory().GamepadRemoved(value); -} - -inline factory_event_revoker Gamepad::GamepadRemoved(auto_revoke_t, const Windows::Foundation::EventHandler & value) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::Input::IGamepadStatics::remove_GamepadRemoved, factory.GamepadRemoved(value) }; -} - -inline void Gamepad::GamepadRemoved(event_token token) -{ - get_activation_factory().GamepadRemoved(token); -} - -inline Windows::Foundation::Collections::IVectorView Gamepad::Gamepads() -{ - return get_activation_factory().Gamepads(); -} - -inline event_token RacingWheel::RacingWheelAdded(const Windows::Foundation::EventHandler & value) -{ - return get_activation_factory().RacingWheelAdded(value); -} - -inline factory_event_revoker RacingWheel::RacingWheelAdded(auto_revoke_t, const Windows::Foundation::EventHandler & value) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::Input::IRacingWheelStatics::remove_RacingWheelAdded, factory.RacingWheelAdded(value) }; -} - -inline void RacingWheel::RacingWheelAdded(event_token token) -{ - get_activation_factory().RacingWheelAdded(token); -} - -inline event_token RacingWheel::RacingWheelRemoved(const Windows::Foundation::EventHandler & value) -{ - return get_activation_factory().RacingWheelRemoved(value); -} - -inline factory_event_revoker RacingWheel::RacingWheelRemoved(auto_revoke_t, const Windows::Foundation::EventHandler & value) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::Input::IRacingWheelStatics::remove_RacingWheelRemoved, factory.RacingWheelRemoved(value) }; -} - -inline void RacingWheel::RacingWheelRemoved(event_token token) -{ - get_activation_factory().RacingWheelRemoved(token); -} - -inline Windows::Foundation::Collections::IVectorView RacingWheel::RacingWheels() -{ - return get_activation_factory().RacingWheels(); -} - -inline event_token UINavigationController::UINavigationControllerAdded(const Windows::Foundation::EventHandler & value) -{ - return get_activation_factory().UINavigationControllerAdded(value); -} - -inline factory_event_revoker UINavigationController::UINavigationControllerAdded(auto_revoke_t, const Windows::Foundation::EventHandler & value) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::Input::IUINavigationControllerStatics::remove_UINavigationControllerAdded, factory.UINavigationControllerAdded(value) }; -} - -inline void UINavigationController::UINavigationControllerAdded(event_token token) -{ - get_activation_factory().UINavigationControllerAdded(token); -} - -inline event_token UINavigationController::UINavigationControllerRemoved(const Windows::Foundation::EventHandler & value) -{ - return get_activation_factory().UINavigationControllerRemoved(value); -} - -inline factory_event_revoker UINavigationController::UINavigationControllerRemoved(auto_revoke_t, const Windows::Foundation::EventHandler & value) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::Input::IUINavigationControllerStatics::remove_UINavigationControllerRemoved, factory.UINavigationControllerRemoved(value) }; -} - -inline void UINavigationController::UINavigationControllerRemoved(event_token token) -{ - get_activation_factory().UINavigationControllerRemoved(token); -} - -inline Windows::Foundation::Collections::IVectorView UINavigationController::UINavigationControllers() -{ - return get_activation_factory().UINavigationControllers(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Gaming.Preview.GamesEnumeration.h b/10.0.14393.0/winrt/Windows.Gaming.Preview.GamesEnumeration.h deleted file mode 100644 index dadd55d25..000000000 --- a/10.0.14393.0/winrt/Windows.Gaming.Preview.GamesEnumeration.h +++ /dev/null @@ -1,400 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.ApplicationModel.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Gaming.Preview.GamesEnumeration.3.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Gaming::Preview::GamesEnumeration { - -template GameListChangedEventHandler::GameListChangedEventHandler(L lambda) : - GameListChangedEventHandler(impl::make_delegate, GameListChangedEventHandler>(std::forward(lambda))) -{} - -template GameListChangedEventHandler::GameListChangedEventHandler(F * function) : - GameListChangedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template GameListChangedEventHandler::GameListChangedEventHandler(O * object, M method) : - GameListChangedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void GameListChangedEventHandler::operator()(const Windows::Gaming::Preview::GamesEnumeration::GameListEntry & game) const -{ - check_hresult((*this)->abi_Invoke(get(game))); -} - -template GameListRemovedEventHandler::GameListRemovedEventHandler(L lambda) : - GameListRemovedEventHandler(impl::make_delegate, GameListRemovedEventHandler>(std::forward(lambda))) -{} - -template GameListRemovedEventHandler::GameListRemovedEventHandler(F * function) : - GameListRemovedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template GameListRemovedEventHandler::GameListRemovedEventHandler(O * object, M method) : - GameListRemovedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void GameListRemovedEventHandler::operator()(hstring_ref identifier) const -{ - check_hresult((*this)->abi_Invoke(get(identifier))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Category(Windows::Gaming::Preview::GamesEnumeration::GameListCategory * value) noexcept override - { - try - { - *value = detach(this->shim().Category()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetCategoryAsync(Windows::Gaming::Preview::GamesEnumeration::GameListCategory value, abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().SetCategoryAsync(value)); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindAllAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAllAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsyncPackageFamilyName(abi_arg_in packageFamilyName, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAllAsync(*reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_GameAdded(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().GameAdded(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_GameAdded(event_token token) noexcept override - { - try - { - this->shim().GameAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_GameRemoved(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().GameRemoved(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_GameRemoved(event_token token) noexcept override - { - try - { - this->shim().GameRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_GameUpdated(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().GameUpdated(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_GameUpdated(event_token token) noexcept override - { - try - { - this->shim().GameUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Gaming::Preview::GamesEnumeration { - -template Windows::ApplicationModel::AppDisplayInfo impl_IGameListEntry::DisplayInfo() const -{ - Windows::ApplicationModel::AppDisplayInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisplayInfo(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IGameListEntry::LaunchAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchAsync(put(operation))); - return operation; -} - -template Windows::Gaming::Preview::GamesEnumeration::GameListCategory impl_IGameListEntry::Category() const -{ - Windows::Gaming::Preview::GamesEnumeration::GameListCategory value {}; - check_hresult(static_cast(static_cast(*this))->get_Category(&value)); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IGameListEntry::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IGameListEntry::SetCategoryAsync(Windows::Gaming::Preview::GamesEnumeration::GameListCategory value) const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_SetCategoryAsync(value, put(action))); - return action; -} - -template Windows::Foundation::IAsyncOperation> impl_IGameListStatics::FindAllAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IGameListStatics::FindAllAsync(hstring_ref packageFamilyName) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsyncPackageFamilyName(get(packageFamilyName), put(operation))); - return operation; -} - -template event_token impl_IGameListStatics::GameAdded(const Windows::Gaming::Preview::GamesEnumeration::GameListChangedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_GameAdded(get(handler), &token)); - return token; -} - -template event_revoker impl_IGameListStatics::GameAdded(auto_revoke_t, const Windows::Gaming::Preview::GamesEnumeration::GameListChangedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Preview::GamesEnumeration::IGameListStatics::remove_GameAdded, GameAdded(handler)); -} - -template void impl_IGameListStatics::GameAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_GameAdded(token)); -} - -template event_token impl_IGameListStatics::GameRemoved(const Windows::Gaming::Preview::GamesEnumeration::GameListRemovedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_GameRemoved(get(handler), &token)); - return token; -} - -template event_revoker impl_IGameListStatics::GameRemoved(auto_revoke_t, const Windows::Gaming::Preview::GamesEnumeration::GameListRemovedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Preview::GamesEnumeration::IGameListStatics::remove_GameRemoved, GameRemoved(handler)); -} - -template void impl_IGameListStatics::GameRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_GameRemoved(token)); -} - -template event_token impl_IGameListStatics::GameUpdated(const Windows::Gaming::Preview::GamesEnumeration::GameListChangedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_GameUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_IGameListStatics::GameUpdated(auto_revoke_t, const Windows::Gaming::Preview::GamesEnumeration::GameListChangedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::Preview::GamesEnumeration::IGameListStatics::remove_GameUpdated, GameUpdated(handler)); -} - -template void impl_IGameListStatics::GameUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_GameUpdated(token)); -} - -inline Windows::Foundation::IAsyncOperation> GameList::FindAllAsync() -{ - return get_activation_factory().FindAllAsync(); -} - -inline Windows::Foundation::IAsyncOperation> GameList::FindAllAsync(hstring_ref packageFamilyName) -{ - return get_activation_factory().FindAllAsync(packageFamilyName); -} - -inline event_token GameList::GameAdded(const Windows::Gaming::Preview::GamesEnumeration::GameListChangedEventHandler & handler) -{ - return get_activation_factory().GameAdded(handler); -} - -inline factory_event_revoker GameList::GameAdded(auto_revoke_t, const Windows::Gaming::Preview::GamesEnumeration::GameListChangedEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::Preview::GamesEnumeration::IGameListStatics::remove_GameAdded, factory.GameAdded(handler) }; -} - -inline void GameList::GameAdded(event_token token) -{ - get_activation_factory().GameAdded(token); -} - -inline event_token GameList::GameRemoved(const Windows::Gaming::Preview::GamesEnumeration::GameListRemovedEventHandler & handler) -{ - return get_activation_factory().GameRemoved(handler); -} - -inline factory_event_revoker GameList::GameRemoved(auto_revoke_t, const Windows::Gaming::Preview::GamesEnumeration::GameListRemovedEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::Preview::GamesEnumeration::IGameListStatics::remove_GameRemoved, factory.GameRemoved(handler) }; -} - -inline void GameList::GameRemoved(event_token token) -{ - get_activation_factory().GameRemoved(token); -} - -inline event_token GameList::GameUpdated(const Windows::Gaming::Preview::GamesEnumeration::GameListChangedEventHandler & handler) -{ - return get_activation_factory().GameUpdated(handler); -} - -inline factory_event_revoker GameList::GameUpdated(auto_revoke_t, const Windows::Gaming::Preview::GamesEnumeration::GameListChangedEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::Preview::GamesEnumeration::IGameListStatics::remove_GameUpdated, factory.GameUpdated(handler) }; -} - -inline void GameList::GameUpdated(event_token token) -{ - get_activation_factory().GameUpdated(token); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Gaming.UI.h b/10.0.14393.0/winrt/Windows.Gaming.UI.h deleted file mode 100644 index c0d5d6faf..000000000 --- a/10.0.14393.0/winrt/Windows.Gaming.UI.h +++ /dev/null @@ -1,191 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Gaming.UI.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall add_VisibilityChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VisibilityChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VisibilityChanged(event_token token) noexcept override - { - try - { - this->shim().VisibilityChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_IsInputRedirectedChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().IsInputRedirectedChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_IsInputRedirectedChanged(event_token token) noexcept override - { - try - { - this->shim().IsInputRedirectedChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Visible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Visible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInputRedirected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInputRedirected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Gaming::UI { - -template event_token impl_IGameBarStatics::VisibilityChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VisibilityChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IGameBarStatics::VisibilityChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::UI::IGameBarStatics::remove_VisibilityChanged, VisibilityChanged(handler)); -} - -template void impl_IGameBarStatics::VisibilityChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VisibilityChanged(token)); -} - -template event_token impl_IGameBarStatics::IsInputRedirectedChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_IsInputRedirectedChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IGameBarStatics::IsInputRedirectedChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Gaming::UI::IGameBarStatics::remove_IsInputRedirectedChanged, IsInputRedirectedChanged(handler)); -} - -template void impl_IGameBarStatics::IsInputRedirectedChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_IsInputRedirectedChanged(token)); -} - -template bool impl_IGameBarStatics::Visible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Visible(&value)); - return value; -} - -template bool impl_IGameBarStatics::IsInputRedirected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInputRedirected(&value)); - return value; -} - -inline event_token GameBar::VisibilityChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().VisibilityChanged(handler); -} - -inline factory_event_revoker GameBar::VisibilityChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::UI::IGameBarStatics::remove_VisibilityChanged, factory.VisibilityChanged(handler) }; -} - -inline void GameBar::VisibilityChanged(event_token token) -{ - get_activation_factory().VisibilityChanged(token); -} - -inline event_token GameBar::IsInputRedirectedChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().IsInputRedirectedChanged(handler); -} - -inline factory_event_revoker GameBar::IsInputRedirectedChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Gaming::UI::IGameBarStatics::remove_IsInputRedirectedChanged, factory.IsInputRedirectedChanged(handler) }; -} - -inline void GameBar::IsInputRedirectedChanged(event_token token) -{ - get_activation_factory().IsInputRedirectedChanged(token); -} - -inline bool GameBar::Visible() -{ - return get_activation_factory().Visible(); -} - -inline bool GameBar::IsInputRedirected() -{ - return get_activation_factory().IsInputRedirected(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Globalization.Collation.h b/10.0.14393.0/winrt/Windows.Globalization.Collation.h deleted file mode 100644 index cdc0c13e1..000000000 --- a/10.0.14393.0/winrt/Windows.Globalization.Collation.h +++ /dev/null @@ -1,95 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Globalization.Collation.3.h" -#include "Windows.Globalization.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_First(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().First()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Label(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Label()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Lookup(abi_arg_in text, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Lookup(*reinterpret_cast(&text))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Globalization::Collation { - -template hstring impl_ICharacterGrouping::First() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_First(put(value))); - return value; -} - -template hstring impl_ICharacterGrouping::Label() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Label(put(value))); - return value; -} - -template hstring impl_ICharacterGroupings::Lookup(hstring_ref text) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_Lookup(get(text), put(result))); - return result; -} - -inline CharacterGroupings::CharacterGroupings() : - CharacterGroupings(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Globalization.DateTimeFormatting.h b/10.0.14393.0/winrt/Windows.Globalization.DateTimeFormatting.h deleted file mode 100644 index 3c665ddba..000000000 --- a/10.0.14393.0/winrt/Windows.Globalization.DateTimeFormatting.h +++ /dev/null @@ -1,705 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Globalization.DateTimeFormatting.3.h" -#include "Windows.Globalization.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Languages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Languages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GeographicRegion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GeographicRegion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Calendar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Calendar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Clock(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Clock()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumeralSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NumeralSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NumeralSystem(abi_arg_in value) noexcept override - { - try - { - this->shim().NumeralSystem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Patterns(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Patterns()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Template(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Template()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Format(abi_arg_in value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Format(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncludeYear(Windows::Globalization::DateTimeFormatting::YearFormat * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeYear()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncludeMonth(Windows::Globalization::DateTimeFormatting::MonthFormat * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeMonth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncludeDayOfWeek(Windows::Globalization::DateTimeFormatting::DayOfWeekFormat * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeDayOfWeek()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncludeDay(Windows::Globalization::DateTimeFormatting::DayFormat * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeDay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncludeHour(Windows::Globalization::DateTimeFormatting::HourFormat * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeHour()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncludeMinute(Windows::Globalization::DateTimeFormatting::MinuteFormat * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeMinute()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncludeSecond(Windows::Globalization::DateTimeFormatting::SecondFormat * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeSecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResolvedLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResolvedLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResolvedGeographicRegion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResolvedGeographicRegion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FormatUsingTimeZone(abi_arg_in datetime, abi_arg_in timeZoneId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Format(*reinterpret_cast(&datetime), *reinterpret_cast(&timeZoneId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateDateTimeFormatter(abi_arg_in formatTemplate, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateDateTimeFormatter(*reinterpret_cast(&formatTemplate))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDateTimeFormatterLanguages(abi_arg_in formatTemplate, abi_arg_in> languages, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateDateTimeFormatterLanguages(*reinterpret_cast(&formatTemplate), *reinterpret_cast *>(&languages))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDateTimeFormatterContext(abi_arg_in formatTemplate, abi_arg_in> languages, abi_arg_in geographicRegion, abi_arg_in calendar, abi_arg_in clock, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateDateTimeFormatterContext(*reinterpret_cast(&formatTemplate), *reinterpret_cast *>(&languages), *reinterpret_cast(&geographicRegion), *reinterpret_cast(&calendar), *reinterpret_cast(&clock))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDateTimeFormatterDate(Windows::Globalization::DateTimeFormatting::YearFormat yearFormat, Windows::Globalization::DateTimeFormatting::MonthFormat monthFormat, Windows::Globalization::DateTimeFormatting::DayFormat dayFormat, Windows::Globalization::DateTimeFormatting::DayOfWeekFormat dayOfWeekFormat, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateDateTimeFormatterDate(yearFormat, monthFormat, dayFormat, dayOfWeekFormat)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDateTimeFormatterTime(Windows::Globalization::DateTimeFormatting::HourFormat hourFormat, Windows::Globalization::DateTimeFormatting::MinuteFormat minuteFormat, Windows::Globalization::DateTimeFormatting::SecondFormat secondFormat, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateDateTimeFormatterTime(hourFormat, minuteFormat, secondFormat)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDateTimeFormatterDateTimeLanguages(Windows::Globalization::DateTimeFormatting::YearFormat yearFormat, Windows::Globalization::DateTimeFormatting::MonthFormat monthFormat, Windows::Globalization::DateTimeFormatting::DayFormat dayFormat, Windows::Globalization::DateTimeFormatting::DayOfWeekFormat dayOfWeekFormat, Windows::Globalization::DateTimeFormatting::HourFormat hourFormat, Windows::Globalization::DateTimeFormatting::MinuteFormat minuteFormat, Windows::Globalization::DateTimeFormatting::SecondFormat secondFormat, abi_arg_in> languages, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateDateTimeFormatterDateTimeLanguages(yearFormat, monthFormat, dayFormat, dayOfWeekFormat, hourFormat, minuteFormat, secondFormat, *reinterpret_cast *>(&languages))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDateTimeFormatterDateTimeContext(Windows::Globalization::DateTimeFormatting::YearFormat yearFormat, Windows::Globalization::DateTimeFormatting::MonthFormat monthFormat, Windows::Globalization::DateTimeFormatting::DayFormat dayFormat, Windows::Globalization::DateTimeFormatting::DayOfWeekFormat dayOfWeekFormat, Windows::Globalization::DateTimeFormatting::HourFormat hourFormat, Windows::Globalization::DateTimeFormatting::MinuteFormat minuteFormat, Windows::Globalization::DateTimeFormatting::SecondFormat secondFormat, abi_arg_in> languages, abi_arg_in geographicRegion, abi_arg_in calendar, abi_arg_in clock, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateDateTimeFormatterDateTimeContext(yearFormat, monthFormat, dayFormat, dayOfWeekFormat, hourFormat, minuteFormat, secondFormat, *reinterpret_cast *>(&languages), *reinterpret_cast(&geographicRegion), *reinterpret_cast(&calendar), *reinterpret_cast(&clock))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LongDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LongDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LongTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LongTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShortDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShortDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShortTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShortTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Globalization::DateTimeFormatting { - -template Windows::Foundation::Collections::IVectorView impl_IDateTimeFormatter::Languages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Languages(put(value))); - return value; -} - -template hstring impl_IDateTimeFormatter::GeographicRegion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GeographicRegion(put(value))); - return value; -} - -template hstring impl_IDateTimeFormatter::Calendar() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Calendar(put(value))); - return value; -} - -template hstring impl_IDateTimeFormatter::Clock() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Clock(put(value))); - return value; -} - -template hstring impl_IDateTimeFormatter::NumeralSystem() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NumeralSystem(put(value))); - return value; -} - -template void impl_IDateTimeFormatter::NumeralSystem(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NumeralSystem(get(value))); -} - -template Windows::Foundation::Collections::IVectorView impl_IDateTimeFormatter::Patterns() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Patterns(put(value))); - return value; -} - -template hstring impl_IDateTimeFormatter::Template() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Template(put(value))); - return value; -} - -template hstring impl_IDateTimeFormatter::Format(const Windows::Foundation::DateTime & value) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_Format(get(value), put(result))); - return result; -} - -template Windows::Globalization::DateTimeFormatting::YearFormat impl_IDateTimeFormatter::IncludeYear() const -{ - Windows::Globalization::DateTimeFormatting::YearFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeYear(&value)); - return value; -} - -template Windows::Globalization::DateTimeFormatting::MonthFormat impl_IDateTimeFormatter::IncludeMonth() const -{ - Windows::Globalization::DateTimeFormatting::MonthFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeMonth(&value)); - return value; -} - -template Windows::Globalization::DateTimeFormatting::DayOfWeekFormat impl_IDateTimeFormatter::IncludeDayOfWeek() const -{ - Windows::Globalization::DateTimeFormatting::DayOfWeekFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeDayOfWeek(&value)); - return value; -} - -template Windows::Globalization::DateTimeFormatting::DayFormat impl_IDateTimeFormatter::IncludeDay() const -{ - Windows::Globalization::DateTimeFormatting::DayFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeDay(&value)); - return value; -} - -template Windows::Globalization::DateTimeFormatting::HourFormat impl_IDateTimeFormatter::IncludeHour() const -{ - Windows::Globalization::DateTimeFormatting::HourFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeHour(&value)); - return value; -} - -template Windows::Globalization::DateTimeFormatting::MinuteFormat impl_IDateTimeFormatter::IncludeMinute() const -{ - Windows::Globalization::DateTimeFormatting::MinuteFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeMinute(&value)); - return value; -} - -template Windows::Globalization::DateTimeFormatting::SecondFormat impl_IDateTimeFormatter::IncludeSecond() const -{ - Windows::Globalization::DateTimeFormatting::SecondFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeSecond(&value)); - return value; -} - -template hstring impl_IDateTimeFormatter::ResolvedLanguage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResolvedLanguage(put(value))); - return value; -} - -template hstring impl_IDateTimeFormatter::ResolvedGeographicRegion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResolvedGeographicRegion(put(value))); - return value; -} - -template Windows::Globalization::DateTimeFormatting::DateTimeFormatter impl_IDateTimeFormatterFactory::CreateDateTimeFormatter(hstring_ref formatTemplate) const -{ - Windows::Globalization::DateTimeFormatting::DateTimeFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDateTimeFormatter(get(formatTemplate), put(result))); - return result; -} - -template Windows::Globalization::DateTimeFormatting::DateTimeFormatter impl_IDateTimeFormatterFactory::CreateDateTimeFormatterLanguages(hstring_ref formatTemplate, const Windows::Foundation::Collections::IIterable & languages) const -{ - Windows::Globalization::DateTimeFormatting::DateTimeFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDateTimeFormatterLanguages(get(formatTemplate), get(languages), put(result))); - return result; -} - -template Windows::Globalization::DateTimeFormatting::DateTimeFormatter impl_IDateTimeFormatterFactory::CreateDateTimeFormatterContext(hstring_ref formatTemplate, const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion, hstring_ref calendar, hstring_ref clock) const -{ - Windows::Globalization::DateTimeFormatting::DateTimeFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDateTimeFormatterContext(get(formatTemplate), get(languages), get(geographicRegion), get(calendar), get(clock), put(result))); - return result; -} - -template Windows::Globalization::DateTimeFormatting::DateTimeFormatter impl_IDateTimeFormatterFactory::CreateDateTimeFormatterDate(Windows::Globalization::DateTimeFormatting::YearFormat yearFormat, Windows::Globalization::DateTimeFormatting::MonthFormat monthFormat, Windows::Globalization::DateTimeFormatting::DayFormat dayFormat, Windows::Globalization::DateTimeFormatting::DayOfWeekFormat dayOfWeekFormat) const -{ - Windows::Globalization::DateTimeFormatting::DateTimeFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDateTimeFormatterDate(yearFormat, monthFormat, dayFormat, dayOfWeekFormat, put(result))); - return result; -} - -template Windows::Globalization::DateTimeFormatting::DateTimeFormatter impl_IDateTimeFormatterFactory::CreateDateTimeFormatterTime(Windows::Globalization::DateTimeFormatting::HourFormat hourFormat, Windows::Globalization::DateTimeFormatting::MinuteFormat minuteFormat, Windows::Globalization::DateTimeFormatting::SecondFormat secondFormat) const -{ - Windows::Globalization::DateTimeFormatting::DateTimeFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDateTimeFormatterTime(hourFormat, minuteFormat, secondFormat, put(result))); - return result; -} - -template Windows::Globalization::DateTimeFormatting::DateTimeFormatter impl_IDateTimeFormatterFactory::CreateDateTimeFormatterDateTimeLanguages(Windows::Globalization::DateTimeFormatting::YearFormat yearFormat, Windows::Globalization::DateTimeFormatting::MonthFormat monthFormat, Windows::Globalization::DateTimeFormatting::DayFormat dayFormat, Windows::Globalization::DateTimeFormatting::DayOfWeekFormat dayOfWeekFormat, Windows::Globalization::DateTimeFormatting::HourFormat hourFormat, Windows::Globalization::DateTimeFormatting::MinuteFormat minuteFormat, Windows::Globalization::DateTimeFormatting::SecondFormat secondFormat, const Windows::Foundation::Collections::IIterable & languages) const -{ - Windows::Globalization::DateTimeFormatting::DateTimeFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDateTimeFormatterDateTimeLanguages(yearFormat, monthFormat, dayFormat, dayOfWeekFormat, hourFormat, minuteFormat, secondFormat, get(languages), put(result))); - return result; -} - -template Windows::Globalization::DateTimeFormatting::DateTimeFormatter impl_IDateTimeFormatterFactory::CreateDateTimeFormatterDateTimeContext(Windows::Globalization::DateTimeFormatting::YearFormat yearFormat, Windows::Globalization::DateTimeFormatting::MonthFormat monthFormat, Windows::Globalization::DateTimeFormatting::DayFormat dayFormat, Windows::Globalization::DateTimeFormatting::DayOfWeekFormat dayOfWeekFormat, Windows::Globalization::DateTimeFormatting::HourFormat hourFormat, Windows::Globalization::DateTimeFormatting::MinuteFormat minuteFormat, Windows::Globalization::DateTimeFormatting::SecondFormat secondFormat, const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion, hstring_ref calendar, hstring_ref clock) const -{ - Windows::Globalization::DateTimeFormatting::DateTimeFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDateTimeFormatterDateTimeContext(yearFormat, monthFormat, dayFormat, dayOfWeekFormat, hourFormat, minuteFormat, secondFormat, get(languages), get(geographicRegion), get(calendar), get(clock), put(result))); - return result; -} - -template Windows::Globalization::DateTimeFormatting::DateTimeFormatter impl_IDateTimeFormatterStatics::LongDate() const -{ - Windows::Globalization::DateTimeFormatting::DateTimeFormatter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LongDate(put(value))); - return value; -} - -template Windows::Globalization::DateTimeFormatting::DateTimeFormatter impl_IDateTimeFormatterStatics::LongTime() const -{ - Windows::Globalization::DateTimeFormatting::DateTimeFormatter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LongTime(put(value))); - return value; -} - -template Windows::Globalization::DateTimeFormatting::DateTimeFormatter impl_IDateTimeFormatterStatics::ShortDate() const -{ - Windows::Globalization::DateTimeFormatting::DateTimeFormatter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ShortDate(put(value))); - return value; -} - -template Windows::Globalization::DateTimeFormatting::DateTimeFormatter impl_IDateTimeFormatterStatics::ShortTime() const -{ - Windows::Globalization::DateTimeFormatting::DateTimeFormatter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ShortTime(put(value))); - return value; -} - -template hstring impl_IDateTimeFormatter2::Format(const Windows::Foundation::DateTime & datetime, hstring_ref timeZoneId) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_FormatUsingTimeZone(get(datetime), get(timeZoneId), put(result))); - return result; -} - -inline DateTimeFormatter::DateTimeFormatter(hstring_ref formatTemplate) : - DateTimeFormatter(get_activation_factory().CreateDateTimeFormatter(formatTemplate)) -{} - -inline DateTimeFormatter::DateTimeFormatter(hstring_ref formatTemplate, const Windows::Foundation::Collections::IIterable & languages) : - DateTimeFormatter(get_activation_factory().CreateDateTimeFormatterLanguages(formatTemplate, languages)) -{} - -inline DateTimeFormatter::DateTimeFormatter(hstring_ref formatTemplate, const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion, hstring_ref calendar, hstring_ref clock) : - DateTimeFormatter(get_activation_factory().CreateDateTimeFormatterContext(formatTemplate, languages, geographicRegion, calendar, clock)) -{} - -inline DateTimeFormatter::DateTimeFormatter(Windows::Globalization::DateTimeFormatting::YearFormat yearFormat, Windows::Globalization::DateTimeFormatting::MonthFormat monthFormat, Windows::Globalization::DateTimeFormatting::DayFormat dayFormat, Windows::Globalization::DateTimeFormatting::DayOfWeekFormat dayOfWeekFormat) : - DateTimeFormatter(get_activation_factory().CreateDateTimeFormatterDate(yearFormat, monthFormat, dayFormat, dayOfWeekFormat)) -{} - -inline DateTimeFormatter::DateTimeFormatter(Windows::Globalization::DateTimeFormatting::HourFormat hourFormat, Windows::Globalization::DateTimeFormatting::MinuteFormat minuteFormat, Windows::Globalization::DateTimeFormatting::SecondFormat secondFormat) : - DateTimeFormatter(get_activation_factory().CreateDateTimeFormatterTime(hourFormat, minuteFormat, secondFormat)) -{} - -inline DateTimeFormatter::DateTimeFormatter(Windows::Globalization::DateTimeFormatting::YearFormat yearFormat, Windows::Globalization::DateTimeFormatting::MonthFormat monthFormat, Windows::Globalization::DateTimeFormatting::DayFormat dayFormat, Windows::Globalization::DateTimeFormatting::DayOfWeekFormat dayOfWeekFormat, Windows::Globalization::DateTimeFormatting::HourFormat hourFormat, Windows::Globalization::DateTimeFormatting::MinuteFormat minuteFormat, Windows::Globalization::DateTimeFormatting::SecondFormat secondFormat, const Windows::Foundation::Collections::IIterable & languages) : - DateTimeFormatter(get_activation_factory().CreateDateTimeFormatterDateTimeLanguages(yearFormat, monthFormat, dayFormat, dayOfWeekFormat, hourFormat, minuteFormat, secondFormat, languages)) -{} - -inline DateTimeFormatter::DateTimeFormatter(Windows::Globalization::DateTimeFormatting::YearFormat yearFormat, Windows::Globalization::DateTimeFormatting::MonthFormat monthFormat, Windows::Globalization::DateTimeFormatting::DayFormat dayFormat, Windows::Globalization::DateTimeFormatting::DayOfWeekFormat dayOfWeekFormat, Windows::Globalization::DateTimeFormatting::HourFormat hourFormat, Windows::Globalization::DateTimeFormatting::MinuteFormat minuteFormat, Windows::Globalization::DateTimeFormatting::SecondFormat secondFormat, const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion, hstring_ref calendar, hstring_ref clock) : - DateTimeFormatter(get_activation_factory().CreateDateTimeFormatterDateTimeContext(yearFormat, monthFormat, dayFormat, dayOfWeekFormat, hourFormat, minuteFormat, secondFormat, languages, geographicRegion, calendar, clock)) -{} - -inline Windows::Globalization::DateTimeFormatting::DateTimeFormatter DateTimeFormatter::LongDate() -{ - return get_activation_factory().LongDate(); -} - -inline Windows::Globalization::DateTimeFormatting::DateTimeFormatter DateTimeFormatter::LongTime() -{ - return get_activation_factory().LongTime(); -} - -inline Windows::Globalization::DateTimeFormatting::DateTimeFormatter DateTimeFormatter::ShortDate() -{ - return get_activation_factory().ShortDate(); -} - -inline Windows::Globalization::DateTimeFormatting::DateTimeFormatter DateTimeFormatter::ShortTime() -{ - return get_activation_factory().ShortTime(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Globalization.Fonts.h b/10.0.14393.0/winrt/Windows.Globalization.Fonts.h deleted file mode 100644 index 888701edd..000000000 --- a/10.0.14393.0/winrt/Windows.Globalization.Fonts.h +++ /dev/null @@ -1,389 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.Text.3.h" -#include "internal/Windows.Globalization.Fonts.3.h" -#include "Windows.Globalization.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FontFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeight(abi_arg_out weight) noexcept override - { - try - { - *weight = detach(this->shim().FontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStretch(Windows::UI::Text::FontStretch * stretch) noexcept override - { - try - { - *stretch = detach(this->shim().FontStretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyle(Windows::UI::Text::FontStyle * style) noexcept override - { - try - { - *style = detach(this->shim().FontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScaleFactor(double * scale) noexcept override - { - try - { - *scale = detach(this->shim().ScaleFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UITextFont(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UITextFont()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UIHeadingFont(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UIHeadingFont()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UITitleFont(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UITitleFont()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UICaptionFont(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UICaptionFont()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UINotificationHeadingFont(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UINotificationHeadingFont()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TraditionalDocumentFont(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TraditionalDocumentFont()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModernDocumentFont(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ModernDocumentFont()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DocumentHeadingFont(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DocumentHeadingFont()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FixedWidthTextFont(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FixedWidthTextFont()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DocumentAlternate1Font(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DocumentAlternate1Font()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DocumentAlternate2Font(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DocumentAlternate2Font()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateLanguageFontGroup(abi_arg_in languageTag, abi_arg_out recommendedFonts) noexcept override - { - try - { - *recommendedFonts = detach(this->shim().CreateLanguageFontGroup(*reinterpret_cast(&languageTag))); - return S_OK; - } - catch (...) - { - *recommendedFonts = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Globalization::Fonts { - -template Windows::Globalization::Fonts::LanguageFont impl_ILanguageFontGroup::UITextFont() const -{ - Windows::Globalization::Fonts::LanguageFont value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UITextFont(put(value))); - return value; -} - -template Windows::Globalization::Fonts::LanguageFont impl_ILanguageFontGroup::UIHeadingFont() const -{ - Windows::Globalization::Fonts::LanguageFont value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UIHeadingFont(put(value))); - return value; -} - -template Windows::Globalization::Fonts::LanguageFont impl_ILanguageFontGroup::UITitleFont() const -{ - Windows::Globalization::Fonts::LanguageFont value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UITitleFont(put(value))); - return value; -} - -template Windows::Globalization::Fonts::LanguageFont impl_ILanguageFontGroup::UICaptionFont() const -{ - Windows::Globalization::Fonts::LanguageFont value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UICaptionFont(put(value))); - return value; -} - -template Windows::Globalization::Fonts::LanguageFont impl_ILanguageFontGroup::UINotificationHeadingFont() const -{ - Windows::Globalization::Fonts::LanguageFont value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UINotificationHeadingFont(put(value))); - return value; -} - -template Windows::Globalization::Fonts::LanguageFont impl_ILanguageFontGroup::TraditionalDocumentFont() const -{ - Windows::Globalization::Fonts::LanguageFont value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TraditionalDocumentFont(put(value))); - return value; -} - -template Windows::Globalization::Fonts::LanguageFont impl_ILanguageFontGroup::ModernDocumentFont() const -{ - Windows::Globalization::Fonts::LanguageFont value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ModernDocumentFont(put(value))); - return value; -} - -template Windows::Globalization::Fonts::LanguageFont impl_ILanguageFontGroup::DocumentHeadingFont() const -{ - Windows::Globalization::Fonts::LanguageFont value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DocumentHeadingFont(put(value))); - return value; -} - -template Windows::Globalization::Fonts::LanguageFont impl_ILanguageFontGroup::FixedWidthTextFont() const -{ - Windows::Globalization::Fonts::LanguageFont value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FixedWidthTextFont(put(value))); - return value; -} - -template Windows::Globalization::Fonts::LanguageFont impl_ILanguageFontGroup::DocumentAlternate1Font() const -{ - Windows::Globalization::Fonts::LanguageFont value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DocumentAlternate1Font(put(value))); - return value; -} - -template Windows::Globalization::Fonts::LanguageFont impl_ILanguageFontGroup::DocumentAlternate2Font() const -{ - Windows::Globalization::Fonts::LanguageFont value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DocumentAlternate2Font(put(value))); - return value; -} - -template Windows::Globalization::Fonts::LanguageFontGroup impl_ILanguageFontGroupFactory::CreateLanguageFontGroup(hstring_ref languageTag) const -{ - Windows::Globalization::Fonts::LanguageFontGroup recommendedFonts { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateLanguageFontGroup(get(languageTag), put(recommendedFonts))); - return recommendedFonts; -} - -template hstring impl_ILanguageFont::FontFamily() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FontFamily(put(value))); - return value; -} - -template Windows::UI::Text::FontWeight impl_ILanguageFont::FontWeight() const -{ - Windows::UI::Text::FontWeight weight {}; - check_hresult(static_cast(static_cast(*this))->get_FontWeight(put(weight))); - return weight; -} - -template Windows::UI::Text::FontStretch impl_ILanguageFont::FontStretch() const -{ - Windows::UI::Text::FontStretch stretch {}; - check_hresult(static_cast(static_cast(*this))->get_FontStretch(&stretch)); - return stretch; -} - -template Windows::UI::Text::FontStyle impl_ILanguageFont::FontStyle() const -{ - Windows::UI::Text::FontStyle style {}; - check_hresult(static_cast(static_cast(*this))->get_FontStyle(&style)); - return style; -} - -template double impl_ILanguageFont::ScaleFactor() const -{ - double scale {}; - check_hresult(static_cast(static_cast(*this))->get_ScaleFactor(&scale)); - return scale; -} - -inline LanguageFontGroup::LanguageFontGroup(hstring_ref languageTag) : - LanguageFontGroup(get_activation_factory().CreateLanguageFontGroup(languageTag)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Globalization.NumberFormatting.h b/10.0.14393.0/winrt/Windows.Globalization.NumberFormatting.h deleted file mode 100644 index bfa7d1e73..000000000 --- a/10.0.14393.0/winrt/Windows.Globalization.NumberFormatting.h +++ /dev/null @@ -1,1315 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Globalization.NumberFormatting.3.h" -#include "Windows.Globalization.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Currency(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Currency()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Currency(abi_arg_in value) noexcept override - { - try - { - this->shim().Currency(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Mode(Windows::Globalization::NumberFormatting::CurrencyFormatterMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::Globalization::NumberFormatting::CurrencyFormatterMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ApplyRoundingForCurrency(Windows::Globalization::NumberFormatting::RoundingAlgorithm roundingAlgorithm) noexcept override - { - try - { - this->shim().ApplyRoundingForCurrency(roundingAlgorithm); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCurrencyFormatterCode(abi_arg_in currencyCode, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateCurrencyFormatterCode(*reinterpret_cast(¤cyCode))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCurrencyFormatterCodeContext(abi_arg_in currencyCode, abi_arg_in> languages, abi_arg_in geographicRegion, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateCurrencyFormatterCodeContext(*reinterpret_cast(¤cyCode), *reinterpret_cast *>(&languages), *reinterpret_cast(&geographicRegion))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateDecimalFormatter(abi_arg_in> languages, abi_arg_in geographicRegion, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateDecimalFormatter(*reinterpret_cast *>(&languages), *reinterpret_cast(&geographicRegion))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RoundingAlgorithm(Windows::Globalization::NumberFormatting::RoundingAlgorithm * value) noexcept override - { - try - { - *value = detach(this->shim().RoundingAlgorithm()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RoundingAlgorithm(Windows::Globalization::NumberFormatting::RoundingAlgorithm value) noexcept override - { - try - { - this->shim().RoundingAlgorithm(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Increment(double * value) noexcept override - { - try - { - *value = detach(this->shim().Increment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Increment(double value) noexcept override - { - try - { - this->shim().Increment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FormatInt(int64_t value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Format(value)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FormatUInt(uint64_t value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Format(value)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FormatDouble(double value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Format(value)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FormatInt(int64_t value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().FormatInt(value)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FormatUInt(uint64_t value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().FormatUInt(value)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FormatDouble(double value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().FormatDouble(value)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Languages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Languages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GeographicRegion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GeographicRegion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IntegerDigits(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IntegerDigits()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IntegerDigits(int32_t value) noexcept override - { - try - { - this->shim().IntegerDigits(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FractionDigits(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FractionDigits()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FractionDigits(int32_t value) noexcept override - { - try - { - this->shim().FractionDigits(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGrouped(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGrouped()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsGrouped(bool value) noexcept override - { - try - { - this->shim().IsGrouped(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDecimalPointAlwaysDisplayed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDecimalPointAlwaysDisplayed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDecimalPointAlwaysDisplayed(bool value) noexcept override - { - try - { - this->shim().IsDecimalPointAlwaysDisplayed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumeralSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NumeralSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NumeralSystem(abi_arg_in value) noexcept override - { - try - { - this->shim().NumeralSystem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResolvedLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResolvedLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResolvedGeographicRegion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResolvedGeographicRegion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ParseInt(abi_arg_in text, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ParseInt(*reinterpret_cast(&text))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ParseUInt(abi_arg_in text, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ParseUInt(*reinterpret_cast(&text))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ParseDouble(abi_arg_in text, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ParseDouble(*reinterpret_cast(&text))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RoundInt32(int32_t value, int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().RoundInt32(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RoundUInt32(uint32_t value, uint32_t * result) noexcept override - { - try - { - *result = detach(this->shim().RoundUInt32(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RoundInt64(int64_t value, int64_t * result) noexcept override - { - try - { - *result = detach(this->shim().RoundInt64(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RoundUInt64(uint64_t value, uint64_t * result) noexcept override - { - try - { - *result = detach(this->shim().RoundUInt64(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RoundSingle(float value, float * result) noexcept override - { - try - { - *result = detach(this->shim().RoundSingle(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RoundDouble(double value, double * result) noexcept override - { - try - { - *result = detach(this->shim().RoundDouble(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NumberRounder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NumberRounder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NumberRounder(abi_arg_in value) noexcept override - { - try - { - this->shim().NumberRounder(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Languages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Languages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResolvedLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResolvedLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumeralSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NumeralSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NumeralSystem(abi_arg_in value) noexcept override - { - try - { - this->shim().NumeralSystem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TranslateNumerals(abi_arg_in value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TranslateNumerals(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in> languages, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast *>(&languages))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreatePercentFormatter(abi_arg_in> languages, abi_arg_in geographicRegion, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreatePercentFormatter(*reinterpret_cast *>(&languages), *reinterpret_cast(&geographicRegion))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreatePermilleFormatter(abi_arg_in> languages, abi_arg_in geographicRegion, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreatePermilleFormatter(*reinterpret_cast *>(&languages), *reinterpret_cast(&geographicRegion))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsZeroSigned(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsZeroSigned()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsZeroSigned(bool value) noexcept override - { - try - { - this->shim().IsZeroSigned(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RoundingAlgorithm(Windows::Globalization::NumberFormatting::RoundingAlgorithm * value) noexcept override - { - try - { - *value = detach(this->shim().RoundingAlgorithm()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RoundingAlgorithm(Windows::Globalization::NumberFormatting::RoundingAlgorithm value) noexcept override - { - try - { - this->shim().RoundingAlgorithm(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SignificantDigits(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SignificantDigits()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SignificantDigits(uint32_t value) noexcept override - { - try - { - this->shim().SignificantDigits(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SignificantDigits(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SignificantDigits()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SignificantDigits(int32_t value) noexcept override - { - try - { - this->shim().SignificantDigits(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Globalization::NumberFormatting { - -template int32_t impl_INumberRounder::RoundInt32(int32_t value) const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_RoundInt32(value, &result)); - return result; -} - -template uint32_t impl_INumberRounder::RoundUInt32(uint32_t value) const -{ - uint32_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_RoundUInt32(value, &result)); - return result; -} - -template int64_t impl_INumberRounder::RoundInt64(int64_t value) const -{ - int64_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_RoundInt64(value, &result)); - return result; -} - -template uint64_t impl_INumberRounder::RoundUInt64(uint64_t value) const -{ - uint64_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_RoundUInt64(value, &result)); - return result; -} - -template float impl_INumberRounder::RoundSingle(float value) const -{ - float result {}; - check_hresult(static_cast(static_cast(*this))->abi_RoundSingle(value, &result)); - return result; -} - -template double impl_INumberRounder::RoundDouble(double value) const -{ - double result {}; - check_hresult(static_cast(static_cast(*this))->abi_RoundDouble(value, &result)); - return result; -} - -template Windows::Globalization::NumberFormatting::RoundingAlgorithm impl_ISignificantDigitsNumberRounder::RoundingAlgorithm() const -{ - Windows::Globalization::NumberFormatting::RoundingAlgorithm value {}; - check_hresult(static_cast(static_cast(*this))->get_RoundingAlgorithm(&value)); - return value; -} - -template void impl_ISignificantDigitsNumberRounder::RoundingAlgorithm(Windows::Globalization::NumberFormatting::RoundingAlgorithm value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RoundingAlgorithm(value)); -} - -template uint32_t impl_ISignificantDigitsNumberRounder::SignificantDigits() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SignificantDigits(&value)); - return value; -} - -template void impl_ISignificantDigitsNumberRounder::SignificantDigits(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SignificantDigits(value)); -} - -template Windows::Globalization::NumberFormatting::RoundingAlgorithm impl_IIncrementNumberRounder::RoundingAlgorithm() const -{ - Windows::Globalization::NumberFormatting::RoundingAlgorithm value {}; - check_hresult(static_cast(static_cast(*this))->get_RoundingAlgorithm(&value)); - return value; -} - -template void impl_IIncrementNumberRounder::RoundingAlgorithm(Windows::Globalization::NumberFormatting::RoundingAlgorithm value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RoundingAlgorithm(value)); -} - -template double impl_IIncrementNumberRounder::Increment() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Increment(&value)); - return value; -} - -template void impl_IIncrementNumberRounder::Increment(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Increment(value)); -} - -template hstring impl_INumberFormatter::Format(int64_t value) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_FormatInt(value, put(result))); - return result; -} - -template hstring impl_INumberFormatter::Format(uint64_t value) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_FormatUInt(value, put(result))); - return result; -} - -template hstring impl_INumberFormatter::Format(double value) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_FormatDouble(value, put(result))); - return result; -} - -template hstring impl_INumberFormatter2::FormatInt(int64_t value) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_FormatInt(value, put(result))); - return result; -} - -template hstring impl_INumberFormatter2::FormatUInt(uint64_t value) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_FormatUInt(value, put(result))); - return result; -} - -template hstring impl_INumberFormatter2::FormatDouble(double value) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_FormatDouble(value, put(result))); - return result; -} - -template Windows::Foundation::IReference impl_INumberParser::ParseInt(hstring_ref text) const -{ - Windows::Foundation::IReference result; - check_hresult(static_cast(static_cast(*this))->abi_ParseInt(get(text), put(result))); - return result; -} - -template Windows::Foundation::IReference impl_INumberParser::ParseUInt(hstring_ref text) const -{ - Windows::Foundation::IReference result; - check_hresult(static_cast(static_cast(*this))->abi_ParseUInt(get(text), put(result))); - return result; -} - -template Windows::Foundation::IReference impl_INumberParser::ParseDouble(hstring_ref text) const -{ - Windows::Foundation::IReference result; - check_hresult(static_cast(static_cast(*this))->abi_ParseDouble(get(text), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_INumberFormatterOptions::Languages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Languages(put(value))); - return value; -} - -template hstring impl_INumberFormatterOptions::GeographicRegion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GeographicRegion(put(value))); - return value; -} - -template int32_t impl_INumberFormatterOptions::IntegerDigits() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IntegerDigits(&value)); - return value; -} - -template void impl_INumberFormatterOptions::IntegerDigits(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IntegerDigits(value)); -} - -template int32_t impl_INumberFormatterOptions::FractionDigits() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FractionDigits(&value)); - return value; -} - -template void impl_INumberFormatterOptions::FractionDigits(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FractionDigits(value)); -} - -template bool impl_INumberFormatterOptions::IsGrouped() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsGrouped(&value)); - return value; -} - -template void impl_INumberFormatterOptions::IsGrouped(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsGrouped(value)); -} - -template bool impl_INumberFormatterOptions::IsDecimalPointAlwaysDisplayed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDecimalPointAlwaysDisplayed(&value)); - return value; -} - -template void impl_INumberFormatterOptions::IsDecimalPointAlwaysDisplayed(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDecimalPointAlwaysDisplayed(value)); -} - -template hstring impl_INumberFormatterOptions::NumeralSystem() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NumeralSystem(put(value))); - return value; -} - -template void impl_INumberFormatterOptions::NumeralSystem(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NumeralSystem(get(value))); -} - -template hstring impl_INumberFormatterOptions::ResolvedLanguage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResolvedLanguage(put(value))); - return value; -} - -template hstring impl_INumberFormatterOptions::ResolvedGeographicRegion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResolvedGeographicRegion(put(value))); - return value; -} - -template int32_t impl_ISignificantDigitsOption::SignificantDigits() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SignificantDigits(&value)); - return value; -} - -template void impl_ISignificantDigitsOption::SignificantDigits(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SignificantDigits(value)); -} - -template Windows::Globalization::NumberFormatting::INumberRounder impl_INumberRounderOption::NumberRounder() const -{ - Windows::Globalization::NumberFormatting::INumberRounder value; - check_hresult(static_cast(static_cast(*this))->get_NumberRounder(put(value))); - return value; -} - -template void impl_INumberRounderOption::NumberRounder(const Windows::Globalization::NumberFormatting::INumberRounder & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NumberRounder(get(value))); -} - -template bool impl_ISignedZeroOption::IsZeroSigned() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsZeroSigned(&value)); - return value; -} - -template void impl_ISignedZeroOption::IsZeroSigned(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsZeroSigned(value)); -} - -template Windows::Globalization::NumberFormatting::DecimalFormatter impl_IDecimalFormatterFactory::CreateDecimalFormatter(const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion) const -{ - Windows::Globalization::NumberFormatting::DecimalFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDecimalFormatter(get(languages), get(geographicRegion), put(result))); - return result; -} - -template Windows::Globalization::NumberFormatting::PercentFormatter impl_IPercentFormatterFactory::CreatePercentFormatter(const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion) const -{ - Windows::Globalization::NumberFormatting::PercentFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePercentFormatter(get(languages), get(geographicRegion), put(result))); - return result; -} - -template Windows::Globalization::NumberFormatting::PermilleFormatter impl_IPermilleFormatterFactory::CreatePermilleFormatter(const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion) const -{ - Windows::Globalization::NumberFormatting::PermilleFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePermilleFormatter(get(languages), get(geographicRegion), put(result))); - return result; -} - -template Windows::Globalization::NumberFormatting::CurrencyFormatter impl_ICurrencyFormatterFactory::CreateCurrencyFormatterCode(hstring_ref currencyCode) const -{ - Windows::Globalization::NumberFormatting::CurrencyFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCurrencyFormatterCode(get(currencyCode), put(result))); - return result; -} - -template Windows::Globalization::NumberFormatting::CurrencyFormatter impl_ICurrencyFormatterFactory::CreateCurrencyFormatterCodeContext(hstring_ref currencyCode, const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion) const -{ - Windows::Globalization::NumberFormatting::CurrencyFormatter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCurrencyFormatterCodeContext(get(currencyCode), get(languages), get(geographicRegion), put(result))); - return result; -} - -template hstring impl_ICurrencyFormatter::Currency() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Currency(put(value))); - return value; -} - -template void impl_ICurrencyFormatter::Currency(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Currency(get(value))); -} - -template Windows::Globalization::NumberFormatting::CurrencyFormatterMode impl_ICurrencyFormatter2::Mode() const -{ - Windows::Globalization::NumberFormatting::CurrencyFormatterMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_ICurrencyFormatter2::Mode(Windows::Globalization::NumberFormatting::CurrencyFormatterMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template void impl_ICurrencyFormatter2::ApplyRoundingForCurrency(Windows::Globalization::NumberFormatting::RoundingAlgorithm roundingAlgorithm) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ApplyRoundingForCurrency(roundingAlgorithm)); -} - -template Windows::Globalization::NumberFormatting::NumeralSystemTranslator impl_INumeralSystemTranslatorFactory::Create(const Windows::Foundation::Collections::IIterable & languages) const -{ - Windows::Globalization::NumberFormatting::NumeralSystemTranslator result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(languages), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_INumeralSystemTranslator::Languages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Languages(put(value))); - return value; -} - -template hstring impl_INumeralSystemTranslator::ResolvedLanguage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResolvedLanguage(put(value))); - return value; -} - -template hstring impl_INumeralSystemTranslator::NumeralSystem() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NumeralSystem(put(value))); - return value; -} - -template void impl_INumeralSystemTranslator::NumeralSystem(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NumeralSystem(get(value))); -} - -template hstring impl_INumeralSystemTranslator::TranslateNumerals(hstring_ref value) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_TranslateNumerals(get(value), put(result))); - return result; -} - -inline CurrencyFormatter::CurrencyFormatter(hstring_ref currencyCode) : - CurrencyFormatter(get_activation_factory().CreateCurrencyFormatterCode(currencyCode)) -{} - -inline CurrencyFormatter::CurrencyFormatter(hstring_ref currencyCode, const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion) : - CurrencyFormatter(get_activation_factory().CreateCurrencyFormatterCodeContext(currencyCode, languages, geographicRegion)) -{} - -inline DecimalFormatter::DecimalFormatter() : - DecimalFormatter(activate_instance()) -{} - -inline DecimalFormatter::DecimalFormatter(const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion) : - DecimalFormatter(get_activation_factory().CreateDecimalFormatter(languages, geographicRegion)) -{} - -inline IncrementNumberRounder::IncrementNumberRounder() : - IncrementNumberRounder(activate_instance()) -{} - -inline NumeralSystemTranslator::NumeralSystemTranslator() : - NumeralSystemTranslator(activate_instance()) -{} - -inline NumeralSystemTranslator::NumeralSystemTranslator(const Windows::Foundation::Collections::IIterable & languages) : - NumeralSystemTranslator(get_activation_factory().Create(languages)) -{} - -inline PercentFormatter::PercentFormatter() : - PercentFormatter(activate_instance()) -{} - -inline PercentFormatter::PercentFormatter(const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion) : - PercentFormatter(get_activation_factory().CreatePercentFormatter(languages, geographicRegion)) -{} - -inline PermilleFormatter::PermilleFormatter() : - PermilleFormatter(activate_instance()) -{} - -inline PermilleFormatter::PermilleFormatter(const Windows::Foundation::Collections::IIterable & languages, hstring_ref geographicRegion) : - PermilleFormatter(get_activation_factory().CreatePermilleFormatter(languages, geographicRegion)) -{} - -inline SignificantDigitsNumberRounder::SignificantDigitsNumberRounder() : - SignificantDigitsNumberRounder(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Globalization.PhoneNumberFormatting.h b/10.0.14393.0/winrt/Windows.Globalization.PhoneNumberFormatting.h deleted file mode 100644 index b586bdbce..000000000 --- a/10.0.14393.0/winrt/Windows.Globalization.PhoneNumberFormatting.h +++ /dev/null @@ -1,490 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Globalization.PhoneNumberFormatting.3.h" -#include "Windows.Globalization.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Format(abi_arg_in number, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Format(*reinterpret_cast(&number))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FormatWithOutputFormat(abi_arg_in number, Windows::Globalization::PhoneNumberFormatting::PhoneNumberFormat numberFormat, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Format(*reinterpret_cast(&number), numberFormat)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FormatPartialString(abi_arg_in number, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().FormatPartialString(*reinterpret_cast(&number))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FormatString(abi_arg_in number, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().FormatString(*reinterpret_cast(&number))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FormatStringWithLeftToRightMarkers(abi_arg_in number, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().FormatStringWithLeftToRightMarkers(*reinterpret_cast(&number))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryCreate(abi_arg_in regionCode, abi_arg_out phoneNumber) noexcept override - { - try - { - this->shim().TryCreate(*reinterpret_cast(®ionCode), *phoneNumber); - return S_OK; - } - catch (...) - { - *phoneNumber = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCountryCodeForRegion(abi_arg_in regionCode, int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().GetCountryCodeForRegion(*reinterpret_cast(®ionCode))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNationalDirectDialingPrefixForRegion(abi_arg_in regionCode, bool stripNonDigit, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetNationalDirectDialingPrefixForRegion(*reinterpret_cast(®ionCode), stripNonDigit)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WrapWithLeftToRightMarkers(abi_arg_in number, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().WrapWithLeftToRightMarkers(*reinterpret_cast(&number))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CountryCode(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CountryCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhoneNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLengthOfGeographicalAreaCode(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().GetLengthOfGeographicalAreaCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNationalSignificantNumber(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetNationalSignificantNumber()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLengthOfNationalDestinationCode(int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().GetLengthOfNationalDestinationCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PredictNumberKind(Windows::Globalization::PhoneNumberFormatting::PredictedPhoneNumberKind * result) noexcept override - { - try - { - *result = detach(this->shim().PredictNumberKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGeographicRegionCode(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetGeographicRegionCode()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckNumberMatch(abi_arg_in otherNumber, Windows::Globalization::PhoneNumberFormatting::PhoneNumberMatchResult * result) noexcept override - { - try - { - *result = detach(this->shim().CheckNumberMatch(*reinterpret_cast(&otherNumber))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in number, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&number))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryParse(abi_arg_in input, abi_arg_out phoneNumber, Windows::Globalization::PhoneNumberFormatting::PhoneNumberParseResult * result) noexcept override - { - try - { - *result = detach(this->shim().TryParse(*reinterpret_cast(&input), *phoneNumber)); - return S_OK; - } - catch (...) - { - *phoneNumber = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryParseWithRegion(abi_arg_in input, abi_arg_in regionCode, abi_arg_out phoneNumber, Windows::Globalization::PhoneNumberFormatting::PhoneNumberParseResult * result) noexcept override - { - try - { - *result = detach(this->shim().TryParse(*reinterpret_cast(&input), *reinterpret_cast(®ionCode), *phoneNumber)); - return S_OK; - } - catch (...) - { - *phoneNumber = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Globalization::PhoneNumberFormatting { - -template int32_t impl_IPhoneNumberInfo::CountryCode() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CountryCode(&value)); - return value; -} - -template hstring impl_IPhoneNumberInfo::PhoneNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PhoneNumber(put(value))); - return value; -} - -template int32_t impl_IPhoneNumberInfo::GetLengthOfGeographicalAreaCode() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLengthOfGeographicalAreaCode(&result)); - return result; -} - -template hstring impl_IPhoneNumberInfo::GetNationalSignificantNumber() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_GetNationalSignificantNumber(put(result))); - return result; -} - -template int32_t impl_IPhoneNumberInfo::GetLengthOfNationalDestinationCode() const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLengthOfNationalDestinationCode(&result)); - return result; -} - -template Windows::Globalization::PhoneNumberFormatting::PredictedPhoneNumberKind impl_IPhoneNumberInfo::PredictNumberKind() const -{ - Windows::Globalization::PhoneNumberFormatting::PredictedPhoneNumberKind result {}; - check_hresult(static_cast(static_cast(*this))->abi_PredictNumberKind(&result)); - return result; -} - -template hstring impl_IPhoneNumberInfo::GetGeographicRegionCode() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_GetGeographicRegionCode(put(result))); - return result; -} - -template Windows::Globalization::PhoneNumberFormatting::PhoneNumberMatchResult impl_IPhoneNumberInfo::CheckNumberMatch(const Windows::Globalization::PhoneNumberFormatting::PhoneNumberInfo & otherNumber) const -{ - Windows::Globalization::PhoneNumberFormatting::PhoneNumberMatchResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_CheckNumberMatch(get(otherNumber), &result)); - return result; -} - -template hstring impl_IPhoneNumberFormatter::Format(const Windows::Globalization::PhoneNumberFormatting::PhoneNumberInfo & number) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_Format(get(number), put(result))); - return result; -} - -template hstring impl_IPhoneNumberFormatter::Format(const Windows::Globalization::PhoneNumberFormatting::PhoneNumberInfo & number, Windows::Globalization::PhoneNumberFormatting::PhoneNumberFormat numberFormat) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_FormatWithOutputFormat(get(number), numberFormat, put(result))); - return result; -} - -template hstring impl_IPhoneNumberFormatter::FormatPartialString(hstring_ref number) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_FormatPartialString(get(number), put(result))); - return result; -} - -template hstring impl_IPhoneNumberFormatter::FormatString(hstring_ref number) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_FormatString(get(number), put(result))); - return result; -} - -template hstring impl_IPhoneNumberFormatter::FormatStringWithLeftToRightMarkers(hstring_ref number) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_FormatStringWithLeftToRightMarkers(get(number), put(result))); - return result; -} - -template Windows::Globalization::PhoneNumberFormatting::PhoneNumberInfo impl_IPhoneNumberInfoFactory::Create(hstring_ref number) const -{ - Windows::Globalization::PhoneNumberFormatting::PhoneNumberInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(number), put(result))); - return result; -} - -template Windows::Globalization::PhoneNumberFormatting::PhoneNumberParseResult impl_IPhoneNumberInfoStatics::TryParse(hstring_ref input, Windows::Globalization::PhoneNumberFormatting::PhoneNumberInfo & phoneNumber) const -{ - Windows::Globalization::PhoneNumberFormatting::PhoneNumberParseResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryParse(get(input), put(phoneNumber), &result)); - return result; -} - -template Windows::Globalization::PhoneNumberFormatting::PhoneNumberParseResult impl_IPhoneNumberInfoStatics::TryParse(hstring_ref input, hstring_ref regionCode, Windows::Globalization::PhoneNumberFormatting::PhoneNumberInfo & phoneNumber) const -{ - Windows::Globalization::PhoneNumberFormatting::PhoneNumberParseResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryParseWithRegion(get(input), get(regionCode), put(phoneNumber), &result)); - return result; -} - -template void impl_IPhoneNumberFormatterStatics::TryCreate(hstring_ref regionCode, Windows::Globalization::PhoneNumberFormatting::PhoneNumberFormatter & phoneNumber) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TryCreate(get(regionCode), put(phoneNumber))); -} - -template int32_t impl_IPhoneNumberFormatterStatics::GetCountryCodeForRegion(hstring_ref regionCode) const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_GetCountryCodeForRegion(get(regionCode), &result)); - return result; -} - -template hstring impl_IPhoneNumberFormatterStatics::GetNationalDirectDialingPrefixForRegion(hstring_ref regionCode, bool stripNonDigit) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_GetNationalDirectDialingPrefixForRegion(get(regionCode), stripNonDigit, put(result))); - return result; -} - -template hstring impl_IPhoneNumberFormatterStatics::WrapWithLeftToRightMarkers(hstring_ref number) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_WrapWithLeftToRightMarkers(get(number), put(result))); - return result; -} - -inline PhoneNumberFormatter::PhoneNumberFormatter() : - PhoneNumberFormatter(activate_instance()) -{} - -inline void PhoneNumberFormatter::TryCreate(hstring_ref regionCode, Windows::Globalization::PhoneNumberFormatting::PhoneNumberFormatter & phoneNumber) -{ - get_activation_factory().TryCreate(regionCode, phoneNumber); -} - -inline int32_t PhoneNumberFormatter::GetCountryCodeForRegion(hstring_ref regionCode) -{ - return get_activation_factory().GetCountryCodeForRegion(regionCode); -} - -inline hstring PhoneNumberFormatter::GetNationalDirectDialingPrefixForRegion(hstring_ref regionCode, bool stripNonDigit) -{ - return get_activation_factory().GetNationalDirectDialingPrefixForRegion(regionCode, stripNonDigit); -} - -inline hstring PhoneNumberFormatter::WrapWithLeftToRightMarkers(hstring_ref number) -{ - return get_activation_factory().WrapWithLeftToRightMarkers(number); -} - -inline PhoneNumberInfo::PhoneNumberInfo(hstring_ref number) : - PhoneNumberInfo(get_activation_factory().Create(number)) -{} - -inline Windows::Globalization::PhoneNumberFormatting::PhoneNumberParseResult PhoneNumberInfo::TryParse(hstring_ref input, Windows::Globalization::PhoneNumberFormatting::PhoneNumberInfo & phoneNumber) -{ - return get_activation_factory().TryParse(input, phoneNumber); -} - -inline Windows::Globalization::PhoneNumberFormatting::PhoneNumberParseResult PhoneNumberInfo::TryParse(hstring_ref input, hstring_ref regionCode, Windows::Globalization::PhoneNumberFormatting::PhoneNumberInfo & phoneNumber) -{ - return get_activation_factory().TryParse(input, regionCode, phoneNumber); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Globalization.h b/10.0.14393.0/winrt/Windows.Globalization.h deleted file mode 100644 index 0e0aa4b5b..000000000 --- a/10.0.14393.0/winrt/Windows.Globalization.h +++ /dev/null @@ -1,8601 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Globalization.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrimaryLanguageOverride(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryLanguageOverride()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PrimaryLanguageOverride(abi_arg_in value) noexcept override - { - try - { - this->shim().PrimaryLanguageOverride(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Languages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Languages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ManifestLanguages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ManifestLanguages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Clone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Clone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetToMin() noexcept override - { - try - { - this->shim().SetToMin(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetToMax() noexcept override - { - try - { - this->shim().SetToMax(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Languages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Languages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumeralSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NumeralSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NumeralSystem(abi_arg_in value) noexcept override - { - try - { - this->shim().NumeralSystem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCalendarSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCalendarSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ChangeCalendarSystem(abi_arg_in value) noexcept override - { - try - { - this->shim().ChangeCalendarSystem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetClock(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetClock()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ChangeClock(abi_arg_in value) noexcept override - { - try - { - this->shim().ChangeClock(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDateTime(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDateTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDateTime(abi_arg_in value) noexcept override - { - try - { - this->shim().SetDateTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetToNow() noexcept override - { - try - { - this->shim().SetToNow(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstEra(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstEra()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastEra(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastEra()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfEras(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfEras()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Era(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Era()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Era(int32_t value) noexcept override - { - try - { - this->shim().Era(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddEras(int32_t eras) noexcept override - { - try - { - this->shim().AddEras(eras); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EraAsFullString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().EraAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EraAsString(int32_t idealLength, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().EraAsString(idealLength)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstYearInThisEra(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstYearInThisEra()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastYearInThisEra(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastYearInThisEra()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfYearsInThisEra(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfYearsInThisEra()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Year(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Year()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Year(int32_t value) noexcept override - { - try - { - this->shim().Year(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddYears(int32_t years) noexcept override - { - try - { - this->shim().AddYears(years); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_YearAsString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().YearAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_YearAsTruncatedString(int32_t remainingDigits, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().YearAsTruncatedString(remainingDigits)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_YearAsPaddedString(int32_t minDigits, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().YearAsPaddedString(minDigits)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstMonthInThisYear(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstMonthInThisYear()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastMonthInThisYear(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastMonthInThisYear()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfMonthsInThisYear(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfMonthsInThisYear()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Month(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Month()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Month(int32_t value) noexcept override - { - try - { - this->shim().Month(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddMonths(int32_t months) noexcept override - { - try - { - this->shim().AddMonths(months); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MonthAsFullString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MonthAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MonthAsString(int32_t idealLength, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MonthAsString(idealLength)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MonthAsFullSoloString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MonthAsSoloString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MonthAsSoloString(int32_t idealLength, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MonthAsSoloString(idealLength)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MonthAsNumericString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MonthAsNumericString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MonthAsPaddedNumericString(int32_t minDigits, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MonthAsPaddedNumericString(minDigits)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddWeeks(int32_t weeks) noexcept override - { - try - { - this->shim().AddWeeks(weeks); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstDayInThisMonth(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstDayInThisMonth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastDayInThisMonth(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastDayInThisMonth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfDaysInThisMonth(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfDaysInThisMonth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Day(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Day()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Day(int32_t value) noexcept override - { - try - { - this->shim().Day(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDays(int32_t days) noexcept override - { - try - { - this->shim().AddDays(days); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DayAsString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DayAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DayAsPaddedString(int32_t minDigits, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DayAsPaddedString(minDigits)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayOfWeek(Windows::Globalization::DayOfWeek * value) noexcept override - { - try - { - *value = detach(this->shim().DayOfWeek()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DayOfWeekAsFullString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DayOfWeekAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DayOfWeekAsString(int32_t idealLength, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DayOfWeekAsString(idealLength)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DayOfWeekAsFullSoloString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DayOfWeekAsSoloString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DayOfWeekAsSoloString(int32_t idealLength, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DayOfWeekAsSoloString(idealLength)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstPeriodInThisDay(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstPeriodInThisDay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastPeriodInThisDay(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastPeriodInThisDay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfPeriodsInThisDay(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfPeriodsInThisDay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Period(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Period()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Period(int32_t value) noexcept override - { - try - { - this->shim().Period(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddPeriods(int32_t periods) noexcept override - { - try - { - this->shim().AddPeriods(periods); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PeriodAsFullString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().PeriodAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PeriodAsString(int32_t idealLength, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().PeriodAsString(idealLength)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstHourInThisPeriod(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstHourInThisPeriod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastHourInThisPeriod(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastHourInThisPeriod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfHoursInThisPeriod(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfHoursInThisPeriod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Hour(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Hour()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Hour(int32_t value) noexcept override - { - try - { - this->shim().Hour(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddHours(int32_t hours) noexcept override - { - try - { - this->shim().AddHours(hours); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HourAsString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().HourAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HourAsPaddedString(int32_t minDigits, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().HourAsPaddedString(minDigits)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Minute(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Minute()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Minute(int32_t value) noexcept override - { - try - { - this->shim().Minute(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddMinutes(int32_t minutes) noexcept override - { - try - { - this->shim().AddMinutes(minutes); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MinuteAsString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MinuteAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MinuteAsPaddedString(int32_t minDigits, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MinuteAsPaddedString(minDigits)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Second(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Second()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Second(int32_t value) noexcept override - { - try - { - this->shim().Second(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSeconds(int32_t seconds) noexcept override - { - try - { - this->shim().AddSeconds(seconds); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SecondAsString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SecondAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SecondAsPaddedString(int32_t minDigits, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SecondAsPaddedString(minDigits)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Nanosecond(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Nanosecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Nanosecond(int32_t value) noexcept override - { - try - { - this->shim().Nanosecond(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddNanoseconds(int32_t nanoseconds) noexcept override - { - try - { - this->shim().AddNanoseconds(nanoseconds); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NanosecondAsString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().NanosecondAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NanosecondAsPaddedString(int32_t minDigits, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().NanosecondAsPaddedString(minDigits)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Compare(abi_arg_in other, int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().Compare(*reinterpret_cast(&other))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CompareDateTime(abi_arg_in other, int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().CompareDateTime(*reinterpret_cast(&other))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyTo(abi_arg_in other) noexcept override - { - try - { - this->shim().CopyTo(*reinterpret_cast(&other)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstMinuteInThisHour(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstMinuteInThisHour()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastMinuteInThisHour(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastMinuteInThisHour()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfMinutesInThisHour(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfMinutesInThisHour()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstSecondInThisMinute(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstSecondInThisMinute()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastSecondInThisMinute(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastSecondInThisMinute()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfSecondsInThisMinute(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfSecondsInThisMinute()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResolvedLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResolvedLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDaylightSavingTime(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDaylightSavingTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCalendarDefaultCalendarAndClock(abi_arg_in> languages, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateCalendarDefaultCalendarAndClock(*reinterpret_cast *>(&languages))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCalendar(abi_arg_in> languages, abi_arg_in calendar, abi_arg_in clock, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateCalendar(*reinterpret_cast *>(&languages), *reinterpret_cast(&calendar), *reinterpret_cast(&clock))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCalendarWithTimeZone(abi_arg_in> languages, abi_arg_in calendar, abi_arg_in clock, abi_arg_in timeZoneId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateCalendarWithTimeZone(*reinterpret_cast *>(&languages), *reinterpret_cast(&calendar), *reinterpret_cast(&clock), *reinterpret_cast(&timeZoneId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Gregorian(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Gregorian()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Hebrew(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Hebrew()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Hijri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Hijri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Japanese(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Japanese()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Julian(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Julian()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Korean(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Korean()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Taiwan(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Taiwan()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thai(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thai()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UmAlQura(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UmAlQura()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Persian(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Persian()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChineseLunar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChineseLunar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JapaneseLunar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().JapaneseLunar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KoreanLunar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KoreanLunar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TaiwanLunar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TaiwanLunar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VietnameseLunar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VietnameseLunar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TwelveHour(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TwelveHour()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TwentyFourHour(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TwentyFourHour()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AED(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AED()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AFN(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AFN()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ALL(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ALL()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AMD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AMD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ANG(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ANG()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AOA(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AOA()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ARS(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ARS()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AUD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AUD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AWG(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AWG()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AZN(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AZN()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BAM(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BAM()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BBD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BBD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BDT(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BDT()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BGN(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BGN()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BHD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BHD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BIF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BIF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BMD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BMD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BND(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BND()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BOB(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BOB()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BRL(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BRL()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BSD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BSD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BTN(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BTN()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BWP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BWP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BYR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BYR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BZD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BZD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CAD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CAD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CDF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CDF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CHF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CHF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CLP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CLP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CNY(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CNY()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_COP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().COP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CRC(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CRC()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CUP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CUP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CVE(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CVE()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CZK(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CZK()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DJF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DJF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DKK(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DKK()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DOP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DOP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DZD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DZD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EGP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EGP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ERN(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ERN()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ETB(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ETB()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EUR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EUR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FJD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FJD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FKP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FKP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GBP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GBP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GEL(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GEL()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GHS(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GHS()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GIP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GIP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GMD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GMD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GNF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GNF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GTQ(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GTQ()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GYD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GYD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HKD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HKD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HNL(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HNL()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HRK(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HRK()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HTG(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HTG()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HUF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HUF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IDR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IDR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ILS(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ILS()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_INR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().INR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IQD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IQD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IRR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IRR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ISK(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ISK()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JMD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().JMD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JOD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().JOD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JPY(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().JPY()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KES(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KES()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KGS(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KGS()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KHR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KHR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KMF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KMF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KPW(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KPW()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KRW(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KRW()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KWD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KWD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KYD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KYD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KZT(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KZT()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LAK(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LAK()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LBP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LBP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LKR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LKR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LRD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LRD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LSL(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LSL()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LTL(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LTL()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LVL(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LVL()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LYD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LYD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MAD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MAD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MDL(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MDL()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MGA(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MGA()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MKD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MKD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MMK(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MMK()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MNT(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MNT()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MOP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MOP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MRO(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MRO()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MUR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MUR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MVR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MVR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MWK(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MWK()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MXN(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MXN()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MYR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MYR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MZN(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MZN()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NAD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NAD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NGN(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NGN()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NIO(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NIO()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NOK(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NOK()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NPR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NPR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NZD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NZD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OMR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OMR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PAB(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PAB()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PEN(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PEN()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PGK(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PGK()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PHP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PHP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PKR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PKR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PLN(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PLN()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PYG(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PYG()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QAR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QAR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RON(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RON()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RSD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RSD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RUB(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RUB()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RWF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RWF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SAR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SAR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SBD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SBD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SCR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SCR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SDG(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SDG()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SEK(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SEK()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SGD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SGD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SHP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SHP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SLL(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SLL()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SOS(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SOS()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SRD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SRD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_STD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().STD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SYP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SYP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SZL(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SZL()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_THB(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().THB()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TJS(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TJS()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TMT(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TMT()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TND(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TND()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TOP(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TOP()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TRY(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TRY()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TTD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TTD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TWD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TWD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TZS(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TZS()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UAH(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UAH()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UGX(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UGX()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_USD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().USD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UYU(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UYU()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UZS(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UZS()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VEF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VEF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VND(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VND()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VUV(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VUV()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WST(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WST()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XAF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XAF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XCD(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XCD()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XOF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XOF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XPF(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XPF()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XXX(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XXX()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YER(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YER()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZAR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZAR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZMW(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZMW()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZWL(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZWL()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Code(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Code()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CodeTwoLetter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CodeTwoLetter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CodeThreeLetter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CodeThreeLetter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CodeThreeDigit(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CodeThreeDigit()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NativeName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NativeName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrenciesInUse(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CurrenciesInUse()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateGeographicRegion(abi_arg_in geographicRegionCode, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateGeographicRegion(*reinterpret_cast(&geographicRegionCode))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsSupported(abi_arg_in geographicRegionCode, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsSupported(*reinterpret_cast(&geographicRegionCode))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YomiText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YomiText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPhraseStart(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPhraseStart()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetWords(abi_arg_in input, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetWords(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetWordsWithMonoRubyOption(abi_arg_in input, bool monoRuby, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetWords(*reinterpret_cast(&input), monoRuby)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LanguageTag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LanguageTag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NativeName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NativeName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Script(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Script()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetExtensionSubtags(abi_arg_in singleton, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetExtensionSubtags(*reinterpret_cast(&singleton))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateLanguage(abi_arg_in languageTag, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateLanguage(*reinterpret_cast(&languageTag))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsWellFormed(abi_arg_in languageTag, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsWellFormed(*reinterpret_cast(&languageTag))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentInputMethodLanguageTag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentInputMethodLanguageTag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TrySetInputMethodLanguageTag(abi_arg_in languageTag, bool * result) noexcept override - { - try - { - *result = detach(this->shim().TrySetInputMethodLanguageTag(*reinterpret_cast(&languageTag))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Arab(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Arab()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ArabExt(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ArabExt()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bali(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bali()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Beng(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Beng()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cham(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Cham()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Deva(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deva()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FullWide(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FullWide()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gujr(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Gujr()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Guru(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Guru()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HaniDec(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HaniDec()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Java(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Java()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kali(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Kali()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Khmr(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Khmr()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Knda(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Knda()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Lana(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Lana()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LanaTham(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LanaTham()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Laoo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Laoo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Latn(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Latn()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Lepc(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Lepc()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Limb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Limb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mlym(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mlym()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mong(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mong()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mtei(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mtei()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mymr(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mymr()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MymrShan(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MymrShan()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Nkoo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Nkoo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Olck(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Olck()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orya(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Orya()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Saur(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Saur()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sund(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sund()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Talu(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Talu()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TamlDec(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TamlDec()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Telu(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Telu()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thai(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thai()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tibt(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tibt()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Vaii(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Vaii()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Brah(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Brah()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Osma(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Osma()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MathBold(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MathBold()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MathDbl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MathDbl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MathSans(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MathSans()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MathSanb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MathSanb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MathMono(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MathMono()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZmthBold(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZmthBold()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZmthDbl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZmthDbl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZmthSans(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZmthSans()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZmthSanb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZmthSanb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZmthMono(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZmthMono()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetTimeZone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetTimeZone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ChangeTimeZone(abi_arg_in timeZoneId) noexcept override - { - try - { - this->shim().ChangeTimeZone(*reinterpret_cast(&timeZoneId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TimeZoneAsFullString(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TimeZoneAsString()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TimeZoneAsString(int32_t idealLength, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TimeZoneAsString(idealLength)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Globalization { - -template hstring impl_ICalendarIdentifiersStatics::Gregorian() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Gregorian(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics::Hebrew() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Hebrew(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics::Hijri() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Hijri(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics::Japanese() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Japanese(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics::Julian() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Julian(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics::Korean() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Korean(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics::Taiwan() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Taiwan(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics::Thai() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Thai(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics::UmAlQura() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UmAlQura(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics2::Persian() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Persian(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics3::ChineseLunar() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ChineseLunar(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics3::JapaneseLunar() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_JapaneseLunar(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics3::KoreanLunar() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KoreanLunar(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics3::TaiwanLunar() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TaiwanLunar(put(value))); - return value; -} - -template hstring impl_ICalendarIdentifiersStatics3::VietnameseLunar() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VietnameseLunar(put(value))); - return value; -} - -template hstring impl_IClockIdentifiersStatics::TwelveHour() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TwelveHour(put(value))); - return value; -} - -template hstring impl_IClockIdentifiersStatics::TwentyFourHour() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TwentyFourHour(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Arab() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Arab(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::ArabExt() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ArabExt(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Bali() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Bali(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Beng() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Beng(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Cham() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Cham(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Deva() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Deva(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::FullWide() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FullWide(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Gujr() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Gujr(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Guru() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Guru(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::HaniDec() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HaniDec(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Java() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Java(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Kali() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Kali(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Khmr() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Khmr(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Knda() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Knda(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Lana() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Lana(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::LanaTham() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LanaTham(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Laoo() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Laoo(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Latn() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Latn(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Lepc() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Lepc(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Limb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Limb(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Mlym() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Mlym(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Mong() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Mong(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Mtei() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Mtei(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Mymr() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Mymr(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::MymrShan() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MymrShan(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Nkoo() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Nkoo(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Olck() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Olck(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Orya() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Orya(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Saur() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Saur(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Sund() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sund(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Talu() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Talu(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::TamlDec() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TamlDec(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Telu() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Telu(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Thai() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Thai(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Tibt() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Tibt(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics::Vaii() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Vaii(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::Brah() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Brah(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::Osma() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Osma(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::MathBold() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MathBold(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::MathDbl() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MathDbl(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::MathSans() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MathSans(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::MathSanb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MathSanb(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::MathMono() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MathMono(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::ZmthBold() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ZmthBold(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::ZmthDbl() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ZmthDbl(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::ZmthSans() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ZmthSans(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::ZmthSanb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ZmthSanb(put(value))); - return value; -} - -template hstring impl_INumeralSystemIdentifiersStatics2::ZmthMono() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ZmthMono(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::AED() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AED(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::AFN() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AFN(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::ALL() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ALL(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::AMD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AMD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::ANG() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ANG(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::AOA() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AOA(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::ARS() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ARS(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::AUD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AUD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::AWG() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AWG(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::AZN() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AZN(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BAM() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BAM(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BBD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BBD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BDT() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BDT(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BGN() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BGN(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BHD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BHD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BIF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BIF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BMD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BMD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BND() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BND(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BOB() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BOB(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BRL() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BRL(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BSD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BSD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BTN() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BTN(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BWP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BWP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BYR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BYR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::BZD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BZD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::CAD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CAD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::CDF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CDF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::CHF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CHF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::CLP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CLP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::CNY() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CNY(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::COP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_COP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::CRC() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CRC(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::CUP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CUP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::CVE() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CVE(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::CZK() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CZK(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::DJF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DJF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::DKK() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DKK(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::DOP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DOP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::DZD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DZD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::EGP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EGP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::ERN() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ERN(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::ETB() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ETB(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::EUR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EUR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::FJD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FJD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::FKP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FKP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::GBP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GBP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::GEL() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GEL(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::GHS() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GHS(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::GIP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GIP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::GMD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GMD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::GNF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GNF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::GTQ() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GTQ(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::GYD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GYD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::HKD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HKD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::HNL() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HNL(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::HRK() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HRK(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::HTG() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HTG(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::HUF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HUF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::IDR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IDR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::ILS() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ILS(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::INR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_INR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::IQD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IQD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::IRR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IRR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::ISK() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ISK(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::JMD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_JMD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::JOD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_JOD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::JPY() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_JPY(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::KES() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KES(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::KGS() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KGS(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::KHR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KHR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::KMF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KMF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::KPW() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KPW(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::KRW() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KRW(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::KWD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KWD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::KYD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KYD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::KZT() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KZT(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::LAK() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LAK(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::LBP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LBP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::LKR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LKR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::LRD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LRD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::LSL() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LSL(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::LTL() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LTL(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::LVL() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LVL(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::LYD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LYD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MAD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MAD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MDL() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MDL(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MGA() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MGA(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MKD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MKD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MMK() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MMK(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MNT() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MNT(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MOP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MOP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MRO() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MRO(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MUR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MUR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MVR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MVR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MWK() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MWK(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MXN() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MXN(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MYR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MYR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::MZN() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MZN(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::NAD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NAD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::NGN() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NGN(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::NIO() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NIO(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::NOK() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NOK(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::NPR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NPR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::NZD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NZD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::OMR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OMR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::PAB() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PAB(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::PEN() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PEN(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::PGK() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PGK(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::PHP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PHP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::PKR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PKR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::PLN() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PLN(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::PYG() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PYG(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::QAR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QAR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::RON() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RON(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::RSD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RSD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::RUB() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RUB(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::RWF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RWF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SAR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SAR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SBD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SBD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SCR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SCR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SDG() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SDG(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SEK() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SEK(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SGD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SGD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SHP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SHP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SLL() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SLL(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SOS() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SOS(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SRD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SRD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::STD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_STD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SYP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SYP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::SZL() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SZL(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::THB() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_THB(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::TJS() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TJS(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::TMT() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TMT(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::TND() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TND(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::TOP() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TOP(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::TRY() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TRY(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::TTD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TTD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::TWD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TWD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::TZS() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TZS(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::UAH() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UAH(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::UGX() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UGX(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::USD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_USD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::UYU() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UYU(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::UZS() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UZS(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::VEF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VEF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::VND() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VND(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::VUV() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VUV(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::WST() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WST(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::XAF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_XAF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::XCD() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_XCD(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::XOF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_XOF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::XPF() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_XPF(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::XXX() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_XXX(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::YER() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_YER(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::ZAR() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ZAR(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::ZMW() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ZMW(put(value))); - return value; -} - -template hstring impl_ICurrencyIdentifiersStatics::ZWL() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ZWL(put(value))); - return value; -} - -template hstring impl_IGeographicRegion::Code() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Code(put(value))); - return value; -} - -template hstring impl_IGeographicRegion::CodeTwoLetter() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CodeTwoLetter(put(value))); - return value; -} - -template hstring impl_IGeographicRegion::CodeThreeLetter() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CodeThreeLetter(put(value))); - return value; -} - -template hstring impl_IGeographicRegion::CodeThreeDigit() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CodeThreeDigit(put(value))); - return value; -} - -template hstring impl_IGeographicRegion::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IGeographicRegion::NativeName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NativeName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGeographicRegion::CurrenciesInUse() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_CurrenciesInUse(put(value))); - return value; -} - -template Windows::Globalization::GeographicRegion impl_IGeographicRegionFactory::CreateGeographicRegion(hstring_ref geographicRegionCode) const -{ - Windows::Globalization::GeographicRegion result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateGeographicRegion(get(geographicRegionCode), put(result))); - return result; -} - -template bool impl_IGeographicRegionStatics::IsSupported(hstring_ref geographicRegionCode) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsSupported(get(geographicRegionCode), &result)); - return result; -} - -template hstring impl_ILanguage::LanguageTag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LanguageTag(put(value))); - return value; -} - -template hstring impl_ILanguage::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_ILanguage::NativeName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NativeName(put(value))); - return value; -} - -template hstring impl_ILanguage::Script() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Script(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ILanguageExtensionSubtags::GetExtensionSubtags(hstring_ref singleton) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetExtensionSubtags(get(singleton), put(value))); - return value; -} - -template Windows::Globalization::Language impl_ILanguageFactory::CreateLanguage(hstring_ref languageTag) const -{ - Windows::Globalization::Language result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateLanguage(get(languageTag), put(result))); - return result; -} - -template bool impl_ILanguageStatics::IsWellFormed(hstring_ref languageTag) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsWellFormed(get(languageTag), &result)); - return result; -} - -template hstring impl_ILanguageStatics::CurrentInputMethodLanguageTag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CurrentInputMethodLanguageTag(put(value))); - return value; -} - -template bool impl_ILanguageStatics2::TrySetInputMethodLanguageTag(hstring_ref languageTag) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetInputMethodLanguageTag(get(languageTag), &result)); - return result; -} - -template Windows::Globalization::Calendar impl_ICalendar::Clone() const -{ - Windows::Globalization::Calendar value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Clone(put(value))); - return value; -} - -template void impl_ICalendar::SetToMin() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetToMin()); -} - -template void impl_ICalendar::SetToMax() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetToMax()); -} - -template Windows::Foundation::Collections::IVectorView impl_ICalendar::Languages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Languages(put(value))); - return value; -} - -template hstring impl_ICalendar::NumeralSystem() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NumeralSystem(put(value))); - return value; -} - -template void impl_ICalendar::NumeralSystem(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NumeralSystem(get(value))); -} - -template hstring impl_ICalendar::GetCalendarSystem() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetCalendarSystem(put(value))); - return value; -} - -template void impl_ICalendar::ChangeCalendarSystem(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ChangeCalendarSystem(get(value))); -} - -template hstring impl_ICalendar::GetClock() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetClock(put(value))); - return value; -} - -template void impl_ICalendar::ChangeClock(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ChangeClock(get(value))); -} - -template Windows::Foundation::DateTime impl_ICalendar::GetDateTime() const -{ - Windows::Foundation::DateTime result {}; - check_hresult(static_cast(static_cast(*this))->abi_GetDateTime(put(result))); - return result; -} - -template void impl_ICalendar::SetDateTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDateTime(get(value))); -} - -template void impl_ICalendar::SetToNow() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetToNow()); -} - -template int32_t impl_ICalendar::FirstEra() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstEra(&value)); - return value; -} - -template int32_t impl_ICalendar::LastEra() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastEra(&value)); - return value; -} - -template int32_t impl_ICalendar::NumberOfEras() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfEras(&value)); - return value; -} - -template int32_t impl_ICalendar::Era() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Era(&value)); - return value; -} - -template void impl_ICalendar::Era(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Era(value)); -} - -template void impl_ICalendar::AddEras(int32_t eras) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddEras(eras)); -} - -template hstring impl_ICalendar::EraAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_EraAsFullString(put(result))); - return result; -} - -template hstring impl_ICalendar::EraAsString(int32_t idealLength) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_EraAsString(idealLength, put(result))); - return result; -} - -template int32_t impl_ICalendar::FirstYearInThisEra() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstYearInThisEra(&value)); - return value; -} - -template int32_t impl_ICalendar::LastYearInThisEra() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastYearInThisEra(&value)); - return value; -} - -template int32_t impl_ICalendar::NumberOfYearsInThisEra() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfYearsInThisEra(&value)); - return value; -} - -template int32_t impl_ICalendar::Year() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Year(&value)); - return value; -} - -template void impl_ICalendar::Year(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Year(value)); -} - -template void impl_ICalendar::AddYears(int32_t years) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddYears(years)); -} - -template hstring impl_ICalendar::YearAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_YearAsString(put(result))); - return result; -} - -template hstring impl_ICalendar::YearAsTruncatedString(int32_t remainingDigits) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_YearAsTruncatedString(remainingDigits, put(result))); - return result; -} - -template hstring impl_ICalendar::YearAsPaddedString(int32_t minDigits) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_YearAsPaddedString(minDigits, put(result))); - return result; -} - -template int32_t impl_ICalendar::FirstMonthInThisYear() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstMonthInThisYear(&value)); - return value; -} - -template int32_t impl_ICalendar::LastMonthInThisYear() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastMonthInThisYear(&value)); - return value; -} - -template int32_t impl_ICalendar::NumberOfMonthsInThisYear() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfMonthsInThisYear(&value)); - return value; -} - -template int32_t impl_ICalendar::Month() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Month(&value)); - return value; -} - -template void impl_ICalendar::Month(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Month(value)); -} - -template void impl_ICalendar::AddMonths(int32_t months) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddMonths(months)); -} - -template hstring impl_ICalendar::MonthAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_MonthAsFullString(put(result))); - return result; -} - -template hstring impl_ICalendar::MonthAsString(int32_t idealLength) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_MonthAsString(idealLength, put(result))); - return result; -} - -template hstring impl_ICalendar::MonthAsSoloString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_MonthAsFullSoloString(put(result))); - return result; -} - -template hstring impl_ICalendar::MonthAsSoloString(int32_t idealLength) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_MonthAsSoloString(idealLength, put(result))); - return result; -} - -template hstring impl_ICalendar::MonthAsNumericString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_MonthAsNumericString(put(result))); - return result; -} - -template hstring impl_ICalendar::MonthAsPaddedNumericString(int32_t minDigits) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_MonthAsPaddedNumericString(minDigits, put(result))); - return result; -} - -template void impl_ICalendar::AddWeeks(int32_t weeks) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddWeeks(weeks)); -} - -template int32_t impl_ICalendar::FirstDayInThisMonth() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstDayInThisMonth(&value)); - return value; -} - -template int32_t impl_ICalendar::LastDayInThisMonth() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastDayInThisMonth(&value)); - return value; -} - -template int32_t impl_ICalendar::NumberOfDaysInThisMonth() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfDaysInThisMonth(&value)); - return value; -} - -template int32_t impl_ICalendar::Day() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Day(&value)); - return value; -} - -template void impl_ICalendar::Day(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Day(value)); -} - -template void impl_ICalendar::AddDays(int32_t days) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddDays(days)); -} - -template hstring impl_ICalendar::DayAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_DayAsString(put(result))); - return result; -} - -template hstring impl_ICalendar::DayAsPaddedString(int32_t minDigits) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_DayAsPaddedString(minDigits, put(result))); - return result; -} - -template Windows::Globalization::DayOfWeek impl_ICalendar::DayOfWeek() const -{ - Windows::Globalization::DayOfWeek value {}; - check_hresult(static_cast(static_cast(*this))->get_DayOfWeek(&value)); - return value; -} - -template hstring impl_ICalendar::DayOfWeekAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_DayOfWeekAsFullString(put(result))); - return result; -} - -template hstring impl_ICalendar::DayOfWeekAsString(int32_t idealLength) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_DayOfWeekAsString(idealLength, put(result))); - return result; -} - -template hstring impl_ICalendar::DayOfWeekAsSoloString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_DayOfWeekAsFullSoloString(put(result))); - return result; -} - -template hstring impl_ICalendar::DayOfWeekAsSoloString(int32_t idealLength) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_DayOfWeekAsSoloString(idealLength, put(result))); - return result; -} - -template int32_t impl_ICalendar::FirstPeriodInThisDay() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstPeriodInThisDay(&value)); - return value; -} - -template int32_t impl_ICalendar::LastPeriodInThisDay() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastPeriodInThisDay(&value)); - return value; -} - -template int32_t impl_ICalendar::NumberOfPeriodsInThisDay() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfPeriodsInThisDay(&value)); - return value; -} - -template int32_t impl_ICalendar::Period() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Period(&value)); - return value; -} - -template void impl_ICalendar::Period(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Period(value)); -} - -template void impl_ICalendar::AddPeriods(int32_t periods) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddPeriods(periods)); -} - -template hstring impl_ICalendar::PeriodAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_PeriodAsFullString(put(result))); - return result; -} - -template hstring impl_ICalendar::PeriodAsString(int32_t idealLength) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_PeriodAsString(idealLength, put(result))); - return result; -} - -template int32_t impl_ICalendar::FirstHourInThisPeriod() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstHourInThisPeriod(&value)); - return value; -} - -template int32_t impl_ICalendar::LastHourInThisPeriod() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastHourInThisPeriod(&value)); - return value; -} - -template int32_t impl_ICalendar::NumberOfHoursInThisPeriod() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfHoursInThisPeriod(&value)); - return value; -} - -template int32_t impl_ICalendar::Hour() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Hour(&value)); - return value; -} - -template void impl_ICalendar::Hour(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Hour(value)); -} - -template void impl_ICalendar::AddHours(int32_t hours) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddHours(hours)); -} - -template hstring impl_ICalendar::HourAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_HourAsString(put(result))); - return result; -} - -template hstring impl_ICalendar::HourAsPaddedString(int32_t minDigits) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_HourAsPaddedString(minDigits, put(result))); - return result; -} - -template int32_t impl_ICalendar::Minute() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Minute(&value)); - return value; -} - -template void impl_ICalendar::Minute(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Minute(value)); -} - -template void impl_ICalendar::AddMinutes(int32_t minutes) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddMinutes(minutes)); -} - -template hstring impl_ICalendar::MinuteAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_MinuteAsString(put(result))); - return result; -} - -template hstring impl_ICalendar::MinuteAsPaddedString(int32_t minDigits) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_MinuteAsPaddedString(minDigits, put(result))); - return result; -} - -template int32_t impl_ICalendar::Second() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Second(&value)); - return value; -} - -template void impl_ICalendar::Second(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Second(value)); -} - -template void impl_ICalendar::AddSeconds(int32_t seconds) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddSeconds(seconds)); -} - -template hstring impl_ICalendar::SecondAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_SecondAsString(put(result))); - return result; -} - -template hstring impl_ICalendar::SecondAsPaddedString(int32_t minDigits) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_SecondAsPaddedString(minDigits, put(result))); - return result; -} - -template int32_t impl_ICalendar::Nanosecond() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Nanosecond(&value)); - return value; -} - -template void impl_ICalendar::Nanosecond(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Nanosecond(value)); -} - -template void impl_ICalendar::AddNanoseconds(int32_t nanoseconds) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddNanoseconds(nanoseconds)); -} - -template hstring impl_ICalendar::NanosecondAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_NanosecondAsString(put(result))); - return result; -} - -template hstring impl_ICalendar::NanosecondAsPaddedString(int32_t minDigits) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_NanosecondAsPaddedString(minDigits, put(result))); - return result; -} - -template int32_t impl_ICalendar::Compare(const Windows::Globalization::Calendar & other) const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_Compare(get(other), &result)); - return result; -} - -template int32_t impl_ICalendar::CompareDateTime(const Windows::Foundation::DateTime & other) const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_CompareDateTime(get(other), &result)); - return result; -} - -template void impl_ICalendar::CopyTo(const Windows::Globalization::Calendar & other) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CopyTo(get(other))); -} - -template int32_t impl_ICalendar::FirstMinuteInThisHour() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstMinuteInThisHour(&value)); - return value; -} - -template int32_t impl_ICalendar::LastMinuteInThisHour() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastMinuteInThisHour(&value)); - return value; -} - -template int32_t impl_ICalendar::NumberOfMinutesInThisHour() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfMinutesInThisHour(&value)); - return value; -} - -template int32_t impl_ICalendar::FirstSecondInThisMinute() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstSecondInThisMinute(&value)); - return value; -} - -template int32_t impl_ICalendar::LastSecondInThisMinute() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastSecondInThisMinute(&value)); - return value; -} - -template int32_t impl_ICalendar::NumberOfSecondsInThisMinute() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfSecondsInThisMinute(&value)); - return value; -} - -template hstring impl_ICalendar::ResolvedLanguage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResolvedLanguage(put(value))); - return value; -} - -template bool impl_ICalendar::IsDaylightSavingTime() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDaylightSavingTime(&value)); - return value; -} - -template Windows::Globalization::Calendar impl_ICalendarFactory2::CreateCalendarWithTimeZone(const Windows::Foundation::Collections::IIterable & languages, hstring_ref calendar, hstring_ref clock, hstring_ref timeZoneId) const -{ - Windows::Globalization::Calendar result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCalendarWithTimeZone(get(languages), get(calendar), get(clock), get(timeZoneId), put(result))); - return result; -} - -template hstring impl_ITimeZoneOnCalendar::GetTimeZone() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetTimeZone(put(value))); - return value; -} - -template void impl_ITimeZoneOnCalendar::ChangeTimeZone(hstring_ref timeZoneId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ChangeTimeZone(get(timeZoneId))); -} - -template hstring impl_ITimeZoneOnCalendar::TimeZoneAsString() const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_TimeZoneAsFullString(put(result))); - return result; -} - -template hstring impl_ITimeZoneOnCalendar::TimeZoneAsString(int32_t idealLength) const -{ - hstring result; - check_hresult(static_cast(static_cast(*this))->abi_TimeZoneAsString(idealLength, put(result))); - return result; -} - -template Windows::Globalization::Calendar impl_ICalendarFactory::CreateCalendarDefaultCalendarAndClock(const Windows::Foundation::Collections::IIterable & languages) const -{ - Windows::Globalization::Calendar result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCalendarDefaultCalendarAndClock(get(languages), put(result))); - return result; -} - -template Windows::Globalization::Calendar impl_ICalendarFactory::CreateCalendar(const Windows::Foundation::Collections::IIterable & languages, hstring_ref calendar, hstring_ref clock) const -{ - Windows::Globalization::Calendar result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCalendar(get(languages), get(calendar), get(clock), put(result))); - return result; -} - -template hstring impl_IApplicationLanguagesStatics::PrimaryLanguageOverride() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PrimaryLanguageOverride(put(value))); - return value; -} - -template void impl_IApplicationLanguagesStatics::PrimaryLanguageOverride(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PrimaryLanguageOverride(get(value))); -} - -template Windows::Foundation::Collections::IVectorView impl_IApplicationLanguagesStatics::Languages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Languages(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IApplicationLanguagesStatics::ManifestLanguages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ManifestLanguages(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IJapanesePhoneticAnalyzerStatics::GetWords(hstring_ref input) const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetWords(get(input), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_IJapanesePhoneticAnalyzerStatics::GetWords(hstring_ref input, bool monoRuby) const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetWordsWithMonoRubyOption(get(input), monoRuby, put(result))); - return result; -} - -template hstring impl_IJapanesePhoneme::DisplayText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayText(put(value))); - return value; -} - -template hstring impl_IJapanesePhoneme::YomiText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_YomiText(put(value))); - return value; -} - -template bool impl_IJapanesePhoneme::IsPhraseStart() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPhraseStart(&value)); - return value; -} - -inline hstring ApplicationLanguages::PrimaryLanguageOverride() -{ - return get_activation_factory().PrimaryLanguageOverride(); -} - -inline void ApplicationLanguages::PrimaryLanguageOverride(hstring_ref value) -{ - get_activation_factory().PrimaryLanguageOverride(value); -} - -inline Windows::Foundation::Collections::IVectorView ApplicationLanguages::Languages() -{ - return get_activation_factory().Languages(); -} - -inline Windows::Foundation::Collections::IVectorView ApplicationLanguages::ManifestLanguages() -{ - return get_activation_factory().ManifestLanguages(); -} - -inline Calendar::Calendar() : - Calendar(activate_instance()) -{} - -inline Calendar::Calendar(const Windows::Foundation::Collections::IIterable & languages, hstring_ref calendar, hstring_ref clock, hstring_ref timeZoneId) : - Calendar(get_activation_factory().CreateCalendarWithTimeZone(languages, calendar, clock, timeZoneId)) -{} - -inline Calendar::Calendar(const Windows::Foundation::Collections::IIterable & languages) : - Calendar(get_activation_factory().CreateCalendarDefaultCalendarAndClock(languages)) -{} - -inline Calendar::Calendar(const Windows::Foundation::Collections::IIterable & languages, hstring_ref calendar, hstring_ref clock) : - Calendar(get_activation_factory().CreateCalendar(languages, calendar, clock)) -{} - -inline hstring CalendarIdentifiers::Gregorian() -{ - return get_activation_factory().Gregorian(); -} - -inline hstring CalendarIdentifiers::Hebrew() -{ - return get_activation_factory().Hebrew(); -} - -inline hstring CalendarIdentifiers::Hijri() -{ - return get_activation_factory().Hijri(); -} - -inline hstring CalendarIdentifiers::Japanese() -{ - return get_activation_factory().Japanese(); -} - -inline hstring CalendarIdentifiers::Julian() -{ - return get_activation_factory().Julian(); -} - -inline hstring CalendarIdentifiers::Korean() -{ - return get_activation_factory().Korean(); -} - -inline hstring CalendarIdentifiers::Taiwan() -{ - return get_activation_factory().Taiwan(); -} - -inline hstring CalendarIdentifiers::Thai() -{ - return get_activation_factory().Thai(); -} - -inline hstring CalendarIdentifiers::UmAlQura() -{ - return get_activation_factory().UmAlQura(); -} - -inline hstring CalendarIdentifiers::Persian() -{ - return get_activation_factory().Persian(); -} - -inline hstring CalendarIdentifiers::ChineseLunar() -{ - return get_activation_factory().ChineseLunar(); -} - -inline hstring CalendarIdentifiers::JapaneseLunar() -{ - return get_activation_factory().JapaneseLunar(); -} - -inline hstring CalendarIdentifiers::KoreanLunar() -{ - return get_activation_factory().KoreanLunar(); -} - -inline hstring CalendarIdentifiers::TaiwanLunar() -{ - return get_activation_factory().TaiwanLunar(); -} - -inline hstring CalendarIdentifiers::VietnameseLunar() -{ - return get_activation_factory().VietnameseLunar(); -} - -inline hstring ClockIdentifiers::TwelveHour() -{ - return get_activation_factory().TwelveHour(); -} - -inline hstring ClockIdentifiers::TwentyFourHour() -{ - return get_activation_factory().TwentyFourHour(); -} - -inline hstring CurrencyIdentifiers::AED() -{ - return get_activation_factory().AED(); -} - -inline hstring CurrencyIdentifiers::AFN() -{ - return get_activation_factory().AFN(); -} - -inline hstring CurrencyIdentifiers::ALL() -{ - return get_activation_factory().ALL(); -} - -inline hstring CurrencyIdentifiers::AMD() -{ - return get_activation_factory().AMD(); -} - -inline hstring CurrencyIdentifiers::ANG() -{ - return get_activation_factory().ANG(); -} - -inline hstring CurrencyIdentifiers::AOA() -{ - return get_activation_factory().AOA(); -} - -inline hstring CurrencyIdentifiers::ARS() -{ - return get_activation_factory().ARS(); -} - -inline hstring CurrencyIdentifiers::AUD() -{ - return get_activation_factory().AUD(); -} - -inline hstring CurrencyIdentifiers::AWG() -{ - return get_activation_factory().AWG(); -} - -inline hstring CurrencyIdentifiers::AZN() -{ - return get_activation_factory().AZN(); -} - -inline hstring CurrencyIdentifiers::BAM() -{ - return get_activation_factory().BAM(); -} - -inline hstring CurrencyIdentifiers::BBD() -{ - return get_activation_factory().BBD(); -} - -inline hstring CurrencyIdentifiers::BDT() -{ - return get_activation_factory().BDT(); -} - -inline hstring CurrencyIdentifiers::BGN() -{ - return get_activation_factory().BGN(); -} - -inline hstring CurrencyIdentifiers::BHD() -{ - return get_activation_factory().BHD(); -} - -inline hstring CurrencyIdentifiers::BIF() -{ - return get_activation_factory().BIF(); -} - -inline hstring CurrencyIdentifiers::BMD() -{ - return get_activation_factory().BMD(); -} - -inline hstring CurrencyIdentifiers::BND() -{ - return get_activation_factory().BND(); -} - -inline hstring CurrencyIdentifiers::BOB() -{ - return get_activation_factory().BOB(); -} - -inline hstring CurrencyIdentifiers::BRL() -{ - return get_activation_factory().BRL(); -} - -inline hstring CurrencyIdentifiers::BSD() -{ - return get_activation_factory().BSD(); -} - -inline hstring CurrencyIdentifiers::BTN() -{ - return get_activation_factory().BTN(); -} - -inline hstring CurrencyIdentifiers::BWP() -{ - return get_activation_factory().BWP(); -} - -inline hstring CurrencyIdentifiers::BYR() -{ - return get_activation_factory().BYR(); -} - -inline hstring CurrencyIdentifiers::BZD() -{ - return get_activation_factory().BZD(); -} - -inline hstring CurrencyIdentifiers::CAD() -{ - return get_activation_factory().CAD(); -} - -inline hstring CurrencyIdentifiers::CDF() -{ - return get_activation_factory().CDF(); -} - -inline hstring CurrencyIdentifiers::CHF() -{ - return get_activation_factory().CHF(); -} - -inline hstring CurrencyIdentifiers::CLP() -{ - return get_activation_factory().CLP(); -} - -inline hstring CurrencyIdentifiers::CNY() -{ - return get_activation_factory().CNY(); -} - -inline hstring CurrencyIdentifiers::COP() -{ - return get_activation_factory().COP(); -} - -inline hstring CurrencyIdentifiers::CRC() -{ - return get_activation_factory().CRC(); -} - -inline hstring CurrencyIdentifiers::CUP() -{ - return get_activation_factory().CUP(); -} - -inline hstring CurrencyIdentifiers::CVE() -{ - return get_activation_factory().CVE(); -} - -inline hstring CurrencyIdentifiers::CZK() -{ - return get_activation_factory().CZK(); -} - -inline hstring CurrencyIdentifiers::DJF() -{ - return get_activation_factory().DJF(); -} - -inline hstring CurrencyIdentifiers::DKK() -{ - return get_activation_factory().DKK(); -} - -inline hstring CurrencyIdentifiers::DOP() -{ - return get_activation_factory().DOP(); -} - -inline hstring CurrencyIdentifiers::DZD() -{ - return get_activation_factory().DZD(); -} - -inline hstring CurrencyIdentifiers::EGP() -{ - return get_activation_factory().EGP(); -} - -inline hstring CurrencyIdentifiers::ERN() -{ - return get_activation_factory().ERN(); -} - -inline hstring CurrencyIdentifiers::ETB() -{ - return get_activation_factory().ETB(); -} - -inline hstring CurrencyIdentifiers::EUR() -{ - return get_activation_factory().EUR(); -} - -inline hstring CurrencyIdentifiers::FJD() -{ - return get_activation_factory().FJD(); -} - -inline hstring CurrencyIdentifiers::FKP() -{ - return get_activation_factory().FKP(); -} - -inline hstring CurrencyIdentifiers::GBP() -{ - return get_activation_factory().GBP(); -} - -inline hstring CurrencyIdentifiers::GEL() -{ - return get_activation_factory().GEL(); -} - -inline hstring CurrencyIdentifiers::GHS() -{ - return get_activation_factory().GHS(); -} - -inline hstring CurrencyIdentifiers::GIP() -{ - return get_activation_factory().GIP(); -} - -inline hstring CurrencyIdentifiers::GMD() -{ - return get_activation_factory().GMD(); -} - -inline hstring CurrencyIdentifiers::GNF() -{ - return get_activation_factory().GNF(); -} - -inline hstring CurrencyIdentifiers::GTQ() -{ - return get_activation_factory().GTQ(); -} - -inline hstring CurrencyIdentifiers::GYD() -{ - return get_activation_factory().GYD(); -} - -inline hstring CurrencyIdentifiers::HKD() -{ - return get_activation_factory().HKD(); -} - -inline hstring CurrencyIdentifiers::HNL() -{ - return get_activation_factory().HNL(); -} - -inline hstring CurrencyIdentifiers::HRK() -{ - return get_activation_factory().HRK(); -} - -inline hstring CurrencyIdentifiers::HTG() -{ - return get_activation_factory().HTG(); -} - -inline hstring CurrencyIdentifiers::HUF() -{ - return get_activation_factory().HUF(); -} - -inline hstring CurrencyIdentifiers::IDR() -{ - return get_activation_factory().IDR(); -} - -inline hstring CurrencyIdentifiers::ILS() -{ - return get_activation_factory().ILS(); -} - -inline hstring CurrencyIdentifiers::INR() -{ - return get_activation_factory().INR(); -} - -inline hstring CurrencyIdentifiers::IQD() -{ - return get_activation_factory().IQD(); -} - -inline hstring CurrencyIdentifiers::IRR() -{ - return get_activation_factory().IRR(); -} - -inline hstring CurrencyIdentifiers::ISK() -{ - return get_activation_factory().ISK(); -} - -inline hstring CurrencyIdentifiers::JMD() -{ - return get_activation_factory().JMD(); -} - -inline hstring CurrencyIdentifiers::JOD() -{ - return get_activation_factory().JOD(); -} - -inline hstring CurrencyIdentifiers::JPY() -{ - return get_activation_factory().JPY(); -} - -inline hstring CurrencyIdentifiers::KES() -{ - return get_activation_factory().KES(); -} - -inline hstring CurrencyIdentifiers::KGS() -{ - return get_activation_factory().KGS(); -} - -inline hstring CurrencyIdentifiers::KHR() -{ - return get_activation_factory().KHR(); -} - -inline hstring CurrencyIdentifiers::KMF() -{ - return get_activation_factory().KMF(); -} - -inline hstring CurrencyIdentifiers::KPW() -{ - return get_activation_factory().KPW(); -} - -inline hstring CurrencyIdentifiers::KRW() -{ - return get_activation_factory().KRW(); -} - -inline hstring CurrencyIdentifiers::KWD() -{ - return get_activation_factory().KWD(); -} - -inline hstring CurrencyIdentifiers::KYD() -{ - return get_activation_factory().KYD(); -} - -inline hstring CurrencyIdentifiers::KZT() -{ - return get_activation_factory().KZT(); -} - -inline hstring CurrencyIdentifiers::LAK() -{ - return get_activation_factory().LAK(); -} - -inline hstring CurrencyIdentifiers::LBP() -{ - return get_activation_factory().LBP(); -} - -inline hstring CurrencyIdentifiers::LKR() -{ - return get_activation_factory().LKR(); -} - -inline hstring CurrencyIdentifiers::LRD() -{ - return get_activation_factory().LRD(); -} - -inline hstring CurrencyIdentifiers::LSL() -{ - return get_activation_factory().LSL(); -} - -inline hstring CurrencyIdentifiers::LTL() -{ - return get_activation_factory().LTL(); -} - -inline hstring CurrencyIdentifiers::LVL() -{ - return get_activation_factory().LVL(); -} - -inline hstring CurrencyIdentifiers::LYD() -{ - return get_activation_factory().LYD(); -} - -inline hstring CurrencyIdentifiers::MAD() -{ - return get_activation_factory().MAD(); -} - -inline hstring CurrencyIdentifiers::MDL() -{ - return get_activation_factory().MDL(); -} - -inline hstring CurrencyIdentifiers::MGA() -{ - return get_activation_factory().MGA(); -} - -inline hstring CurrencyIdentifiers::MKD() -{ - return get_activation_factory().MKD(); -} - -inline hstring CurrencyIdentifiers::MMK() -{ - return get_activation_factory().MMK(); -} - -inline hstring CurrencyIdentifiers::MNT() -{ - return get_activation_factory().MNT(); -} - -inline hstring CurrencyIdentifiers::MOP() -{ - return get_activation_factory().MOP(); -} - -inline hstring CurrencyIdentifiers::MRO() -{ - return get_activation_factory().MRO(); -} - -inline hstring CurrencyIdentifiers::MUR() -{ - return get_activation_factory().MUR(); -} - -inline hstring CurrencyIdentifiers::MVR() -{ - return get_activation_factory().MVR(); -} - -inline hstring CurrencyIdentifiers::MWK() -{ - return get_activation_factory().MWK(); -} - -inline hstring CurrencyIdentifiers::MXN() -{ - return get_activation_factory().MXN(); -} - -inline hstring CurrencyIdentifiers::MYR() -{ - return get_activation_factory().MYR(); -} - -inline hstring CurrencyIdentifiers::MZN() -{ - return get_activation_factory().MZN(); -} - -inline hstring CurrencyIdentifiers::NAD() -{ - return get_activation_factory().NAD(); -} - -inline hstring CurrencyIdentifiers::NGN() -{ - return get_activation_factory().NGN(); -} - -inline hstring CurrencyIdentifiers::NIO() -{ - return get_activation_factory().NIO(); -} - -inline hstring CurrencyIdentifiers::NOK() -{ - return get_activation_factory().NOK(); -} - -inline hstring CurrencyIdentifiers::NPR() -{ - return get_activation_factory().NPR(); -} - -inline hstring CurrencyIdentifiers::NZD() -{ - return get_activation_factory().NZD(); -} - -inline hstring CurrencyIdentifiers::OMR() -{ - return get_activation_factory().OMR(); -} - -inline hstring CurrencyIdentifiers::PAB() -{ - return get_activation_factory().PAB(); -} - -inline hstring CurrencyIdentifiers::PEN() -{ - return get_activation_factory().PEN(); -} - -inline hstring CurrencyIdentifiers::PGK() -{ - return get_activation_factory().PGK(); -} - -inline hstring CurrencyIdentifiers::PHP() -{ - return get_activation_factory().PHP(); -} - -inline hstring CurrencyIdentifiers::PKR() -{ - return get_activation_factory().PKR(); -} - -inline hstring CurrencyIdentifiers::PLN() -{ - return get_activation_factory().PLN(); -} - -inline hstring CurrencyIdentifiers::PYG() -{ - return get_activation_factory().PYG(); -} - -inline hstring CurrencyIdentifiers::QAR() -{ - return get_activation_factory().QAR(); -} - -inline hstring CurrencyIdentifiers::RON() -{ - return get_activation_factory().RON(); -} - -inline hstring CurrencyIdentifiers::RSD() -{ - return get_activation_factory().RSD(); -} - -inline hstring CurrencyIdentifiers::RUB() -{ - return get_activation_factory().RUB(); -} - -inline hstring CurrencyIdentifiers::RWF() -{ - return get_activation_factory().RWF(); -} - -inline hstring CurrencyIdentifiers::SAR() -{ - return get_activation_factory().SAR(); -} - -inline hstring CurrencyIdentifiers::SBD() -{ - return get_activation_factory().SBD(); -} - -inline hstring CurrencyIdentifiers::SCR() -{ - return get_activation_factory().SCR(); -} - -inline hstring CurrencyIdentifiers::SDG() -{ - return get_activation_factory().SDG(); -} - -inline hstring CurrencyIdentifiers::SEK() -{ - return get_activation_factory().SEK(); -} - -inline hstring CurrencyIdentifiers::SGD() -{ - return get_activation_factory().SGD(); -} - -inline hstring CurrencyIdentifiers::SHP() -{ - return get_activation_factory().SHP(); -} - -inline hstring CurrencyIdentifiers::SLL() -{ - return get_activation_factory().SLL(); -} - -inline hstring CurrencyIdentifiers::SOS() -{ - return get_activation_factory().SOS(); -} - -inline hstring CurrencyIdentifiers::SRD() -{ - return get_activation_factory().SRD(); -} - -inline hstring CurrencyIdentifiers::STD() -{ - return get_activation_factory().STD(); -} - -inline hstring CurrencyIdentifiers::SYP() -{ - return get_activation_factory().SYP(); -} - -inline hstring CurrencyIdentifiers::SZL() -{ - return get_activation_factory().SZL(); -} - -inline hstring CurrencyIdentifiers::THB() -{ - return get_activation_factory().THB(); -} - -inline hstring CurrencyIdentifiers::TJS() -{ - return get_activation_factory().TJS(); -} - -inline hstring CurrencyIdentifiers::TMT() -{ - return get_activation_factory().TMT(); -} - -inline hstring CurrencyIdentifiers::TND() -{ - return get_activation_factory().TND(); -} - -inline hstring CurrencyIdentifiers::TOP() -{ - return get_activation_factory().TOP(); -} - -inline hstring CurrencyIdentifiers::TRY() -{ - return get_activation_factory().TRY(); -} - -inline hstring CurrencyIdentifiers::TTD() -{ - return get_activation_factory().TTD(); -} - -inline hstring CurrencyIdentifiers::TWD() -{ - return get_activation_factory().TWD(); -} - -inline hstring CurrencyIdentifiers::TZS() -{ - return get_activation_factory().TZS(); -} - -inline hstring CurrencyIdentifiers::UAH() -{ - return get_activation_factory().UAH(); -} - -inline hstring CurrencyIdentifiers::UGX() -{ - return get_activation_factory().UGX(); -} - -inline hstring CurrencyIdentifiers::USD() -{ - return get_activation_factory().USD(); -} - -inline hstring CurrencyIdentifiers::UYU() -{ - return get_activation_factory().UYU(); -} - -inline hstring CurrencyIdentifiers::UZS() -{ - return get_activation_factory().UZS(); -} - -inline hstring CurrencyIdentifiers::VEF() -{ - return get_activation_factory().VEF(); -} - -inline hstring CurrencyIdentifiers::VND() -{ - return get_activation_factory().VND(); -} - -inline hstring CurrencyIdentifiers::VUV() -{ - return get_activation_factory().VUV(); -} - -inline hstring CurrencyIdentifiers::WST() -{ - return get_activation_factory().WST(); -} - -inline hstring CurrencyIdentifiers::XAF() -{ - return get_activation_factory().XAF(); -} - -inline hstring CurrencyIdentifiers::XCD() -{ - return get_activation_factory().XCD(); -} - -inline hstring CurrencyIdentifiers::XOF() -{ - return get_activation_factory().XOF(); -} - -inline hstring CurrencyIdentifiers::XPF() -{ - return get_activation_factory().XPF(); -} - -inline hstring CurrencyIdentifiers::XXX() -{ - return get_activation_factory().XXX(); -} - -inline hstring CurrencyIdentifiers::YER() -{ - return get_activation_factory().YER(); -} - -inline hstring CurrencyIdentifiers::ZAR() -{ - return get_activation_factory().ZAR(); -} - -inline hstring CurrencyIdentifiers::ZMW() -{ - return get_activation_factory().ZMW(); -} - -inline hstring CurrencyIdentifiers::ZWL() -{ - return get_activation_factory().ZWL(); -} - -inline GeographicRegion::GeographicRegion() : - GeographicRegion(activate_instance()) -{} - -inline GeographicRegion::GeographicRegion(hstring_ref geographicRegionCode) : - GeographicRegion(get_activation_factory().CreateGeographicRegion(geographicRegionCode)) -{} - -inline bool GeographicRegion::IsSupported(hstring_ref geographicRegionCode) -{ - return get_activation_factory().IsSupported(geographicRegionCode); -} - -inline Windows::Foundation::Collections::IVectorView JapanesePhoneticAnalyzer::GetWords(hstring_ref input) -{ - return get_activation_factory().GetWords(input); -} - -inline Windows::Foundation::Collections::IVectorView JapanesePhoneticAnalyzer::GetWords(hstring_ref input, bool monoRuby) -{ - return get_activation_factory().GetWords(input, monoRuby); -} - -inline Language::Language(hstring_ref languageTag) : - Language(get_activation_factory().CreateLanguage(languageTag)) -{} - -inline bool Language::IsWellFormed(hstring_ref languageTag) -{ - return get_activation_factory().IsWellFormed(languageTag); -} - -inline hstring Language::CurrentInputMethodLanguageTag() -{ - return get_activation_factory().CurrentInputMethodLanguageTag(); -} - -inline bool Language::TrySetInputMethodLanguageTag(hstring_ref languageTag) -{ - return get_activation_factory().TrySetInputMethodLanguageTag(languageTag); -} - -inline hstring NumeralSystemIdentifiers::Arab() -{ - return get_activation_factory().Arab(); -} - -inline hstring NumeralSystemIdentifiers::ArabExt() -{ - return get_activation_factory().ArabExt(); -} - -inline hstring NumeralSystemIdentifiers::Bali() -{ - return get_activation_factory().Bali(); -} - -inline hstring NumeralSystemIdentifiers::Beng() -{ - return get_activation_factory().Beng(); -} - -inline hstring NumeralSystemIdentifiers::Cham() -{ - return get_activation_factory().Cham(); -} - -inline hstring NumeralSystemIdentifiers::Deva() -{ - return get_activation_factory().Deva(); -} - -inline hstring NumeralSystemIdentifiers::FullWide() -{ - return get_activation_factory().FullWide(); -} - -inline hstring NumeralSystemIdentifiers::Gujr() -{ - return get_activation_factory().Gujr(); -} - -inline hstring NumeralSystemIdentifiers::Guru() -{ - return get_activation_factory().Guru(); -} - -inline hstring NumeralSystemIdentifiers::HaniDec() -{ - return get_activation_factory().HaniDec(); -} - -inline hstring NumeralSystemIdentifiers::Java() -{ - return get_activation_factory().Java(); -} - -inline hstring NumeralSystemIdentifiers::Kali() -{ - return get_activation_factory().Kali(); -} - -inline hstring NumeralSystemIdentifiers::Khmr() -{ - return get_activation_factory().Khmr(); -} - -inline hstring NumeralSystemIdentifiers::Knda() -{ - return get_activation_factory().Knda(); -} - -inline hstring NumeralSystemIdentifiers::Lana() -{ - return get_activation_factory().Lana(); -} - -inline hstring NumeralSystemIdentifiers::LanaTham() -{ - return get_activation_factory().LanaTham(); -} - -inline hstring NumeralSystemIdentifiers::Laoo() -{ - return get_activation_factory().Laoo(); -} - -inline hstring NumeralSystemIdentifiers::Latn() -{ - return get_activation_factory().Latn(); -} - -inline hstring NumeralSystemIdentifiers::Lepc() -{ - return get_activation_factory().Lepc(); -} - -inline hstring NumeralSystemIdentifiers::Limb() -{ - return get_activation_factory().Limb(); -} - -inline hstring NumeralSystemIdentifiers::Mlym() -{ - return get_activation_factory().Mlym(); -} - -inline hstring NumeralSystemIdentifiers::Mong() -{ - return get_activation_factory().Mong(); -} - -inline hstring NumeralSystemIdentifiers::Mtei() -{ - return get_activation_factory().Mtei(); -} - -inline hstring NumeralSystemIdentifiers::Mymr() -{ - return get_activation_factory().Mymr(); -} - -inline hstring NumeralSystemIdentifiers::MymrShan() -{ - return get_activation_factory().MymrShan(); -} - -inline hstring NumeralSystemIdentifiers::Nkoo() -{ - return get_activation_factory().Nkoo(); -} - -inline hstring NumeralSystemIdentifiers::Olck() -{ - return get_activation_factory().Olck(); -} - -inline hstring NumeralSystemIdentifiers::Orya() -{ - return get_activation_factory().Orya(); -} - -inline hstring NumeralSystemIdentifiers::Saur() -{ - return get_activation_factory().Saur(); -} - -inline hstring NumeralSystemIdentifiers::Sund() -{ - return get_activation_factory().Sund(); -} - -inline hstring NumeralSystemIdentifiers::Talu() -{ - return get_activation_factory().Talu(); -} - -inline hstring NumeralSystemIdentifiers::TamlDec() -{ - return get_activation_factory().TamlDec(); -} - -inline hstring NumeralSystemIdentifiers::Telu() -{ - return get_activation_factory().Telu(); -} - -inline hstring NumeralSystemIdentifiers::Thai() -{ - return get_activation_factory().Thai(); -} - -inline hstring NumeralSystemIdentifiers::Tibt() -{ - return get_activation_factory().Tibt(); -} - -inline hstring NumeralSystemIdentifiers::Vaii() -{ - return get_activation_factory().Vaii(); -} - -inline hstring NumeralSystemIdentifiers::Brah() -{ - return get_activation_factory().Brah(); -} - -inline hstring NumeralSystemIdentifiers::Osma() -{ - return get_activation_factory().Osma(); -} - -inline hstring NumeralSystemIdentifiers::MathBold() -{ - return get_activation_factory().MathBold(); -} - -inline hstring NumeralSystemIdentifiers::MathDbl() -{ - return get_activation_factory().MathDbl(); -} - -inline hstring NumeralSystemIdentifiers::MathSans() -{ - return get_activation_factory().MathSans(); -} - -inline hstring NumeralSystemIdentifiers::MathSanb() -{ - return get_activation_factory().MathSanb(); -} - -inline hstring NumeralSystemIdentifiers::MathMono() -{ - return get_activation_factory().MathMono(); -} - -inline hstring NumeralSystemIdentifiers::ZmthBold() -{ - return get_activation_factory().ZmthBold(); -} - -inline hstring NumeralSystemIdentifiers::ZmthDbl() -{ - return get_activation_factory().ZmthDbl(); -} - -inline hstring NumeralSystemIdentifiers::ZmthSans() -{ - return get_activation_factory().ZmthSans(); -} - -inline hstring NumeralSystemIdentifiers::ZmthSanb() -{ - return get_activation_factory().ZmthSanb(); -} - -inline hstring NumeralSystemIdentifiers::ZmthMono() -{ - return get_activation_factory().ZmthMono(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Graphics.DirectX.Direct3D11.h b/10.0.14393.0/winrt/Windows.Graphics.DirectX.Direct3D11.h deleted file mode 100644 index 2468d6f3b..000000000 --- a/10.0.14393.0/winrt/Windows.Graphics.DirectX.Direct3D11.h +++ /dev/null @@ -1,65 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Graphics.DirectX.Direct3D11.3.h" -#include "Windows.Graphics.DirectX.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Trim() noexcept override - { - try - { - this->shim().Trim(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Graphics::DirectX::Direct3D11 { - -template void impl_IDirect3DDevice::Trim() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Trim()); -} - -template Windows::Graphics::DirectX::Direct3D11::Direct3DSurfaceDescription impl_IDirect3DSurface::Description() const -{ - Windows::Graphics::DirectX::Direct3D11::Direct3DSurfaceDescription value {}; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Graphics.DirectX.h b/10.0.14393.0/winrt/Windows.Graphics.DirectX.h deleted file mode 100644 index 5460a34d6..000000000 --- a/10.0.14393.0/winrt/Windows.Graphics.DirectX.h +++ /dev/null @@ -1,14 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Graphics.DirectX.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Graphics.Display.h b/10.0.14393.0/winrt/Windows.Graphics.Display.h deleted file mode 100644 index a24ef7a39..000000000 --- a/10.0.14393.0/winrt/Windows.Graphics.Display.h +++ /dev/null @@ -1,1105 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Graphics.Display.3.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Graphics::Display { - -template DisplayPropertiesEventHandler::DisplayPropertiesEventHandler(L lambda) : - DisplayPropertiesEventHandler(impl::make_delegate, DisplayPropertiesEventHandler>(std::forward(lambda))) -{} - -template DisplayPropertiesEventHandler::DisplayPropertiesEventHandler(F * function) : - DisplayPropertiesEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template DisplayPropertiesEventHandler::DisplayPropertiesEventHandler(O * object, M method) : - DisplayPropertiesEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void DisplayPropertiesEventHandler::operator()(const Windows::IInspectable & sender) const -{ - check_hresult((*this)->abi_Invoke(get(sender))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentOrientation(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentOrientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NativeOrientation(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().NativeOrientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_OrientationChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().OrientationChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_OrientationChanged(event_token token) noexcept override - { - try - { - this->shim().OrientationChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResolutionScale(Windows::Graphics::Display::ResolutionScale * value) noexcept override - { - try - { - *value = detach(this->shim().ResolutionScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LogicalDpi(float * value) noexcept override - { - try - { - *value = detach(this->shim().LogicalDpi()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawDpiX(float * value) noexcept override - { - try - { - *value = detach(this->shim().RawDpiX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawDpiY(float * value) noexcept override - { - try - { - *value = detach(this->shim().RawDpiY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DpiChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DpiChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DpiChanged(event_token token) noexcept override - { - try - { - this->shim().DpiChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StereoEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().StereoEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StereoEnabledChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StereoEnabledChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StereoEnabledChanged(event_token token) noexcept override - { - try - { - this->shim().StereoEnabledChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetColorProfileAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetColorProfileAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ColorProfileChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ColorProfileChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ColorProfileChanged(event_token token) noexcept override - { - try - { - this->shim().ColorProfileChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RawPixelsPerViewPixel(double * value) noexcept override - { - try - { - *value = detach(this->shim().RawPixelsPerViewPixel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DiagonalSizeInInches(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DiagonalSizeInInches()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ScreenWidthInRawPixels(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ScreenWidthInRawPixels()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScreenHeightInRawPixels(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ScreenHeightInRawPixels()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out current) noexcept override - { - try - { - *current = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *current = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoRotationPreferences(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().AutoRotationPreferences()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoRotationPreferences(Windows::Graphics::Display::DisplayOrientations value) noexcept override - { - try - { - this->shim().AutoRotationPreferences(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DisplayContentsInvalidated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DisplayContentsInvalidated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DisplayContentsInvalidated(event_token token) noexcept override - { - try - { - this->shim().DisplayContentsInvalidated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentOrientation(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentOrientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NativeOrientation(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().NativeOrientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoRotationPreferences(Windows::Graphics::Display::DisplayOrientations * value) noexcept override - { - try - { - *value = detach(this->shim().AutoRotationPreferences()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoRotationPreferences(Windows::Graphics::Display::DisplayOrientations value) noexcept override - { - try - { - this->shim().AutoRotationPreferences(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_OrientationChanged(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().OrientationChanged(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_OrientationChanged(event_token token) noexcept override - { - try - { - this->shim().OrientationChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResolutionScale(Windows::Graphics::Display::ResolutionScale * value) noexcept override - { - try - { - *value = detach(this->shim().ResolutionScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LogicalDpi(float * value) noexcept override - { - try - { - *value = detach(this->shim().LogicalDpi()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LogicalDpiChanged(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LogicalDpiChanged(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LogicalDpiChanged(event_token token) noexcept override - { - try - { - this->shim().LogicalDpiChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StereoEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().StereoEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StereoEnabledChanged(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StereoEnabledChanged(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StereoEnabledChanged(event_token token) noexcept override - { - try - { - this->shim().StereoEnabledChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetColorProfileAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetColorProfileAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ColorProfileChanged(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ColorProfileChanged(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ColorProfileChanged(event_token token) noexcept override - { - try - { - this->shim().ColorProfileChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DisplayContentsInvalidated(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DisplayContentsInvalidated(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DisplayContentsInvalidated(event_token token) noexcept override - { - try - { - this->shim().DisplayContentsInvalidated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Graphics::Display { - -template Windows::Graphics::Display::DisplayInformation impl_IDisplayInformationStatics::GetForCurrentView() const -{ - Windows::Graphics::Display::DisplayInformation current { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(current))); - return current; -} - -template Windows::Graphics::Display::DisplayOrientations impl_IDisplayInformationStatics::AutoRotationPreferences() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoRotationPreferences(&value)); - return value; -} - -template void impl_IDisplayInformationStatics::AutoRotationPreferences(Windows::Graphics::Display::DisplayOrientations value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoRotationPreferences(value)); -} - -template event_token impl_IDisplayInformationStatics::DisplayContentsInvalidated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DisplayContentsInvalidated(get(handler), &token)); - return token; -} - -template event_revoker impl_IDisplayInformationStatics::DisplayContentsInvalidated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Display::IDisplayInformationStatics::remove_DisplayContentsInvalidated, DisplayContentsInvalidated(handler)); -} - -template void impl_IDisplayInformationStatics::DisplayContentsInvalidated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DisplayContentsInvalidated(token)); -} - -template Windows::Graphics::Display::DisplayOrientations impl_IDisplayInformation::CurrentOrientation() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentOrientation(&value)); - return value; -} - -template Windows::Graphics::Display::DisplayOrientations impl_IDisplayInformation::NativeOrientation() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_NativeOrientation(&value)); - return value; -} - -template event_token impl_IDisplayInformation::OrientationChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_OrientationChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IDisplayInformation::OrientationChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Display::IDisplayInformation::remove_OrientationChanged, OrientationChanged(handler)); -} - -template void impl_IDisplayInformation::OrientationChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_OrientationChanged(token)); -} - -template Windows::Graphics::Display::ResolutionScale impl_IDisplayInformation::ResolutionScale() const -{ - Windows::Graphics::Display::ResolutionScale value {}; - check_hresult(static_cast(static_cast(*this))->get_ResolutionScale(&value)); - return value; -} - -template float impl_IDisplayInformation::LogicalDpi() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_LogicalDpi(&value)); - return value; -} - -template float impl_IDisplayInformation::RawDpiX() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RawDpiX(&value)); - return value; -} - -template float impl_IDisplayInformation::RawDpiY() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RawDpiY(&value)); - return value; -} - -template event_token impl_IDisplayInformation::DpiChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DpiChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IDisplayInformation::DpiChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Display::IDisplayInformation::remove_DpiChanged, DpiChanged(handler)); -} - -template void impl_IDisplayInformation::DpiChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DpiChanged(token)); -} - -template bool impl_IDisplayInformation::StereoEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_StereoEnabled(&value)); - return value; -} - -template event_token impl_IDisplayInformation::StereoEnabledChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StereoEnabledChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IDisplayInformation::StereoEnabledChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Display::IDisplayInformation::remove_StereoEnabledChanged, StereoEnabledChanged(handler)); -} - -template void impl_IDisplayInformation::StereoEnabledChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StereoEnabledChanged(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IDisplayInformation::GetColorProfileAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetColorProfileAsync(put(asyncInfo))); - return asyncInfo; -} - -template event_token impl_IDisplayInformation::ColorProfileChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ColorProfileChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IDisplayInformation::ColorProfileChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Display::IDisplayInformation::remove_ColorProfileChanged, ColorProfileChanged(handler)); -} - -template void impl_IDisplayInformation::ColorProfileChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ColorProfileChanged(token)); -} - -template double impl_IDisplayInformation2::RawPixelsPerViewPixel() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_RawPixelsPerViewPixel(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IDisplayInformation3::DiagonalSizeInInches() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DiagonalSizeInInches(put(value))); - return value; -} - -template uint32_t impl_IDisplayInformation4::ScreenWidthInRawPixels() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ScreenWidthInRawPixels(&value)); - return value; -} - -template uint32_t impl_IDisplayInformation4::ScreenHeightInRawPixels() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ScreenHeightInRawPixels(&value)); - return value; -} - -template Windows::Graphics::Display::DisplayOrientations impl_IDisplayPropertiesStatics::CurrentOrientation() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentOrientation(&value)); - return value; -} - -template Windows::Graphics::Display::DisplayOrientations impl_IDisplayPropertiesStatics::NativeOrientation() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_NativeOrientation(&value)); - return value; -} - -template Windows::Graphics::Display::DisplayOrientations impl_IDisplayPropertiesStatics::AutoRotationPreferences() const -{ - Windows::Graphics::Display::DisplayOrientations value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoRotationPreferences(&value)); - return value; -} - -template void impl_IDisplayPropertiesStatics::AutoRotationPreferences(Windows::Graphics::Display::DisplayOrientations value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoRotationPreferences(value)); -} - -template event_token impl_IDisplayPropertiesStatics::OrientationChanged(const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_OrientationChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IDisplayPropertiesStatics::OrientationChanged(auto_revoke_t, const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Display::IDisplayPropertiesStatics::remove_OrientationChanged, OrientationChanged(handler)); -} - -template void impl_IDisplayPropertiesStatics::OrientationChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_OrientationChanged(token)); -} - -template Windows::Graphics::Display::ResolutionScale impl_IDisplayPropertiesStatics::ResolutionScale() const -{ - Windows::Graphics::Display::ResolutionScale value {}; - check_hresult(static_cast(static_cast(*this))->get_ResolutionScale(&value)); - return value; -} - -template float impl_IDisplayPropertiesStatics::LogicalDpi() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_LogicalDpi(&value)); - return value; -} - -template event_token impl_IDisplayPropertiesStatics::LogicalDpiChanged(const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LogicalDpiChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IDisplayPropertiesStatics::LogicalDpiChanged(auto_revoke_t, const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Display::IDisplayPropertiesStatics::remove_LogicalDpiChanged, LogicalDpiChanged(handler)); -} - -template void impl_IDisplayPropertiesStatics::LogicalDpiChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LogicalDpiChanged(token)); -} - -template bool impl_IDisplayPropertiesStatics::StereoEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_StereoEnabled(&value)); - return value; -} - -template event_token impl_IDisplayPropertiesStatics::StereoEnabledChanged(const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StereoEnabledChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IDisplayPropertiesStatics::StereoEnabledChanged(auto_revoke_t, const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Display::IDisplayPropertiesStatics::remove_StereoEnabledChanged, StereoEnabledChanged(handler)); -} - -template void impl_IDisplayPropertiesStatics::StereoEnabledChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StereoEnabledChanged(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IDisplayPropertiesStatics::GetColorProfileAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetColorProfileAsync(put(asyncInfo))); - return asyncInfo; -} - -template event_token impl_IDisplayPropertiesStatics::ColorProfileChanged(const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ColorProfileChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IDisplayPropertiesStatics::ColorProfileChanged(auto_revoke_t, const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Display::IDisplayPropertiesStatics::remove_ColorProfileChanged, ColorProfileChanged(handler)); -} - -template void impl_IDisplayPropertiesStatics::ColorProfileChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ColorProfileChanged(token)); -} - -template event_token impl_IDisplayPropertiesStatics::DisplayContentsInvalidated(const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DisplayContentsInvalidated(get(handler), &token)); - return token; -} - -template event_revoker impl_IDisplayPropertiesStatics::DisplayContentsInvalidated(auto_revoke_t, const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Display::IDisplayPropertiesStatics::remove_DisplayContentsInvalidated, DisplayContentsInvalidated(handler)); -} - -template void impl_IDisplayPropertiesStatics::DisplayContentsInvalidated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DisplayContentsInvalidated(token)); -} - -inline Windows::Graphics::Display::DisplayInformation DisplayInformation::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline Windows::Graphics::Display::DisplayOrientations DisplayInformation::AutoRotationPreferences() -{ - return get_activation_factory().AutoRotationPreferences(); -} - -inline void DisplayInformation::AutoRotationPreferences(Windows::Graphics::Display::DisplayOrientations value) -{ - get_activation_factory().AutoRotationPreferences(value); -} - -inline event_token DisplayInformation::DisplayContentsInvalidated(const Windows::Foundation::TypedEventHandler & handler) -{ - return get_activation_factory().DisplayContentsInvalidated(handler); -} - -inline factory_event_revoker DisplayInformation::DisplayContentsInvalidated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Graphics::Display::IDisplayInformationStatics::remove_DisplayContentsInvalidated, factory.DisplayContentsInvalidated(handler) }; -} - -inline void DisplayInformation::DisplayContentsInvalidated(event_token token) -{ - get_activation_factory().DisplayContentsInvalidated(token); -} - -inline Windows::Graphics::Display::DisplayOrientations DisplayProperties::CurrentOrientation() -{ - return get_activation_factory().CurrentOrientation(); -} - -inline Windows::Graphics::Display::DisplayOrientations DisplayProperties::NativeOrientation() -{ - return get_activation_factory().NativeOrientation(); -} - -inline Windows::Graphics::Display::DisplayOrientations DisplayProperties::AutoRotationPreferences() -{ - return get_activation_factory().AutoRotationPreferences(); -} - -inline void DisplayProperties::AutoRotationPreferences(Windows::Graphics::Display::DisplayOrientations value) -{ - get_activation_factory().AutoRotationPreferences(value); -} - -inline event_token DisplayProperties::OrientationChanged(const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) -{ - return get_activation_factory().OrientationChanged(handler); -} - -inline factory_event_revoker DisplayProperties::OrientationChanged(auto_revoke_t, const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Graphics::Display::IDisplayPropertiesStatics::remove_OrientationChanged, factory.OrientationChanged(handler) }; -} - -inline void DisplayProperties::OrientationChanged(event_token token) -{ - get_activation_factory().OrientationChanged(token); -} - -inline Windows::Graphics::Display::ResolutionScale DisplayProperties::ResolutionScale() -{ - return get_activation_factory().ResolutionScale(); -} - -inline float DisplayProperties::LogicalDpi() -{ - return get_activation_factory().LogicalDpi(); -} - -inline event_token DisplayProperties::LogicalDpiChanged(const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) -{ - return get_activation_factory().LogicalDpiChanged(handler); -} - -inline factory_event_revoker DisplayProperties::LogicalDpiChanged(auto_revoke_t, const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Graphics::Display::IDisplayPropertiesStatics::remove_LogicalDpiChanged, factory.LogicalDpiChanged(handler) }; -} - -inline void DisplayProperties::LogicalDpiChanged(event_token token) -{ - get_activation_factory().LogicalDpiChanged(token); -} - -inline bool DisplayProperties::StereoEnabled() -{ - return get_activation_factory().StereoEnabled(); -} - -inline event_token DisplayProperties::StereoEnabledChanged(const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) -{ - return get_activation_factory().StereoEnabledChanged(handler); -} - -inline factory_event_revoker DisplayProperties::StereoEnabledChanged(auto_revoke_t, const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Graphics::Display::IDisplayPropertiesStatics::remove_StereoEnabledChanged, factory.StereoEnabledChanged(handler) }; -} - -inline void DisplayProperties::StereoEnabledChanged(event_token token) -{ - get_activation_factory().StereoEnabledChanged(token); -} - -inline Windows::Foundation::IAsyncOperation DisplayProperties::GetColorProfileAsync() -{ - return get_activation_factory().GetColorProfileAsync(); -} - -inline event_token DisplayProperties::ColorProfileChanged(const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) -{ - return get_activation_factory().ColorProfileChanged(handler); -} - -inline factory_event_revoker DisplayProperties::ColorProfileChanged(auto_revoke_t, const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Graphics::Display::IDisplayPropertiesStatics::remove_ColorProfileChanged, factory.ColorProfileChanged(handler) }; -} - -inline void DisplayProperties::ColorProfileChanged(event_token token) -{ - get_activation_factory().ColorProfileChanged(token); -} - -inline event_token DisplayProperties::DisplayContentsInvalidated(const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) -{ - return get_activation_factory().DisplayContentsInvalidated(handler); -} - -inline factory_event_revoker DisplayProperties::DisplayContentsInvalidated(auto_revoke_t, const Windows::Graphics::Display::DisplayPropertiesEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Graphics::Display::IDisplayPropertiesStatics::remove_DisplayContentsInvalidated, factory.DisplayContentsInvalidated(handler) }; -} - -inline void DisplayProperties::DisplayContentsInvalidated(event_token token) -{ - get_activation_factory().DisplayContentsInvalidated(token); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Graphics.Effects.h b/10.0.14393.0/winrt/Windows.Graphics.Effects.h deleted file mode 100644 index 6bb9b61fb..000000000 --- a/10.0.14393.0/winrt/Windows.Graphics.Effects.h +++ /dev/null @@ -1,65 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Graphics.Effects.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out name) noexcept override - { - try - { - *name = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *name = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in name) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&name)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -} - -namespace Windows::Graphics::Effects { - -template hstring impl_IGraphicsEffect::Name() const -{ - hstring name; - check_hresult(static_cast(static_cast(*this))->get_Name(put(name))); - return name; -} - -template void impl_IGraphicsEffect::Name(hstring_ref name) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(name))); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Graphics.Holographic.h b/10.0.14393.0/winrt/Windows.Graphics.Holographic.h deleted file mode 100644 index 0a3c98ee3..000000000 --- a/10.0.14393.0/winrt/Windows.Graphics.Holographic.h +++ /dev/null @@ -1,910 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Graphics.DirectX.Direct3D11.3.h" -#include "internal/Windows.UI.Core.3.h" -#include "internal/Windows.Perception.Spatial.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Perception.3.h" -#include "internal/Windows.Graphics.Holographic.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RenderTargetSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RenderTargetSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportScaleFactor(double * value) noexcept override - { - try - { - *value = detach(this->shim().ViewportScaleFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ViewportScaleFactor(double value) noexcept override - { - try - { - this->shim().ViewportScaleFactor(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStereo(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStereo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetNearPlaneDistance(double value) noexcept override - { - try - { - this->shim().SetNearPlaneDistance(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetFarPlaneDistance(double value) noexcept override - { - try - { - this->shim().SetFarPlaneDistance(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HolographicCamera(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HolographicCamera()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Viewport(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Viewport()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetViewTransform(abi_arg_in coordinateSystem, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TryGetViewTransform(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProjectionTransform(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProjectionTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetCullingFrustum(abi_arg_in coordinateSystem, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TryGetCullingFrustum(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetVisibleFrustum(abi_arg_in coordinateSystem, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TryGetVisibleFrustum(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NearPlaneDistance(double * value) noexcept override - { - try - { - *value = detach(this->shim().NearPlaneDistance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FarPlaneDistance(double * value) noexcept override - { - try - { - *value = detach(this->shim().FarPlaneDistance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetFocusPoint(abi_arg_in coordinateSystem, abi_arg_in position) noexcept override - { - try - { - this->shim().SetFocusPoint(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&position)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetFocusPointWithNormal(abi_arg_in coordinateSystem, abi_arg_in position, abi_arg_in normal) noexcept override - { - try - { - this->shim().SetFocusPoint(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&position), *reinterpret_cast(&normal)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetFocusPointWithNormalLinearVelocity(abi_arg_in coordinateSystem, abi_arg_in position, abi_arg_in normal, abi_arg_in linearVelocity) noexcept override - { - try - { - this->shim().SetFocusPoint(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&position), *reinterpret_cast(&normal), *reinterpret_cast(&linearVelocity)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Direct3D11Device(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Direct3D11Device()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Direct3D11BackBuffer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Direct3D11BackBuffer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AddedCameras(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AddedCameras()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemovedCameras(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RemovedCameras()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRenderingParameters(abi_arg_in cameraPose, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetRenderingParameters(*reinterpret_cast(&cameraPose))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentPrediction(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentPrediction()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateCurrentPrediction() noexcept override - { - try - { - this->shim().UpdateCurrentPrediction(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PresentUsingCurrentPrediction(Windows::Graphics::Holographic::HolographicFramePresentResult * result) noexcept override - { - try - { - *result = detach(this->shim().PresentUsingCurrentPrediction()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PresentUsingCurrentPredictionWithBehavior(Windows::Graphics::Holographic::HolographicFramePresentWaitBehavior waitBehavior, Windows::Graphics::Holographic::HolographicFramePresentResult * result) noexcept override - { - try - { - *result = detach(this->shim().PresentUsingCurrentPrediction(waitBehavior)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WaitForFrameToFinish() noexcept override - { - try - { - this->shim().WaitForFrameToFinish(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CameraPoses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CameraPoses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrimaryAdapterId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryAdapterId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDirect3D11Device(abi_arg_in value) noexcept override - { - try - { - this->shim().SetDirect3D11Device(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CameraAdded(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().CameraAdded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CameraAdded(event_token cookie) noexcept override - { - try - { - this->shim().CameraAdded(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CameraRemoved(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().CameraRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CameraRemoved(event_token cookie) noexcept override - { - try - { - this->shim().CameraRemoved(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateNextFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateNextFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Camera(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Camera()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Camera(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Camera()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateForCoreWindow(abi_arg_in window, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateForCoreWindow(*reinterpret_cast(&window))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Graphics::Holographic { - -template Windows::Foundation::Size impl_IHolographicCamera::RenderTargetSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_RenderTargetSize(put(value))); - return value; -} - -template double impl_IHolographicCamera::ViewportScaleFactor() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewportScaleFactor(&value)); - return value; -} - -template void impl_IHolographicCamera::ViewportScaleFactor(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ViewportScaleFactor(value)); -} - -template bool impl_IHolographicCamera::IsStereo() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStereo(&value)); - return value; -} - -template uint32_t impl_IHolographicCamera::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template void impl_IHolographicCamera::SetNearPlaneDistance(double value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetNearPlaneDistance(value)); -} - -template void impl_IHolographicCamera::SetFarPlaneDistance(double value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFarPlaneDistance(value)); -} - -template Windows::Graphics::Holographic::HolographicCamera impl_IHolographicSpaceCameraAddedEventArgs::Camera() const -{ - Windows::Graphics::Holographic::HolographicCamera value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Camera(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IHolographicSpaceCameraAddedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::Graphics::Holographic::HolographicCamera impl_IHolographicSpaceCameraRemovedEventArgs::Camera() const -{ - Windows::Graphics::Holographic::HolographicCamera value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Camera(put(value))); - return value; -} - -template Windows::Graphics::Holographic::HolographicAdapterId impl_IHolographicSpace::PrimaryAdapterId() const -{ - Windows::Graphics::Holographic::HolographicAdapterId value {}; - check_hresult(static_cast(static_cast(*this))->get_PrimaryAdapterId(put(value))); - return value; -} - -template void impl_IHolographicSpace::SetDirect3D11Device(const Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDirect3D11Device(get(value))); -} - -template event_token impl_IHolographicSpace::CameraAdded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_CameraAdded(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IHolographicSpace::CameraAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Holographic::IHolographicSpace::remove_CameraAdded, CameraAdded(handler)); -} - -template void impl_IHolographicSpace::CameraAdded(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CameraAdded(cookie)); -} - -template event_token impl_IHolographicSpace::CameraRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_CameraRemoved(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IHolographicSpace::CameraRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Holographic::IHolographicSpace::remove_CameraRemoved, CameraRemoved(handler)); -} - -template void impl_IHolographicSpace::CameraRemoved(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CameraRemoved(cookie)); -} - -template Windows::Graphics::Holographic::HolographicFrame impl_IHolographicSpace::CreateNextFrame() const -{ - Windows::Graphics::Holographic::HolographicFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateNextFrame(put(value))); - return value; -} - -template Windows::Graphics::Holographic::HolographicSpace impl_IHolographicSpaceStatics::CreateForCoreWindow(const Windows::UI::Core::CoreWindow & window) const -{ - Windows::Graphics::Holographic::HolographicSpace value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateForCoreWindow(get(window), put(value))); - return value; -} - -template Windows::Graphics::Holographic::HolographicCamera impl_IHolographicCameraPose::HolographicCamera() const -{ - Windows::Graphics::Holographic::HolographicCamera value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HolographicCamera(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IHolographicCameraPose::Viewport() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_Viewport(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IHolographicCameraPose::TryGetViewTransform(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->abi_TryGetViewTransform(get(coordinateSystem), put(value))); - return value; -} - -template Windows::Graphics::Holographic::HolographicStereoTransform impl_IHolographicCameraPose::ProjectionTransform() const -{ - Windows::Graphics::Holographic::HolographicStereoTransform value {}; - check_hresult(static_cast(static_cast(*this))->get_ProjectionTransform(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IHolographicCameraPose::TryGetCullingFrustum(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->abi_TryGetCullingFrustum(get(coordinateSystem), put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IHolographicCameraPose::TryGetVisibleFrustum(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->abi_TryGetVisibleFrustum(get(coordinateSystem), put(value))); - return value; -} - -template double impl_IHolographicCameraPose::NearPlaneDistance() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_NearPlaneDistance(&value)); - return value; -} - -template double impl_IHolographicCameraPose::FarPlaneDistance() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FarPlaneDistance(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IHolographicFramePrediction::CameraPoses() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_CameraPoses(put(value))); - return value; -} - -template Windows::Perception::PerceptionTimestamp impl_IHolographicFramePrediction::Timestamp() const -{ - Windows::Perception::PerceptionTimestamp value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template void impl_IHolographicCameraRenderingParameters::SetFocusPoint(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Foundation::Numerics::float3 & position) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFocusPoint(get(coordinateSystem), get(position))); -} - -template void impl_IHolographicCameraRenderingParameters::SetFocusPoint(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Foundation::Numerics::float3 & position, const Windows::Foundation::Numerics::float3 & normal) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFocusPointWithNormal(get(coordinateSystem), get(position), get(normal))); -} - -template void impl_IHolographicCameraRenderingParameters::SetFocusPoint(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Foundation::Numerics::float3 & position, const Windows::Foundation::Numerics::float3 & normal, const Windows::Foundation::Numerics::float3 & linearVelocity) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFocusPointWithNormalLinearVelocity(get(coordinateSystem), get(position), get(normal), get(linearVelocity))); -} - -template Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice impl_IHolographicCameraRenderingParameters::Direct3D11Device() const -{ - Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice value; - check_hresult(static_cast(static_cast(*this))->get_Direct3D11Device(put(value))); - return value; -} - -template Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface impl_IHolographicCameraRenderingParameters::Direct3D11BackBuffer() const -{ - Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface value; - check_hresult(static_cast(static_cast(*this))->get_Direct3D11BackBuffer(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IHolographicFrame::AddedCameras() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AddedCameras(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IHolographicFrame::RemovedCameras() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_RemovedCameras(put(value))); - return value; -} - -template Windows::Graphics::Holographic::HolographicCameraRenderingParameters impl_IHolographicFrame::GetRenderingParameters(const Windows::Graphics::Holographic::HolographicCameraPose & cameraPose) const -{ - Windows::Graphics::Holographic::HolographicCameraRenderingParameters value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetRenderingParameters(get(cameraPose), put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IHolographicFrame::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template Windows::Graphics::Holographic::HolographicFramePrediction impl_IHolographicFrame::CurrentPrediction() const -{ - Windows::Graphics::Holographic::HolographicFramePrediction value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentPrediction(put(value))); - return value; -} - -template void impl_IHolographicFrame::UpdateCurrentPrediction() const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateCurrentPrediction()); -} - -template Windows::Graphics::Holographic::HolographicFramePresentResult impl_IHolographicFrame::PresentUsingCurrentPrediction() const -{ - Windows::Graphics::Holographic::HolographicFramePresentResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_PresentUsingCurrentPrediction(&result)); - return result; -} - -template Windows::Graphics::Holographic::HolographicFramePresentResult impl_IHolographicFrame::PresentUsingCurrentPrediction(Windows::Graphics::Holographic::HolographicFramePresentWaitBehavior waitBehavior) const -{ - Windows::Graphics::Holographic::HolographicFramePresentResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_PresentUsingCurrentPredictionWithBehavior(waitBehavior, &result)); - return result; -} - -template void impl_IHolographicFrame::WaitForFrameToFinish() const -{ - check_hresult(static_cast(static_cast(*this))->abi_WaitForFrameToFinish()); -} - -inline Windows::Graphics::Holographic::HolographicSpace HolographicSpace::CreateForCoreWindow(const Windows::UI::Core::CoreWindow & window) -{ - return get_activation_factory().CreateForCoreWindow(window); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Graphics.Imaging.h b/10.0.14393.0/winrt/Windows.Graphics.Imaging.h deleted file mode 100644 index 0d4629493..000000000 --- a/10.0.14393.0/winrt/Windows.Graphics.Imaging.h +++ /dev/null @@ -1,2331 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Graphics.DirectX.Direct3D11.3.h" -#include "internal/Windows.Graphics.Imaging.3.h" -#include "Windows.Foundation.h" -#include "Windows.Foundation.Collections.h" -#include "Windows.Storage.Streams.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPlaneCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetPlaneCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPlaneDescription(int32_t index, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetPlaneDescription(index)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CodecId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().CodecId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FileExtensions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FileExtensions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MimeTypes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MimeTypes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BitmapContainerProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BitmapContainerProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DecoderInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DecoderInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FrameCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPreviewAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetPreviewAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFrameAsync(uint32_t frameIndex, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetFrameAsync(frameIndex)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BmpDecoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().BmpDecoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JpegDecoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().JpegDecoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PngDecoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().PngDecoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TiffDecoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TiffDecoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GifDecoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GifDecoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JpegXRDecoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().JpegXRDecoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IcoDecoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().IcoDecoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDecoderInformationEnumerator(abi_arg_out> decoderInformationEnumerator) noexcept override - { - try - { - *decoderInformationEnumerator = detach(this->shim().GetDecoderInformationEnumerator()); - return S_OK; - } - catch (...) - { - *decoderInformationEnumerator = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAsync(abi_arg_in stream, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().CreateAsync(*reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithIdAsync(GUID decoderId, abi_arg_in stream, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().CreateAsync(decoderId, *reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EncoderInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EncoderInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitmapProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BitmapProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitmapContainerProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BitmapContainerProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsThumbnailGenerated(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsThumbnailGenerated()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsThumbnailGenerated(bool value) noexcept override - { - try - { - this->shim().IsThumbnailGenerated(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GeneratedThumbnailWidth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GeneratedThumbnailWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GeneratedThumbnailWidth(uint32_t value) noexcept override - { - try - { - this->shim().GeneratedThumbnailWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GeneratedThumbnailHeight(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GeneratedThumbnailHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GeneratedThumbnailHeight(uint32_t value) noexcept override - { - try - { - this->shim().GeneratedThumbnailHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitmapTransform(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BitmapTransform()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPixelData(Windows::Graphics::Imaging::BitmapPixelFormat pixelFormat, Windows::Graphics::Imaging::BitmapAlphaMode alphaMode, uint32_t width, uint32_t height, double dpiX, double dpiY, uint32_t __pixelsSize, abi_arg_in * pixels) noexcept override - { - try - { - this->shim().SetPixelData(pixelFormat, alphaMode, width, height, dpiX, dpiY, array_ref(pixels, pixels + __pixelsSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GoToNextFrameAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GoToNextFrameAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GoToNextFrameWithEncodingOptionsAsync(abi_arg_in>> encodingOptions, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GoToNextFrameAsync(*reinterpret_cast> *>(&encodingOptions))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FlushAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().FlushAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BmpEncoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().BmpEncoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JpegEncoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().JpegEncoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PngEncoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().PngEncoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TiffEncoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TiffEncoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GifEncoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().GifEncoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JpegXREncoderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().JpegXREncoderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEncoderInformationEnumerator(abi_arg_out> encoderInformationEnumerator) noexcept override - { - try - { - *encoderInformationEnumerator = detach(this->shim().GetEncoderInformationEnumerator()); - return S_OK; - } - catch (...) - { - *encoderInformationEnumerator = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAsync(GUID encoderId, abi_arg_in stream, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().CreateAsync(encoderId, *reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithEncodingOptionsAsync(GUID encoderId, abi_arg_in stream, abi_arg_in>> encodingOptions, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().CreateAsync(encoderId, *reinterpret_cast(&stream), *reinterpret_cast> *>(&encodingOptions))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateForTranscodingAsync(abi_arg_in stream, abi_arg_in bitmapDecoder, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().CreateForTranscodingAsync(*reinterpret_cast(&stream), *reinterpret_cast(&bitmapDecoder))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateForInPlacePropertyEncodingAsync(abi_arg_in bitmapDecoder, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().CreateForInPlacePropertyEncodingAsync(*reinterpret_cast(&bitmapDecoder))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetSoftwareBitmap(abi_arg_in bitmap) noexcept override - { - try - { - this->shim().SetSoftwareBitmap(*reinterpret_cast(&bitmap)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetThumbnailAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetThumbnailAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitmapProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BitmapProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitmapPixelFormat(Windows::Graphics::Imaging::BitmapPixelFormat * value) noexcept override - { - try - { - *value = detach(this->shim().BitmapPixelFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitmapAlphaMode(Windows::Graphics::Imaging::BitmapAlphaMode * value) noexcept override - { - try - { - *value = detach(this->shim().BitmapAlphaMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DpiX(double * value) noexcept override - { - try - { - *value = detach(this->shim().DpiX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DpiY(double * value) noexcept override - { - try - { - *value = detach(this->shim().DpiY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PixelWidth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PixelWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PixelHeight(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PixelHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientedPixelWidth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OrientedPixelWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientedPixelHeight(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OrientedPixelHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPixelDataAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetPixelDataAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPixelDataTransformedAsync(Windows::Graphics::Imaging::BitmapPixelFormat pixelFormat, Windows::Graphics::Imaging::BitmapAlphaMode alphaMode, abi_arg_in transform, Windows::Graphics::Imaging::ExifOrientationMode exifOrientationMode, Windows::Graphics::Imaging::ColorManagementMode colorManagementMode, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetPixelDataAsync(pixelFormat, alphaMode, *reinterpret_cast(&transform), exifOrientationMode, colorManagementMode)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetSoftwareBitmapAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetSoftwareBitmapAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSoftwareBitmapConvertedAsync(Windows::Graphics::Imaging::BitmapPixelFormat pixelFormat, Windows::Graphics::Imaging::BitmapAlphaMode alphaMode, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetSoftwareBitmapAsync(pixelFormat, alphaMode)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSoftwareBitmapTransformedAsync(Windows::Graphics::Imaging::BitmapPixelFormat pixelFormat, Windows::Graphics::Imaging::BitmapAlphaMode alphaMode, abi_arg_in transform, Windows::Graphics::Imaging::ExifOrientationMode exifOrientationMode, Windows::Graphics::Imaging::ColorManagementMode colorManagementMode, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetSoftwareBitmapAsync(pixelFormat, alphaMode, *reinterpret_cast(&transform), exifOrientationMode, colorManagementMode)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetPropertiesAsync(abi_arg_in>> propertiesToSet, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetPropertiesAsync(*reinterpret_cast> *>(&propertiesToSet))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPropertiesAsync(abi_arg_in> propertiesToRetrieve, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetPropertiesAsync(*reinterpret_cast *>(&propertiesToRetrieve))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ScaledWidth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ScaledWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScaledWidth(uint32_t value) noexcept override - { - try - { - this->shim().ScaledWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScaledHeight(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ScaledHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScaledHeight(uint32_t value) noexcept override - { - try - { - this->shim().ScaledHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InterpolationMode(Windows::Graphics::Imaging::BitmapInterpolationMode * value) noexcept override - { - try - { - *value = detach(this->shim().InterpolationMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InterpolationMode(Windows::Graphics::Imaging::BitmapInterpolationMode value) noexcept override - { - try - { - this->shim().InterpolationMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Flip(Windows::Graphics::Imaging::BitmapFlip * value) noexcept override - { - try - { - *value = detach(this->shim().Flip()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Flip(Windows::Graphics::Imaging::BitmapFlip value) noexcept override - { - try - { - this->shim().Flip(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rotation(Windows::Graphics::Imaging::BitmapRotation * value) noexcept override - { - try - { - *value = detach(this->shim().Rotation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Rotation(Windows::Graphics::Imaging::BitmapRotation value) noexcept override - { - try - { - this->shim().Rotation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Bounds(abi_arg_in value) noexcept override - { - try - { - this->shim().Bounds(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::Foundation::PropertyType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in value, Windows::Foundation::PropertyType type, abi_arg_out bitmapTypedValue) noexcept override - { - try - { - *bitmapTypedValue = detach(this->shim().Create(*reinterpret_cast(&value), type)); - return S_OK; - } - catch (...) - { - *bitmapTypedValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_DetachPixelData(uint32_t * __pixelDataSize, abi_arg_out * pixelData) noexcept override - { - try - { - std::tie(*__pixelDataSize, *pixelData) = detach(this->shim().DetachPixelData()); - return S_OK; - } - catch (...) - { - *__pixelDataSize = 0; - *pixelData = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BitmapPixelFormat(Windows::Graphics::Imaging::BitmapPixelFormat * value) noexcept override - { - try - { - *value = detach(this->shim().BitmapPixelFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitmapAlphaMode(Windows::Graphics::Imaging::BitmapAlphaMode * value) noexcept override - { - try - { - *value = detach(this->shim().BitmapAlphaMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PixelWidth(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PixelWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PixelHeight(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PixelHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsReadOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DpiX(double value) noexcept override - { - try - { - this->shim().DpiX(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DpiX(double * value) noexcept override - { - try - { - *value = detach(this->shim().DpiX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DpiY(double value) noexcept override - { - try - { - this->shim().DpiY(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DpiY(double * value) noexcept override - { - try - { - *value = detach(this->shim().DpiY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LockBuffer(Windows::Graphics::Imaging::BitmapBufferAccessMode mode, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LockBuffer(mode)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyTo(abi_arg_in bitmap) noexcept override - { - try - { - this->shim().CopyTo(*reinterpret_cast(&bitmap)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyFromBuffer(abi_arg_in buffer) noexcept override - { - try - { - this->shim().CopyFromBuffer(*reinterpret_cast(&buffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyToBuffer(abi_arg_in buffer) noexcept override - { - try - { - this->shim().CopyToBuffer(*reinterpret_cast(&buffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetReadOnlyView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetReadOnlyView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(format, width, height)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithAlpha(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, Windows::Graphics::Imaging::BitmapAlphaMode alpha, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithAlpha(format, width, height, alpha)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Copy(abi_arg_in source, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Copy(*reinterpret_cast(&source))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Convert(abi_arg_in source, Windows::Graphics::Imaging::BitmapPixelFormat format, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Convert(*reinterpret_cast(&source), format)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertWithAlpha(abi_arg_in source, Windows::Graphics::Imaging::BitmapPixelFormat format, Windows::Graphics::Imaging::BitmapAlphaMode alpha, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Convert(*reinterpret_cast(&source), format, alpha)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCopyFromBuffer(abi_arg_in source, Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateCopyFromBuffer(*reinterpret_cast(&source), format, width, height)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCopyWithAlphaFromBuffer(abi_arg_in source, Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, Windows::Graphics::Imaging::BitmapAlphaMode alpha, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateCopyFromBuffer(*reinterpret_cast(&source), format, width, height, alpha)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCopyFromSurfaceAsync(abi_arg_in surface, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateCopyFromSurfaceAsync(*reinterpret_cast(&surface))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCopyWithAlphaFromSurfaceAsync(abi_arg_in surface, Windows::Graphics::Imaging::BitmapAlphaMode alpha, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateCopyFromSurfaceAsync(*reinterpret_cast(&surface), alpha)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Graphics::Imaging { - -template uint32_t impl_IBitmapTransform::ScaledWidth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ScaledWidth(&value)); - return value; -} - -template void impl_IBitmapTransform::ScaledWidth(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScaledWidth(value)); -} - -template uint32_t impl_IBitmapTransform::ScaledHeight() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ScaledHeight(&value)); - return value; -} - -template void impl_IBitmapTransform::ScaledHeight(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScaledHeight(value)); -} - -template Windows::Graphics::Imaging::BitmapInterpolationMode impl_IBitmapTransform::InterpolationMode() const -{ - Windows::Graphics::Imaging::BitmapInterpolationMode value {}; - check_hresult(static_cast(static_cast(*this))->get_InterpolationMode(&value)); - return value; -} - -template void impl_IBitmapTransform::InterpolationMode(Windows::Graphics::Imaging::BitmapInterpolationMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InterpolationMode(value)); -} - -template Windows::Graphics::Imaging::BitmapFlip impl_IBitmapTransform::Flip() const -{ - Windows::Graphics::Imaging::BitmapFlip value {}; - check_hresult(static_cast(static_cast(*this))->get_Flip(&value)); - return value; -} - -template void impl_IBitmapTransform::Flip(Windows::Graphics::Imaging::BitmapFlip value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Flip(value)); -} - -template Windows::Graphics::Imaging::BitmapRotation impl_IBitmapTransform::Rotation() const -{ - Windows::Graphics::Imaging::BitmapRotation value {}; - check_hresult(static_cast(static_cast(*this))->get_Rotation(&value)); - return value; -} - -template void impl_IBitmapTransform::Rotation(Windows::Graphics::Imaging::BitmapRotation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Rotation(value)); -} - -template Windows::Graphics::Imaging::BitmapBounds impl_IBitmapTransform::Bounds() const -{ - Windows::Graphics::Imaging::BitmapBounds value {}; - check_hresult(static_cast(static_cast(*this))->get_Bounds(put(value))); - return value; -} - -template void impl_IBitmapTransform::Bounds(const Windows::Graphics::Imaging::BitmapBounds & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Bounds(get(value))); -} - -template Windows::IInspectable impl_IBitmapTypedValue::Value() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template Windows::Foundation::PropertyType impl_IBitmapTypedValue::Type() const -{ - Windows::Foundation::PropertyType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::Graphics::Imaging::BitmapTypedValue impl_IBitmapTypedValueFactory::Create(const Windows::IInspectable & value, Windows::Foundation::PropertyType type) const -{ - Windows::Graphics::Imaging::BitmapTypedValue bitmapTypedValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(value), type, put(bitmapTypedValue))); - return bitmapTypedValue; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapPropertiesView::GetPropertiesAsync(const Windows::Foundation::Collections::IIterable & propertiesToRetrieve) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetPropertiesAsync(get(propertiesToRetrieve), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IBitmapProperties::SetPropertiesAsync(const Windows::Foundation::Collections::IIterable> & propertiesToSet) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetPropertiesAsync(get(propertiesToSet), put(asyncInfo))); - return asyncInfo; -} - -template com_array impl_IPixelDataProvider::DetachPixelData() const -{ - com_array pixelData {}; - check_hresult(static_cast(static_cast(*this))->abi_DetachPixelData(put_size(pixelData), put(pixelData))); - return pixelData; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapFrame::GetThumbnailAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetThumbnailAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Graphics::Imaging::BitmapPropertiesView impl_IBitmapFrame::BitmapProperties() const -{ - Windows::Graphics::Imaging::BitmapPropertiesView value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BitmapProperties(put(value))); - return value; -} - -template Windows::Graphics::Imaging::BitmapPixelFormat impl_IBitmapFrame::BitmapPixelFormat() const -{ - Windows::Graphics::Imaging::BitmapPixelFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_BitmapPixelFormat(&value)); - return value; -} - -template Windows::Graphics::Imaging::BitmapAlphaMode impl_IBitmapFrame::BitmapAlphaMode() const -{ - Windows::Graphics::Imaging::BitmapAlphaMode value {}; - check_hresult(static_cast(static_cast(*this))->get_BitmapAlphaMode(&value)); - return value; -} - -template double impl_IBitmapFrame::DpiX() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DpiX(&value)); - return value; -} - -template double impl_IBitmapFrame::DpiY() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DpiY(&value)); - return value; -} - -template uint32_t impl_IBitmapFrame::PixelWidth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PixelWidth(&value)); - return value; -} - -template uint32_t impl_IBitmapFrame::PixelHeight() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PixelHeight(&value)); - return value; -} - -template uint32_t impl_IBitmapFrame::OrientedPixelWidth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OrientedPixelWidth(&value)); - return value; -} - -template uint32_t impl_IBitmapFrame::OrientedPixelHeight() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OrientedPixelHeight(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapFrame::GetPixelDataAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetPixelDataAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapFrame::GetPixelDataAsync(Windows::Graphics::Imaging::BitmapPixelFormat pixelFormat, Windows::Graphics::Imaging::BitmapAlphaMode alphaMode, const Windows::Graphics::Imaging::BitmapTransform & transform, Windows::Graphics::Imaging::ExifOrientationMode exifOrientationMode, Windows::Graphics::Imaging::ColorManagementMode colorManagementMode) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetPixelDataTransformedAsync(pixelFormat, alphaMode, get(transform), exifOrientationMode, colorManagementMode, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapFrameWithSoftwareBitmap::GetSoftwareBitmapAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetSoftwareBitmapAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapFrameWithSoftwareBitmap::GetSoftwareBitmapAsync(Windows::Graphics::Imaging::BitmapPixelFormat pixelFormat, Windows::Graphics::Imaging::BitmapAlphaMode alphaMode) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetSoftwareBitmapConvertedAsync(pixelFormat, alphaMode, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapFrameWithSoftwareBitmap::GetSoftwareBitmapAsync(Windows::Graphics::Imaging::BitmapPixelFormat pixelFormat, Windows::Graphics::Imaging::BitmapAlphaMode alphaMode, const Windows::Graphics::Imaging::BitmapTransform & transform, Windows::Graphics::Imaging::ExifOrientationMode exifOrientationMode, Windows::Graphics::Imaging::ColorManagementMode colorManagementMode) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetSoftwareBitmapTransformedAsync(pixelFormat, alphaMode, get(transform), exifOrientationMode, colorManagementMode, put(value))); - return value; -} - -template GUID impl_IBitmapCodecInformation::CodecId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_CodecId(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBitmapCodecInformation::FileExtensions() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_FileExtensions(put(value))); - return value; -} - -template hstring impl_IBitmapCodecInformation::FriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FriendlyName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBitmapCodecInformation::MimeTypes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_MimeTypes(put(value))); - return value; -} - -template GUID impl_IBitmapDecoderStatics::BmpDecoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_BmpDecoderId(&value)); - return value; -} - -template GUID impl_IBitmapDecoderStatics::JpegDecoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_JpegDecoderId(&value)); - return value; -} - -template GUID impl_IBitmapDecoderStatics::PngDecoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_PngDecoderId(&value)); - return value; -} - -template GUID impl_IBitmapDecoderStatics::TiffDecoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TiffDecoderId(&value)); - return value; -} - -template GUID impl_IBitmapDecoderStatics::GifDecoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GifDecoderId(&value)); - return value; -} - -template GUID impl_IBitmapDecoderStatics::JpegXRDecoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_JpegXRDecoderId(&value)); - return value; -} - -template GUID impl_IBitmapDecoderStatics::IcoDecoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_IcoDecoderId(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBitmapDecoderStatics::GetDecoderInformationEnumerator() const -{ - Windows::Foundation::Collections::IVectorView decoderInformationEnumerator; - check_hresult(static_cast(static_cast(*this))->abi_GetDecoderInformationEnumerator(put(decoderInformationEnumerator))); - return decoderInformationEnumerator; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapDecoderStatics::CreateAsync(const Windows::Storage::Streams::IRandomAccessStream & stream) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_CreateAsync(get(stream), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapDecoderStatics::CreateAsync(GUID decoderId, const Windows::Storage::Streams::IRandomAccessStream & stream) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithIdAsync(decoderId, get(stream), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Graphics::Imaging::BitmapPropertiesView impl_IBitmapDecoder::BitmapContainerProperties() const -{ - Windows::Graphics::Imaging::BitmapPropertiesView value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BitmapContainerProperties(put(value))); - return value; -} - -template Windows::Graphics::Imaging::BitmapCodecInformation impl_IBitmapDecoder::DecoderInformation() const -{ - Windows::Graphics::Imaging::BitmapCodecInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DecoderInformation(put(value))); - return value; -} - -template uint32_t impl_IBitmapDecoder::FrameCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FrameCount(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapDecoder::GetPreviewAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetPreviewAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapDecoder::GetFrameAsync(uint32_t frameIndex) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetFrameAsync(frameIndex, put(asyncInfo))); - return asyncInfo; -} - -template GUID impl_IBitmapEncoderStatics::BmpEncoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_BmpEncoderId(&value)); - return value; -} - -template GUID impl_IBitmapEncoderStatics::JpegEncoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_JpegEncoderId(&value)); - return value; -} - -template GUID impl_IBitmapEncoderStatics::PngEncoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_PngEncoderId(&value)); - return value; -} - -template GUID impl_IBitmapEncoderStatics::TiffEncoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TiffEncoderId(&value)); - return value; -} - -template GUID impl_IBitmapEncoderStatics::GifEncoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_GifEncoderId(&value)); - return value; -} - -template GUID impl_IBitmapEncoderStatics::JpegXREncoderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_JpegXREncoderId(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBitmapEncoderStatics::GetEncoderInformationEnumerator() const -{ - Windows::Foundation::Collections::IVectorView encoderInformationEnumerator; - check_hresult(static_cast(static_cast(*this))->abi_GetEncoderInformationEnumerator(put(encoderInformationEnumerator))); - return encoderInformationEnumerator; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapEncoderStatics::CreateAsync(GUID encoderId, const Windows::Storage::Streams::IRandomAccessStream & stream) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_CreateAsync(encoderId, get(stream), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapEncoderStatics::CreateAsync(GUID encoderId, const Windows::Storage::Streams::IRandomAccessStream & stream, const Windows::Foundation::Collections::IIterable> & encodingOptions) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithEncodingOptionsAsync(encoderId, get(stream), get(encodingOptions), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapEncoderStatics::CreateForTranscodingAsync(const Windows::Storage::Streams::IRandomAccessStream & stream, const Windows::Graphics::Imaging::BitmapDecoder & bitmapDecoder) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_CreateForTranscodingAsync(get(stream), get(bitmapDecoder), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IBitmapEncoderStatics::CreateForInPlacePropertyEncodingAsync(const Windows::Graphics::Imaging::BitmapDecoder & bitmapDecoder) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_CreateForInPlacePropertyEncodingAsync(get(bitmapDecoder), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Graphics::Imaging::BitmapCodecInformation impl_IBitmapEncoder::EncoderInformation() const -{ - Windows::Graphics::Imaging::BitmapCodecInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EncoderInformation(put(value))); - return value; -} - -template Windows::Graphics::Imaging::BitmapProperties impl_IBitmapEncoder::BitmapProperties() const -{ - Windows::Graphics::Imaging::BitmapProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BitmapProperties(put(value))); - return value; -} - -template Windows::Graphics::Imaging::BitmapProperties impl_IBitmapEncoder::BitmapContainerProperties() const -{ - Windows::Graphics::Imaging::BitmapProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BitmapContainerProperties(put(value))); - return value; -} - -template bool impl_IBitmapEncoder::IsThumbnailGenerated() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsThumbnailGenerated(&value)); - return value; -} - -template void impl_IBitmapEncoder::IsThumbnailGenerated(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsThumbnailGenerated(value)); -} - -template uint32_t impl_IBitmapEncoder::GeneratedThumbnailWidth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_GeneratedThumbnailWidth(&value)); - return value; -} - -template void impl_IBitmapEncoder::GeneratedThumbnailWidth(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GeneratedThumbnailWidth(value)); -} - -template uint32_t impl_IBitmapEncoder::GeneratedThumbnailHeight() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_GeneratedThumbnailHeight(&value)); - return value; -} - -template void impl_IBitmapEncoder::GeneratedThumbnailHeight(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GeneratedThumbnailHeight(value)); -} - -template Windows::Graphics::Imaging::BitmapTransform impl_IBitmapEncoder::BitmapTransform() const -{ - Windows::Graphics::Imaging::BitmapTransform value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BitmapTransform(put(value))); - return value; -} - -template void impl_IBitmapEncoder::SetPixelData(Windows::Graphics::Imaging::BitmapPixelFormat pixelFormat, Windows::Graphics::Imaging::BitmapAlphaMode alphaMode, uint32_t width, uint32_t height, double dpiX, double dpiY, array_ref pixels) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPixelData(pixelFormat, alphaMode, width, height, dpiX, dpiY, pixels.size(), get(pixels))); -} - -template Windows::Foundation::IAsyncAction impl_IBitmapEncoder::GoToNextFrameAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GoToNextFrameAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IBitmapEncoder::GoToNextFrameAsync(const Windows::Foundation::Collections::IIterable> & encodingOptions) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GoToNextFrameWithEncodingOptionsAsync(get(encodingOptions), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IBitmapEncoder::FlushAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_FlushAsync(put(asyncInfo))); - return asyncInfo; -} - -template void impl_IBitmapEncoderWithSoftwareBitmap::SetSoftwareBitmap(const Windows::Graphics::Imaging::SoftwareBitmap & bitmap) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSoftwareBitmap(get(bitmap))); -} - -template Windows::Graphics::Imaging::SoftwareBitmap impl_ISoftwareBitmapFactory::Create(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height) const -{ - Windows::Graphics::Imaging::SoftwareBitmap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(format, width, height, put(value))); - return value; -} - -template Windows::Graphics::Imaging::SoftwareBitmap impl_ISoftwareBitmapFactory::CreateWithAlpha(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, Windows::Graphics::Imaging::BitmapAlphaMode alpha) const -{ - Windows::Graphics::Imaging::SoftwareBitmap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithAlpha(format, width, height, alpha, put(value))); - return value; -} - -template Windows::Graphics::Imaging::SoftwareBitmap impl_ISoftwareBitmapStatics::Copy(const Windows::Graphics::Imaging::SoftwareBitmap & source) const -{ - Windows::Graphics::Imaging::SoftwareBitmap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Copy(get(source), put(value))); - return value; -} - -template Windows::Graphics::Imaging::SoftwareBitmap impl_ISoftwareBitmapStatics::Convert(const Windows::Graphics::Imaging::SoftwareBitmap & source, Windows::Graphics::Imaging::BitmapPixelFormat format) const -{ - Windows::Graphics::Imaging::SoftwareBitmap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Convert(get(source), format, put(value))); - return value; -} - -template Windows::Graphics::Imaging::SoftwareBitmap impl_ISoftwareBitmapStatics::Convert(const Windows::Graphics::Imaging::SoftwareBitmap & source, Windows::Graphics::Imaging::BitmapPixelFormat format, Windows::Graphics::Imaging::BitmapAlphaMode alpha) const -{ - Windows::Graphics::Imaging::SoftwareBitmap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ConvertWithAlpha(get(source), format, alpha, put(value))); - return value; -} - -template Windows::Graphics::Imaging::SoftwareBitmap impl_ISoftwareBitmapStatics::CreateCopyFromBuffer(const Windows::Storage::Streams::IBuffer & source, Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height) const -{ - Windows::Graphics::Imaging::SoftwareBitmap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCopyFromBuffer(get(source), format, width, height, put(value))); - return value; -} - -template Windows::Graphics::Imaging::SoftwareBitmap impl_ISoftwareBitmapStatics::CreateCopyFromBuffer(const Windows::Storage::Streams::IBuffer & source, Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, Windows::Graphics::Imaging::BitmapAlphaMode alpha) const -{ - Windows::Graphics::Imaging::SoftwareBitmap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCopyWithAlphaFromBuffer(get(source), format, width, height, alpha, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISoftwareBitmapStatics::CreateCopyFromSurfaceAsync(const Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface & surface) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateCopyFromSurfaceAsync(get(surface), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISoftwareBitmapStatics::CreateCopyFromSurfaceAsync(const Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface & surface, Windows::Graphics::Imaging::BitmapAlphaMode alpha) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateCopyWithAlphaFromSurfaceAsync(get(surface), alpha, put(value))); - return value; -} - -template Windows::Graphics::Imaging::BitmapPixelFormat impl_ISoftwareBitmap::BitmapPixelFormat() const -{ - Windows::Graphics::Imaging::BitmapPixelFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_BitmapPixelFormat(&value)); - return value; -} - -template Windows::Graphics::Imaging::BitmapAlphaMode impl_ISoftwareBitmap::BitmapAlphaMode() const -{ - Windows::Graphics::Imaging::BitmapAlphaMode value {}; - check_hresult(static_cast(static_cast(*this))->get_BitmapAlphaMode(&value)); - return value; -} - -template int32_t impl_ISoftwareBitmap::PixelWidth() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PixelWidth(&value)); - return value; -} - -template int32_t impl_ISoftwareBitmap::PixelHeight() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PixelHeight(&value)); - return value; -} - -template bool impl_ISoftwareBitmap::IsReadOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnly(&value)); - return value; -} - -template void impl_ISoftwareBitmap::DpiX(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DpiX(value)); -} - -template double impl_ISoftwareBitmap::DpiX() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DpiX(&value)); - return value; -} - -template void impl_ISoftwareBitmap::DpiY(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DpiY(value)); -} - -template double impl_ISoftwareBitmap::DpiY() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DpiY(&value)); - return value; -} - -template Windows::Graphics::Imaging::BitmapBuffer impl_ISoftwareBitmap::LockBuffer(Windows::Graphics::Imaging::BitmapBufferAccessMode mode) const -{ - Windows::Graphics::Imaging::BitmapBuffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_LockBuffer(mode, put(value))); - return value; -} - -template void impl_ISoftwareBitmap::CopyTo(const Windows::Graphics::Imaging::SoftwareBitmap & bitmap) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CopyTo(get(bitmap))); -} - -template void impl_ISoftwareBitmap::CopyFromBuffer(const Windows::Storage::Streams::IBuffer & buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CopyFromBuffer(get(buffer))); -} - -template void impl_ISoftwareBitmap::CopyToBuffer(const Windows::Storage::Streams::IBuffer & buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CopyToBuffer(get(buffer))); -} - -template Windows::Graphics::Imaging::SoftwareBitmap impl_ISoftwareBitmap::GetReadOnlyView() const -{ - Windows::Graphics::Imaging::SoftwareBitmap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetReadOnlyView(put(value))); - return value; -} - -template int32_t impl_IBitmapBuffer::GetPlaneCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPlaneCount(&value)); - return value; -} - -template Windows::Graphics::Imaging::BitmapPlaneDescription impl_IBitmapBuffer::GetPlaneDescription(int32_t index) const -{ - Windows::Graphics::Imaging::BitmapPlaneDescription value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPlaneDescription(index, put(value))); - return value; -} - -inline GUID BitmapDecoder::BmpDecoderId() -{ - return get_activation_factory().BmpDecoderId(); -} - -inline GUID BitmapDecoder::JpegDecoderId() -{ - return get_activation_factory().JpegDecoderId(); -} - -inline GUID BitmapDecoder::PngDecoderId() -{ - return get_activation_factory().PngDecoderId(); -} - -inline GUID BitmapDecoder::TiffDecoderId() -{ - return get_activation_factory().TiffDecoderId(); -} - -inline GUID BitmapDecoder::GifDecoderId() -{ - return get_activation_factory().GifDecoderId(); -} - -inline GUID BitmapDecoder::JpegXRDecoderId() -{ - return get_activation_factory().JpegXRDecoderId(); -} - -inline GUID BitmapDecoder::IcoDecoderId() -{ - return get_activation_factory().IcoDecoderId(); -} - -inline Windows::Foundation::Collections::IVectorView BitmapDecoder::GetDecoderInformationEnumerator() -{ - return get_activation_factory().GetDecoderInformationEnumerator(); -} - -inline Windows::Foundation::IAsyncOperation BitmapDecoder::CreateAsync(const Windows::Storage::Streams::IRandomAccessStream & stream) -{ - return get_activation_factory().CreateAsync(stream); -} - -inline Windows::Foundation::IAsyncOperation BitmapDecoder::CreateAsync(GUID decoderId, const Windows::Storage::Streams::IRandomAccessStream & stream) -{ - return get_activation_factory().CreateAsync(decoderId, stream); -} - -inline GUID BitmapEncoder::BmpEncoderId() -{ - return get_activation_factory().BmpEncoderId(); -} - -inline GUID BitmapEncoder::JpegEncoderId() -{ - return get_activation_factory().JpegEncoderId(); -} - -inline GUID BitmapEncoder::PngEncoderId() -{ - return get_activation_factory().PngEncoderId(); -} - -inline GUID BitmapEncoder::TiffEncoderId() -{ - return get_activation_factory().TiffEncoderId(); -} - -inline GUID BitmapEncoder::GifEncoderId() -{ - return get_activation_factory().GifEncoderId(); -} - -inline GUID BitmapEncoder::JpegXREncoderId() -{ - return get_activation_factory().JpegXREncoderId(); -} - -inline Windows::Foundation::Collections::IVectorView BitmapEncoder::GetEncoderInformationEnumerator() -{ - return get_activation_factory().GetEncoderInformationEnumerator(); -} - -inline Windows::Foundation::IAsyncOperation BitmapEncoder::CreateAsync(GUID encoderId, const Windows::Storage::Streams::IRandomAccessStream & stream) -{ - return get_activation_factory().CreateAsync(encoderId, stream); -} - -inline Windows::Foundation::IAsyncOperation BitmapEncoder::CreateAsync(GUID encoderId, const Windows::Storage::Streams::IRandomAccessStream & stream, const Windows::Foundation::Collections::IIterable> & encodingOptions) -{ - return get_activation_factory().CreateAsync(encoderId, stream, encodingOptions); -} - -inline Windows::Foundation::IAsyncOperation BitmapEncoder::CreateForTranscodingAsync(const Windows::Storage::Streams::IRandomAccessStream & stream, const Windows::Graphics::Imaging::BitmapDecoder & bitmapDecoder) -{ - return get_activation_factory().CreateForTranscodingAsync(stream, bitmapDecoder); -} - -inline Windows::Foundation::IAsyncOperation BitmapEncoder::CreateForInPlacePropertyEncodingAsync(const Windows::Graphics::Imaging::BitmapDecoder & bitmapDecoder) -{ - return get_activation_factory().CreateForInPlacePropertyEncodingAsync(bitmapDecoder); -} - -inline BitmapPropertySet::BitmapPropertySet() : - BitmapPropertySet(activate_instance()) -{} - -inline BitmapTransform::BitmapTransform() : - BitmapTransform(activate_instance()) -{} - -inline BitmapTypedValue::BitmapTypedValue(const Windows::IInspectable & value, Windows::Foundation::PropertyType type) : - BitmapTypedValue(get_activation_factory().Create(value, type)) -{} - -inline SoftwareBitmap::SoftwareBitmap(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height) : - SoftwareBitmap(get_activation_factory().Create(format, width, height)) -{} - -inline SoftwareBitmap::SoftwareBitmap(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, Windows::Graphics::Imaging::BitmapAlphaMode alpha) : - SoftwareBitmap(get_activation_factory().CreateWithAlpha(format, width, height, alpha)) -{} - -inline Windows::Graphics::Imaging::SoftwareBitmap SoftwareBitmap::Copy(const Windows::Graphics::Imaging::SoftwareBitmap & source) -{ - return get_activation_factory().Copy(source); -} - -inline Windows::Graphics::Imaging::SoftwareBitmap SoftwareBitmap::Convert(const Windows::Graphics::Imaging::SoftwareBitmap & source, Windows::Graphics::Imaging::BitmapPixelFormat format) -{ - return get_activation_factory().Convert(source, format); -} - -inline Windows::Graphics::Imaging::SoftwareBitmap SoftwareBitmap::Convert(const Windows::Graphics::Imaging::SoftwareBitmap & source, Windows::Graphics::Imaging::BitmapPixelFormat format, Windows::Graphics::Imaging::BitmapAlphaMode alpha) -{ - return get_activation_factory().Convert(source, format, alpha); -} - -inline Windows::Graphics::Imaging::SoftwareBitmap SoftwareBitmap::CreateCopyFromBuffer(const Windows::Storage::Streams::IBuffer & source, Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height) -{ - return get_activation_factory().CreateCopyFromBuffer(source, format, width, height); -} - -inline Windows::Graphics::Imaging::SoftwareBitmap SoftwareBitmap::CreateCopyFromBuffer(const Windows::Storage::Streams::IBuffer & source, Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, Windows::Graphics::Imaging::BitmapAlphaMode alpha) -{ - return get_activation_factory().CreateCopyFromBuffer(source, format, width, height, alpha); -} - -inline Windows::Foundation::IAsyncOperation SoftwareBitmap::CreateCopyFromSurfaceAsync(const Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface & surface) -{ - return get_activation_factory().CreateCopyFromSurfaceAsync(surface); -} - -inline Windows::Foundation::IAsyncOperation SoftwareBitmap::CreateCopyFromSurfaceAsync(const Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface & surface, Windows::Graphics::Imaging::BitmapAlphaMode alpha) -{ - return get_activation_factory().CreateCopyFromSurfaceAsync(surface, alpha); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Graphics.Printing.OptionDetails.h b/10.0.14393.0/winrt/Windows.Graphics.Printing.OptionDetails.h deleted file mode 100644 index ee3f65eae..000000000 --- a/10.0.14393.0/winrt/Windows.Graphics.Printing.OptionDetails.h +++ /dev/null @@ -1,657 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Graphics.Printing.3.h" -#include "internal/Windows.Graphics.Printing.OptionDetails.3.h" -#include "Windows.Graphics.Printing.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemDisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemDisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddItem(abi_arg_in itemId, abi_arg_in displayName) noexcept override - { - try - { - this->shim().AddItem(*reinterpret_cast(&itemId), *reinterpret_cast(&displayName)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_MaxCharacters(uint32_t value) noexcept override - { - try - { - this->shim().MaxCharacters(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxCharacters(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxCharacters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MinValue(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxValue(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OptionId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OptionId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OptionType(Windows::Graphics::Printing::OptionDetails::PrintOptionType * value) noexcept override - { - try - { - *value = detach(this->shim().OptionType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ErrorText(abi_arg_in value) noexcept override - { - try - { - this->shim().ErrorText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ErrorText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_State(Windows::Graphics::Printing::OptionDetails::PrintOptionStates value) noexcept override - { - try - { - this->shim().State(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(Windows::Graphics::Printing::OptionDetails::PrintOptionStates * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetValue(abi_arg_in value, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TrySetValue(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OptionId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OptionId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Options(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Options()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateItemListOption(abi_arg_in optionId, abi_arg_in displayName, abi_arg_out itemListOption) noexcept override - { - try - { - *itemListOption = detach(this->shim().CreateItemListOption(*reinterpret_cast(&optionId), *reinterpret_cast(&displayName))); - return S_OK; - } - catch (...) - { - *itemListOption = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTextOption(abi_arg_in optionId, abi_arg_in displayName, abi_arg_out textOption) noexcept override - { - try - { - *textOption = detach(this->shim().CreateTextOption(*reinterpret_cast(&optionId), *reinterpret_cast(&displayName))); - return S_OK; - } - catch (...) - { - *textOption = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_OptionChanged(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().OptionChanged(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_OptionChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().OptionChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BeginValidation(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().BeginValidation(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BeginValidation(event_token eventCookie) noexcept override - { - try - { - this->shim().BeginValidation(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetFromPrintTaskOptions(abi_arg_in printTaskOptions, abi_arg_out printTaskOptionDetails) noexcept override - { - try - { - *printTaskOptionDetails = detach(this->shim().GetFromPrintTaskOptions(*reinterpret_cast(&printTaskOptions))); - return S_OK; - } - catch (...) - { - *printTaskOptionDetails = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxCharacters(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxCharacters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Graphics::Printing::OptionDetails { - -template hstring impl_IPrintOptionDetails::OptionId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OptionId(put(value))); - return value; -} - -template Windows::Graphics::Printing::OptionDetails::PrintOptionType impl_IPrintOptionDetails::OptionType() const -{ - Windows::Graphics::Printing::OptionDetails::PrintOptionType value {}; - check_hresult(static_cast(static_cast(*this))->get_OptionType(&value)); - return value; -} - -template void impl_IPrintOptionDetails::ErrorText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ErrorText(get(value))); -} - -template hstring impl_IPrintOptionDetails::ErrorText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ErrorText(put(value))); - return value; -} - -template void impl_IPrintOptionDetails::State(Windows::Graphics::Printing::OptionDetails::PrintOptionStates value) const -{ - check_hresult(static_cast(static_cast(*this))->put_State(value)); -} - -template Windows::Graphics::Printing::OptionDetails::PrintOptionStates impl_IPrintOptionDetails::State() const -{ - Windows::Graphics::Printing::OptionDetails::PrintOptionStates value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template Windows::IInspectable impl_IPrintOptionDetails::Value() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template bool impl_IPrintOptionDetails::TrySetValue(const Windows::IInspectable & value) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetValue(get(value), &succeeded)); - return succeeded; -} - -template uint32_t impl_IPrintNumberOptionDetails::MinValue() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinValue(&value)); - return value; -} - -template uint32_t impl_IPrintNumberOptionDetails::MaxValue() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxValue(&value)); - return value; -} - -template uint32_t impl_IPrintTextOptionDetails::MaxCharacters() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxCharacters(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPrintItemListOptionDetails::Items() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Items(put(value))); - return value; -} - -template void impl_IPrintCustomOptionDetails::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IPrintCustomOptionDetails::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IPrintCustomTextOptionDetails::MaxCharacters(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxCharacters(value)); -} - -template uint32_t impl_IPrintCustomTextOptionDetails::MaxCharacters() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxCharacters(&value)); - return value; -} - -template hstring impl_IPrintCustomItemDetails::ItemId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ItemId(put(value))); - return value; -} - -template void impl_IPrintCustomItemDetails::ItemDisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemDisplayName(get(value))); -} - -template hstring impl_IPrintCustomItemDetails::ItemDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ItemDisplayName(put(value))); - return value; -} - -template void impl_IPrintCustomItemListOptionDetails::AddItem(hstring_ref itemId, hstring_ref displayName) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddItem(get(itemId), get(displayName))); -} - -template Windows::IInspectable impl_IPrintTaskOptionChangedEventArgs::OptionId() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_OptionId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IPrintTaskOptionDetails::Options() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Options(put(value))); - return value; -} - -template Windows::Graphics::Printing::OptionDetails::PrintCustomItemListOptionDetails impl_IPrintTaskOptionDetails::CreateItemListOption(hstring_ref optionId, hstring_ref displayName) const -{ - Windows::Graphics::Printing::OptionDetails::PrintCustomItemListOptionDetails itemListOption { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateItemListOption(get(optionId), get(displayName), put(itemListOption))); - return itemListOption; -} - -template Windows::Graphics::Printing::OptionDetails::PrintCustomTextOptionDetails impl_IPrintTaskOptionDetails::CreateTextOption(hstring_ref optionId, hstring_ref displayName) const -{ - Windows::Graphics::Printing::OptionDetails::PrintCustomTextOptionDetails textOption { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTextOption(get(optionId), get(displayName), put(textOption))); - return textOption; -} - -template event_token impl_IPrintTaskOptionDetails::OptionChanged(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_OptionChanged(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrintTaskOptionDetails::OptionChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails::remove_OptionChanged, OptionChanged(eventHandler)); -} - -template void impl_IPrintTaskOptionDetails::OptionChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_OptionChanged(eventCookie)); -} - -template event_token impl_IPrintTaskOptionDetails::BeginValidation(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_BeginValidation(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrintTaskOptionDetails::BeginValidation(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails::remove_BeginValidation, BeginValidation(eventHandler)); -} - -template void impl_IPrintTaskOptionDetails::BeginValidation(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BeginValidation(eventCookie)); -} - -template Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails impl_IPrintTaskOptionDetailsStatic::GetFromPrintTaskOptions(const Windows::Graphics::Printing::PrintTaskOptions & printTaskOptions) const -{ - Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails printTaskOptionDetails { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetFromPrintTaskOptions(get(printTaskOptions), put(printTaskOptionDetails))); - return printTaskOptionDetails; -} - -inline Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails PrintTaskOptionDetails::GetFromPrintTaskOptions(const Windows::Graphics::Printing::PrintTaskOptions & printTaskOptions) -{ - return get_activation_factory().GetFromPrintTaskOptions(printTaskOptions); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Graphics.Printing.h b/10.0.14393.0/winrt/Windows.Graphics.Printing.h deleted file mode 100644 index a4019b7c0..000000000 --- a/10.0.14393.0/winrt/Windows.Graphics.Printing.h +++ /dev/null @@ -1,1930 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.DataTransfer.3.h" -#include "internal/Windows.Graphics.Printing.3.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Graphics::Printing { - -template PrintTaskSourceRequestedHandler::PrintTaskSourceRequestedHandler(L lambda) : - PrintTaskSourceRequestedHandler(impl::make_delegate, PrintTaskSourceRequestedHandler>(std::forward(lambda))) -{} - -template PrintTaskSourceRequestedHandler::PrintTaskSourceRequestedHandler(F * function) : - PrintTaskSourceRequestedHandler([=](auto && ... args) { function(args ...); }) -{} - -template PrintTaskSourceRequestedHandler::PrintTaskSourceRequestedHandler(O * object, M method) : - PrintTaskSourceRequestedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void PrintTaskSourceRequestedHandler::operator()(const Windows::Graphics::Printing::PrintTaskSourceRequestedArgs & args) const -{ - check_hresult((*this)->abi_Invoke(get(args))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_PrintTaskRequested(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().PrintTaskRequested(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PrintTaskRequested(event_token eventCookie) noexcept override - { - try - { - this->shim().PrintTaskRequested(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out printingManager) noexcept override - { - try - { - *printingManager = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *printingManager = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowPrintUIAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowPrintUIAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsSupported(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_MediaSize(Windows::Graphics::Printing::PrintMediaSize value) noexcept override - { - try - { - this->shim().MediaSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaSize(Windows::Graphics::Printing::PrintMediaSize * value) noexcept override - { - try - { - *value = detach(this->shim().MediaSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PageSize(abi_arg_in value) noexcept override - { - try - { - this->shim().PageSize(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PageSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DpiX(uint32_t value) noexcept override - { - try - { - this->shim().DpiX(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DpiX(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DpiX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DpiY(uint32_t value) noexcept override - { - try - { - this->shim().DpiY(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DpiY(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DpiY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::Graphics::Printing::PrintOrientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::Graphics::Printing::PrintOrientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Options(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Options()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Previewing(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().Previewing(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Previewing(event_token eventCookie) noexcept override - { - try - { - this->shim().Previewing(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Submitting(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().Submitting(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Submitting(event_token eventCookie) noexcept override - { - try - { - this->shim().Submitting(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Progressing(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().Progressing(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Progressing(event_token eventCookie) noexcept override - { - try - { - this->shim().Progressing(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Completed(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().Completed(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Completed(event_token eventCookie) noexcept override - { - try - { - this->shim().Completed(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_IsPreviewEnabled(bool value) noexcept override - { - try - { - this->shim().IsPreviewEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPreviewEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPreviewEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Completion(Windows::Graphics::Printing::PrintTaskCompletion * value) noexcept override - { - try - { - *value = detach(this->shim().Completion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Bordering(Windows::Graphics::Printing::PrintBordering value) noexcept override - { - try - { - this->shim().Bordering(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bordering(Windows::Graphics::Printing::PrintBordering * value) noexcept override - { - try - { - *value = detach(this->shim().Bordering()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPagePrintTicket(abi_arg_in printPageInfo, abi_arg_out printTicket) noexcept override - { - try - { - *printTicket = detach(this->shim().GetPagePrintTicket(*reinterpret_cast(&printPageInfo))); - return S_OK; - } - catch (...) - { - *printTicket = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPageDescription(uint32_t jobPageNumber, abi_arg_out description) noexcept override - { - try - { - *description = detach(this->shim().GetPageDescription(jobPageNumber)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_MediaSize(Windows::Graphics::Printing::PrintMediaSize value) noexcept override - { - try - { - this->shim().MediaSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaSize(Windows::Graphics::Printing::PrintMediaSize * value) noexcept override - { - try - { - *value = detach(this->shim().MediaSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MediaType(Windows::Graphics::Printing::PrintMediaType value) noexcept override - { - try - { - this->shim().MediaType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaType(Windows::Graphics::Printing::PrintMediaType * value) noexcept override - { - try - { - *value = detach(this->shim().MediaType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::Graphics::Printing::PrintOrientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::Graphics::Printing::PrintOrientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PrintQuality(Windows::Graphics::Printing::PrintQuality value) noexcept override - { - try - { - this->shim().PrintQuality(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrintQuality(Windows::Graphics::Printing::PrintQuality * value) noexcept override - { - try - { - *value = detach(this->shim().PrintQuality()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ColorMode(Windows::Graphics::Printing::PrintColorMode value) noexcept override - { - try - { - this->shim().ColorMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColorMode(Windows::Graphics::Printing::PrintColorMode * value) noexcept override - { - try - { - *value = detach(this->shim().ColorMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Duplex(Windows::Graphics::Printing::PrintDuplex value) noexcept override - { - try - { - this->shim().Duplex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duplex(Windows::Graphics::Printing::PrintDuplex * value) noexcept override - { - try - { - *value = detach(this->shim().Duplex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Collation(Windows::Graphics::Printing::PrintCollation value) noexcept override - { - try - { - this->shim().Collation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Collation(Windows::Graphics::Printing::PrintCollation * value) noexcept override - { - try - { - *value = detach(this->shim().Collation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Staple(Windows::Graphics::Printing::PrintStaple value) noexcept override - { - try - { - this->shim().Staple(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Staple(Windows::Graphics::Printing::PrintStaple * value) noexcept override - { - try - { - *value = detach(this->shim().Staple()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HolePunch(Windows::Graphics::Printing::PrintHolePunch value) noexcept override - { - try - { - this->shim().HolePunch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HolePunch(Windows::Graphics::Printing::PrintHolePunch * value) noexcept override - { - try - { - *value = detach(this->shim().HolePunch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Binding(Windows::Graphics::Printing::PrintBinding value) noexcept override - { - try - { - this->shim().Binding(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Binding(Windows::Graphics::Printing::PrintBinding * value) noexcept override - { - try - { - *value = detach(this->shim().Binding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinCopies(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinCopies()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxCopies(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxCopies()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NumberOfCopies(uint32_t value) noexcept override - { - try - { - this->shim().NumberOfCopies(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfCopies(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfCopies()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayedOptions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DisplayedOptions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DocumentPageCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DocumentPageCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePrintTask(abi_arg_in title, abi_arg_in handler, abi_arg_out task) noexcept override - { - try - { - *task = detach(this->shim().CreatePrintTask(*reinterpret_cast(&title), *reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - *task = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetSource(abi_arg_in source) noexcept override - { - try - { - this->shim().SetSource(*reinterpret_cast(&source)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_IsPrinterTargetEnabled(bool value) noexcept override - { - try - { - this->shim().IsPrinterTargetEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPrinterTargetEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPrinterTargetEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Is3DManufacturingTargetEnabled(bool value) noexcept override - { - try - { - this->shim().Is3DManufacturingTargetEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Is3DManufacturingTargetEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Is3DManufacturingTargetEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MediaSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaSize()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrintQuality(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrintQuality()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColorMode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ColorMode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duplex(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duplex()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Collation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Collation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Staple(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Staple()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HolePunch(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HolePunch()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Binding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Binding()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Copies(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Copies()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NUp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NUp()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputBin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputBin()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Bordering(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bordering()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Graphics::Printing { - -template void impl_IPrintTaskOptionsCoreProperties::MediaSize(Windows::Graphics::Printing::PrintMediaSize value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MediaSize(value)); -} - -template Windows::Graphics::Printing::PrintMediaSize impl_IPrintTaskOptionsCoreProperties::MediaSize() const -{ - Windows::Graphics::Printing::PrintMediaSize value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaSize(&value)); - return value; -} - -template void impl_IPrintTaskOptionsCoreProperties::MediaType(Windows::Graphics::Printing::PrintMediaType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MediaType(value)); -} - -template Windows::Graphics::Printing::PrintMediaType impl_IPrintTaskOptionsCoreProperties::MediaType() const -{ - Windows::Graphics::Printing::PrintMediaType value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaType(&value)); - return value; -} - -template void impl_IPrintTaskOptionsCoreProperties::Orientation(Windows::Graphics::Printing::PrintOrientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template Windows::Graphics::Printing::PrintOrientation impl_IPrintTaskOptionsCoreProperties::Orientation() const -{ - Windows::Graphics::Printing::PrintOrientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_IPrintTaskOptionsCoreProperties::PrintQuality(Windows::Graphics::Printing::PrintQuality value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PrintQuality(value)); -} - -template Windows::Graphics::Printing::PrintQuality impl_IPrintTaskOptionsCoreProperties::PrintQuality() const -{ - Windows::Graphics::Printing::PrintQuality value {}; - check_hresult(static_cast(static_cast(*this))->get_PrintQuality(&value)); - return value; -} - -template void impl_IPrintTaskOptionsCoreProperties::ColorMode(Windows::Graphics::Printing::PrintColorMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ColorMode(value)); -} - -template Windows::Graphics::Printing::PrintColorMode impl_IPrintTaskOptionsCoreProperties::ColorMode() const -{ - Windows::Graphics::Printing::PrintColorMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ColorMode(&value)); - return value; -} - -template void impl_IPrintTaskOptionsCoreProperties::Duplex(Windows::Graphics::Printing::PrintDuplex value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Duplex(value)); -} - -template Windows::Graphics::Printing::PrintDuplex impl_IPrintTaskOptionsCoreProperties::Duplex() const -{ - Windows::Graphics::Printing::PrintDuplex value {}; - check_hresult(static_cast(static_cast(*this))->get_Duplex(&value)); - return value; -} - -template void impl_IPrintTaskOptionsCoreProperties::Collation(Windows::Graphics::Printing::PrintCollation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Collation(value)); -} - -template Windows::Graphics::Printing::PrintCollation impl_IPrintTaskOptionsCoreProperties::Collation() const -{ - Windows::Graphics::Printing::PrintCollation value {}; - check_hresult(static_cast(static_cast(*this))->get_Collation(&value)); - return value; -} - -template void impl_IPrintTaskOptionsCoreProperties::Staple(Windows::Graphics::Printing::PrintStaple value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Staple(value)); -} - -template Windows::Graphics::Printing::PrintStaple impl_IPrintTaskOptionsCoreProperties::Staple() const -{ - Windows::Graphics::Printing::PrintStaple value {}; - check_hresult(static_cast(static_cast(*this))->get_Staple(&value)); - return value; -} - -template void impl_IPrintTaskOptionsCoreProperties::HolePunch(Windows::Graphics::Printing::PrintHolePunch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HolePunch(value)); -} - -template Windows::Graphics::Printing::PrintHolePunch impl_IPrintTaskOptionsCoreProperties::HolePunch() const -{ - Windows::Graphics::Printing::PrintHolePunch value {}; - check_hresult(static_cast(static_cast(*this))->get_HolePunch(&value)); - return value; -} - -template void impl_IPrintTaskOptionsCoreProperties::Binding(Windows::Graphics::Printing::PrintBinding value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Binding(value)); -} - -template Windows::Graphics::Printing::PrintBinding impl_IPrintTaskOptionsCoreProperties::Binding() const -{ - Windows::Graphics::Printing::PrintBinding value {}; - check_hresult(static_cast(static_cast(*this))->get_Binding(&value)); - return value; -} - -template uint32_t impl_IPrintTaskOptionsCoreProperties::MinCopies() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinCopies(&value)); - return value; -} - -template uint32_t impl_IPrintTaskOptionsCoreProperties::MaxCopies() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxCopies(&value)); - return value; -} - -template void impl_IPrintTaskOptionsCoreProperties::NumberOfCopies(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NumberOfCopies(value)); -} - -template uint32_t impl_IPrintTaskOptionsCoreProperties::NumberOfCopies() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfCopies(&value)); - return value; -} - -template void impl_IPrintPageInfo::MediaSize(Windows::Graphics::Printing::PrintMediaSize value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MediaSize(value)); -} - -template Windows::Graphics::Printing::PrintMediaSize impl_IPrintPageInfo::MediaSize() const -{ - Windows::Graphics::Printing::PrintMediaSize value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaSize(&value)); - return value; -} - -template void impl_IPrintPageInfo::PageSize(const Windows::Foundation::Size & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PageSize(get(value))); -} - -template Windows::Foundation::Size impl_IPrintPageInfo::PageSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_PageSize(put(value))); - return value; -} - -template void impl_IPrintPageInfo::DpiX(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DpiX(value)); -} - -template uint32_t impl_IPrintPageInfo::DpiX() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DpiX(&value)); - return value; -} - -template void impl_IPrintPageInfo::DpiY(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DpiY(value)); -} - -template uint32_t impl_IPrintPageInfo::DpiY() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DpiY(&value)); - return value; -} - -template void impl_IPrintPageInfo::Orientation(Windows::Graphics::Printing::PrintOrientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template Windows::Graphics::Printing::PrintOrientation impl_IPrintPageInfo::Orientation() const -{ - Windows::Graphics::Printing::PrintOrientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_IPrintTaskOptions::Bordering(Windows::Graphics::Printing::PrintBordering value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Bordering(value)); -} - -template Windows::Graphics::Printing::PrintBordering impl_IPrintTaskOptions::Bordering() const -{ - Windows::Graphics::Printing::PrintBordering value {}; - check_hresult(static_cast(static_cast(*this))->get_Bordering(&value)); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStream impl_IPrintTaskOptions::GetPagePrintTicket(const Windows::Graphics::Printing::PrintPageInfo & printPageInfo) const -{ - Windows::Storage::Streams::IRandomAccessStream printTicket; - check_hresult(static_cast(static_cast(*this))->abi_GetPagePrintTicket(get(printPageInfo), put(printTicket))); - return printTicket; -} - -template Windows::Foundation::Collections::IVector impl_IPrintTaskOptionsCoreUIConfiguration::DisplayedOptions() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DisplayedOptions(put(value))); - return value; -} - -template Windows::Graphics::Printing::PrintPageDescription impl_IPrintTaskOptionsCore::GetPageDescription(uint32_t jobPageNumber) const -{ - Windows::Graphics::Printing::PrintPageDescription description {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPageDescription(jobPageNumber, put(description))); - return description; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::MediaSize() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MediaSize(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::MediaType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MediaType(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::Orientation() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Orientation(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::PrintQuality() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PrintQuality(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::ColorMode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ColorMode(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::Duplex() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Duplex(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::Collation() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Collation(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::Staple() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Staple(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::HolePunch() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HolePunch(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::Binding() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Binding(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::Copies() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Copies(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::NUp() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NUp(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic::InputBin() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InputBin(put(value))); - return value; -} - -template hstring impl_IStandardPrintTaskOptionsStatic2::Bordering() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Bordering(put(value))); - return value; -} - -template uint32_t impl_IPrintTaskProgressingEventArgs::DocumentPageCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DocumentPageCount(&value)); - return value; -} - -template Windows::Graphics::Printing::PrintTaskCompletion impl_IPrintTaskCompletedEventArgs::Completion() const -{ - Windows::Graphics::Printing::PrintTaskCompletion value {}; - check_hresult(static_cast(static_cast(*this))->get_Completion(&value)); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataPackagePropertySet impl_IPrintTask::Properties() const -{ - Windows::ApplicationModel::DataTransfer::DataPackagePropertySet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Graphics::Printing::IPrintDocumentSource impl_IPrintTask::Source() const -{ - Windows::Graphics::Printing::IPrintDocumentSource value; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template Windows::Graphics::Printing::PrintTaskOptions impl_IPrintTask::Options() const -{ - Windows::Graphics::Printing::PrintTaskOptions value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Options(put(value))); - return value; -} - -template event_token impl_IPrintTask::Previewing(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Previewing(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrintTask::Previewing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Printing::IPrintTask::remove_Previewing, Previewing(eventHandler)); -} - -template void impl_IPrintTask::Previewing(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Previewing(eventCookie)); -} - -template event_token impl_IPrintTask::Submitting(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Submitting(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrintTask::Submitting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Printing::IPrintTask::remove_Submitting, Submitting(eventHandler)); -} - -template void impl_IPrintTask::Submitting(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Submitting(eventCookie)); -} - -template event_token impl_IPrintTask::Progressing(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Progressing(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrintTask::Progressing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Printing::IPrintTask::remove_Progressing, Progressing(eventHandler)); -} - -template void impl_IPrintTask::Progressing(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Progressing(eventCookie)); -} - -template event_token impl_IPrintTask::Completed(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Completed(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrintTask::Completed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Printing::IPrintTask::remove_Completed, Completed(eventHandler)); -} - -template void impl_IPrintTask::Completed(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Completed(eventCookie)); -} - -template void impl_IPrintTaskTargetDeviceSupport::IsPrinterTargetEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPrinterTargetEnabled(value)); -} - -template bool impl_IPrintTaskTargetDeviceSupport::IsPrinterTargetEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPrinterTargetEnabled(&value)); - return value; -} - -template void impl_IPrintTaskTargetDeviceSupport::Is3DManufacturingTargetEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Is3DManufacturingTargetEnabled(value)); -} - -template bool impl_IPrintTaskTargetDeviceSupport::Is3DManufacturingTargetEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Is3DManufacturingTargetEnabled(&value)); - return value; -} - -template void impl_IPrintTask2::IsPreviewEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPreviewEnabled(value)); -} - -template bool impl_IPrintTask2::IsPreviewEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPreviewEnabled(&value)); - return value; -} - -template void impl_IPrintTaskSourceRequestedDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::Foundation::DateTime impl_IPrintTaskSourceRequestedArgs::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template void impl_IPrintTaskSourceRequestedArgs::SetSource(const Windows::Graphics::Printing::IPrintDocumentSource & source) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSource(get(source))); -} - -template Windows::Graphics::Printing::PrintTaskSourceRequestedDeferral impl_IPrintTaskSourceRequestedArgs::GetDeferral() const -{ - Windows::Graphics::Printing::PrintTaskSourceRequestedDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template void impl_IPrintTaskRequestedDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::Foundation::DateTime impl_IPrintTaskRequest::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template Windows::Graphics::Printing::PrintTask impl_IPrintTaskRequest::CreatePrintTask(hstring_ref title, const Windows::Graphics::Printing::PrintTaskSourceRequestedHandler & handler) const -{ - Windows::Graphics::Printing::PrintTask task { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePrintTask(get(title), get(handler), put(task))); - return task; -} - -template Windows::Graphics::Printing::PrintTaskRequestedDeferral impl_IPrintTaskRequest::GetDeferral() const -{ - Windows::Graphics::Printing::PrintTaskRequestedDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template Windows::Graphics::Printing::PrintTaskRequest impl_IPrintTaskRequestedEventArgs::Request() const -{ - Windows::Graphics::Printing::PrintTaskRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Graphics::Printing::PrintManager impl_IPrintManagerStatic::GetForCurrentView() const -{ - Windows::Graphics::Printing::PrintManager printingManager { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(printingManager))); - return printingManager; -} - -template Windows::Foundation::IAsyncOperation impl_IPrintManagerStatic::ShowPrintUIAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowPrintUIAsync(put(operation))); - return operation; -} - -template bool impl_IPrintManagerStatic2::IsSupported() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsSupported(&result)); - return result; -} - -template event_token impl_IPrintManager::PrintTaskRequested(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_PrintTaskRequested(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrintManager::PrintTaskRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Printing::IPrintManager::remove_PrintTaskRequested, PrintTaskRequested(eventHandler)); -} - -template void impl_IPrintManager::PrintTaskRequested(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PrintTaskRequested(eventCookie)); -} - -inline Windows::Graphics::Printing::PrintManager PrintManager::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline Windows::Foundation::IAsyncOperation PrintManager::ShowPrintUIAsync() -{ - return get_activation_factory().ShowPrintUIAsync(); -} - -inline bool PrintManager::IsSupported() -{ - return get_activation_factory().IsSupported(); -} - -inline PrintPageInfo::PrintPageInfo() : - PrintPageInfo(activate_instance()) -{} - -inline hstring StandardPrintTaskOptions::MediaSize() -{ - return get_activation_factory().MediaSize(); -} - -inline hstring StandardPrintTaskOptions::MediaType() -{ - return get_activation_factory().MediaType(); -} - -inline hstring StandardPrintTaskOptions::Orientation() -{ - return get_activation_factory().Orientation(); -} - -inline hstring StandardPrintTaskOptions::PrintQuality() -{ - return get_activation_factory().PrintQuality(); -} - -inline hstring StandardPrintTaskOptions::ColorMode() -{ - return get_activation_factory().ColorMode(); -} - -inline hstring StandardPrintTaskOptions::Duplex() -{ - return get_activation_factory().Duplex(); -} - -inline hstring StandardPrintTaskOptions::Collation() -{ - return get_activation_factory().Collation(); -} - -inline hstring StandardPrintTaskOptions::Staple() -{ - return get_activation_factory().Staple(); -} - -inline hstring StandardPrintTaskOptions::HolePunch() -{ - return get_activation_factory().HolePunch(); -} - -inline hstring StandardPrintTaskOptions::Binding() -{ - return get_activation_factory().Binding(); -} - -inline hstring StandardPrintTaskOptions::Copies() -{ - return get_activation_factory().Copies(); -} - -inline hstring StandardPrintTaskOptions::NUp() -{ - return get_activation_factory().NUp(); -} - -inline hstring StandardPrintTaskOptions::InputBin() -{ - return get_activation_factory().InputBin(); -} - -inline hstring StandardPrintTaskOptions::Bordering() -{ - return get_activation_factory().Bordering(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Graphics.Printing3D.h b/10.0.14393.0/winrt/Windows.Graphics.Printing3D.h deleted file mode 100644 index cb6d69b67..000000000 --- a/10.0.14393.0/winrt/Windows.Graphics.Printing3D.h +++ /dev/null @@ -1,3302 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Graphics.Printing3D.3.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Graphics::Printing3D { - -template Print3DTaskSourceRequestedHandler::Print3DTaskSourceRequestedHandler(L lambda) : - Print3DTaskSourceRequestedHandler(impl::make_delegate, Print3DTaskSourceRequestedHandler>(std::forward(lambda))) -{} - -template Print3DTaskSourceRequestedHandler::Print3DTaskSourceRequestedHandler(F * function) : - Print3DTaskSourceRequestedHandler([=](auto && ... args) { function(args ...); }) -{} - -template Print3DTaskSourceRequestedHandler::Print3DTaskSourceRequestedHandler(O * object, M method) : - Print3DTaskSourceRequestedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void Print3DTaskSourceRequestedHandler::operator()(const Windows::Graphics::Printing3D::Print3DTaskSourceRequestedArgs & args) const -{ - check_hresult((*this)->abi_Invoke(get(args))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall add_TaskRequested(abi_arg_in> eventHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TaskRequested(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TaskRequested(event_token token) noexcept override - { - try - { - this->shim().TaskRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowPrintUIAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ShowPrintUIAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Submitting(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().Submitting(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Submitting(event_token eventCookie) noexcept override - { - try - { - this->shim().Submitting(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Completed(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().Completed(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Completed(event_token eventCookie) noexcept override - { - try - { - this->shim().Completed(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceChanged(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().SourceChanged(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().SourceChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Completion(Windows::Graphics::Printing3D::Print3DTaskCompletion * value) noexcept override - { - try - { - *value = detach(this->shim().Completion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedStatus(Windows::Graphics::Printing3D::Print3DTaskDetail * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateTask(abi_arg_in title, abi_arg_in printerId, abi_arg_in handler, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateTask(*reinterpret_cast(&title), *reinterpret_cast(&printerId), *reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetSource(abi_arg_in source) noexcept override - { - try - { - this->shim().SetSource(*reinterpret_cast(&source)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SaveAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SaveAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrintTicket(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrintTicket()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PrintTicket(abi_arg_in value) noexcept override - { - try - { - this->shim().PrintTicket(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModelPart(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ModelPart()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ModelPart(abi_arg_in value) noexcept override - { - try - { - this->shim().ModelPart(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbnail(abi_arg_in value) noexcept override - { - try - { - this->shim().Thumbnail(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Textures(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Textures()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadModelFromPackageAsync(abi_arg_in value, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LoadModelFromPackageAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveModelToPackageAsync(abi_arg_in value, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SaveModelToPackageAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LoadAsync(abi_arg_in value, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LoadAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Color(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Color()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Color(abi_arg_in value) noexcept override - { - try - { - this->shim().Color(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Bases(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Bases()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaterialGroupId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaterialGroupId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t MaterialGroupId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(MaterialGroupId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Abs(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Abs()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pla(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pla()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Value(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(uint32_t value) noexcept override - { - try - { - this->shim().Value(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Color(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Color()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Color(abi_arg_in value) noexcept override - { - try - { - this->shim().Color(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Colors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Colors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaterialGroupId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaterialGroupId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t MaterialGroupId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(MaterialGroupId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Mesh(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mesh()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mesh(abi_arg_in value) noexcept override - { - try - { - this->shim().Mesh(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Components(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Components()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbnail(abi_arg_in value) noexcept override - { - try - { - this->shim().Thumbnail(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::Graphics::Printing3D::Printing3DObjectType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Type(Windows::Graphics::Printing3D::Printing3DObjectType value) noexcept override - { - try - { - this->shim().Type(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PartNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PartNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PartNumber(abi_arg_in value) noexcept override - { - try - { - this->shim().PartNumber(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Component(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Component()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Component(abi_arg_in value) noexcept override - { - try - { - this->shim().Component(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Matrix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Matrix()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Matrix(abi_arg_in value) noexcept override - { - try - { - this->shim().Matrix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Values(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Values()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Composites(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Composites()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaterialGroupId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaterialGroupId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaterialIndices(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaterialIndices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BaseMaterialGroup(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BaseMaterialGroup()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BaseMaterialGroup(abi_arg_in value) noexcept override - { - try - { - this->shim().BaseMaterialGroup(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t MaterialGroupId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(MaterialGroupId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxReductionArea(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxReductionArea()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxReductionArea(double value) noexcept override - { - try - { - this->shim().MaxReductionArea(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetTriangleCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TargetTriangleCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetTriangleCount(uint32_t value) noexcept override - { - try - { - this->shim().TargetTriangleCount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxEdgeLength(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxEdgeLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxEdgeLength(double value) noexcept override - { - try - { - this->shim().MaxEdgeLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BaseGroups(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BaseGroups()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColorGroups(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ColorGroups()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Texture2CoordGroups(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Texture2CoordGroups()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompositeGroups(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CompositeGroups()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MultiplePropertyGroups(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MultiplePropertyGroups()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VertexCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().VertexCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VertexCount(uint32_t value) noexcept override - { - try - { - this->shim().VertexCount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IndexCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IndexCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IndexCount(uint32_t value) noexcept override - { - try - { - this->shim().IndexCount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VertexPositionsDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VertexPositionsDescription()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VertexPositionsDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().VertexPositionsDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VertexNormalsDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VertexNormalsDescription()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VertexNormalsDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().VertexNormalsDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TriangleIndicesDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TriangleIndicesDescription()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TriangleIndicesDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().TriangleIndicesDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TriangleMaterialIndicesDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TriangleMaterialIndicesDescription()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TriangleMaterialIndicesDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().TriangleMaterialIndicesDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVertexPositions(abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().GetVertexPositions()); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateVertexPositions(uint32_t value) noexcept override - { - try - { - this->shim().CreateVertexPositions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVertexNormals(abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().GetVertexNormals()); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateVertexNormals(uint32_t value) noexcept override - { - try - { - this->shim().CreateVertexNormals(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTriangleIndices(abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().GetTriangleIndices()); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTriangleIndices(uint32_t value) noexcept override - { - try - { - this->shim().CreateTriangleIndices(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTriangleMaterialIndices(abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().GetTriangleMaterialIndices()); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTriangleMaterialIndices(uint32_t value) noexcept override - { - try - { - this->shim().CreateTriangleMaterialIndices(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BufferDescriptionSet(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BufferDescriptionSet()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BufferSet(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BufferSet()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_VerifyAsync(Windows::Graphics::Printing3D::Printing3DMeshVerificationMode value, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().VerifyAsync(value)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsValid(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsValid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NonmanifoldTriangles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().NonmanifoldTriangles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReversedNormalTriangles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ReversedNormalTriangles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Unit(Windows::Graphics::Printing3D::Printing3DModelUnit * value) noexcept override - { - try - { - *value = detach(this->shim().Unit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Unit(Windows::Graphics::Printing3D::Printing3DModelUnit value) noexcept override - { - try - { - this->shim().Unit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Textures(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Textures()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Meshes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Meshes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Components(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Components()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Material(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Material()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Material(abi_arg_in value) noexcept override - { - try - { - this->shim().Material(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Build(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Build()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Build(abi_arg_in value) noexcept override - { - try - { - this->shim().Build(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Version(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Version()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Version(abi_arg_in value) noexcept override - { - try - { - this->shim().Version(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequiredExtensions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequiredExtensions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Metadata(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Metadata()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RepairAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().RepairAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Clone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryPartialRepairAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TryPartialRepairAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryPartialRepairWithTimeAsync(abi_arg_in maxWaitTime, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TryPartialRepairAsync(*reinterpret_cast(&maxWaitTime))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryReduceFacesAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TryReduceFacesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryReduceFacesWithOptionsAsync(abi_arg_in printing3DFaceReductionOptions, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TryReduceFacesAsync(*reinterpret_cast(&printing3DFaceReductionOptions))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryReduceFacesWithOptionsAndTimeAsync(abi_arg_in printing3DFaceReductionOptions, abi_arg_in maxWait, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TryReduceFacesAsync(*reinterpret_cast(&printing3DFaceReductionOptions), *reinterpret_cast(&maxWait))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RepairWithProgressAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RepairWithProgressAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextureResource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextureResource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextureResource(abi_arg_in value) noexcept override - { - try - { - this->shim().TextureResource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TileStyleU(Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior * value) noexcept override - { - try - { - *value = detach(this->shim().TileStyleU()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TileStyleU(Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior value) noexcept override - { - try - { - this->shim().TileStyleU(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TileStyleV(Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior * value) noexcept override - { - try - { - *value = detach(this->shim().TileStyleV()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TileStyleV(Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior value) noexcept override - { - try - { - this->shim().TileStyleV(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaterialIndices(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaterialIndices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MultipleProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MultipleProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaterialGroupIndices(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaterialGroupIndices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaterialGroupId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaterialGroupId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t MaterialGroupId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(MaterialGroupId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Texture(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Texture()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Texture(abi_arg_in value) noexcept override - { - try - { - this->shim().Texture(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_U(double * value) noexcept override - { - try - { - *value = detach(this->shim().U()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_U(double value) noexcept override - { - try - { - this->shim().U(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_V(double * value) noexcept override - { - try - { - *value = detach(this->shim().V()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_V(double value) noexcept override - { - try - { - this->shim().V(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Texture2Coords(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Texture2Coords()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaterialGroupId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaterialGroupId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Texture(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Texture()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Texture(abi_arg_in value) noexcept override - { - try - { - this->shim().Texture(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t MaterialGroupId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(MaterialGroupId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextureData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextureData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextureData(abi_arg_in value) noexcept override - { - try - { - this->shim().TextureData(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Graphics::Printing3D { - -template Windows::Graphics::Printing3D::Print3DTaskCompletion impl_IPrint3DTaskCompletedEventArgs::Completion() const -{ - Windows::Graphics::Printing3D::Print3DTaskCompletion value {}; - check_hresult(static_cast(static_cast(*this))->get_Completion(&value)); - return value; -} - -template Windows::Graphics::Printing3D::Print3DTaskDetail impl_IPrint3DTaskCompletedEventArgs::ExtendedStatus() const -{ - Windows::Graphics::Printing3D::Print3DTaskDetail value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedStatus(&value)); - return value; -} - -template Windows::Graphics::Printing3D::Printing3D3MFPackage impl_IPrint3DTaskSourceChangedEventArgs::Source() const -{ - Windows::Graphics::Printing3D::Printing3D3MFPackage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template Windows::Graphics::Printing3D::Printing3D3MFPackage impl_IPrint3DTask::Source() const -{ - Windows::Graphics::Printing3D::Printing3D3MFPackage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template event_token impl_IPrint3DTask::Submitting(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Submitting(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrint3DTask::Submitting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Printing3D::IPrint3DTask::remove_Submitting, Submitting(eventHandler)); -} - -template void impl_IPrint3DTask::Submitting(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Submitting(eventCookie)); -} - -template event_token impl_IPrint3DTask::Completed(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Completed(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrint3DTask::Completed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Printing3D::IPrint3DTask::remove_Completed, Completed(eventHandler)); -} - -template void impl_IPrint3DTask::Completed(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Completed(eventCookie)); -} - -template event_token impl_IPrint3DTask::SourceChanged(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_SourceChanged(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IPrint3DTask::SourceChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Printing3D::IPrint3DTask::remove_SourceChanged, SourceChanged(eventHandler)); -} - -template void impl_IPrint3DTask::SourceChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceChanged(eventCookie)); -} - -template void impl_IPrint3DTaskSourceRequestedArgs::SetSource(const Windows::Graphics::Printing3D::Printing3D3MFPackage & source) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSource(get(source))); -} - -template Windows::Graphics::Printing3D::Print3DTask impl_IPrint3DTaskRequest::CreateTask(hstring_ref title, hstring_ref printerId, const Windows::Graphics::Printing3D::Print3DTaskSourceRequestedHandler & handler) const -{ - Windows::Graphics::Printing3D::Print3DTask result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTask(get(title), get(printerId), get(handler), put(result))); - return result; -} - -template Windows::Graphics::Printing3D::Print3DTaskRequest impl_IPrint3DTaskRequestedEventArgs::Request() const -{ - Windows::Graphics::Printing3D::Print3DTaskRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Graphics::Printing3D::Print3DManager impl_IPrint3DManagerStatics::GetForCurrentView() const -{ - Windows::Graphics::Printing3D::Print3DManager result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPrint3DManagerStatics::ShowPrintUIAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ShowPrintUIAsync(put(result))); - return result; -} - -template event_token impl_IPrint3DManager::TaskRequested(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TaskRequested(get(eventHandler), &token)); - return token; -} - -template event_revoker impl_IPrint3DManager::TaskRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Graphics::Printing3D::IPrint3DManager::remove_TaskRequested, TaskRequested(eventHandler)); -} - -template void impl_IPrint3DManager::TaskRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TaskRequested(token)); -} - -template uint32_t impl_IPrinting3DMesh::VertexCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VertexCount(&value)); - return value; -} - -template void impl_IPrinting3DMesh::VertexCount(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VertexCount(value)); -} - -template uint32_t impl_IPrinting3DMesh::IndexCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IndexCount(&value)); - return value; -} - -template void impl_IPrinting3DMesh::IndexCount(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IndexCount(value)); -} - -template Windows::Graphics::Printing3D::Printing3DBufferDescription impl_IPrinting3DMesh::VertexPositionsDescription() const -{ - Windows::Graphics::Printing3D::Printing3DBufferDescription value {}; - check_hresult(static_cast(static_cast(*this))->get_VertexPositionsDescription(put(value))); - return value; -} - -template void impl_IPrinting3DMesh::VertexPositionsDescription(const Windows::Graphics::Printing3D::Printing3DBufferDescription & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VertexPositionsDescription(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DBufferDescription impl_IPrinting3DMesh::VertexNormalsDescription() const -{ - Windows::Graphics::Printing3D::Printing3DBufferDescription value {}; - check_hresult(static_cast(static_cast(*this))->get_VertexNormalsDescription(put(value))); - return value; -} - -template void impl_IPrinting3DMesh::VertexNormalsDescription(const Windows::Graphics::Printing3D::Printing3DBufferDescription & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VertexNormalsDescription(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DBufferDescription impl_IPrinting3DMesh::TriangleIndicesDescription() const -{ - Windows::Graphics::Printing3D::Printing3DBufferDescription value {}; - check_hresult(static_cast(static_cast(*this))->get_TriangleIndicesDescription(put(value))); - return value; -} - -template void impl_IPrinting3DMesh::TriangleIndicesDescription(const Windows::Graphics::Printing3D::Printing3DBufferDescription & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TriangleIndicesDescription(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DBufferDescription impl_IPrinting3DMesh::TriangleMaterialIndicesDescription() const -{ - Windows::Graphics::Printing3D::Printing3DBufferDescription value {}; - check_hresult(static_cast(static_cast(*this))->get_TriangleMaterialIndicesDescription(put(value))); - return value; -} - -template void impl_IPrinting3DMesh::TriangleMaterialIndicesDescription(const Windows::Graphics::Printing3D::Printing3DBufferDescription & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TriangleMaterialIndicesDescription(get(value))); -} - -template Windows::Storage::Streams::IBuffer impl_IPrinting3DMesh::GetVertexPositions() const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_GetVertexPositions(put(buffer))); - return buffer; -} - -template void impl_IPrinting3DMesh::CreateVertexPositions(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CreateVertexPositions(value)); -} - -template Windows::Storage::Streams::IBuffer impl_IPrinting3DMesh::GetVertexNormals() const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_GetVertexNormals(put(buffer))); - return buffer; -} - -template void impl_IPrinting3DMesh::CreateVertexNormals(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CreateVertexNormals(value)); -} - -template Windows::Storage::Streams::IBuffer impl_IPrinting3DMesh::GetTriangleIndices() const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_GetTriangleIndices(put(buffer))); - return buffer; -} - -template void impl_IPrinting3DMesh::CreateTriangleIndices(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CreateTriangleIndices(value)); -} - -template Windows::Storage::Streams::IBuffer impl_IPrinting3DMesh::GetTriangleMaterialIndices() const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_GetTriangleMaterialIndices(put(buffer))); - return buffer; -} - -template void impl_IPrinting3DMesh::CreateTriangleMaterialIndices(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CreateTriangleMaterialIndices(value)); -} - -template Windows::Foundation::Collections::IPropertySet impl_IPrinting3DMesh::BufferDescriptionSet() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_BufferDescriptionSet(put(value))); - return value; -} - -template Windows::Foundation::Collections::IPropertySet impl_IPrinting3DMesh::BufferSet() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_BufferSet(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPrinting3DMesh::VerifyAsync(Windows::Graphics::Printing3D::Printing3DMeshVerificationMode value) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_VerifyAsync(value, put(operation))); - return operation; -} - -template Windows::Graphics::Printing3D::Printing3DTextureResource impl_IPrinting3DModelTexture::TextureResource() const -{ - Windows::Graphics::Printing3D::Printing3DTextureResource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextureResource(put(value))); - return value; -} - -template void impl_IPrinting3DModelTexture::TextureResource(const Windows::Graphics::Printing3D::Printing3DTextureResource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextureResource(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior impl_IPrinting3DModelTexture::TileStyleU() const -{ - Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior value {}; - check_hresult(static_cast(static_cast(*this))->get_TileStyleU(&value)); - return value; -} - -template void impl_IPrinting3DModelTexture::TileStyleU(Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TileStyleU(value)); -} - -template Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior impl_IPrinting3DModelTexture::TileStyleV() const -{ - Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior value {}; - check_hresult(static_cast(static_cast(*this))->get_TileStyleV(&value)); - return value; -} - -template void impl_IPrinting3DModelTexture::TileStyleV(Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TileStyleV(value)); -} - -template Windows::Storage::Streams::IRandomAccessStreamWithContentType impl_IPrinting3DTextureResource::TextureData() const -{ - Windows::Storage::Streams::IRandomAccessStreamWithContentType value; - check_hresult(static_cast(static_cast(*this))->get_TextureData(put(value))); - return value; -} - -template void impl_IPrinting3DTextureResource::TextureData(const Windows::Storage::Streams::IRandomAccessStreamWithContentType & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextureData(get(value))); -} - -template hstring impl_IPrinting3DTextureResource::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IPrinting3DTextureResource::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DComponent impl_IPrinting3DComponentWithMatrix::Component() const -{ - Windows::Graphics::Printing3D::Printing3DComponent value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Component(put(value))); - return value; -} - -template void impl_IPrinting3DComponentWithMatrix::Component(const Windows::Graphics::Printing3D::Printing3DComponent & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Component(get(value))); -} - -template Windows::Foundation::Numerics::float4x4 impl_IPrinting3DComponentWithMatrix::Matrix() const -{ - Windows::Foundation::Numerics::float4x4 value {}; - check_hresult(static_cast(static_cast(*this))->get_Matrix(put(value))); - return value; -} - -template void impl_IPrinting3DComponentWithMatrix::Matrix(const Windows::Foundation::Numerics::float4x4 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Matrix(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DMesh impl_IPrinting3DComponent::Mesh() const -{ - Windows::Graphics::Printing3D::Printing3DMesh value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Mesh(put(value))); - return value; -} - -template void impl_IPrinting3DComponent::Mesh(const Windows::Graphics::Printing3D::Printing3DMesh & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mesh(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DComponent::Components() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Components(put(value))); - return value; -} - -template Windows::Graphics::Printing3D::Printing3DTextureResource impl_IPrinting3DComponent::Thumbnail() const -{ - Windows::Graphics::Printing3D::Printing3DTextureResource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template void impl_IPrinting3DComponent::Thumbnail(const Windows::Graphics::Printing3D::Printing3DTextureResource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbnail(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DObjectType impl_IPrinting3DComponent::Type() const -{ - Windows::Graphics::Printing3D::Printing3DObjectType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template void impl_IPrinting3DComponent::Type(Windows::Graphics::Printing3D::Printing3DObjectType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Type(value)); -} - -template hstring impl_IPrinting3DComponent::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IPrinting3DComponent::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template hstring impl_IPrinting3DComponent::PartNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PartNumber(put(value))); - return value; -} - -template void impl_IPrinting3DComponent::PartNumber(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PartNumber(get(value))); -} - -template hstring impl_IPrinting3DBaseMaterialStatics::Abs() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Abs(put(value))); - return value; -} - -template hstring impl_IPrinting3DBaseMaterialStatics::Pla() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Pla(put(value))); - return value; -} - -template hstring impl_IPrinting3DBaseMaterial::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IPrinting3DBaseMaterial::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DColorMaterial impl_IPrinting3DBaseMaterial::Color() const -{ - Windows::Graphics::Printing3D::Printing3DColorMaterial value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Color(put(value))); - return value; -} - -template void impl_IPrinting3DBaseMaterial::Color(const Windows::Graphics::Printing3D::Printing3DColorMaterial & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Color(get(value))); -} - -template uint32_t impl_IPrinting3DColorMaterial::Value() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template void impl_IPrinting3DColorMaterial::Value(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(value)); -} - -template Windows::UI::Color impl_IPrinting3DColorMaterial2::Color() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_Color(put(value))); - return value; -} - -template void impl_IPrinting3DColorMaterial2::Color(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Color(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DModelTexture impl_IPrinting3DTexture2CoordMaterial::Texture() const -{ - Windows::Graphics::Printing3D::Printing3DModelTexture value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Texture(put(value))); - return value; -} - -template void impl_IPrinting3DTexture2CoordMaterial::Texture(const Windows::Graphics::Printing3D::Printing3DModelTexture & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Texture(get(value))); -} - -template double impl_IPrinting3DTexture2CoordMaterial::U() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_U(&value)); - return value; -} - -template void impl_IPrinting3DTexture2CoordMaterial::U(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_U(value)); -} - -template double impl_IPrinting3DTexture2CoordMaterial::V() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_V(&value)); - return value; -} - -template void impl_IPrinting3DTexture2CoordMaterial::V(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_V(value)); -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DCompositeMaterial::Values() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Values(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DMultiplePropertyMaterial::MaterialIndices() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_MaterialIndices(put(value))); - return value; -} - -template Windows::Graphics::Printing3D::Printing3DBaseMaterialGroup impl_IPrinting3DBaseMaterialGroupFactory::Create(uint32_t MaterialGroupId) const -{ - Windows::Graphics::Printing3D::Printing3DBaseMaterialGroup result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(MaterialGroupId, put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DBaseMaterialGroup::Bases() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Bases(put(value))); - return value; -} - -template uint32_t impl_IPrinting3DBaseMaterialGroup::MaterialGroupId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaterialGroupId(&value)); - return value; -} - -template Windows::Graphics::Printing3D::Printing3DColorMaterialGroup impl_IPrinting3DColorMaterialGroupFactory::Create(uint32_t MaterialGroupId) const -{ - Windows::Graphics::Printing3D::Printing3DColorMaterialGroup result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(MaterialGroupId, put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DColorMaterialGroup::Colors() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Colors(put(value))); - return value; -} - -template uint32_t impl_IPrinting3DColorMaterialGroup::MaterialGroupId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaterialGroupId(&value)); - return value; -} - -template Windows::Graphics::Printing3D::Printing3DTexture2CoordMaterialGroup impl_IPrinting3DTexture2CoordMaterialGroupFactory::Create(uint32_t MaterialGroupId) const -{ - Windows::Graphics::Printing3D::Printing3DTexture2CoordMaterialGroup result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(MaterialGroupId, put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DTexture2CoordMaterialGroup::Texture2Coords() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Texture2Coords(put(value))); - return value; -} - -template uint32_t impl_IPrinting3DTexture2CoordMaterialGroup::MaterialGroupId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaterialGroupId(&value)); - return value; -} - -template Windows::Graphics::Printing3D::Printing3DModelTexture impl_IPrinting3DTexture2CoordMaterialGroup2::Texture() const -{ - Windows::Graphics::Printing3D::Printing3DModelTexture value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Texture(put(value))); - return value; -} - -template void impl_IPrinting3DTexture2CoordMaterialGroup2::Texture(const Windows::Graphics::Printing3D::Printing3DModelTexture & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Texture(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DCompositeMaterialGroup impl_IPrinting3DCompositeMaterialGroupFactory::Create(uint32_t MaterialGroupId) const -{ - Windows::Graphics::Printing3D::Printing3DCompositeMaterialGroup result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(MaterialGroupId, put(result))); - return result; -} - -template Windows::Graphics::Printing3D::Printing3DBaseMaterialGroup impl_IPrinting3DCompositeMaterialGroup2::BaseMaterialGroup() const -{ - Windows::Graphics::Printing3D::Printing3DBaseMaterialGroup value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BaseMaterialGroup(put(value))); - return value; -} - -template void impl_IPrinting3DCompositeMaterialGroup2::BaseMaterialGroup(const Windows::Graphics::Printing3D::Printing3DBaseMaterialGroup & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BaseMaterialGroup(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DCompositeMaterialGroup::Composites() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Composites(put(value))); - return value; -} - -template uint32_t impl_IPrinting3DCompositeMaterialGroup::MaterialGroupId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaterialGroupId(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DCompositeMaterialGroup::MaterialIndices() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_MaterialIndices(put(value))); - return value; -} - -template Windows::Graphics::Printing3D::Printing3DMultiplePropertyMaterialGroup impl_IPrinting3DMultiplePropertyMaterialGroupFactory::Create(uint32_t MaterialGroupId) const -{ - Windows::Graphics::Printing3D::Printing3DMultiplePropertyMaterialGroup result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(MaterialGroupId, put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DMultiplePropertyMaterialGroup::MultipleProperties() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_MultipleProperties(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DMultiplePropertyMaterialGroup::MaterialGroupIndices() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_MaterialGroupIndices(put(value))); - return value; -} - -template uint32_t impl_IPrinting3DMultiplePropertyMaterialGroup::MaterialGroupId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaterialGroupId(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DMaterial::BaseGroups() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_BaseGroups(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DMaterial::ColorGroups() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ColorGroups(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DMaterial::Texture2CoordGroups() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Texture2CoordGroups(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DMaterial::CompositeGroups() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_CompositeGroups(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DMaterial::MultiplePropertyGroups() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_MultiplePropertyGroups(put(value))); - return value; -} - -template bool impl_IPrinting3DMeshVerificationResult::IsValid() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsValid(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPrinting3DMeshVerificationResult::NonmanifoldTriangles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_NonmanifoldTriangles(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPrinting3DMeshVerificationResult::ReversedNormalTriangles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ReversedNormalTriangles(put(value))); - return value; -} - -template Windows::Graphics::Printing3D::Printing3DModelUnit impl_IPrinting3DModel::Unit() const -{ - Windows::Graphics::Printing3D::Printing3DModelUnit value {}; - check_hresult(static_cast(static_cast(*this))->get_Unit(&value)); - return value; -} - -template void impl_IPrinting3DModel::Unit(Windows::Graphics::Printing3D::Printing3DModelUnit value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Unit(value)); -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DModel::Textures() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Textures(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DModel::Meshes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Meshes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DModel::Components() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Components(put(value))); - return value; -} - -template Windows::Graphics::Printing3D::Printing3DMaterial impl_IPrinting3DModel::Material() const -{ - Windows::Graphics::Printing3D::Printing3DMaterial value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Material(put(value))); - return value; -} - -template void impl_IPrinting3DModel::Material(const Windows::Graphics::Printing3D::Printing3DMaterial & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Material(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DComponent impl_IPrinting3DModel::Build() const -{ - Windows::Graphics::Printing3D::Printing3DComponent value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Build(put(value))); - return value; -} - -template void impl_IPrinting3DModel::Build(const Windows::Graphics::Printing3D::Printing3DComponent & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Build(get(value))); -} - -template hstring impl_IPrinting3DModel::Version() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Version(put(value))); - return value; -} - -template void impl_IPrinting3DModel::Version(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Version(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3DModel::RequiredExtensions() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_RequiredExtensions(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IPrinting3DModel::Metadata() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_Metadata(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IPrinting3DModel::RepairAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_RepairAsync(put(operation))); - return operation; -} - -template Windows::Graphics::Printing3D::Printing3DModel impl_IPrinting3DModel::Clone() const -{ - Windows::Graphics::Printing3D::Printing3DModel value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Clone(put(value))); - return value; -} - -template double impl_IPrinting3DFaceReductionOptions::MaxReductionArea() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxReductionArea(&value)); - return value; -} - -template void impl_IPrinting3DFaceReductionOptions::MaxReductionArea(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxReductionArea(value)); -} - -template uint32_t impl_IPrinting3DFaceReductionOptions::TargetTriangleCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TargetTriangleCount(&value)); - return value; -} - -template void impl_IPrinting3DFaceReductionOptions::TargetTriangleCount(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetTriangleCount(value)); -} - -template double impl_IPrinting3DFaceReductionOptions::MaxEdgeLength() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxEdgeLength(&value)); - return value; -} - -template void impl_IPrinting3DFaceReductionOptions::MaxEdgeLength(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxEdgeLength(value)); -} - -template Windows::Foundation::IAsyncOperation impl_IPrinting3DModel2::TryPartialRepairAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_TryPartialRepairAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPrinting3DModel2::TryPartialRepairAsync(const Windows::Foundation::TimeSpan & maxWaitTime) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_TryPartialRepairWithTimeAsync(get(maxWaitTime), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPrinting3DModel2::TryReduceFacesAsync() const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_TryReduceFacesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPrinting3DModel2::TryReduceFacesAsync(const Windows::Graphics::Printing3D::Printing3DFaceReductionOptions & printing3DFaceReductionOptions) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_TryReduceFacesWithOptionsAsync(get(printing3DFaceReductionOptions), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPrinting3DModel2::TryReduceFacesAsync(const Windows::Graphics::Printing3D::Printing3DFaceReductionOptions & printing3DFaceReductionOptions, const Windows::Foundation::TimeSpan & maxWait) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_TryReduceFacesWithOptionsAndTimeAsync(get(printing3DFaceReductionOptions), get(maxWait), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPrinting3DModel2::RepairWithProgressAsync() const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_RepairWithProgressAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPrinting3D3MFPackageStatics::LoadAsync(const Windows::Storage::Streams::IRandomAccessStream & value) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LoadAsync(get(value), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPrinting3D3MFPackage::SaveAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsync(put(operation))); - return operation; -} - -template Windows::Storage::Streams::IRandomAccessStream impl_IPrinting3D3MFPackage::PrintTicket() const -{ - Windows::Storage::Streams::IRandomAccessStream value; - check_hresult(static_cast(static_cast(*this))->get_PrintTicket(put(value))); - return value; -} - -template void impl_IPrinting3D3MFPackage::PrintTicket(const Windows::Storage::Streams::IRandomAccessStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PrintTicket(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStream impl_IPrinting3D3MFPackage::ModelPart() const -{ - Windows::Storage::Streams::IRandomAccessStream value; - check_hresult(static_cast(static_cast(*this))->get_ModelPart(put(value))); - return value; -} - -template void impl_IPrinting3D3MFPackage::ModelPart(const Windows::Storage::Streams::IRandomAccessStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ModelPart(get(value))); -} - -template Windows::Graphics::Printing3D::Printing3DTextureResource impl_IPrinting3D3MFPackage::Thumbnail() const -{ - Windows::Graphics::Printing3D::Printing3DTextureResource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template void impl_IPrinting3D3MFPackage::Thumbnail(const Windows::Graphics::Printing3D::Printing3DTextureResource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbnail(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IPrinting3D3MFPackage::Textures() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Textures(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPrinting3D3MFPackage::LoadModelFromPackageAsync(const Windows::Storage::Streams::IRandomAccessStream & value) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LoadModelFromPackageAsync(get(value), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IPrinting3D3MFPackage::SaveModelToPackageAsync(const Windows::Graphics::Printing3D::Printing3DModel & value) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SaveModelToPackageAsync(get(value), put(operation))); - return operation; -} - -inline Windows::Graphics::Printing3D::Print3DManager Print3DManager::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline Windows::Foundation::IAsyncOperation Print3DManager::ShowPrintUIAsync() -{ - return get_activation_factory().ShowPrintUIAsync(); -} - -inline Printing3D3MFPackage::Printing3D3MFPackage() : - Printing3D3MFPackage(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation Printing3D3MFPackage::LoadAsync(const Windows::Storage::Streams::IRandomAccessStream & value) -{ - return get_activation_factory().LoadAsync(value); -} - -inline Printing3DBaseMaterial::Printing3DBaseMaterial() : - Printing3DBaseMaterial(activate_instance()) -{} - -inline hstring Printing3DBaseMaterial::Abs() -{ - return get_activation_factory().Abs(); -} - -inline hstring Printing3DBaseMaterial::Pla() -{ - return get_activation_factory().Pla(); -} - -inline Printing3DBaseMaterialGroup::Printing3DBaseMaterialGroup(uint32_t MaterialGroupId) : - Printing3DBaseMaterialGroup(get_activation_factory().Create(MaterialGroupId)) -{} - -inline Printing3DColorMaterial::Printing3DColorMaterial() : - Printing3DColorMaterial(activate_instance()) -{} - -inline Printing3DColorMaterialGroup::Printing3DColorMaterialGroup(uint32_t MaterialGroupId) : - Printing3DColorMaterialGroup(get_activation_factory().Create(MaterialGroupId)) -{} - -inline Printing3DComponent::Printing3DComponent() : - Printing3DComponent(activate_instance()) -{} - -inline Printing3DComponentWithMatrix::Printing3DComponentWithMatrix() : - Printing3DComponentWithMatrix(activate_instance()) -{} - -inline Printing3DCompositeMaterial::Printing3DCompositeMaterial() : - Printing3DCompositeMaterial(activate_instance()) -{} - -inline Printing3DCompositeMaterialGroup::Printing3DCompositeMaterialGroup(uint32_t MaterialGroupId) : - Printing3DCompositeMaterialGroup(get_activation_factory().Create(MaterialGroupId)) -{} - -inline Printing3DFaceReductionOptions::Printing3DFaceReductionOptions() : - Printing3DFaceReductionOptions(activate_instance()) -{} - -inline Printing3DMaterial::Printing3DMaterial() : - Printing3DMaterial(activate_instance()) -{} - -inline Printing3DMesh::Printing3DMesh() : - Printing3DMesh(activate_instance()) -{} - -inline Printing3DModel::Printing3DModel() : - Printing3DModel(activate_instance()) -{} - -inline Printing3DModelTexture::Printing3DModelTexture() : - Printing3DModelTexture(activate_instance()) -{} - -inline Printing3DMultiplePropertyMaterial::Printing3DMultiplePropertyMaterial() : - Printing3DMultiplePropertyMaterial(activate_instance()) -{} - -inline Printing3DMultiplePropertyMaterialGroup::Printing3DMultiplePropertyMaterialGroup(uint32_t MaterialGroupId) : - Printing3DMultiplePropertyMaterialGroup(get_activation_factory().Create(MaterialGroupId)) -{} - -inline Printing3DTexture2CoordMaterial::Printing3DTexture2CoordMaterial() : - Printing3DTexture2CoordMaterial(activate_instance()) -{} - -inline Printing3DTexture2CoordMaterialGroup::Printing3DTexture2CoordMaterialGroup(uint32_t MaterialGroupId) : - Printing3DTexture2CoordMaterialGroup(get_activation_factory().Create(MaterialGroupId)) -{} - -inline Printing3DTextureResource::Printing3DTextureResource() : - Printing3DTextureResource(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Management.Core.h b/10.0.14393.0/winrt/Windows.Management.Core.h deleted file mode 100644 index 83f730c57..000000000 --- a/10.0.14393.0/winrt/Windows.Management.Core.h +++ /dev/null @@ -1,53 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Management.Core.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateForPackageFamily(abi_arg_in packageFamilyName, abi_arg_out applicationData) noexcept override - { - try - { - *applicationData = detach(this->shim().CreateForPackageFamily(*reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *applicationData = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Management::Core { - -template Windows::Storage::ApplicationData impl_IApplicationDataManagerStatics::CreateForPackageFamily(hstring_ref packageFamilyName) const -{ - Windows::Storage::ApplicationData applicationData { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateForPackageFamily(get(packageFamilyName), put(applicationData))); - return applicationData; -} - -inline Windows::Storage::ApplicationData ApplicationDataManager::CreateForPackageFamily(hstring_ref packageFamilyName) -{ - return get_activation_factory().CreateForPackageFamily(packageFamilyName); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Management.Deployment.Preview.h b/10.0.14393.0/winrt/Windows.Management.Deployment.Preview.h deleted file mode 100644 index 9e11bcea7..000000000 --- a/10.0.14393.0/winrt/Windows.Management.Deployment.Preview.h +++ /dev/null @@ -1,95 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Management.Deployment.Preview.3.h" -#include "Windows.Management.Deployment.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindInstalledApp(abi_arg_in appUninstallKey, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().FindInstalledApp(*reinterpret_cast(&appUninstallKey))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayVersion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayVersion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Management::Deployment::Preview { - -template hstring impl_IInstalledClassicAppInfo::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IInstalledClassicAppInfo::DisplayVersion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayVersion(put(value))); - return value; -} - -template Windows::Management::Deployment::Preview::InstalledClassicAppInfo impl_IClassicAppManagerStatics::FindInstalledApp(hstring_ref appUninstallKey) const -{ - Windows::Management::Deployment::Preview::InstalledClassicAppInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FindInstalledApp(get(appUninstallKey), put(result))); - return result; -} - -inline Windows::Management::Deployment::Preview::InstalledClassicAppInfo ClassicAppManager::FindInstalledApp(hstring_ref appUninstallKey) -{ - return get_activation_factory().FindInstalledApp(appUninstallKey); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Management.Deployment.h b/10.0.14393.0/winrt/Windows.Management.Deployment.h deleted file mode 100644 index e817f721f..000000000 --- a/10.0.14393.0/winrt/Windows.Management.Deployment.h +++ /dev/null @@ -1,1507 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.3.h" -#include "internal/Windows.Management.Deployment.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ErrorText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ErrorText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActivityId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ActivityId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedErrorCode(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddPackageAsync(abi_arg_in packageUri, abi_arg_in> dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().AddPackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast *>(&dependencyPackageUris), deploymentOptions)); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdatePackageAsync(abi_arg_in packageUri, abi_arg_in> dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().UpdatePackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast *>(&dependencyPackageUris), deploymentOptions)); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemovePackageAsync(abi_arg_in packageFullName, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().RemovePackageAsync(*reinterpret_cast(&packageFullName))); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StagePackageAsync(abi_arg_in packageUri, abi_arg_in> dependencyPackageUris, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().StagePackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast *>(&dependencyPackageUris))); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterPackageAsync(abi_arg_in manifestUri, abi_arg_in> dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().RegisterPackageAsync(*reinterpret_cast(&manifestUri), *reinterpret_cast *>(&dependencyPackageUris), deploymentOptions)); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackages(abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackages()); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityId(abi_arg_in userSecurityId, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByNamePublisher(abi_arg_in packageName, abi_arg_in packagePublisher, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackages(*reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityIdNamePublisher(abi_arg_in userSecurityId, abi_arg_in packageName, abi_arg_in packagePublisher, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindUsers(abi_arg_in packageFullName, abi_arg_out> users) noexcept override - { - try - { - *users = detach(this->shim().FindUsers(*reinterpret_cast(&packageFullName))); - return S_OK; - } - catch (...) - { - *users = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPackageState(abi_arg_in packageFullName, Windows::Management::Deployment::PackageState packageState) noexcept override - { - try - { - this->shim().SetPackageState(*reinterpret_cast(&packageFullName), packageState); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackageByPackageFullName(abi_arg_in packageFullName, abi_arg_out packageInformation) noexcept override - { - try - { - *packageInformation = detach(this->shim().FindPackage(*reinterpret_cast(&packageFullName))); - return S_OK; - } - catch (...) - { - *packageInformation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CleanupPackageForUserAsync(abi_arg_in packageName, abi_arg_in userSecurityId, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().CleanupPackageForUserAsync(*reinterpret_cast(&packageName), *reinterpret_cast(&userSecurityId))); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByPackageFamilyName(abi_arg_in packageFamilyName, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackages(*reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityIdPackageFamilyName(abi_arg_in userSecurityId, abi_arg_in packageFamilyName, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackageByUserSecurityIdPackageFullName(abi_arg_in userSecurityId, abi_arg_in packageFullName, abi_arg_out packageInformation) noexcept override - { - try - { - *packageInformation = detach(this->shim().FindPackageForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageFullName))); - return S_OK; - } - catch (...) - { - *packageInformation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RemovePackageWithOptionsAsync(abi_arg_in packageFullName, Windows::Management::Deployment::RemovalOptions removalOptions, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().RemovePackageAsync(*reinterpret_cast(&packageFullName), removalOptions)); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StagePackageWithOptionsAsync(abi_arg_in packageUri, abi_arg_in> dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().StagePackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast *>(&dependencyPackageUris), deploymentOptions)); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterPackageByFullNameAsync(abi_arg_in mainPackageFullName, abi_arg_in> dependencyPackageFullNames, Windows::Management::Deployment::DeploymentOptions deploymentOptions, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().RegisterPackageByFullNameAsync(*reinterpret_cast(&mainPackageFullName), *reinterpret_cast *>(&dependencyPackageFullNames), deploymentOptions)); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesWithPackageTypes(Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesWithPackageTypes(packageTypes)); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityIdWithPackageTypes(abi_arg_in userSecurityId, Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), packageTypes)); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByNamePublisherWithPackageTypes(abi_arg_in packageName, abi_arg_in packagePublisher, Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesWithPackageTypes(*reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher), packageTypes)); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(abi_arg_in userSecurityId, abi_arg_in packageName, abi_arg_in packagePublisher, Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher), packageTypes)); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByPackageFamilyNameWithPackageTypes(abi_arg_in packageFamilyName, Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesWithPackageTypes(*reinterpret_cast(&packageFamilyName), packageTypes)); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes(abi_arg_in userSecurityId, abi_arg_in packageFamilyName, Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageFamilyName), packageTypes)); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StageUserDataAsync(abi_arg_in packageFullName, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().StageUserDataAsync(*reinterpret_cast(&packageFullName))); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddPackageVolumeAsync(abi_arg_in packageStorePath, abi_arg_out> packageVolume) noexcept override - { - try - { - *packageVolume = detach(this->shim().AddPackageVolumeAsync(*reinterpret_cast(&packageStorePath))); - return S_OK; - } - catch (...) - { - *packageVolume = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddPackageToVolumeAsync(abi_arg_in packageUri, abi_arg_in> dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions, abi_arg_in targetVolume, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().AddPackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast *>(&dependencyPackageUris), deploymentOptions, *reinterpret_cast(&targetVolume))); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearPackageStatus(abi_arg_in packageFullName, Windows::Management::Deployment::PackageStatus status) noexcept override - { - try - { - this->shim().ClearPackageStatus(*reinterpret_cast(&packageFullName), status); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterPackageWithAppDataVolumeAsync(abi_arg_in manifestUri, abi_arg_in> dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions, abi_arg_in appDataVolume, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().RegisterPackageAsync(*reinterpret_cast(&manifestUri), *reinterpret_cast *>(&dependencyPackageUris), deploymentOptions, *reinterpret_cast(&appDataVolume))); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackageVolumeByName(abi_arg_in volumeName, abi_arg_out volume) noexcept override - { - try - { - *volume = detach(this->shim().FindPackageVolume(*reinterpret_cast(&volumeName))); - return S_OK; - } - catch (...) - { - *volume = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackageVolumes(abi_arg_out> volumeCollection) noexcept override - { - try - { - *volumeCollection = detach(this->shim().FindPackageVolumes()); - return S_OK; - } - catch (...) - { - *volumeCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultPackageVolume(abi_arg_out volume) noexcept override - { - try - { - *volume = detach(this->shim().GetDefaultPackageVolume()); - return S_OK; - } - catch (...) - { - *volume = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MovePackageToVolumeAsync(abi_arg_in packageFullName, Windows::Management::Deployment::DeploymentOptions deploymentOptions, abi_arg_in targetVolume, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().MovePackageToVolumeAsync(*reinterpret_cast(&packageFullName), deploymentOptions, *reinterpret_cast(&targetVolume))); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemovePackageVolumeAsync(abi_arg_in volume, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().RemovePackageVolumeAsync(*reinterpret_cast(&volume))); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDefaultPackageVolume(abi_arg_in volume) noexcept override - { - try - { - this->shim().SetDefaultPackageVolume(*reinterpret_cast(&volume)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPackageStatus(abi_arg_in packageFullName, Windows::Management::Deployment::PackageStatus status) noexcept override - { - try - { - this->shim().SetPackageStatus(*reinterpret_cast(&packageFullName), status); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPackageVolumeOfflineAsync(abi_arg_in packageVolume, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().SetPackageVolumeOfflineAsync(*reinterpret_cast(&packageVolume))); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPackageVolumeOnlineAsync(abi_arg_in packageVolume, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().SetPackageVolumeOnlineAsync(*reinterpret_cast(&packageVolume))); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StagePackageToVolumeAsync(abi_arg_in packageUri, abi_arg_in> dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions, abi_arg_in targetVolume, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().StagePackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast *>(&dependencyPackageUris), deploymentOptions, *reinterpret_cast(&targetVolume))); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StageUserDataWithOptionsAsync(abi_arg_in packageFullName, Windows::Management::Deployment::DeploymentOptions deploymentOptions, abi_arg_out> deploymentOperation) noexcept override - { - try - { - *deploymentOperation = detach(this->shim().StageUserDataAsync(*reinterpret_cast(&packageFullName), deploymentOptions)); - return S_OK; - } - catch (...) - { - *deploymentOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPackageVolumesAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPackageVolumesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UserSecurityId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserSecurityId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstallState(Windows::Management::Deployment::PackageInstallState * value) noexcept override - { - try - { - *value = detach(this->shim().InstallState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsOffline(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOffline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSystemVolume(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSystemVolume()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MountPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MountPoint()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PackageStorePath(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PackageStorePath()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportsHardLinks(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsHardLinks()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackages(abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackages()); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByNamePublisher(abi_arg_in packageName, abi_arg_in packagePublisher, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackages(*reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByPackageFamilyName(abi_arg_in packageFamilyName, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackages(*reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesWithPackageTypes(Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesWithPackageTypes(packageTypes)); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByNamePublisherWithPackagesTypes(Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_in packageName, abi_arg_in packagePublisher, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesWithPackageTypes(packageTypes, *reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByPackageFamilyNameWithPackageTypes(Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_in packageFamilyName, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesWithPackageTypes(packageTypes, *reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackageByPackageFullName(abi_arg_in packageFullName, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackage(*reinterpret_cast(&packageFullName))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityId(abi_arg_in userSecurityId, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityIdNamePublisher(abi_arg_in userSecurityId, abi_arg_in packageName, abi_arg_in packagePublisher, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityIdPackageFamilyName(abi_arg_in userSecurityId, abi_arg_in packageFamilyName, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityIdWithPackageTypes(abi_arg_in userSecurityId, Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), packageTypes)); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(abi_arg_in userSecurityId, Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_in packageName, abi_arg_in packagePublisher, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), packageTypes, *reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByUserSecurityIdPackageFamilyNameWithPackagesTypes(abi_arg_in userSecurityId, Windows::Management::Deployment::PackageTypes packageTypes, abi_arg_in packageFamilyName, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), packageTypes, *reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackageByUserSecurityIdPackageFullName(abi_arg_in userSecurityId, abi_arg_in packageFullName, abi_arg_out> packageCollection) noexcept override - { - try - { - *packageCollection = detach(this->shim().FindPackageForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageFullName))); - return S_OK; - } - catch (...) - { - *packageCollection = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsFullTrustPackageSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFullTrustPackageSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAppxInstallSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAppxInstallSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAvailableSpaceAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAvailableSpaceAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Management::Deployment { - -template hstring impl_IDeploymentResult::ErrorText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ErrorText(put(value))); - return value; -} - -template GUID impl_IDeploymentResult::ActivityId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ActivityId(&value)); - return value; -} - -template HRESULT impl_IDeploymentResult::ExtendedErrorCode() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedErrorCode(&value)); - return value; -} - -template hstring impl_IPackageUserInformation::UserSecurityId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserSecurityId(put(value))); - return value; -} - -template Windows::Management::Deployment::PackageInstallState impl_IPackageUserInformation::InstallState() const -{ - Windows::Management::Deployment::PackageInstallState value {}; - check_hresult(static_cast(static_cast(*this))->get_InstallState(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager::AddPackageAsync(const Windows::Foundation::Uri & packageUri, const Windows::Foundation::Collections::IIterable & dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_AddPackageAsync(get(packageUri), get(dependencyPackageUris), deploymentOptions, put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager::UpdatePackageAsync(const Windows::Foundation::Uri & packageUri, const Windows::Foundation::Collections::IIterable & dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_UpdatePackageAsync(get(packageUri), get(dependencyPackageUris), deploymentOptions, put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager::RemovePackageAsync(hstring_ref packageFullName) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_RemovePackageAsync(get(packageFullName), put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager::StagePackageAsync(const Windows::Foundation::Uri & packageUri, const Windows::Foundation::Collections::IIterable & dependencyPackageUris) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_StagePackageAsync(get(packageUri), get(dependencyPackageUris), put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager::RegisterPackageAsync(const Windows::Foundation::Uri & manifestUri, const Windows::Foundation::Collections::IIterable & dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_RegisterPackageAsync(get(manifestUri), get(dependencyPackageUris), deploymentOptions, put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager::FindPackages() const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackages(put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager::FindPackagesForUser(hstring_ref userSecurityId) const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityId(get(userSecurityId), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager::FindPackages(hstring_ref packageName, hstring_ref packagePublisher) const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByNamePublisher(get(packageName), get(packagePublisher), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager::FindPackagesForUser(hstring_ref userSecurityId, hstring_ref packageName, hstring_ref packagePublisher) const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityIdNamePublisher(get(userSecurityId), get(packageName), get(packagePublisher), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager::FindUsers(hstring_ref packageFullName) const -{ - Windows::Foundation::Collections::IIterable users; - check_hresult(static_cast(static_cast(*this))->abi_FindUsers(get(packageFullName), put(users))); - return users; -} - -template void impl_IPackageManager::SetPackageState(hstring_ref packageFullName, Windows::Management::Deployment::PackageState packageState) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPackageState(get(packageFullName), packageState)); -} - -template Windows::ApplicationModel::Package impl_IPackageManager::FindPackage(hstring_ref packageFullName) const -{ - Windows::ApplicationModel::Package packageInformation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FindPackageByPackageFullName(get(packageFullName), put(packageInformation))); - return packageInformation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager::CleanupPackageForUserAsync(hstring_ref packageName, hstring_ref userSecurityId) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_CleanupPackageForUserAsync(get(packageName), get(userSecurityId), put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager::FindPackages(hstring_ref packageFamilyName) const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByPackageFamilyName(get(packageFamilyName), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager::FindPackagesForUser(hstring_ref userSecurityId, hstring_ref packageFamilyName) const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityIdPackageFamilyName(get(userSecurityId), get(packageFamilyName), put(packageCollection))); - return packageCollection; -} - -template Windows::ApplicationModel::Package impl_IPackageManager::FindPackageForUser(hstring_ref userSecurityId, hstring_ref packageFullName) const -{ - Windows::ApplicationModel::Package packageInformation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FindPackageByUserSecurityIdPackageFullName(get(userSecurityId), get(packageFullName), put(packageInformation))); - return packageInformation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager2::RemovePackageAsync(hstring_ref packageFullName, Windows::Management::Deployment::RemovalOptions removalOptions) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_RemovePackageWithOptionsAsync(get(packageFullName), removalOptions, put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager2::StagePackageAsync(const Windows::Foundation::Uri & packageUri, const Windows::Foundation::Collections::IIterable & dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_StagePackageWithOptionsAsync(get(packageUri), get(dependencyPackageUris), deploymentOptions, put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager2::RegisterPackageByFullNameAsync(hstring_ref mainPackageFullName, const Windows::Foundation::Collections::IIterable & dependencyPackageFullNames, Windows::Management::Deployment::DeploymentOptions deploymentOptions) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_RegisterPackageByFullNameAsync(get(mainPackageFullName), get(dependencyPackageFullNames), deploymentOptions, put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager2::FindPackagesWithPackageTypes(Windows::Management::Deployment::PackageTypes packageTypes) const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesWithPackageTypes(packageTypes, put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager2::FindPackagesForUserWithPackageTypes(hstring_ref userSecurityId, Windows::Management::Deployment::PackageTypes packageTypes) const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityIdWithPackageTypes(get(userSecurityId), packageTypes, put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager2::FindPackagesWithPackageTypes(hstring_ref packageName, hstring_ref packagePublisher, Windows::Management::Deployment::PackageTypes packageTypes) const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByNamePublisherWithPackageTypes(get(packageName), get(packagePublisher), packageTypes, put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager2::FindPackagesForUserWithPackageTypes(hstring_ref userSecurityId, hstring_ref packageName, hstring_ref packagePublisher, Windows::Management::Deployment::PackageTypes packageTypes) const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(get(userSecurityId), get(packageName), get(packagePublisher), packageTypes, put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager2::FindPackagesWithPackageTypes(hstring_ref packageFamilyName, Windows::Management::Deployment::PackageTypes packageTypes) const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByPackageFamilyNameWithPackageTypes(get(packageFamilyName), packageTypes, put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager2::FindPackagesForUserWithPackageTypes(hstring_ref userSecurityId, hstring_ref packageFamilyName, Windows::Management::Deployment::PackageTypes packageTypes) const -{ - Windows::Foundation::Collections::IIterable packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes(get(userSecurityId), get(packageFamilyName), packageTypes, put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager2::StageUserDataAsync(hstring_ref packageFullName) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_StageUserDataAsync(get(packageFullName), put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IPackageManager3::AddPackageVolumeAsync(hstring_ref packageStorePath) const -{ - Windows::Foundation::IAsyncOperation packageVolume; - check_hresult(static_cast(static_cast(*this))->abi_AddPackageVolumeAsync(get(packageStorePath), put(packageVolume))); - return packageVolume; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager3::AddPackageAsync(const Windows::Foundation::Uri & packageUri, const Windows::Foundation::Collections::IIterable & dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions, const Windows::Management::Deployment::PackageVolume & targetVolume) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_AddPackageToVolumeAsync(get(packageUri), get(dependencyPackageUris), deploymentOptions, get(targetVolume), put(deploymentOperation))); - return deploymentOperation; -} - -template void impl_IPackageManager3::ClearPackageStatus(hstring_ref packageFullName, Windows::Management::Deployment::PackageStatus status) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearPackageStatus(get(packageFullName), status)); -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager3::RegisterPackageAsync(const Windows::Foundation::Uri & manifestUri, const Windows::Foundation::Collections::IIterable & dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions, const Windows::Management::Deployment::PackageVolume & appDataVolume) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_RegisterPackageWithAppDataVolumeAsync(get(manifestUri), get(dependencyPackageUris), deploymentOptions, get(appDataVolume), put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Management::Deployment::PackageVolume impl_IPackageManager3::FindPackageVolume(hstring_ref volumeName) const -{ - Windows::Management::Deployment::PackageVolume volume { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FindPackageVolumeByName(get(volumeName), put(volume))); - return volume; -} - -template Windows::Foundation::Collections::IIterable impl_IPackageManager3::FindPackageVolumes() const -{ - Windows::Foundation::Collections::IIterable volumeCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackageVolumes(put(volumeCollection))); - return volumeCollection; -} - -template Windows::Management::Deployment::PackageVolume impl_IPackageManager3::GetDefaultPackageVolume() const -{ - Windows::Management::Deployment::PackageVolume volume { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultPackageVolume(put(volume))); - return volume; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager3::MovePackageToVolumeAsync(hstring_ref packageFullName, Windows::Management::Deployment::DeploymentOptions deploymentOptions, const Windows::Management::Deployment::PackageVolume & targetVolume) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_MovePackageToVolumeAsync(get(packageFullName), deploymentOptions, get(targetVolume), put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager3::RemovePackageVolumeAsync(const Windows::Management::Deployment::PackageVolume & volume) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_RemovePackageVolumeAsync(get(volume), put(deploymentOperation))); - return deploymentOperation; -} - -template void impl_IPackageManager3::SetDefaultPackageVolume(const Windows::Management::Deployment::PackageVolume & volume) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDefaultPackageVolume(get(volume))); -} - -template void impl_IPackageManager3::SetPackageStatus(hstring_ref packageFullName, Windows::Management::Deployment::PackageStatus status) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPackageStatus(get(packageFullName), status)); -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager3::SetPackageVolumeOfflineAsync(const Windows::Management::Deployment::PackageVolume & packageVolume) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_SetPackageVolumeOfflineAsync(get(packageVolume), put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager3::SetPackageVolumeOnlineAsync(const Windows::Management::Deployment::PackageVolume & packageVolume) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_SetPackageVolumeOnlineAsync(get(packageVolume), put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager3::StagePackageAsync(const Windows::Foundation::Uri & packageUri, const Windows::Foundation::Collections::IIterable & dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions, const Windows::Management::Deployment::PackageVolume & targetVolume) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_StagePackageToVolumeAsync(get(packageUri), get(dependencyPackageUris), deploymentOptions, get(targetVolume), put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPackageManager3::StageUserDataAsync(hstring_ref packageFullName, Windows::Management::Deployment::DeploymentOptions deploymentOptions) const -{ - Windows::Foundation::IAsyncOperationWithProgress deploymentOperation; - check_hresult(static_cast(static_cast(*this))->abi_StageUserDataWithOptionsAsync(get(packageFullName), deploymentOptions, put(deploymentOperation))); - return deploymentOperation; -} - -template Windows::Foundation::IAsyncOperation> impl_IPackageManager4::GetPackageVolumesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPackageVolumesAsync(put(operation))); - return operation; -} - -template bool impl_IPackageVolume::IsOffline() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOffline(&value)); - return value; -} - -template bool impl_IPackageVolume::IsSystemVolume() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSystemVolume(&value)); - return value; -} - -template hstring impl_IPackageVolume::MountPoint() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MountPoint(put(value))); - return value; -} - -template hstring impl_IPackageVolume::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template hstring impl_IPackageVolume::PackageStorePath() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PackageStorePath(put(value))); - return value; -} - -template bool impl_IPackageVolume::SupportsHardLinks() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsHardLinks(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackages() const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackages(put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackages(hstring_ref packageName, hstring_ref packagePublisher) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByNamePublisher(get(packageName), get(packagePublisher), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackages(hstring_ref packageFamilyName) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByPackageFamilyName(get(packageFamilyName), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackagesWithPackageTypes(Windows::Management::Deployment::PackageTypes packageTypes) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesWithPackageTypes(packageTypes, put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackagesWithPackageTypes(Windows::Management::Deployment::PackageTypes packageTypes, hstring_ref packageName, hstring_ref packagePublisher) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByNamePublisherWithPackagesTypes(packageTypes, get(packageName), get(packagePublisher), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackagesWithPackageTypes(Windows::Management::Deployment::PackageTypes packageTypes, hstring_ref packageFamilyName) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByPackageFamilyNameWithPackageTypes(packageTypes, get(packageFamilyName), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackage(hstring_ref packageFullName) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackageByPackageFullName(get(packageFullName), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackagesForUser(hstring_ref userSecurityId) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityId(get(userSecurityId), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackagesForUser(hstring_ref userSecurityId, hstring_ref packageName, hstring_ref packagePublisher) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityIdNamePublisher(get(userSecurityId), get(packageName), get(packagePublisher), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackagesForUser(hstring_ref userSecurityId, hstring_ref packageFamilyName) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityIdPackageFamilyName(get(userSecurityId), get(packageFamilyName), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackagesForUserWithPackageTypes(hstring_ref userSecurityId, Windows::Management::Deployment::PackageTypes packageTypes) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityIdWithPackageTypes(get(userSecurityId), packageTypes, put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackagesForUserWithPackageTypes(hstring_ref userSecurityId, Windows::Management::Deployment::PackageTypes packageTypes, hstring_ref packageName, hstring_ref packagePublisher) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(get(userSecurityId), packageTypes, get(packageName), get(packagePublisher), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackagesForUserWithPackageTypes(hstring_ref userSecurityId, Windows::Management::Deployment::PackageTypes packageTypes, hstring_ref packageFamilyName) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByUserSecurityIdPackageFamilyNameWithPackagesTypes(get(userSecurityId), packageTypes, get(packageFamilyName), put(packageCollection))); - return packageCollection; -} - -template Windows::Foundation::Collections::IVector impl_IPackageVolume::FindPackageForUser(hstring_ref userSecurityId, hstring_ref packageFullName) const -{ - Windows::Foundation::Collections::IVector packageCollection; - check_hresult(static_cast(static_cast(*this))->abi_FindPackageByUserSecurityIdPackageFullName(get(userSecurityId), get(packageFullName), put(packageCollection))); - return packageCollection; -} - -template bool impl_IPackageVolume2::IsFullTrustPackageSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFullTrustPackageSupported(&value)); - return value; -} - -template bool impl_IPackageVolume2::IsAppxInstallSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAppxInstallSupported(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPackageVolume2::GetAvailableSpaceAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAvailableSpaceAsync(put(operation))); - return operation; -} - -inline PackageManager::PackageManager() : - PackageManager(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Management.Orchestration.h b/10.0.14393.0/winrt/Windows.Management.Orchestration.h deleted file mode 100644 index 883b45764..000000000 --- a/10.0.14393.0/winrt/Windows.Management.Orchestration.h +++ /dev/null @@ -1,78 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Management.Orchestration.3.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartSingleAppMode(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().StartSingleAppMode()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -} - -namespace Windows::Management::Orchestration { - -template Windows::Management::Orchestration::CurrentAppOrchestration impl_ICurrentAppOrchestrationStatics::GetForCurrentView() const -{ - Windows::Management::Orchestration::CurrentAppOrchestration result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(result))); - return result; -} - -template Windows::Management::Orchestration::SingleAppModeContext impl_ICurrentAppOrchestration::StartSingleAppMode() const -{ - Windows::Management::Orchestration::SingleAppModeContext result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_StartSingleAppMode(put(result))); - return result; -} - -inline Windows::Management::Orchestration::CurrentAppOrchestration CurrentAppOrchestration::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Management.Workplace.h b/10.0.14393.0/winrt/Windows.Management.Workplace.h deleted file mode 100644 index c64910478..000000000 --- a/10.0.14393.0/winrt/Windows.Management.Workplace.h +++ /dev/null @@ -1,180 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Management.Workplace.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsBrowserAllowed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBrowserAllowed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsCameraAllowed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCameraAllowed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsMicrosoftAccountAllowed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMicrosoftAccountAllowed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsStoreAllowed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStoreAllowed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetMessagingSyncPolicy(Windows::Management::Workplace::MessagingSyncPolicy * value) noexcept override - { - try - { - *value = detach(this->shim().GetMessagingSyncPolicy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsMicrosoftAccountOptional(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMicrosoftAccountOptional()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Management::Workplace { - -template bool impl_IMdmAllowPolicyStatics::IsBrowserAllowed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsBrowserAllowed(&value)); - return value; -} - -template bool impl_IMdmAllowPolicyStatics::IsCameraAllowed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsCameraAllowed(&value)); - return value; -} - -template bool impl_IMdmAllowPolicyStatics::IsMicrosoftAccountAllowed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsMicrosoftAccountAllowed(&value)); - return value; -} - -template bool impl_IMdmAllowPolicyStatics::IsStoreAllowed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsStoreAllowed(&value)); - return value; -} - -template Windows::Management::Workplace::MessagingSyncPolicy impl_IMdmPolicyStatics2::GetMessagingSyncPolicy() const -{ - Windows::Management::Workplace::MessagingSyncPolicy value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetMessagingSyncPolicy(&value)); - return value; -} - -template bool impl_IWorkplaceSettingsStatics::IsMicrosoftAccountOptional() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMicrosoftAccountOptional(&value)); - return value; -} - -inline bool MdmPolicy::IsBrowserAllowed() -{ - return get_activation_factory().IsBrowserAllowed(); -} - -inline bool MdmPolicy::IsCameraAllowed() -{ - return get_activation_factory().IsCameraAllowed(); -} - -inline bool MdmPolicy::IsMicrosoftAccountAllowed() -{ - return get_activation_factory().IsMicrosoftAccountAllowed(); -} - -inline bool MdmPolicy::IsStoreAllowed() -{ - return get_activation_factory().IsStoreAllowed(); -} - -inline Windows::Management::Workplace::MessagingSyncPolicy MdmPolicy::GetMessagingSyncPolicy() -{ - return get_activation_factory().GetMessagingSyncPolicy(); -} - -inline bool WorkplaceSettings::IsMicrosoftAccountOptional() -{ - return get_activation_factory().IsMicrosoftAccountOptional(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Audio.h b/10.0.14393.0/winrt/Windows.Media.Audio.h deleted file mode 100644 index c131e193f..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Audio.h +++ /dev/null @@ -1,4555 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Media.Render.3.h" -#include "internal/Windows.Media.MediaProperties.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Media.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Media.Capture.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.Effects.3.h" -#include "internal/Windows.Media.Audio.3.h" -#include "Windows.Media.h" -#include "Windows.Foundation.h" -#include "Windows.Media.Effects.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Device(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Device()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Device(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Device()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_PlaybackSpeedFactor(double value) noexcept override - { - try - { - this->shim().PlaybackSpeedFactor(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackSpeedFactor(double * value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackSpeedFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Seek(abi_arg_in position) noexcept override - { - try - { - this->shim().Seek(*reinterpret_cast(&position)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StartTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().StartTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EndTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EndTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().EndTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LoopCount(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LoopCount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LoopCount(abi_arg_in> value) noexcept override - { - try - { - this->shim().LoopCount(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceFile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceFile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FileCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FileCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FileCompleted(event_token token) noexcept override - { - try - { - this->shim().FileCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_File(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().File()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FileEncodingProfile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FileEncodingProfile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FinalizeAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FinalizeAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Frame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Frame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_PlaybackSpeedFactor(double value) noexcept override - { - try - { - this->shim().PlaybackSpeedFactor(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackSpeedFactor(double * value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackSpeedFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddFrame(abi_arg_in frame) noexcept override - { - try - { - this->shim().AddFrame(*reinterpret_cast(&frame)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DiscardQueuedFrames() noexcept override - { - try - { - this->shim().DiscardQueuedFrames(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QueuedSampleCount(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().QueuedSampleCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AudioFrameCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AudioFrameCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AudioFrameCompleted(event_token token) noexcept override - { - try - { - this->shim().AudioFrameCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_QuantumStarted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().QuantumStarted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_QuantumStarted(event_token token) noexcept override - { - try - { - this->shim().QuantumStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetFrame(abi_arg_out audioFrame) noexcept override - { - try - { - *audioFrame = detach(this->shim().GetFrame()); - return S_OK; - } - catch (...) - { - *audioFrame = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFrameInputNode(abi_arg_out frameInputNode) noexcept override - { - try - { - *frameInputNode = detach(this->shim().CreateFrameInputNode()); - return S_OK; - } - catch (...) - { - *frameInputNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFrameInputNodeWithFormat(abi_arg_in encodingProperties, abi_arg_out frameInputNode) noexcept override - { - try - { - *frameInputNode = detach(this->shim().CreateFrameInputNode(*reinterpret_cast(&encodingProperties))); - return S_OK; - } - catch (...) - { - *frameInputNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDeviceInputNodeAsync(Windows::Media::Capture::MediaCategory category, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateDeviceInputNodeAsync(category)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDeviceInputNodeWithFormatAsync(Windows::Media::Capture::MediaCategory category, abi_arg_in encodingProperties, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateDeviceInputNodeAsync(category, *reinterpret_cast(&encodingProperties))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDeviceInputNodeWithFormatOnDeviceAsync(Windows::Media::Capture::MediaCategory category, abi_arg_in encodingProperties, abi_arg_in device, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateDeviceInputNodeAsync(category, *reinterpret_cast(&encodingProperties), *reinterpret_cast(&device))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFrameOutputNode(abi_arg_out frameOutputNode) noexcept override - { - try - { - *frameOutputNode = detach(this->shim().CreateFrameOutputNode()); - return S_OK; - } - catch (...) - { - *frameOutputNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFrameOutputNodeWithFormat(abi_arg_in encodingProperties, abi_arg_out frameOutputNode) noexcept override - { - try - { - *frameOutputNode = detach(this->shim().CreateFrameOutputNode(*reinterpret_cast(&encodingProperties))); - return S_OK; - } - catch (...) - { - *frameOutputNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDeviceOutputNodeAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateDeviceOutputNodeAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFileInputNodeAsync(abi_arg_in file, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateFileInputNodeAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFileOutputNodeAsync(abi_arg_in file, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateFileOutputNodeAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFileOutputNodeWithFileProfileAsync(abi_arg_in file, abi_arg_in fileEncodingProfile, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateFileOutputNodeAsync(*reinterpret_cast(&file), *reinterpret_cast(&fileEncodingProfile))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSubmixNode(abi_arg_out submixNode) noexcept override - { - try - { - *submixNode = detach(this->shim().CreateSubmixNode()); - return S_OK; - } - catch (...) - { - *submixNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSubmixNodeWithFormat(abi_arg_in encodingProperties, abi_arg_out submixNode) noexcept override - { - try - { - *submixNode = detach(this->shim().CreateSubmixNode(*reinterpret_cast(&encodingProperties))); - return S_OK; - } - catch (...) - { - *submixNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetAllNodes() noexcept override - { - try - { - this->shim().ResetAllNodes(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_QuantumStarted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().QuantumStarted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_QuantumStarted(event_token token) noexcept override - { - try - { - this->shim().QuantumStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_QuantumProcessed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().QuantumProcessed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_QuantumProcessed(event_token token) noexcept override - { - try - { - this->shim().QuantumProcessed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UnrecoverableErrorOccurred(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UnrecoverableErrorOccurred(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UnrecoverableErrorOccurred(event_token token) noexcept override - { - try - { - this->shim().UnrecoverableErrorOccurred(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompletedQuantumCount(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().CompletedQuantumCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EncodingProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EncodingProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LatencyInSamples(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LatencyInSamples()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryRenderDevice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryRenderDevice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RenderDeviceAudioProcessing(Windows::Media::AudioProcessing * value) noexcept override - { - try - { - *value = detach(this->shim().RenderDeviceAudioProcessing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SamplesPerQuantum(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SamplesPerQuantum()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFrameInputNodeWithFormatAndEmitter(abi_arg_in encodingProperties, abi_arg_in emitter, abi_arg_out frameInputNode) noexcept override - { - try - { - *frameInputNode = detach(this->shim().CreateFrameInputNode(*reinterpret_cast(&encodingProperties), *reinterpret_cast(&emitter))); - return S_OK; - } - catch (...) - { - *frameInputNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDeviceInputNodeWithFormatAndEmitterOnDeviceAsync(Windows::Media::Capture::MediaCategory category, abi_arg_in encodingProperties, abi_arg_in device, abi_arg_in emitter, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateDeviceInputNodeAsync(category, *reinterpret_cast(&encodingProperties), *reinterpret_cast(&device), *reinterpret_cast(&emitter))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFileInputNodeWithEmitterAsync(abi_arg_in file, abi_arg_in emitter, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateFileInputNodeAsync(*reinterpret_cast(&file), *reinterpret_cast(&emitter))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSubmixNodeWithFormatAndEmitter(abi_arg_in encodingProperties, abi_arg_in emitter, abi_arg_out submixNode) noexcept override - { - try - { - *submixNode = detach(this->shim().CreateSubmixNode(*reinterpret_cast(&encodingProperties), *reinterpret_cast(&emitter))); - return S_OK; - } - catch (...) - { - *submixNode = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBatchUpdater(abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateBatchUpdater()); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Destination(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Destination()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Gain(double value) noexcept override - { - try - { - this->shim().Gain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gain(double * value) noexcept override - { - try - { - *value = detach(this->shim().Gain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EncodingProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EncodingProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EncodingProperties(abi_arg_in value) noexcept override - { - try - { - this->shim().EncodingProperties(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryRenderDevice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryRenderDevice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PrimaryRenderDevice(abi_arg_in value) noexcept override - { - try - { - this->shim().PrimaryRenderDevice(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QuantumSizeSelectionMode(Windows::Media::Audio::QuantumSizeSelectionMode * value) noexcept override - { - try - { - *value = detach(this->shim().QuantumSizeSelectionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_QuantumSizeSelectionMode(Windows::Media::Audio::QuantumSizeSelectionMode value) noexcept override - { - try - { - this->shim().QuantumSizeSelectionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredSamplesPerQuantum(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredSamplesPerQuantum()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredSamplesPerQuantum(int32_t value) noexcept override - { - try - { - this->shim().DesiredSamplesPerQuantum(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioRenderCategory(Windows::Media::Render::AudioRenderCategory * value) noexcept override - { - try - { - *value = detach(this->shim().AudioRenderCategory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioRenderCategory(Windows::Media::Render::AudioRenderCategory value) noexcept override - { - try - { - this->shim().AudioRenderCategory(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredRenderDeviceAudioProcessing(Windows::Media::AudioProcessing * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredRenderDeviceAudioProcessing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredRenderDeviceAudioProcessing(Windows::Media::AudioProcessing value) noexcept override - { - try - { - this->shim().DesiredRenderDeviceAudioProcessing(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::Media::Render::AudioRenderCategory audioRenderCategory, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(audioRenderCategory)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateAsync(abi_arg_in settings, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateAsync(*reinterpret_cast(&settings))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Error(Windows::Media::Audio::AudioGraphUnrecoverableError * value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OutgoingConnections(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().OutgoingConnections()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddOutgoingConnection(abi_arg_in destination) noexcept override - { - try - { - this->shim().AddOutgoingConnection(*reinterpret_cast(&destination)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddOutgoingConnectionWithGain(abi_arg_in destination, double gain) noexcept override - { - try - { - this->shim().AddOutgoingConnection(*reinterpret_cast(&destination), gain); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveOutgoingConnection(abi_arg_in destination) noexcept override - { - try - { - this->shim().RemoveOutgoingConnection(*reinterpret_cast(&destination)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Emitter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Emitter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EffectDefinitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EffectDefinitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutgoingGain(double value) noexcept override - { - try - { - this->shim().OutgoingGain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutgoingGain(double * value) noexcept override - { - try - { - *value = detach(this->shim().OutgoingGain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EncodingProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EncodingProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConsumeInput(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ConsumeInput()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ConsumeInput(bool value) noexcept override - { - try - { - this->shim().ConsumeInput(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Reset() noexcept override - { - try - { - this->shim().Reset(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisableEffectsByDefinition(abi_arg_in definition) noexcept override - { - try - { - this->shim().DisableEffectsByDefinition(*reinterpret_cast(&definition)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableEffectsByDefinition(abi_arg_in definition) noexcept override - { - try - { - this->shim().EnableEffectsByDefinition(*reinterpret_cast(&definition)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Position(abi_arg_in value) noexcept override - { - try - { - this->shim().Position(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Direction(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Direction()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Direction(abi_arg_in value) noexcept override - { - try - { - this->shim().Direction(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Shape(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Shape()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DecayModel(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DecayModel()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gain(double * value) noexcept override - { - try - { - *value = detach(this->shim().Gain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Gain(double value) noexcept override - { - try - { - this->shim().Gain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DistanceScale(double * value) noexcept override - { - try - { - *value = detach(this->shim().DistanceScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DistanceScale(double value) noexcept override - { - try - { - this->shim().DistanceScale(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DopplerScale(double * value) noexcept override - { - try - { - *value = detach(this->shim().DopplerScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DopplerScale(double value) noexcept override - { - try - { - this->shim().DopplerScale(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DopplerVelocity(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DopplerVelocity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DopplerVelocity(abi_arg_in value) noexcept override - { - try - { - this->shim().DopplerVelocity(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDopplerDisabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDopplerDisabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SpatialAudioModel(Windows::Media::Audio::SpatialAudioModel * value) noexcept override - { - try - { - *value = detach(this->shim().SpatialAudioModel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SpatialAudioModel(Windows::Media::Audio::SpatialAudioModel value) noexcept override - { - try - { - this->shim().SpatialAudioModel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InnerAngle(double * value) noexcept override - { - try - { - *value = detach(this->shim().InnerAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OuterAngle(double * value) noexcept override - { - try - { - *value = detach(this->shim().OuterAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OuterAngleGain(double * value) noexcept override - { - try - { - *value = detach(this->shim().OuterAngleGain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::Media::Audio::AudioNodeEmitterDecayKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinGain(double * value) noexcept override - { - try - { - *value = detach(this->shim().MinGain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxGain(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxGain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NaturalProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateNatural(double minGain, double maxGain, double unityGainDistance, double cutoffDistance, abi_arg_out decayModel) noexcept override - { - try - { - *decayModel = detach(this->shim().CreateNatural(minGain, maxGain, unityGainDistance, cutoffDistance)); - return S_OK; - } - catch (...) - { - *decayModel = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCustom(double minGain, double maxGain, abi_arg_out decayModel) noexcept override - { - try - { - *decayModel = detach(this->shim().CreateCustom(minGain, maxGain)); - return S_OK; - } - catch (...) - { - *decayModel = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateAudioNodeEmitter(abi_arg_in shape, abi_arg_in decayModel, Windows::Media::Audio::AudioNodeEmitterSettings settings, abi_arg_out emitter) noexcept override - { - try - { - *emitter = detach(this->shim().CreateAudioNodeEmitter(*reinterpret_cast(&shape), *reinterpret_cast(&decayModel), settings)); - return S_OK; - } - catch (...) - { - *emitter = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UnityGainDistance(double * value) noexcept override - { - try - { - *value = detach(this->shim().UnityGainDistance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CutoffDistance(double * value) noexcept override - { - try - { - *value = detach(this->shim().CutoffDistance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::Media::Audio::AudioNodeEmitterShapeKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConeProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConeProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCone(double innerAngle, double outerAngle, double outerAngleGain, abi_arg_out shape) noexcept override - { - try - { - *shape = detach(this->shim().CreateCone(innerAngle, outerAngle, outerAngleGain)); - return S_OK; - } - catch (...) - { - *shape = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateOmnidirectional(abi_arg_out shape) noexcept override - { - try - { - *shape = detach(this->shim().CreateOmnidirectional()); - return S_OK; - } - catch (...) - { - *shape = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Position(abi_arg_in value) noexcept override - { - try - { - this->shim().Position(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(abi_arg_in value) noexcept override - { - try - { - this->shim().Orientation(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpeedOfSound(double * value) noexcept override - { - try - { - *value = detach(this->shim().SpeedOfSound()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SpeedOfSound(double value) noexcept override - { - try - { - this->shim().SpeedOfSound(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DopplerVelocity(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DopplerVelocity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DopplerVelocity(abi_arg_in value) noexcept override - { - try - { - this->shim().DopplerVelocity(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Listener(abi_arg_in value) noexcept override - { - try - { - this->shim().Listener(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Listener(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Listener()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Media::Audio::AudioDeviceNodeCreationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceInputNode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInputNode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Media::Audio::AudioDeviceNodeCreationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceOutputNode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceOutputNode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Media::Audio::AudioFileNodeCreationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FileInputNode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FileInputNode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Media::Audio::AudioFileNodeCreationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FileOutputNode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FileOutputNode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Media::Audio::AudioGraphCreationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Graph(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Graph()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_WetDryMix(double value) noexcept override - { - try - { - this->shim().WetDryMix(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WetDryMix(double * value) noexcept override - { - try - { - *value = detach(this->shim().WetDryMix()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Feedback(double value) noexcept override - { - try - { - this->shim().Feedback(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Feedback(double * value) noexcept override - { - try - { - *value = detach(this->shim().Feedback()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Delay(double value) noexcept override - { - try - { - this->shim().Delay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Delay(double * value) noexcept override - { - try - { - *value = detach(this->shim().Delay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in audioGraph, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&audioGraph))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Bandwidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().Bandwidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Bandwidth(double value) noexcept override - { - try - { - this->shim().Bandwidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrequencyCenter(double * value) noexcept override - { - try - { - *value = detach(this->shim().FrequencyCenter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FrequencyCenter(double value) noexcept override - { - try - { - this->shim().FrequencyCenter(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gain(double * value) noexcept override - { - try - { - *value = detach(this->shim().Gain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Gain(double value) noexcept override - { - try - { - this->shim().Gain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Bands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Bands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in audioGraph, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&audioGraph))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequiredSamples(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RequiredSamples()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Release(uint32_t value) noexcept override - { - try - { - this->shim().Release(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Release(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Release()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Loudness(uint32_t value) noexcept override - { - try - { - this->shim().Loudness(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Loudness(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Loudness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in audioGraph, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&audioGraph))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_WetDryMix(double value) noexcept override - { - try - { - this->shim().WetDryMix(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WetDryMix(double * value) noexcept override - { - try - { - *value = detach(this->shim().WetDryMix()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReflectionsDelay(uint32_t value) noexcept override - { - try - { - this->shim().ReflectionsDelay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReflectionsDelay(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReflectionsDelay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReverbDelay(uint8_t value) noexcept override - { - try - { - this->shim().ReverbDelay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReverbDelay(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReverbDelay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RearDelay(uint8_t value) noexcept override - { - try - { - this->shim().RearDelay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RearDelay(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().RearDelay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PositionLeft(uint8_t value) noexcept override - { - try - { - this->shim().PositionLeft(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionLeft(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().PositionLeft()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PositionRight(uint8_t value) noexcept override - { - try - { - this->shim().PositionRight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionRight(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().PositionRight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PositionMatrixLeft(uint8_t value) noexcept override - { - try - { - this->shim().PositionMatrixLeft(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionMatrixLeft(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().PositionMatrixLeft()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PositionMatrixRight(uint8_t value) noexcept override - { - try - { - this->shim().PositionMatrixRight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionMatrixRight(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().PositionMatrixRight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EarlyDiffusion(uint8_t value) noexcept override - { - try - { - this->shim().EarlyDiffusion(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EarlyDiffusion(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().EarlyDiffusion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LateDiffusion(uint8_t value) noexcept override - { - try - { - this->shim().LateDiffusion(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LateDiffusion(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().LateDiffusion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LowEQGain(uint8_t value) noexcept override - { - try - { - this->shim().LowEQGain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LowEQGain(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().LowEQGain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LowEQCutoff(uint8_t value) noexcept override - { - try - { - this->shim().LowEQCutoff(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LowEQCutoff(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().LowEQCutoff()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HighEQGain(uint8_t value) noexcept override - { - try - { - this->shim().HighEQGain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HighEQGain(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().HighEQGain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HighEQCutoff(uint8_t value) noexcept override - { - try - { - this->shim().HighEQCutoff(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HighEQCutoff(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().HighEQCutoff()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RoomFilterFreq(double value) noexcept override - { - try - { - this->shim().RoomFilterFreq(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoomFilterFreq(double * value) noexcept override - { - try - { - *value = detach(this->shim().RoomFilterFreq()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RoomFilterMain(double value) noexcept override - { - try - { - this->shim().RoomFilterMain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoomFilterMain(double * value) noexcept override - { - try - { - *value = detach(this->shim().RoomFilterMain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RoomFilterHF(double value) noexcept override - { - try - { - this->shim().RoomFilterHF(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoomFilterHF(double * value) noexcept override - { - try - { - *value = detach(this->shim().RoomFilterHF()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReflectionsGain(double value) noexcept override - { - try - { - this->shim().ReflectionsGain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReflectionsGain(double * value) noexcept override - { - try - { - *value = detach(this->shim().ReflectionsGain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReverbGain(double value) noexcept override - { - try - { - this->shim().ReverbGain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReverbGain(double * value) noexcept override - { - try - { - *value = detach(this->shim().ReverbGain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DecayTime(double value) noexcept override - { - try - { - this->shim().DecayTime(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DecayTime(double * value) noexcept override - { - try - { - *value = detach(this->shim().DecayTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Density(double value) noexcept override - { - try - { - this->shim().Density(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Density(double * value) noexcept override - { - try - { - *value = detach(this->shim().Density()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RoomSize(double value) noexcept override - { - try - { - this->shim().RoomSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoomSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().RoomSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisableLateField(bool value) noexcept override - { - try - { - this->shim().DisableLateField(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisableLateField(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DisableLateField()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in audioGraph, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&audioGraph))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Audio { - -template Windows::Media::Audio::AudioGraphCreationStatus impl_ICreateAudioGraphResult::Status() const -{ - Windows::Media::Audio::AudioGraphCreationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Media::Audio::AudioGraph impl_ICreateAudioGraphResult::Graph() const -{ - Windows::Media::Audio::AudioGraph value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Graph(put(value))); - return value; -} - -template Windows::Media::Audio::AudioGraphSettings impl_IAudioGraphSettingsFactory::Create(Windows::Media::Render::AudioRenderCategory audioRenderCategory) const -{ - Windows::Media::Audio::AudioGraphSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(audioRenderCategory, put(value))); - return value; -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IAudioGraphSettings::EncodingProperties() const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EncodingProperties(put(value))); - return value; -} - -template void impl_IAudioGraphSettings::EncodingProperties(const Windows::Media::MediaProperties::AudioEncodingProperties & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EncodingProperties(get(value))); -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IAudioGraphSettings::PrimaryRenderDevice() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PrimaryRenderDevice(put(value))); - return value; -} - -template void impl_IAudioGraphSettings::PrimaryRenderDevice(const Windows::Devices::Enumeration::DeviceInformation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PrimaryRenderDevice(get(value))); -} - -template Windows::Media::Audio::QuantumSizeSelectionMode impl_IAudioGraphSettings::QuantumSizeSelectionMode() const -{ - Windows::Media::Audio::QuantumSizeSelectionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_QuantumSizeSelectionMode(&value)); - return value; -} - -template void impl_IAudioGraphSettings::QuantumSizeSelectionMode(Windows::Media::Audio::QuantumSizeSelectionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_QuantumSizeSelectionMode(value)); -} - -template int32_t impl_IAudioGraphSettings::DesiredSamplesPerQuantum() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredSamplesPerQuantum(&value)); - return value; -} - -template void impl_IAudioGraphSettings::DesiredSamplesPerQuantum(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredSamplesPerQuantum(value)); -} - -template Windows::Media::Render::AudioRenderCategory impl_IAudioGraphSettings::AudioRenderCategory() const -{ - Windows::Media::Render::AudioRenderCategory value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioRenderCategory(&value)); - return value; -} - -template void impl_IAudioGraphSettings::AudioRenderCategory(Windows::Media::Render::AudioRenderCategory value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioRenderCategory(value)); -} - -template Windows::Media::AudioProcessing impl_IAudioGraphSettings::DesiredRenderDeviceAudioProcessing() const -{ - Windows::Media::AudioProcessing value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredRenderDeviceAudioProcessing(&value)); - return value; -} - -template void impl_IAudioGraphSettings::DesiredRenderDeviceAudioProcessing(Windows::Media::AudioProcessing value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredRenderDeviceAudioProcessing(value)); -} - -template Windows::Foundation::IAsyncOperation impl_IAudioGraphStatics::CreateAsync(const Windows::Media::Audio::AudioGraphSettings & settings) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateAsync(get(settings), put(result))); - return result; -} - -template Windows::Media::Audio::AudioDeviceNodeCreationStatus impl_ICreateAudioDeviceInputNodeResult::Status() const -{ - Windows::Media::Audio::AudioDeviceNodeCreationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Media::Audio::AudioDeviceInputNode impl_ICreateAudioDeviceInputNodeResult::DeviceInputNode() const -{ - Windows::Media::Audio::AudioDeviceInputNode value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceInputNode(put(value))); - return value; -} - -template Windows::Media::Audio::AudioDeviceNodeCreationStatus impl_ICreateAudioDeviceOutputNodeResult::Status() const -{ - Windows::Media::Audio::AudioDeviceNodeCreationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Media::Audio::AudioDeviceOutputNode impl_ICreateAudioDeviceOutputNodeResult::DeviceOutputNode() const -{ - Windows::Media::Audio::AudioDeviceOutputNode value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceOutputNode(put(value))); - return value; -} - -template Windows::Media::Audio::AudioFileNodeCreationStatus impl_ICreateAudioFileInputNodeResult::Status() const -{ - Windows::Media::Audio::AudioFileNodeCreationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Media::Audio::AudioFileInputNode impl_ICreateAudioFileInputNodeResult::FileInputNode() const -{ - Windows::Media::Audio::AudioFileInputNode value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FileInputNode(put(value))); - return value; -} - -template Windows::Media::Audio::AudioFileNodeCreationStatus impl_ICreateAudioFileOutputNodeResult::Status() const -{ - Windows::Media::Audio::AudioFileNodeCreationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Media::Audio::AudioFileOutputNode impl_ICreateAudioFileOutputNodeResult::FileOutputNode() const -{ - Windows::Media::Audio::AudioFileOutputNode value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FileOutputNode(put(value))); - return value; -} - -template Windows::Media::Audio::AudioGraphUnrecoverableError impl_IAudioGraphUnrecoverableErrorOccurredEventArgs::Error() const -{ - Windows::Media::Audio::AudioGraphUnrecoverableError value {}; - check_hresult(static_cast(static_cast(*this))->get_Error(&value)); - return value; -} - -template Windows::Media::Audio::AudioFrameInputNode impl_IAudioGraph::CreateFrameInputNode() const -{ - Windows::Media::Audio::AudioFrameInputNode frameInputNode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFrameInputNode(put(frameInputNode))); - return frameInputNode; -} - -template Windows::Media::Audio::AudioFrameInputNode impl_IAudioGraph::CreateFrameInputNode(const Windows::Media::MediaProperties::AudioEncodingProperties & encodingProperties) const -{ - Windows::Media::Audio::AudioFrameInputNode frameInputNode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFrameInputNodeWithFormat(get(encodingProperties), put(frameInputNode))); - return frameInputNode; -} - -template Windows::Foundation::IAsyncOperation impl_IAudioGraph::CreateDeviceInputNodeAsync(Windows::Media::Capture::MediaCategory category) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateDeviceInputNodeAsync(category, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAudioGraph::CreateDeviceInputNodeAsync(Windows::Media::Capture::MediaCategory category, const Windows::Media::MediaProperties::AudioEncodingProperties & encodingProperties) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateDeviceInputNodeWithFormatAsync(category, get(encodingProperties), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAudioGraph::CreateDeviceInputNodeAsync(Windows::Media::Capture::MediaCategory category, const Windows::Media::MediaProperties::AudioEncodingProperties & encodingProperties, const Windows::Devices::Enumeration::DeviceInformation & device) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateDeviceInputNodeWithFormatOnDeviceAsync(category, get(encodingProperties), get(device), put(result))); - return result; -} - -template Windows::Media::Audio::AudioFrameOutputNode impl_IAudioGraph::CreateFrameOutputNode() const -{ - Windows::Media::Audio::AudioFrameOutputNode frameOutputNode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFrameOutputNode(put(frameOutputNode))); - return frameOutputNode; -} - -template Windows::Media::Audio::AudioFrameOutputNode impl_IAudioGraph::CreateFrameOutputNode(const Windows::Media::MediaProperties::AudioEncodingProperties & encodingProperties) const -{ - Windows::Media::Audio::AudioFrameOutputNode frameOutputNode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFrameOutputNodeWithFormat(get(encodingProperties), put(frameOutputNode))); - return frameOutputNode; -} - -template Windows::Foundation::IAsyncOperation impl_IAudioGraph::CreateDeviceOutputNodeAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateDeviceOutputNodeAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAudioGraph::CreateFileInputNodeAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileInputNodeAsync(get(file), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAudioGraph::CreateFileOutputNodeAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileOutputNodeAsync(get(file), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAudioGraph::CreateFileOutputNodeAsync(const Windows::Storage::IStorageFile & file, const Windows::Media::MediaProperties::MediaEncodingProfile & fileEncodingProfile) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileOutputNodeWithFileProfileAsync(get(file), get(fileEncodingProfile), put(result))); - return result; -} - -template Windows::Media::Audio::AudioSubmixNode impl_IAudioGraph::CreateSubmixNode() const -{ - Windows::Media::Audio::AudioSubmixNode submixNode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateSubmixNode(put(submixNode))); - return submixNode; -} - -template Windows::Media::Audio::AudioSubmixNode impl_IAudioGraph::CreateSubmixNode(const Windows::Media::MediaProperties::AudioEncodingProperties & encodingProperties) const -{ - Windows::Media::Audio::AudioSubmixNode submixNode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateSubmixNodeWithFormat(get(encodingProperties), put(submixNode))); - return submixNode; -} - -template void impl_IAudioGraph::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IAudioGraph::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template void impl_IAudioGraph::ResetAllNodes() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ResetAllNodes()); -} - -template event_token impl_IAudioGraph::QuantumStarted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_QuantumStarted(get(handler), &token)); - return token; -} - -template event_revoker impl_IAudioGraph::QuantumStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Audio::IAudioGraph::remove_QuantumStarted, QuantumStarted(handler)); -} - -template void impl_IAudioGraph::QuantumStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_QuantumStarted(token)); -} - -template event_token impl_IAudioGraph::QuantumProcessed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_QuantumProcessed(get(handler), &token)); - return token; -} - -template event_revoker impl_IAudioGraph::QuantumProcessed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Audio::IAudioGraph::remove_QuantumProcessed, QuantumProcessed(handler)); -} - -template void impl_IAudioGraph::QuantumProcessed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_QuantumProcessed(token)); -} - -template event_token impl_IAudioGraph::UnrecoverableErrorOccurred(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UnrecoverableErrorOccurred(get(handler), &token)); - return token; -} - -template event_revoker impl_IAudioGraph::UnrecoverableErrorOccurred(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Audio::IAudioGraph::remove_UnrecoverableErrorOccurred, UnrecoverableErrorOccurred(handler)); -} - -template void impl_IAudioGraph::UnrecoverableErrorOccurred(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UnrecoverableErrorOccurred(token)); -} - -template uint64_t impl_IAudioGraph::CompletedQuantumCount() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CompletedQuantumCount(&value)); - return value; -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IAudioGraph::EncodingProperties() const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EncodingProperties(put(value))); - return value; -} - -template int32_t impl_IAudioGraph::LatencyInSamples() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LatencyInSamples(&value)); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IAudioGraph::PrimaryRenderDevice() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PrimaryRenderDevice(put(value))); - return value; -} - -template Windows::Media::AudioProcessing impl_IAudioGraph::RenderDeviceAudioProcessing() const -{ - Windows::Media::AudioProcessing value {}; - check_hresult(static_cast(static_cast(*this))->get_RenderDeviceAudioProcessing(&value)); - return value; -} - -template int32_t impl_IAudioGraph::SamplesPerQuantum() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SamplesPerQuantum(&value)); - return value; -} - -template Windows::Media::Audio::AudioFrameInputNode impl_IAudioGraph2::CreateFrameInputNode(const Windows::Media::MediaProperties::AudioEncodingProperties & encodingProperties, const Windows::Media::Audio::AudioNodeEmitter & emitter) const -{ - Windows::Media::Audio::AudioFrameInputNode frameInputNode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFrameInputNodeWithFormatAndEmitter(get(encodingProperties), get(emitter), put(frameInputNode))); - return frameInputNode; -} - -template Windows::Foundation::IAsyncOperation impl_IAudioGraph2::CreateDeviceInputNodeAsync(Windows::Media::Capture::MediaCategory category, const Windows::Media::MediaProperties::AudioEncodingProperties & encodingProperties, const Windows::Devices::Enumeration::DeviceInformation & device, const Windows::Media::Audio::AudioNodeEmitter & emitter) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateDeviceInputNodeWithFormatAndEmitterOnDeviceAsync(category, get(encodingProperties), get(device), get(emitter), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAudioGraph2::CreateFileInputNodeAsync(const Windows::Storage::IStorageFile & file, const Windows::Media::Audio::AudioNodeEmitter & emitter) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileInputNodeWithEmitterAsync(get(file), get(emitter), put(result))); - return result; -} - -template Windows::Media::Audio::AudioSubmixNode impl_IAudioGraph2::CreateSubmixNode(const Windows::Media::MediaProperties::AudioEncodingProperties & encodingProperties, const Windows::Media::Audio::AudioNodeEmitter & emitter) const -{ - Windows::Media::Audio::AudioSubmixNode submixNode { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateSubmixNodeWithFormatAndEmitter(get(encodingProperties), get(emitter), put(submixNode))); - return submixNode; -} - -template Windows::Media::Audio::AudioGraphBatchUpdater impl_IAudioGraph2::CreateBatchUpdater() const -{ - Windows::Media::Audio::AudioGraphBatchUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBatchUpdater(put(updater))); - return updater; -} - -template Windows::Foundation::Collections::IVector impl_IAudioNode::EffectDefinitions() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_EffectDefinitions(put(value))); - return value; -} - -template void impl_IAudioNode::OutgoingGain(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutgoingGain(value)); -} - -template double impl_IAudioNode::OutgoingGain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OutgoingGain(&value)); - return value; -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IAudioNode::EncodingProperties() const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EncodingProperties(put(value))); - return value; -} - -template bool impl_IAudioNode::ConsumeInput() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ConsumeInput(&value)); - return value; -} - -template void impl_IAudioNode::ConsumeInput(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ConsumeInput(value)); -} - -template void impl_IAudioNode::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IAudioNode::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template void impl_IAudioNode::Reset() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Reset()); -} - -template void impl_IAudioNode::DisableEffectsByDefinition(const Windows::Media::Effects::IAudioEffectDefinition & definition) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DisableEffectsByDefinition(get(definition))); -} - -template void impl_IAudioNode::EnableEffectsByDefinition(const Windows::Media::Effects::IAudioEffectDefinition & definition) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableEffectsByDefinition(get(definition))); -} - -template void impl_IAudioNodeWithListener::Listener(const Windows::Media::Audio::AudioNodeListener & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Listener(get(value))); -} - -template Windows::Media::Audio::AudioNodeListener impl_IAudioNodeWithListener::Listener() const -{ - Windows::Media::Audio::AudioNodeListener value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Listener(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAudioInputNode::OutgoingConnections() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_OutgoingConnections(put(value))); - return value; -} - -template void impl_IAudioInputNode::AddOutgoingConnection(const Windows::Media::Audio::IAudioNode & destination) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddOutgoingConnection(get(destination))); -} - -template void impl_IAudioInputNode::AddOutgoingConnection(const Windows::Media::Audio::IAudioNode & destination, double gain) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddOutgoingConnectionWithGain(get(destination), gain)); -} - -template void impl_IAudioInputNode::RemoveOutgoingConnection(const Windows::Media::Audio::IAudioNode & destination) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveOutgoingConnection(get(destination))); -} - -template Windows::Media::Audio::AudioNodeEmitter impl_IAudioInputNode2::Emitter() const -{ - Windows::Media::Audio::AudioNodeEmitter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Emitter(put(value))); - return value; -} - -template void impl_IAudioFrameInputNode::PlaybackSpeedFactor(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaybackSpeedFactor(value)); -} - -template double impl_IAudioFrameInputNode::PlaybackSpeedFactor() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_PlaybackSpeedFactor(&value)); - return value; -} - -template void impl_IAudioFrameInputNode::AddFrame(const Windows::Media::AudioFrame & frame) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddFrame(get(frame))); -} - -template void impl_IAudioFrameInputNode::DiscardQueuedFrames() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DiscardQueuedFrames()); -} - -template uint64_t impl_IAudioFrameInputNode::QueuedSampleCount() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_QueuedSampleCount(&value)); - return value; -} - -template event_token impl_IAudioFrameInputNode::AudioFrameCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AudioFrameCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IAudioFrameInputNode::AudioFrameCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Audio::IAudioFrameInputNode::remove_AudioFrameCompleted, AudioFrameCompleted(handler)); -} - -template void impl_IAudioFrameInputNode::AudioFrameCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AudioFrameCompleted(token)); -} - -template event_token impl_IAudioFrameInputNode::QuantumStarted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_QuantumStarted(get(handler), &token)); - return token; -} - -template event_revoker impl_IAudioFrameInputNode::QuantumStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Audio::IAudioFrameInputNode::remove_QuantumStarted, QuantumStarted(handler)); -} - -template void impl_IAudioFrameInputNode::QuantumStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_QuantumStarted(token)); -} - -template void impl_IAudioFileInputNode::PlaybackSpeedFactor(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaybackSpeedFactor(value)); -} - -template double impl_IAudioFileInputNode::PlaybackSpeedFactor() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_PlaybackSpeedFactor(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IAudioFileInputNode::Position() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template void impl_IAudioFileInputNode::Seek(const Windows::Foundation::TimeSpan & position) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Seek(get(position))); -} - -template Windows::Foundation::IReference impl_IAudioFileInputNode::StartTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template void impl_IAudioFileInputNode::StartTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartTime(get(value))); -} - -template Windows::Foundation::IReference impl_IAudioFileInputNode::EndTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_EndTime(put(value))); - return value; -} - -template void impl_IAudioFileInputNode::EndTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EndTime(get(value))); -} - -template Windows::Foundation::IReference impl_IAudioFileInputNode::LoopCount() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_LoopCount(put(value))); - return value; -} - -template void impl_IAudioFileInputNode::LoopCount(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LoopCount(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IAudioFileInputNode::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template Windows::Storage::StorageFile impl_IAudioFileInputNode::SourceFile() const -{ - Windows::Storage::StorageFile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceFile(put(value))); - return value; -} - -template event_token impl_IAudioFileInputNode::FileCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FileCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IAudioFileInputNode::FileCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Audio::IAudioFileInputNode::remove_FileCompleted, FileCompleted(handler)); -} - -template void impl_IAudioFileInputNode::FileCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FileCompleted(token)); -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IAudioDeviceInputNode::Device() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Device(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IAudioDeviceOutputNode::Device() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Device(put(value))); - return value; -} - -template Windows::Media::AudioFrame impl_IAudioFrameOutputNode::GetFrame() const -{ - Windows::Media::AudioFrame audioFrame { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetFrame(put(audioFrame))); - return audioFrame; -} - -template Windows::Storage::IStorageFile impl_IAudioFileOutputNode::File() const -{ - Windows::Storage::IStorageFile value; - check_hresult(static_cast(static_cast(*this))->get_File(put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaEncodingProfile impl_IAudioFileOutputNode::FileEncodingProfile() const -{ - Windows::Media::MediaProperties::MediaEncodingProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FileEncodingProfile(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IAudioFileOutputNode::FinalizeAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FinalizeAsync(put(result))); - return result; -} - -template Windows::Media::AudioFrame impl_IAudioFrameCompletedEventArgs::Frame() const -{ - Windows::Media::AudioFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Frame(put(value))); - return value; -} - -template int32_t impl_IFrameInputNodeQuantumStartedEventArgs::RequiredSamples() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RequiredSamples(&value)); - return value; -} - -template Windows::Media::Audio::IAudioNode impl_IAudioGraphConnection::Destination() const -{ - Windows::Media::Audio::IAudioNode value; - check_hresult(static_cast(static_cast(*this))->get_Destination(put(value))); - return value; -} - -template void impl_IAudioGraphConnection::Gain(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Gain(value)); -} - -template double impl_IAudioGraphConnection::Gain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Gain(&value)); - return value; -} - -template double impl_IEqualizerBand::Bandwidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Bandwidth(&value)); - return value; -} - -template void impl_IEqualizerBand::Bandwidth(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Bandwidth(value)); -} - -template double impl_IEqualizerBand::FrequencyCenter() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FrequencyCenter(&value)); - return value; -} - -template void impl_IEqualizerBand::FrequencyCenter(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FrequencyCenter(value)); -} - -template double impl_IEqualizerBand::Gain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Gain(&value)); - return value; -} - -template void impl_IEqualizerBand::Gain(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Gain(value)); -} - -template Windows::Media::Audio::EqualizerEffectDefinition impl_IEqualizerEffectDefinitionFactory::Create(const Windows::Media::Audio::AudioGraph & audioGraph) const -{ - Windows::Media::Audio::EqualizerEffectDefinition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(audioGraph), put(value))); - return value; -} - -template Windows::Media::Audio::ReverbEffectDefinition impl_IReverbEffectDefinitionFactory::Create(const Windows::Media::Audio::AudioGraph & audioGraph) const -{ - Windows::Media::Audio::ReverbEffectDefinition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(audioGraph), put(value))); - return value; -} - -template Windows::Media::Audio::EchoEffectDefinition impl_IEchoEffectDefinitionFactory::Create(const Windows::Media::Audio::AudioGraph & audioGraph) const -{ - Windows::Media::Audio::EchoEffectDefinition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(audioGraph), put(value))); - return value; -} - -template Windows::Media::Audio::LimiterEffectDefinition impl_ILimiterEffectDefinitionFactory::Create(const Windows::Media::Audio::AudioGraph & audioGraph) const -{ - Windows::Media::Audio::LimiterEffectDefinition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(audioGraph), put(value))); - return value; -} - -template double impl_IAudioNodeEmitterConeProperties::InnerAngle() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_InnerAngle(&value)); - return value; -} - -template double impl_IAudioNodeEmitterConeProperties::OuterAngle() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OuterAngle(&value)); - return value; -} - -template double impl_IAudioNodeEmitterConeProperties::OuterAngleGain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OuterAngleGain(&value)); - return value; -} - -template Windows::Media::Audio::AudioNodeEmitterShapeKind impl_IAudioNodeEmitterShape::Kind() const -{ - Windows::Media::Audio::AudioNodeEmitterShapeKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::Media::Audio::AudioNodeEmitterConeProperties impl_IAudioNodeEmitterShape::ConeProperties() const -{ - Windows::Media::Audio::AudioNodeEmitterConeProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ConeProperties(put(value))); - return value; -} - -template Windows::Media::Audio::AudioNodeEmitterShape impl_IAudioNodeEmitterShapeStatics::CreateCone(double innerAngle, double outerAngle, double outerAngleGain) const -{ - Windows::Media::Audio::AudioNodeEmitterShape shape { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCone(innerAngle, outerAngle, outerAngleGain, put(shape))); - return shape; -} - -template Windows::Media::Audio::AudioNodeEmitterShape impl_IAudioNodeEmitterShapeStatics::CreateOmnidirectional() const -{ - Windows::Media::Audio::AudioNodeEmitterShape shape { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateOmnidirectional(put(shape))); - return shape; -} - -template double impl_IAudioNodeEmitterNaturalDecayModelProperties::UnityGainDistance() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_UnityGainDistance(&value)); - return value; -} - -template double impl_IAudioNodeEmitterNaturalDecayModelProperties::CutoffDistance() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CutoffDistance(&value)); - return value; -} - -template Windows::Media::Audio::AudioNodeEmitterDecayKind impl_IAudioNodeEmitterDecayModel::Kind() const -{ - Windows::Media::Audio::AudioNodeEmitterDecayKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template double impl_IAudioNodeEmitterDecayModel::MinGain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MinGain(&value)); - return value; -} - -template double impl_IAudioNodeEmitterDecayModel::MaxGain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxGain(&value)); - return value; -} - -template Windows::Media::Audio::AudioNodeEmitterNaturalDecayModelProperties impl_IAudioNodeEmitterDecayModel::NaturalProperties() const -{ - Windows::Media::Audio::AudioNodeEmitterNaturalDecayModelProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NaturalProperties(put(value))); - return value; -} - -template Windows::Media::Audio::AudioNodeEmitterDecayModel impl_IAudioNodeEmitterDecayModelStatics::CreateNatural(double minGain, double maxGain, double unityGainDistance, double cutoffDistance) const -{ - Windows::Media::Audio::AudioNodeEmitterDecayModel decayModel { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateNatural(minGain, maxGain, unityGainDistance, cutoffDistance, put(decayModel))); - return decayModel; -} - -template Windows::Media::Audio::AudioNodeEmitterDecayModel impl_IAudioNodeEmitterDecayModelStatics::CreateCustom(double minGain, double maxGain) const -{ - Windows::Media::Audio::AudioNodeEmitterDecayModel decayModel { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCustom(minGain, maxGain, put(decayModel))); - return decayModel; -} - -template Windows::Foundation::Numerics::float3 impl_IAudioNodeEmitter::Position() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template void impl_IAudioNodeEmitter::Position(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Position(get(value))); -} - -template Windows::Foundation::Numerics::float3 impl_IAudioNodeEmitter::Direction() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Direction(put(value))); - return value; -} - -template void impl_IAudioNodeEmitter::Direction(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Direction(get(value))); -} - -template Windows::Media::Audio::AudioNodeEmitterShape impl_IAudioNodeEmitter::Shape() const -{ - Windows::Media::Audio::AudioNodeEmitterShape value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Shape(put(value))); - return value; -} - -template Windows::Media::Audio::AudioNodeEmitterDecayModel impl_IAudioNodeEmitter::DecayModel() const -{ - Windows::Media::Audio::AudioNodeEmitterDecayModel value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DecayModel(put(value))); - return value; -} - -template double impl_IAudioNodeEmitter::Gain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Gain(&value)); - return value; -} - -template void impl_IAudioNodeEmitter::Gain(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Gain(value)); -} - -template double impl_IAudioNodeEmitter::DistanceScale() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DistanceScale(&value)); - return value; -} - -template void impl_IAudioNodeEmitter::DistanceScale(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DistanceScale(value)); -} - -template double impl_IAudioNodeEmitter::DopplerScale() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DopplerScale(&value)); - return value; -} - -template void impl_IAudioNodeEmitter::DopplerScale(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DopplerScale(value)); -} - -template Windows::Foundation::Numerics::float3 impl_IAudioNodeEmitter::DopplerVelocity() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_DopplerVelocity(put(value))); - return value; -} - -template void impl_IAudioNodeEmitter::DopplerVelocity(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DopplerVelocity(get(value))); -} - -template bool impl_IAudioNodeEmitter::IsDopplerDisabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDopplerDisabled(&value)); - return value; -} - -template Windows::Media::Audio::SpatialAudioModel impl_IAudioNodeEmitter2::SpatialAudioModel() const -{ - Windows::Media::Audio::SpatialAudioModel value {}; - check_hresult(static_cast(static_cast(*this))->get_SpatialAudioModel(&value)); - return value; -} - -template void impl_IAudioNodeEmitter2::SpatialAudioModel(Windows::Media::Audio::SpatialAudioModel value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SpatialAudioModel(value)); -} - -template Windows::Media::Audio::AudioNodeEmitter impl_IAudioNodeEmitterFactory::CreateAudioNodeEmitter(const Windows::Media::Audio::AudioNodeEmitterShape & shape, const Windows::Media::Audio::AudioNodeEmitterDecayModel & decayModel, Windows::Media::Audio::AudioNodeEmitterSettings settings) const -{ - Windows::Media::Audio::AudioNodeEmitter emitter { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAudioNodeEmitter(get(shape), get(decayModel), settings, put(emitter))); - return emitter; -} - -template Windows::Foundation::Numerics::float3 impl_IAudioNodeListener::Position() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template void impl_IAudioNodeListener::Position(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Position(get(value))); -} - -template Windows::Foundation::Numerics::quaternion impl_IAudioNodeListener::Orientation() const -{ - Windows::Foundation::Numerics::quaternion value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(put(value))); - return value; -} - -template void impl_IAudioNodeListener::Orientation(const Windows::Foundation::Numerics::quaternion & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(get(value))); -} - -template double impl_IAudioNodeListener::SpeedOfSound() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_SpeedOfSound(&value)); - return value; -} - -template void impl_IAudioNodeListener::SpeedOfSound(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SpeedOfSound(value)); -} - -template Windows::Foundation::Numerics::float3 impl_IAudioNodeListener::DopplerVelocity() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_DopplerVelocity(put(value))); - return value; -} - -template void impl_IAudioNodeListener::DopplerVelocity(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DopplerVelocity(get(value))); -} - -template Windows::Foundation::Collections::IVectorView impl_IEqualizerEffectDefinition::Bands() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Bands(put(value))); - return value; -} - -template void impl_IReverbEffectDefinition::WetDryMix(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WetDryMix(value)); -} - -template double impl_IReverbEffectDefinition::WetDryMix() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_WetDryMix(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::ReflectionsDelay(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReflectionsDelay(value)); -} - -template uint32_t impl_IReverbEffectDefinition::ReflectionsDelay() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReflectionsDelay(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::ReverbDelay(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReverbDelay(value)); -} - -template uint8_t impl_IReverbEffectDefinition::ReverbDelay() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReverbDelay(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::RearDelay(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RearDelay(value)); -} - -template uint8_t impl_IReverbEffectDefinition::RearDelay() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RearDelay(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::PositionLeft(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PositionLeft(value)); -} - -template uint8_t impl_IReverbEffectDefinition::PositionLeft() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PositionLeft(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::PositionRight(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PositionRight(value)); -} - -template uint8_t impl_IReverbEffectDefinition::PositionRight() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PositionRight(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::PositionMatrixLeft(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PositionMatrixLeft(value)); -} - -template uint8_t impl_IReverbEffectDefinition::PositionMatrixLeft() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PositionMatrixLeft(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::PositionMatrixRight(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PositionMatrixRight(value)); -} - -template uint8_t impl_IReverbEffectDefinition::PositionMatrixRight() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PositionMatrixRight(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::EarlyDiffusion(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EarlyDiffusion(value)); -} - -template uint8_t impl_IReverbEffectDefinition::EarlyDiffusion() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EarlyDiffusion(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::LateDiffusion(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LateDiffusion(value)); -} - -template uint8_t impl_IReverbEffectDefinition::LateDiffusion() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LateDiffusion(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::LowEQGain(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LowEQGain(value)); -} - -template uint8_t impl_IReverbEffectDefinition::LowEQGain() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LowEQGain(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::LowEQCutoff(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LowEQCutoff(value)); -} - -template uint8_t impl_IReverbEffectDefinition::LowEQCutoff() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LowEQCutoff(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::HighEQGain(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HighEQGain(value)); -} - -template uint8_t impl_IReverbEffectDefinition::HighEQGain() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HighEQGain(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::HighEQCutoff(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HighEQCutoff(value)); -} - -template uint8_t impl_IReverbEffectDefinition::HighEQCutoff() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HighEQCutoff(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::RoomFilterFreq(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RoomFilterFreq(value)); -} - -template double impl_IReverbEffectDefinition::RoomFilterFreq() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_RoomFilterFreq(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::RoomFilterMain(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RoomFilterMain(value)); -} - -template double impl_IReverbEffectDefinition::RoomFilterMain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_RoomFilterMain(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::RoomFilterHF(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RoomFilterHF(value)); -} - -template double impl_IReverbEffectDefinition::RoomFilterHF() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_RoomFilterHF(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::ReflectionsGain(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReflectionsGain(value)); -} - -template double impl_IReverbEffectDefinition::ReflectionsGain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ReflectionsGain(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::ReverbGain(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReverbGain(value)); -} - -template double impl_IReverbEffectDefinition::ReverbGain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ReverbGain(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::DecayTime(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DecayTime(value)); -} - -template double impl_IReverbEffectDefinition::DecayTime() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DecayTime(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::Density(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Density(value)); -} - -template double impl_IReverbEffectDefinition::Density() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Density(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::RoomSize(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RoomSize(value)); -} - -template double impl_IReverbEffectDefinition::RoomSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_RoomSize(&value)); - return value; -} - -template void impl_IReverbEffectDefinition::DisableLateField(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisableLateField(value)); -} - -template bool impl_IReverbEffectDefinition::DisableLateField() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DisableLateField(&value)); - return value; -} - -template void impl_IEchoEffectDefinition::WetDryMix(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WetDryMix(value)); -} - -template double impl_IEchoEffectDefinition::WetDryMix() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_WetDryMix(&value)); - return value; -} - -template void impl_IEchoEffectDefinition::Feedback(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Feedback(value)); -} - -template double impl_IEchoEffectDefinition::Feedback() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Feedback(&value)); - return value; -} - -template void impl_IEchoEffectDefinition::Delay(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Delay(value)); -} - -template double impl_IEchoEffectDefinition::Delay() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Delay(&value)); - return value; -} - -template void impl_ILimiterEffectDefinition::Release(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Release(value)); -} - -template uint32_t impl_ILimiterEffectDefinition::Release() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Release(&value)); - return value; -} - -template void impl_ILimiterEffectDefinition::Loudness(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Loudness(value)); -} - -template uint32_t impl_ILimiterEffectDefinition::Loudness() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Loudness(&value)); - return value; -} - -inline Windows::Foundation::IAsyncOperation AudioGraph::CreateAsync(const Windows::Media::Audio::AudioGraphSettings & settings) -{ - return get_activation_factory().CreateAsync(settings); -} - -inline AudioGraphSettings::AudioGraphSettings(Windows::Media::Render::AudioRenderCategory audioRenderCategory) : - AudioGraphSettings(get_activation_factory().Create(audioRenderCategory)) -{} - -inline AudioNodeEmitter::AudioNodeEmitter() : - AudioNodeEmitter(activate_instance()) -{} - -inline AudioNodeEmitter::AudioNodeEmitter(const Windows::Media::Audio::AudioNodeEmitterShape & shape, const Windows::Media::Audio::AudioNodeEmitterDecayModel & decayModel, Windows::Media::Audio::AudioNodeEmitterSettings settings) : - AudioNodeEmitter(get_activation_factory().CreateAudioNodeEmitter(shape, decayModel, settings)) -{} - -inline Windows::Media::Audio::AudioNodeEmitterDecayModel AudioNodeEmitterDecayModel::CreateNatural(double minGain, double maxGain, double unityGainDistance, double cutoffDistance) -{ - return get_activation_factory().CreateNatural(minGain, maxGain, unityGainDistance, cutoffDistance); -} - -inline Windows::Media::Audio::AudioNodeEmitterDecayModel AudioNodeEmitterDecayModel::CreateCustom(double minGain, double maxGain) -{ - return get_activation_factory().CreateCustom(minGain, maxGain); -} - -inline Windows::Media::Audio::AudioNodeEmitterShape AudioNodeEmitterShape::CreateCone(double innerAngle, double outerAngle, double outerAngleGain) -{ - return get_activation_factory().CreateCone(innerAngle, outerAngle, outerAngleGain); -} - -inline Windows::Media::Audio::AudioNodeEmitterShape AudioNodeEmitterShape::CreateOmnidirectional() -{ - return get_activation_factory().CreateOmnidirectional(); -} - -inline AudioNodeListener::AudioNodeListener() : - AudioNodeListener(activate_instance()) -{} - -inline EchoEffectDefinition::EchoEffectDefinition(const Windows::Media::Audio::AudioGraph & audioGraph) : - EchoEffectDefinition(get_activation_factory().Create(audioGraph)) -{} - -inline EqualizerEffectDefinition::EqualizerEffectDefinition(const Windows::Media::Audio::AudioGraph & audioGraph) : - EqualizerEffectDefinition(get_activation_factory().Create(audioGraph)) -{} - -inline LimiterEffectDefinition::LimiterEffectDefinition(const Windows::Media::Audio::AudioGraph & audioGraph) : - LimiterEffectDefinition(get_activation_factory().Create(audioGraph)) -{} - -inline ReverbEffectDefinition::ReverbEffectDefinition(const Windows::Media::Audio::AudioGraph & audioGraph) : - ReverbEffectDefinition(get_activation_factory().Create(audioGraph)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Capture.Core.h b/10.0.14393.0/winrt/Windows.Media.Capture.Core.h deleted file mode 100644 index 348f9ed69..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Capture.Core.h +++ /dev/null @@ -1,286 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Media.Capture.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Media.Capture.Core.3.h" -#include "Windows.Media.Capture.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Frame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Frame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CaptureTimeOffset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CaptureTimeOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsedFrameControllerIndex(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().UsedFrameControllerIndex()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CapturedFrameControlValues(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CapturedFrameControlValues()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().StartAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().StopAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FinishAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().FinishAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PhotoCaptured(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PhotoCaptured(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PhotoCaptured(event_token token) noexcept override - { - try - { - this->shim().PhotoCaptured(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_UpdateSettingsAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().UpdateSettingsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Capture::Core { - -template Windows::Media::Capture::CapturedFrame impl_IVariablePhotoCapturedEventArgs::Frame() const -{ - Windows::Media::Capture::CapturedFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Frame(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IVariablePhotoCapturedEventArgs::CaptureTimeOffset() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_CaptureTimeOffset(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IVariablePhotoCapturedEventArgs::UsedFrameControllerIndex() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_UsedFrameControllerIndex(put(value))); - return value; -} - -template Windows::Media::Capture::CapturedFrameControlValues impl_IVariablePhotoCapturedEventArgs::CapturedFrameControlValues() const -{ - Windows::Media::Capture::CapturedFrameControlValues value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CapturedFrameControlValues(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IVariablePhotoSequenceCapture::StartAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_StartAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IVariablePhotoSequenceCapture::StopAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_StopAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IVariablePhotoSequenceCapture::FinishAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_FinishAsync(put(operation))); - return operation; -} - -template event_token impl_IVariablePhotoSequenceCapture::PhotoCaptured(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PhotoCaptured(get(handler), &token)); - return token; -} - -template event_revoker impl_IVariablePhotoSequenceCapture::PhotoCaptured(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::Core::IVariablePhotoSequenceCapture::remove_PhotoCaptured, PhotoCaptured(handler)); -} - -template void impl_IVariablePhotoSequenceCapture::PhotoCaptured(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PhotoCaptured(token)); -} - -template event_token impl_IVariablePhotoSequenceCapture::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IVariablePhotoSequenceCapture::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::Core::IVariablePhotoSequenceCapture::remove_Stopped, Stopped(handler)); -} - -template void impl_IVariablePhotoSequenceCapture::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template Windows::Foundation::IAsyncAction impl_IVariablePhotoSequenceCapture2::UpdateSettingsAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateSettingsAsync(put(operation))); - return operation; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Capture.Frames.h b/10.0.14393.0/winrt/Windows.Media.Capture.Frames.h deleted file mode 100644 index d87840bae..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Capture.Frames.h +++ /dev/null @@ -1,1511 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Media.Capture.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Perception.Spatial.3.h" -#include "internal/Windows.Media.Devices.Core.3.h" -#include "internal/Windows.Media.Devices.3.h" -#include "internal/Windows.Media.MediaProperties.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Graphics.Imaging.3.h" -#include "internal/Windows.Graphics.DirectX.Direct3D11.3.h" -#include "internal/Windows.Media.3.h" -#include "internal/Windows.Media.Capture.Frames.3.h" -#include "Windows.Media.Capture.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameReference(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameReference()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Buffer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Buffer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameReference(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameReference()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoMediaFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoMediaFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DepthFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DepthFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryCreateCoordinateMapper(abi_arg_in cameraIntrinsics, abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryCreateCoordinateMapper(*reinterpret_cast(&cameraIntrinsics), *reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VideoFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DepthScaleInMeters(double * value) noexcept override - { - try - { - *value = detach(this->shim().DepthScaleInMeters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameReference(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameReference()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoMediaFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoMediaFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsIlluminated(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIlluminated()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MajorType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MajorType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subtype(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subtype()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameRate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameRate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_FrameArrived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FrameArrived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FrameArrived(event_token token) noexcept override - { - try - { - this->shim().FrameArrived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryAcquireLatestFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryAcquireLatestFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().StartAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopAsync(abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().StopAsync()); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceKind(Windows::Media::Capture::Frames::MediaFrameSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().SourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Format(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Format()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemRelativeTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SystemRelativeTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BufferMediaFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BufferMediaFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoMediaFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoMediaFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CoordinateSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CoordinateSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Info(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Info()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Controller(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Controller()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedFormats(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedFormats()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetFormatAsync(abi_arg_in format, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SetFormatAsync(*reinterpret_cast(&format))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FormatChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FormatChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FormatChanged(event_token token) noexcept override - { - try - { - this->shim().FormatChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetCameraIntrinsics(abi_arg_in format, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetCameraIntrinsics(*reinterpret_cast(&format))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPropertyAsync(abi_arg_in propertyId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetPropertyAsync(*reinterpret_cast(&propertyId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPropertyAsync(abi_arg_in propertyId, abi_arg_in propertyValue, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SetPropertyAsync(*reinterpret_cast(&propertyId), *reinterpret_cast(&propertyValue))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoDeviceController(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoDeviceController()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Media::Capture::Frames::MediaFrameSourceGetPropertyStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceInfos(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SourceInfos()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindAllAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().FindAllAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in id, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FromIdAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaStreamType(Windows::Media::Capture::MediaStreamType * value) noexcept override - { - try - { - *value = detach(this->shim().MediaStreamType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceKind(Windows::Media::Capture::Frames::MediaFrameSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().SourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceGroup(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceGroup()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CoordinateSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CoordinateSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameReference(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameReference()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SoftwareBitmap(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SoftwareBitmap()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Direct3DSurface(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Direct3DSurface()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CameraIntrinsics(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CameraIntrinsics()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InfraredMediaFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InfraredMediaFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DepthMediaFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DepthMediaFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVideoFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetVideoFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MediaFrameFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaFrameFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DepthFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DepthFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Width(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Capture::Frames { - -template hstring impl_IMediaFrameSourceGroup::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IMediaFrameSourceGroup::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaFrameSourceGroup::SourceInfos() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SourceInfos(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IMediaFrameSourceGroupStatics::FindAllAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaFrameSourceGroupStatics::FromIdAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(id), put(value))); - return value; -} - -template hstring impl_IMediaFrameSourceGroupStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template hstring impl_IMediaFrameSourceInfo::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Media::Capture::MediaStreamType impl_IMediaFrameSourceInfo::MediaStreamType() const -{ - Windows::Media::Capture::MediaStreamType value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaStreamType(&value)); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameSourceKind impl_IMediaFrameSourceInfo::SourceKind() const -{ - Windows::Media::Capture::Frames::MediaFrameSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_SourceKind(&value)); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameSourceGroup impl_IMediaFrameSourceInfo::SourceGroup() const -{ - Windows::Media::Capture::Frames::MediaFrameSourceGroup value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceGroup(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IMediaFrameSourceInfo::DeviceInformation() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformation(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IMediaFrameSourceInfo::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialCoordinateSystem impl_IMediaFrameSourceInfo::CoordinateSystem() const -{ - Windows::Perception::Spatial::SpatialCoordinateSystem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CoordinateSystem(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameSourceInfo impl_IMediaFrameSource::Info() const -{ - Windows::Media::Capture::Frames::MediaFrameSourceInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Info(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameSourceController impl_IMediaFrameSource::Controller() const -{ - Windows::Media::Capture::Frames::MediaFrameSourceController value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Controller(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaFrameSource::SupportedFormats() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedFormats(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameFormat impl_IMediaFrameSource::CurrentFormat() const -{ - Windows::Media::Capture::Frames::MediaFrameFormat value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentFormat(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IMediaFrameSource::SetFormatAsync(const Windows::Media::Capture::Frames::MediaFrameFormat & format) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_SetFormatAsync(get(format), put(value))); - return value; -} - -template event_token impl_IMediaFrameSource::FormatChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FormatChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaFrameSource::FormatChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::Frames::IMediaFrameSource::remove_FormatChanged, FormatChanged(handler)); -} - -template void impl_IMediaFrameSource::FormatChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FormatChanged(token)); -} - -template Windows::Media::Devices::Core::CameraIntrinsics impl_IMediaFrameSource::TryGetCameraIntrinsics(const Windows::Media::Capture::Frames::MediaFrameFormat & format) const -{ - Windows::Media::Devices::Core::CameraIntrinsics value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetCameraIntrinsics(get(format), put(value))); - return value; -} - -template event_token impl_IMediaFrameReader::FrameArrived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FrameArrived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaFrameReader::FrameArrived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::Frames::IMediaFrameReader::remove_FrameArrived, FrameArrived(handler)); -} - -template void impl_IMediaFrameReader::FrameArrived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FrameArrived(token)); -} - -template Windows::Media::Capture::Frames::MediaFrameReference impl_IMediaFrameReader::TryAcquireLatestFrame() const -{ - Windows::Media::Capture::Frames::MediaFrameReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryAcquireLatestFrame(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaFrameReader::StartAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_StartAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IMediaFrameReader::StopAsync() const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_StopAsync(put(action))); - return action; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaFrameSourceController::GetPropertyAsync(hstring_ref propertyId) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetPropertyAsync(get(propertyId), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaFrameSourceController::SetPropertyAsync(hstring_ref propertyId, const Windows::IInspectable & propertyValue) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_SetPropertyAsync(get(propertyId), get(propertyValue), put(value))); - return value; -} - -template Windows::Media::Devices::VideoDeviceController impl_IMediaFrameSourceController::VideoDeviceController() const -{ - Windows::Media::Devices::VideoDeviceController value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoDeviceController(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameSourceGetPropertyStatus impl_IMediaFrameSourceGetPropertyResult::Status() const -{ - Windows::Media::Capture::Frames::MediaFrameSourceGetPropertyStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::IInspectable impl_IMediaFrameSourceGetPropertyResult::Value() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template hstring impl_IMediaFrameFormat::MajorType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MajorType(put(value))); - return value; -} - -template hstring impl_IMediaFrameFormat::Subtype() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subtype(put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaRatio impl_IMediaFrameFormat::FrameRate() const -{ - Windows::Media::MediaProperties::MediaRatio value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameRate(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IMediaFrameFormat::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::VideoMediaFrameFormat impl_IMediaFrameFormat::VideoFormat() const -{ - Windows::Media::Capture::Frames::VideoMediaFrameFormat value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoFormat(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameFormat impl_IVideoMediaFrameFormat::MediaFrameFormat() const -{ - Windows::Media::Capture::Frames::MediaFrameFormat value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaFrameFormat(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::DepthMediaFrameFormat impl_IVideoMediaFrameFormat::DepthFormat() const -{ - Windows::Media::Capture::Frames::DepthMediaFrameFormat value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DepthFormat(put(value))); - return value; -} - -template uint32_t impl_IVideoMediaFrameFormat::Width() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(&value)); - return value; -} - -template uint32_t impl_IVideoMediaFrameFormat::Height() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(&value)); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameSourceKind impl_IMediaFrameReference::SourceKind() const -{ - Windows::Media::Capture::Frames::MediaFrameSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_SourceKind(&value)); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameFormat impl_IMediaFrameReference::Format() const -{ - Windows::Media::Capture::Frames::MediaFrameFormat value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Format(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IMediaFrameReference::SystemRelativeTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_SystemRelativeTime(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaFrameReference::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IMediaFrameReference::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::BufferMediaFrame impl_IMediaFrameReference::BufferMediaFrame() const -{ - Windows::Media::Capture::Frames::BufferMediaFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BufferMediaFrame(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::VideoMediaFrame impl_IMediaFrameReference::VideoMediaFrame() const -{ - Windows::Media::Capture::Frames::VideoMediaFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoMediaFrame(put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialCoordinateSystem impl_IMediaFrameReference::CoordinateSystem() const -{ - Windows::Perception::Spatial::SpatialCoordinateSystem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CoordinateSystem(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameReference impl_IBufferMediaFrame::FrameReference() const -{ - Windows::Media::Capture::Frames::MediaFrameReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameReference(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IBufferMediaFrame::Buffer() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Buffer(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameReference impl_IVideoMediaFrame::FrameReference() const -{ - Windows::Media::Capture::Frames::MediaFrameReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameReference(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::VideoMediaFrameFormat impl_IVideoMediaFrame::VideoFormat() const -{ - Windows::Media::Capture::Frames::VideoMediaFrameFormat value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoFormat(put(value))); - return value; -} - -template Windows::Graphics::Imaging::SoftwareBitmap impl_IVideoMediaFrame::SoftwareBitmap() const -{ - Windows::Graphics::Imaging::SoftwareBitmap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SoftwareBitmap(put(value))); - return value; -} - -template Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface impl_IVideoMediaFrame::Direct3DSurface() const -{ - Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface value; - check_hresult(static_cast(static_cast(*this))->get_Direct3DSurface(put(value))); - return value; -} - -template Windows::Media::Devices::Core::CameraIntrinsics impl_IVideoMediaFrame::CameraIntrinsics() const -{ - Windows::Media::Devices::Core::CameraIntrinsics value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CameraIntrinsics(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::InfraredMediaFrame impl_IVideoMediaFrame::InfraredMediaFrame() const -{ - Windows::Media::Capture::Frames::InfraredMediaFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InfraredMediaFrame(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::DepthMediaFrame impl_IVideoMediaFrame::DepthMediaFrame() const -{ - Windows::Media::Capture::Frames::DepthMediaFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DepthMediaFrame(put(value))); - return value; -} - -template Windows::Media::VideoFrame impl_IVideoMediaFrame::GetVideoFrame() const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetVideoFrame(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameReference impl_IInfraredMediaFrame::FrameReference() const -{ - Windows::Media::Capture::Frames::MediaFrameReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameReference(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::VideoMediaFrame impl_IInfraredMediaFrame::VideoMediaFrame() const -{ - Windows::Media::Capture::Frames::VideoMediaFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoMediaFrame(put(value))); - return value; -} - -template bool impl_IInfraredMediaFrame::IsIlluminated() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsIlluminated(&value)); - return value; -} - -template Windows::Media::Capture::Frames::MediaFrameReference impl_IDepthMediaFrame::FrameReference() const -{ - Windows::Media::Capture::Frames::MediaFrameReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameReference(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::VideoMediaFrame impl_IDepthMediaFrame::VideoMediaFrame() const -{ - Windows::Media::Capture::Frames::VideoMediaFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoMediaFrame(put(value))); - return value; -} - -template Windows::Media::Capture::Frames::DepthMediaFrameFormat impl_IDepthMediaFrame::DepthFormat() const -{ - Windows::Media::Capture::Frames::DepthMediaFrameFormat value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DepthFormat(put(value))); - return value; -} - -template Windows::Media::Devices::Core::DepthCorrelatedCoordinateMapper impl_IDepthMediaFrame::TryCreateCoordinateMapper(const Windows::Media::Devices::Core::CameraIntrinsics & cameraIntrinsics, const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::Media::Devices::Core::DepthCorrelatedCoordinateMapper value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryCreateCoordinateMapper(get(cameraIntrinsics), get(coordinateSystem), put(value))); - return value; -} - -template Windows::Media::Capture::Frames::VideoMediaFrameFormat impl_IDepthMediaFrameFormat::VideoFormat() const -{ - Windows::Media::Capture::Frames::VideoMediaFrameFormat value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoFormat(put(value))); - return value; -} - -template double impl_IDepthMediaFrameFormat::DepthScaleInMeters() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DepthScaleInMeters(&value)); - return value; -} - -inline Windows::Foundation::IAsyncOperation> MediaFrameSourceGroup::FindAllAsync() -{ - return get_activation_factory().FindAllAsync(); -} - -inline Windows::Foundation::IAsyncOperation MediaFrameSourceGroup::FromIdAsync(hstring_ref id) -{ - return get_activation_factory().FromIdAsync(id); -} - -inline hstring MediaFrameSourceGroup::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Capture.h b/10.0.14393.0/winrt/Windows.Media.Capture.h deleted file mode 100644 index dc1831bdf..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Capture.h +++ /dev/null @@ -1,6323 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.3.h" -#include "internal/Windows.Media.Core.3.h" -#include "internal/Windows.Media.Capture.Frames.3.h" -#include "internal/Windows.Media.MediaProperties.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Media.Devices.3.h" -#include "internal/Windows.Media.Effects.3.h" -#include "internal/Windows.Graphics.Imaging.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Media.Capture.3.h" -#include "Windows.Media.h" -#include "Windows.Foundation.h" -#include "Windows.Storage.Streams.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Media::Capture { - -template MediaCaptureFailedEventHandler::MediaCaptureFailedEventHandler(L lambda) : - MediaCaptureFailedEventHandler(impl::make_delegate, MediaCaptureFailedEventHandler>(std::forward(lambda))) -{} - -template MediaCaptureFailedEventHandler::MediaCaptureFailedEventHandler(F * function) : - MediaCaptureFailedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template MediaCaptureFailedEventHandler::MediaCaptureFailedEventHandler(O * object, M method) : - MediaCaptureFailedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void MediaCaptureFailedEventHandler::operator()(const Windows::Media::Capture::MediaCapture & sender, const Windows::Media::Capture::MediaCaptureFailedEventArgs & errorEventArgs) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(errorEventArgs))); -} - -template RecordLimitationExceededEventHandler::RecordLimitationExceededEventHandler(L lambda) : - RecordLimitationExceededEventHandler(impl::make_delegate, RecordLimitationExceededEventHandler>(std::forward(lambda))) -{} - -template RecordLimitationExceededEventHandler::RecordLimitationExceededEventHandler(F * function) : - RecordLimitationExceededEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template RecordLimitationExceededEventHandler::RecordLimitationExceededEventHandler(O * object, M method) : - RecordLimitationExceededEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void RecordLimitationExceededEventHandler::operator()(const Windows::Media::Capture::MediaCapture & sender) const -{ - check_hresult((*this)->abi_Invoke(get(sender))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Frame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Frame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mode(Windows::Media::Devices::AdvancedPhotoMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Context(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Context()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameBoundsRelativeToReferencePhoto(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FrameBoundsRelativeToReferencePhoto()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CaptureAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CaptureAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CaptureWithContextAsync(abi_arg_in context, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CaptureAsync(*reinterpret_cast(&context))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_OptionalReferencePhotoCaptured(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().OptionalReferencePhotoCaptured(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_OptionalReferencePhotoCaptured(event_token token) noexcept override - { - try - { - this->shim().OptionalReferencePhotoCaptured(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AllPhotosCaptured(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AllPhotosCaptured(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AllPhotosCaptured(event_token token) noexcept override - { - try - { - this->shim().AllPhotosCaptured(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FinishAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().FinishAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsCapturingAudio(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCapturingAudio()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCapturingVideo(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCapturingVideo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CapturingChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CapturingChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CapturingChanged(event_token token) noexcept override - { - try - { - this->shim().CapturingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ToggleGameBarKey(Windows::System::VirtualKey value) noexcept override - { - try - { - this->shim().ToggleGameBarKey(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleGameBarKey(Windows::System::VirtualKey * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleGameBarKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ToggleGameBarKeyModifiers(Windows::System::VirtualKeyModifiers value) noexcept override - { - try - { - this->shim().ToggleGameBarKeyModifiers(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleGameBarKeyModifiers(Windows::System::VirtualKeyModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleGameBarKeyModifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SaveHistoricalVideoKey(Windows::System::VirtualKey value) noexcept override - { - try - { - this->shim().SaveHistoricalVideoKey(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SaveHistoricalVideoKey(Windows::System::VirtualKey * value) noexcept override - { - try - { - *value = detach(this->shim().SaveHistoricalVideoKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SaveHistoricalVideoKeyModifiers(Windows::System::VirtualKeyModifiers value) noexcept override - { - try - { - this->shim().SaveHistoricalVideoKeyModifiers(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SaveHistoricalVideoKeyModifiers(Windows::System::VirtualKeyModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().SaveHistoricalVideoKeyModifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ToggleRecordingKey(Windows::System::VirtualKey value) noexcept override - { - try - { - this->shim().ToggleRecordingKey(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleRecordingKey(Windows::System::VirtualKey * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleRecordingKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ToggleRecordingKeyModifiers(Windows::System::VirtualKeyModifiers value) noexcept override - { - try - { - this->shim().ToggleRecordingKeyModifiers(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleRecordingKeyModifiers(Windows::System::VirtualKeyModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleRecordingKeyModifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TakeScreenshotKey(Windows::System::VirtualKey value) noexcept override - { - try - { - this->shim().TakeScreenshotKey(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TakeScreenshotKey(Windows::System::VirtualKey * value) noexcept override - { - try - { - *value = detach(this->shim().TakeScreenshotKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TakeScreenshotKeyModifiers(Windows::System::VirtualKeyModifiers value) noexcept override - { - try - { - this->shim().TakeScreenshotKeyModifiers(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TakeScreenshotKeyModifiers(Windows::System::VirtualKeyModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().TakeScreenshotKeyModifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ToggleRecordingIndicatorKey(Windows::System::VirtualKey value) noexcept override - { - try - { - this->shim().ToggleRecordingIndicatorKey(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleRecordingIndicatorKey(Windows::System::VirtualKey * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleRecordingIndicatorKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ToggleRecordingIndicatorKeyModifiers(Windows::System::VirtualKeyModifiers value) noexcept override - { - try - { - this->shim().ToggleRecordingIndicatorKeyModifiers(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleRecordingIndicatorKeyModifiers(Windows::System::VirtualKeyModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleRecordingIndicatorKeyModifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ToggleMicrophoneCaptureKey(Windows::System::VirtualKey value) noexcept override - { - try - { - this->shim().ToggleMicrophoneCaptureKey(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleMicrophoneCaptureKey(Windows::System::VirtualKey * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleMicrophoneCaptureKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ToggleMicrophoneCaptureKeyModifiers(Windows::System::VirtualKeyModifiers value) noexcept override - { - try - { - this->shim().ToggleMicrophoneCaptureKeyModifiers(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleMicrophoneCaptureKeyModifiers(Windows::System::VirtualKeyModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleMicrophoneCaptureKeyModifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ToggleCameraCaptureKey(Windows::System::VirtualKey value) noexcept override - { - try - { - this->shim().ToggleCameraCaptureKey(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleCameraCaptureKey(Windows::System::VirtualKey * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleCameraCaptureKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ToggleCameraCaptureKeyModifiers(Windows::System::VirtualKeyModifiers value) noexcept override - { - try - { - this->shim().ToggleCameraCaptureKeyModifiers(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleCameraCaptureKeyModifiers(Windows::System::VirtualKeyModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleCameraCaptureKeyModifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ToggleBroadcastKey(Windows::System::VirtualKey value) noexcept override - { - try - { - this->shim().ToggleBroadcastKey(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleBroadcastKey(Windows::System::VirtualKey * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleBroadcastKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ToggleBroadcastKeyModifiers(Windows::System::VirtualKeyModifiers value) noexcept override - { - try - { - this->shim().ToggleBroadcastKeyModifiers(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToggleBroadcastKeyModifiers(Windows::System::VirtualKeyModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleBroadcastKeyModifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ApplySettings(abi_arg_in appCaptureSettings) noexcept override - { - try - { - this->shim().ApplySettings(*reinterpret_cast(&appCaptureSettings)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_AppCaptureDestinationFolder(abi_arg_in value) noexcept override - { - try - { - this->shim().AppCaptureDestinationFolder(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppCaptureDestinationFolder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppCaptureDestinationFolder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioEncodingBitrate(uint32_t value) noexcept override - { - try - { - this->shim().AudioEncodingBitrate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioEncodingBitrate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AudioEncodingBitrate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsAudioCaptureEnabled(bool value) noexcept override - { - try - { - this->shim().IsAudioCaptureEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAudioCaptureEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAudioCaptureEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CustomVideoEncodingBitrate(uint32_t value) noexcept override - { - try - { - this->shim().CustomVideoEncodingBitrate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomVideoEncodingBitrate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CustomVideoEncodingBitrate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CustomVideoEncodingHeight(uint32_t value) noexcept override - { - try - { - this->shim().CustomVideoEncodingHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomVideoEncodingHeight(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CustomVideoEncodingHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CustomVideoEncodingWidth(uint32_t value) noexcept override - { - try - { - this->shim().CustomVideoEncodingWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomVideoEncodingWidth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CustomVideoEncodingWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HistoricalBufferLength(uint32_t value) noexcept override - { - try - { - this->shim().HistoricalBufferLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HistoricalBufferLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().HistoricalBufferLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HistoricalBufferLengthUnit(Windows::Media::Capture::AppCaptureHistoricalBufferLengthUnit value) noexcept override - { - try - { - this->shim().HistoricalBufferLengthUnit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HistoricalBufferLengthUnit(Windows::Media::Capture::AppCaptureHistoricalBufferLengthUnit * value) noexcept override - { - try - { - *value = detach(this->shim().HistoricalBufferLengthUnit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsHistoricalCaptureEnabled(bool value) noexcept override - { - try - { - this->shim().IsHistoricalCaptureEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHistoricalCaptureEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHistoricalCaptureEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsHistoricalCaptureOnBatteryAllowed(bool value) noexcept override - { - try - { - this->shim().IsHistoricalCaptureOnBatteryAllowed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHistoricalCaptureOnBatteryAllowed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHistoricalCaptureOnBatteryAllowed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsHistoricalCaptureOnWirelessDisplayAllowed(bool value) noexcept override - { - try - { - this->shim().IsHistoricalCaptureOnWirelessDisplayAllowed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHistoricalCaptureOnWirelessDisplayAllowed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHistoricalCaptureOnWirelessDisplayAllowed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaximumRecordLength(abi_arg_in value) noexcept override - { - try - { - this->shim().MaximumRecordLength(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaximumRecordLength(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaximumRecordLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScreenshotDestinationFolder(abi_arg_in value) noexcept override - { - try - { - this->shim().ScreenshotDestinationFolder(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScreenshotDestinationFolder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScreenshotDestinationFolder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VideoEncodingBitrateMode(Windows::Media::Capture::AppCaptureVideoEncodingBitrateMode value) noexcept override - { - try - { - this->shim().VideoEncodingBitrateMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoEncodingBitrateMode(Windows::Media::Capture::AppCaptureVideoEncodingBitrateMode * value) noexcept override - { - try - { - *value = detach(this->shim().VideoEncodingBitrateMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VideoEncodingResolutionMode(Windows::Media::Capture::AppCaptureVideoEncodingResolutionMode value) noexcept override - { - try - { - this->shim().VideoEncodingResolutionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoEncodingResolutionMode(Windows::Media::Capture::AppCaptureVideoEncodingResolutionMode * value) noexcept override - { - try - { - *value = detach(this->shim().VideoEncodingResolutionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsAppCaptureEnabled(bool value) noexcept override - { - try - { - this->shim().IsAppCaptureEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAppCaptureEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAppCaptureEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCpuConstrained(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCpuConstrained()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDisabledByPolicy(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDisabledByPolicy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMemoryConstrained(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMemoryConstrained()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasHardwareEncoder(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasHardwareEncoder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsGpuConstrained(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGpuConstrained()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlternateShortcutKeys(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlternateShortcutKeys()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_IsMicrophoneCaptureEnabled(bool value) noexcept override - { - try - { - this->shim().IsMicrophoneCaptureEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMicrophoneCaptureEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMicrophoneCaptureEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_IsMicrophoneCaptureEnabledByDefault(bool value) noexcept override - { - try - { - this->shim().IsMicrophoneCaptureEnabledByDefault(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMicrophoneCaptureEnabledByDefault(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMicrophoneCaptureEnabledByDefault()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SystemAudioGain(double value) noexcept override - { - try - { - this->shim().SystemAudioGain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemAudioGain(double * value) noexcept override - { - try - { - *value = detach(this->shim().SystemAudioGain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MicrophoneGain(double value) noexcept override - { - try - { - this->shim().MicrophoneGain(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MicrophoneGain(double * value) noexcept override - { - try - { - *value = detach(this->shim().MicrophoneGain()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VideoEncodingFrameRateMode(Windows::Media::Capture::AppCaptureVideoEncodingFrameRateMode value) noexcept override - { - try - { - this->shim().VideoEncodingFrameRateMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoEncodingFrameRateMode(Windows::Media::Capture::AppCaptureVideoEncodingFrameRateMode * value) noexcept override - { - try - { - *value = detach(this->shim().VideoEncodingFrameRateMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PhotoSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhotoSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CaptureFileAsync(Windows::Media::Capture::CameraCaptureUIMode mode, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().CaptureFileAsync(mode)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Format(Windows::Media::Capture::CameraCaptureUIPhotoFormat * value) noexcept override - { - try - { - *value = detach(this->shim().Format()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Format(Windows::Media::Capture::CameraCaptureUIPhotoFormat value) noexcept override - { - try - { - this->shim().Format(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxResolution(Windows::Media::Capture::CameraCaptureUIMaxPhotoResolution * value) noexcept override - { - try - { - *value = detach(this->shim().MaxResolution()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxResolution(Windows::Media::Capture::CameraCaptureUIMaxPhotoResolution value) noexcept override - { - try - { - this->shim().MaxResolution(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CroppedSizeInPixels(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CroppedSizeInPixels()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CroppedSizeInPixels(abi_arg_in value) noexcept override - { - try - { - this->shim().CroppedSizeInPixels(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CroppedAspectRatio(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CroppedAspectRatio()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CroppedAspectRatio(abi_arg_in value) noexcept override - { - try - { - this->shim().CroppedAspectRatio(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowCropping(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowCropping()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowCropping(bool value) noexcept override - { - try - { - this->shim().AllowCropping(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Format(Windows::Media::Capture::CameraCaptureUIVideoFormat * value) noexcept override - { - try - { - *value = detach(this->shim().Format()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Format(Windows::Media::Capture::CameraCaptureUIVideoFormat value) noexcept override - { - try - { - this->shim().Format(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxResolution(Windows::Media::Capture::CameraCaptureUIMaxVideoResolution * value) noexcept override - { - try - { - *value = detach(this->shim().MaxResolution()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxResolution(Windows::Media::Capture::CameraCaptureUIMaxVideoResolution value) noexcept override - { - try - { - this->shim().MaxResolution(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDurationInSeconds(float * value) noexcept override - { - try - { - *value = detach(this->shim().MaxDurationInSeconds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxDurationInSeconds(float value) noexcept override - { - try - { - this->shim().MaxDurationInSeconds(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowTrimming(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowTrimming()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowTrimming(bool value) noexcept override - { - try - { - this->shim().AllowTrimming(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Show(abi_arg_in mediaCapture) noexcept override - { - try - { - this->shim().Show(*reinterpret_cast(&mediaCapture)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Width(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Exposure(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Exposure()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExposureCompensation(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExposureCompensation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsoSpeed(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IsoSpeed()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Focus(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Focus()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SceneMode(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SceneMode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Flashed(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Flashed()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlashPowerPercent(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FlashPowerPercent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WhiteBalance(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().WhiteBalance()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomFactor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ZoomFactor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FocusState(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FocusState()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsoDigitalGain(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IsoDigitalGain()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsoAnalogGain(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IsoAnalogGain()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SensorFrameRate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SensorFrameRate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WhiteBalanceGain(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().WhiteBalanceGain()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SoftwareBitmap(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SoftwareBitmap()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Frame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Frame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().StartAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().StopAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FinishAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().FinishAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_PauseAsync(Windows::Media::Devices::MediaCapturePauseBehavior behavior, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().PauseAsync(behavior)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResumeAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ResumeAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_PauseWithResultAsync(Windows::Media::Devices::MediaCapturePauseBehavior behavior, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PauseWithResultAsync(behavior)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopWithResultAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().StopWithResultAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CaptureAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CaptureAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FinishAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().FinishAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().StartAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().StopAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FinishAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().FinishAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PhotoCaptured(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PhotoCaptured(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PhotoCaptured(event_token token) noexcept override - { - try - { - this->shim().PhotoCaptured(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_InitializeAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().InitializeAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InitializeWithSettingsAsync(abi_arg_in mediaCaptureInitializationSettings, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().InitializeAsync(*reinterpret_cast(&mediaCaptureInitializationSettings))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartRecordToStorageFileAsync(abi_arg_in encodingProfile, abi_arg_in file, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().StartRecordToStorageFileAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartRecordToStreamAsync(abi_arg_in encodingProfile, abi_arg_in stream, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().StartRecordToStreamAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartRecordToCustomSinkAsync(abi_arg_in encodingProfile, abi_arg_in customMediaSink, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().StartRecordToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customMediaSink))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartRecordToCustomSinkIdAsync(abi_arg_in encodingProfile, abi_arg_in customSinkActivationId, abi_arg_in customSinkSettings, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().StartRecordToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customSinkActivationId), *reinterpret_cast(&customSinkSettings))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopRecordAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().StopRecordAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CapturePhotoToStorageFileAsync(abi_arg_in type, abi_arg_in file, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().CapturePhotoToStorageFileAsync(*reinterpret_cast(&type), *reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CapturePhotoToStreamAsync(abi_arg_in type, abi_arg_in stream, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().CapturePhotoToStreamAsync(*reinterpret_cast(&type), *reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddEffectAsync(Windows::Media::Capture::MediaStreamType mediaStreamType, abi_arg_in effectActivationID, abi_arg_in effectSettings, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().AddEffectAsync(mediaStreamType, *reinterpret_cast(&effectActivationID), *reinterpret_cast(&effectSettings))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearEffectsAsync(Windows::Media::Capture::MediaStreamType mediaStreamType, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ClearEffectsAsync(mediaStreamType)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetEncoderProperty(Windows::Media::Capture::MediaStreamType mediaStreamType, GUID propertyId, abi_arg_in propertyValue) noexcept override - { - try - { - this->shim().SetEncoderProperty(mediaStreamType, propertyId, *reinterpret_cast(&propertyValue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEncoderProperty(Windows::Media::Capture::MediaStreamType mediaStreamType, GUID propertyId, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().GetEncoderProperty(mediaStreamType, propertyId)); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Failed(abi_arg_in errorEventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().Failed(*reinterpret_cast(&errorEventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Failed(event_token eventCookie) noexcept override - { - try - { - this->shim().Failed(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RecordLimitationExceeded(abi_arg_in recordLimitationExceededEventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().RecordLimitationExceeded(*reinterpret_cast(&recordLimitationExceededEventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RecordLimitationExceeded(event_token eventCookie) noexcept override - { - try - { - this->shim().RecordLimitationExceeded(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaCaptureSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaCaptureSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioDeviceController(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioDeviceController()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoDeviceController(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoDeviceController()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPreviewMirroring(bool value) noexcept override - { - try - { - this->shim().SetPreviewMirroring(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPreviewMirroring(bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetPreviewMirroring()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPreviewRotation(Windows::Media::Capture::VideoRotation value) noexcept override - { - try - { - this->shim().SetPreviewRotation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPreviewRotation(Windows::Media::Capture::VideoRotation * value) noexcept override - { - try - { - *value = detach(this->shim().GetPreviewRotation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRecordRotation(Windows::Media::Capture::VideoRotation value) noexcept override - { - try - { - this->shim().SetRecordRotation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRecordRotation(Windows::Media::Capture::VideoRotation * value) noexcept override - { - try - { - *value = detach(this->shim().GetRecordRotation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_PrepareLowLagRecordToStorageFileAsync(abi_arg_in encodingProfile, abi_arg_in file, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareLowLagRecordToStorageFileAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrepareLowLagRecordToStreamAsync(abi_arg_in encodingProfile, abi_arg_in stream, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareLowLagRecordToStreamAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrepareLowLagRecordToCustomSinkAsync(abi_arg_in encodingProfile, abi_arg_in customMediaSink, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareLowLagRecordToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customMediaSink))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrepareLowLagRecordToCustomSinkIdAsync(abi_arg_in encodingProfile, abi_arg_in customSinkActivationId, abi_arg_in customSinkSettings, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareLowLagRecordToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customSinkActivationId), *reinterpret_cast(&customSinkSettings))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrepareLowLagPhotoCaptureAsync(abi_arg_in type, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareLowLagPhotoCaptureAsync(*reinterpret_cast(&type))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrepareLowLagPhotoSequenceCaptureAsync(abi_arg_in type, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareLowLagPhotoSequenceCaptureAsync(*reinterpret_cast(&type))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetEncodingPropertiesAsync(Windows::Media::Capture::MediaStreamType mediaStreamType, abi_arg_in mediaEncodingProperties, abi_arg_in> encoderProperties, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SetEncodingPropertiesAsync(mediaStreamType, *reinterpret_cast(&mediaEncodingProperties), *reinterpret_cast(&encoderProperties))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_PrepareVariablePhotoSequenceCaptureAsync(abi_arg_in type, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareVariablePhotoSequenceCaptureAsync(*reinterpret_cast(&type))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FocusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FocusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FocusChanged(event_token token) noexcept override - { - try - { - this->shim().FocusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PhotoConfirmationCaptured(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PhotoConfirmationCaptured(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PhotoConfirmationCaptured(event_token token) noexcept override - { - try - { - this->shim().PhotoConfirmationCaptured(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddAudioEffectAsync(abi_arg_in definition, abi_arg_out> op) noexcept override - { - try - { - *op = detach(this->shim().AddAudioEffectAsync(*reinterpret_cast(&definition))); - return S_OK; - } - catch (...) - { - *op = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddVideoEffectAsync(abi_arg_in definition, Windows::Media::Capture::MediaStreamType mediaStreamType, abi_arg_out> op) noexcept override - { - try - { - *op = detach(this->shim().AddVideoEffectAsync(*reinterpret_cast(&definition), mediaStreamType)); - return S_OK; - } - catch (...) - { - *op = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PauseRecordAsync(Windows::Media::Devices::MediaCapturePauseBehavior behavior, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().PauseRecordAsync(behavior)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResumeRecordAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ResumeRecordAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CameraStreamStateChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CameraStreamStateChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CameraStreamStateChanged(event_token token) noexcept override - { - try - { - this->shim().CameraStreamStateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CameraStreamState(Windows::Media::Devices::CameraStreamState * streamState) noexcept override - { - try - { - *streamState = detach(this->shim().CameraStreamState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPreviewFrameAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPreviewFrameAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPreviewFrameCopyAsync(abi_arg_in destination, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPreviewFrameAsync(*reinterpret_cast(&destination))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ThermalStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ThermalStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ThermalStatusChanged(event_token token) noexcept override - { - try - { - this->shim().ThermalStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ThermalStatus(Windows::Media::Capture::MediaCaptureThermalStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ThermalStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrepareAdvancedPhotoCaptureAsync(abi_arg_in encodingProperties, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareAdvancedPhotoCaptureAsync(*reinterpret_cast(&encodingProperties))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RemoveEffectAsync(abi_arg_in effect, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().RemoveEffectAsync(*reinterpret_cast(&effect))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PauseRecordWithResultAsync(Windows::Media::Devices::MediaCapturePauseBehavior behavior, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PauseRecordWithResultAsync(behavior)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopRecordWithResultAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().StopRecordWithResultAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameSources(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FrameSources()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFrameReaderAsync(abi_arg_in inputSource, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateFrameReaderAsync(*reinterpret_cast(&inputSource))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFrameReaderWithSubtypeAsync(abi_arg_in inputSource, abi_arg_in outputSubtype, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateFrameReaderAsync(*reinterpret_cast(&inputSource), *reinterpret_cast(&outputSubtype))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFrameReaderWithSubtypeAndSizeAsync(abi_arg_in inputSource, abi_arg_in outputSubtype, abi_arg_in outputSize, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateFrameReaderAsync(*reinterpret_cast(&inputSource), *reinterpret_cast(&outputSubtype), *reinterpret_cast(&outputSize))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Code(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Code()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FocusState(Windows::Media::Devices::MediaCaptureFocusState * value) noexcept override - { - try - { - *value = detach(this->shim().FocusState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_AudioDeviceId(abi_arg_in value) noexcept override - { - try - { - this->shim().AudioDeviceId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VideoDeviceId(abi_arg_in value) noexcept override - { - try - { - this->shim().VideoDeviceId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StreamingCaptureMode(Windows::Media::Capture::StreamingCaptureMode value) noexcept override - { - try - { - this->shim().StreamingCaptureMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StreamingCaptureMode(Windows::Media::Capture::StreamingCaptureMode * value) noexcept override - { - try - { - *value = detach(this->shim().StreamingCaptureMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PhotoCaptureSource(Windows::Media::Capture::PhotoCaptureSource value) noexcept override - { - try - { - this->shim().PhotoCaptureSource(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotoCaptureSource(Windows::Media::Capture::PhotoCaptureSource * value) noexcept override - { - try - { - *value = detach(this->shim().PhotoCaptureSource()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_MediaCategory(Windows::Media::Capture::MediaCategory value) noexcept override - { - try - { - this->shim().MediaCategory(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaCategory(Windows::Media::Capture::MediaCategory * value) noexcept override - { - try - { - *value = detach(this->shim().MediaCategory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioProcessing(Windows::Media::AudioProcessing value) noexcept override - { - try - { - this->shim().AudioProcessing(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioProcessing(Windows::Media::AudioProcessing * value) noexcept override - { - try - { - *value = detach(this->shim().AudioProcessing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_AudioSource(abi_arg_in value) noexcept override - { - try - { - this->shim().AudioSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VideoSource(abi_arg_in value) noexcept override - { - try - { - this->shim().VideoSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VideoProfile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoProfile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VideoProfile(abi_arg_in value) noexcept override - { - try - { - this->shim().VideoProfile(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreviewMediaDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreviewMediaDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreviewMediaDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().PreviewMediaDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecordMediaDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RecordMediaDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RecordMediaDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().RecordMediaDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotoMediaDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhotoMediaDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PhotoMediaDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().PhotoMediaDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceGroup(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceGroup()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SourceGroup(abi_arg_in value) noexcept override - { - try - { - this->shim().SourceGroup(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SharingMode(Windows::Media::Capture::MediaCaptureSharingMode * value) noexcept override - { - try - { - *value = detach(this->shim().SharingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SharingMode(Windows::Media::Capture::MediaCaptureSharingMode value) noexcept override - { - try - { - this->shim().SharingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MemoryPreference(Windows::Media::Capture::MediaCaptureMemoryPreference * value) noexcept override - { - try - { - *value = detach(this->shim().MemoryPreference()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MemoryPreference(Windows::Media::Capture::MediaCaptureMemoryPreference value) noexcept override - { - try - { - this->shim().MemoryPreference(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LastFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecordDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RecordDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AudioDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StreamingCaptureMode(Windows::Media::Capture::StreamingCaptureMode * value) noexcept override - { - try - { - *value = detach(this->shim().StreamingCaptureMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotoCaptureSource(Windows::Media::Capture::PhotoCaptureSource * value) noexcept override - { - try - { - *value = detach(this->shim().PhotoCaptureSource()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoDeviceCharacteristic(Windows::Media::Capture::VideoDeviceCharacteristic * value) noexcept override - { - try - { - *value = detach(this->shim().VideoDeviceCharacteristic()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConcurrentRecordAndPhotoSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ConcurrentRecordAndPhotoSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConcurrentRecordAndPhotoSequenceSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ConcurrentRecordAndPhotoSequenceSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CameraSoundRequiredForRegion(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CameraSoundRequiredForRegion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Horizontal35mmEquivalentFocalLength(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Horizontal35mmEquivalentFocalLength()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PitchOffsetDegrees(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PitchOffsetDegrees()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Vertical35mmEquivalentFocalLength(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Vertical35mmEquivalentFocalLength()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaCategory(Windows::Media::Capture::MediaCategory * value) noexcept override - { - try - { - *value = detach(this->shim().MediaCategory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioProcessing(Windows::Media::AudioProcessing * value) noexcept override - { - try - { - *value = detach(this->shim().AudioProcessing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsVideoProfileSupported(abi_arg_in videoDeviceId, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVideoProfileSupported(*reinterpret_cast(&videoDeviceId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllVideoProfiles(abi_arg_in videoDeviceId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FindAllVideoProfiles(*reinterpret_cast(&videoDeviceId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindConcurrentProfiles(abi_arg_in videoDeviceId, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FindConcurrentProfiles(*reinterpret_cast(&videoDeviceId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindKnownVideoProfiles(abi_arg_in videoDeviceId, Windows::Media::Capture::KnownVideoProfile name, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FindKnownVideoProfiles(*reinterpret_cast(&videoDeviceId), name)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LastFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecordDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RecordDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartPreviewAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().StartPreviewAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartPreviewToCustomSinkAsync(abi_arg_in encodingProfile, abi_arg_in customMediaSink, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().StartPreviewToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customMediaSink))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartPreviewToCustomSinkIdAsync(abi_arg_in encodingProfile, abi_arg_in customSinkActivationId, abi_arg_in customSinkSettings, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().StartPreviewToCustomSinkAsync(*reinterpret_cast(&encodingProfile), *reinterpret_cast(&customSinkActivationId), *reinterpret_cast(&customSinkSettings))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopPreviewAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().StopPreviewAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedPreviewMediaDescription(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedPreviewMediaDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedRecordMediaDescription(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedRecordMediaDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedPhotoMediaDescription(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedPhotoMediaDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConcurrency(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetConcurrency()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Width(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameRate(double * value) noexcept override - { - try - { - *value = detach(this->shim().FrameRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVariablePhotoSequenceSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVariablePhotoSequenceSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHdrVideoSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHdrVideoSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Frame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Frame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Context(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Context()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Frame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Frame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CaptureTimeOffset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CaptureTimeOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Frame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Frame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CaptureTimeOffset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CaptureTimeOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AudioSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAudioSuspended(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAudioSuspended()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVideoSuspended(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVideoSuspended()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceSuspensionChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceSuspensionChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceSuspensionChanged(event_token token) noexcept override - { - try - { - this->shim().SourceSuspensionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsAudioSuspended(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAudioSuspended()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVideoSuspended(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVideoSuspended()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InputProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Capture { - -template bool impl_IAppCapture::IsCapturingAudio() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCapturingAudio(&value)); - return value; -} - -template bool impl_IAppCapture::IsCapturingVideo() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCapturingVideo(&value)); - return value; -} - -template event_token impl_IAppCapture::CapturingChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CapturingChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAppCapture::CapturingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::IAppCapture::remove_CapturingChanged, CapturingChanged(handler)); -} - -template void impl_IAppCapture::CapturingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CapturingChanged(token)); -} - -template Windows::Media::Capture::AppCapture impl_IAppCaptureStatics::GetForCurrentView() const -{ - Windows::Media::Capture::AppCapture value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(value))); - return value; -} - -template Windows::Media::Capture::CameraCaptureUIPhotoFormat impl_ICameraCaptureUIPhotoCaptureSettings::Format() const -{ - Windows::Media::Capture::CameraCaptureUIPhotoFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_Format(&value)); - return value; -} - -template void impl_ICameraCaptureUIPhotoCaptureSettings::Format(Windows::Media::Capture::CameraCaptureUIPhotoFormat value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Format(value)); -} - -template Windows::Media::Capture::CameraCaptureUIMaxPhotoResolution impl_ICameraCaptureUIPhotoCaptureSettings::MaxResolution() const -{ - Windows::Media::Capture::CameraCaptureUIMaxPhotoResolution value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxResolution(&value)); - return value; -} - -template void impl_ICameraCaptureUIPhotoCaptureSettings::MaxResolution(Windows::Media::Capture::CameraCaptureUIMaxPhotoResolution value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxResolution(value)); -} - -template Windows::Foundation::Size impl_ICameraCaptureUIPhotoCaptureSettings::CroppedSizeInPixels() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_CroppedSizeInPixels(put(value))); - return value; -} - -template void impl_ICameraCaptureUIPhotoCaptureSettings::CroppedSizeInPixels(const Windows::Foundation::Size & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CroppedSizeInPixels(get(value))); -} - -template Windows::Foundation::Size impl_ICameraCaptureUIPhotoCaptureSettings::CroppedAspectRatio() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_CroppedAspectRatio(put(value))); - return value; -} - -template void impl_ICameraCaptureUIPhotoCaptureSettings::CroppedAspectRatio(const Windows::Foundation::Size & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CroppedAspectRatio(get(value))); -} - -template bool impl_ICameraCaptureUIPhotoCaptureSettings::AllowCropping() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowCropping(&value)); - return value; -} - -template void impl_ICameraCaptureUIPhotoCaptureSettings::AllowCropping(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowCropping(value)); -} - -template Windows::Media::Capture::CameraCaptureUIVideoFormat impl_ICameraCaptureUIVideoCaptureSettings::Format() const -{ - Windows::Media::Capture::CameraCaptureUIVideoFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_Format(&value)); - return value; -} - -template void impl_ICameraCaptureUIVideoCaptureSettings::Format(Windows::Media::Capture::CameraCaptureUIVideoFormat value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Format(value)); -} - -template Windows::Media::Capture::CameraCaptureUIMaxVideoResolution impl_ICameraCaptureUIVideoCaptureSettings::MaxResolution() const -{ - Windows::Media::Capture::CameraCaptureUIMaxVideoResolution value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxResolution(&value)); - return value; -} - -template void impl_ICameraCaptureUIVideoCaptureSettings::MaxResolution(Windows::Media::Capture::CameraCaptureUIMaxVideoResolution value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxResolution(value)); -} - -template float impl_ICameraCaptureUIVideoCaptureSettings::MaxDurationInSeconds() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxDurationInSeconds(&value)); - return value; -} - -template void impl_ICameraCaptureUIVideoCaptureSettings::MaxDurationInSeconds(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxDurationInSeconds(value)); -} - -template bool impl_ICameraCaptureUIVideoCaptureSettings::AllowTrimming() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowTrimming(&value)); - return value; -} - -template void impl_ICameraCaptureUIVideoCaptureSettings::AllowTrimming(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowTrimming(value)); -} - -template Windows::Media::Capture::CameraCaptureUIPhotoCaptureSettings impl_ICameraCaptureUI::PhotoSettings() const -{ - Windows::Media::Capture::CameraCaptureUIPhotoCaptureSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PhotoSettings(put(value))); - return value; -} - -template Windows::Media::Capture::CameraCaptureUIVideoCaptureSettings impl_ICameraCaptureUI::VideoSettings() const -{ - Windows::Media::Capture::CameraCaptureUIVideoCaptureSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoSettings(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICameraCaptureUI::CaptureFileAsync(Windows::Media::Capture::CameraCaptureUIMode mode) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_CaptureFileAsync(mode, put(asyncInfo))); - return asyncInfo; -} - -template hstring impl_IMediaCaptureFailedEventArgs::Message() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template uint32_t impl_IMediaCaptureFailedEventArgs::Code() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Code(&value)); - return value; -} - -template uint32_t impl_IMediaCaptureVideoProfileMediaDescription::Width() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(&value)); - return value; -} - -template uint32_t impl_IMediaCaptureVideoProfileMediaDescription::Height() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(&value)); - return value; -} - -template double impl_IMediaCaptureVideoProfileMediaDescription::FrameRate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FrameRate(&value)); - return value; -} - -template bool impl_IMediaCaptureVideoProfileMediaDescription::IsVariablePhotoSequenceSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVariablePhotoSequenceSupported(&value)); - return value; -} - -template bool impl_IMediaCaptureVideoProfileMediaDescription::IsHdrVideoSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsHdrVideoSupported(&value)); - return value; -} - -template hstring impl_IMediaCaptureVideoProfile::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IMediaCaptureVideoProfile::VideoDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VideoDeviceId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaCaptureVideoProfile::SupportedPreviewMediaDescription() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedPreviewMediaDescription(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaCaptureVideoProfile::SupportedRecordMediaDescription() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedRecordMediaDescription(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaCaptureVideoProfile::SupportedPhotoMediaDescription() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedPhotoMediaDescription(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaCaptureVideoProfile::GetConcurrency() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetConcurrency(put(value))); - return value; -} - -template void impl_IMediaCaptureInitializationSettings::AudioDeviceId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioDeviceId(get(value))); -} - -template hstring impl_IMediaCaptureInitializationSettings::AudioDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AudioDeviceId(put(value))); - return value; -} - -template void impl_IMediaCaptureInitializationSettings::VideoDeviceId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VideoDeviceId(get(value))); -} - -template hstring impl_IMediaCaptureInitializationSettings::VideoDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VideoDeviceId(put(value))); - return value; -} - -template void impl_IMediaCaptureInitializationSettings::StreamingCaptureMode(Windows::Media::Capture::StreamingCaptureMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StreamingCaptureMode(value)); -} - -template Windows::Media::Capture::StreamingCaptureMode impl_IMediaCaptureInitializationSettings::StreamingCaptureMode() const -{ - Windows::Media::Capture::StreamingCaptureMode value {}; - check_hresult(static_cast(static_cast(*this))->get_StreamingCaptureMode(&value)); - return value; -} - -template void impl_IMediaCaptureInitializationSettings::PhotoCaptureSource(Windows::Media::Capture::PhotoCaptureSource value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PhotoCaptureSource(value)); -} - -template Windows::Media::Capture::PhotoCaptureSource impl_IMediaCaptureInitializationSettings::PhotoCaptureSource() const -{ - Windows::Media::Capture::PhotoCaptureSource value {}; - check_hresult(static_cast(static_cast(*this))->get_PhotoCaptureSource(&value)); - return value; -} - -template void impl_IMediaCaptureInitializationSettings2::MediaCategory(Windows::Media::Capture::MediaCategory value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MediaCategory(value)); -} - -template Windows::Media::Capture::MediaCategory impl_IMediaCaptureInitializationSettings2::MediaCategory() const -{ - Windows::Media::Capture::MediaCategory value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaCategory(&value)); - return value; -} - -template void impl_IMediaCaptureInitializationSettings2::AudioProcessing(Windows::Media::AudioProcessing value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioProcessing(value)); -} - -template Windows::Media::AudioProcessing impl_IMediaCaptureInitializationSettings2::AudioProcessing() const -{ - Windows::Media::AudioProcessing value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioProcessing(&value)); - return value; -} - -template void impl_IMediaCaptureInitializationSettings3::AudioSource(const Windows::Media::Core::IMediaSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioSource(get(value))); -} - -template Windows::Media::Core::IMediaSource impl_IMediaCaptureInitializationSettings3::AudioSource() const -{ - Windows::Media::Core::IMediaSource value; - check_hresult(static_cast(static_cast(*this))->get_AudioSource(put(value))); - return value; -} - -template void impl_IMediaCaptureInitializationSettings3::VideoSource(const Windows::Media::Core::IMediaSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VideoSource(get(value))); -} - -template Windows::Media::Core::IMediaSource impl_IMediaCaptureInitializationSettings3::VideoSource() const -{ - Windows::Media::Core::IMediaSource value; - check_hresult(static_cast(static_cast(*this))->get_VideoSource(put(value))); - return value; -} - -template Windows::Media::Capture::MediaCaptureVideoProfile impl_IMediaCaptureInitializationSettings4::VideoProfile() const -{ - Windows::Media::Capture::MediaCaptureVideoProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoProfile(put(value))); - return value; -} - -template void impl_IMediaCaptureInitializationSettings4::VideoProfile(const Windows::Media::Capture::MediaCaptureVideoProfile & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VideoProfile(get(value))); -} - -template Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription impl_IMediaCaptureInitializationSettings4::PreviewMediaDescription() const -{ - Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PreviewMediaDescription(put(value))); - return value; -} - -template void impl_IMediaCaptureInitializationSettings4::PreviewMediaDescription(const Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreviewMediaDescription(get(value))); -} - -template Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription impl_IMediaCaptureInitializationSettings4::RecordMediaDescription() const -{ - Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RecordMediaDescription(put(value))); - return value; -} - -template void impl_IMediaCaptureInitializationSettings4::RecordMediaDescription(const Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RecordMediaDescription(get(value))); -} - -template Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription impl_IMediaCaptureInitializationSettings4::PhotoMediaDescription() const -{ - Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PhotoMediaDescription(put(value))); - return value; -} - -template void impl_IMediaCaptureInitializationSettings4::PhotoMediaDescription(const Windows::Media::Capture::MediaCaptureVideoProfileMediaDescription & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PhotoMediaDescription(get(value))); -} - -template Windows::Media::Capture::Frames::MediaFrameSourceGroup impl_IMediaCaptureInitializationSettings5::SourceGroup() const -{ - Windows::Media::Capture::Frames::MediaFrameSourceGroup value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceGroup(put(value))); - return value; -} - -template void impl_IMediaCaptureInitializationSettings5::SourceGroup(const Windows::Media::Capture::Frames::MediaFrameSourceGroup & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SourceGroup(get(value))); -} - -template Windows::Media::Capture::MediaCaptureSharingMode impl_IMediaCaptureInitializationSettings5::SharingMode() const -{ - Windows::Media::Capture::MediaCaptureSharingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SharingMode(&value)); - return value; -} - -template void impl_IMediaCaptureInitializationSettings5::SharingMode(Windows::Media::Capture::MediaCaptureSharingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SharingMode(value)); -} - -template Windows::Media::Capture::MediaCaptureMemoryPreference impl_IMediaCaptureInitializationSettings5::MemoryPreference() const -{ - Windows::Media::Capture::MediaCaptureMemoryPreference value {}; - check_hresult(static_cast(static_cast(*this))->get_MemoryPreference(&value)); - return value; -} - -template void impl_IMediaCaptureInitializationSettings5::MemoryPreference(Windows::Media::Capture::MediaCaptureMemoryPreference value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MemoryPreference(value)); -} - -template bool impl_IMediaCaptureStatics::IsVideoProfileSupported(hstring_ref videoDeviceId) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsVideoProfileSupported(get(videoDeviceId), &value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaCaptureStatics::FindAllVideoProfiles(hstring_ref videoDeviceId) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_FindAllVideoProfiles(get(videoDeviceId), put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaCaptureStatics::FindConcurrentProfiles(hstring_ref videoDeviceId) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_FindConcurrentProfiles(get(videoDeviceId), put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaCaptureStatics::FindKnownVideoProfiles(hstring_ref videoDeviceId, Windows::Media::Capture::KnownVideoProfile name) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_FindKnownVideoProfiles(get(videoDeviceId), name, put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture::InitializeAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_InitializeAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture::InitializeAsync(const Windows::Media::Capture::MediaCaptureInitializationSettings & mediaCaptureInitializationSettings) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_InitializeWithSettingsAsync(get(mediaCaptureInitializationSettings), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture::StartRecordToStorageFileAsync(const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile, const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_StartRecordToStorageFileAsync(get(encodingProfile), get(file), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture::StartRecordToStreamAsync(const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile, const Windows::Storage::Streams::IRandomAccessStream & stream) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_StartRecordToStreamAsync(get(encodingProfile), get(stream), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture::StartRecordToCustomSinkAsync(const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile, const Windows::Media::IMediaExtension & customMediaSink) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_StartRecordToCustomSinkAsync(get(encodingProfile), get(customMediaSink), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture::StartRecordToCustomSinkAsync(const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile, hstring_ref customSinkActivationId, const Windows::Foundation::Collections::IPropertySet & customSinkSettings) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_StartRecordToCustomSinkIdAsync(get(encodingProfile), get(customSinkActivationId), get(customSinkSettings), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture::StopRecordAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_StopRecordAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture::CapturePhotoToStorageFileAsync(const Windows::Media::MediaProperties::ImageEncodingProperties & type, const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_CapturePhotoToStorageFileAsync(get(type), get(file), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture::CapturePhotoToStreamAsync(const Windows::Media::MediaProperties::ImageEncodingProperties & type, const Windows::Storage::Streams::IRandomAccessStream & stream) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_CapturePhotoToStreamAsync(get(type), get(stream), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture::AddEffectAsync(Windows::Media::Capture::MediaStreamType mediaStreamType, hstring_ref effectActivationID, const Windows::Foundation::Collections::IPropertySet & effectSettings) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_AddEffectAsync(mediaStreamType, get(effectActivationID), get(effectSettings), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture::ClearEffectsAsync(Windows::Media::Capture::MediaStreamType mediaStreamType) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ClearEffectsAsync(mediaStreamType, put(asyncInfo))); - return asyncInfo; -} - -template void impl_IMediaCapture::SetEncoderProperty(Windows::Media::Capture::MediaStreamType mediaStreamType, GUID propertyId, const Windows::IInspectable & propertyValue) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetEncoderProperty(mediaStreamType, propertyId, get(propertyValue))); -} - -template Windows::IInspectable impl_IMediaCapture::GetEncoderProperty(Windows::Media::Capture::MediaStreamType mediaStreamType, GUID propertyId) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_GetEncoderProperty(mediaStreamType, propertyId, put(propertyValue))); - return propertyValue; -} - -template event_token impl_IMediaCapture::Failed(const Windows::Media::Capture::MediaCaptureFailedEventHandler & errorEventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Failed(get(errorEventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IMediaCapture::Failed(auto_revoke_t, const Windows::Media::Capture::MediaCaptureFailedEventHandler & errorEventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::IMediaCapture::remove_Failed, Failed(errorEventHandler)); -} - -template void impl_IMediaCapture::Failed(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Failed(eventCookie)); -} - -template event_token impl_IMediaCapture::RecordLimitationExceeded(const Windows::Media::Capture::RecordLimitationExceededEventHandler & recordLimitationExceededEventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_RecordLimitationExceeded(get(recordLimitationExceededEventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IMediaCapture::RecordLimitationExceeded(auto_revoke_t, const Windows::Media::Capture::RecordLimitationExceededEventHandler & recordLimitationExceededEventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::IMediaCapture::remove_RecordLimitationExceeded, RecordLimitationExceeded(recordLimitationExceededEventHandler)); -} - -template void impl_IMediaCapture::RecordLimitationExceeded(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RecordLimitationExceeded(eventCookie)); -} - -template Windows::Media::Capture::MediaCaptureSettings impl_IMediaCapture::MediaCaptureSettings() const -{ - Windows::Media::Capture::MediaCaptureSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaCaptureSettings(put(value))); - return value; -} - -template Windows::Media::Devices::AudioDeviceController impl_IMediaCapture::AudioDeviceController() const -{ - Windows::Media::Devices::AudioDeviceController value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AudioDeviceController(put(value))); - return value; -} - -template Windows::Media::Devices::VideoDeviceController impl_IMediaCapture::VideoDeviceController() const -{ - Windows::Media::Devices::VideoDeviceController value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoDeviceController(put(value))); - return value; -} - -template void impl_IMediaCapture::SetPreviewMirroring(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPreviewMirroring(value)); -} - -template bool impl_IMediaCapture::GetPreviewMirroring() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPreviewMirroring(&value)); - return value; -} - -template void impl_IMediaCapture::SetPreviewRotation(Windows::Media::Capture::VideoRotation value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPreviewRotation(value)); -} - -template Windows::Media::Capture::VideoRotation impl_IMediaCapture::GetPreviewRotation() const -{ - Windows::Media::Capture::VideoRotation value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPreviewRotation(&value)); - return value; -} - -template void impl_IMediaCapture::SetRecordRotation(Windows::Media::Capture::VideoRotation value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetRecordRotation(value)); -} - -template Windows::Media::Capture::VideoRotation impl_IMediaCapture::GetRecordRotation() const -{ - Windows::Media::Capture::VideoRotation value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetRecordRotation(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture2::PrepareLowLagRecordToStorageFileAsync(const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile, const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareLowLagRecordToStorageFileAsync(get(encodingProfile), get(file), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture2::PrepareLowLagRecordToStreamAsync(const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile, const Windows::Storage::Streams::IRandomAccessStream & stream) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareLowLagRecordToStreamAsync(get(encodingProfile), get(stream), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture2::PrepareLowLagRecordToCustomSinkAsync(const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile, const Windows::Media::IMediaExtension & customMediaSink) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareLowLagRecordToCustomSinkAsync(get(encodingProfile), get(customMediaSink), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture2::PrepareLowLagRecordToCustomSinkAsync(const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile, hstring_ref customSinkActivationId, const Windows::Foundation::Collections::IPropertySet & customSinkSettings) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareLowLagRecordToCustomSinkIdAsync(get(encodingProfile), get(customSinkActivationId), get(customSinkSettings), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture2::PrepareLowLagPhotoCaptureAsync(const Windows::Media::MediaProperties::ImageEncodingProperties & type) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareLowLagPhotoCaptureAsync(get(type), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture2::PrepareLowLagPhotoSequenceCaptureAsync(const Windows::Media::MediaProperties::ImageEncodingProperties & type) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareLowLagPhotoSequenceCaptureAsync(get(type), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture2::SetEncodingPropertiesAsync(Windows::Media::Capture::MediaStreamType mediaStreamType, const Windows::Media::MediaProperties::IMediaEncodingProperties & mediaEncodingProperties, const Windows::Media::MediaProperties::MediaPropertySet & encoderProperties) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SetEncodingPropertiesAsync(mediaStreamType, get(mediaEncodingProperties), get(encoderProperties), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture3::PrepareVariablePhotoSequenceCaptureAsync(const Windows::Media::MediaProperties::ImageEncodingProperties & type) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareVariablePhotoSequenceCaptureAsync(get(type), put(operation))); - return operation; -} - -template event_token impl_IMediaCapture3::FocusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FocusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaCapture3::FocusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::IMediaCapture3::remove_FocusChanged, FocusChanged(handler)); -} - -template void impl_IMediaCapture3::FocusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FocusChanged(token)); -} - -template event_token impl_IMediaCapture3::PhotoConfirmationCaptured(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PhotoConfirmationCaptured(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaCapture3::PhotoConfirmationCaptured(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::IMediaCapture3::remove_PhotoConfirmationCaptured, PhotoConfirmationCaptured(handler)); -} - -template void impl_IMediaCapture3::PhotoConfirmationCaptured(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PhotoConfirmationCaptured(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture4::AddAudioEffectAsync(const Windows::Media::Effects::IAudioEffectDefinition & definition) const -{ - Windows::Foundation::IAsyncOperation op; - check_hresult(static_cast(static_cast(*this))->abi_AddAudioEffectAsync(get(definition), put(op))); - return op; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture4::AddVideoEffectAsync(const Windows::Media::Effects::IVideoEffectDefinition & definition, Windows::Media::Capture::MediaStreamType mediaStreamType) const -{ - Windows::Foundation::IAsyncOperation op; - check_hresult(static_cast(static_cast(*this))->abi_AddVideoEffectAsync(get(definition), mediaStreamType, put(op))); - return op; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture4::PauseRecordAsync(Windows::Media::Devices::MediaCapturePauseBehavior behavior) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_PauseRecordAsync(behavior, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture4::ResumeRecordAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ResumeRecordAsync(put(asyncInfo))); - return asyncInfo; -} - -template event_token impl_IMediaCapture4::CameraStreamStateChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CameraStreamStateChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaCapture4::CameraStreamStateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::IMediaCapture4::remove_CameraStreamStateChanged, CameraStreamStateChanged(handler)); -} - -template void impl_IMediaCapture4::CameraStreamStateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CameraStreamStateChanged(token)); -} - -template Windows::Media::Devices::CameraStreamState impl_IMediaCapture4::CameraStreamState() const -{ - Windows::Media::Devices::CameraStreamState streamState {}; - check_hresult(static_cast(static_cast(*this))->get_CameraStreamState(&streamState)); - return streamState; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture4::GetPreviewFrameAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPreviewFrameAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture4::GetPreviewFrameAsync(const Windows::Media::VideoFrame & destination) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPreviewFrameCopyAsync(get(destination), put(operation))); - return operation; -} - -template event_token impl_IMediaCapture4::ThermalStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ThermalStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaCapture4::ThermalStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::IMediaCapture4::remove_ThermalStatusChanged, ThermalStatusChanged(handler)); -} - -template void impl_IMediaCapture4::ThermalStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ThermalStatusChanged(token)); -} - -template Windows::Media::Capture::MediaCaptureThermalStatus impl_IMediaCapture4::ThermalStatus() const -{ - Windows::Media::Capture::MediaCaptureThermalStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ThermalStatus(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture4::PrepareAdvancedPhotoCaptureAsync(const Windows::Media::MediaProperties::ImageEncodingProperties & encodingProperties) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareAdvancedPhotoCaptureAsync(get(encodingProperties), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCapture5::RemoveEffectAsync(const Windows::Media::IMediaExtension & effect) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_RemoveEffectAsync(get(effect), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture5::PauseRecordWithResultAsync(Windows::Media::Devices::MediaCapturePauseBehavior behavior) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PauseRecordWithResultAsync(behavior, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture5::StopRecordWithResultAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_StopRecordWithResultAsync(put(operation))); - return operation; -} - -template Windows::Foundation::Collections::IMapView impl_IMediaCapture5::FrameSources() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_FrameSources(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture5::CreateFrameReaderAsync(const Windows::Media::Capture::Frames::MediaFrameSource & inputSource) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateFrameReaderAsync(get(inputSource), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture5::CreateFrameReaderAsync(const Windows::Media::Capture::Frames::MediaFrameSource & inputSource, hstring_ref outputSubtype) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateFrameReaderWithSubtypeAsync(get(inputSource), get(outputSubtype), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCapture5::CreateFrameReaderAsync(const Windows::Media::Capture::Frames::MediaFrameSource & inputSource, hstring_ref outputSubtype, const Windows::Graphics::Imaging::BitmapSize & outputSize) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateFrameReaderWithSubtypeAndSizeAsync(get(inputSource), get(outputSubtype), get(outputSize), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ILowLagPhotoCapture::CaptureAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CaptureAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_ILowLagPhotoCapture::FinishAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_FinishAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAdvancedPhotoCapture::CaptureAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CaptureAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IAdvancedPhotoCapture::CaptureAsync(const Windows::IInspectable & context) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CaptureWithContextAsync(get(context), put(operation))); - return operation; -} - -template event_token impl_IAdvancedPhotoCapture::OptionalReferencePhotoCaptured(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_OptionalReferencePhotoCaptured(get(handler), &token)); - return token; -} - -template event_revoker impl_IAdvancedPhotoCapture::OptionalReferencePhotoCaptured(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::IAdvancedPhotoCapture::remove_OptionalReferencePhotoCaptured, OptionalReferencePhotoCaptured(handler)); -} - -template void impl_IAdvancedPhotoCapture::OptionalReferencePhotoCaptured(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_OptionalReferencePhotoCaptured(token)); -} - -template event_token impl_IAdvancedPhotoCapture::AllPhotosCaptured(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AllPhotosCaptured(get(handler), &token)); - return token; -} - -template event_revoker impl_IAdvancedPhotoCapture::AllPhotosCaptured(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::IAdvancedPhotoCapture::remove_AllPhotosCaptured, AllPhotosCaptured(handler)); -} - -template void impl_IAdvancedPhotoCapture::AllPhotosCaptured(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AllPhotosCaptured(token)); -} - -template Windows::Foundation::IAsyncAction impl_IAdvancedPhotoCapture::FinishAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_FinishAsync(put(operation))); - return operation; -} - -template Windows::Media::Capture::CapturedFrame impl_IAdvancedCapturedPhoto::Frame() const -{ - Windows::Media::Capture::CapturedFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Frame(put(value))); - return value; -} - -template Windows::Media::Devices::AdvancedPhotoMode impl_IAdvancedCapturedPhoto::Mode() const -{ - Windows::Media::Devices::AdvancedPhotoMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template Windows::IInspectable impl_IAdvancedCapturedPhoto::Context() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Context(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAdvancedCapturedPhoto2::FrameBoundsRelativeToReferencePhoto() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_FrameBoundsRelativeToReferencePhoto(put(value))); - return value; -} - -template Windows::Media::Capture::CapturedFrame impl_IOptionalReferencePhotoCapturedEventArgs::Frame() const -{ - Windows::Media::Capture::CapturedFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Frame(put(value))); - return value; -} - -template Windows::IInspectable impl_IOptionalReferencePhotoCapturedEventArgs::Context() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Context(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ILowLagMediaRecording::StartAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_StartAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_ILowLagMediaRecording::StopAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_StopAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_ILowLagMediaRecording::FinishAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_FinishAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_ILowLagMediaRecording2::PauseAsync(Windows::Media::Devices::MediaCapturePauseBehavior behavior) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_PauseAsync(behavior, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_ILowLagMediaRecording2::ResumeAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ResumeAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILowLagMediaRecording3::PauseWithResultAsync(Windows::Media::Devices::MediaCapturePauseBehavior behavior) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PauseWithResultAsync(behavior, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILowLagMediaRecording3::StopWithResultAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_StopWithResultAsync(put(operation))); - return operation; -} - -template Windows::Media::VideoFrame impl_IMediaCapturePauseResult::LastFrame() const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LastFrame(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaCapturePauseResult::RecordDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_RecordDuration(put(value))); - return value; -} - -template Windows::Media::VideoFrame impl_IMediaCaptureStopResult::LastFrame() const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LastFrame(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaCaptureStopResult::RecordDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_RecordDuration(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ILowLagPhotoSequenceCapture::StartAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_StartAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_ILowLagPhotoSequenceCapture::StopAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_StopAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_ILowLagPhotoSequenceCapture::FinishAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_FinishAsync(put(operation))); - return operation; -} - -template event_token impl_ILowLagPhotoSequenceCapture::PhotoCaptured(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PhotoCaptured(get(handler), &token)); - return token; -} - -template event_revoker impl_ILowLagPhotoSequenceCapture::PhotoCaptured(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::ILowLagPhotoSequenceCapture::remove_PhotoCaptured, PhotoCaptured(handler)); -} - -template void impl_ILowLagPhotoSequenceCapture::PhotoCaptured(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PhotoCaptured(token)); -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues::Exposure() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Exposure(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues::ExposureCompensation() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ExposureCompensation(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues::IsoSpeed() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_IsoSpeed(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues::Focus() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Focus(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues::SceneMode() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_SceneMode(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues::Flashed() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Flashed(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues::FlashPowerPercent() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_FlashPowerPercent(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues::WhiteBalance() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_WhiteBalance(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues::ZoomFactor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ZoomFactor(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues2::FocusState() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_FocusState(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues2::IsoDigitalGain() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_IsoDigitalGain(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues2::IsoAnalogGain() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_IsoAnalogGain(put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaRatio impl_ICapturedFrameControlValues2::SensorFrameRate() const -{ - Windows::Media::MediaProperties::MediaRatio value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SensorFrameRate(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICapturedFrameControlValues2::WhiteBalanceGain() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_WhiteBalanceGain(put(value))); - return value; -} - -template Windows::Media::Capture::CapturedFrame impl_IPhotoCapturedEventArgs::Frame() const -{ - Windows::Media::Capture::CapturedFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Frame(put(value))); - return value; -} - -template Windows::Media::Capture::CapturedFrame impl_IPhotoCapturedEventArgs::Thumbnail() const -{ - Windows::Media::Capture::CapturedFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IPhotoCapturedEventArgs::CaptureTimeOffset() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_CaptureTimeOffset(put(value))); - return value; -} - -template Windows::Media::Capture::CapturedFrame impl_ICapturedPhoto::Frame() const -{ - Windows::Media::Capture::CapturedFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Frame(put(value))); - return value; -} - -template Windows::Media::Capture::CapturedFrame impl_ICapturedPhoto::Thumbnail() const -{ - Windows::Media::Capture::CapturedFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template uint32_t impl_ICapturedFrame::Width() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(&value)); - return value; -} - -template uint32_t impl_ICapturedFrame::Height() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(&value)); - return value; -} - -template Windows::Graphics::Imaging::SoftwareBitmap impl_ICapturedFrameWithSoftwareBitmap::SoftwareBitmap() const -{ - Windows::Graphics::Imaging::SoftwareBitmap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SoftwareBitmap(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCaptureVideoPreview::StartPreviewAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_StartPreviewAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCaptureVideoPreview::StartPreviewToCustomSinkAsync(const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile, const Windows::Media::IMediaExtension & customMediaSink) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_StartPreviewToCustomSinkAsync(get(encodingProfile), get(customMediaSink), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCaptureVideoPreview::StartPreviewToCustomSinkAsync(const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile, hstring_ref customSinkActivationId, const Windows::Foundation::Collections::IPropertySet & customSinkSettings) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_StartPreviewToCustomSinkIdAsync(get(encodingProfile), get(customSinkActivationId), get(customSinkSettings), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IMediaCaptureVideoPreview::StopPreviewAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_StopPreviewAsync(put(asyncInfo))); - return asyncInfo; -} - -template hstring impl_IMediaCaptureSettings::AudioDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AudioDeviceId(put(value))); - return value; -} - -template hstring impl_IMediaCaptureSettings::VideoDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VideoDeviceId(put(value))); - return value; -} - -template Windows::Media::Capture::StreamingCaptureMode impl_IMediaCaptureSettings::StreamingCaptureMode() const -{ - Windows::Media::Capture::StreamingCaptureMode value {}; - check_hresult(static_cast(static_cast(*this))->get_StreamingCaptureMode(&value)); - return value; -} - -template Windows::Media::Capture::PhotoCaptureSource impl_IMediaCaptureSettings::PhotoCaptureSource() const -{ - Windows::Media::Capture::PhotoCaptureSource value {}; - check_hresult(static_cast(static_cast(*this))->get_PhotoCaptureSource(&value)); - return value; -} - -template Windows::Media::Capture::VideoDeviceCharacteristic impl_IMediaCaptureSettings::VideoDeviceCharacteristic() const -{ - Windows::Media::Capture::VideoDeviceCharacteristic value {}; - check_hresult(static_cast(static_cast(*this))->get_VideoDeviceCharacteristic(&value)); - return value; -} - -template bool impl_IMediaCaptureSettings2::ConcurrentRecordAndPhotoSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ConcurrentRecordAndPhotoSupported(&value)); - return value; -} - -template bool impl_IMediaCaptureSettings2::ConcurrentRecordAndPhotoSequenceSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ConcurrentRecordAndPhotoSequenceSupported(&value)); - return value; -} - -template bool impl_IMediaCaptureSettings2::CameraSoundRequiredForRegion() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CameraSoundRequiredForRegion(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IMediaCaptureSettings2::Horizontal35mmEquivalentFocalLength() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Horizontal35mmEquivalentFocalLength(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IMediaCaptureSettings2::PitchOffsetDegrees() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_PitchOffsetDegrees(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IMediaCaptureSettings2::Vertical35mmEquivalentFocalLength() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Vertical35mmEquivalentFocalLength(put(value))); - return value; -} - -template Windows::Media::Capture::MediaCategory impl_IMediaCaptureSettings2::MediaCategory() const -{ - Windows::Media::Capture::MediaCategory value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaCategory(&value)); - return value; -} - -template Windows::Media::AudioProcessing impl_IMediaCaptureSettings2::AudioProcessing() const -{ - Windows::Media::AudioProcessing value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioProcessing(&value)); - return value; -} - -template Windows::Media::Devices::MediaCaptureFocusState impl_IMediaCaptureFocusChangedEventArgs::FocusState() const -{ - Windows::Media::Devices::MediaCaptureFocusState value {}; - check_hresult(static_cast(static_cast(*this))->get_FocusState(&value)); - return value; -} - -template Windows::Media::Capture::CapturedFrame impl_IPhotoConfirmationCapturedEventArgs::Frame() const -{ - Windows::Media::Capture::CapturedFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Frame(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IPhotoConfirmationCapturedEventArgs::CaptureTimeOffset() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_CaptureTimeOffset(put(value))); - return value; -} - -template Windows::Media::MediaProperties::VideoEncodingProperties impl_IVideoStreamConfiguration::InputProperties() const -{ - Windows::Media::MediaProperties::VideoEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputProperties(put(value))); - return value; -} - -template Windows::Media::MediaProperties::VideoEncodingProperties impl_IVideoStreamConfiguration::OutputProperties() const -{ - Windows::Media::MediaProperties::VideoEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OutputProperties(put(value))); - return value; -} - -template Windows::Media::Capture::AppCaptureSettings impl_IAppCaptureManagerStatics::GetCurrentSettings() const -{ - Windows::Media::Capture::AppCaptureSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentSettings(put(value))); - return value; -} - -template void impl_IAppCaptureManagerStatics::ApplySettings(const Windows::Media::Capture::AppCaptureSettings & appCaptureSettings) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ApplySettings(get(appCaptureSettings))); -} - -template void impl_IAppCaptureAlternateShortcutKeys::ToggleGameBarKey(Windows::System::VirtualKey value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleGameBarKey(value)); -} - -template Windows::System::VirtualKey impl_IAppCaptureAlternateShortcutKeys::ToggleGameBarKey() const -{ - Windows::System::VirtualKey value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleGameBarKey(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys::ToggleGameBarKeyModifiers(Windows::System::VirtualKeyModifiers value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleGameBarKeyModifiers(value)); -} - -template Windows::System::VirtualKeyModifiers impl_IAppCaptureAlternateShortcutKeys::ToggleGameBarKeyModifiers() const -{ - Windows::System::VirtualKeyModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleGameBarKeyModifiers(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys::SaveHistoricalVideoKey(Windows::System::VirtualKey value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SaveHistoricalVideoKey(value)); -} - -template Windows::System::VirtualKey impl_IAppCaptureAlternateShortcutKeys::SaveHistoricalVideoKey() const -{ - Windows::System::VirtualKey value {}; - check_hresult(static_cast(static_cast(*this))->get_SaveHistoricalVideoKey(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys::SaveHistoricalVideoKeyModifiers(Windows::System::VirtualKeyModifiers value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SaveHistoricalVideoKeyModifiers(value)); -} - -template Windows::System::VirtualKeyModifiers impl_IAppCaptureAlternateShortcutKeys::SaveHistoricalVideoKeyModifiers() const -{ - Windows::System::VirtualKeyModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_SaveHistoricalVideoKeyModifiers(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys::ToggleRecordingKey(Windows::System::VirtualKey value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleRecordingKey(value)); -} - -template Windows::System::VirtualKey impl_IAppCaptureAlternateShortcutKeys::ToggleRecordingKey() const -{ - Windows::System::VirtualKey value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleRecordingKey(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys::ToggleRecordingKeyModifiers(Windows::System::VirtualKeyModifiers value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleRecordingKeyModifiers(value)); -} - -template Windows::System::VirtualKeyModifiers impl_IAppCaptureAlternateShortcutKeys::ToggleRecordingKeyModifiers() const -{ - Windows::System::VirtualKeyModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleRecordingKeyModifiers(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys::TakeScreenshotKey(Windows::System::VirtualKey value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TakeScreenshotKey(value)); -} - -template Windows::System::VirtualKey impl_IAppCaptureAlternateShortcutKeys::TakeScreenshotKey() const -{ - Windows::System::VirtualKey value {}; - check_hresult(static_cast(static_cast(*this))->get_TakeScreenshotKey(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys::TakeScreenshotKeyModifiers(Windows::System::VirtualKeyModifiers value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TakeScreenshotKeyModifiers(value)); -} - -template Windows::System::VirtualKeyModifiers impl_IAppCaptureAlternateShortcutKeys::TakeScreenshotKeyModifiers() const -{ - Windows::System::VirtualKeyModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_TakeScreenshotKeyModifiers(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys::ToggleRecordingIndicatorKey(Windows::System::VirtualKey value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleRecordingIndicatorKey(value)); -} - -template Windows::System::VirtualKey impl_IAppCaptureAlternateShortcutKeys::ToggleRecordingIndicatorKey() const -{ - Windows::System::VirtualKey value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleRecordingIndicatorKey(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys::ToggleRecordingIndicatorKeyModifiers(Windows::System::VirtualKeyModifiers value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleRecordingIndicatorKeyModifiers(value)); -} - -template Windows::System::VirtualKeyModifiers impl_IAppCaptureAlternateShortcutKeys::ToggleRecordingIndicatorKeyModifiers() const -{ - Windows::System::VirtualKeyModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleRecordingIndicatorKeyModifiers(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys2::ToggleMicrophoneCaptureKey(Windows::System::VirtualKey value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleMicrophoneCaptureKey(value)); -} - -template Windows::System::VirtualKey impl_IAppCaptureAlternateShortcutKeys2::ToggleMicrophoneCaptureKey() const -{ - Windows::System::VirtualKey value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleMicrophoneCaptureKey(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys2::ToggleMicrophoneCaptureKeyModifiers(Windows::System::VirtualKeyModifiers value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleMicrophoneCaptureKeyModifiers(value)); -} - -template Windows::System::VirtualKeyModifiers impl_IAppCaptureAlternateShortcutKeys2::ToggleMicrophoneCaptureKeyModifiers() const -{ - Windows::System::VirtualKeyModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleMicrophoneCaptureKeyModifiers(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys3::ToggleCameraCaptureKey(Windows::System::VirtualKey value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleCameraCaptureKey(value)); -} - -template Windows::System::VirtualKey impl_IAppCaptureAlternateShortcutKeys3::ToggleCameraCaptureKey() const -{ - Windows::System::VirtualKey value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleCameraCaptureKey(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys3::ToggleCameraCaptureKeyModifiers(Windows::System::VirtualKeyModifiers value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleCameraCaptureKeyModifiers(value)); -} - -template Windows::System::VirtualKeyModifiers impl_IAppCaptureAlternateShortcutKeys3::ToggleCameraCaptureKeyModifiers() const -{ - Windows::System::VirtualKeyModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleCameraCaptureKeyModifiers(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys3::ToggleBroadcastKey(Windows::System::VirtualKey value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleBroadcastKey(value)); -} - -template Windows::System::VirtualKey impl_IAppCaptureAlternateShortcutKeys3::ToggleBroadcastKey() const -{ - Windows::System::VirtualKey value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleBroadcastKey(&value)); - return value; -} - -template void impl_IAppCaptureAlternateShortcutKeys3::ToggleBroadcastKeyModifiers(Windows::System::VirtualKeyModifiers value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ToggleBroadcastKeyModifiers(value)); -} - -template Windows::System::VirtualKeyModifiers impl_IAppCaptureAlternateShortcutKeys3::ToggleBroadcastKeyModifiers() const -{ - Windows::System::VirtualKeyModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleBroadcastKeyModifiers(&value)); - return value; -} - -template void impl_IAppCaptureSettings::AppCaptureDestinationFolder(const Windows::Storage::StorageFolder & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppCaptureDestinationFolder(get(value))); -} - -template Windows::Storage::StorageFolder impl_IAppCaptureSettings::AppCaptureDestinationFolder() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppCaptureDestinationFolder(put(value))); - return value; -} - -template void impl_IAppCaptureSettings::AudioEncodingBitrate(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioEncodingBitrate(value)); -} - -template uint32_t impl_IAppCaptureSettings::AudioEncodingBitrate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioEncodingBitrate(&value)); - return value; -} - -template void impl_IAppCaptureSettings::IsAudioCaptureEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsAudioCaptureEnabled(value)); -} - -template bool impl_IAppCaptureSettings::IsAudioCaptureEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAudioCaptureEnabled(&value)); - return value; -} - -template void impl_IAppCaptureSettings::CustomVideoEncodingBitrate(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CustomVideoEncodingBitrate(value)); -} - -template uint32_t impl_IAppCaptureSettings::CustomVideoEncodingBitrate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CustomVideoEncodingBitrate(&value)); - return value; -} - -template void impl_IAppCaptureSettings::CustomVideoEncodingHeight(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CustomVideoEncodingHeight(value)); -} - -template uint32_t impl_IAppCaptureSettings::CustomVideoEncodingHeight() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CustomVideoEncodingHeight(&value)); - return value; -} - -template void impl_IAppCaptureSettings::CustomVideoEncodingWidth(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CustomVideoEncodingWidth(value)); -} - -template uint32_t impl_IAppCaptureSettings::CustomVideoEncodingWidth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CustomVideoEncodingWidth(&value)); - return value; -} - -template void impl_IAppCaptureSettings::HistoricalBufferLength(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HistoricalBufferLength(value)); -} - -template uint32_t impl_IAppCaptureSettings::HistoricalBufferLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HistoricalBufferLength(&value)); - return value; -} - -template void impl_IAppCaptureSettings::HistoricalBufferLengthUnit(Windows::Media::Capture::AppCaptureHistoricalBufferLengthUnit value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HistoricalBufferLengthUnit(value)); -} - -template Windows::Media::Capture::AppCaptureHistoricalBufferLengthUnit impl_IAppCaptureSettings::HistoricalBufferLengthUnit() const -{ - Windows::Media::Capture::AppCaptureHistoricalBufferLengthUnit value {}; - check_hresult(static_cast(static_cast(*this))->get_HistoricalBufferLengthUnit(&value)); - return value; -} - -template void impl_IAppCaptureSettings::IsHistoricalCaptureEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsHistoricalCaptureEnabled(value)); -} - -template bool impl_IAppCaptureSettings::IsHistoricalCaptureEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsHistoricalCaptureEnabled(&value)); - return value; -} - -template void impl_IAppCaptureSettings::IsHistoricalCaptureOnBatteryAllowed(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsHistoricalCaptureOnBatteryAllowed(value)); -} - -template bool impl_IAppCaptureSettings::IsHistoricalCaptureOnBatteryAllowed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsHistoricalCaptureOnBatteryAllowed(&value)); - return value; -} - -template void impl_IAppCaptureSettings::IsHistoricalCaptureOnWirelessDisplayAllowed(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsHistoricalCaptureOnWirelessDisplayAllowed(value)); -} - -template bool impl_IAppCaptureSettings::IsHistoricalCaptureOnWirelessDisplayAllowed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsHistoricalCaptureOnWirelessDisplayAllowed(&value)); - return value; -} - -template void impl_IAppCaptureSettings::MaximumRecordLength(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaximumRecordLength(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IAppCaptureSettings::MaximumRecordLength() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MaximumRecordLength(put(value))); - return value; -} - -template void impl_IAppCaptureSettings::ScreenshotDestinationFolder(const Windows::Storage::StorageFolder & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScreenshotDestinationFolder(get(value))); -} - -template Windows::Storage::StorageFolder impl_IAppCaptureSettings::ScreenshotDestinationFolder() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ScreenshotDestinationFolder(put(value))); - return value; -} - -template void impl_IAppCaptureSettings::VideoEncodingBitrateMode(Windows::Media::Capture::AppCaptureVideoEncodingBitrateMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VideoEncodingBitrateMode(value)); -} - -template Windows::Media::Capture::AppCaptureVideoEncodingBitrateMode impl_IAppCaptureSettings::VideoEncodingBitrateMode() const -{ - Windows::Media::Capture::AppCaptureVideoEncodingBitrateMode value {}; - check_hresult(static_cast(static_cast(*this))->get_VideoEncodingBitrateMode(&value)); - return value; -} - -template void impl_IAppCaptureSettings::VideoEncodingResolutionMode(Windows::Media::Capture::AppCaptureVideoEncodingResolutionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VideoEncodingResolutionMode(value)); -} - -template Windows::Media::Capture::AppCaptureVideoEncodingResolutionMode impl_IAppCaptureSettings::VideoEncodingResolutionMode() const -{ - Windows::Media::Capture::AppCaptureVideoEncodingResolutionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_VideoEncodingResolutionMode(&value)); - return value; -} - -template void impl_IAppCaptureSettings::IsAppCaptureEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsAppCaptureEnabled(value)); -} - -template bool impl_IAppCaptureSettings::IsAppCaptureEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAppCaptureEnabled(&value)); - return value; -} - -template bool impl_IAppCaptureSettings::IsCpuConstrained() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCpuConstrained(&value)); - return value; -} - -template bool impl_IAppCaptureSettings::IsDisabledByPolicy() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDisabledByPolicy(&value)); - return value; -} - -template bool impl_IAppCaptureSettings::IsMemoryConstrained() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMemoryConstrained(&value)); - return value; -} - -template bool impl_IAppCaptureSettings::HasHardwareEncoder() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasHardwareEncoder(&value)); - return value; -} - -template bool impl_IAppCaptureSettings2::IsGpuConstrained() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsGpuConstrained(&value)); - return value; -} - -template Windows::Media::Capture::AppCaptureAlternateShortcutKeys impl_IAppCaptureSettings2::AlternateShortcutKeys() const -{ - Windows::Media::Capture::AppCaptureAlternateShortcutKeys value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlternateShortcutKeys(put(value))); - return value; -} - -template void impl_IAppCaptureSettings3::IsMicrophoneCaptureEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsMicrophoneCaptureEnabled(value)); -} - -template bool impl_IAppCaptureSettings3::IsMicrophoneCaptureEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMicrophoneCaptureEnabled(&value)); - return value; -} - -template void impl_IAppCaptureSettings4::IsMicrophoneCaptureEnabledByDefault(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsMicrophoneCaptureEnabledByDefault(value)); -} - -template bool impl_IAppCaptureSettings4::IsMicrophoneCaptureEnabledByDefault() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMicrophoneCaptureEnabledByDefault(&value)); - return value; -} - -template void impl_IAppCaptureSettings4::SystemAudioGain(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SystemAudioGain(value)); -} - -template double impl_IAppCaptureSettings4::SystemAudioGain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_SystemAudioGain(&value)); - return value; -} - -template void impl_IAppCaptureSettings4::MicrophoneGain(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MicrophoneGain(value)); -} - -template double impl_IAppCaptureSettings4::MicrophoneGain() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MicrophoneGain(&value)); - return value; -} - -template void impl_IAppCaptureSettings4::VideoEncodingFrameRateMode(Windows::Media::Capture::AppCaptureVideoEncodingFrameRateMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VideoEncodingFrameRateMode(value)); -} - -template Windows::Media::Capture::AppCaptureVideoEncodingFrameRateMode impl_IAppCaptureSettings4::VideoEncodingFrameRateMode() const -{ - Windows::Media::Capture::AppCaptureVideoEncodingFrameRateMode value {}; - check_hresult(static_cast(static_cast(*this))->get_VideoEncodingFrameRateMode(&value)); - return value; -} - -template void impl_ICameraOptionsUIStatics::Show(const Windows::Media::Capture::MediaCapture & mediaCapture) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Show(get(mediaCapture))); -} - -template bool impl_ISourceSuspensionChangedEventArgs::IsAudioSuspended() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAudioSuspended(&value)); - return value; -} - -template bool impl_ISourceSuspensionChangedEventArgs::IsVideoSuspended() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVideoSuspended(&value)); - return value; -} - -template Windows::Media::Core::IMediaSource impl_IScreenCapture::AudioSource() const -{ - Windows::Media::Core::IMediaSource value; - check_hresult(static_cast(static_cast(*this))->get_AudioSource(put(value))); - return value; -} - -template Windows::Media::Core::IMediaSource impl_IScreenCapture::VideoSource() const -{ - Windows::Media::Core::IMediaSource value; - check_hresult(static_cast(static_cast(*this))->get_VideoSource(put(value))); - return value; -} - -template bool impl_IScreenCapture::IsAudioSuspended() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAudioSuspended(&value)); - return value; -} - -template bool impl_IScreenCapture::IsVideoSuspended() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVideoSuspended(&value)); - return value; -} - -template event_token impl_IScreenCapture::SourceSuspensionChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceSuspensionChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IScreenCapture::SourceSuspensionChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Capture::IScreenCapture::remove_SourceSuspensionChanged, SourceSuspensionChanged(handler)); -} - -template void impl_IScreenCapture::SourceSuspensionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceSuspensionChanged(token)); -} - -template Windows::Media::Capture::ScreenCapture impl_IScreenCaptureStatics::GetForCurrentView() const -{ - Windows::Media::Capture::ScreenCapture value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(value))); - return value; -} - -inline Windows::Media::Capture::AppCapture AppCapture::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline Windows::Media::Capture::AppCaptureSettings AppCaptureManager::GetCurrentSettings() -{ - return get_activation_factory().GetCurrentSettings(); -} - -inline void AppCaptureManager::ApplySettings(const Windows::Media::Capture::AppCaptureSettings & appCaptureSettings) -{ - get_activation_factory().ApplySettings(appCaptureSettings); -} - -inline CameraCaptureUI::CameraCaptureUI() : - CameraCaptureUI(activate_instance()) -{} - -inline void CameraOptionsUI::Show(const Windows::Media::Capture::MediaCapture & mediaCapture) -{ - get_activation_factory().Show(mediaCapture); -} - -inline MediaCapture::MediaCapture() : - MediaCapture(activate_instance()) -{} - -inline bool MediaCapture::IsVideoProfileSupported(hstring_ref videoDeviceId) -{ - return get_activation_factory().IsVideoProfileSupported(videoDeviceId); -} - -inline Windows::Foundation::Collections::IVectorView MediaCapture::FindAllVideoProfiles(hstring_ref videoDeviceId) -{ - return get_activation_factory().FindAllVideoProfiles(videoDeviceId); -} - -inline Windows::Foundation::Collections::IVectorView MediaCapture::FindConcurrentProfiles(hstring_ref videoDeviceId) -{ - return get_activation_factory().FindConcurrentProfiles(videoDeviceId); -} - -inline Windows::Foundation::Collections::IVectorView MediaCapture::FindKnownVideoProfiles(hstring_ref videoDeviceId, Windows::Media::Capture::KnownVideoProfile name) -{ - return get_activation_factory().FindKnownVideoProfiles(videoDeviceId, name); -} - -inline MediaCaptureInitializationSettings::MediaCaptureInitializationSettings() : - MediaCaptureInitializationSettings(activate_instance()) -{} - -inline Windows::Media::Capture::ScreenCapture ScreenCapture::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Casting.h b/10.0.14393.0/winrt/Windows.Media.Casting.h deleted file mode 100644 index 4754f2fe7..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Casting.h +++ /dev/null @@ -1,896 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Popups.3.h" -#include "internal/Windows.Media.Casting.3.h" -#include "Windows.Media.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_State(Windows::Media::Casting::CastingConnectionState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Device(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Device()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Source(abi_arg_in value) noexcept override - { - try - { - this->shim().Source(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StateChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StateChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StateChanged(event_token token) noexcept override - { - try - { - this->shim().StateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ErrorOccurred(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ErrorOccurred(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ErrorOccurred(event_token token) noexcept override - { - try - { - this->shim().ErrorOccurred(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestStartCastingAsync(abi_arg_in value, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestStartCastingAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisconnectAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().DisconnectAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ErrorStatus(Windows::Media::Casting::CastingConnectionErrorStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Icon(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Icon()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSupportedCastingPlaybackTypesAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetSupportedCastingPlaybackTypesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCastingConnection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateCastingConnection()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Filter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Filter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Appearance(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Appearance()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CastingDeviceSelected(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CastingDeviceSelected(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CastingDeviceSelected(event_token token) noexcept override - { - try - { - this->shim().CastingDeviceSelected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CastingDevicePickerDismissed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CastingDevicePickerDismissed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CastingDevicePickerDismissed(event_token token) noexcept override - { - try - { - this->shim().CastingDevicePickerDismissed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Show(abi_arg_in selection) noexcept override - { - try - { - this->shim().Show(*reinterpret_cast(&selection)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowWithPlacement(abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement) noexcept override - { - try - { - this->shim().Show(*reinterpret_cast(&selection), preferredPlacement); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Hide() noexcept override - { - try - { - this->shim().Hide(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SupportsAudio(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsAudio()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SupportsAudio(bool value) noexcept override - { - try - { - this->shim().SupportsAudio(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportsVideo(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsVideo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SupportsVideo(bool value) noexcept override - { - try - { - this->shim().SupportsVideo(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportsPictures(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsPictures()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SupportsPictures(bool value) noexcept override - { - try - { - this->shim().SupportsPictures(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedCastingSources(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedCastingSources()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedCastingDevice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedCastingDevice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(Windows::Media::Casting::CastingPlaybackTypes type, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector(type)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelectorFromCastingSourceAsync(abi_arg_in castingSource, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDeviceSelectorFromCastingSourceAsync(*reinterpret_cast(&castingSource))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in value, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeviceInfoSupportsCastingAsync(abi_arg_in device, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().DeviceInfoSupportsCastingAsync(*reinterpret_cast(&device))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PreferredSourceUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreferredSourceUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreferredSourceUri(abi_arg_in value) noexcept override - { - try - { - this->shim().PreferredSourceUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Casting { - -template Windows::Foundation::Uri impl_ICastingSource::PreferredSourceUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PreferredSourceUri(put(value))); - return value; -} - -template void impl_ICastingSource::PreferredSourceUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreferredSourceUri(get(value))); -} - -template Windows::Media::Casting::CastingConnectionErrorStatus impl_ICastingConnectionErrorOccurredEventArgs::ErrorStatus() const -{ - Windows::Media::Casting::CastingConnectionErrorStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorStatus(&value)); - return value; -} - -template hstring impl_ICastingConnectionErrorOccurredEventArgs::Message() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template Windows::Media::Casting::CastingConnectionState impl_ICastingConnection::State() const -{ - Windows::Media::Casting::CastingConnectionState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template Windows::Media::Casting::CastingDevice impl_ICastingConnection::Device() const -{ - Windows::Media::Casting::CastingDevice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Device(put(value))); - return value; -} - -template Windows::Media::Casting::CastingSource impl_ICastingConnection::Source() const -{ - Windows::Media::Casting::CastingSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template void impl_ICastingConnection::Source(const Windows::Media::Casting::CastingSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Source(get(value))); -} - -template event_token impl_ICastingConnection::StateChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StateChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ICastingConnection::StateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Casting::ICastingConnection::remove_StateChanged, StateChanged(handler)); -} - -template void impl_ICastingConnection::StateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StateChanged(token)); -} - -template event_token impl_ICastingConnection::ErrorOccurred(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ErrorOccurred(get(handler), &token)); - return token; -} - -template event_revoker impl_ICastingConnection::ErrorOccurred(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Casting::ICastingConnection::remove_ErrorOccurred, ErrorOccurred(handler)); -} - -template void impl_ICastingConnection::ErrorOccurred(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ErrorOccurred(token)); -} - -template Windows::Foundation::IAsyncOperation impl_ICastingConnection::RequestStartCastingAsync(const Windows::Media::Casting::CastingSource & value) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestStartCastingAsync(get(value), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ICastingConnection::DisconnectAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_DisconnectAsync(put(operation))); - return operation; -} - -template hstring impl_ICastingDevice::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_ICastingDevice::FriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FriendlyName(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamWithContentType impl_ICastingDevice::Icon() const -{ - Windows::Storage::Streams::IRandomAccessStreamWithContentType value; - check_hresult(static_cast(static_cast(*this))->get_Icon(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICastingDevice::GetSupportedCastingPlaybackTypesAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetSupportedCastingPlaybackTypesAsync(put(operation))); - return operation; -} - -template Windows::Media::Casting::CastingConnection impl_ICastingDevice::CreateCastingConnection() const -{ - Windows::Media::Casting::CastingConnection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCastingConnection(put(value))); - return value; -} - -template hstring impl_ICastingDeviceStatics::GetDeviceSelector(Windows::Media::Casting::CastingPlaybackTypes type) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(type, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICastingDeviceStatics::GetDeviceSelectorFromCastingSourceAsync(const Windows::Media::Casting::CastingSource & castingSource) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelectorFromCastingSourceAsync(get(castingSource), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ICastingDeviceStatics::FromIdAsync(hstring_ref value) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(value), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ICastingDeviceStatics::DeviceInfoSupportsCastingAsync(const Windows::Devices::Enumeration::DeviceInformation & device) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_DeviceInfoSupportsCastingAsync(get(device), put(operation))); - return operation; -} - -template Windows::Media::Casting::CastingDevice impl_ICastingDeviceSelectedEventArgs::SelectedCastingDevice() const -{ - Windows::Media::Casting::CastingDevice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedCastingDevice(put(value))); - return value; -} - -template bool impl_ICastingDevicePickerFilter::SupportsAudio() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsAudio(&value)); - return value; -} - -template void impl_ICastingDevicePickerFilter::SupportsAudio(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SupportsAudio(value)); -} - -template bool impl_ICastingDevicePickerFilter::SupportsVideo() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsVideo(&value)); - return value; -} - -template void impl_ICastingDevicePickerFilter::SupportsVideo(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SupportsVideo(value)); -} - -template bool impl_ICastingDevicePickerFilter::SupportsPictures() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsPictures(&value)); - return value; -} - -template void impl_ICastingDevicePickerFilter::SupportsPictures(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SupportsPictures(value)); -} - -template Windows::Foundation::Collections::IVector impl_ICastingDevicePickerFilter::SupportedCastingSources() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SupportedCastingSources(put(value))); - return value; -} - -template Windows::Media::Casting::CastingDevicePickerFilter impl_ICastingDevicePicker::Filter() const -{ - Windows::Media::Casting::CastingDevicePickerFilter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Filter(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DevicePickerAppearance impl_ICastingDevicePicker::Appearance() const -{ - Windows::Devices::Enumeration::DevicePickerAppearance value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Appearance(put(value))); - return value; -} - -template event_token impl_ICastingDevicePicker::CastingDeviceSelected(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CastingDeviceSelected(get(handler), &token)); - return token; -} - -template event_revoker impl_ICastingDevicePicker::CastingDeviceSelected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Casting::ICastingDevicePicker::remove_CastingDeviceSelected, CastingDeviceSelected(handler)); -} - -template void impl_ICastingDevicePicker::CastingDeviceSelected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CastingDeviceSelected(token)); -} - -template event_token impl_ICastingDevicePicker::CastingDevicePickerDismissed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CastingDevicePickerDismissed(get(handler), &token)); - return token; -} - -template event_revoker impl_ICastingDevicePicker::CastingDevicePickerDismissed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Casting::ICastingDevicePicker::remove_CastingDevicePickerDismissed, CastingDevicePickerDismissed(handler)); -} - -template void impl_ICastingDevicePicker::CastingDevicePickerDismissed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CastingDevicePickerDismissed(token)); -} - -template void impl_ICastingDevicePicker::Show(const Windows::Foundation::Rect & selection) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Show(get(selection))); -} - -template void impl_ICastingDevicePicker::Show(const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowWithPlacement(get(selection), preferredPlacement)); -} - -template void impl_ICastingDevicePicker::Hide() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Hide()); -} - -inline hstring CastingDevice::GetDeviceSelector(Windows::Media::Casting::CastingPlaybackTypes type) -{ - return get_activation_factory().GetDeviceSelector(type); -} - -inline Windows::Foundation::IAsyncOperation CastingDevice::GetDeviceSelectorFromCastingSourceAsync(const Windows::Media::Casting::CastingSource & castingSource) -{ - return get_activation_factory().GetDeviceSelectorFromCastingSourceAsync(castingSource); -} - -inline Windows::Foundation::IAsyncOperation CastingDevice::FromIdAsync(hstring_ref value) -{ - return get_activation_factory().FromIdAsync(value); -} - -inline Windows::Foundation::IAsyncOperation CastingDevice::DeviceInfoSupportsCastingAsync(const Windows::Devices::Enumeration::DeviceInformation & device) -{ - return get_activation_factory().DeviceInfoSupportsCastingAsync(device); -} - -inline CastingDevicePicker::CastingDevicePicker() : - CastingDevicePicker(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.ClosedCaptioning.h b/10.0.14393.0/winrt/Windows.Media.ClosedCaptioning.h deleted file mode 100644 index 0b9e4e84a..000000000 --- a/10.0.14393.0/winrt/Windows.Media.ClosedCaptioning.h +++ /dev/null @@ -1,324 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Media.ClosedCaptioning.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FontColor(Windows::Media::ClosedCaptioning::ClosedCaptionColor * value) noexcept override - { - try - { - *value = detach(this->shim().FontColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ComputedFontColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ComputedFontColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontOpacity(Windows::Media::ClosedCaptioning::ClosedCaptionOpacity * value) noexcept override - { - try - { - *value = detach(this->shim().FontOpacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontSize(Windows::Media::ClosedCaptioning::ClosedCaptionSize * value) noexcept override - { - try - { - *value = detach(this->shim().FontSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyle(Windows::Media::ClosedCaptioning::ClosedCaptionStyle * value) noexcept override - { - try - { - *value = detach(this->shim().FontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontEffect(Windows::Media::ClosedCaptioning::ClosedCaptionEdgeEffect * value) noexcept override - { - try - { - *value = detach(this->shim().FontEffect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(Windows::Media::ClosedCaptioning::ClosedCaptionColor * value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ComputedBackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ComputedBackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundOpacity(Windows::Media::ClosedCaptioning::ClosedCaptionOpacity * value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundOpacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RegionColor(Windows::Media::ClosedCaptioning::ClosedCaptionColor * value) noexcept override - { - try - { - *value = detach(this->shim().RegionColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ComputedRegionColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ComputedRegionColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RegionOpacity(Windows::Media::ClosedCaptioning::ClosedCaptionOpacity * value) noexcept override - { - try - { - *value = detach(this->shim().RegionOpacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::ClosedCaptioning { - -template Windows::Media::ClosedCaptioning::ClosedCaptionColor impl_IClosedCaptionPropertiesStatics::FontColor() const -{ - Windows::Media::ClosedCaptioning::ClosedCaptionColor value {}; - check_hresult(static_cast(static_cast(*this))->get_FontColor(&value)); - return value; -} - -template Windows::UI::Color impl_IClosedCaptionPropertiesStatics::ComputedFontColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_ComputedFontColor(put(value))); - return value; -} - -template Windows::Media::ClosedCaptioning::ClosedCaptionOpacity impl_IClosedCaptionPropertiesStatics::FontOpacity() const -{ - Windows::Media::ClosedCaptioning::ClosedCaptionOpacity value {}; - check_hresult(static_cast(static_cast(*this))->get_FontOpacity(&value)); - return value; -} - -template Windows::Media::ClosedCaptioning::ClosedCaptionSize impl_IClosedCaptionPropertiesStatics::FontSize() const -{ - Windows::Media::ClosedCaptioning::ClosedCaptionSize value {}; - check_hresult(static_cast(static_cast(*this))->get_FontSize(&value)); - return value; -} - -template Windows::Media::ClosedCaptioning::ClosedCaptionStyle impl_IClosedCaptionPropertiesStatics::FontStyle() const -{ - Windows::Media::ClosedCaptioning::ClosedCaptionStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_FontStyle(&value)); - return value; -} - -template Windows::Media::ClosedCaptioning::ClosedCaptionEdgeEffect impl_IClosedCaptionPropertiesStatics::FontEffect() const -{ - Windows::Media::ClosedCaptioning::ClosedCaptionEdgeEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_FontEffect(&value)); - return value; -} - -template Windows::Media::ClosedCaptioning::ClosedCaptionColor impl_IClosedCaptionPropertiesStatics::BackgroundColor() const -{ - Windows::Media::ClosedCaptioning::ClosedCaptionColor value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(&value)); - return value; -} - -template Windows::UI::Color impl_IClosedCaptionPropertiesStatics::ComputedBackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_ComputedBackgroundColor(put(value))); - return value; -} - -template Windows::Media::ClosedCaptioning::ClosedCaptionOpacity impl_IClosedCaptionPropertiesStatics::BackgroundOpacity() const -{ - Windows::Media::ClosedCaptioning::ClosedCaptionOpacity value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundOpacity(&value)); - return value; -} - -template Windows::Media::ClosedCaptioning::ClosedCaptionColor impl_IClosedCaptionPropertiesStatics::RegionColor() const -{ - Windows::Media::ClosedCaptioning::ClosedCaptionColor value {}; - check_hresult(static_cast(static_cast(*this))->get_RegionColor(&value)); - return value; -} - -template Windows::UI::Color impl_IClosedCaptionPropertiesStatics::ComputedRegionColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_ComputedRegionColor(put(value))); - return value; -} - -template Windows::Media::ClosedCaptioning::ClosedCaptionOpacity impl_IClosedCaptionPropertiesStatics::RegionOpacity() const -{ - Windows::Media::ClosedCaptioning::ClosedCaptionOpacity value {}; - check_hresult(static_cast(static_cast(*this))->get_RegionOpacity(&value)); - return value; -} - -inline Windows::Media::ClosedCaptioning::ClosedCaptionColor ClosedCaptionProperties::FontColor() -{ - return get_activation_factory().FontColor(); -} - -inline Windows::UI::Color ClosedCaptionProperties::ComputedFontColor() -{ - return get_activation_factory().ComputedFontColor(); -} - -inline Windows::Media::ClosedCaptioning::ClosedCaptionOpacity ClosedCaptionProperties::FontOpacity() -{ - return get_activation_factory().FontOpacity(); -} - -inline Windows::Media::ClosedCaptioning::ClosedCaptionSize ClosedCaptionProperties::FontSize() -{ - return get_activation_factory().FontSize(); -} - -inline Windows::Media::ClosedCaptioning::ClosedCaptionStyle ClosedCaptionProperties::FontStyle() -{ - return get_activation_factory().FontStyle(); -} - -inline Windows::Media::ClosedCaptioning::ClosedCaptionEdgeEffect ClosedCaptionProperties::FontEffect() -{ - return get_activation_factory().FontEffect(); -} - -inline Windows::Media::ClosedCaptioning::ClosedCaptionColor ClosedCaptionProperties::BackgroundColor() -{ - return get_activation_factory().BackgroundColor(); -} - -inline Windows::UI::Color ClosedCaptionProperties::ComputedBackgroundColor() -{ - return get_activation_factory().ComputedBackgroundColor(); -} - -inline Windows::Media::ClosedCaptioning::ClosedCaptionOpacity ClosedCaptionProperties::BackgroundOpacity() -{ - return get_activation_factory().BackgroundOpacity(); -} - -inline Windows::Media::ClosedCaptioning::ClosedCaptionColor ClosedCaptionProperties::RegionColor() -{ - return get_activation_factory().RegionColor(); -} - -inline Windows::UI::Color ClosedCaptionProperties::ComputedRegionColor() -{ - return get_activation_factory().ComputedRegionColor(); -} - -inline Windows::Media::ClosedCaptioning::ClosedCaptionOpacity ClosedCaptionProperties::RegionOpacity() -{ - return get_activation_factory().RegionOpacity(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.ContentRestrictions.h b/10.0.14393.0/winrt/Windows.Media.ContentRestrictions.h deleted file mode 100644 index 8f8cedf44..000000000 --- a/10.0.14393.0/winrt/Windows.Media.ContentRestrictions.h +++ /dev/null @@ -1,459 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Media.ContentRestrictions.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GeographicRegion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GeographicRegion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxBrowsableAgeRating(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxBrowsableAgeRating()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreferredAgeRating(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PreferredAgeRating()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Id(abi_arg_in value) noexcept override - { - try - { - this->shim().Id(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Image(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Image()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Image(abi_arg_in value) noexcept override - { - try - { - this->shim().Image(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Category(Windows::Media::ContentRestrictions::RatedContentCategory * value) noexcept override - { - try - { - *value = detach(this->shim().Category()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Category(Windows::Media::ContentRestrictions::RatedContentCategory value) noexcept override - { - try - { - this->shim().Category(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ratings(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Ratings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Ratings(abi_arg_in> value) noexcept override - { - try - { - this->shim().Ratings(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in id, abi_arg_in title, Windows::Media::ContentRestrictions::RatedContentCategory category, abi_arg_out RatedContentDescription) noexcept override - { - try - { - *RatedContentDescription = detach(this->shim().Create(*reinterpret_cast(&id), *reinterpret_cast(&title), category)); - return S_OK; - } - catch (...) - { - *RatedContentDescription = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetBrowsePolicyAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetBrowsePolicyAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRestrictionLevelAsync(abi_arg_in RatedContentDescription, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetRestrictionLevelAsync(*reinterpret_cast(&RatedContentDescription))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestContentAccessAsync(abi_arg_in RatedContentDescription, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestContentAccessAsync(*reinterpret_cast(&RatedContentDescription))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RestrictionsChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RestrictionsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RestrictionsChanged(event_token token) noexcept override - { - try - { - this->shim().RestrictionsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithMaxAgeRating(uint32_t maxAgeRating, abi_arg_out ratedContentRestrictions) noexcept override - { - try - { - *ratedContentRestrictions = detach(this->shim().CreateWithMaxAgeRating(maxAgeRating)); - return S_OK; - } - catch (...) - { - *ratedContentRestrictions = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::ContentRestrictions { - -template hstring impl_IRatedContentDescription::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template void impl_IRatedContentDescription::Id(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Id(get(value))); -} - -template hstring impl_IRatedContentDescription::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IRatedContentDescription::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IRatedContentDescription::Image() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Image(put(value))); - return value; -} - -template void impl_IRatedContentDescription::Image(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Image(get(value))); -} - -template Windows::Media::ContentRestrictions::RatedContentCategory impl_IRatedContentDescription::Category() const -{ - Windows::Media::ContentRestrictions::RatedContentCategory value {}; - check_hresult(static_cast(static_cast(*this))->get_Category(&value)); - return value; -} - -template void impl_IRatedContentDescription::Category(Windows::Media::ContentRestrictions::RatedContentCategory value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Category(value)); -} - -template Windows::Foundation::Collections::IVector impl_IRatedContentDescription::Ratings() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Ratings(put(value))); - return value; -} - -template void impl_IRatedContentDescription::Ratings(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Ratings(get(value))); -} - -template Windows::Media::ContentRestrictions::RatedContentDescription impl_IRatedContentDescriptionFactory::Create(hstring_ref id, hstring_ref title, Windows::Media::ContentRestrictions::RatedContentCategory category) const -{ - Windows::Media::ContentRestrictions::RatedContentDescription RatedContentDescription { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(id), get(title), category, put(RatedContentDescription))); - return RatedContentDescription; -} - -template hstring impl_IContentRestrictionsBrowsePolicy::GeographicRegion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GeographicRegion(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IContentRestrictionsBrowsePolicy::MaxBrowsableAgeRating() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxBrowsableAgeRating(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IContentRestrictionsBrowsePolicy::PreferredAgeRating() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_PreferredAgeRating(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IRatedContentRestrictions::GetBrowsePolicyAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetBrowsePolicyAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IRatedContentRestrictions::GetRestrictionLevelAsync(const Windows::Media::ContentRestrictions::RatedContentDescription & RatedContentDescription) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetRestrictionLevelAsync(get(RatedContentDescription), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IRatedContentRestrictions::RequestContentAccessAsync(const Windows::Media::ContentRestrictions::RatedContentDescription & RatedContentDescription) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestContentAccessAsync(get(RatedContentDescription), put(operation))); - return operation; -} - -template event_token impl_IRatedContentRestrictions::RestrictionsChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RestrictionsChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IRatedContentRestrictions::RestrictionsChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::ContentRestrictions::IRatedContentRestrictions::remove_RestrictionsChanged, RestrictionsChanged(handler)); -} - -template void impl_IRatedContentRestrictions::RestrictionsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RestrictionsChanged(token)); -} - -template Windows::Media::ContentRestrictions::RatedContentRestrictions impl_IRatedContentRestrictionsFactory::CreateWithMaxAgeRating(uint32_t maxAgeRating) const -{ - Windows::Media::ContentRestrictions::RatedContentRestrictions ratedContentRestrictions { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithMaxAgeRating(maxAgeRating, put(ratedContentRestrictions))); - return ratedContentRestrictions; -} - -inline RatedContentDescription::RatedContentDescription(hstring_ref id, hstring_ref title, Windows::Media::ContentRestrictions::RatedContentCategory category) : - RatedContentDescription(get_activation_factory().Create(id, title, category)) -{} - -inline RatedContentRestrictions::RatedContentRestrictions() : - RatedContentRestrictions(activate_instance()) -{} - -inline RatedContentRestrictions::RatedContentRestrictions(uint32_t maxAgeRating) : - RatedContentRestrictions(get_activation_factory().CreateWithMaxAgeRating(maxAgeRating)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Core.h b/10.0.14393.0/winrt/Windows.Media.Core.h deleted file mode 100644 index 723f927ba..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Core.h +++ /dev/null @@ -1,6928 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Media.MediaProperties.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Media.Protection.3.h" -#include "internal/Windows.Storage.FileProperties.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.Capture.3.h" -#include "internal/Windows.Media.Devices.3.h" -#include "internal/Windows.Media.Streaming.Adaptive.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Media.Playback.3.h" -#include "internal/Windows.Media.Core.3.h" -#include "Windows.Media.h" -#include "Windows.Foundation.h" -#include "Windows.Foundation.Collections.h" -#include "Windows.Media.Effects.h" -#include "Windows.Media.Playback.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EncodingProperties(abi_arg_out encodingProperties) noexcept override - { - try - { - *encodingProperties = detach(this->shim().EncodingProperties()); - return S_OK; - } - catch (...) - { - *encodingProperties = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_LeadingEncoderPadding(abi_arg_in> value) noexcept override - { - try - { - this->shim().LeadingEncoderPadding(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LeadingEncoderPadding(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LeadingEncoderPadding()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TrailingEncoderPadding(abi_arg_in> value) noexcept override - { - try - { - this->shim().TrailingEncoderPadding(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrailingEncoderPadding(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TrailingEncoderPadding()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in encodingProperties, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&encodingProperties))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_OpenFailed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().OpenFailed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_OpenFailed(event_token token) noexcept override - { - try - { - this->shim().OpenFailed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEncodingProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetEncodingProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SupportInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DecoderStatus(Windows::Media::Core::MediaDecoderStatus * value) noexcept override - { - try - { - *value = detach(this->shim().DecoderStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Degradation(Windows::Media::Core::AudioDecoderDegradation * value) noexcept override - { - try - { - *value = detach(this->shim().Degradation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DegradationReason(Windows::Media::Core::AudioDecoderDegradationReason * value) noexcept override - { - try - { - *value = detach(this->shim().DegradationReason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaSourceStatus(Windows::Media::Core::MediaSourceStatus * value) noexcept override - { - try - { - *value = detach(this->shim().MediaSourceStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Data(abi_arg_in value) noexcept override - { - try - { - this->shim().Data(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResultFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResultFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Enabled(bool value) noexcept override - { - try - { - this->shim().Enabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredDetectionInterval(abi_arg_in value) noexcept override - { - try - { - this->shim().DesiredDetectionInterval(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredDetectionInterval(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DesiredDetectionInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FaceDetected(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().FaceDetected(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FaceDetected(event_token cookie) noexcept override - { - try - { - this->shim().FaceDetected(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_DetectionMode(Windows::Media::Core::FaceDetectionMode value) noexcept override - { - try - { - this->shim().DetectionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DetectionMode(Windows::Media::Core::FaceDetectionMode * value) noexcept override - { - try - { - *value = detach(this->shim().DetectionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SynchronousDetectionEnabled(bool value) noexcept override - { - try - { - this->shim().SynchronousDetectionEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SynchronousDetectionEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SynchronousDetectionEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DetectedFaces(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DetectedFaces()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Enabled(bool value) noexcept override - { - try - { - this->shim().Enabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Certainty(double * value) noexcept override - { - try - { - *value = detach(this->shim().Certainty()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameControllers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FrameControllers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Binding(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Binding(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Binding(event_token token) noexcept override - { - try - { - this->shim().Binding(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Token(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Token()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Token(abi_arg_in value) noexcept override - { - try - { - this->shim().Token(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Canceled(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Canceled(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Canceled(event_token token) noexcept override - { - try - { - this->shim().Canceled(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaBinder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaBinder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetUri(abi_arg_in uri) noexcept override - { - try - { - this->shim().SetUri(*reinterpret_cast(&uri)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetStream(abi_arg_in stream, abi_arg_in contentType) noexcept override - { - try - { - this->shim().SetStream(*reinterpret_cast(&stream), *reinterpret_cast(&contentType)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetStreamReference(abi_arg_in stream, abi_arg_in contentType) noexcept override - { - try - { - this->shim().SetStreamReference(*reinterpret_cast(&stream), *reinterpret_cast(&contentType)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_StartTime(abi_arg_in value) noexcept override - { - try - { - this->shim().StartTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Duration(abi_arg_in value) noexcept override - { - try - { - this->shim().Duration(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Id(abi_arg_in value) noexcept override - { - try - { - this->shim().Id(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Cue(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Cue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_OpenOperationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().OpenOperationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_OpenOperationCompleted(event_token token) noexcept override - { - try - { - this->shim().OpenOperationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExternalTimedTextSources(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExternalTimedTextSources()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExternalTimedMetadataTracks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExternalTimedMetadataTracks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_StateChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StateChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StateChanged(event_token token) noexcept override - { - try - { - this->shim().StateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(Windows::Media::Core::MediaSourceState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Reset() noexcept override - { - try - { - this->shim().Reset(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Error(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OldState(Windows::Media::Core::MediaSourceState * value) noexcept override - { - try - { - *value = detach(this->shim().OldState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewState(Windows::Media::Core::MediaSourceState * value) noexcept override - { - try - { - *value = detach(this->shim().NewState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromAdaptiveMediaSource(abi_arg_in mediaSource, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromAdaptiveMediaSource(*reinterpret_cast(&mediaSource))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromMediaStreamSource(abi_arg_in mediaSource, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromMediaStreamSource(*reinterpret_cast(&mediaSource))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromMseStreamSource(abi_arg_in mediaSource, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromMseStreamSource(*reinterpret_cast(&mediaSource))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromIMediaSource(abi_arg_in mediaSource, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromIMediaSource(*reinterpret_cast(&mediaSource))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromStorageFile(abi_arg_in file, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromStorageFile(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromStream(abi_arg_in stream, abi_arg_in contentType, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromStream(*reinterpret_cast(&stream), *reinterpret_cast(&contentType))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromStreamReference(abi_arg_in stream, abi_arg_in contentType, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromStreamReference(*reinterpret_cast(&stream), *reinterpret_cast(&contentType))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromUri(abi_arg_in uri, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromUri(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromMediaBinder(abi_arg_in binder, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromMediaBinder(*reinterpret_cast(&binder))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSelected(bool * selected) noexcept override - { - try - { - *selected = detach(this->shim().IsSelected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Language(abi_arg_in value) noexcept override - { - try - { - this->shim().Language(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Processed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Processed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Processed(event_token token) noexcept override - { - try - { - this->shim().Processed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Buffer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Buffer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Protection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Protection()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DecodeTimestamp(abi_arg_in value) noexcept override - { - try - { - this->shim().DecodeTimestamp(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DecodeTimestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DecodeTimestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Duration(abi_arg_in value) noexcept override - { - try - { - this->shim().Duration(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeyFrame(bool value) noexcept override - { - try - { - this->shim().KeyFrame(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyFrame(bool * value) noexcept override - { - try - { - *value = detach(this->shim().KeyFrame()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Discontinuous(bool value) noexcept override - { - try - { - this->shim().Discontinuous(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Discontinuous(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Discontinuous()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetKeyIdentifier(uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().SetKeyIdentifier(array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetKeyIdentifier(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetKeyIdentifier(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetInitializationVector(uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().SetInitializationVector(array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInitializationVector(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetInitializationVector(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetSubSampleMapping(uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().SetSubSampleMapping(array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSubSampleMapping(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetSubSampleMapping(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromBuffer(abi_arg_in buffer, abi_arg_in timestamp, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromBuffer(*reinterpret_cast(&buffer), *reinterpret_cast(×tamp))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromStreamAsync(abi_arg_in stream, uint32_t count, abi_arg_in timestamp, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromStreamAsync(*reinterpret_cast(&stream), count, *reinterpret_cast(×tamp))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Closed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token token) noexcept override - { - try - { - this->shim().Closed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Starting(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Starting(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Starting(event_token token) noexcept override - { - try - { - this->shim().Starting(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Paused(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Paused(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Paused(event_token token) noexcept override - { - try - { - this->shim().Paused(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SampleRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SampleRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SampleRequested(event_token token) noexcept override - { - try - { - this->shim().SampleRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SwitchStreamsRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SwitchStreamsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SwitchStreamsRequested(event_token token) noexcept override - { - try - { - this->shim().SwitchStreamsRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyError(Windows::Media::Core::MediaStreamSourceErrorStatus errorStatus) noexcept override - { - try - { - this->shim().NotifyError(errorStatus); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddStreamDescriptor(abi_arg_in descriptor) noexcept override - { - try - { - this->shim().AddStreamDescriptor(*reinterpret_cast(&descriptor)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MediaProtectionManager(abi_arg_in value) noexcept override - { - try - { - this->shim().MediaProtectionManager(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaProtectionManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaProtectionManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Duration(abi_arg_in value) noexcept override - { - try - { - this->shim().Duration(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanSeek(bool value) noexcept override - { - try - { - this->shim().CanSeek(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanSeek(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanSeek()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BufferTime(abi_arg_in value) noexcept override - { - try - { - this->shim().BufferTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BufferTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BufferTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetBufferedRange(abi_arg_in startOffset, abi_arg_in endOffset) noexcept override - { - try - { - this->shim().SetBufferedRange(*reinterpret_cast(&startOffset), *reinterpret_cast(&endOffset)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MusicProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MusicProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbnail(abi_arg_in value) noexcept override - { - try - { - this->shim().Thumbnail(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddProtectionKey(abi_arg_in streamDescriptor, uint32_t __keyIdentifierSize, abi_arg_in * keyIdentifier, uint32_t __licenseDataSize, abi_arg_in * licenseData) noexcept override - { - try - { - this->shim().AddProtectionKey(*reinterpret_cast(&streamDescriptor), array_ref(keyIdentifier, keyIdentifier + __keyIdentifierSize), array_ref(licenseData, licenseData + __licenseDataSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_SampleRendered(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SampleRendered(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SampleRendered(event_token token) noexcept override - { - try - { - this->shim().SampleRendered(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reason(Windows::Media::Core::MediaStreamSourceClosedReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromDescriptor(abi_arg_in descriptor, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromDescriptor(*reinterpret_cast(&descriptor))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromDescriptors(abi_arg_in descriptor, abi_arg_in descriptor2, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromDescriptors(*reinterpret_cast(&descriptor), *reinterpret_cast(&descriptor2))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SampleLag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SampleLag()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StreamDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StreamDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Sample(abi_arg_in value) noexcept override - { - try - { - this->shim().Sample(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sample(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sample()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportSampleProgress(uint32_t progress) noexcept override - { - try - { - this->shim().ReportSampleProgress(progress); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartPosition(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().StartPosition()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetActualStartPosition(abi_arg_in position) noexcept override - { - try - { - this->shim().SetActualStartPosition(*reinterpret_cast(&position)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OldStreamDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldStreamDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewStreamDescriptor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewStreamDescriptor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrackKind(Windows::Media::Core::MediaTrackKind * value) noexcept override - { - try - { - *value = detach(this->shim().TrackKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Label(abi_arg_in value) noexcept override - { - try - { - this->shim().Label(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Label(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Label()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_UpdateStarting(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UpdateStarting(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UpdateStarting(event_token token) noexcept override - { - try - { - this->shim().UpdateStarting(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Updated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Updated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Updated(event_token token) noexcept override - { - try - { - this->shim().Updated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UpdateEnded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UpdateEnded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UpdateEnded(event_token token) noexcept override - { - try - { - this->shim().UpdateEnded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ErrorOccurred(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ErrorOccurred(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ErrorOccurred(event_token token) noexcept override - { - try - { - this->shim().ErrorOccurred(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Aborted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Aborted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Aborted(event_token token) noexcept override - { - try - { - this->shim().Aborted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mode(Windows::Media::Core::MseAppendMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::Media::Core::MseAppendMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsUpdating(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsUpdating()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Buffered(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Buffered()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimestampOffset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimestampOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TimestampOffset(abi_arg_in value) noexcept override - { - try - { - this->shim().TimestampOffset(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppendWindowStart(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppendWindowStart()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppendWindowStart(abi_arg_in value) noexcept override - { - try - { - this->shim().AppendWindowStart(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppendWindowEnd(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AppendWindowEnd()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppendWindowEnd(abi_arg_in> value) noexcept override - { - try - { - this->shim().AppendWindowEnd(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendBuffer(abi_arg_in buffer) noexcept override - { - try - { - this->shim().AppendBuffer(*reinterpret_cast(&buffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendStream(abi_arg_in stream) noexcept override - { - try - { - this->shim().AppendStream(*reinterpret_cast(&stream)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendStreamMaxSize(abi_arg_in stream, uint64_t maxSize) noexcept override - { - try - { - this->shim().AppendStream(*reinterpret_cast(&stream), maxSize); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Abort() noexcept override - { - try - { - this->shim().Abort(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Remove(abi_arg_in start, abi_arg_in> end) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&start), *reinterpret_cast *>(&end)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_SourceBufferAdded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceBufferAdded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceBufferAdded(event_token token) noexcept override - { - try - { - this->shim().SourceBufferAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceBufferRemoved(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceBufferRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceBufferRemoved(event_token token) noexcept override - { - try - { - this->shim().SourceBufferRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Buffers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Buffers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Opened(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Opened(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Opened(event_token token) noexcept override - { - try - { - this->shim().Opened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Ended(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Ended(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Ended(event_token token) noexcept override - { - try - { - this->shim().Ended(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token token) noexcept override - { - try - { - this->shim().Closed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceBuffers(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceBuffers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActiveSourceBuffers(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActiveSourceBuffers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadyState(Windows::Media::Core::MseReadyState * value) noexcept override - { - try - { - *value = detach(this->shim().ReadyState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Duration(abi_arg_in> value) noexcept override - { - try - { - this->shim().Duration(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddSourceBuffer(abi_arg_in mimeType, abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().AddSourceBuffer(*reinterpret_cast(&mimeType))); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveSourceBuffer(abi_arg_in buffer) noexcept override - { - try - { - this->shim().RemoveSourceBuffer(*reinterpret_cast(&buffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EndOfStream(Windows::Media::Core::MseEndOfStreamStatus status) noexcept override - { - try - { - this->shim().EndOfStream(status); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsContentTypeSupported(abi_arg_in contentType, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsContentTypeSupported(*reinterpret_cast(&contentType))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HighDynamicRangeAnalyzer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HighDynamicRangeAnalyzer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredAnalysisInterval(abi_arg_in value) noexcept override - { - try - { - this->shim().DesiredAnalysisInterval(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredAnalysisInterval(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DesiredAnalysisInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SceneAnalyzed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().SceneAnalyzed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SceneAnalyzed(event_token cookie) noexcept override - { - try - { - this->shim().SceneAnalyzed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameControlValues(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameControlValues()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HighDynamicRange(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HighDynamicRange()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResultFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResultFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_SelectedIndexChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SelectedIndexChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectedIndexChanged(event_token token) noexcept override - { - try - { - this->shim().SelectedIndexChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedIndex(int32_t value) noexcept override - { - try - { - this->shim().SelectedIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_CueEntered(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CueEntered(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CueEntered(event_token token) noexcept override - { - try - { - this->shim().CueEntered(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CueExited(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CueExited(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CueExited(event_token token) noexcept override - { - try - { - this->shim().CueExited(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TrackFailed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TrackFailed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TrackFailed(event_token token) noexcept override - { - try - { - this->shim().TrackFailed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cues(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Cues()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActiveCues(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ActiveCues()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimedMetadataKind(Windows::Media::Core::TimedMetadataKind * value) noexcept override - { - try - { - *value = detach(this->shim().TimedMetadataKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DispatchType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DispatchType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddCue(abi_arg_in cue) noexcept override - { - try - { - this->shim().AddCue(*reinterpret_cast(&cue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveCue(abi_arg_in cue) noexcept override - { - try - { - this->shim().RemoveCue(*reinterpret_cast(&cue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PlaybackItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ErrorCode(Windows::Media::Core::TimedMetadataTrackErrorCode * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in id, abi_arg_in language, Windows::Media::Core::TimedMetadataKind kind, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&id), *reinterpret_cast(&language), kind)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Error(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CueRegion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CueRegion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CueRegion(abi_arg_in value) noexcept override - { - try - { - this->shim().CueRegion(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CueStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CueStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CueStyle(abi_arg_in value) noexcept override - { - try - { - this->shim().CueStyle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Lines(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Lines()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subformats(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Subformats()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Position(abi_arg_in value) noexcept override - { - try - { - this->shim().Position(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Extent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Extent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Extent(abi_arg_in value) noexcept override - { - try - { - this->shim().Extent(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Background(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Background()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Background(abi_arg_in value) noexcept override - { - try - { - this->shim().Background(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WritingMode(Windows::Media::Core::TimedTextWritingMode * value) noexcept override - { - try - { - *value = detach(this->shim().WritingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WritingMode(Windows::Media::Core::TimedTextWritingMode value) noexcept override - { - try - { - this->shim().WritingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayAlignment(Windows::Media::Core::TimedTextDisplayAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().DisplayAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayAlignment(Windows::Media::Core::TimedTextDisplayAlignment value) noexcept override - { - try - { - this->shim().DisplayAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineHeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LineHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LineHeight(abi_arg_in value) noexcept override - { - try - { - this->shim().LineHeight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOverflowClipped(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOverflowClipped()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOverflowClipped(bool value) noexcept override - { - try - { - this->shim().IsOverflowClipped(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Padding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Padding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Padding(abi_arg_in value) noexcept override - { - try - { - this->shim().Padding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextWrapping(Windows::Media::Core::TimedTextWrapping * value) noexcept override - { - try - { - *value = detach(this->shim().TextWrapping()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextWrapping(Windows::Media::Core::TimedTextWrapping value) noexcept override - { - try - { - this->shim().TextWrapping(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ZIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ZIndex(int32_t value) noexcept override - { - try - { - this->shim().ZIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollMode(Windows::Media::Core::TimedTextScrollMode * value) noexcept override - { - try - { - *value = detach(this->shim().ScrollMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScrollMode(Windows::Media::Core::TimedTextScrollMode value) noexcept override - { - try - { - this->shim().ScrollMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Resolved(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Resolved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Resolved(event_token token) noexcept override - { - try - { - this->shim().Resolved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Error(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tracks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Tracks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromStream(abi_arg_in stream, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromStream(*reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromUri(abi_arg_in uri, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromUri(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromStreamWithLanguage(abi_arg_in stream, abi_arg_in defaultLanguage, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromStream(*reinterpret_cast(&stream), *reinterpret_cast(&defaultLanguage))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromUriWithLanguage(abi_arg_in uri, abi_arg_in defaultLanguage, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromUri(*reinterpret_cast(&uri), *reinterpret_cast(&defaultLanguage))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontFamily(abi_arg_in value) noexcept override - { - try - { - this->shim().FontFamily(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontSize(abi_arg_in value) noexcept override - { - try - { - this->shim().FontSize(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeight(Windows::Media::Core::TimedTextWeight * value) noexcept override - { - try - { - *value = detach(this->shim().FontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontWeight(Windows::Media::Core::TimedTextWeight value) noexcept override - { - try - { - this->shim().FontWeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Foreground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Foreground()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Foreground(abi_arg_in value) noexcept override - { - try - { - this->shim().Foreground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Background(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Background()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Background(abi_arg_in value) noexcept override - { - try - { - this->shim().Background(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsBackgroundAlwaysShown(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBackgroundAlwaysShown()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsBackgroundAlwaysShown(bool value) noexcept override - { - try - { - this->shim().IsBackgroundAlwaysShown(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlowDirection(Windows::Media::Core::TimedTextFlowDirection * value) noexcept override - { - try - { - *value = detach(this->shim().FlowDirection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FlowDirection(Windows::Media::Core::TimedTextFlowDirection value) noexcept override - { - try - { - this->shim().FlowDirection(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineAlignment(Windows::Media::Core::TimedTextLineAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().LineAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LineAlignment(Windows::Media::Core::TimedTextLineAlignment value) noexcept override - { - try - { - this->shim().LineAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutlineColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutlineColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutlineColor(abi_arg_in value) noexcept override - { - try - { - this->shim().OutlineColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutlineThickness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutlineThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutlineThickness(abi_arg_in value) noexcept override - { - try - { - this->shim().OutlineThickness(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutlineRadius(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutlineRadius()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutlineRadius(abi_arg_in value) noexcept override - { - try - { - this->shim().OutlineRadius(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StartIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StartIndex(int32_t value) noexcept override - { - try - { - this->shim().StartIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Length(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Length(int32_t value) noexcept override - { - try - { - this->shim().Length(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubformatStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SubformatStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SubformatStyle(abi_arg_in value) noexcept override - { - try - { - this->shim().SubformatStyle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Enabled(bool value) noexcept override - { - try - { - this->shim().Enabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnabledChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().EnabledChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnabledChanged(event_token cookie) noexcept override - { - try - { - this->shim().EnabledChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRecommendedStreamConfiguration(abi_arg_in controller, abi_arg_in desiredProperties, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetRecommendedStreamConfiguration(*reinterpret_cast(&controller), *reinterpret_cast(&desiredProperties))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reason(Windows::Media::Core::VideoStabilizationEffectEnabledChangedReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EncodingProperties(abi_arg_out encodingProperties) noexcept override - { - try - { - *encodingProperties = detach(this->shim().EncodingProperties()); - return S_OK; - } - catch (...) - { - *encodingProperties = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in encodingProperties, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&encodingProperties))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_OpenFailed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().OpenFailed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_OpenFailed(event_token token) noexcept override - { - try - { - this->shim().OpenFailed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEncodingProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetEncodingProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SupportInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DecoderStatus(Windows::Media::Core::MediaDecoderStatus * value) noexcept override - { - try - { - *value = detach(this->shim().DecoderStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaSourceStatus(Windows::Media::Core::MediaSourceStatus * value) noexcept override - { - try - { - *value = detach(this->shim().MediaSourceStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Core { - -template bool impl_IMediaStreamDescriptor::IsSelected() const -{ - bool selected {}; - check_hresult(static_cast(static_cast(*this))->get_IsSelected(&selected)); - return selected; -} - -template void impl_IMediaStreamDescriptor::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template hstring impl_IMediaStreamDescriptor::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IMediaStreamDescriptor::Language(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Language(get(value))); -} - -template hstring impl_IMediaStreamDescriptor::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IAudioStreamDescriptor::EncodingProperties() const -{ - Windows::Media::MediaProperties::AudioEncodingProperties encodingProperties { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EncodingProperties(put(encodingProperties))); - return encodingProperties; -} - -template void impl_IAudioStreamDescriptor2::LeadingEncoderPadding(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LeadingEncoderPadding(get(value))); -} - -template Windows::Foundation::IReference impl_IAudioStreamDescriptor2::LeadingEncoderPadding() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_LeadingEncoderPadding(put(value))); - return value; -} - -template void impl_IAudioStreamDescriptor2::TrailingEncoderPadding(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TrailingEncoderPadding(get(value))); -} - -template Windows::Foundation::IReference impl_IAudioStreamDescriptor2::TrailingEncoderPadding() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_TrailingEncoderPadding(put(value))); - return value; -} - -template Windows::Media::Core::AudioStreamDescriptor impl_IAudioStreamDescriptorFactory::Create(const Windows::Media::MediaProperties::AudioEncodingProperties & encodingProperties) const -{ - Windows::Media::Core::AudioStreamDescriptor result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(encodingProperties), put(result))); - return result; -} - -template Windows::Media::MediaProperties::VideoEncodingProperties impl_IVideoStreamDescriptor::EncodingProperties() const -{ - Windows::Media::MediaProperties::VideoEncodingProperties encodingProperties { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EncodingProperties(put(encodingProperties))); - return encodingProperties; -} - -template Windows::Media::Core::VideoStreamDescriptor impl_IVideoStreamDescriptorFactory::Create(const Windows::Media::MediaProperties::VideoEncodingProperties & encodingProperties) const -{ - Windows::Media::Core::VideoStreamDescriptor result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(encodingProperties), put(result))); - return result; -} - -template event_token impl_IMediaStreamSource::Closed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaStreamSource::Closed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMediaStreamSource::remove_Closed, Closed(handler)); -} - -template void impl_IMediaStreamSource::Closed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(token)); -} - -template event_token impl_IMediaStreamSource::Starting(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Starting(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaStreamSource::Starting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMediaStreamSource::remove_Starting, Starting(handler)); -} - -template void impl_IMediaStreamSource::Starting(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Starting(token)); -} - -template event_token impl_IMediaStreamSource::Paused(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Paused(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaStreamSource::Paused(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMediaStreamSource::remove_Paused, Paused(handler)); -} - -template void impl_IMediaStreamSource::Paused(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Paused(token)); -} - -template event_token impl_IMediaStreamSource::SampleRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SampleRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaStreamSource::SampleRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMediaStreamSource::remove_SampleRequested, SampleRequested(handler)); -} - -template void impl_IMediaStreamSource::SampleRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SampleRequested(token)); -} - -template event_token impl_IMediaStreamSource::SwitchStreamsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SwitchStreamsRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaStreamSource::SwitchStreamsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMediaStreamSource::remove_SwitchStreamsRequested, SwitchStreamsRequested(handler)); -} - -template void impl_IMediaStreamSource::SwitchStreamsRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SwitchStreamsRequested(token)); -} - -template void impl_IMediaStreamSource::NotifyError(Windows::Media::Core::MediaStreamSourceErrorStatus errorStatus) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyError(errorStatus)); -} - -template void impl_IMediaStreamSource::AddStreamDescriptor(const Windows::Media::Core::IMediaStreamDescriptor & descriptor) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddStreamDescriptor(get(descriptor))); -} - -template void impl_IMediaStreamSource::MediaProtectionManager(const Windows::Media::Protection::MediaProtectionManager & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MediaProtectionManager(get(value))); -} - -template Windows::Media::Protection::MediaProtectionManager impl_IMediaStreamSource::MediaProtectionManager() const -{ - Windows::Media::Protection::MediaProtectionManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaProtectionManager(put(value))); - return value; -} - -template void impl_IMediaStreamSource::Duration(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Duration(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaStreamSource::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template void impl_IMediaStreamSource::CanSeek(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanSeek(value)); -} - -template bool impl_IMediaStreamSource::CanSeek() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanSeek(&value)); - return value; -} - -template void impl_IMediaStreamSource::BufferTime(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BufferTime(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaStreamSource::BufferTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_BufferTime(put(value))); - return value; -} - -template void impl_IMediaStreamSource::SetBufferedRange(const Windows::Foundation::TimeSpan & startOffset, const Windows::Foundation::TimeSpan & endOffset) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBufferedRange(get(startOffset), get(endOffset))); -} - -template Windows::Storage::FileProperties::MusicProperties impl_IMediaStreamSource::MusicProperties() const -{ - Windows::Storage::FileProperties::MusicProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MusicProperties(put(value))); - return value; -} - -template Windows::Storage::FileProperties::VideoProperties impl_IMediaStreamSource::VideoProperties() const -{ - Windows::Storage::FileProperties::VideoProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoProperties(put(value))); - return value; -} - -template void impl_IMediaStreamSource::Thumbnail(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbnail(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IMediaStreamSource::Thumbnail() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template void impl_IMediaStreamSource::AddProtectionKey(const Windows::Media::Core::IMediaStreamDescriptor & streamDescriptor, array_ref keyIdentifier, array_ref licenseData) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddProtectionKey(get(streamDescriptor), keyIdentifier.size(), get(keyIdentifier), licenseData.size(), get(licenseData))); -} - -template event_token impl_IMediaStreamSource2::SampleRendered(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SampleRendered(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaStreamSource2::SampleRendered(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMediaStreamSource2::remove_SampleRendered, SampleRendered(handler)); -} - -template void impl_IMediaStreamSource2::SampleRendered(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SampleRendered(token)); -} - -template Windows::Media::Core::MediaStreamSource impl_IMediaStreamSourceFactory::CreateFromDescriptor(const Windows::Media::Core::IMediaStreamDescriptor & descriptor) const -{ - Windows::Media::Core::MediaStreamSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromDescriptor(get(descriptor), put(result))); - return result; -} - -template Windows::Media::Core::MediaStreamSource impl_IMediaStreamSourceFactory::CreateFromDescriptors(const Windows::Media::Core::IMediaStreamDescriptor & descriptor, const Windows::Media::Core::IMediaStreamDescriptor & descriptor2) const -{ - Windows::Media::Core::MediaStreamSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromDescriptors(get(descriptor), get(descriptor2), put(result))); - return result; -} - -template event_token impl_IMediaStreamSample::Processed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Processed(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaStreamSample::Processed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMediaStreamSample::remove_Processed, Processed(handler)); -} - -template void impl_IMediaStreamSample::Processed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Processed(token)); -} - -template Windows::Storage::Streams::Buffer impl_IMediaStreamSample::Buffer() const -{ - Windows::Storage::Streams::Buffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Buffer(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaStreamSample::Timestamp() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Media::Core::MediaStreamSamplePropertySet impl_IMediaStreamSample::ExtendedProperties() const -{ - Windows::Media::Core::MediaStreamSamplePropertySet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ExtendedProperties(put(value))); - return value; -} - -template Windows::Media::Core::MediaStreamSampleProtectionProperties impl_IMediaStreamSample::Protection() const -{ - Windows::Media::Core::MediaStreamSampleProtectionProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Protection(put(value))); - return value; -} - -template void impl_IMediaStreamSample::DecodeTimestamp(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DecodeTimestamp(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaStreamSample::DecodeTimestamp() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_DecodeTimestamp(put(value))); - return value; -} - -template void impl_IMediaStreamSample::Duration(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Duration(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaStreamSample::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template void impl_IMediaStreamSample::KeyFrame(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeyFrame(value)); -} - -template bool impl_IMediaStreamSample::KeyFrame() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyFrame(&value)); - return value; -} - -template void impl_IMediaStreamSample::Discontinuous(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Discontinuous(value)); -} - -template bool impl_IMediaStreamSample::Discontinuous() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Discontinuous(&value)); - return value; -} - -template Windows::Media::Core::MediaStreamSample impl_IMediaStreamSampleStatics::CreateFromBuffer(const Windows::Storage::Streams::IBuffer & buffer, const Windows::Foundation::TimeSpan & timestamp) const -{ - Windows::Media::Core::MediaStreamSample value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromBuffer(get(buffer), get(timestamp), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaStreamSampleStatics::CreateFromStreamAsync(const Windows::Storage::Streams::IInputStream & stream, uint32_t count, const Windows::Foundation::TimeSpan & timestamp) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromStreamAsync(get(stream), count, get(timestamp), put(value))); - return value; -} - -template void impl_IMediaStreamSampleProtectionProperties::SetKeyIdentifier(array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetKeyIdentifier(value.size(), get(value))); -} - -template void impl_IMediaStreamSampleProtectionProperties::GetKeyIdentifier(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetKeyIdentifier(put_size(value), put(value))); -} - -template void impl_IMediaStreamSampleProtectionProperties::SetInitializationVector(array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetInitializationVector(value.size(), get(value))); -} - -template void impl_IMediaStreamSampleProtectionProperties::GetInitializationVector(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetInitializationVector(put_size(value), put(value))); -} - -template void impl_IMediaStreamSampleProtectionProperties::SetSubSampleMapping(array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSubSampleMapping(value.size(), get(value))); -} - -template void impl_IMediaStreamSampleProtectionProperties::GetSubSampleMapping(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetSubSampleMapping(put_size(value), put(value))); -} - -template Windows::Media::Core::MediaStreamSourceClosedReason impl_IMediaStreamSourceClosedRequest::Reason() const -{ - Windows::Media::Core::MediaStreamSourceClosedReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template Windows::Media::Core::MediaStreamSourceClosedRequest impl_IMediaStreamSourceClosedEventArgs::Request() const -{ - Windows::Media::Core::MediaStreamSourceClosedRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template void impl_IMediaStreamSourceStartingRequestDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::Foundation::IReference impl_IMediaStreamSourceStartingRequest::StartPosition() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_StartPosition(put(value))); - return value; -} - -template Windows::Media::Core::MediaStreamSourceStartingRequestDeferral impl_IMediaStreamSourceStartingRequest::GetDeferral() const -{ - Windows::Media::Core::MediaStreamSourceStartingRequestDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template void impl_IMediaStreamSourceStartingRequest::SetActualStartPosition(const Windows::Foundation::TimeSpan & position) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetActualStartPosition(get(position))); -} - -template Windows::Media::Core::MediaStreamSourceStartingRequest impl_IMediaStreamSourceStartingEventArgs::Request() const -{ - Windows::Media::Core::MediaStreamSourceStartingRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template void impl_IMediaStreamSourceSampleRequestDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::Media::Core::IMediaStreamDescriptor impl_IMediaStreamSourceSampleRequest::StreamDescriptor() const -{ - Windows::Media::Core::IMediaStreamDescriptor value; - check_hresult(static_cast(static_cast(*this))->get_StreamDescriptor(put(value))); - return value; -} - -template Windows::Media::Core::MediaStreamSourceSampleRequestDeferral impl_IMediaStreamSourceSampleRequest::GetDeferral() const -{ - Windows::Media::Core::MediaStreamSourceSampleRequestDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template void impl_IMediaStreamSourceSampleRequest::Sample(const Windows::Media::Core::MediaStreamSample & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Sample(get(value))); -} - -template Windows::Media::Core::MediaStreamSample impl_IMediaStreamSourceSampleRequest::Sample() const -{ - Windows::Media::Core::MediaStreamSample value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Sample(put(value))); - return value; -} - -template void impl_IMediaStreamSourceSampleRequest::ReportSampleProgress(uint32_t progress) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportSampleProgress(progress)); -} - -template Windows::Media::Core::MediaStreamSourceSampleRequest impl_IMediaStreamSourceSampleRequestedEventArgs::Request() const -{ - Windows::Media::Core::MediaStreamSourceSampleRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template void impl_IMediaStreamSourceSwitchStreamsRequestDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::Media::Core::IMediaStreamDescriptor impl_IMediaStreamSourceSwitchStreamsRequest::OldStreamDescriptor() const -{ - Windows::Media::Core::IMediaStreamDescriptor value; - check_hresult(static_cast(static_cast(*this))->get_OldStreamDescriptor(put(value))); - return value; -} - -template Windows::Media::Core::IMediaStreamDescriptor impl_IMediaStreamSourceSwitchStreamsRequest::NewStreamDescriptor() const -{ - Windows::Media::Core::IMediaStreamDescriptor value; - check_hresult(static_cast(static_cast(*this))->get_NewStreamDescriptor(put(value))); - return value; -} - -template Windows::Media::Core::MediaStreamSourceSwitchStreamsRequestDeferral impl_IMediaStreamSourceSwitchStreamsRequest::GetDeferral() const -{ - Windows::Media::Core::MediaStreamSourceSwitchStreamsRequestDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template Windows::Media::Core::MediaStreamSourceSwitchStreamsRequest impl_IMediaStreamSourceSwitchStreamsRequestedEventArgs::Request() const -{ - Windows::Media::Core::MediaStreamSourceSwitchStreamsRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaStreamSourceSampleRenderedEventArgs::SampleLag() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_SampleLag(put(value))); - return value; -} - -template bool impl_IMseStreamSourceStatics::IsContentTypeSupported(hstring_ref contentType) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsContentTypeSupported(get(contentType), &value)); - return value; -} - -template event_token impl_IMseStreamSource::Opened(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Opened(get(handler), &token)); - return token; -} - -template event_revoker impl_IMseStreamSource::Opened(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMseStreamSource::remove_Opened, Opened(handler)); -} - -template void impl_IMseStreamSource::Opened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Opened(token)); -} - -template event_token impl_IMseStreamSource::Ended(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Ended(get(handler), &token)); - return token; -} - -template event_revoker impl_IMseStreamSource::Ended(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMseStreamSource::remove_Ended, Ended(handler)); -} - -template void impl_IMseStreamSource::Ended(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Ended(token)); -} - -template event_token impl_IMseStreamSource::Closed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(handler), &token)); - return token; -} - -template event_revoker impl_IMseStreamSource::Closed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMseStreamSource::remove_Closed, Closed(handler)); -} - -template void impl_IMseStreamSource::Closed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(token)); -} - -template Windows::Media::Core::MseSourceBufferList impl_IMseStreamSource::SourceBuffers() const -{ - Windows::Media::Core::MseSourceBufferList value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceBuffers(put(value))); - return value; -} - -template Windows::Media::Core::MseSourceBufferList impl_IMseStreamSource::ActiveSourceBuffers() const -{ - Windows::Media::Core::MseSourceBufferList value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ActiveSourceBuffers(put(value))); - return value; -} - -template Windows::Media::Core::MseReadyState impl_IMseStreamSource::ReadyState() const -{ - Windows::Media::Core::MseReadyState value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadyState(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IMseStreamSource::Duration() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template void impl_IMseStreamSource::Duration(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Duration(get(value))); -} - -template Windows::Media::Core::MseSourceBuffer impl_IMseStreamSource::AddSourceBuffer(hstring_ref mimeType) const -{ - Windows::Media::Core::MseSourceBuffer buffer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AddSourceBuffer(get(mimeType), put(buffer))); - return buffer; -} - -template void impl_IMseStreamSource::RemoveSourceBuffer(const Windows::Media::Core::MseSourceBuffer & buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveSourceBuffer(get(buffer))); -} - -template void impl_IMseStreamSource::EndOfStream(Windows::Media::Core::MseEndOfStreamStatus status) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EndOfStream(status)); -} - -template event_token impl_IMseSourceBuffer::UpdateStarting(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UpdateStarting(get(handler), &token)); - return token; -} - -template event_revoker impl_IMseSourceBuffer::UpdateStarting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMseSourceBuffer::remove_UpdateStarting, UpdateStarting(handler)); -} - -template void impl_IMseSourceBuffer::UpdateStarting(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UpdateStarting(token)); -} - -template event_token impl_IMseSourceBuffer::Updated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Updated(get(handler), &token)); - return token; -} - -template event_revoker impl_IMseSourceBuffer::Updated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMseSourceBuffer::remove_Updated, Updated(handler)); -} - -template void impl_IMseSourceBuffer::Updated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Updated(token)); -} - -template event_token impl_IMseSourceBuffer::UpdateEnded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UpdateEnded(get(handler), &token)); - return token; -} - -template event_revoker impl_IMseSourceBuffer::UpdateEnded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMseSourceBuffer::remove_UpdateEnded, UpdateEnded(handler)); -} - -template void impl_IMseSourceBuffer::UpdateEnded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UpdateEnded(token)); -} - -template event_token impl_IMseSourceBuffer::ErrorOccurred(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ErrorOccurred(get(handler), &token)); - return token; -} - -template event_revoker impl_IMseSourceBuffer::ErrorOccurred(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMseSourceBuffer::remove_ErrorOccurred, ErrorOccurred(handler)); -} - -template void impl_IMseSourceBuffer::ErrorOccurred(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ErrorOccurred(token)); -} - -template event_token impl_IMseSourceBuffer::Aborted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Aborted(get(handler), &token)); - return token; -} - -template event_revoker impl_IMseSourceBuffer::Aborted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMseSourceBuffer::remove_Aborted, Aborted(handler)); -} - -template void impl_IMseSourceBuffer::Aborted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Aborted(token)); -} - -template Windows::Media::Core::MseAppendMode impl_IMseSourceBuffer::Mode() const -{ - Windows::Media::Core::MseAppendMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IMseSourceBuffer::Mode(Windows::Media::Core::MseAppendMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template bool impl_IMseSourceBuffer::IsUpdating() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsUpdating(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMseSourceBuffer::Buffered() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Buffered(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMseSourceBuffer::TimestampOffset() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TimestampOffset(put(value))); - return value; -} - -template void impl_IMseSourceBuffer::TimestampOffset(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TimestampOffset(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMseSourceBuffer::AppendWindowStart() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_AppendWindowStart(put(value))); - return value; -} - -template void impl_IMseSourceBuffer::AppendWindowStart(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppendWindowStart(get(value))); -} - -template Windows::Foundation::IReference impl_IMseSourceBuffer::AppendWindowEnd() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_AppendWindowEnd(put(value))); - return value; -} - -template void impl_IMseSourceBuffer::AppendWindowEnd(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppendWindowEnd(get(value))); -} - -template void impl_IMseSourceBuffer::AppendBuffer(const Windows::Storage::Streams::IBuffer & buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AppendBuffer(get(buffer))); -} - -template void impl_IMseSourceBuffer::AppendStream(const Windows::Storage::Streams::IInputStream & stream) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AppendStream(get(stream))); -} - -template void impl_IMseSourceBuffer::AppendStream(const Windows::Storage::Streams::IInputStream & stream, uint64_t maxSize) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AppendStreamMaxSize(get(stream), maxSize)); -} - -template void impl_IMseSourceBuffer::Abort() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Abort()); -} - -template void impl_IMseSourceBuffer::Remove(const Windows::Foundation::TimeSpan & start, const Windows::Foundation::IReference & end) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Remove(get(start), get(end))); -} - -template event_token impl_IMseSourceBufferList::SourceBufferAdded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceBufferAdded(get(handler), &token)); - return token; -} - -template event_revoker impl_IMseSourceBufferList::SourceBufferAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMseSourceBufferList::remove_SourceBufferAdded, SourceBufferAdded(handler)); -} - -template void impl_IMseSourceBufferList::SourceBufferAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceBufferAdded(token)); -} - -template event_token impl_IMseSourceBufferList::SourceBufferRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceBufferRemoved(get(handler), &token)); - return token; -} - -template event_revoker impl_IMseSourceBufferList::SourceBufferRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMseSourceBufferList::remove_SourceBufferRemoved, SourceBufferRemoved(handler)); -} - -template void impl_IMseSourceBufferList::SourceBufferRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceBufferRemoved(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_IMseSourceBufferList::Buffers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Buffers(put(value))); - return value; -} - -template void impl_IHighDynamicRangeControl::Enabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(value)); -} - -template bool impl_IHighDynamicRangeControl::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template Windows::Media::Core::HighDynamicRangeControl impl_ISceneAnalysisEffect::HighDynamicRangeAnalyzer() const -{ - Windows::Media::Core::HighDynamicRangeControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HighDynamicRangeAnalyzer(put(value))); - return value; -} - -template void impl_ISceneAnalysisEffect::DesiredAnalysisInterval(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredAnalysisInterval(get(value))); -} - -template Windows::Foundation::TimeSpan impl_ISceneAnalysisEffect::DesiredAnalysisInterval() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredAnalysisInterval(put(value))); - return value; -} - -template event_token impl_ISceneAnalysisEffect::SceneAnalyzed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_SceneAnalyzed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ISceneAnalysisEffect::SceneAnalyzed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::ISceneAnalysisEffect::remove_SceneAnalyzed, SceneAnalyzed(handler)); -} - -template void impl_ISceneAnalysisEffect::SceneAnalyzed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SceneAnalyzed(cookie)); -} - -template double impl_IHighDynamicRangeOutput::Certainty() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Certainty(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IHighDynamicRangeOutput::FrameControllers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_FrameControllers(put(value))); - return value; -} - -template Windows::Media::Capture::CapturedFrameControlValues impl_ISceneAnalysisEffectFrame::FrameControlValues() const -{ - Windows::Media::Capture::CapturedFrameControlValues value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameControlValues(put(value))); - return value; -} - -template Windows::Media::Core::HighDynamicRangeOutput impl_ISceneAnalysisEffectFrame::HighDynamicRange() const -{ - Windows::Media::Core::HighDynamicRangeOutput value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HighDynamicRange(put(value))); - return value; -} - -template Windows::Media::Core::SceneAnalysisEffectFrame impl_ISceneAnalyzedEventArgs::ResultFrame() const -{ - Windows::Media::Core::SceneAnalysisEffectFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ResultFrame(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IFaceDetectionEffectFrame::DetectedFaces() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_DetectedFaces(put(value))); - return value; -} - -template Windows::Media::Core::FaceDetectionEffectFrame impl_IFaceDetectedEventArgs::ResultFrame() const -{ - Windows::Media::Core::FaceDetectionEffectFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ResultFrame(put(value))); - return value; -} - -template void impl_IFaceDetectionEffect::Enabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(value)); -} - -template bool impl_IFaceDetectionEffect::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template void impl_IFaceDetectionEffect::DesiredDetectionInterval(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredDetectionInterval(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IFaceDetectionEffect::DesiredDetectionInterval() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredDetectionInterval(put(value))); - return value; -} - -template event_token impl_IFaceDetectionEffect::FaceDetected(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_FaceDetected(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IFaceDetectionEffect::FaceDetected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IFaceDetectionEffect::remove_FaceDetected, FaceDetected(handler)); -} - -template void impl_IFaceDetectionEffect::FaceDetected(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FaceDetected(cookie)); -} - -template void impl_IFaceDetectionEffectDefinition::DetectionMode(Windows::Media::Core::FaceDetectionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DetectionMode(value)); -} - -template Windows::Media::Core::FaceDetectionMode impl_IFaceDetectionEffectDefinition::DetectionMode() const -{ - Windows::Media::Core::FaceDetectionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_DetectionMode(&value)); - return value; -} - -template void impl_IFaceDetectionEffectDefinition::SynchronousDetectionEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SynchronousDetectionEnabled(value)); -} - -template bool impl_IFaceDetectionEffectDefinition::SynchronousDetectionEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SynchronousDetectionEnabled(&value)); - return value; -} - -template Windows::Media::Core::VideoStabilizationEffectEnabledChangedReason impl_IVideoStabilizationEffectEnabledChangedEventArgs::Reason() const -{ - Windows::Media::Core::VideoStabilizationEffectEnabledChangedReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template void impl_IVideoStabilizationEffect::Enabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(value)); -} - -template bool impl_IVideoStabilizationEffect::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template event_token impl_IVideoStabilizationEffect::EnabledChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_EnabledChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IVideoStabilizationEffect::EnabledChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IVideoStabilizationEffect::remove_EnabledChanged, EnabledChanged(handler)); -} - -template void impl_IVideoStabilizationEffect::EnabledChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnabledChanged(cookie)); -} - -template Windows::Media::Capture::VideoStreamConfiguration impl_IVideoStabilizationEffect::GetRecommendedStreamConfiguration(const Windows::Media::Devices::VideoDeviceController & controller, const Windows::Media::MediaProperties::VideoEncodingProperties & desiredProperties) const -{ - Windows::Media::Capture::VideoStreamConfiguration value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetRecommendedStreamConfiguration(get(controller), get(desiredProperties), put(value))); - return value; -} - -template HRESULT impl_IMediaSourceError::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template Windows::Media::Core::MediaSourceError impl_IMediaSourceOpenOperationCompletedEventArgs::Error() const -{ - Windows::Media::Core::MediaSourceError value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Error(put(value))); - return value; -} - -template Windows::Media::Core::MediaSourceState impl_IMediaSourceStateChangedEventArgs::OldState() const -{ - Windows::Media::Core::MediaSourceState value {}; - check_hresult(static_cast(static_cast(*this))->get_OldState(&value)); - return value; -} - -template Windows::Media::Core::MediaSourceState impl_IMediaSourceStateChangedEventArgs::NewState() const -{ - Windows::Media::Core::MediaSourceState value {}; - check_hresult(static_cast(static_cast(*this))->get_NewState(&value)); - return value; -} - -template Windows::Media::Core::MediaSource impl_IMediaSourceStatics::CreateFromAdaptiveMediaSource(const Windows::Media::Streaming::Adaptive::AdaptiveMediaSource & mediaSource) const -{ - Windows::Media::Core::MediaSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromAdaptiveMediaSource(get(mediaSource), put(result))); - return result; -} - -template Windows::Media::Core::MediaSource impl_IMediaSourceStatics::CreateFromMediaStreamSource(const Windows::Media::Core::MediaStreamSource & mediaSource) const -{ - Windows::Media::Core::MediaSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromMediaStreamSource(get(mediaSource), put(result))); - return result; -} - -template Windows::Media::Core::MediaSource impl_IMediaSourceStatics::CreateFromMseStreamSource(const Windows::Media::Core::MseStreamSource & mediaSource) const -{ - Windows::Media::Core::MediaSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromMseStreamSource(get(mediaSource), put(result))); - return result; -} - -template Windows::Media::Core::MediaSource impl_IMediaSourceStatics::CreateFromIMediaSource(const Windows::Media::Core::IMediaSource & mediaSource) const -{ - Windows::Media::Core::MediaSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromIMediaSource(get(mediaSource), put(result))); - return result; -} - -template Windows::Media::Core::MediaSource impl_IMediaSourceStatics::CreateFromStorageFile(const Windows::Storage::IStorageFile & file) const -{ - Windows::Media::Core::MediaSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromStorageFile(get(file), put(result))); - return result; -} - -template Windows::Media::Core::MediaSource impl_IMediaSourceStatics::CreateFromStream(const Windows::Storage::Streams::IRandomAccessStream & stream, hstring_ref contentType) const -{ - Windows::Media::Core::MediaSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromStream(get(stream), get(contentType), put(result))); - return result; -} - -template Windows::Media::Core::MediaSource impl_IMediaSourceStatics::CreateFromStreamReference(const Windows::Storage::Streams::IRandomAccessStreamReference & stream, hstring_ref contentType) const -{ - Windows::Media::Core::MediaSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromStreamReference(get(stream), get(contentType), put(result))); - return result; -} - -template Windows::Media::Core::MediaSource impl_IMediaSourceStatics::CreateFromUri(const Windows::Foundation::Uri & uri) const -{ - Windows::Media::Core::MediaSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromUri(get(uri), put(result))); - return result; -} - -template Windows::Media::Core::MediaSource impl_IMediaSourceStatics2::CreateFromMediaBinder(const Windows::Media::Core::MediaBinder & binder) const -{ - Windows::Media::Core::MediaSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromMediaBinder(get(binder), put(result))); - return result; -} - -template event_token impl_IMediaBinder::Binding(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Binding(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaBinder::Binding(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMediaBinder::remove_Binding, Binding(handler)); -} - -template void impl_IMediaBinder::Binding(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Binding(token)); -} - -template hstring impl_IMediaBinder::Token() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Token(put(value))); - return value; -} - -template void impl_IMediaBinder::Token(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Token(get(value))); -} - -template Windows::Media::Core::MediaSource impl_IMediaBinder::Source() const -{ - Windows::Media::Core::MediaSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template event_token impl_IMediaBindingEventArgs::Canceled(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Canceled(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaBindingEventArgs::Canceled(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMediaBindingEventArgs::remove_Canceled, Canceled(handler)); -} - -template void impl_IMediaBindingEventArgs::Canceled(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Canceled(token)); -} - -template Windows::Media::Core::MediaBinder impl_IMediaBindingEventArgs::MediaBinder() const -{ - Windows::Media::Core::MediaBinder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaBinder(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IMediaBindingEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template void impl_IMediaBindingEventArgs::SetUri(const Windows::Foundation::Uri & uri) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetUri(get(uri))); -} - -template void impl_IMediaBindingEventArgs::SetStream(const Windows::Storage::Streams::IRandomAccessStream & stream, hstring_ref contentType) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetStream(get(stream), get(contentType))); -} - -template void impl_IMediaBindingEventArgs::SetStreamReference(const Windows::Storage::Streams::IRandomAccessStreamReference & stream, hstring_ref contentType) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetStreamReference(get(stream), get(contentType))); -} - -template event_token impl_IMediaSource2::OpenOperationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_OpenOperationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaSource2::OpenOperationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMediaSource2::remove_OpenOperationCompleted, OpenOperationCompleted(handler)); -} - -template void impl_IMediaSource2::OpenOperationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_OpenOperationCompleted(token)); -} - -template Windows::Foundation::Collections::ValueSet impl_IMediaSource2::CustomProperties() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CustomProperties(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IMediaSource2::Duration() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template bool impl_IMediaSource2::IsOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOpen(&value)); - return value; -} - -template Windows::Foundation::Collections::IObservableVector impl_IMediaSource2::ExternalTimedTextSources() const -{ - Windows::Foundation::Collections::IObservableVector value; - check_hresult(static_cast(static_cast(*this))->get_ExternalTimedTextSources(put(value))); - return value; -} - -template Windows::Foundation::Collections::IObservableVector impl_IMediaSource2::ExternalTimedMetadataTracks() const -{ - Windows::Foundation::Collections::IObservableVector value; - check_hresult(static_cast(static_cast(*this))->get_ExternalTimedMetadataTracks(put(value))); - return value; -} - -template event_token impl_IMediaSource3::StateChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StateChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaSource3::StateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IMediaSource3::remove_StateChanged, StateChanged(handler)); -} - -template void impl_IMediaSource3::StateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StateChanged(token)); -} - -template Windows::Media::Core::MediaSourceState impl_IMediaSource3::State() const -{ - Windows::Media::Core::MediaSourceState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template void impl_IMediaSource3::Reset() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Reset()); -} - -template void impl_IMediaCue::StartTime(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartTime(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaCue::StartTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template void impl_IMediaCue::Duration(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Duration(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaCue::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template void impl_IMediaCue::Id(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Id(get(value))); -} - -template hstring impl_IMediaCue::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Media::Core::TimedTextRegion impl_ITimedTextCue::CueRegion() const -{ - Windows::Media::Core::TimedTextRegion value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CueRegion(put(value))); - return value; -} - -template void impl_ITimedTextCue::CueRegion(const Windows::Media::Core::TimedTextRegion & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CueRegion(get(value))); -} - -template Windows::Media::Core::TimedTextStyle impl_ITimedTextCue::CueStyle() const -{ - Windows::Media::Core::TimedTextStyle value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CueStyle(put(value))); - return value; -} - -template void impl_ITimedTextCue::CueStyle(const Windows::Media::Core::TimedTextStyle & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CueStyle(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_ITimedTextCue::Lines() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Lines(put(value))); - return value; -} - -template hstring impl_ITimedTextRegion::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_ITimedTextRegion::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template Windows::Media::Core::TimedTextPoint impl_ITimedTextRegion::Position() const -{ - Windows::Media::Core::TimedTextPoint value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template void impl_ITimedTextRegion::Position(const Windows::Media::Core::TimedTextPoint & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Position(get(value))); -} - -template Windows::Media::Core::TimedTextSize impl_ITimedTextRegion::Extent() const -{ - Windows::Media::Core::TimedTextSize value {}; - check_hresult(static_cast(static_cast(*this))->get_Extent(put(value))); - return value; -} - -template void impl_ITimedTextRegion::Extent(const Windows::Media::Core::TimedTextSize & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Extent(get(value))); -} - -template Windows::UI::Color impl_ITimedTextRegion::Background() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_Background(put(value))); - return value; -} - -template void impl_ITimedTextRegion::Background(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Background(get(value))); -} - -template Windows::Media::Core::TimedTextWritingMode impl_ITimedTextRegion::WritingMode() const -{ - Windows::Media::Core::TimedTextWritingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_WritingMode(&value)); - return value; -} - -template void impl_ITimedTextRegion::WritingMode(Windows::Media::Core::TimedTextWritingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WritingMode(value)); -} - -template Windows::Media::Core::TimedTextDisplayAlignment impl_ITimedTextRegion::DisplayAlignment() const -{ - Windows::Media::Core::TimedTextDisplayAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_DisplayAlignment(&value)); - return value; -} - -template void impl_ITimedTextRegion::DisplayAlignment(Windows::Media::Core::TimedTextDisplayAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayAlignment(value)); -} - -template Windows::Media::Core::TimedTextDouble impl_ITimedTextRegion::LineHeight() const -{ - Windows::Media::Core::TimedTextDouble value {}; - check_hresult(static_cast(static_cast(*this))->get_LineHeight(put(value))); - return value; -} - -template void impl_ITimedTextRegion::LineHeight(const Windows::Media::Core::TimedTextDouble & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LineHeight(get(value))); -} - -template bool impl_ITimedTextRegion::IsOverflowClipped() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOverflowClipped(&value)); - return value; -} - -template void impl_ITimedTextRegion::IsOverflowClipped(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOverflowClipped(value)); -} - -template Windows::Media::Core::TimedTextPadding impl_ITimedTextRegion::Padding() const -{ - Windows::Media::Core::TimedTextPadding value {}; - check_hresult(static_cast(static_cast(*this))->get_Padding(put(value))); - return value; -} - -template void impl_ITimedTextRegion::Padding(const Windows::Media::Core::TimedTextPadding & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Padding(get(value))); -} - -template Windows::Media::Core::TimedTextWrapping impl_ITimedTextRegion::TextWrapping() const -{ - Windows::Media::Core::TimedTextWrapping value {}; - check_hresult(static_cast(static_cast(*this))->get_TextWrapping(&value)); - return value; -} - -template void impl_ITimedTextRegion::TextWrapping(Windows::Media::Core::TimedTextWrapping value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextWrapping(value)); -} - -template int32_t impl_ITimedTextRegion::ZIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ZIndex(&value)); - return value; -} - -template void impl_ITimedTextRegion::ZIndex(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ZIndex(value)); -} - -template Windows::Media::Core::TimedTextScrollMode impl_ITimedTextRegion::ScrollMode() const -{ - Windows::Media::Core::TimedTextScrollMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ScrollMode(&value)); - return value; -} - -template void impl_ITimedTextRegion::ScrollMode(Windows::Media::Core::TimedTextScrollMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScrollMode(value)); -} - -template hstring impl_ITimedTextStyle::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_ITimedTextStyle::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template hstring impl_ITimedTextStyle::FontFamily() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FontFamily(put(value))); - return value; -} - -template void impl_ITimedTextStyle::FontFamily(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontFamily(get(value))); -} - -template Windows::Media::Core::TimedTextDouble impl_ITimedTextStyle::FontSize() const -{ - Windows::Media::Core::TimedTextDouble value {}; - check_hresult(static_cast(static_cast(*this))->get_FontSize(put(value))); - return value; -} - -template void impl_ITimedTextStyle::FontSize(const Windows::Media::Core::TimedTextDouble & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontSize(get(value))); -} - -template Windows::Media::Core::TimedTextWeight impl_ITimedTextStyle::FontWeight() const -{ - Windows::Media::Core::TimedTextWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_FontWeight(&value)); - return value; -} - -template void impl_ITimedTextStyle::FontWeight(Windows::Media::Core::TimedTextWeight value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontWeight(value)); -} - -template Windows::UI::Color impl_ITimedTextStyle::Foreground() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_Foreground(put(value))); - return value; -} - -template void impl_ITimedTextStyle::Foreground(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Foreground(get(value))); -} - -template Windows::UI::Color impl_ITimedTextStyle::Background() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_Background(put(value))); - return value; -} - -template void impl_ITimedTextStyle::Background(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Background(get(value))); -} - -template bool impl_ITimedTextStyle::IsBackgroundAlwaysShown() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsBackgroundAlwaysShown(&value)); - return value; -} - -template void impl_ITimedTextStyle::IsBackgroundAlwaysShown(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsBackgroundAlwaysShown(value)); -} - -template Windows::Media::Core::TimedTextFlowDirection impl_ITimedTextStyle::FlowDirection() const -{ - Windows::Media::Core::TimedTextFlowDirection value {}; - check_hresult(static_cast(static_cast(*this))->get_FlowDirection(&value)); - return value; -} - -template void impl_ITimedTextStyle::FlowDirection(Windows::Media::Core::TimedTextFlowDirection value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FlowDirection(value)); -} - -template Windows::Media::Core::TimedTextLineAlignment impl_ITimedTextStyle::LineAlignment() const -{ - Windows::Media::Core::TimedTextLineAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_LineAlignment(&value)); - return value; -} - -template void impl_ITimedTextStyle::LineAlignment(Windows::Media::Core::TimedTextLineAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LineAlignment(value)); -} - -template Windows::UI::Color impl_ITimedTextStyle::OutlineColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_OutlineColor(put(value))); - return value; -} - -template void impl_ITimedTextStyle::OutlineColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutlineColor(get(value))); -} - -template Windows::Media::Core::TimedTextDouble impl_ITimedTextStyle::OutlineThickness() const -{ - Windows::Media::Core::TimedTextDouble value {}; - check_hresult(static_cast(static_cast(*this))->get_OutlineThickness(put(value))); - return value; -} - -template void impl_ITimedTextStyle::OutlineThickness(const Windows::Media::Core::TimedTextDouble & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutlineThickness(get(value))); -} - -template Windows::Media::Core::TimedTextDouble impl_ITimedTextStyle::OutlineRadius() const -{ - Windows::Media::Core::TimedTextDouble value {}; - check_hresult(static_cast(static_cast(*this))->get_OutlineRadius(put(value))); - return value; -} - -template void impl_ITimedTextStyle::OutlineRadius(const Windows::Media::Core::TimedTextDouble & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutlineRadius(get(value))); -} - -template int32_t impl_ITimedTextSubformat::StartIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StartIndex(&value)); - return value; -} - -template void impl_ITimedTextSubformat::StartIndex(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartIndex(value)); -} - -template int32_t impl_ITimedTextSubformat::Length() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template void impl_ITimedTextSubformat::Length(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Length(value)); -} - -template Windows::Media::Core::TimedTextStyle impl_ITimedTextSubformat::SubformatStyle() const -{ - Windows::Media::Core::TimedTextStyle value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SubformatStyle(put(value))); - return value; -} - -template void impl_ITimedTextSubformat::SubformatStyle(const Windows::Media::Core::TimedTextStyle & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SubformatStyle(get(value))); -} - -template hstring impl_ITimedTextLine::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_ITimedTextLine::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_ITimedTextLine::Subformats() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Subformats(put(value))); - return value; -} - -template event_token impl_ISingleSelectMediaTrackList::SelectedIndexChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SelectedIndexChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ISingleSelectMediaTrackList::SelectedIndexChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::ISingleSelectMediaTrackList::remove_SelectedIndexChanged, SelectedIndexChanged(handler)); -} - -template void impl_ISingleSelectMediaTrackList::SelectedIndexChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SelectedIndexChanged(token)); -} - -template void impl_ISingleSelectMediaTrackList::SelectedIndex(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedIndex(value)); -} - -template int32_t impl_ISingleSelectMediaTrackList::SelectedIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedIndex(&value)); - return value; -} - -template hstring impl_IMediaTrack::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IMediaTrack::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template Windows::Media::Core::MediaTrackKind impl_IMediaTrack::TrackKind() const -{ - Windows::Media::Core::MediaTrackKind value {}; - check_hresult(static_cast(static_cast(*this))->get_TrackKind(&value)); - return value; -} - -template void impl_IMediaTrack::Label(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Label(get(value))); -} - -template hstring impl_IMediaTrack::Label() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Label(put(value))); - return value; -} - -template Windows::Media::Core::TimedMetadataTrackErrorCode impl_ITimedMetadataTrackError::ErrorCode() const -{ - Windows::Media::Core::TimedMetadataTrackErrorCode value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template HRESULT impl_ITimedMetadataTrackError::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template Windows::Media::Core::IMediaCue impl_IMediaCueEventArgs::Cue() const -{ - Windows::Media::Core::IMediaCue value; - check_hresult(static_cast(static_cast(*this))->get_Cue(put(value))); - return value; -} - -template Windows::Media::Core::TimedMetadataTrackError impl_ITimedMetadataTrackFailedEventArgs::Error() const -{ - Windows::Media::Core::TimedMetadataTrackError value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Error(put(value))); - return value; -} - -template void impl_IDataCue::Data(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Data(get(value))); -} - -template Windows::Storage::Streams::IBuffer impl_IDataCue::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template Windows::Media::Core::TimedMetadataTrack impl_ITimedMetadataTrackFactory::Create(hstring_ref id, hstring_ref language, Windows::Media::Core::TimedMetadataKind kind) const -{ - Windows::Media::Core::TimedMetadataTrack value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(id), get(language), kind, put(value))); - return value; -} - -template event_token impl_ITimedMetadataTrack::CueEntered(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CueEntered(get(handler), &token)); - return token; -} - -template event_revoker impl_ITimedMetadataTrack::CueEntered(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::ITimedMetadataTrack::remove_CueEntered, CueEntered(handler)); -} - -template void impl_ITimedMetadataTrack::CueEntered(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CueEntered(token)); -} - -template event_token impl_ITimedMetadataTrack::CueExited(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CueExited(get(handler), &token)); - return token; -} - -template event_revoker impl_ITimedMetadataTrack::CueExited(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::ITimedMetadataTrack::remove_CueExited, CueExited(handler)); -} - -template void impl_ITimedMetadataTrack::CueExited(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CueExited(token)); -} - -template event_token impl_ITimedMetadataTrack::TrackFailed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TrackFailed(get(handler), &token)); - return token; -} - -template event_revoker impl_ITimedMetadataTrack::TrackFailed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::ITimedMetadataTrack::remove_TrackFailed, TrackFailed(handler)); -} - -template void impl_ITimedMetadataTrack::TrackFailed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TrackFailed(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_ITimedMetadataTrack::Cues() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Cues(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ITimedMetadataTrack::ActiveCues() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ActiveCues(put(value))); - return value; -} - -template Windows::Media::Core::TimedMetadataKind impl_ITimedMetadataTrack::TimedMetadataKind() const -{ - Windows::Media::Core::TimedMetadataKind value {}; - check_hresult(static_cast(static_cast(*this))->get_TimedMetadataKind(&value)); - return value; -} - -template hstring impl_ITimedMetadataTrack::DispatchType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DispatchType(put(value))); - return value; -} - -template void impl_ITimedMetadataTrack::AddCue(const Windows::Media::Core::IMediaCue & cue) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddCue(get(cue))); -} - -template void impl_ITimedMetadataTrack::RemoveCue(const Windows::Media::Core::IMediaCue & cue) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveCue(get(cue))); -} - -template Windows::Media::Core::TimedMetadataTrackError impl_ITimedTextSourceResolveResultEventArgs::Error() const -{ - Windows::Media::Core::TimedMetadataTrackError value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Error(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ITimedTextSourceResolveResultEventArgs::Tracks() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Tracks(put(value))); - return value; -} - -template event_token impl_ITimedTextSource::Resolved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Resolved(get(handler), &token)); - return token; -} - -template event_revoker impl_ITimedTextSource::Resolved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::ITimedTextSource::remove_Resolved, Resolved(handler)); -} - -template void impl_ITimedTextSource::Resolved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Resolved(token)); -} - -template Windows::Media::Core::TimedTextSource impl_ITimedTextSourceStatics::CreateFromStream(const Windows::Storage::Streams::IRandomAccessStream & stream) const -{ - Windows::Media::Core::TimedTextSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromStream(get(stream), put(value))); - return value; -} - -template Windows::Media::Core::TimedTextSource impl_ITimedTextSourceStatics::CreateFromUri(const Windows::Foundation::Uri & uri) const -{ - Windows::Media::Core::TimedTextSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromUri(get(uri), put(value))); - return value; -} - -template Windows::Media::Core::TimedTextSource impl_ITimedTextSourceStatics::CreateFromStream(const Windows::Storage::Streams::IRandomAccessStream & stream, hstring_ref defaultLanguage) const -{ - Windows::Media::Core::TimedTextSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromStreamWithLanguage(get(stream), get(defaultLanguage), put(value))); - return value; -} - -template Windows::Media::Core::TimedTextSource impl_ITimedTextSourceStatics::CreateFromUri(const Windows::Foundation::Uri & uri, hstring_ref defaultLanguage) const -{ - Windows::Media::Core::TimedTextSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromUriWithLanguage(get(uri), get(defaultLanguage), put(value))); - return value; -} - -template Windows::Media::Core::MediaDecoderStatus impl_IVideoTrackSupportInfo::DecoderStatus() const -{ - Windows::Media::Core::MediaDecoderStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_DecoderStatus(&value)); - return value; -} - -template Windows::Media::Core::MediaSourceStatus impl_IVideoTrackSupportInfo::MediaSourceStatus() const -{ - Windows::Media::Core::MediaSourceStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaSourceStatus(&value)); - return value; -} - -template Windows::Media::Core::MediaDecoderStatus impl_IAudioTrackSupportInfo::DecoderStatus() const -{ - Windows::Media::Core::MediaDecoderStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_DecoderStatus(&value)); - return value; -} - -template Windows::Media::Core::AudioDecoderDegradation impl_IAudioTrackSupportInfo::Degradation() const -{ - Windows::Media::Core::AudioDecoderDegradation value {}; - check_hresult(static_cast(static_cast(*this))->get_Degradation(&value)); - return value; -} - -template Windows::Media::Core::AudioDecoderDegradationReason impl_IAudioTrackSupportInfo::DegradationReason() const -{ - Windows::Media::Core::AudioDecoderDegradationReason value {}; - check_hresult(static_cast(static_cast(*this))->get_DegradationReason(&value)); - return value; -} - -template Windows::Media::Core::MediaSourceStatus impl_IAudioTrackSupportInfo::MediaSourceStatus() const -{ - Windows::Media::Core::MediaSourceStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaSourceStatus(&value)); - return value; -} - -template HRESULT impl_IVideoTrackOpenFailedEventArgs::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template HRESULT impl_IAudioTrackOpenFailedEventArgs::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template event_token impl_IVideoTrack::OpenFailed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_OpenFailed(get(handler), &token)); - return token; -} - -template event_revoker impl_IVideoTrack::OpenFailed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IVideoTrack::remove_OpenFailed, OpenFailed(handler)); -} - -template void impl_IVideoTrack::OpenFailed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_OpenFailed(token)); -} - -template Windows::Media::MediaProperties::VideoEncodingProperties impl_IVideoTrack::GetEncodingProperties() const -{ - Windows::Media::MediaProperties::VideoEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetEncodingProperties(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IVideoTrack::PlaybackItem() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaybackItem(put(value))); - return value; -} - -template hstring impl_IVideoTrack::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Media::Core::VideoTrackSupportInfo impl_IVideoTrack::SupportInfo() const -{ - Windows::Media::Core::VideoTrackSupportInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SupportInfo(put(value))); - return value; -} - -template event_token impl_IAudioTrack::OpenFailed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_OpenFailed(get(handler), &token)); - return token; -} - -template event_revoker impl_IAudioTrack::OpenFailed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Core::IAudioTrack::remove_OpenFailed, OpenFailed(handler)); -} - -template void impl_IAudioTrack::OpenFailed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_OpenFailed(token)); -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IAudioTrack::GetEncodingProperties() const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetEncodingProperties(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IAudioTrack::PlaybackItem() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaybackItem(put(value))); - return value; -} - -template hstring impl_IAudioTrack::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Media::Core::AudioTrackSupportInfo impl_IAudioTrack::SupportInfo() const -{ - Windows::Media::Core::AudioTrackSupportInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SupportInfo(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_ITimedMetadataTrack2::PlaybackItem() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaybackItem(put(value))); - return value; -} - -template hstring impl_ITimedMetadataTrack2::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -inline AudioStreamDescriptor::AudioStreamDescriptor(const Windows::Media::MediaProperties::AudioEncodingProperties & encodingProperties) : - AudioStreamDescriptor(get_activation_factory().Create(encodingProperties)) -{} - -inline DataCue::DataCue() : - DataCue(activate_instance()) -{} - -inline FaceDetectionEffectDefinition::FaceDetectionEffectDefinition() : - FaceDetectionEffectDefinition(activate_instance()) -{} - -inline MediaBinder::MediaBinder() : - MediaBinder(activate_instance()) -{} - -inline Windows::Media::Core::MediaSource MediaSource::CreateFromAdaptiveMediaSource(const Windows::Media::Streaming::Adaptive::AdaptiveMediaSource & mediaSource) -{ - return get_activation_factory().CreateFromAdaptiveMediaSource(mediaSource); -} - -inline Windows::Media::Core::MediaSource MediaSource::CreateFromMediaStreamSource(const Windows::Media::Core::MediaStreamSource & mediaSource) -{ - return get_activation_factory().CreateFromMediaStreamSource(mediaSource); -} - -inline Windows::Media::Core::MediaSource MediaSource::CreateFromMseStreamSource(const Windows::Media::Core::MseStreamSource & mediaSource) -{ - return get_activation_factory().CreateFromMseStreamSource(mediaSource); -} - -inline Windows::Media::Core::MediaSource MediaSource::CreateFromIMediaSource(const Windows::Media::Core::IMediaSource & mediaSource) -{ - return get_activation_factory().CreateFromIMediaSource(mediaSource); -} - -inline Windows::Media::Core::MediaSource MediaSource::CreateFromStorageFile(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().CreateFromStorageFile(file); -} - -inline Windows::Media::Core::MediaSource MediaSource::CreateFromStream(const Windows::Storage::Streams::IRandomAccessStream & stream, hstring_ref contentType) -{ - return get_activation_factory().CreateFromStream(stream, contentType); -} - -inline Windows::Media::Core::MediaSource MediaSource::CreateFromStreamReference(const Windows::Storage::Streams::IRandomAccessStreamReference & stream, hstring_ref contentType) -{ - return get_activation_factory().CreateFromStreamReference(stream, contentType); -} - -inline Windows::Media::Core::MediaSource MediaSource::CreateFromUri(const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().CreateFromUri(uri); -} - -inline Windows::Media::Core::MediaSource MediaSource::CreateFromMediaBinder(const Windows::Media::Core::MediaBinder & binder) -{ - return get_activation_factory().CreateFromMediaBinder(binder); -} - -inline Windows::Media::Core::MediaStreamSample MediaStreamSample::CreateFromBuffer(const Windows::Storage::Streams::IBuffer & buffer, const Windows::Foundation::TimeSpan & timestamp) -{ - return get_activation_factory().CreateFromBuffer(buffer, timestamp); -} - -inline Windows::Foundation::IAsyncOperation MediaStreamSample::CreateFromStreamAsync(const Windows::Storage::Streams::IInputStream & stream, uint32_t count, const Windows::Foundation::TimeSpan & timestamp) -{ - return get_activation_factory().CreateFromStreamAsync(stream, count, timestamp); -} - -inline MediaStreamSource::MediaStreamSource(const Windows::Media::Core::IMediaStreamDescriptor & descriptor) : - MediaStreamSource(get_activation_factory().CreateFromDescriptor(descriptor)) -{} - -inline MediaStreamSource::MediaStreamSource(const Windows::Media::Core::IMediaStreamDescriptor & descriptor, const Windows::Media::Core::IMediaStreamDescriptor & descriptor2) : - MediaStreamSource(get_activation_factory().CreateFromDescriptors(descriptor, descriptor2)) -{} - -inline MseStreamSource::MseStreamSource() : - MseStreamSource(activate_instance()) -{} - -inline bool MseStreamSource::IsContentTypeSupported(hstring_ref contentType) -{ - return get_activation_factory().IsContentTypeSupported(contentType); -} - -inline SceneAnalysisEffectDefinition::SceneAnalysisEffectDefinition() : - SceneAnalysisEffectDefinition(activate_instance()) -{} - -inline TimedMetadataTrack::TimedMetadataTrack(hstring_ref id, hstring_ref language, Windows::Media::Core::TimedMetadataKind kind) : - TimedMetadataTrack(get_activation_factory().Create(id, language, kind)) -{} - -inline TimedTextCue::TimedTextCue() : - TimedTextCue(activate_instance()) -{} - -inline TimedTextLine::TimedTextLine() : - TimedTextLine(activate_instance()) -{} - -inline TimedTextRegion::TimedTextRegion() : - TimedTextRegion(activate_instance()) -{} - -inline Windows::Media::Core::TimedTextSource TimedTextSource::CreateFromStream(const Windows::Storage::Streams::IRandomAccessStream & stream) -{ - return get_activation_factory().CreateFromStream(stream); -} - -inline Windows::Media::Core::TimedTextSource TimedTextSource::CreateFromUri(const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().CreateFromUri(uri); -} - -inline Windows::Media::Core::TimedTextSource TimedTextSource::CreateFromStream(const Windows::Storage::Streams::IRandomAccessStream & stream, hstring_ref defaultLanguage) -{ - return get_activation_factory().CreateFromStream(stream, defaultLanguage); -} - -inline Windows::Media::Core::TimedTextSource TimedTextSource::CreateFromUri(const Windows::Foundation::Uri & uri, hstring_ref defaultLanguage) -{ - return get_activation_factory().CreateFromUri(uri, defaultLanguage); -} - -inline TimedTextStyle::TimedTextStyle() : - TimedTextStyle(activate_instance()) -{} - -inline TimedTextSubformat::TimedTextSubformat() : - TimedTextSubformat(activate_instance()) -{} - -inline VideoStabilizationEffectDefinition::VideoStabilizationEffectDefinition() : - VideoStabilizationEffectDefinition(activate_instance()) -{} - -inline VideoStreamDescriptor::VideoStreamDescriptor(const Windows::Media::MediaProperties::VideoEncodingProperties & encodingProperties) : - VideoStreamDescriptor(get_activation_factory().Create(encodingProperties)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Devices.Core.h b/10.0.14393.0/winrt/Windows.Media.Devices.Core.h deleted file mode 100644 index 111ecad88..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Devices.Core.h +++ /dev/null @@ -1,1688 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Media.MediaProperties.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Perception.Spatial.3.h" -#include "internal/Windows.Media.Devices.Core.3.h" -#include "Windows.Media.Devices.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FocalLength(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocalLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrincipalPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrincipalPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RadialDistortion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RadialDistortion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TangentialDistortion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TangentialDistortion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImageWidth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ImageWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImageHeight(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ImageHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProjectOntoFrame(abi_arg_in coordinate, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ProjectOntoFrame(*reinterpret_cast(&coordinate))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnprojectAtUnitDepth(abi_arg_in pixelCoordinate, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UnprojectAtUnitDepth(*reinterpret_cast(&pixelCoordinate))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProjectManyOntoFrame(uint32_t __coordinatesSize, abi_arg_in * coordinates, uint32_t __resultsSize, abi_arg_out results) noexcept override - { - try - { - this->shim().ProjectManyOntoFrame(*reinterpret_cast(&coordinates), *results); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnprojectPixelsAtUnitDepth(uint32_t __pixelCoordinatesSize, abi_arg_in * pixelCoordinates, uint32_t __resultsSize, abi_arg_out results) noexcept override - { - try - { - this->shim().UnprojectPixelsAtUnitDepth(*reinterpret_cast(&pixelCoordinates), *results); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UndistortedProjectionTransform(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UndistortedProjectionTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DistortPoint(abi_arg_in input, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DistortPoint(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DistortPoints(uint32_t __inputsSize, abi_arg_in * inputs, uint32_t __resultsSize, abi_arg_out results) noexcept override - { - try - { - this->shim().DistortPoints(*reinterpret_cast(&inputs), *results); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UndistortPoint(abi_arg_in input, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UndistortPoint(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UndistortPoints(uint32_t __inputsSize, abi_arg_in * inputs, uint32_t __resultsSize, abi_arg_out results) noexcept override - { - try - { - this->shim().UndistortPoints(*reinterpret_cast(&inputs), *results); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in focalLength, abi_arg_in principalPoint, abi_arg_in radialDistortion, abi_arg_in tangentialDistortion, uint32_t imageWidth, uint32_t imageHeight, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&focalLength), *reinterpret_cast(&principalPoint), *reinterpret_cast(&radialDistortion), *reinterpret_cast(&tangentialDistortion), imageWidth, imageHeight)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_UnprojectPoint(abi_arg_in sourcePoint, abi_arg_in targetCoordinateSystem, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UnprojectPoint(*reinterpret_cast(&sourcePoint), *reinterpret_cast(&targetCoordinateSystem))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnprojectPoints(uint32_t __sourcePointsSize, abi_arg_in * sourcePoints, abi_arg_in targetCoordinateSystem, uint32_t __resultsSize, abi_arg_out results) noexcept override - { - try - { - this->shim().UnprojectPoints(*reinterpret_cast(&sourcePoints), *reinterpret_cast(&targetCoordinateSystem), *results); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MapPoint(abi_arg_in sourcePoint, abi_arg_in targetCoordinateSystem, abi_arg_in targetCameraIntrinsics, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().MapPoint(*reinterpret_cast(&sourcePoint), *reinterpret_cast(&targetCoordinateSystem), *reinterpret_cast(&targetCameraIntrinsics))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MapPoints(uint32_t __sourcePointsSize, abi_arg_in * sourcePoints, abi_arg_in targetCoordinateSystem, abi_arg_in targetCameraIntrinsics, uint32_t __resultsSize, abi_arg_out results) noexcept override - { - try - { - this->shim().MapPoints(*reinterpret_cast(&sourcePoints), *reinterpret_cast(&targetCoordinateSystem), *reinterpret_cast(&targetCameraIntrinsics), *results); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Exposure(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Exposure()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExposureCompensation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExposureCompensation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsoSpeed(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsoSpeed()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Focus(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Focus()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotoConfirmationSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PhotoConfirmationSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Flash(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Flash()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExposureControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExposureControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExposureCompensationControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExposureCompensationControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsoSpeedControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsoSpeedControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotoConfirmationEnabled(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PhotoConfirmationEnabled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PhotoConfirmationEnabled(abi_arg_in> value) noexcept override - { - try - { - this->shim().PhotoConfirmationEnabled(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FlashControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FlashControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Min(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Min()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Max(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Max()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Step(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Step()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Min(float * value) noexcept override - { - try - { - *value = detach(this->shim().Min()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Max(float * value) noexcept override - { - try - { - *value = detach(this->shim().Max()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Step(float * value) noexcept override - { - try - { - *value = detach(this->shim().Step()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Value(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(abi_arg_in> value) noexcept override - { - try - { - this->shim().Value(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Auto(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Auto()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Auto(bool value) noexcept override - { - try - { - this->shim().Auto(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(abi_arg_in> value) noexcept override - { - try - { - this->shim().Value(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RedEyeReductionSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RedEyeReductionSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PowerSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PowerSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Mode(Windows::Media::Devices::Core::FrameFlashMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::Media::Devices::Core::FrameFlashMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Auto(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Auto()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Auto(bool value) noexcept override - { - try - { - this->shim().Auto(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RedEyeReduction(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RedEyeReduction()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RedEyeReduction(bool value) noexcept override - { - try - { - this->shim().RedEyeReduction(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PowerPercent(float * value) noexcept override - { - try - { - *value = detach(this->shim().PowerPercent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PowerPercent(float value) noexcept override - { - try - { - this->shim().PowerPercent(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Min(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Min()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Max(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Max()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Step(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Step()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Value(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(abi_arg_in> value) noexcept override - { - try - { - this->shim().Value(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Min(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Min()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Max(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Max()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Step(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Step()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Auto(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Auto()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Auto(bool value) noexcept override - { - try - { - this->shim().Auto(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(abi_arg_in> value) noexcept override - { - try - { - this->shim().Value(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPhotosPerSecond(float * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPhotosPerSecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotosPerSecondLimit(float * value) noexcept override - { - try - { - *value = detach(this->shim().PhotosPerSecondLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PhotosPerSecondLimit(float value) noexcept override - { - try - { - this->shim().PhotosPerSecondLimit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHighestConcurrentFrameRate(abi_arg_in captureProperties, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetHighestConcurrentFrameRate(*reinterpret_cast(&captureProperties))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentFrameRate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentFrameRate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameCapabilities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameCapabilities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredFrameControllers(abi_arg_out> items) noexcept override - { - try - { - *items = detach(this->shim().DesiredFrameControllers()); - return S_OK; - } - catch (...) - { - *items = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Devices::Core { - -template bool impl_IFrameExposureCapabilities::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IFrameExposureCapabilities::Min() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Min(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IFrameExposureCapabilities::Max() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Max(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IFrameExposureCapabilities::Step() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Step(put(value))); - return value; -} - -template bool impl_IFrameExposureCompensationCapabilities::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template float impl_IFrameExposureCompensationCapabilities::Min() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Min(&value)); - return value; -} - -template float impl_IFrameExposureCompensationCapabilities::Max() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Max(&value)); - return value; -} - -template float impl_IFrameExposureCompensationCapabilities::Step() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Step(&value)); - return value; -} - -template bool impl_IFrameIsoSpeedCapabilities::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template uint32_t impl_IFrameIsoSpeedCapabilities::Min() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Min(&value)); - return value; -} - -template uint32_t impl_IFrameIsoSpeedCapabilities::Max() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Max(&value)); - return value; -} - -template uint32_t impl_IFrameIsoSpeedCapabilities::Step() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Step(&value)); - return value; -} - -template bool impl_IFrameFocusCapabilities::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template uint32_t impl_IFrameFocusCapabilities::Min() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Min(&value)); - return value; -} - -template uint32_t impl_IFrameFocusCapabilities::Max() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Max(&value)); - return value; -} - -template uint32_t impl_IFrameFocusCapabilities::Step() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Step(&value)); - return value; -} - -template bool impl_IFrameFlashCapabilities::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template bool impl_IFrameFlashCapabilities::RedEyeReductionSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RedEyeReductionSupported(&value)); - return value; -} - -template bool impl_IFrameFlashCapabilities::PowerSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerSupported(&value)); - return value; -} - -template Windows::Media::Devices::Core::FrameExposureCapabilities impl_IFrameControlCapabilities::Exposure() const -{ - Windows::Media::Devices::Core::FrameExposureCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Exposure(put(value))); - return value; -} - -template Windows::Media::Devices::Core::FrameExposureCompensationCapabilities impl_IFrameControlCapabilities::ExposureCompensation() const -{ - Windows::Media::Devices::Core::FrameExposureCompensationCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ExposureCompensation(put(value))); - return value; -} - -template Windows::Media::Devices::Core::FrameIsoSpeedCapabilities impl_IFrameControlCapabilities::IsoSpeed() const -{ - Windows::Media::Devices::Core::FrameIsoSpeedCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsoSpeed(put(value))); - return value; -} - -template Windows::Media::Devices::Core::FrameFocusCapabilities impl_IFrameControlCapabilities::Focus() const -{ - Windows::Media::Devices::Core::FrameFocusCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Focus(put(value))); - return value; -} - -template bool impl_IFrameControlCapabilities::PhotoConfirmationSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PhotoConfirmationSupported(&value)); - return value; -} - -template Windows::Media::Devices::Core::FrameFlashCapabilities impl_IFrameControlCapabilities2::Flash() const -{ - Windows::Media::Devices::Core::FrameFlashCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Flash(put(value))); - return value; -} - -template bool impl_IFrameExposureControl::Auto() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Auto(&value)); - return value; -} - -template void impl_IFrameExposureControl::Auto(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Auto(value)); -} - -template Windows::Foundation::IReference impl_IFrameExposureControl::Value() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template void impl_IFrameExposureControl::Value(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(get(value))); -} - -template Windows::Foundation::IReference impl_IFrameExposureCompensationControl::Value() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template void impl_IFrameExposureCompensationControl::Value(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(get(value))); -} - -template bool impl_IFrameIsoSpeedControl::Auto() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Auto(&value)); - return value; -} - -template void impl_IFrameIsoSpeedControl::Auto(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Auto(value)); -} - -template Windows::Foundation::IReference impl_IFrameIsoSpeedControl::Value() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template void impl_IFrameIsoSpeedControl::Value(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(get(value))); -} - -template Windows::Foundation::IReference impl_IFrameFocusControl::Value() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template void impl_IFrameFocusControl::Value(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(get(value))); -} - -template Windows::Media::Devices::Core::FrameFlashMode impl_IFrameFlashControl::Mode() const -{ - Windows::Media::Devices::Core::FrameFlashMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IFrameFlashControl::Mode(Windows::Media::Devices::Core::FrameFlashMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template bool impl_IFrameFlashControl::Auto() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Auto(&value)); - return value; -} - -template void impl_IFrameFlashControl::Auto(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Auto(value)); -} - -template bool impl_IFrameFlashControl::RedEyeReduction() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RedEyeReduction(&value)); - return value; -} - -template void impl_IFrameFlashControl::RedEyeReduction(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RedEyeReduction(value)); -} - -template float impl_IFrameFlashControl::PowerPercent() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerPercent(&value)); - return value; -} - -template void impl_IFrameFlashControl::PowerPercent(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PowerPercent(value)); -} - -template Windows::Media::Devices::Core::FrameExposureControl impl_IFrameController::ExposureControl() const -{ - Windows::Media::Devices::Core::FrameExposureControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ExposureControl(put(value))); - return value; -} - -template Windows::Media::Devices::Core::FrameExposureCompensationControl impl_IFrameController::ExposureCompensationControl() const -{ - Windows::Media::Devices::Core::FrameExposureCompensationControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ExposureCompensationControl(put(value))); - return value; -} - -template Windows::Media::Devices::Core::FrameIsoSpeedControl impl_IFrameController::IsoSpeedControl() const -{ - Windows::Media::Devices::Core::FrameIsoSpeedControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsoSpeedControl(put(value))); - return value; -} - -template Windows::Media::Devices::Core::FrameFocusControl impl_IFrameController::FocusControl() const -{ - Windows::Media::Devices::Core::FrameFocusControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FocusControl(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IFrameController::PhotoConfirmationEnabled() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_PhotoConfirmationEnabled(put(value))); - return value; -} - -template void impl_IFrameController::PhotoConfirmationEnabled(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PhotoConfirmationEnabled(get(value))); -} - -template Windows::Media::Devices::Core::FrameFlashControl impl_IFrameController2::FlashControl() const -{ - Windows::Media::Devices::Core::FrameFlashControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FlashControl(put(value))); - return value; -} - -template bool impl_IVariablePhotoSequenceController::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template float impl_IVariablePhotoSequenceController::MaxPhotosPerSecond() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPhotosPerSecond(&value)); - return value; -} - -template float impl_IVariablePhotoSequenceController::PhotosPerSecondLimit() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_PhotosPerSecondLimit(&value)); - return value; -} - -template void impl_IVariablePhotoSequenceController::PhotosPerSecondLimit(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PhotosPerSecondLimit(value)); -} - -template Windows::Media::MediaProperties::MediaRatio impl_IVariablePhotoSequenceController::GetHighestConcurrentFrameRate(const Windows::Media::MediaProperties::IMediaEncodingProperties & captureProperties) const -{ - Windows::Media::MediaProperties::MediaRatio value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetHighestConcurrentFrameRate(get(captureProperties), put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaRatio impl_IVariablePhotoSequenceController::GetCurrentFrameRate() const -{ - Windows::Media::MediaProperties::MediaRatio value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentFrameRate(put(value))); - return value; -} - -template Windows::Media::Devices::Core::FrameControlCapabilities impl_IVariablePhotoSequenceController::FrameCapabilities() const -{ - Windows::Media::Devices::Core::FrameControlCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameCapabilities(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVariablePhotoSequenceController::DesiredFrameControllers() const -{ - Windows::Foundation::Collections::IVector items; - check_hresult(static_cast(static_cast(*this))->get_DesiredFrameControllers(put(items))); - return items; -} - -template Windows::Media::Devices::Core::CameraIntrinsics impl_ICameraIntrinsicsFactory::Create(const Windows::Foundation::Numerics::float2 & focalLength, const Windows::Foundation::Numerics::float2 & principalPoint, const Windows::Foundation::Numerics::float3 & radialDistortion, const Windows::Foundation::Numerics::float2 & tangentialDistortion, uint32_t imageWidth, uint32_t imageHeight) const -{ - Windows::Media::Devices::Core::CameraIntrinsics result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(focalLength), get(principalPoint), get(radialDistortion), get(tangentialDistortion), imageWidth, imageHeight, put(result))); - return result; -} - -template Windows::Foundation::Numerics::float2 impl_ICameraIntrinsics::FocalLength() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_FocalLength(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float2 impl_ICameraIntrinsics::PrincipalPoint() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_PrincipalPoint(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_ICameraIntrinsics::RadialDistortion() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_RadialDistortion(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float2 impl_ICameraIntrinsics::TangentialDistortion() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_TangentialDistortion(put(value))); - return value; -} - -template uint32_t impl_ICameraIntrinsics::ImageWidth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ImageWidth(&value)); - return value; -} - -template uint32_t impl_ICameraIntrinsics::ImageHeight() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ImageHeight(&value)); - return value; -} - -template Windows::Foundation::Point impl_ICameraIntrinsics::ProjectOntoFrame(const Windows::Foundation::Numerics::float3 & coordinate) const -{ - Windows::Foundation::Point result {}; - check_hresult(static_cast(static_cast(*this))->abi_ProjectOntoFrame(get(coordinate), put(result))); - return result; -} - -template Windows::Foundation::Numerics::float2 impl_ICameraIntrinsics::UnprojectAtUnitDepth(const Windows::Foundation::Point & pixelCoordinate) const -{ - Windows::Foundation::Numerics::float2 result {}; - check_hresult(static_cast(static_cast(*this))->abi_UnprojectAtUnitDepth(get(pixelCoordinate), put(result))); - return result; -} - -template void impl_ICameraIntrinsics::ProjectManyOntoFrame(array_ref coordinates, array_ref results) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProjectManyOntoFrame(coordinates.size(), get(coordinates), results.size(), get(results))); -} - -template void impl_ICameraIntrinsics::UnprojectPixelsAtUnitDepth(array_ref pixelCoordinates, array_ref results) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UnprojectPixelsAtUnitDepth(pixelCoordinates.size(), get(pixelCoordinates), results.size(), get(results))); -} - -template Windows::Foundation::Numerics::float4x4 impl_ICameraIntrinsics2::UndistortedProjectionTransform() const -{ - Windows::Foundation::Numerics::float4x4 value {}; - check_hresult(static_cast(static_cast(*this))->get_UndistortedProjectionTransform(put(value))); - return value; -} - -template Windows::Foundation::Point impl_ICameraIntrinsics2::DistortPoint(const Windows::Foundation::Point & input) const -{ - Windows::Foundation::Point result {}; - check_hresult(static_cast(static_cast(*this))->abi_DistortPoint(get(input), put(result))); - return result; -} - -template void impl_ICameraIntrinsics2::DistortPoints(array_ref inputs, array_ref results) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DistortPoints(inputs.size(), get(inputs), results.size(), get(results))); -} - -template Windows::Foundation::Point impl_ICameraIntrinsics2::UndistortPoint(const Windows::Foundation::Point & input) const -{ - Windows::Foundation::Point result {}; - check_hresult(static_cast(static_cast(*this))->abi_UndistortPoint(get(input), put(result))); - return result; -} - -template void impl_ICameraIntrinsics2::UndistortPoints(array_ref inputs, array_ref results) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UndistortPoints(inputs.size(), get(inputs), results.size(), get(results))); -} - -template Windows::Foundation::Numerics::float3 impl_IDepthCorrelatedCoordinateMapper::UnprojectPoint(const Windows::Foundation::Point & sourcePoint, const Windows::Perception::Spatial::SpatialCoordinateSystem & targetCoordinateSystem) const -{ - Windows::Foundation::Numerics::float3 result {}; - check_hresult(static_cast(static_cast(*this))->abi_UnprojectPoint(get(sourcePoint), get(targetCoordinateSystem), put(result))); - return result; -} - -template void impl_IDepthCorrelatedCoordinateMapper::UnprojectPoints(array_ref sourcePoints, const Windows::Perception::Spatial::SpatialCoordinateSystem & targetCoordinateSystem, array_ref results) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UnprojectPoints(sourcePoints.size(), get(sourcePoints), get(targetCoordinateSystem), results.size(), get(results))); -} - -template Windows::Foundation::Point impl_IDepthCorrelatedCoordinateMapper::MapPoint(const Windows::Foundation::Point & sourcePoint, const Windows::Perception::Spatial::SpatialCoordinateSystem & targetCoordinateSystem, const Windows::Media::Devices::Core::CameraIntrinsics & targetCameraIntrinsics) const -{ - Windows::Foundation::Point result {}; - check_hresult(static_cast(static_cast(*this))->abi_MapPoint(get(sourcePoint), get(targetCoordinateSystem), get(targetCameraIntrinsics), put(result))); - return result; -} - -template void impl_IDepthCorrelatedCoordinateMapper::MapPoints(array_ref sourcePoints, const Windows::Perception::Spatial::SpatialCoordinateSystem & targetCoordinateSystem, const Windows::Media::Devices::Core::CameraIntrinsics & targetCameraIntrinsics, array_ref results) const -{ - check_hresult(static_cast(static_cast(*this))->abi_MapPoints(sourcePoints.size(), get(sourcePoints), get(targetCoordinateSystem), get(targetCameraIntrinsics), results.size(), get(results))); -} - -inline FrameController::FrameController() : - FrameController(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Devices.h b/10.0.14393.0/winrt/Windows.Media.Devices.h deleted file mode 100644 index c3a7c66e0..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Devices.h +++ /dev/null @@ -1,5530 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.Capture.3.h" -#include "internal/Windows.Media.MediaProperties.3.h" -#include "internal/Windows.Media.Devices.Core.3.h" -#include "internal/Windows.Media.Devices.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Media::Devices { - -template CallControlEventHandler::CallControlEventHandler(L lambda) : - CallControlEventHandler(impl::make_delegate, CallControlEventHandler>(std::forward(lambda))) -{} - -template CallControlEventHandler::CallControlEventHandler(F * function) : - CallControlEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template CallControlEventHandler::CallControlEventHandler(O * object, M method) : - CallControlEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void CallControlEventHandler::operator()(const Windows::Media::Devices::CallControl & sender) const -{ - check_hresult((*this)->abi_Invoke(get(sender))); -} - -template DialRequestedEventHandler::DialRequestedEventHandler(L lambda) : - DialRequestedEventHandler(impl::make_delegate, DialRequestedEventHandler>(std::forward(lambda))) -{} - -template DialRequestedEventHandler::DialRequestedEventHandler(F * function) : - DialRequestedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template DialRequestedEventHandler::DialRequestedEventHandler(O * object, M method) : - DialRequestedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void DialRequestedEventHandler::operator()(const Windows::Media::Devices::CallControl & sender, const Windows::Media::Devices::DialRequestedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template KeypadPressedEventHandler::KeypadPressedEventHandler(L lambda) : - KeypadPressedEventHandler(impl::make_delegate, KeypadPressedEventHandler>(std::forward(lambda))) -{} - -template KeypadPressedEventHandler::KeypadPressedEventHandler(F * function) : - KeypadPressedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template KeypadPressedEventHandler::KeypadPressedEventHandler(O * object, M method) : - KeypadPressedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void KeypadPressedEventHandler::operator()(const Windows::Media::Devices::CallControl & sender, const Windows::Media::Devices::KeypadPressedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template RedialRequestedEventHandler::RedialRequestedEventHandler(L lambda) : - RedialRequestedEventHandler(impl::make_delegate, RedialRequestedEventHandler>(std::forward(lambda))) -{} - -template RedialRequestedEventHandler::RedialRequestedEventHandler(F * function) : - RedialRequestedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template RedialRequestedEventHandler::RedialRequestedEventHandler(O * object, M method) : - RedialRequestedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void RedialRequestedEventHandler::operator()(const Windows::Media::Devices::CallControl & sender, const Windows::Media::Devices::RedialRequestedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Mode(Windows::Media::Devices::AdvancedPhotoMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::Media::Devices::AdvancedPhotoMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedModes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedModes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mode(Windows::Media::Devices::AdvancedPhotoMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Configure(abi_arg_in settings) noexcept override - { - try - { - this->shim().Configure(*reinterpret_cast(&settings)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetDeviceProperty(abi_arg_in propertyId, abi_arg_in propertyValue) noexcept override - { - try - { - this->shim().SetDeviceProperty(*reinterpret_cast(&propertyId), *reinterpret_cast(&propertyValue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceProperty(abi_arg_in propertyId, abi_arg_out propertyValue) noexcept override - { - try - { - *propertyValue = detach(this->shim().GetDeviceProperty(*reinterpret_cast(&propertyId))); - return S_OK; - } - catch (...) - { - *propertyValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LowLagPhotoSequence(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LowLagPhotoSequence()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LowLagPhoto(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LowLagPhoto()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SceneModeControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SceneModeControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TorchControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TorchControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlashControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FlashControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WhiteBalanceControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WhiteBalanceControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExposureControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExposureControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExposureCompensationControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExposureCompensationControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsoSpeedControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsoSpeedControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RegionsOfInterestControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RegionsOfInterestControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryUse(Windows::Media::Devices::CaptureUse * value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryUse()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PrimaryUse(Windows::Media::Devices::CaptureUse value) noexcept override - { - try - { - this->shim().PrimaryUse(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VariablePhotoSequenceController(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VariablePhotoSequenceController()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotoConfirmationControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhotoConfirmationControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExposurePriorityVideoControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExposurePriorityVideoControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredOptimization(Windows::Media::Devices::MediaCaptureOptimization * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredOptimization()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredOptimization(Windows::Media::Devices::MediaCaptureOptimization value) noexcept override - { - try - { - this->shim().DesiredOptimization(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HdrVideoControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HdrVideoControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OpticalImageStabilizationControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OpticalImageStabilizationControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdvancedPhotoControl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdvancedPhotoControl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Muted(bool value) noexcept override - { - try - { - this->shim().Muted(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Muted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Muted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VolumePercent(float value) noexcept override - { - try - { - this->shim().VolumePercent(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VolumePercent(float * value) noexcept override - { - try - { - *value = detach(this->shim().VolumePercent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IndicateNewIncomingCall(bool enableRinger, abi_arg_in callerId, uint64_t * callToken) noexcept override - { - try - { - *callToken = detach(this->shim().IndicateNewIncomingCall(enableRinger, *reinterpret_cast(&callerId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IndicateNewOutgoingCall(uint64_t * callToken) noexcept override - { - try - { - *callToken = detach(this->shim().IndicateNewOutgoingCall()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IndicateActiveCall(uint64_t callToken) noexcept override - { - try - { - this->shim().IndicateActiveCall(callToken); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EndCall(uint64_t callToken) noexcept override - { - try - { - this->shim().EndCall(callToken); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasRinger(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasRinger()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AnswerRequested(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AnswerRequested(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AnswerRequested(event_token token) noexcept override - { - try - { - this->shim().AnswerRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_HangUpRequested(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().HangUpRequested(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HangUpRequested(event_token token) noexcept override - { - try - { - this->shim().HangUpRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DialRequested(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DialRequested(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DialRequested(event_token token) noexcept override - { - try - { - this->shim().DialRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RedialRequested(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RedialRequested(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RedialRequested(event_token token) noexcept override - { - try - { - this->shim().RedialRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_KeypadPressed(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().KeypadPressed(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_KeypadPressed(event_token token) noexcept override - { - try - { - this->shim().KeypadPressed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AudioTransferRequested(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AudioTransferRequested(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AudioTransferRequested(event_token token) noexcept override - { - try - { - this->shim().AudioTransferRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out callControl) noexcept override - { - try - { - *callControl = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *callControl = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromId(abi_arg_in deviceId, abi_arg_out callControl) noexcept override - { - try - { - *callControl = detach(this->shim().FromId(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *callControl = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Role(Windows::Media::Devices::AudioDeviceRole * value) noexcept override - { - try - { - *value = detach(this->shim().Role()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Handled() noexcept override - { - try - { - this->shim().Handled(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Min(float * value) noexcept override - { - try - { - *value = detach(this->shim().Min()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Max(float * value) noexcept override - { - try - { - *value = detach(this->shim().Max()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Step(float * value) noexcept override - { - try - { - *value = detach(this->shim().Step()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(float * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetValueAsync(float value, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetValueAsync(value)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Auto(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Auto()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAutoAsync(bool value, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetAutoAsync(value)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Min(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Min()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Max(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Max()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Step(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Step()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetValueAsync(abi_arg_in shutterDuration, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetValueAsync(*reinterpret_cast(&shutterDuration))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Enabled(bool value) noexcept override - { - try - { - this->shim().Enabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PowerSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PowerSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RedEyeReductionSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RedEyeReductionSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Enabled(bool value) noexcept override - { - try - { - this->shim().Enabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Auto(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Auto()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Auto(bool value) noexcept override - { - try - { - this->shim().Auto(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RedEyeReduction(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RedEyeReduction()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RedEyeReduction(bool value) noexcept override - { - try - { - this->shim().RedEyeReduction(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PowerPercent(float * value) noexcept override - { - try - { - *value = detach(this->shim().PowerPercent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PowerPercent(float value) noexcept override - { - try - { - this->shim().PowerPercent(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AssistantLightSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AssistantLightSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AssistantLightEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AssistantLightEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AssistantLightEnabled(bool value) noexcept override - { - try - { - this->shim().AssistantLightEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedPresets(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedPresets()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Preset(Windows::Media::Devices::FocusPreset * value) noexcept override - { - try - { - *value = detach(this->shim().Preset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPresetAsync(Windows::Media::Devices::FocusPreset preset, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetPresetAsync(preset)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPresetWithCompletionOptionAsync(Windows::Media::Devices::FocusPreset preset, bool completeBeforeFocus, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetPresetAsync(preset, completeBeforeFocus)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Min(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Min()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Max(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Max()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Step(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Step()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetValueAsync(uint32_t focus, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetValueAsync(focus)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FocusAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().FocusAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FocusChangedSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().FocusChangedSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WaitForFocusSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().WaitForFocusSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedFocusModes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedFocusModes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedFocusDistances(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedFocusDistances()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedFocusRanges(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedFocusRanges()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mode(Windows::Media::Devices::FocusMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusState(Windows::Media::Devices::MediaCaptureFocusState * value) noexcept override - { - try - { - *value = detach(this->shim().FocusState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnlockAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().UnlockAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LockAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().LockAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Configure(abi_arg_in settings) noexcept override - { - try - { - this->shim().Configure(*reinterpret_cast(&settings)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Mode(Windows::Media::Devices::FocusMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::Media::Devices::FocusMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoFocusRange(Windows::Media::Devices::AutoFocusRange * value) noexcept override - { - try - { - *value = detach(this->shim().AutoFocusRange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoFocusRange(Windows::Media::Devices::AutoFocusRange value) noexcept override - { - try - { - this->shim().AutoFocusRange(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(abi_arg_in> value) noexcept override - { - try - { - this->shim().Value(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Distance(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Distance()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Distance(abi_arg_in> value) noexcept override - { - try - { - this->shim().Distance(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WaitForFocus(bool * value) noexcept override - { - try - { - *value = detach(this->shim().WaitForFocus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WaitForFocus(bool value) noexcept override - { - try - { - this->shim().WaitForFocus(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisableDriverFallback(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DisableDriverFallback()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisableDriverFallback(bool value) noexcept override - { - try - { - this->shim().DisableDriverFallback(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedModes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedModes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mode(Windows::Media::Devices::HdrVideoMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::Media::Devices::HdrVideoMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedPresets(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedPresets()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Preset(Windows::Media::Devices::IsoSpeedPreset * value) noexcept override - { - try - { - *value = detach(this->shim().Preset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPresetAsync(Windows::Media::Devices::IsoSpeedPreset preset, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetPresetAsync(preset)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Min(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Min()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Max(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Max()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Step(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Step()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetValueAsync(uint32_t isoSpeed, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetValueAsync(isoSpeed)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Auto(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Auto()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAutoAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetAutoAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TelephonyKey(Windows::Media::Devices::TelephonyKey * telephonyKey) noexcept override - { - try - { - *telephonyKey = detach(this->shim().TelephonyKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetHighestConcurrentFrameRate(abi_arg_in captureProperties, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetHighestConcurrentFrameRate(*reinterpret_cast(&captureProperties))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentFrameRate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentFrameRate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ThumbnailEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ThumbnailEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ThumbnailEnabled(bool value) noexcept override - { - try - { - this->shim().ThumbnailEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ThumbnailFormat(Windows::Media::MediaProperties::MediaThumbnailFormat * value) noexcept override - { - try - { - *value = detach(this->shim().ThumbnailFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ThumbnailFormat(Windows::Media::MediaProperties::MediaThumbnailFormat value) noexcept override - { - try - { - this->shim().ThumbnailFormat(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredThumbnailSize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredThumbnailSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredThumbnailSize(uint32_t value) noexcept override - { - try - { - this->shim().DesiredThumbnailSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HardwareAcceleratedThumbnailSupported(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().HardwareAcceleratedThumbnailSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPastPhotos(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPastPhotos()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPhotosPerSecond(float * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPhotosPerSecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PastPhotoLimit(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PastPhotoLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PastPhotoLimit(uint32_t value) noexcept override - { - try - { - this->shim().PastPhotoLimit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotosPerSecondLimit(float * value) noexcept override - { - try - { - *value = detach(this->shim().PhotosPerSecondLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PhotosPerSecondLimit(float value) noexcept override - { - try - { - this->shim().PhotosPerSecondLimit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHighestConcurrentFrameRate(abi_arg_in captureProperties, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetHighestConcurrentFrameRate(*reinterpret_cast(&captureProperties))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentFrameRate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentFrameRate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ThumbnailEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ThumbnailEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ThumbnailEnabled(bool value) noexcept override - { - try - { - this->shim().ThumbnailEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ThumbnailFormat(Windows::Media::MediaProperties::MediaThumbnailFormat * value) noexcept override - { - try - { - *value = detach(this->shim().ThumbnailFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ThumbnailFormat(Windows::Media::MediaProperties::MediaThumbnailFormat value) noexcept override - { - try - { - this->shim().ThumbnailFormat(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredThumbnailSize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredThumbnailSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredThumbnailSize(uint32_t value) noexcept override - { - try - { - this->shim().DesiredThumbnailSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HardwareAcceleratedThumbnailSupported(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().HardwareAcceleratedThumbnailSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Capabilities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Capabilities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetValue(double * value, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TryGetValue(*value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetValue(double value, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TrySetValue(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetAuto(bool * value, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TryGetAuto(*value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetAuto(bool value, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TrySetAuto(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Min(double * value) noexcept override - { - try - { - *value = detach(this->shim().Min()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Max(double * value) noexcept override - { - try - { - *value = detach(this->shim().Max()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Step(double * value) noexcept override - { - try - { - *value = detach(this->shim().Step()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Default(double * value) noexcept override - { - try - { - *value = detach(this->shim().Default()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoModeSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoModeSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAvailableMediaStreamProperties(Windows::Media::Capture::MediaStreamType mediaStreamType, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetAvailableMediaStreamProperties(mediaStreamType)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMediaStreamProperties(Windows::Media::Capture::MediaStreamType mediaStreamType, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetMediaStreamProperties(mediaStreamType)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetMediaStreamPropertiesAsync(Windows::Media::Capture::MediaStreamType mediaStreamType, abi_arg_in mediaEncodingProperties, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetMediaStreamPropertiesAsync(mediaStreamType, *reinterpret_cast(&mediaEncodingProperties))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAudioCaptureSelector(abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetAudioCaptureSelector()); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAudioRenderSelector(abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetAudioRenderSelector()); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVideoCaptureSelector(abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetVideoCaptureSelector()); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultAudioCaptureId(Windows::Media::Devices::AudioDeviceRole role, abi_arg_out deviceId) noexcept override - { - try - { - *deviceId = detach(this->shim().GetDefaultAudioCaptureId(role)); - return S_OK; - } - catch (...) - { - *deviceId = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultAudioRenderId(Windows::Media::Devices::AudioDeviceRole role, abi_arg_out deviceId) noexcept override - { - try - { - *deviceId = detach(this->shim().GetDefaultAudioRenderId(role)); - return S_OK; - } - catch (...) - { - *deviceId = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DefaultAudioCaptureDeviceChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().DefaultAudioCaptureDeviceChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DefaultAudioCaptureDeviceChanged(event_token cookie) noexcept override - { - try - { - this->shim().DefaultAudioCaptureDeviceChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DefaultAudioRenderDeviceChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().DefaultAudioRenderDeviceChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DefaultAudioRenderDeviceChanged(event_token cookie) noexcept override - { - try - { - this->shim().DefaultAudioRenderDeviceChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedModes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedModes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mode(Windows::Media::Devices::OpticalImageStabilizationMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::Media::Devices::OpticalImageStabilizationMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * pbSupported) noexcept override - { - try - { - *pbSupported = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Enabled(bool value) noexcept override - { - try - { - this->shim().Enabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PixelFormat(Windows::Media::MediaProperties::MediaPixelFormat * format) noexcept override - { - try - { - *format = detach(this->shim().PixelFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PixelFormat(Windows::Media::MediaProperties::MediaPixelFormat format) noexcept override - { - try - { - this->shim().PixelFormat(format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Handled() noexcept override - { - try - { - this->shim().Handled(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AutoFocusEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoFocusEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoFocusEnabled(bool value) noexcept override - { - try - { - this->shim().AutoFocusEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoWhiteBalanceEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoWhiteBalanceEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoWhiteBalanceEnabled(bool value) noexcept override - { - try - { - this->shim().AutoWhiteBalanceEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoExposureEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoExposureEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoExposureEnabled(bool value) noexcept override - { - try - { - this->shim().AutoExposureEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Bounds(abi_arg_in value) noexcept override - { - try - { - this->shim().Bounds(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::Media::Devices::RegionOfInterestType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Type(Windows::Media::Devices::RegionOfInterestType value) noexcept override - { - try - { - this->shim().Type(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BoundsNormalized(bool * value) noexcept override - { - try - { - *value = detach(this->shim().BoundsNormalized()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BoundsNormalized(bool value) noexcept override - { - try - { - this->shim().BoundsNormalized(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Weight(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Weight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Weight(uint32_t value) noexcept override - { - try - { - this->shim().Weight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxRegions(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxRegions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRegionsAsync(abi_arg_in> regions, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetRegionsAsync(*reinterpret_cast *>(®ions))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRegionsWithLockAsync(abi_arg_in> regions, bool lockValues, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetRegionsAsync(*reinterpret_cast *>(®ions), lockValues)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearRegionsAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ClearRegionsAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoFocusSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoFocusSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoWhiteBalanceSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoWhiteBalanceSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoExposureSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoExposureSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SupportedModes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedModes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(Windows::Media::Devices::CaptureSceneMode * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetValueAsync(Windows::Media::Devices::CaptureSceneMode sceneMode, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetValueAsync(sceneMode)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PowerSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PowerSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Enabled(bool value) noexcept override - { - try - { - this->shim().Enabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PowerPercent(float * value) noexcept override - { - try - { - *value = detach(this->shim().PowerPercent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PowerPercent(float value) noexcept override - { - try - { - this->shim().PowerPercent(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Brightness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Brightness()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contrast(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contrast()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Hue(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Hue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WhiteBalance(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WhiteBalance()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BacklightCompensation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BacklightCompensation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pan(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pan()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tilt(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tilt()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Zoom(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Zoom()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Roll(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Roll()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Exposure(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Exposure()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Focus(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Focus()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetPowerlineFrequency(Windows::Media::Capture::PowerlineFrequency value, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TrySetPowerlineFrequency(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetPowerlineFrequency(Windows::Media::Capture::PowerlineFrequency * value, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TryGetPowerlineFrequency(*value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Preset(Windows::Media::Devices::ColorTemperaturePreset * value) noexcept override - { - try - { - *value = detach(this->shim().Preset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPresetAsync(Windows::Media::Devices::ColorTemperaturePreset preset, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetPresetAsync(preset)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Min(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Min()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Max(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Max()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Step(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Step()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetValueAsync(uint32_t temperature, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetValueAsync(temperature)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Supported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Supported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Min(float * value) noexcept override - { - try - { - *value = detach(this->shim().Min()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Max(float * value) noexcept override - { - try - { - *value = detach(this->shim().Max()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Step(float * value) noexcept override - { - try - { - *value = detach(this->shim().Step()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(float * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(float value) noexcept override - { - try - { - this->shim().Value(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SupportedModes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedModes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mode(Windows::Media::Devices::ZoomTransitionMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Configure(abi_arg_in settings) noexcept override - { - try - { - this->shim().Configure(*reinterpret_cast(&settings)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Mode(Windows::Media::Devices::ZoomTransitionMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::Media::Devices::ZoomTransitionMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(float * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(float value) noexcept override - { - try - { - this->shim().Value(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Devices { - -template hstring impl_IDefaultAudioDeviceChangedEventArgs::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Media::Devices::AudioDeviceRole impl_IDefaultAudioDeviceChangedEventArgs::Role() const -{ - Windows::Media::Devices::AudioDeviceRole value {}; - check_hresult(static_cast(static_cast(*this))->get_Role(&value)); - return value; -} - -template hstring impl_IMediaDeviceStatics::GetAudioCaptureSelector() const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetAudioCaptureSelector(put(selector))); - return selector; -} - -template hstring impl_IMediaDeviceStatics::GetAudioRenderSelector() const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetAudioRenderSelector(put(selector))); - return selector; -} - -template hstring impl_IMediaDeviceStatics::GetVideoCaptureSelector() const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetVideoCaptureSelector(put(selector))); - return selector; -} - -template hstring impl_IMediaDeviceStatics::GetDefaultAudioCaptureId(Windows::Media::Devices::AudioDeviceRole role) const -{ - hstring deviceId; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAudioCaptureId(role, put(deviceId))); - return deviceId; -} - -template hstring impl_IMediaDeviceStatics::GetDefaultAudioRenderId(Windows::Media::Devices::AudioDeviceRole role) const -{ - hstring deviceId; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultAudioRenderId(role, put(deviceId))); - return deviceId; -} - -template event_token impl_IMediaDeviceStatics::DefaultAudioCaptureDeviceChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_DefaultAudioCaptureDeviceChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaDeviceStatics::DefaultAudioCaptureDeviceChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Devices::IMediaDeviceStatics::remove_DefaultAudioCaptureDeviceChanged, DefaultAudioCaptureDeviceChanged(handler)); -} - -template void impl_IMediaDeviceStatics::DefaultAudioCaptureDeviceChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DefaultAudioCaptureDeviceChanged(cookie)); -} - -template event_token impl_IMediaDeviceStatics::DefaultAudioRenderDeviceChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_DefaultAudioRenderDeviceChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaDeviceStatics::DefaultAudioRenderDeviceChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Devices::IMediaDeviceStatics::remove_DefaultAudioRenderDeviceChanged, DefaultAudioRenderDeviceChanged(handler)); -} - -template void impl_IMediaDeviceStatics::DefaultAudioRenderDeviceChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DefaultAudioRenderDeviceChanged(cookie)); -} - -template Windows::Foundation::Collections::IVectorView impl_ISceneModeControl::SupportedModes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedModes(put(value))); - return value; -} - -template Windows::Media::Devices::CaptureSceneMode impl_ISceneModeControl::Value() const -{ - Windows::Media::Devices::CaptureSceneMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ISceneModeControl::SetValueAsync(Windows::Media::Devices::CaptureSceneMode sceneMode) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetValueAsync(sceneMode, put(asyncInfo))); - return asyncInfo; -} - -template bool impl_ITorchControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template bool impl_ITorchControl::PowerSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerSupported(&value)); - return value; -} - -template bool impl_ITorchControl::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template void impl_ITorchControl::Enabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(value)); -} - -template float impl_ITorchControl::PowerPercent() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerPercent(&value)); - return value; -} - -template void impl_ITorchControl::PowerPercent(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PowerPercent(value)); -} - -template bool impl_IFlashControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template bool impl_IFlashControl::PowerSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerSupported(&value)); - return value; -} - -template bool impl_IFlashControl::RedEyeReductionSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RedEyeReductionSupported(&value)); - return value; -} - -template bool impl_IFlashControl::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template void impl_IFlashControl::Enabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(value)); -} - -template bool impl_IFlashControl::Auto() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Auto(&value)); - return value; -} - -template void impl_IFlashControl::Auto(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Auto(value)); -} - -template bool impl_IFlashControl::RedEyeReduction() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RedEyeReduction(&value)); - return value; -} - -template void impl_IFlashControl::RedEyeReduction(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RedEyeReduction(value)); -} - -template float impl_IFlashControl::PowerPercent() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerPercent(&value)); - return value; -} - -template void impl_IFlashControl::PowerPercent(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PowerPercent(value)); -} - -template bool impl_IFlashControl2::AssistantLightSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AssistantLightSupported(&value)); - return value; -} - -template bool impl_IFlashControl2::AssistantLightEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AssistantLightEnabled(&value)); - return value; -} - -template void impl_IFlashControl2::AssistantLightEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AssistantLightEnabled(value)); -} - -template bool impl_IExposureCompensationControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template float impl_IExposureCompensationControl::Min() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Min(&value)); - return value; -} - -template float impl_IExposureCompensationControl::Max() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Max(&value)); - return value; -} - -template float impl_IExposureCompensationControl::Step() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Step(&value)); - return value; -} - -template float impl_IExposureCompensationControl::Value() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IExposureCompensationControl::SetValueAsync(float value) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetValueAsync(value, put(asyncInfo))); - return asyncInfo; -} - -template bool impl_IIsoSpeedControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IIsoSpeedControl::SupportedPresets() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedPresets(put(value))); - return value; -} - -template Windows::Media::Devices::IsoSpeedPreset impl_IIsoSpeedControl::Preset() const -{ - Windows::Media::Devices::IsoSpeedPreset value {}; - check_hresult(static_cast(static_cast(*this))->get_Preset(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IIsoSpeedControl::SetPresetAsync(Windows::Media::Devices::IsoSpeedPreset preset) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetPresetAsync(preset, put(asyncInfo))); - return asyncInfo; -} - -template uint32_t impl_IIsoSpeedControl2::Min() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Min(&value)); - return value; -} - -template uint32_t impl_IIsoSpeedControl2::Max() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Max(&value)); - return value; -} - -template uint32_t impl_IIsoSpeedControl2::Step() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Step(&value)); - return value; -} - -template uint32_t impl_IIsoSpeedControl2::Value() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IIsoSpeedControl2::SetValueAsync(uint32_t isoSpeed) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetValueAsync(isoSpeed, put(asyncInfo))); - return asyncInfo; -} - -template bool impl_IIsoSpeedControl2::Auto() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Auto(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IIsoSpeedControl2::SetAutoAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetAutoAsync(put(asyncInfo))); - return asyncInfo; -} - -template bool impl_IWhiteBalanceControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template Windows::Media::Devices::ColorTemperaturePreset impl_IWhiteBalanceControl::Preset() const -{ - Windows::Media::Devices::ColorTemperaturePreset value {}; - check_hresult(static_cast(static_cast(*this))->get_Preset(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IWhiteBalanceControl::SetPresetAsync(Windows::Media::Devices::ColorTemperaturePreset preset) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetPresetAsync(preset, put(asyncInfo))); - return asyncInfo; -} - -template uint32_t impl_IWhiteBalanceControl::Min() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Min(&value)); - return value; -} - -template uint32_t impl_IWhiteBalanceControl::Max() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Max(&value)); - return value; -} - -template uint32_t impl_IWhiteBalanceControl::Step() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Step(&value)); - return value; -} - -template uint32_t impl_IWhiteBalanceControl::Value() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IWhiteBalanceControl::SetValueAsync(uint32_t temperature) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetValueAsync(temperature, put(asyncInfo))); - return asyncInfo; -} - -template bool impl_IExposureControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template bool impl_IExposureControl::Auto() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Auto(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IExposureControl::SetAutoAsync(bool value) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetAutoAsync(value, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::TimeSpan impl_IExposureControl::Min() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Min(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IExposureControl::Max() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Max(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IExposureControl::Step() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Step(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IExposureControl::Value() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IExposureControl::SetValueAsync(const Windows::Foundation::TimeSpan & shutterDuration) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetValueAsync(get(shutterDuration), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Media::Devices::ZoomTransitionMode impl_IZoomSettings::Mode() const -{ - Windows::Media::Devices::ZoomTransitionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IZoomSettings::Mode(Windows::Media::Devices::ZoomTransitionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template float impl_IZoomSettings::Value() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template void impl_IZoomSettings::Value(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(value)); -} - -template bool impl_IZoomControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template float impl_IZoomControl::Min() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Min(&value)); - return value; -} - -template float impl_IZoomControl::Max() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Max(&value)); - return value; -} - -template float impl_IZoomControl::Step() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Step(&value)); - return value; -} - -template float impl_IZoomControl::Value() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template void impl_IZoomControl::Value(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(value)); -} - -template Windows::Foundation::Collections::IVectorView impl_IZoomControl2::SupportedModes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedModes(put(value))); - return value; -} - -template Windows::Media::Devices::ZoomTransitionMode impl_IZoomControl2::Mode() const -{ - Windows::Media::Devices::ZoomTransitionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IZoomControl2::Configure(const Windows::Media::Devices::ZoomSettings & settings) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Configure(get(settings))); -} - -template Windows::Media::Devices::FocusMode impl_IFocusSettings::Mode() const -{ - Windows::Media::Devices::FocusMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IFocusSettings::Mode(Windows::Media::Devices::FocusMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template Windows::Media::Devices::AutoFocusRange impl_IFocusSettings::AutoFocusRange() const -{ - Windows::Media::Devices::AutoFocusRange value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoFocusRange(&value)); - return value; -} - -template void impl_IFocusSettings::AutoFocusRange(Windows::Media::Devices::AutoFocusRange value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoFocusRange(value)); -} - -template Windows::Foundation::IReference impl_IFocusSettings::Value() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template void impl_IFocusSettings::Value(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(get(value))); -} - -template Windows::Foundation::IReference impl_IFocusSettings::Distance() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Distance(put(value))); - return value; -} - -template void impl_IFocusSettings::Distance(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Distance(get(value))); -} - -template bool impl_IFocusSettings::WaitForFocus() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_WaitForFocus(&value)); - return value; -} - -template void impl_IFocusSettings::WaitForFocus(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WaitForFocus(value)); -} - -template bool impl_IFocusSettings::DisableDriverFallback() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DisableDriverFallback(&value)); - return value; -} - -template void impl_IFocusSettings::DisableDriverFallback(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisableDriverFallback(value)); -} - -template bool impl_IFocusControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IFocusControl::SupportedPresets() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedPresets(put(value))); - return value; -} - -template Windows::Media::Devices::FocusPreset impl_IFocusControl::Preset() const -{ - Windows::Media::Devices::FocusPreset value {}; - check_hresult(static_cast(static_cast(*this))->get_Preset(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IFocusControl::SetPresetAsync(Windows::Media::Devices::FocusPreset preset) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetPresetAsync(preset, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IFocusControl::SetPresetAsync(Windows::Media::Devices::FocusPreset preset, bool completeBeforeFocus) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetPresetWithCompletionOptionAsync(preset, completeBeforeFocus, put(asyncInfo))); - return asyncInfo; -} - -template uint32_t impl_IFocusControl::Min() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Min(&value)); - return value; -} - -template uint32_t impl_IFocusControl::Max() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Max(&value)); - return value; -} - -template uint32_t impl_IFocusControl::Step() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Step(&value)); - return value; -} - -template uint32_t impl_IFocusControl::Value() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IFocusControl::SetValueAsync(uint32_t focus) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetValueAsync(focus, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IFocusControl::FocusAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_FocusAsync(put(asyncInfo))); - return asyncInfo; -} - -template bool impl_IFocusControl2::FocusChangedSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_FocusChangedSupported(&value)); - return value; -} - -template bool impl_IFocusControl2::WaitForFocusSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_WaitForFocusSupported(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IFocusControl2::SupportedFocusModes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedFocusModes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IFocusControl2::SupportedFocusDistances() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedFocusDistances(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IFocusControl2::SupportedFocusRanges() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedFocusRanges(put(value))); - return value; -} - -template Windows::Media::Devices::FocusMode impl_IFocusControl2::Mode() const -{ - Windows::Media::Devices::FocusMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template Windows::Media::Devices::MediaCaptureFocusState impl_IFocusControl2::FocusState() const -{ - Windows::Media::Devices::MediaCaptureFocusState value {}; - check_hresult(static_cast(static_cast(*this))->get_FocusState(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IFocusControl2::UnlockAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_UnlockAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IFocusControl2::LockAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_LockAsync(put(asyncInfo))); - return asyncInfo; -} - -template void impl_IFocusControl2::Configure(const Windows::Media::Devices::FocusSettings & settings) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Configure(get(settings))); -} - -template bool impl_IRegionOfInterest::AutoFocusEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoFocusEnabled(&value)); - return value; -} - -template void impl_IRegionOfInterest::AutoFocusEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoFocusEnabled(value)); -} - -template bool impl_IRegionOfInterest::AutoWhiteBalanceEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoWhiteBalanceEnabled(&value)); - return value; -} - -template void impl_IRegionOfInterest::AutoWhiteBalanceEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoWhiteBalanceEnabled(value)); -} - -template bool impl_IRegionOfInterest::AutoExposureEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoExposureEnabled(&value)); - return value; -} - -template void impl_IRegionOfInterest::AutoExposureEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoExposureEnabled(value)); -} - -template Windows::Foundation::Rect impl_IRegionOfInterest::Bounds() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_Bounds(put(value))); - return value; -} - -template void impl_IRegionOfInterest::Bounds(const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Bounds(get(value))); -} - -template Windows::Media::Devices::RegionOfInterestType impl_IRegionOfInterest2::Type() const -{ - Windows::Media::Devices::RegionOfInterestType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template void impl_IRegionOfInterest2::Type(Windows::Media::Devices::RegionOfInterestType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Type(value)); -} - -template bool impl_IRegionOfInterest2::BoundsNormalized() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_BoundsNormalized(&value)); - return value; -} - -template void impl_IRegionOfInterest2::BoundsNormalized(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BoundsNormalized(value)); -} - -template uint32_t impl_IRegionOfInterest2::Weight() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Weight(&value)); - return value; -} - -template void impl_IRegionOfInterest2::Weight(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Weight(value)); -} - -template uint32_t impl_IRegionsOfInterestControl::MaxRegions() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxRegions(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IRegionsOfInterestControl::SetRegionsAsync(const Windows::Foundation::Collections::IIterable & regions) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetRegionsAsync(get(regions), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IRegionsOfInterestControl::SetRegionsAsync(const Windows::Foundation::Collections::IIterable & regions, bool lockValues) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetRegionsWithLockAsync(get(regions), lockValues, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IRegionsOfInterestControl::ClearRegionsAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ClearRegionsAsync(put(asyncInfo))); - return asyncInfo; -} - -template bool impl_IRegionsOfInterestControl::AutoFocusSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoFocusSupported(&value)); - return value; -} - -template bool impl_IRegionsOfInterestControl::AutoWhiteBalanceSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoWhiteBalanceSupported(&value)); - return value; -} - -template bool impl_IRegionsOfInterestControl::AutoExposureSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoExposureSupported(&value)); - return value; -} - -template bool impl_IExposurePriorityVideoControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template bool impl_IExposurePriorityVideoControl::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template void impl_IExposurePriorityVideoControl::Enabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(value)); -} - -template bool impl_IHdrVideoControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IHdrVideoControl::SupportedModes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedModes(put(value))); - return value; -} - -template Windows::Media::Devices::HdrVideoMode impl_IHdrVideoControl::Mode() const -{ - Windows::Media::Devices::HdrVideoMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IHdrVideoControl::Mode(Windows::Media::Devices::HdrVideoMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template Windows::Media::Devices::AdvancedPhotoMode impl_IAdvancedPhotoCaptureSettings::Mode() const -{ - Windows::Media::Devices::AdvancedPhotoMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IAdvancedPhotoCaptureSettings::Mode(Windows::Media::Devices::AdvancedPhotoMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template bool impl_IAdvancedPhotoControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAdvancedPhotoControl::SupportedModes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedModes(put(value))); - return value; -} - -template Windows::Media::Devices::AdvancedPhotoMode impl_IAdvancedPhotoControl::Mode() const -{ - Windows::Media::Devices::AdvancedPhotoMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IAdvancedPhotoControl::Configure(const Windows::Media::Devices::AdvancedPhotoCaptureSettings & settings) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Configure(get(settings))); -} - -template bool impl_IOpticalImageStabilizationControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IOpticalImageStabilizationControl::SupportedModes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedModes(put(value))); - return value; -} - -template Windows::Media::Devices::OpticalImageStabilizationMode impl_IOpticalImageStabilizationControl::Mode() const -{ - Windows::Media::Devices::OpticalImageStabilizationMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IOpticalImageStabilizationControl::Mode(Windows::Media::Devices::OpticalImageStabilizationMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaDeviceController::GetAvailableMediaStreamProperties(Windows::Media::Capture::MediaStreamType mediaStreamType) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetAvailableMediaStreamProperties(mediaStreamType, put(value))); - return value; -} - -template Windows::Media::MediaProperties::IMediaEncodingProperties impl_IMediaDeviceController::GetMediaStreamProperties(Windows::Media::Capture::MediaStreamType mediaStreamType) const -{ - Windows::Media::MediaProperties::IMediaEncodingProperties value; - check_hresult(static_cast(static_cast(*this))->abi_GetMediaStreamProperties(mediaStreamType, put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IMediaDeviceController::SetMediaStreamPropertiesAsync(Windows::Media::Capture::MediaStreamType mediaStreamType, const Windows::Media::MediaProperties::IMediaEncodingProperties & mediaEncodingProperties) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetMediaStreamPropertiesAsync(mediaStreamType, get(mediaEncodingProperties), put(asyncInfo))); - return asyncInfo; -} - -template void impl_IAudioDeviceController::Muted(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Muted(value)); -} - -template bool impl_IAudioDeviceController::Muted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Muted(&value)); - return value; -} - -template void impl_IAudioDeviceController::VolumePercent(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VolumePercent(value)); -} - -template float impl_IAudioDeviceController::VolumePercent() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_VolumePercent(&value)); - return value; -} - -template Windows::Media::Devices::MediaDeviceControl impl_IVideoDeviceController::Brightness() const -{ - Windows::Media::Devices::MediaDeviceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Brightness(put(value))); - return value; -} - -template Windows::Media::Devices::MediaDeviceControl impl_IVideoDeviceController::Contrast() const -{ - Windows::Media::Devices::MediaDeviceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contrast(put(value))); - return value; -} - -template Windows::Media::Devices::MediaDeviceControl impl_IVideoDeviceController::Hue() const -{ - Windows::Media::Devices::MediaDeviceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Hue(put(value))); - return value; -} - -template Windows::Media::Devices::MediaDeviceControl impl_IVideoDeviceController::WhiteBalance() const -{ - Windows::Media::Devices::MediaDeviceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WhiteBalance(put(value))); - return value; -} - -template Windows::Media::Devices::MediaDeviceControl impl_IVideoDeviceController::BacklightCompensation() const -{ - Windows::Media::Devices::MediaDeviceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BacklightCompensation(put(value))); - return value; -} - -template Windows::Media::Devices::MediaDeviceControl impl_IVideoDeviceController::Pan() const -{ - Windows::Media::Devices::MediaDeviceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Pan(put(value))); - return value; -} - -template Windows::Media::Devices::MediaDeviceControl impl_IVideoDeviceController::Tilt() const -{ - Windows::Media::Devices::MediaDeviceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Tilt(put(value))); - return value; -} - -template Windows::Media::Devices::MediaDeviceControl impl_IVideoDeviceController::Zoom() const -{ - Windows::Media::Devices::MediaDeviceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Zoom(put(value))); - return value; -} - -template Windows::Media::Devices::MediaDeviceControl impl_IVideoDeviceController::Roll() const -{ - Windows::Media::Devices::MediaDeviceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Roll(put(value))); - return value; -} - -template Windows::Media::Devices::MediaDeviceControl impl_IVideoDeviceController::Exposure() const -{ - Windows::Media::Devices::MediaDeviceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Exposure(put(value))); - return value; -} - -template Windows::Media::Devices::MediaDeviceControl impl_IVideoDeviceController::Focus() const -{ - Windows::Media::Devices::MediaDeviceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Focus(put(value))); - return value; -} - -template bool impl_IVideoDeviceController::TrySetPowerlineFrequency(Windows::Media::Capture::PowerlineFrequency value) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetPowerlineFrequency(value, &succeeded)); - return succeeded; -} - -template bool impl_IVideoDeviceController::TryGetPowerlineFrequency(Windows::Media::Capture::PowerlineFrequency & value) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetPowerlineFrequency(&value, &succeeded)); - return succeeded; -} - -template Windows::Media::Devices::LowLagPhotoSequenceControl impl_IAdvancedVideoCaptureDeviceController2::LowLagPhotoSequence() const -{ - Windows::Media::Devices::LowLagPhotoSequenceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LowLagPhotoSequence(put(value))); - return value; -} - -template Windows::Media::Devices::LowLagPhotoControl impl_IAdvancedVideoCaptureDeviceController2::LowLagPhoto() const -{ - Windows::Media::Devices::LowLagPhotoControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LowLagPhoto(put(value))); - return value; -} - -template Windows::Media::Devices::SceneModeControl impl_IAdvancedVideoCaptureDeviceController2::SceneModeControl() const -{ - Windows::Media::Devices::SceneModeControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SceneModeControl(put(value))); - return value; -} - -template Windows::Media::Devices::TorchControl impl_IAdvancedVideoCaptureDeviceController2::TorchControl() const -{ - Windows::Media::Devices::TorchControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TorchControl(put(value))); - return value; -} - -template Windows::Media::Devices::FlashControl impl_IAdvancedVideoCaptureDeviceController2::FlashControl() const -{ - Windows::Media::Devices::FlashControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FlashControl(put(value))); - return value; -} - -template Windows::Media::Devices::WhiteBalanceControl impl_IAdvancedVideoCaptureDeviceController2::WhiteBalanceControl() const -{ - Windows::Media::Devices::WhiteBalanceControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WhiteBalanceControl(put(value))); - return value; -} - -template Windows::Media::Devices::ExposureControl impl_IAdvancedVideoCaptureDeviceController2::ExposureControl() const -{ - Windows::Media::Devices::ExposureControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ExposureControl(put(value))); - return value; -} - -template Windows::Media::Devices::FocusControl impl_IAdvancedVideoCaptureDeviceController2::FocusControl() const -{ - Windows::Media::Devices::FocusControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FocusControl(put(value))); - return value; -} - -template Windows::Media::Devices::ExposureCompensationControl impl_IAdvancedVideoCaptureDeviceController2::ExposureCompensationControl() const -{ - Windows::Media::Devices::ExposureCompensationControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ExposureCompensationControl(put(value))); - return value; -} - -template Windows::Media::Devices::IsoSpeedControl impl_IAdvancedVideoCaptureDeviceController2::IsoSpeedControl() const -{ - Windows::Media::Devices::IsoSpeedControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsoSpeedControl(put(value))); - return value; -} - -template Windows::Media::Devices::RegionsOfInterestControl impl_IAdvancedVideoCaptureDeviceController2::RegionsOfInterestControl() const -{ - Windows::Media::Devices::RegionsOfInterestControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RegionsOfInterestControl(put(value))); - return value; -} - -template Windows::Media::Devices::CaptureUse impl_IAdvancedVideoCaptureDeviceController2::PrimaryUse() const -{ - Windows::Media::Devices::CaptureUse value {}; - check_hresult(static_cast(static_cast(*this))->get_PrimaryUse(&value)); - return value; -} - -template void impl_IAdvancedVideoCaptureDeviceController2::PrimaryUse(Windows::Media::Devices::CaptureUse value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PrimaryUse(value)); -} - -template Windows::Media::Devices::Core::VariablePhotoSequenceController impl_IAdvancedVideoCaptureDeviceController3::VariablePhotoSequenceController() const -{ - Windows::Media::Devices::Core::VariablePhotoSequenceController value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VariablePhotoSequenceController(put(value))); - return value; -} - -template Windows::Media::Devices::PhotoConfirmationControl impl_IAdvancedVideoCaptureDeviceController3::PhotoConfirmationControl() const -{ - Windows::Media::Devices::PhotoConfirmationControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PhotoConfirmationControl(put(value))); - return value; -} - -template Windows::Media::Devices::ZoomControl impl_IAdvancedVideoCaptureDeviceController3::ZoomControl() const -{ - Windows::Media::Devices::ZoomControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ZoomControl(put(value))); - return value; -} - -template Windows::Media::Devices::ExposurePriorityVideoControl impl_IAdvancedVideoCaptureDeviceController4::ExposurePriorityVideoControl() const -{ - Windows::Media::Devices::ExposurePriorityVideoControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ExposurePriorityVideoControl(put(value))); - return value; -} - -template Windows::Media::Devices::MediaCaptureOptimization impl_IAdvancedVideoCaptureDeviceController4::DesiredOptimization() const -{ - Windows::Media::Devices::MediaCaptureOptimization value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredOptimization(&value)); - return value; -} - -template void impl_IAdvancedVideoCaptureDeviceController4::DesiredOptimization(Windows::Media::Devices::MediaCaptureOptimization value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredOptimization(value)); -} - -template Windows::Media::Devices::HdrVideoControl impl_IAdvancedVideoCaptureDeviceController4::HdrVideoControl() const -{ - Windows::Media::Devices::HdrVideoControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HdrVideoControl(put(value))); - return value; -} - -template Windows::Media::Devices::OpticalImageStabilizationControl impl_IAdvancedVideoCaptureDeviceController4::OpticalImageStabilizationControl() const -{ - Windows::Media::Devices::OpticalImageStabilizationControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OpticalImageStabilizationControl(put(value))); - return value; -} - -template Windows::Media::Devices::AdvancedPhotoControl impl_IAdvancedVideoCaptureDeviceController4::AdvancedPhotoControl() const -{ - Windows::Media::Devices::AdvancedPhotoControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AdvancedPhotoControl(put(value))); - return value; -} - -template Windows::Media::Devices::MediaDeviceControlCapabilities impl_IMediaDeviceControl::Capabilities() const -{ - Windows::Media::Devices::MediaDeviceControlCapabilities value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Capabilities(put(value))); - return value; -} - -template bool impl_IMediaDeviceControl::TryGetValue(double & value) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetValue(&value, &succeeded)); - return succeeded; -} - -template bool impl_IMediaDeviceControl::TrySetValue(double value) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetValue(value, &succeeded)); - return succeeded; -} - -template bool impl_IMediaDeviceControl::TryGetAuto(bool & value) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetAuto(&value, &succeeded)); - return succeeded; -} - -template bool impl_IMediaDeviceControl::TrySetAuto(bool value) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetAuto(value, &succeeded)); - return succeeded; -} - -template bool impl_IMediaDeviceControlCapabilities::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template double impl_IMediaDeviceControlCapabilities::Min() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Min(&value)); - return value; -} - -template double impl_IMediaDeviceControlCapabilities::Max() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Max(&value)); - return value; -} - -template double impl_IMediaDeviceControlCapabilities::Step() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Step(&value)); - return value; -} - -template double impl_IMediaDeviceControlCapabilities::Default() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Default(&value)); - return value; -} - -template bool impl_IMediaDeviceControlCapabilities::AutoModeSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoModeSupported(&value)); - return value; -} - -template void impl_IAdvancedVideoCaptureDeviceController::SetDeviceProperty(hstring_ref propertyId, const Windows::IInspectable & propertyValue) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDeviceProperty(get(propertyId), get(propertyValue))); -} - -template Windows::IInspectable impl_IAdvancedVideoCaptureDeviceController::GetDeviceProperty(hstring_ref propertyId) const -{ - Windows::IInspectable propertyValue; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceProperty(get(propertyId), put(propertyValue))); - return propertyValue; -} - -template bool impl_ILowLagPhotoSequenceControl::Supported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&value)); - return value; -} - -template uint32_t impl_ILowLagPhotoSequenceControl::MaxPastPhotos() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPastPhotos(&value)); - return value; -} - -template float impl_ILowLagPhotoSequenceControl::MaxPhotosPerSecond() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPhotosPerSecond(&value)); - return value; -} - -template uint32_t impl_ILowLagPhotoSequenceControl::PastPhotoLimit() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PastPhotoLimit(&value)); - return value; -} - -template void impl_ILowLagPhotoSequenceControl::PastPhotoLimit(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PastPhotoLimit(value)); -} - -template float impl_ILowLagPhotoSequenceControl::PhotosPerSecondLimit() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_PhotosPerSecondLimit(&value)); - return value; -} - -template void impl_ILowLagPhotoSequenceControl::PhotosPerSecondLimit(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PhotosPerSecondLimit(value)); -} - -template Windows::Media::MediaProperties::MediaRatio impl_ILowLagPhotoSequenceControl::GetHighestConcurrentFrameRate(const Windows::Media::MediaProperties::IMediaEncodingProperties & captureProperties) const -{ - Windows::Media::MediaProperties::MediaRatio value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetHighestConcurrentFrameRate(get(captureProperties), put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaRatio impl_ILowLagPhotoSequenceControl::GetCurrentFrameRate() const -{ - Windows::Media::MediaProperties::MediaRatio value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentFrameRate(put(value))); - return value; -} - -template bool impl_ILowLagPhotoSequenceControl::ThumbnailEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ThumbnailEnabled(&value)); - return value; -} - -template void impl_ILowLagPhotoSequenceControl::ThumbnailEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ThumbnailEnabled(value)); -} - -template Windows::Media::MediaProperties::MediaThumbnailFormat impl_ILowLagPhotoSequenceControl::ThumbnailFormat() const -{ - Windows::Media::MediaProperties::MediaThumbnailFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_ThumbnailFormat(&value)); - return value; -} - -template void impl_ILowLagPhotoSequenceControl::ThumbnailFormat(Windows::Media::MediaProperties::MediaThumbnailFormat value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ThumbnailFormat(value)); -} - -template uint32_t impl_ILowLagPhotoSequenceControl::DesiredThumbnailSize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredThumbnailSize(&value)); - return value; -} - -template void impl_ILowLagPhotoSequenceControl::DesiredThumbnailSize(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredThumbnailSize(value)); -} - -template uint32_t impl_ILowLagPhotoSequenceControl::HardwareAcceleratedThumbnailSupported() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HardwareAcceleratedThumbnailSupported(&value)); - return value; -} - -template Windows::Media::MediaProperties::MediaRatio impl_ILowLagPhotoControl::GetHighestConcurrentFrameRate(const Windows::Media::MediaProperties::IMediaEncodingProperties & captureProperties) const -{ - Windows::Media::MediaProperties::MediaRatio value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetHighestConcurrentFrameRate(get(captureProperties), put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaRatio impl_ILowLagPhotoControl::GetCurrentFrameRate() const -{ - Windows::Media::MediaProperties::MediaRatio value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentFrameRate(put(value))); - return value; -} - -template bool impl_ILowLagPhotoControl::ThumbnailEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ThumbnailEnabled(&value)); - return value; -} - -template void impl_ILowLagPhotoControl::ThumbnailEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ThumbnailEnabled(value)); -} - -template Windows::Media::MediaProperties::MediaThumbnailFormat impl_ILowLagPhotoControl::ThumbnailFormat() const -{ - Windows::Media::MediaProperties::MediaThumbnailFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_ThumbnailFormat(&value)); - return value; -} - -template void impl_ILowLagPhotoControl::ThumbnailFormat(Windows::Media::MediaProperties::MediaThumbnailFormat value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ThumbnailFormat(value)); -} - -template uint32_t impl_ILowLagPhotoControl::DesiredThumbnailSize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredThumbnailSize(&value)); - return value; -} - -template void impl_ILowLagPhotoControl::DesiredThumbnailSize(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredThumbnailSize(value)); -} - -template uint32_t impl_ILowLagPhotoControl::HardwareAcceleratedThumbnailSupported() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HardwareAcceleratedThumbnailSupported(&value)); - return value; -} - -template bool impl_IPhotoConfirmationControl::Supported() const -{ - bool pbSupported {}; - check_hresult(static_cast(static_cast(*this))->get_Supported(&pbSupported)); - return pbSupported; -} - -template bool impl_IPhotoConfirmationControl::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template void impl_IPhotoConfirmationControl::Enabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(value)); -} - -template Windows::Media::MediaProperties::MediaPixelFormat impl_IPhotoConfirmationControl::PixelFormat() const -{ - Windows::Media::MediaProperties::MediaPixelFormat format {}; - check_hresult(static_cast(static_cast(*this))->get_PixelFormat(&format)); - return format; -} - -template void impl_IPhotoConfirmationControl::PixelFormat(Windows::Media::MediaProperties::MediaPixelFormat format) const -{ - check_hresult(static_cast(static_cast(*this))->put_PixelFormat(format)); -} - -template void impl_IDialRequestedEventArgs::Handled() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Handled()); -} - -template Windows::IInspectable impl_IDialRequestedEventArgs::Contact() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template void impl_IRedialRequestedEventArgs::Handled() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Handled()); -} - -template Windows::Media::Devices::TelephonyKey impl_IKeypadPressedEventArgs::TelephonyKey() const -{ - Windows::Media::Devices::TelephonyKey telephonyKey {}; - check_hresult(static_cast(static_cast(*this))->get_TelephonyKey(&telephonyKey)); - return telephonyKey; -} - -template uint64_t impl_ICallControl::IndicateNewIncomingCall(bool enableRinger, hstring_ref callerId) const -{ - uint64_t callToken {}; - check_hresult(static_cast(static_cast(*this))->abi_IndicateNewIncomingCall(enableRinger, get(callerId), &callToken)); - return callToken; -} - -template uint64_t impl_ICallControl::IndicateNewOutgoingCall() const -{ - uint64_t callToken {}; - check_hresult(static_cast(static_cast(*this))->abi_IndicateNewOutgoingCall(&callToken)); - return callToken; -} - -template void impl_ICallControl::IndicateActiveCall(uint64_t callToken) const -{ - check_hresult(static_cast(static_cast(*this))->abi_IndicateActiveCall(callToken)); -} - -template void impl_ICallControl::EndCall(uint64_t callToken) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EndCall(callToken)); -} - -template bool impl_ICallControl::HasRinger() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasRinger(&value)); - return value; -} - -template event_token impl_ICallControl::AnswerRequested(const Windows::Media::Devices::CallControlEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AnswerRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ICallControl::AnswerRequested(auto_revoke_t, const Windows::Media::Devices::CallControlEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Devices::ICallControl::remove_AnswerRequested, AnswerRequested(handler)); -} - -template void impl_ICallControl::AnswerRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AnswerRequested(token)); -} - -template event_token impl_ICallControl::HangUpRequested(const Windows::Media::Devices::CallControlEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_HangUpRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ICallControl::HangUpRequested(auto_revoke_t, const Windows::Media::Devices::CallControlEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Devices::ICallControl::remove_HangUpRequested, HangUpRequested(handler)); -} - -template void impl_ICallControl::HangUpRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HangUpRequested(token)); -} - -template event_token impl_ICallControl::DialRequested(const Windows::Media::Devices::DialRequestedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DialRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ICallControl::DialRequested(auto_revoke_t, const Windows::Media::Devices::DialRequestedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Devices::ICallControl::remove_DialRequested, DialRequested(handler)); -} - -template void impl_ICallControl::DialRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DialRequested(token)); -} - -template event_token impl_ICallControl::RedialRequested(const Windows::Media::Devices::RedialRequestedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RedialRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ICallControl::RedialRequested(auto_revoke_t, const Windows::Media::Devices::RedialRequestedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Devices::ICallControl::remove_RedialRequested, RedialRequested(handler)); -} - -template void impl_ICallControl::RedialRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RedialRequested(token)); -} - -template event_token impl_ICallControl::KeypadPressed(const Windows::Media::Devices::KeypadPressedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_KeypadPressed(get(handler), &token)); - return token; -} - -template event_revoker impl_ICallControl::KeypadPressed(auto_revoke_t, const Windows::Media::Devices::KeypadPressedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Devices::ICallControl::remove_KeypadPressed, KeypadPressed(handler)); -} - -template void impl_ICallControl::KeypadPressed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_KeypadPressed(token)); -} - -template event_token impl_ICallControl::AudioTransferRequested(const Windows::Media::Devices::CallControlEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AudioTransferRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ICallControl::AudioTransferRequested(auto_revoke_t, const Windows::Media::Devices::CallControlEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Devices::ICallControl::remove_AudioTransferRequested, AudioTransferRequested(handler)); -} - -template void impl_ICallControl::AudioTransferRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AudioTransferRequested(token)); -} - -template Windows::Media::Devices::CallControl impl_ICallControlStatics::GetDefault() const -{ - Windows::Media::Devices::CallControl callControl { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(callControl))); - return callControl; -} - -template Windows::Media::Devices::CallControl impl_ICallControlStatics::FromId(hstring_ref deviceId) const -{ - Windows::Media::Devices::CallControl callControl { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromId(get(deviceId), put(callControl))); - return callControl; -} - -inline AdvancedPhotoCaptureSettings::AdvancedPhotoCaptureSettings() : - AdvancedPhotoCaptureSettings(activate_instance()) -{} - -inline Windows::Media::Devices::CallControl CallControl::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Media::Devices::CallControl CallControl::FromId(hstring_ref deviceId) -{ - return get_activation_factory().FromId(deviceId); -} - -inline FocusSettings::FocusSettings() : - FocusSettings(activate_instance()) -{} - -inline hstring MediaDevice::GetAudioCaptureSelector() -{ - return get_activation_factory().GetAudioCaptureSelector(); -} - -inline hstring MediaDevice::GetAudioRenderSelector() -{ - return get_activation_factory().GetAudioRenderSelector(); -} - -inline hstring MediaDevice::GetVideoCaptureSelector() -{ - return get_activation_factory().GetVideoCaptureSelector(); -} - -inline hstring MediaDevice::GetDefaultAudioCaptureId(Windows::Media::Devices::AudioDeviceRole role) -{ - return get_activation_factory().GetDefaultAudioCaptureId(role); -} - -inline hstring MediaDevice::GetDefaultAudioRenderId(Windows::Media::Devices::AudioDeviceRole role) -{ - return get_activation_factory().GetDefaultAudioRenderId(role); -} - -inline event_token MediaDevice::DefaultAudioCaptureDeviceChanged(const Windows::Foundation::TypedEventHandler & handler) -{ - return get_activation_factory().DefaultAudioCaptureDeviceChanged(handler); -} - -inline factory_event_revoker MediaDevice::DefaultAudioCaptureDeviceChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::Devices::IMediaDeviceStatics::remove_DefaultAudioCaptureDeviceChanged, factory.DefaultAudioCaptureDeviceChanged(handler) }; -} - -inline void MediaDevice::DefaultAudioCaptureDeviceChanged(event_token cookie) -{ - get_activation_factory().DefaultAudioCaptureDeviceChanged(cookie); -} - -inline event_token MediaDevice::DefaultAudioRenderDeviceChanged(const Windows::Foundation::TypedEventHandler & handler) -{ - return get_activation_factory().DefaultAudioRenderDeviceChanged(handler); -} - -inline factory_event_revoker MediaDevice::DefaultAudioRenderDeviceChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::Devices::IMediaDeviceStatics::remove_DefaultAudioRenderDeviceChanged, factory.DefaultAudioRenderDeviceChanged(handler) }; -} - -inline void MediaDevice::DefaultAudioRenderDeviceChanged(event_token cookie) -{ - get_activation_factory().DefaultAudioRenderDeviceChanged(cookie); -} - -inline RegionOfInterest::RegionOfInterest() : - RegionOfInterest(activate_instance()) -{} - -inline ZoomSettings::ZoomSettings() : - ZoomSettings(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.DialProtocol.h b/10.0.14393.0/winrt/Windows.Media.DialProtocol.h deleted file mode 100644 index 886b137b4..000000000 --- a/10.0.14393.0/winrt/Windows.Media.DialProtocol.h +++ /dev/null @@ -1,699 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Popups.3.h" -#include "internal/Windows.Media.DialProtocol.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestLaunchAsync(abi_arg_in appArgument, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequestLaunchAsync(*reinterpret_cast(&appArgument))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().StopAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppStateAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetAppStateAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_State(Windows::Media::DialProtocol::DialAppState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FullXml(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FullXml()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDialApp(abi_arg_in appName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDialApp(*reinterpret_cast(&appName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Filter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Filter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Appearance(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Appearance()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DialDeviceSelected(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DialDeviceSelected(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DialDeviceSelected(event_token token) noexcept override - { - try - { - this->shim().DialDeviceSelected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DisconnectButtonClicked(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DisconnectButtonClicked(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DisconnectButtonClicked(event_token token) noexcept override - { - try - { - this->shim().DisconnectButtonClicked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DialDevicePickerDismissed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DialDevicePickerDismissed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DialDevicePickerDismissed(event_token token) noexcept override - { - try - { - this->shim().DialDevicePickerDismissed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Show(abi_arg_in selection) noexcept override - { - try - { - this->shim().Show(*reinterpret_cast(&selection)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowWithPlacement(abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement) noexcept override - { - try - { - this->shim().Show(*reinterpret_cast(&selection), preferredPlacement); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickSingleDialDeviceAsync(abi_arg_in selection, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PickSingleDialDeviceAsync(*reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickSingleDialDeviceAsyncWithPlacement(abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PickSingleDialDeviceAsync(*reinterpret_cast(&selection), preferredPlacement)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Hide() noexcept override - { - try - { - this->shim().Hide(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDisplayStatus(abi_arg_in device, Windows::Media::DialProtocol::DialDeviceDisplayStatus status) noexcept override - { - try - { - this->shim().SetDisplayStatus(*reinterpret_cast(&device), status); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SupportedAppNames(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedAppNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedDialDevice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedDialDevice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_in appName, abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelector(*reinterpret_cast(&appName))); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromIdAsync(abi_arg_in value, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeviceInfoSupportsDialAsync(abi_arg_in device, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().DeviceInfoSupportsDialAsync(*reinterpret_cast(&device))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Device(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Device()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::DialProtocol { - -template Windows::Media::DialProtocol::DialAppState impl_IDialAppStateDetails::State() const -{ - Windows::Media::DialProtocol::DialAppState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template hstring impl_IDialAppStateDetails::FullXml() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FullXml(put(value))); - return value; -} - -template hstring impl_IDialApp::AppName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppName(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDialApp::RequestLaunchAsync(hstring_ref appArgument) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_RequestLaunchAsync(get(appArgument), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDialApp::StopAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_StopAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDialApp::GetAppStateAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetAppStateAsync(put(value))); - return value; -} - -template hstring impl_IDialDevice::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Media::DialProtocol::DialApp impl_IDialDevice::GetDialApp(hstring_ref appName) const -{ - Windows::Media::DialProtocol::DialApp value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDialApp(get(appName), put(value))); - return value; -} - -template hstring impl_IDialDevice2::FriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FriendlyName(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IDialDevice2::Thumbnail() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template hstring impl_IDialDeviceStatics::GetDeviceSelector(hstring_ref appName) const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(get(appName), put(selector))); - return selector; -} - -template Windows::Foundation::IAsyncOperation impl_IDialDeviceStatics::FromIdAsync(hstring_ref value) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(value), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDialDeviceStatics::DeviceInfoSupportsDialAsync(const Windows::Devices::Enumeration::DeviceInformation & device) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_DeviceInfoSupportsDialAsync(get(device), put(operation))); - return operation; -} - -template Windows::Media::DialProtocol::DialDevice impl_IDialDeviceSelectedEventArgs::SelectedDialDevice() const -{ - Windows::Media::DialProtocol::DialDevice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedDialDevice(put(value))); - return value; -} - -template Windows::Media::DialProtocol::DialDevice impl_IDialDisconnectButtonClickedEventArgs::Device() const -{ - Windows::Media::DialProtocol::DialDevice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Device(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IDialDevicePickerFilter::SupportedAppNames() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SupportedAppNames(put(value))); - return value; -} - -template Windows::Media::DialProtocol::DialDevicePickerFilter impl_IDialDevicePicker::Filter() const -{ - Windows::Media::DialProtocol::DialDevicePickerFilter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Filter(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DevicePickerAppearance impl_IDialDevicePicker::Appearance() const -{ - Windows::Devices::Enumeration::DevicePickerAppearance value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Appearance(put(value))); - return value; -} - -template event_token impl_IDialDevicePicker::DialDeviceSelected(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DialDeviceSelected(get(handler), &token)); - return token; -} - -template event_revoker impl_IDialDevicePicker::DialDeviceSelected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::DialProtocol::IDialDevicePicker::remove_DialDeviceSelected, DialDeviceSelected(handler)); -} - -template void impl_IDialDevicePicker::DialDeviceSelected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DialDeviceSelected(token)); -} - -template event_token impl_IDialDevicePicker::DisconnectButtonClicked(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DisconnectButtonClicked(get(handler), &token)); - return token; -} - -template event_revoker impl_IDialDevicePicker::DisconnectButtonClicked(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::DialProtocol::IDialDevicePicker::remove_DisconnectButtonClicked, DisconnectButtonClicked(handler)); -} - -template void impl_IDialDevicePicker::DisconnectButtonClicked(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DisconnectButtonClicked(token)); -} - -template event_token impl_IDialDevicePicker::DialDevicePickerDismissed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DialDevicePickerDismissed(get(handler), &token)); - return token; -} - -template event_revoker impl_IDialDevicePicker::DialDevicePickerDismissed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::DialProtocol::IDialDevicePicker::remove_DialDevicePickerDismissed, DialDevicePickerDismissed(handler)); -} - -template void impl_IDialDevicePicker::DialDevicePickerDismissed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DialDevicePickerDismissed(token)); -} - -template void impl_IDialDevicePicker::Show(const Windows::Foundation::Rect & selection) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Show(get(selection))); -} - -template void impl_IDialDevicePicker::Show(const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowWithPlacement(get(selection), preferredPlacement)); -} - -template Windows::Foundation::IAsyncOperation impl_IDialDevicePicker::PickSingleDialDeviceAsync(const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PickSingleDialDeviceAsync(get(selection), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDialDevicePicker::PickSingleDialDeviceAsync(const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PickSingleDialDeviceAsyncWithPlacement(get(selection), preferredPlacement, put(operation))); - return operation; -} - -template void impl_IDialDevicePicker::Hide() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Hide()); -} - -template void impl_IDialDevicePicker::SetDisplayStatus(const Windows::Media::DialProtocol::DialDevice & device, Windows::Media::DialProtocol::DialDeviceDisplayStatus status) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDisplayStatus(get(device), status)); -} - -inline hstring DialDevice::GetDeviceSelector(hstring_ref appName) -{ - return get_activation_factory().GetDeviceSelector(appName); -} - -inline Windows::Foundation::IAsyncOperation DialDevice::FromIdAsync(hstring_ref value) -{ - return get_activation_factory().FromIdAsync(value); -} - -inline Windows::Foundation::IAsyncOperation DialDevice::DeviceInfoSupportsDialAsync(const Windows::Devices::Enumeration::DeviceInformation & device) -{ - return get_activation_factory().DeviceInfoSupportsDialAsync(device); -} - -inline DialDevicePicker::DialDevicePicker() : - DialDevicePicker(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Editing.h b/10.0.14393.0/winrt/Windows.Media.Editing.h deleted file mode 100644 index 5c8ac33ec..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Editing.h +++ /dev/null @@ -1,1591 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.MediaProperties.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Media.Core.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Graphics.DirectX.Direct3D11.3.h" -#include "internal/Windows.Media.Effects.3.h" -#include "internal/Windows.Media.Editing.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TrimTimeFromStart(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrimTimeFromStart()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TrimTimeFromStart(abi_arg_in value) noexcept override - { - try - { - this->shim().TrimTimeFromStart(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrimTimeFromEnd(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrimTimeFromEnd()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TrimTimeFromEnd(abi_arg_in value) noexcept override - { - try - { - this->shim().TrimTimeFromEnd(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OriginalDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OriginalDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrimmedDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrimmedDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserData(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().UserData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Delay(abi_arg_in value) noexcept override - { - try - { - this->shim().Delay(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Delay(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Delay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Volume(double value) noexcept override - { - try - { - this->shim().Volume(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Volume(double * value) noexcept override - { - try - { - *value = detach(this->shim().Volume()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Clone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAudioEncodingProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAudioEncodingProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioEffectDefinitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AudioEffectDefinitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromEmbeddedAudioTrack(abi_arg_in embeddedAudioTrack, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromEmbeddedAudioTrack(*reinterpret_cast(&embeddedAudioTrack))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromFileAsync(abi_arg_in file, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFromFileAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAudioEncodingProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAudioEncodingProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TrimTimeFromStart(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrimTimeFromStart()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TrimTimeFromStart(abi_arg_in value) noexcept override - { - try - { - this->shim().TrimTimeFromStart(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrimTimeFromEnd(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrimTimeFromEnd()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TrimTimeFromEnd(abi_arg_in value) noexcept override - { - try - { - this->shim().TrimTimeFromEnd(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OriginalDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OriginalDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrimmedDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrimmedDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserData(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().UserData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clone(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Clone()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartTimeInComposition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTimeInComposition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndTimeInComposition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EndTimeInComposition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmbeddedAudioTracks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EmbeddedAudioTracks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedEmbeddedAudioTrackIndex(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedEmbeddedAudioTrackIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedEmbeddedAudioTrackIndex(uint32_t value) noexcept override - { - try - { - this->shim().SelectedEmbeddedAudioTrackIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Volume(double value) noexcept override - { - try - { - this->shim().Volume(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Volume(double * value) noexcept override - { - try - { - *value = detach(this->shim().Volume()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVideoEncodingProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetVideoEncodingProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioEffectDefinitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AudioEffectDefinitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoEffectDefinitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().VideoEffectDefinitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromColor(abi_arg_in color, abi_arg_in originalDuration, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromColor(*reinterpret_cast(&color), *reinterpret_cast(&originalDuration))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromFileAsync(abi_arg_in file, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFromFileAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromImageFileAsync(abi_arg_in file, abi_arg_in originalDuration, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFromImageFileAsync(*reinterpret_cast(&file), *reinterpret_cast(&originalDuration))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromSurface(abi_arg_in surface, abi_arg_in originalDuration, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFromSurface(*reinterpret_cast(&surface), *reinterpret_cast(&originalDuration))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Clips(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Clips()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundAudioTracks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundAudioTracks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserData(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().UserData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clone(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Clone()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsync(abi_arg_in file, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SaveAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetThumbnailAsync(abi_arg_in timeFromStart, int32_t scaledWidth, int32_t scaledHeight, Windows::Media::Editing::VideoFramePrecision framePrecision, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetThumbnailAsync(*reinterpret_cast(&timeFromStart), scaledWidth, scaledHeight, framePrecision)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetThumbnailsAsync(abi_arg_in> timesFromStart, int32_t scaledWidth, int32_t scaledHeight, Windows::Media::Editing::VideoFramePrecision framePrecision, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetThumbnailsAsync(*reinterpret_cast *>(×FromStart), scaledWidth, scaledHeight, framePrecision)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RenderToFileAsync(abi_arg_in destination, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RenderToFileAsync(*reinterpret_cast(&destination))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RenderToFileWithTrimmingPreferenceAsync(abi_arg_in destination, Windows::Media::Editing::MediaTrimmingPreference trimmingPreference, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RenderToFileAsync(*reinterpret_cast(&destination), trimmingPreference)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RenderToFileWithProfileAsync(abi_arg_in destination, Windows::Media::Editing::MediaTrimmingPreference trimmingPreference, abi_arg_in encodingProfile, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RenderToFileAsync(*reinterpret_cast(&destination), trimmingPreference, *reinterpret_cast(&encodingProfile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDefaultEncodingProfile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateDefaultEncodingProfile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GenerateMediaStreamSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GenerateMediaStreamSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GenerateMediaStreamSourceWithProfile(abi_arg_in encodingProfile, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GenerateMediaStreamSource(*reinterpret_cast(&encodingProfile))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GeneratePreviewMediaStreamSource(int32_t scaledWidth, int32_t scaledHeight, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GeneratePreviewMediaStreamSource(scaledWidth, scaledHeight)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OverlayLayers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().OverlayLayers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LoadAsync(abi_arg_in file, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LoadAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Position(abi_arg_in value) noexcept override - { - try - { - this->shim().Position(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Delay(abi_arg_in value) noexcept override - { - try - { - this->shim().Delay(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Delay(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Delay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Opacity(double * value) noexcept override - { - try - { - *value = detach(this->shim().Opacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Opacity(double value) noexcept override - { - try - { - this->shim().Opacity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clone(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Clone()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Clip(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Clip()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AudioEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioEnabled(bool value) noexcept override - { - try - { - this->shim().AudioEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in clip, abi_arg_out mediaOverlay) noexcept override - { - try - { - *mediaOverlay = detach(this->shim().Create(*reinterpret_cast(&clip))); - return S_OK; - } - catch (...) - { - *mediaOverlay = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithPositionAndOpacity(abi_arg_in clip, abi_arg_in position, double opacity, abi_arg_out mediaOverlay) noexcept override - { - try - { - *mediaOverlay = detach(this->shim().CreateWithPositionAndOpacity(*reinterpret_cast(&clip), *reinterpret_cast(&position), opacity)); - return S_OK; - } - catch (...) - { - *mediaOverlay = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Clone(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Clone()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Overlays(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Overlays()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomCompositorDefinition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomCompositorDefinition()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithCompositorDefinition(abi_arg_in compositorDefinition, abi_arg_out mediaOverlayLayer) noexcept override - { - try - { - *mediaOverlayLayer = detach(this->shim().CreateWithCompositorDefinition(*reinterpret_cast(&compositorDefinition))); - return S_OK; - } - catch (...) - { - *mediaOverlayLayer = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Editing { - -template Windows::Foundation::TimeSpan impl_IMediaClip::TrimTimeFromStart() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TrimTimeFromStart(put(value))); - return value; -} - -template void impl_IMediaClip::TrimTimeFromStart(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TrimTimeFromStart(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaClip::TrimTimeFromEnd() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TrimTimeFromEnd(put(value))); - return value; -} - -template void impl_IMediaClip::TrimTimeFromEnd(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TrimTimeFromEnd(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaClip::OriginalDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_OriginalDuration(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaClip::TrimmedDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TrimmedDuration(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IMediaClip::UserData() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_UserData(put(value))); - return value; -} - -template Windows::Media::Editing::MediaClip impl_IMediaClip::Clone() const -{ - Windows::Media::Editing::MediaClip result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Clone(put(result))); - return result; -} - -template Windows::Foundation::TimeSpan impl_IMediaClip::StartTimeInComposition() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_StartTimeInComposition(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaClip::EndTimeInComposition() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_EndTimeInComposition(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaClip::EmbeddedAudioTracks() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_EmbeddedAudioTracks(put(value))); - return value; -} - -template uint32_t impl_IMediaClip::SelectedEmbeddedAudioTrackIndex() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedEmbeddedAudioTrackIndex(&value)); - return value; -} - -template void impl_IMediaClip::SelectedEmbeddedAudioTrackIndex(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedEmbeddedAudioTrackIndex(value)); -} - -template void impl_IMediaClip::Volume(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Volume(value)); -} - -template double impl_IMediaClip::Volume() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Volume(&value)); - return value; -} - -template Windows::Media::MediaProperties::VideoEncodingProperties impl_IMediaClip::GetVideoEncodingProperties() const -{ - Windows::Media::MediaProperties::VideoEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetVideoEncodingProperties(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IMediaClip::AudioEffectDefinitions() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_AudioEffectDefinitions(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IMediaClip::VideoEffectDefinitions() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_VideoEffectDefinitions(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaComposition::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IMediaComposition::Clips() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Clips(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IMediaComposition::BackgroundAudioTracks() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_BackgroundAudioTracks(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IMediaComposition::UserData() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_UserData(put(value))); - return value; -} - -template Windows::Media::Editing::MediaComposition impl_IMediaComposition::Clone() const -{ - Windows::Media::Editing::MediaComposition result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Clone(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IMediaComposition::SaveAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsync(get(file), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaComposition::GetThumbnailAsync(const Windows::Foundation::TimeSpan & timeFromStart, int32_t scaledWidth, int32_t scaledHeight, Windows::Media::Editing::VideoFramePrecision framePrecision) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetThumbnailAsync(get(timeFromStart), scaledWidth, scaledHeight, framePrecision, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IMediaComposition::GetThumbnailsAsync(const Windows::Foundation::Collections::IIterable & timesFromStart, int32_t scaledWidth, int32_t scaledHeight, Windows::Media::Editing::VideoFramePrecision framePrecision) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetThumbnailsAsync(get(timesFromStart), scaledWidth, scaledHeight, framePrecision, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IMediaComposition::RenderToFileAsync(const Windows::Storage::IStorageFile & destination) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_RenderToFileAsync(get(destination), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IMediaComposition::RenderToFileAsync(const Windows::Storage::IStorageFile & destination, Windows::Media::Editing::MediaTrimmingPreference trimmingPreference) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_RenderToFileWithTrimmingPreferenceAsync(get(destination), trimmingPreference, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IMediaComposition::RenderToFileAsync(const Windows::Storage::IStorageFile & destination, Windows::Media::Editing::MediaTrimmingPreference trimmingPreference, const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_RenderToFileWithProfileAsync(get(destination), trimmingPreference, get(encodingProfile), put(operation))); - return operation; -} - -template Windows::Media::MediaProperties::MediaEncodingProfile impl_IMediaComposition::CreateDefaultEncodingProfile() const -{ - Windows::Media::MediaProperties::MediaEncodingProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDefaultEncodingProfile(put(value))); - return value; -} - -template Windows::Media::Core::MediaStreamSource impl_IMediaComposition::GenerateMediaStreamSource() const -{ - Windows::Media::Core::MediaStreamSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GenerateMediaStreamSource(put(value))); - return value; -} - -template Windows::Media::Core::MediaStreamSource impl_IMediaComposition::GenerateMediaStreamSource(const Windows::Media::MediaProperties::MediaEncodingProfile & encodingProfile) const -{ - Windows::Media::Core::MediaStreamSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GenerateMediaStreamSourceWithProfile(get(encodingProfile), put(value))); - return value; -} - -template Windows::Media::Core::MediaStreamSource impl_IMediaComposition::GeneratePreviewMediaStreamSource(int32_t scaledWidth, int32_t scaledHeight) const -{ - Windows::Media::Core::MediaStreamSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GeneratePreviewMediaStreamSource(scaledWidth, scaledHeight, put(value))); - return value; -} - -template Windows::Media::Editing::MediaClip impl_IMediaClipStatics::CreateFromColor(const Windows::UI::Color & color, const Windows::Foundation::TimeSpan & originalDuration) const -{ - Windows::Media::Editing::MediaClip value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromColor(get(color), get(originalDuration), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaClipStatics::CreateFromFileAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromFileAsync(get(file), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaClipStatics::CreateFromImageFileAsync(const Windows::Storage::IStorageFile & file, const Windows::Foundation::TimeSpan & originalDuration) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromImageFileAsync(get(file), get(originalDuration), put(operation))); - return operation; -} - -template Windows::Media::Editing::MediaClip impl_IMediaClipStatics2::CreateFromSurface(const Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface & surface, const Windows::Foundation::TimeSpan & originalDuration) const -{ - Windows::Media::Editing::MediaClip value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromSurface(get(surface), get(originalDuration), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaCompositionStatics::LoadAsync(const Windows::Storage::StorageFile & file) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LoadAsync(get(file), put(operation))); - return operation; -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IEmbeddedAudioTrack::GetAudioEncodingProperties() const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAudioEncodingProperties(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IBackgroundAudioTrack::TrimTimeFromStart() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TrimTimeFromStart(put(value))); - return value; -} - -template void impl_IBackgroundAudioTrack::TrimTimeFromStart(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TrimTimeFromStart(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IBackgroundAudioTrack::TrimTimeFromEnd() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TrimTimeFromEnd(put(value))); - return value; -} - -template void impl_IBackgroundAudioTrack::TrimTimeFromEnd(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TrimTimeFromEnd(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IBackgroundAudioTrack::OriginalDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_OriginalDuration(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IBackgroundAudioTrack::TrimmedDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TrimmedDuration(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IBackgroundAudioTrack::UserData() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_UserData(put(value))); - return value; -} - -template void impl_IBackgroundAudioTrack::Delay(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Delay(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IBackgroundAudioTrack::Delay() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Delay(put(value))); - return value; -} - -template void impl_IBackgroundAudioTrack::Volume(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Volume(value)); -} - -template double impl_IBackgroundAudioTrack::Volume() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Volume(&value)); - return value; -} - -template Windows::Media::Editing::BackgroundAudioTrack impl_IBackgroundAudioTrack::Clone() const -{ - Windows::Media::Editing::BackgroundAudioTrack value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Clone(put(value))); - return value; -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IBackgroundAudioTrack::GetAudioEncodingProperties() const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAudioEncodingProperties(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IBackgroundAudioTrack::AudioEffectDefinitions() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_AudioEffectDefinitions(put(value))); - return value; -} - -template Windows::Media::Editing::BackgroundAudioTrack impl_IBackgroundAudioTrackStatics::CreateFromEmbeddedAudioTrack(const Windows::Media::Editing::EmbeddedAudioTrack & embeddedAudioTrack) const -{ - Windows::Media::Editing::BackgroundAudioTrack value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromEmbeddedAudioTrack(get(embeddedAudioTrack), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBackgroundAudioTrackStatics::CreateFromFileAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromFileAsync(get(file), put(operation))); - return operation; -} - -template Windows::Foundation::Collections::IVector impl_IMediaComposition2::OverlayLayers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_OverlayLayers(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IMediaOverlay::Position() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template void impl_IMediaOverlay::Position(const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Position(get(value))); -} - -template void impl_IMediaOverlay::Delay(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Delay(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaOverlay::Delay() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Delay(put(value))); - return value; -} - -template double impl_IMediaOverlay::Opacity() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Opacity(&value)); - return value; -} - -template void impl_IMediaOverlay::Opacity(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Opacity(value)); -} - -template Windows::Media::Editing::MediaOverlay impl_IMediaOverlay::Clone() const -{ - Windows::Media::Editing::MediaOverlay result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Clone(put(result))); - return result; -} - -template Windows::Media::Editing::MediaClip impl_IMediaOverlay::Clip() const -{ - Windows::Media::Editing::MediaClip value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Clip(put(value))); - return value; -} - -template bool impl_IMediaOverlay::AudioEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioEnabled(&value)); - return value; -} - -template void impl_IMediaOverlay::AudioEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioEnabled(value)); -} - -template Windows::Media::Editing::MediaOverlay impl_IMediaOverlayFactory::Create(const Windows::Media::Editing::MediaClip & clip) const -{ - Windows::Media::Editing::MediaOverlay mediaOverlay { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(clip), put(mediaOverlay))); - return mediaOverlay; -} - -template Windows::Media::Editing::MediaOverlay impl_IMediaOverlayFactory::CreateWithPositionAndOpacity(const Windows::Media::Editing::MediaClip & clip, const Windows::Foundation::Rect & position, double opacity) const -{ - Windows::Media::Editing::MediaOverlay mediaOverlay { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithPositionAndOpacity(get(clip), get(position), opacity, put(mediaOverlay))); - return mediaOverlay; -} - -template Windows::Media::Editing::MediaOverlayLayer impl_IMediaOverlayLayerFactory::CreateWithCompositorDefinition(const Windows::Media::Effects::IVideoCompositorDefinition & compositorDefinition) const -{ - Windows::Media::Editing::MediaOverlayLayer mediaOverlayLayer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithCompositorDefinition(get(compositorDefinition), put(mediaOverlayLayer))); - return mediaOverlayLayer; -} - -template Windows::Media::Editing::MediaOverlayLayer impl_IMediaOverlayLayer::Clone() const -{ - Windows::Media::Editing::MediaOverlayLayer result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Clone(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IMediaOverlayLayer::Overlays() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Overlays(put(value))); - return value; -} - -template Windows::Media::Effects::IVideoCompositorDefinition impl_IMediaOverlayLayer::CustomCompositorDefinition() const -{ - Windows::Media::Effects::IVideoCompositorDefinition value; - check_hresult(static_cast(static_cast(*this))->get_CustomCompositorDefinition(put(value))); - return value; -} - -inline Windows::Media::Editing::BackgroundAudioTrack BackgroundAudioTrack::CreateFromEmbeddedAudioTrack(const Windows::Media::Editing::EmbeddedAudioTrack & embeddedAudioTrack) -{ - return get_activation_factory().CreateFromEmbeddedAudioTrack(embeddedAudioTrack); -} - -inline Windows::Foundation::IAsyncOperation BackgroundAudioTrack::CreateFromFileAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().CreateFromFileAsync(file); -} - -inline Windows::Media::Editing::MediaClip MediaClip::CreateFromColor(const Windows::UI::Color & color, const Windows::Foundation::TimeSpan & originalDuration) -{ - return get_activation_factory().CreateFromColor(color, originalDuration); -} - -inline Windows::Foundation::IAsyncOperation MediaClip::CreateFromFileAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().CreateFromFileAsync(file); -} - -inline Windows::Foundation::IAsyncOperation MediaClip::CreateFromImageFileAsync(const Windows::Storage::IStorageFile & file, const Windows::Foundation::TimeSpan & originalDuration) -{ - return get_activation_factory().CreateFromImageFileAsync(file, originalDuration); -} - -inline Windows::Media::Editing::MediaClip MediaClip::CreateFromSurface(const Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface & surface, const Windows::Foundation::TimeSpan & originalDuration) -{ - return get_activation_factory().CreateFromSurface(surface, originalDuration); -} - -inline MediaComposition::MediaComposition() : - MediaComposition(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation MediaComposition::LoadAsync(const Windows::Storage::StorageFile & file) -{ - return get_activation_factory().LoadAsync(file); -} - -inline MediaOverlay::MediaOverlay(const Windows::Media::Editing::MediaClip & clip) : - MediaOverlay(get_activation_factory().Create(clip)) -{} - -inline MediaOverlay::MediaOverlay(const Windows::Media::Editing::MediaClip & clip, const Windows::Foundation::Rect & position, double opacity) : - MediaOverlay(get_activation_factory().CreateWithPositionAndOpacity(clip, position, opacity)) -{} - -inline MediaOverlayLayer::MediaOverlayLayer() : - MediaOverlayLayer(activate_instance()) -{} - -inline MediaOverlayLayer::MediaOverlayLayer(const Windows::Media::Effects::IVideoCompositorDefinition & compositorDefinition) : - MediaOverlayLayer(get_activation_factory().CreateWithCompositorDefinition(compositorDefinition)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Effects.h b/10.0.14393.0/winrt/Windows.Media.Effects.h deleted file mode 100644 index df53e5fde..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Effects.h +++ /dev/null @@ -1,1494 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.3.h" -#include "internal/Windows.Graphics.DirectX.Direct3D11.3.h" -#include "internal/Windows.Media.Editing.3.h" -#include "internal/Windows.Media.Render.3.h" -#include "internal/Windows.Media.Capture.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Media.MediaProperties.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Media.Transcoding.3.h" -#include "internal/Windows.Media.Effects.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall add_AudioCaptureEffectsChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AudioCaptureEffectsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AudioCaptureEffectsChanged(event_token token) noexcept override - { - try - { - this->shim().AudioCaptureEffectsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAudioCaptureEffects(abi_arg_out> effects) noexcept override - { - try - { - *effects = detach(this->shim().GetAudioCaptureEffects()); - return S_OK; - } - catch (...) - { - *effects = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AudioEffectType(Windows::Media::Effects::AudioEffectType * value) noexcept override - { - try - { - *value = detach(this->shim().AudioEffectType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ActivatableClassId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActivatableClassId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in activatableClassId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&activatableClassId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithProperties(abi_arg_in activatableClassId, abi_arg_in props, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithProperties(*reinterpret_cast(&activatableClassId), *reinterpret_cast(&props))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateAudioRenderEffectsManager(abi_arg_in deviceId, Windows::Media::Render::AudioRenderCategory category, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateAudioRenderEffectsManager(*reinterpret_cast(&deviceId), category)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAudioRenderEffectsManagerWithMode(abi_arg_in deviceId, Windows::Media::Render::AudioRenderCategory category, Windows::Media::AudioProcessing mode, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateAudioRenderEffectsManager(*reinterpret_cast(&deviceId), category, mode)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAudioCaptureEffectsManager(abi_arg_in deviceId, Windows::Media::Capture::MediaCategory category, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateAudioCaptureEffectsManager(*reinterpret_cast(&deviceId), category)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAudioCaptureEffectsManagerWithMode(abi_arg_in deviceId, Windows::Media::Capture::MediaCategory category, Windows::Media::AudioProcessing mode, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateAudioCaptureEffectsManager(*reinterpret_cast(&deviceId), category, mode)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_AudioRenderEffectsChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AudioRenderEffectsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AudioRenderEffectsChanged(event_token token) noexcept override - { - try - { - this->shim().AudioRenderEffectsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAudioRenderEffects(abi_arg_out> effects) noexcept override - { - try - { - *effects = detach(this->shim().GetAudioRenderEffects()); - return S_OK; - } - catch (...) - { - *effects = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EffectsProviderThumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EffectsProviderThumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EffectsProviderSettingsLabel(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EffectsProviderSettingsLabel()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowSettingsUI() noexcept override - { - try - { - this->shim().ShowSettingsUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UseInputFrameForOutput(bool * value) noexcept override - { - try - { - *value = detach(this->shim().UseInputFrameForOutput()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedEncodingProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedEncodingProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetEncodingProperties(abi_arg_in encodingProperties) noexcept override - { - try - { - this->shim().SetEncodingProperties(*reinterpret_cast(&encodingProperties)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessFrame(abi_arg_in context) noexcept override - { - try - { - this->shim().ProcessFrame(*reinterpret_cast(&context)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Close(Windows::Media::Effects::MediaEffectClosedReason reason) noexcept override - { - try - { - this->shim().Close(reason); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DiscardQueuedFrames() noexcept override - { - try - { - this->shim().DiscardQueuedFrames(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsReadOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedMemoryTypes(Windows::Media::Effects::MediaMemoryTypes * value) noexcept override - { - try - { - *value = detach(this->shim().SupportedMemoryTypes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeIndependent(bool * value) noexcept override - { - try - { - *value = detach(this->shim().TimeIndependent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedEncodingProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedEncodingProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetEncodingProperties(abi_arg_in encodingProperties, abi_arg_in device) noexcept override - { - try - { - this->shim().SetEncodingProperties(*reinterpret_cast(&encodingProperties), *reinterpret_cast(&device)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessFrame(abi_arg_in context) noexcept override - { - try - { - this->shim().ProcessFrame(*reinterpret_cast(&context)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Close(Windows::Media::Effects::MediaEffectClosedReason reason) noexcept override - { - try - { - this->shim().Close(reason); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DiscardQueuedFrames() noexcept override - { - try - { - this->shim().DiscardQueuedFrames(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SurfacesToOverlay(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SurfacesToOverlay()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetOverlayForSurface(abi_arg_in surfaceToOverlay, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetOverlayForSurface(*reinterpret_cast(&surfaceToOverlay))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InputFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InputFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputFrame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputFrame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TimeStretchRate(double * value) noexcept override - { - try - { - *value = detach(this->shim().TimeStretchRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TimeStretchRate(double value) noexcept override - { - try - { - this->shim().TimeStretchRate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TimeIndependent(bool * value) noexcept override - { - try - { - *value = detach(this->shim().TimeIndependent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetEncodingProperties(abi_arg_in backgroundProperties, abi_arg_in device) noexcept override - { - try - { - this->shim().SetEncodingProperties(*reinterpret_cast(&backgroundProperties), *reinterpret_cast(&device)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CompositeFrame(abi_arg_in context) noexcept override - { - try - { - this->shim().CompositeFrame(*reinterpret_cast(&context)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Close(Windows::Media::Effects::MediaEffectClosedReason reason) noexcept override - { - try - { - this->shim().Close(reason); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DiscardQueuedFrames() noexcept override - { - try - { - this->shim().DiscardQueuedFrames(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ActivatableClassId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActivatableClassId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in activatableClassId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&activatableClassId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithProperties(abi_arg_in activatableClassId, abi_arg_in props, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithProperties(*reinterpret_cast(&activatableClassId), *reinterpret_cast(&props))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ActivatableClassId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActivatableClassId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in activatableClassId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&activatableClassId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithProperties(abi_arg_in activatableClassId, abi_arg_in props, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithProperties(*reinterpret_cast(&activatableClassId), *reinterpret_cast(&props))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PaddingColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaddingColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PaddingColor(abi_arg_in value) noexcept override - { - try - { - this->shim().PaddingColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutputSize(abi_arg_in value) noexcept override - { - try - { - this->shim().OutputSize(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CropRectangle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CropRectangle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CropRectangle(abi_arg_in value) noexcept override - { - try - { - this->shim().CropRectangle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rotation(Windows::Media::MediaProperties::MediaRotation * value) noexcept override - { - try - { - *value = detach(this->shim().Rotation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Rotation(Windows::Media::MediaProperties::MediaRotation value) noexcept override - { - try - { - this->shim().Rotation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mirror(Windows::Media::MediaProperties::MediaMirroringOptions * value) noexcept override - { - try - { - *value = detach(this->shim().Mirror()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mirror(Windows::Media::MediaProperties::MediaMirroringOptions value) noexcept override - { - try - { - this->shim().Mirror(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProcessingAlgorithm(Windows::Media::Transcoding::MediaVideoProcessingAlgorithm value) noexcept override - { - try - { - this->shim().ProcessingAlgorithm(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProcessingAlgorithm(Windows::Media::Transcoding::MediaVideoProcessingAlgorithm * value) noexcept override - { - try - { - *value = detach(this->shim().ProcessingAlgorithm()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Effects { - -template hstring impl_IVideoCompositorDefinition::ActivatableClassId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ActivatableClassId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IPropertySet impl_IVideoCompositorDefinition::Properties() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Media::Effects::VideoCompositorDefinition impl_IVideoCompositorDefinitionFactory::Create(hstring_ref activatableClassId) const -{ - Windows::Media::Effects::VideoCompositorDefinition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(activatableClassId), put(value))); - return value; -} - -template Windows::Media::Effects::VideoCompositorDefinition impl_IVideoCompositorDefinitionFactory::CreateWithProperties(hstring_ref activatableClassId, const Windows::Foundation::Collections::IPropertySet & props) const -{ - Windows::Media::Effects::VideoCompositorDefinition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithProperties(get(activatableClassId), get(props), put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ICompositeVideoFrameContext::SurfacesToOverlay() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SurfacesToOverlay(put(value))); - return value; -} - -template Windows::Media::VideoFrame impl_ICompositeVideoFrameContext::BackgroundFrame() const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BackgroundFrame(put(value))); - return value; -} - -template Windows::Media::VideoFrame impl_ICompositeVideoFrameContext::OutputFrame() const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OutputFrame(put(value))); - return value; -} - -template Windows::Media::Editing::MediaOverlay impl_ICompositeVideoFrameContext::GetOverlayForSurface(const Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface & surfaceToOverlay) const -{ - Windows::Media::Editing::MediaOverlay value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetOverlayForSurface(get(surfaceToOverlay), put(value))); - return value; -} - -template Windows::Media::Effects::AudioEffectType impl_IAudioEffect::AudioEffectType() const -{ - Windows::Media::Effects::AudioEffectType value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioEffectType(&value)); - return value; -} - -template Windows::Media::Effects::AudioRenderEffectsManager impl_IAudioEffectsManagerStatics::CreateAudioRenderEffectsManager(hstring_ref deviceId, Windows::Media::Render::AudioRenderCategory category) const -{ - Windows::Media::Effects::AudioRenderEffectsManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAudioRenderEffectsManager(get(deviceId), category, put(value))); - return value; -} - -template Windows::Media::Effects::AudioRenderEffectsManager impl_IAudioEffectsManagerStatics::CreateAudioRenderEffectsManager(hstring_ref deviceId, Windows::Media::Render::AudioRenderCategory category, Windows::Media::AudioProcessing mode) const -{ - Windows::Media::Effects::AudioRenderEffectsManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAudioRenderEffectsManagerWithMode(get(deviceId), category, mode, put(value))); - return value; -} - -template Windows::Media::Effects::AudioCaptureEffectsManager impl_IAudioEffectsManagerStatics::CreateAudioCaptureEffectsManager(hstring_ref deviceId, Windows::Media::Capture::MediaCategory category) const -{ - Windows::Media::Effects::AudioCaptureEffectsManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAudioCaptureEffectsManager(get(deviceId), category, put(value))); - return value; -} - -template Windows::Media::Effects::AudioCaptureEffectsManager impl_IAudioEffectsManagerStatics::CreateAudioCaptureEffectsManager(hstring_ref deviceId, Windows::Media::Capture::MediaCategory category, Windows::Media::AudioProcessing mode) const -{ - Windows::Media::Effects::AudioCaptureEffectsManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAudioCaptureEffectsManagerWithMode(get(deviceId), category, mode, put(value))); - return value; -} - -template event_token impl_IAudioRenderEffectsManager::AudioRenderEffectsChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AudioRenderEffectsChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAudioRenderEffectsManager::AudioRenderEffectsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Effects::IAudioRenderEffectsManager::remove_AudioRenderEffectsChanged, AudioRenderEffectsChanged(handler)); -} - -template void impl_IAudioRenderEffectsManager::AudioRenderEffectsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AudioRenderEffectsChanged(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_IAudioRenderEffectsManager::GetAudioRenderEffects() const -{ - Windows::Foundation::Collections::IVectorView effects; - check_hresult(static_cast(static_cast(*this))->abi_GetAudioRenderEffects(put(effects))); - return effects; -} - -template Windows::Storage::Streams::IRandomAccessStreamWithContentType impl_IAudioRenderEffectsManager2::EffectsProviderThumbnail() const -{ - Windows::Storage::Streams::IRandomAccessStreamWithContentType value; - check_hresult(static_cast(static_cast(*this))->get_EffectsProviderThumbnail(put(value))); - return value; -} - -template hstring impl_IAudioRenderEffectsManager2::EffectsProviderSettingsLabel() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EffectsProviderSettingsLabel(put(value))); - return value; -} - -template void impl_IAudioRenderEffectsManager2::ShowSettingsUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowSettingsUI()); -} - -template event_token impl_IAudioCaptureEffectsManager::AudioCaptureEffectsChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AudioCaptureEffectsChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAudioCaptureEffectsManager::AudioCaptureEffectsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Effects::IAudioCaptureEffectsManager::remove_AudioCaptureEffectsChanged, AudioCaptureEffectsChanged(handler)); -} - -template void impl_IAudioCaptureEffectsManager::AudioCaptureEffectsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AudioCaptureEffectsChanged(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_IAudioCaptureEffectsManager::GetAudioCaptureEffects() const -{ - Windows::Foundation::Collections::IVectorView effects; - check_hresult(static_cast(static_cast(*this))->abi_GetAudioCaptureEffects(put(effects))); - return effects; -} - -template bool impl_IVideoCompositor::TimeIndependent() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeIndependent(&value)); - return value; -} - -template void impl_IVideoCompositor::SetEncodingProperties(const Windows::Media::MediaProperties::VideoEncodingProperties & backgroundProperties, const Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice & device) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetEncodingProperties(get(backgroundProperties), get(device))); -} - -template void impl_IVideoCompositor::CompositeFrame(const Windows::Media::Effects::CompositeVideoFrameContext & context) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CompositeFrame(get(context))); -} - -template void impl_IVideoCompositor::Close(Windows::Media::Effects::MediaEffectClosedReason reason) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Close(reason)); -} - -template void impl_IVideoCompositor::DiscardQueuedFrames() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DiscardQueuedFrames()); -} - -template hstring impl_IAudioEffectDefinition::ActivatableClassId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ActivatableClassId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IPropertySet impl_IAudioEffectDefinition::Properties() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template hstring impl_IVideoEffectDefinition::ActivatableClassId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ActivatableClassId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IPropertySet impl_IVideoEffectDefinition::Properties() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Media::Effects::VideoEffectDefinition impl_IVideoEffectDefinitionFactory::Create(hstring_ref activatableClassId) const -{ - Windows::Media::Effects::VideoEffectDefinition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(activatableClassId), put(value))); - return value; -} - -template Windows::Media::Effects::VideoEffectDefinition impl_IVideoEffectDefinitionFactory::CreateWithProperties(hstring_ref activatableClassId, const Windows::Foundation::Collections::IPropertySet & props) const -{ - Windows::Media::Effects::VideoEffectDefinition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithProperties(get(activatableClassId), get(props), put(value))); - return value; -} - -template Windows::Media::Effects::AudioEffectDefinition impl_IAudioEffectDefinitionFactory::Create(hstring_ref activatableClassId) const -{ - Windows::Media::Effects::AudioEffectDefinition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(activatableClassId), put(value))); - return value; -} - -template Windows::Media::Effects::AudioEffectDefinition impl_IAudioEffectDefinitionFactory::CreateWithProperties(hstring_ref activatableClassId, const Windows::Foundation::Collections::IPropertySet & props) const -{ - Windows::Media::Effects::AudioEffectDefinition value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithProperties(get(activatableClassId), get(props), put(value))); - return value; -} - -template Windows::Media::VideoFrame impl_IProcessVideoFrameContext::InputFrame() const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputFrame(put(value))); - return value; -} - -template Windows::Media::VideoFrame impl_IProcessVideoFrameContext::OutputFrame() const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OutputFrame(put(value))); - return value; -} - -template bool impl_IBasicVideoEffect::IsReadOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnly(&value)); - return value; -} - -template Windows::Media::Effects::MediaMemoryTypes impl_IBasicVideoEffect::SupportedMemoryTypes() const -{ - Windows::Media::Effects::MediaMemoryTypes value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportedMemoryTypes(&value)); - return value; -} - -template bool impl_IBasicVideoEffect::TimeIndependent() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeIndependent(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBasicVideoEffect::SupportedEncodingProperties() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedEncodingProperties(put(value))); - return value; -} - -template void impl_IBasicVideoEffect::SetEncodingProperties(const Windows::Media::MediaProperties::VideoEncodingProperties & encodingProperties, const Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice & device) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetEncodingProperties(get(encodingProperties), get(device))); -} - -template void impl_IBasicVideoEffect::ProcessFrame(const Windows::Media::Effects::ProcessVideoFrameContext & context) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProcessFrame(get(context))); -} - -template void impl_IBasicVideoEffect::Close(Windows::Media::Effects::MediaEffectClosedReason reason) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Close(reason)); -} - -template void impl_IBasicVideoEffect::DiscardQueuedFrames() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DiscardQueuedFrames()); -} - -template Windows::Media::AudioFrame impl_IProcessAudioFrameContext::InputFrame() const -{ - Windows::Media::AudioFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputFrame(put(value))); - return value; -} - -template Windows::Media::AudioFrame impl_IProcessAudioFrameContext::OutputFrame() const -{ - Windows::Media::AudioFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OutputFrame(put(value))); - return value; -} - -template bool impl_IBasicAudioEffect::UseInputFrameForOutput() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_UseInputFrameForOutput(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBasicAudioEffect::SupportedEncodingProperties() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedEncodingProperties(put(value))); - return value; -} - -template void impl_IBasicAudioEffect::SetEncodingProperties(const Windows::Media::MediaProperties::AudioEncodingProperties & encodingProperties) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetEncodingProperties(get(encodingProperties))); -} - -template void impl_IBasicAudioEffect::ProcessFrame(const Windows::Media::Effects::ProcessAudioFrameContext & context) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProcessFrame(get(context))); -} - -template void impl_IBasicAudioEffect::Close(Windows::Media::Effects::MediaEffectClosedReason reason) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Close(reason)); -} - -template void impl_IBasicAudioEffect::DiscardQueuedFrames() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DiscardQueuedFrames()); -} - -template Windows::UI::Color impl_IVideoTransformEffectDefinition::PaddingColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_PaddingColor(put(value))); - return value; -} - -template void impl_IVideoTransformEffectDefinition::PaddingColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PaddingColor(get(value))); -} - -template Windows::Foundation::Size impl_IVideoTransformEffectDefinition::OutputSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_OutputSize(put(value))); - return value; -} - -template void impl_IVideoTransformEffectDefinition::OutputSize(const Windows::Foundation::Size & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutputSize(get(value))); -} - -template Windows::Foundation::Rect impl_IVideoTransformEffectDefinition::CropRectangle() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_CropRectangle(put(value))); - return value; -} - -template void impl_IVideoTransformEffectDefinition::CropRectangle(const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CropRectangle(get(value))); -} - -template Windows::Media::MediaProperties::MediaRotation impl_IVideoTransformEffectDefinition::Rotation() const -{ - Windows::Media::MediaProperties::MediaRotation value {}; - check_hresult(static_cast(static_cast(*this))->get_Rotation(&value)); - return value; -} - -template void impl_IVideoTransformEffectDefinition::Rotation(Windows::Media::MediaProperties::MediaRotation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Rotation(value)); -} - -template Windows::Media::MediaProperties::MediaMirroringOptions impl_IVideoTransformEffectDefinition::Mirror() const -{ - Windows::Media::MediaProperties::MediaMirroringOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_Mirror(&value)); - return value; -} - -template void impl_IVideoTransformEffectDefinition::Mirror(Windows::Media::MediaProperties::MediaMirroringOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mirror(value)); -} - -template void impl_IVideoTransformEffectDefinition::ProcessingAlgorithm(Windows::Media::Transcoding::MediaVideoProcessingAlgorithm value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProcessingAlgorithm(value)); -} - -template Windows::Media::Transcoding::MediaVideoProcessingAlgorithm impl_IVideoTransformEffectDefinition::ProcessingAlgorithm() const -{ - Windows::Media::Transcoding::MediaVideoProcessingAlgorithm value {}; - check_hresult(static_cast(static_cast(*this))->get_ProcessingAlgorithm(&value)); - return value; -} - -template double impl_ISlowMotionEffectDefinition::TimeStretchRate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeStretchRate(&value)); - return value; -} - -template void impl_ISlowMotionEffectDefinition::TimeStretchRate(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TimeStretchRate(value)); -} - -inline AudioEffectDefinition::AudioEffectDefinition(hstring_ref activatableClassId) : - AudioEffectDefinition(get_activation_factory().Create(activatableClassId)) -{} - -inline AudioEffectDefinition::AudioEffectDefinition(hstring_ref activatableClassId, const Windows::Foundation::Collections::IPropertySet & props) : - AudioEffectDefinition(get_activation_factory().CreateWithProperties(activatableClassId, props)) -{} - -inline Windows::Media::Effects::AudioRenderEffectsManager AudioEffectsManager::CreateAudioRenderEffectsManager(hstring_ref deviceId, Windows::Media::Render::AudioRenderCategory category) -{ - return get_activation_factory().CreateAudioRenderEffectsManager(deviceId, category); -} - -inline Windows::Media::Effects::AudioRenderEffectsManager AudioEffectsManager::CreateAudioRenderEffectsManager(hstring_ref deviceId, Windows::Media::Render::AudioRenderCategory category, Windows::Media::AudioProcessing mode) -{ - return get_activation_factory().CreateAudioRenderEffectsManager(deviceId, category, mode); -} - -inline Windows::Media::Effects::AudioCaptureEffectsManager AudioEffectsManager::CreateAudioCaptureEffectsManager(hstring_ref deviceId, Windows::Media::Capture::MediaCategory category) -{ - return get_activation_factory().CreateAudioCaptureEffectsManager(deviceId, category); -} - -inline Windows::Media::Effects::AudioCaptureEffectsManager AudioEffectsManager::CreateAudioCaptureEffectsManager(hstring_ref deviceId, Windows::Media::Capture::MediaCategory category, Windows::Media::AudioProcessing mode) -{ - return get_activation_factory().CreateAudioCaptureEffectsManager(deviceId, category, mode); -} - -inline SlowMotionEffectDefinition::SlowMotionEffectDefinition() : - SlowMotionEffectDefinition(activate_instance()) -{} - -inline VideoCompositorDefinition::VideoCompositorDefinition(hstring_ref activatableClassId) : - VideoCompositorDefinition(get_activation_factory().Create(activatableClassId)) -{} - -inline VideoCompositorDefinition::VideoCompositorDefinition(hstring_ref activatableClassId, const Windows::Foundation::Collections::IPropertySet & props) : - VideoCompositorDefinition(get_activation_factory().CreateWithProperties(activatableClassId, props)) -{} - -inline VideoEffectDefinition::VideoEffectDefinition(hstring_ref activatableClassId) : - VideoEffectDefinition(get_activation_factory().Create(activatableClassId)) -{} - -inline VideoEffectDefinition::VideoEffectDefinition(hstring_ref activatableClassId, const Windows::Foundation::Collections::IPropertySet & props) : - VideoEffectDefinition(get_activation_factory().CreateWithProperties(activatableClassId, props)) -{} - -inline VideoTransformEffectDefinition::VideoTransformEffectDefinition() : - VideoTransformEffectDefinition(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.FaceAnalysis.h b/10.0.14393.0/winrt/Windows.Media.FaceAnalysis.h deleted file mode 100644 index bd9786df6..000000000 --- a/10.0.14393.0/winrt/Windows.Media.FaceAnalysis.h +++ /dev/null @@ -1,482 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Graphics.Imaging.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.3.h" -#include "internal/Windows.Media.FaceAnalysis.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FaceBox(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().FaceBox()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_DetectFacesAsync(abi_arg_in image, abi_arg_out>> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().DetectFacesAsync(*reinterpret_cast(&image))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DetectFacesWithSearchAreaAsync(abi_arg_in image, abi_arg_in searchArea, abi_arg_out>> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().DetectFacesAsync(*reinterpret_cast(&image), *reinterpret_cast(&searchArea))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinDetectableFaceSize(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().MinDetectableFaceSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinDetectableFaceSize(abi_arg_in value) noexcept override - { - try - { - this->shim().MinDetectableFaceSize(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDetectableFaceSize(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().MaxDetectableFaceSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxDetectableFaceSize(abi_arg_in value) noexcept override - { - try - { - this->shim().MaxDetectableFaceSize(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateAsync(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSupportedBitmapPixelFormats(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetSupportedBitmapPixelFormats()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsBitmapPixelFormatSupported(Windows::Graphics::Imaging::BitmapPixelFormat bitmapPixelFormat, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsBitmapPixelFormatSupported(bitmapPixelFormat)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSupported(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ProcessNextFrameAsync(abi_arg_in videoFrame, abi_arg_out>> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ProcessNextFrameAsync(*reinterpret_cast(&videoFrame))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinDetectableFaceSize(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().MinDetectableFaceSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinDetectableFaceSize(abi_arg_in value) noexcept override - { - try - { - this->shim().MinDetectableFaceSize(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDetectableFaceSize(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().MaxDetectableFaceSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxDetectableFaceSize(abi_arg_in value) noexcept override - { - try - { - this->shim().MaxDetectableFaceSize(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateAsync(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSupportedBitmapPixelFormats(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetSupportedBitmapPixelFormats()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsBitmapPixelFormatSupported(Windows::Graphics::Imaging::BitmapPixelFormat bitmapPixelFormat, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsBitmapPixelFormatSupported(bitmapPixelFormat)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSupported(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::FaceAnalysis { - -template Windows::Graphics::Imaging::BitmapBounds impl_IDetectedFace::FaceBox() const -{ - Windows::Graphics::Imaging::BitmapBounds returnValue {}; - check_hresult(static_cast(static_cast(*this))->get_FaceBox(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation> impl_IFaceDetector::DetectFacesAsync(const Windows::Graphics::Imaging::SoftwareBitmap & image) const -{ - Windows::Foundation::IAsyncOperation> returnValue; - check_hresult(static_cast(static_cast(*this))->abi_DetectFacesAsync(get(image), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation> impl_IFaceDetector::DetectFacesAsync(const Windows::Graphics::Imaging::SoftwareBitmap & image, const Windows::Graphics::Imaging::BitmapBounds & searchArea) const -{ - Windows::Foundation::IAsyncOperation> returnValue; - check_hresult(static_cast(static_cast(*this))->abi_DetectFacesWithSearchAreaAsync(get(image), get(searchArea), put(returnValue))); - return returnValue; -} - -template Windows::Graphics::Imaging::BitmapSize impl_IFaceDetector::MinDetectableFaceSize() const -{ - Windows::Graphics::Imaging::BitmapSize returnValue {}; - check_hresult(static_cast(static_cast(*this))->get_MinDetectableFaceSize(put(returnValue))); - return returnValue; -} - -template void impl_IFaceDetector::MinDetectableFaceSize(const Windows::Graphics::Imaging::BitmapSize & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinDetectableFaceSize(get(value))); -} - -template Windows::Graphics::Imaging::BitmapSize impl_IFaceDetector::MaxDetectableFaceSize() const -{ - Windows::Graphics::Imaging::BitmapSize returnValue {}; - check_hresult(static_cast(static_cast(*this))->get_MaxDetectableFaceSize(put(returnValue))); - return returnValue; -} - -template void impl_IFaceDetector::MaxDetectableFaceSize(const Windows::Graphics::Imaging::BitmapSize & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxDetectableFaceSize(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_IFaceDetectorStatics::CreateAsync() const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateAsync(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Collections::IVectorView impl_IFaceDetectorStatics::GetSupportedBitmapPixelFormats() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetSupportedBitmapPixelFormats(put(result))); - return result; -} - -template bool impl_IFaceDetectorStatics::IsBitmapPixelFormatSupported(Windows::Graphics::Imaging::BitmapPixelFormat bitmapPixelFormat) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsBitmapPixelFormatSupported(bitmapPixelFormat, &result)); - return result; -} - -template bool impl_IFaceDetectorStatics::IsSupported() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->get_IsSupported(&returnValue)); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation> impl_IFaceTracker::ProcessNextFrameAsync(const Windows::Media::VideoFrame & videoFrame) const -{ - Windows::Foundation::IAsyncOperation> returnValue; - check_hresult(static_cast(static_cast(*this))->abi_ProcessNextFrameAsync(get(videoFrame), put(returnValue))); - return returnValue; -} - -template Windows::Graphics::Imaging::BitmapSize impl_IFaceTracker::MinDetectableFaceSize() const -{ - Windows::Graphics::Imaging::BitmapSize returnValue {}; - check_hresult(static_cast(static_cast(*this))->get_MinDetectableFaceSize(put(returnValue))); - return returnValue; -} - -template void impl_IFaceTracker::MinDetectableFaceSize(const Windows::Graphics::Imaging::BitmapSize & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinDetectableFaceSize(get(value))); -} - -template Windows::Graphics::Imaging::BitmapSize impl_IFaceTracker::MaxDetectableFaceSize() const -{ - Windows::Graphics::Imaging::BitmapSize returnValue {}; - check_hresult(static_cast(static_cast(*this))->get_MaxDetectableFaceSize(put(returnValue))); - return returnValue; -} - -template void impl_IFaceTracker::MaxDetectableFaceSize(const Windows::Graphics::Imaging::BitmapSize & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxDetectableFaceSize(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_IFaceTrackerStatics::CreateAsync() const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_CreateAsync(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Collections::IVectorView impl_IFaceTrackerStatics::GetSupportedBitmapPixelFormats() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetSupportedBitmapPixelFormats(put(result))); - return result; -} - -template bool impl_IFaceTrackerStatics::IsBitmapPixelFormatSupported(Windows::Graphics::Imaging::BitmapPixelFormat bitmapPixelFormat) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsBitmapPixelFormatSupported(bitmapPixelFormat, &result)); - return result; -} - -template bool impl_IFaceTrackerStatics::IsSupported() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->get_IsSupported(&returnValue)); - return returnValue; -} - -inline Windows::Foundation::IAsyncOperation FaceDetector::CreateAsync() -{ - return get_activation_factory().CreateAsync(); -} - -inline Windows::Foundation::Collections::IVectorView FaceDetector::GetSupportedBitmapPixelFormats() -{ - return get_activation_factory().GetSupportedBitmapPixelFormats(); -} - -inline bool FaceDetector::IsBitmapPixelFormatSupported(Windows::Graphics::Imaging::BitmapPixelFormat bitmapPixelFormat) -{ - return get_activation_factory().IsBitmapPixelFormatSupported(bitmapPixelFormat); -} - -inline bool FaceDetector::IsSupported() -{ - return get_activation_factory().IsSupported(); -} - -inline Windows::Foundation::IAsyncOperation FaceTracker::CreateAsync() -{ - return get_activation_factory().CreateAsync(); -} - -inline Windows::Foundation::Collections::IVectorView FaceTracker::GetSupportedBitmapPixelFormats() -{ - return get_activation_factory().GetSupportedBitmapPixelFormats(); -} - -inline bool FaceTracker::IsBitmapPixelFormatSupported(Windows::Graphics::Imaging::BitmapPixelFormat bitmapPixelFormat) -{ - return get_activation_factory().IsBitmapPixelFormatSupported(bitmapPixelFormat); -} - -inline bool FaceTracker::IsSupported() -{ - return get_activation_factory().IsSupported(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Import.h b/10.0.14393.0/winrt/Windows.Media.Import.h deleted file mode 100644 index bb60f3e2e..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Import.h +++ /dev/null @@ -1,2825 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Media.Import.3.h" -#include "Windows.Media.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Session(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Session()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasSucceeded(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasSucceeded()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeletedItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DeletedItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotosCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PhotosCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotosSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PhotosSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideosCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().VideosCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideosSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().VideosSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SidecarsCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SidecarsCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SidecarsSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SidecarsSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SiblingsCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SiblingsCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SiblingsSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SiblingsSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TotalCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TotalCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TotalSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().TotalSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Session(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Session()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasSucceeded(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasSucceeded()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FoundItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FoundItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotosCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PhotosCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotosSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PhotosSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideosCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().VideosCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideosSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().VideosSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SidecarsCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SidecarsCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SidecarsSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SidecarsSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SiblingsCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SiblingsCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SiblingsSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SiblingsSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TotalCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TotalCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TotalSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().TotalSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectAll() noexcept override - { - try - { - this->shim().SelectAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectNone() noexcept override - { - try - { - this->shim().SelectNone(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectNewAsync(abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().SelectNewAsync()); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetImportMode(Windows::Media::Import::PhotoImportImportMode value) noexcept override - { - try - { - this->shim().SetImportMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImportMode(Windows::Media::Import::PhotoImportImportMode * value) noexcept override - { - try - { - *value = detach(this->shim().ImportMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPhotosCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPhotosCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPhotosSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPhotosSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedVideosCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedVideosCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedVideosSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedVideosSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedSidecarsCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedSidecarsCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedSidecarsSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedSidecarsSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedSiblingsCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedSiblingsCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedSiblingsSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedSiblingsSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedTotalCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedTotalCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedTotalSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedTotalSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SelectionChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SelectionChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectionChanged(event_token token) noexcept override - { - try - { - this->shim().SelectionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportItemsAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ImportItemsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ItemImported(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ItemImported(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemImported(event_token token) noexcept override - { - try - { - this->shim().ItemImported(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddItemsInDateRangeToSelection(abi_arg_in rangeStart, abi_arg_in rangeLength) noexcept override - { - try - { - this->shim().AddItemsInDateRangeToSelection(*reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Session(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Session()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasSucceeded(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasSucceeded()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImportedItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ImportedItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotosCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PhotosCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhotosSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PhotosSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideosCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().VideosCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideosSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().VideosSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SidecarsCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SidecarsCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SidecarsSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SidecarsSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SiblingsCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SiblingsCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SiblingsSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SiblingsSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TotalCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TotalCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TotalSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().TotalSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteImportedItemsFromSourceAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().DeleteImportedItemsFromSourceAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemKey(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().ItemKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentType(Windows::Media::Import::PhotoImportContentType * value) noexcept override - { - try - { - *value = detach(this->shim().ContentType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Date(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Date()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sibling(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sibling()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sidecars(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Sidecars()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoSegments(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().VideoSegments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSelected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSelected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSelected(bool value) noexcept override - { - try - { - this->shim().IsSelected(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImportedFileNames(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ImportedFileNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeletedFileNames(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DeletedFileNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ImportedItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImportedItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsSupportedAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().IsSupportedAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllSourcesAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAllSourcesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPendingOperations(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetPendingOperations()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Stage(Windows::Media::Import::PhotoImportStage * value) noexcept override - { - try - { - *value = detach(this->shim().Stage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Session(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Session()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContinueFindingItemsAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ContinueFindingItemsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContinueImportingItemsAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ContinueImportingItemsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContinueDeletingImportedItemsFromSourceAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ContinueDeletingImportedItemsFromSourceAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSelectionEmpty(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSelectionEmpty()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().SessionId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DestinationFolder(abi_arg_in value) noexcept override - { - try - { - this->shim().DestinationFolder(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DestinationFolder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DestinationFolder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppendSessionDateToDestinationFolder(bool value) noexcept override - { - try - { - this->shim().AppendSessionDateToDestinationFolder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppendSessionDateToDestinationFolder(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AppendSessionDateToDestinationFolder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SubfolderCreationMode(Windows::Media::Import::PhotoImportSubfolderCreationMode value) noexcept override - { - try - { - this->shim().SubfolderCreationMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubfolderCreationMode(Windows::Media::Import::PhotoImportSubfolderCreationMode * value) noexcept override - { - try - { - *value = detach(this->shim().SubfolderCreationMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DestinationFileNamePrefix(abi_arg_in value) noexcept override - { - try - { - this->shim().DestinationFileNamePrefix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DestinationFileNamePrefix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DestinationFileNamePrefix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindItemsAsync(Windows::Media::Import::PhotoImportContentTypeFilter contentTypeFilter, Windows::Media::Import::PhotoImportItemSelectionMode itemSelectionMode, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindItemsAsync(contentTypeFilter, itemSelectionMode)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_SubfolderDateFormat(Windows::Media::Import::PhotoImportSubfolderDateFormat value) noexcept override - { - try - { - this->shim().SubfolderDateFormat(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubfolderDateFormat(Windows::Media::Import::PhotoImportSubfolderDateFormat * value) noexcept override - { - try - { - *value = detach(this->shim().SubfolderDateFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RememberDeselectedItems(bool value) noexcept override - { - try - { - this->shim().RememberDeselectedItems(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RememberDeselectedItems(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RememberDeselectedItems()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Date(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Date()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Manufacturer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Manufacturer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Model(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Model()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SerialNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SerialNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionProtocol(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionProtocol()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionTransport(Windows::Media::Import::PhotoImportConnectionTransport * value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionTransport()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::Media::Import::PhotoImportSourceType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PowerSource(Windows::Media::Import::PhotoImportPowerSource * value) noexcept override - { - try - { - *value = detach(this->shim().PowerSource()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BatteryLevelPercent(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BatteryLevelPercent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DateTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StorageMedia(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().StorageMedia()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLocked(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IsLocked()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMassStorage(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMassStorage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateImportSession(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateImportSession()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIdAsync(abi_arg_in sourceId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromIdAsync(*reinterpret_cast(&sourceId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromFolderAsync(abi_arg_in sourceRootFolder, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FromFolderAsync(*reinterpret_cast(&sourceRootFolder))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SerialNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SerialNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StorageMediumType(Windows::Media::Import::PhotoImportStorageMediumType * value) noexcept override - { - try - { - *value = detach(this->shim().StorageMediumType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedAccessMode(Windows::Media::Import::PhotoImportAccessMode * value) noexcept override - { - try - { - *value = detach(this->shim().SupportedAccessMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CapacityInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().CapacityInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AvailableSpaceInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().AvailableSpaceInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Refresh() noexcept override - { - try - { - this->shim().Refresh(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Date(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Date()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sibling(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sibling()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sidecars(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Sidecars()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Import { - -template Windows::Foundation::IAsyncOperation impl_IPhotoImportManagerStatics::IsSupportedAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_IsSupportedAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IPhotoImportManagerStatics::FindAllSourcesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAllSourcesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::Collections::IVectorView impl_IPhotoImportManagerStatics::GetPendingOperations() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetPendingOperations(put(result))); - return result; -} - -template Windows::Media::Import::PhotoImportStage impl_IPhotoImportOperation::Stage() const -{ - Windows::Media::Import::PhotoImportStage value {}; - check_hresult(static_cast(static_cast(*this))->get_Stage(&value)); - return value; -} - -template Windows::Media::Import::PhotoImportSession impl_IPhotoImportOperation::Session() const -{ - Windows::Media::Import::PhotoImportSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Session(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPhotoImportOperation::ContinueFindingItemsAsync() const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->get_ContinueFindingItemsAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPhotoImportOperation::ContinueImportingItemsAsync() const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->get_ContinueImportingItemsAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPhotoImportOperation::ContinueDeletingImportedItemsFromSourceAsync() const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->get_ContinueDeletingImportedItemsFromSourceAsync(put(operation))); - return operation; -} - -template hstring impl_IPhotoImportStorageMedium::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template hstring impl_IPhotoImportStorageMedium::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template hstring impl_IPhotoImportStorageMedium::SerialNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SerialNumber(put(value))); - return value; -} - -template Windows::Media::Import::PhotoImportStorageMediumType impl_IPhotoImportStorageMedium::StorageMediumType() const -{ - Windows::Media::Import::PhotoImportStorageMediumType value {}; - check_hresult(static_cast(static_cast(*this))->get_StorageMediumType(&value)); - return value; -} - -template Windows::Media::Import::PhotoImportAccessMode impl_IPhotoImportStorageMedium::SupportedAccessMode() const -{ - Windows::Media::Import::PhotoImportAccessMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportedAccessMode(&value)); - return value; -} - -template uint64_t impl_IPhotoImportStorageMedium::CapacityInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CapacityInBytes(&value)); - return value; -} - -template uint64_t impl_IPhotoImportStorageMedium::AvailableSpaceInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AvailableSpaceInBytes(&value)); - return value; -} - -template void impl_IPhotoImportStorageMedium::Refresh() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Refresh()); -} - -template Windows::Foundation::IAsyncOperation impl_IPhotoImportSourceStatics::FromIdAsync(hstring_ref sourceId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromIdAsync(get(sourceId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPhotoImportSourceStatics::FromFolderAsync(const Windows::Storage::IStorageFolder & sourceRootFolder) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FromFolderAsync(get(sourceRootFolder), put(operation))); - return operation; -} - -template hstring impl_IPhotoImportSource::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IPhotoImportSource::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IPhotoImportSource::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template hstring impl_IPhotoImportSource::Manufacturer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Manufacturer(put(value))); - return value; -} - -template hstring impl_IPhotoImportSource::Model() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Model(put(value))); - return value; -} - -template hstring impl_IPhotoImportSource::SerialNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SerialNumber(put(value))); - return value; -} - -template hstring impl_IPhotoImportSource::ConnectionProtocol() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ConnectionProtocol(put(value))); - return value; -} - -template Windows::Media::Import::PhotoImportConnectionTransport impl_IPhotoImportSource::ConnectionTransport() const -{ - Windows::Media::Import::PhotoImportConnectionTransport value {}; - check_hresult(static_cast(static_cast(*this))->get_ConnectionTransport(&value)); - return value; -} - -template Windows::Media::Import::PhotoImportSourceType impl_IPhotoImportSource::Type() const -{ - Windows::Media::Import::PhotoImportSourceType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::Media::Import::PhotoImportPowerSource impl_IPhotoImportSource::PowerSource() const -{ - Windows::Media::Import::PhotoImportPowerSource value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerSource(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IPhotoImportSource::BatteryLevelPercent() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_BatteryLevelPercent(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IPhotoImportSource::DateTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DateTime(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPhotoImportSource::StorageMedia() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_StorageMedia(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IPhotoImportSource::IsLocked() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_IsLocked(put(value))); - return value; -} - -template bool impl_IPhotoImportSource::IsMassStorage() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMassStorage(&value)); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IPhotoImportSource::Thumbnail() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template Windows::Media::Import::PhotoImportSession impl_IPhotoImportSource::CreateImportSession() const -{ - Windows::Media::Import::PhotoImportSession result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateImportSession(put(result))); - return result; -} - -template Windows::Media::Import::PhotoImportSource impl_IPhotoImportSession::Source() const -{ - Windows::Media::Import::PhotoImportSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template GUID impl_IPhotoImportSession::SessionId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_SessionId(&value)); - return value; -} - -template void impl_IPhotoImportSession::DestinationFolder(const Windows::Storage::IStorageFolder & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DestinationFolder(get(value))); -} - -template Windows::Storage::IStorageFolder impl_IPhotoImportSession::DestinationFolder() const -{ - Windows::Storage::IStorageFolder value; - check_hresult(static_cast(static_cast(*this))->get_DestinationFolder(put(value))); - return value; -} - -template void impl_IPhotoImportSession::AppendSessionDateToDestinationFolder(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppendSessionDateToDestinationFolder(value)); -} - -template bool impl_IPhotoImportSession::AppendSessionDateToDestinationFolder() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AppendSessionDateToDestinationFolder(&value)); - return value; -} - -template void impl_IPhotoImportSession::SubfolderCreationMode(Windows::Media::Import::PhotoImportSubfolderCreationMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SubfolderCreationMode(value)); -} - -template Windows::Media::Import::PhotoImportSubfolderCreationMode impl_IPhotoImportSession::SubfolderCreationMode() const -{ - Windows::Media::Import::PhotoImportSubfolderCreationMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SubfolderCreationMode(&value)); - return value; -} - -template void impl_IPhotoImportSession::DestinationFileNamePrefix(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DestinationFileNamePrefix(get(value))); -} - -template hstring impl_IPhotoImportSession::DestinationFileNamePrefix() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DestinationFileNamePrefix(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPhotoImportSession::FindItemsAsync(Windows::Media::Import::PhotoImportContentTypeFilter contentTypeFilter, Windows::Media::Import::PhotoImportItemSelectionMode itemSelectionMode) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_FindItemsAsync(contentTypeFilter, itemSelectionMode, put(operation))); - return operation; -} - -template void impl_IPhotoImportSession2::SubfolderDateFormat(Windows::Media::Import::PhotoImportSubfolderDateFormat value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SubfolderDateFormat(value)); -} - -template Windows::Media::Import::PhotoImportSubfolderDateFormat impl_IPhotoImportSession2::SubfolderDateFormat() const -{ - Windows::Media::Import::PhotoImportSubfolderDateFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_SubfolderDateFormat(&value)); - return value; -} - -template void impl_IPhotoImportSession2::RememberDeselectedItems(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RememberDeselectedItems(value)); -} - -template bool impl_IPhotoImportSession2::RememberDeselectedItems() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RememberDeselectedItems(&value)); - return value; -} - -template hstring impl_IPhotoImportItem::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template uint64_t impl_IPhotoImportItem::ItemKey() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemKey(&value)); - return value; -} - -template Windows::Media::Import::PhotoImportContentType impl_IPhotoImportItem::ContentType() const -{ - Windows::Media::Import::PhotoImportContentType value {}; - check_hresult(static_cast(static_cast(*this))->get_ContentType(&value)); - return value; -} - -template uint64_t impl_IPhotoImportItem::SizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SizeInBytes(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IPhotoImportItem::Date() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Date(put(value))); - return value; -} - -template Windows::Media::Import::PhotoImportSidecar impl_IPhotoImportItem::Sibling() const -{ - Windows::Media::Import::PhotoImportSidecar value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Sibling(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPhotoImportItem::Sidecars() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Sidecars(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPhotoImportItem::VideoSegments() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_VideoSegments(put(value))); - return value; -} - -template bool impl_IPhotoImportItem::IsSelected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSelected(&value)); - return value; -} - -template void impl_IPhotoImportItem::IsSelected(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSelected(value)); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IPhotoImportItem::Thumbnail() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPhotoImportItem::ImportedFileNames() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ImportedFileNames(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPhotoImportItem::DeletedFileNames() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_DeletedFileNames(put(value))); - return value; -} - -template Windows::Media::Import::PhotoImportSession impl_IPhotoImportFindItemsResult::Session() const -{ - Windows::Media::Import::PhotoImportSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Session(put(value))); - return value; -} - -template bool impl_IPhotoImportFindItemsResult::HasSucceeded() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasSucceeded(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPhotoImportFindItemsResult::FoundItems() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_FoundItems(put(value))); - return value; -} - -template uint32_t impl_IPhotoImportFindItemsResult::PhotosCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PhotosCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportFindItemsResult::PhotosSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PhotosSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportFindItemsResult::VideosCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VideosCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportFindItemsResult::VideosSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VideosSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportFindItemsResult::SidecarsCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SidecarsCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportFindItemsResult::SidecarsSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SidecarsSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportFindItemsResult::SiblingsCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SiblingsCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportFindItemsResult::SiblingsSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SiblingsSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportFindItemsResult::TotalCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TotalCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportFindItemsResult::TotalSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TotalSizeInBytes(&value)); - return value; -} - -template void impl_IPhotoImportFindItemsResult::SelectAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SelectAll()); -} - -template void impl_IPhotoImportFindItemsResult::SelectNone() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SelectNone()); -} - -template Windows::Foundation::IAsyncAction impl_IPhotoImportFindItemsResult::SelectNewAsync() const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_SelectNewAsync(put(action))); - return action; -} - -template void impl_IPhotoImportFindItemsResult::SetImportMode(Windows::Media::Import::PhotoImportImportMode value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetImportMode(value)); -} - -template Windows::Media::Import::PhotoImportImportMode impl_IPhotoImportFindItemsResult::ImportMode() const -{ - Windows::Media::Import::PhotoImportImportMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ImportMode(&value)); - return value; -} - -template uint32_t impl_IPhotoImportFindItemsResult::SelectedPhotosCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedPhotosCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportFindItemsResult::SelectedPhotosSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedPhotosSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportFindItemsResult::SelectedVideosCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedVideosCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportFindItemsResult::SelectedVideosSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedVideosSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportFindItemsResult::SelectedSidecarsCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedSidecarsCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportFindItemsResult::SelectedSidecarsSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedSidecarsSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportFindItemsResult::SelectedSiblingsCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedSiblingsCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportFindItemsResult::SelectedSiblingsSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedSiblingsSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportFindItemsResult::SelectedTotalCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedTotalCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportFindItemsResult::SelectedTotalSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedTotalSizeInBytes(&value)); - return value; -} - -template event_token impl_IPhotoImportFindItemsResult::SelectionChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SelectionChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IPhotoImportFindItemsResult::SelectionChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Import::IPhotoImportFindItemsResult::remove_SelectionChanged, SelectionChanged(value)); -} - -template void impl_IPhotoImportFindItemsResult::SelectionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SelectionChanged(token)); -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPhotoImportFindItemsResult::ImportItemsAsync() const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_ImportItemsAsync(put(operation))); - return operation; -} - -template event_token impl_IPhotoImportFindItemsResult::ItemImported(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ItemImported(get(value), &token)); - return token; -} - -template event_revoker impl_IPhotoImportFindItemsResult::ItemImported(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Import::IPhotoImportFindItemsResult::remove_ItemImported, ItemImported(value)); -} - -template void impl_IPhotoImportFindItemsResult::ItemImported(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemImported(token)); -} - -template void impl_IPhotoImportFindItemsResult2::AddItemsInDateRangeToSelection(const Windows::Foundation::DateTime & rangeStart, const Windows::Foundation::TimeSpan & rangeLength) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddItemsInDateRangeToSelection(get(rangeStart), get(rangeLength))); -} - -template Windows::Media::Import::PhotoImportSession impl_IPhotoImportImportItemsResult::Session() const -{ - Windows::Media::Import::PhotoImportSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Session(put(value))); - return value; -} - -template bool impl_IPhotoImportImportItemsResult::HasSucceeded() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasSucceeded(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPhotoImportImportItemsResult::ImportedItems() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ImportedItems(put(value))); - return value; -} - -template uint32_t impl_IPhotoImportImportItemsResult::PhotosCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PhotosCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportImportItemsResult::PhotosSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PhotosSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportImportItemsResult::VideosCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VideosCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportImportItemsResult::VideosSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VideosSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportImportItemsResult::SidecarsCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SidecarsCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportImportItemsResult::SidecarsSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SidecarsSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportImportItemsResult::SiblingsCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SiblingsCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportImportItemsResult::SiblingsSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SiblingsSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportImportItemsResult::TotalCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TotalCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportImportItemsResult::TotalSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TotalSizeInBytes(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IPhotoImportImportItemsResult::DeleteImportedItemsFromSourceAsync() const -{ - Windows::Foundation::IAsyncOperationWithProgress result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteImportedItemsFromSourceAsync(put(result))); - return result; -} - -template Windows::Media::Import::PhotoImportSession impl_IPhotoImportDeleteImportedItemsFromSourceResult::Session() const -{ - Windows::Media::Import::PhotoImportSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Session(put(value))); - return value; -} - -template bool impl_IPhotoImportDeleteImportedItemsFromSourceResult::HasSucceeded() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasSucceeded(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPhotoImportDeleteImportedItemsFromSourceResult::DeletedItems() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_DeletedItems(put(value))); - return value; -} - -template uint32_t impl_IPhotoImportDeleteImportedItemsFromSourceResult::PhotosCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PhotosCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportDeleteImportedItemsFromSourceResult::PhotosSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PhotosSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportDeleteImportedItemsFromSourceResult::VideosCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VideosCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportDeleteImportedItemsFromSourceResult::VideosSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VideosSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportDeleteImportedItemsFromSourceResult::SidecarsCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SidecarsCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportDeleteImportedItemsFromSourceResult::SidecarsSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SidecarsSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportDeleteImportedItemsFromSourceResult::SiblingsCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SiblingsCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportDeleteImportedItemsFromSourceResult::SiblingsSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SiblingsSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IPhotoImportDeleteImportedItemsFromSourceResult::TotalCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TotalCount(&value)); - return value; -} - -template uint64_t impl_IPhotoImportDeleteImportedItemsFromSourceResult::TotalSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TotalSizeInBytes(&value)); - return value; -} - -template hstring impl_IPhotoImportSidecar::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template uint64_t impl_IPhotoImportSidecar::SizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SizeInBytes(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IPhotoImportSidecar::Date() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Date(put(value))); - return value; -} - -template hstring impl_IPhotoImportVideoSegment::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template uint64_t impl_IPhotoImportVideoSegment::SizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SizeInBytes(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IPhotoImportVideoSegment::Date() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Date(put(value))); - return value; -} - -template Windows::Media::Import::PhotoImportSidecar impl_IPhotoImportVideoSegment::Sibling() const -{ - Windows::Media::Import::PhotoImportSidecar value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Sibling(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPhotoImportVideoSegment::Sidecars() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Sidecars(put(value))); - return value; -} - -template Windows::Media::Import::PhotoImportItem impl_IPhotoImportItemImportedEventArgs::ImportedItem() const -{ - Windows::Media::Import::PhotoImportItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ImportedItem(put(value))); - return value; -} - -template bool impl_IPhotoImportSelectionChangedEventArgs::IsSelectionEmpty() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSelectionEmpty(&value)); - return value; -} - -inline Windows::Foundation::IAsyncOperation PhotoImportManager::IsSupportedAsync() -{ - return get_activation_factory().IsSupportedAsync(); -} - -inline Windows::Foundation::IAsyncOperation> PhotoImportManager::FindAllSourcesAsync() -{ - return get_activation_factory().FindAllSourcesAsync(); -} - -inline Windows::Foundation::Collections::IVectorView PhotoImportManager::GetPendingOperations() -{ - return get_activation_factory().GetPendingOperations(); -} - -inline Windows::Foundation::IAsyncOperation PhotoImportSource::FromIdAsync(hstring_ref sourceId) -{ - return get_activation_factory().FromIdAsync(sourceId); -} - -inline Windows::Foundation::IAsyncOperation PhotoImportSource::FromFolderAsync(const Windows::Storage::IStorageFolder & sourceRootFolder) -{ - return get_activation_factory().FromFolderAsync(sourceRootFolder); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.MediaProperties.h b/10.0.14393.0/winrt/Windows.Media.MediaProperties.h deleted file mode 100644 index e2e2b679a..000000000 --- a/10.0.14393.0/winrt/Windows.Media.MediaProperties.h +++ /dev/null @@ -1,2903 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Media.MediaProperties.3.h" -#include "Windows.Media.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Bitrate(uint32_t value) noexcept override - { - try - { - this->shim().Bitrate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bitrate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Bitrate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChannelCount(uint32_t value) noexcept override - { - try - { - this->shim().ChannelCount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChannelCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChannelCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SampleRate(uint32_t value) noexcept override - { - try - { - this->shim().SampleRate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SampleRate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SampleRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BitsPerSample(uint32_t value) noexcept override - { - try - { - this->shim().BitsPerSample(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitsPerSample(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BitsPerSample()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateAac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateAac(sampleRate, channelCount, bitrate)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAacAdts(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateAacAdts(sampleRate, channelCount, bitrate)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateMp3(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMp3(sampleRate, channelCount, bitrate)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePcm(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreatePcm(sampleRate, channelCount, bitsPerSample)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWma(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWma(sampleRate, channelCount, bitrate)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetFormatUserData(uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().SetFormatUserData(array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFormatUserData(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetFormatUserData(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConstrainedBaseline(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ConstrainedBaseline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Baseline(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Baseline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Extended(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Extended()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Main(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Main()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_High(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().High()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_High10(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().High10()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_High422(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().High422()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_High444(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().High444()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StereoHigh(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StereoHigh()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MultiviewHigh(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MultiviewHigh()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Width(uint32_t value) noexcept override - { - try - { - this->shim().Width(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Width(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Height(uint32_t value) noexcept override - { - try - { - this->shim().Height(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateJpeg(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateJpeg()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePng(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreatePng()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateJpegXR(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateJpegXR()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateUncompressed(Windows::Media::MediaProperties::MediaPixelFormat format, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateUncompressed(format)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBmp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateBmp()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Audio(abi_arg_in value) noexcept override - { - try - { - this->shim().Audio(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Audio(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Audio()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Video(abi_arg_in value) noexcept override - { - try - { - this->shim().Video(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Video(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Video()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Container(abi_arg_in value) noexcept override - { - try - { - this->shim().Container(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Container(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Container()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateM4a(Windows::Media::MediaProperties::AudioEncodingQuality quality, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateM4a(quality)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateMp3(Windows::Media::MediaProperties::AudioEncodingQuality quality, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMp3(quality)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWma(Windows::Media::MediaProperties::AudioEncodingQuality quality, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWma(quality)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateMp4(Windows::Media::MediaProperties::VideoEncodingQuality quality, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMp4(quality)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWmv(Windows::Media::MediaProperties::VideoEncodingQuality quality, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWmv(quality)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromFileAsync(abi_arg_in file, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFromFileAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromStreamAsync(abi_arg_in stream, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFromStreamAsync(*reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWav(Windows::Media::MediaProperties::AudioEncodingQuality quality, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWav(quality)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAvi(Windows::Media::MediaProperties::VideoEncodingQuality quality, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateAvi(quality)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Subtype(abi_arg_in value) noexcept override - { - try - { - this->shim().Subtype(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subtype(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subtype()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Aac(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Aac()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AacAdts(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AacAdts()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ac3(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ac3()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AmrNb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AmrNb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AmrWb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AmrWb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Argb32(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Argb32()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Asf(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Asf()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Avi(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Avi()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bgra8(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bgra8()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bmp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bmp()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Eac3(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Eac3()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Float(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Float()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gif(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Gif()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_H263(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().H263()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_H264(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().H264()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_H264Es(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().H264Es()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Hevc(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Hevc()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HevcEs(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HevcEs()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Iyuv(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Iyuv()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Jpeg(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Jpeg()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JpegXr(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().JpegXr()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mjpg(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mjpg()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mpeg(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mpeg()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mpeg1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mpeg1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mpeg2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mpeg2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mp3(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mp3()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mpeg4(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mpeg4()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Nv12(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Nv12()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pcm(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pcm()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Png(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Png()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rgb24(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Rgb24()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rgb32(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Rgb32()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tiff(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tiff()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Wave(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Wave()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Wma8(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Wma8()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Wma9(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Wma9()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Wmv3(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Wmv3()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Wvc1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Wvc1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Yuy2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Yuy2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Yv12(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Yv12()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Numerator(uint32_t value) noexcept override - { - try - { - this->shim().Numerator(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Numerator(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Numerator()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Denominator(uint32_t value) noexcept override - { - try - { - this->shim().Denominator(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Denominator(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Denominator()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Simple(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Simple()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Main(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Main()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SignalNoiseRatioScalable(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SignalNoiseRatioScalable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpatiallyScalable(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SpatiallyScalable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_High(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().High()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Bitrate(uint32_t value) noexcept override - { - try - { - this->shim().Bitrate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bitrate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Bitrate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Width(uint32_t value) noexcept override - { - try - { - this->shim().Width(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Width(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Height(uint32_t value) noexcept override - { - try - { - this->shim().Height(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameRate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameRate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PixelAspectRatio(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PixelAspectRatio()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetFormatUserData(uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().SetFormatUserData(array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFormatUserData(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().GetFormatUserData(detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProfileId(int32_t value) noexcept override - { - try - { - this->shim().ProfileId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProfileId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ProfileId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StereoscopicVideoPackingMode(Windows::Media::MediaProperties::StereoscopicVideoPackingMode * value) noexcept override - { - try - { - *value = detach(this->shim().StereoscopicVideoPackingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateH264(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateH264()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateMpeg2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMpeg2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUncompressed(abi_arg_in subtype, uint32_t width, uint32_t height, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateUncompressed(*reinterpret_cast(&subtype), width, height)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::MediaProperties { - -template void impl_IMediaRatio::Numerator(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Numerator(value)); -} - -template uint32_t impl_IMediaRatio::Numerator() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Numerator(&value)); - return value; -} - -template void impl_IMediaRatio::Denominator(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Denominator(value)); -} - -template uint32_t impl_IMediaRatio::Denominator() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Denominator(&value)); - return value; -} - -template Windows::Media::MediaProperties::MediaPropertySet impl_IMediaEncodingProperties::Properties() const -{ - Windows::Media::MediaProperties::MediaPropertySet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template hstring impl_IMediaEncodingProperties::Type() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Type(put(value))); - return value; -} - -template void impl_IMediaEncodingProperties::Subtype(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Subtype(get(value))); -} - -template hstring impl_IMediaEncodingProperties::Subtype() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subtype(put(value))); - return value; -} - -template void impl_IAudioEncodingProperties::Bitrate(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Bitrate(value)); -} - -template uint32_t impl_IAudioEncodingProperties::Bitrate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Bitrate(&value)); - return value; -} - -template void impl_IAudioEncodingProperties::ChannelCount(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChannelCount(value)); -} - -template uint32_t impl_IAudioEncodingProperties::ChannelCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChannelCount(&value)); - return value; -} - -template void impl_IAudioEncodingProperties::SampleRate(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SampleRate(value)); -} - -template uint32_t impl_IAudioEncodingProperties::SampleRate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SampleRate(&value)); - return value; -} - -template void impl_IAudioEncodingProperties::BitsPerSample(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BitsPerSample(value)); -} - -template uint32_t impl_IAudioEncodingProperties::BitsPerSample() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BitsPerSample(&value)); - return value; -} - -template void impl_IAudioEncodingPropertiesWithFormatUserData::SetFormatUserData(array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFormatUserData(value.size(), get(value))); -} - -template void impl_IAudioEncodingPropertiesWithFormatUserData::GetFormatUserData(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetFormatUserData(put_size(value), put(value))); -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IAudioEncodingPropertiesStatics::CreateAac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAac(sampleRate, channelCount, bitrate, put(value))); - return value; -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IAudioEncodingPropertiesStatics::CreateAacAdts(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAacAdts(sampleRate, channelCount, bitrate, put(value))); - return value; -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IAudioEncodingPropertiesStatics::CreateMp3(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMp3(sampleRate, channelCount, bitrate, put(value))); - return value; -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IAudioEncodingPropertiesStatics::CreatePcm(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample) const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePcm(sampleRate, channelCount, bitsPerSample, put(value))); - return value; -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IAudioEncodingPropertiesStatics::CreateWma(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWma(sampleRate, channelCount, bitrate, put(value))); - return value; -} - -template void impl_IVideoEncodingProperties::Bitrate(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Bitrate(value)); -} - -template uint32_t impl_IVideoEncodingProperties::Bitrate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Bitrate(&value)); - return value; -} - -template void impl_IVideoEncodingProperties::Width(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Width(value)); -} - -template uint32_t impl_IVideoEncodingProperties::Width() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(&value)); - return value; -} - -template void impl_IVideoEncodingProperties::Height(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Height(value)); -} - -template uint32_t impl_IVideoEncodingProperties::Height() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(&value)); - return value; -} - -template Windows::Media::MediaProperties::MediaRatio impl_IVideoEncodingProperties::FrameRate() const -{ - Windows::Media::MediaProperties::MediaRatio value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FrameRate(put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaRatio impl_IVideoEncodingProperties::PixelAspectRatio() const -{ - Windows::Media::MediaProperties::MediaRatio value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PixelAspectRatio(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Aac() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Aac(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::AacAdts() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AacAdts(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Ac3() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ac3(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::AmrNb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AmrNb(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::AmrWb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AmrWb(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Argb32() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Argb32(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Asf() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Asf(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Avi() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Avi(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Bgra8() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Bgra8(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Bmp() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Bmp(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Eac3() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Eac3(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Float() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Float(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Gif() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Gif(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::H263() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_H263(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::H264() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_H264(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::H264Es() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_H264Es(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Hevc() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Hevc(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::HevcEs() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HevcEs(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Iyuv() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Iyuv(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Jpeg() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Jpeg(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::JpegXr() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_JpegXr(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Mjpg() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Mjpg(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Mpeg() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Mpeg(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Mpeg1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Mpeg1(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Mpeg2() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Mpeg2(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Mp3() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Mp3(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Mpeg4() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Mpeg4(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Nv12() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Nv12(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Pcm() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Pcm(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Png() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Png(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Rgb24() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Rgb24(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Rgb32() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Rgb32(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Tiff() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Tiff(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Wave() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Wave(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Wma8() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Wma8(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Wma9() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Wma9(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Wmv3() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Wmv3(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Wvc1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Wvc1(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Yuy2() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Yuy2(put(value))); - return value; -} - -template hstring impl_IMediaEncodingSubtypesStatics::Yv12() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Yv12(put(value))); - return value; -} - -template int32_t impl_IH264ProfileIdsStatics::ConstrainedBaseline() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ConstrainedBaseline(&value)); - return value; -} - -template int32_t impl_IH264ProfileIdsStatics::Baseline() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Baseline(&value)); - return value; -} - -template int32_t impl_IH264ProfileIdsStatics::Extended() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Extended(&value)); - return value; -} - -template int32_t impl_IH264ProfileIdsStatics::Main() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Main(&value)); - return value; -} - -template int32_t impl_IH264ProfileIdsStatics::High() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_High(&value)); - return value; -} - -template int32_t impl_IH264ProfileIdsStatics::High10() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_High10(&value)); - return value; -} - -template int32_t impl_IH264ProfileIdsStatics::High422() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_High422(&value)); - return value; -} - -template int32_t impl_IH264ProfileIdsStatics::High444() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_High444(&value)); - return value; -} - -template int32_t impl_IH264ProfileIdsStatics::StereoHigh() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StereoHigh(&value)); - return value; -} - -template int32_t impl_IH264ProfileIdsStatics::MultiviewHigh() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MultiviewHigh(&value)); - return value; -} - -template int32_t impl_IMpeg2ProfileIdsStatics::Simple() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Simple(&value)); - return value; -} - -template int32_t impl_IMpeg2ProfileIdsStatics::Main() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Main(&value)); - return value; -} - -template int32_t impl_IMpeg2ProfileIdsStatics::SignalNoiseRatioScalable() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SignalNoiseRatioScalable(&value)); - return value; -} - -template int32_t impl_IMpeg2ProfileIdsStatics::SpatiallyScalable() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SpatiallyScalable(&value)); - return value; -} - -template int32_t impl_IMpeg2ProfileIdsStatics::High() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_High(&value)); - return value; -} - -template void impl_IVideoEncodingProperties2::SetFormatUserData(array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFormatUserData(value.size(), get(value))); -} - -template void impl_IVideoEncodingProperties2::GetFormatUserData(com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetFormatUserData(put_size(value), put(value))); -} - -template void impl_IVideoEncodingProperties2::ProfileId(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProfileId(value)); -} - -template int32_t impl_IVideoEncodingProperties2::ProfileId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ProfileId(&value)); - return value; -} - -template Windows::Media::MediaProperties::StereoscopicVideoPackingMode impl_IVideoEncodingProperties3::StereoscopicVideoPackingMode() const -{ - Windows::Media::MediaProperties::StereoscopicVideoPackingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_StereoscopicVideoPackingMode(&value)); - return value; -} - -template Windows::Media::MediaProperties::VideoEncodingProperties impl_IVideoEncodingPropertiesStatics::CreateH264() const -{ - Windows::Media::MediaProperties::VideoEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateH264(put(value))); - return value; -} - -template Windows::Media::MediaProperties::VideoEncodingProperties impl_IVideoEncodingPropertiesStatics::CreateMpeg2() const -{ - Windows::Media::MediaProperties::VideoEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMpeg2(put(value))); - return value; -} - -template Windows::Media::MediaProperties::VideoEncodingProperties impl_IVideoEncodingPropertiesStatics::CreateUncompressed(hstring_ref subtype, uint32_t width, uint32_t height) const -{ - Windows::Media::MediaProperties::VideoEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateUncompressed(get(subtype), width, height, put(value))); - return value; -} - -template void impl_IImageEncodingProperties::Width(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Width(value)); -} - -template uint32_t impl_IImageEncodingProperties::Width() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(&value)); - return value; -} - -template void impl_IImageEncodingProperties::Height(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Height(value)); -} - -template uint32_t impl_IImageEncodingProperties::Height() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(&value)); - return value; -} - -template Windows::Media::MediaProperties::ImageEncodingProperties impl_IImageEncodingPropertiesStatics::CreateJpeg() const -{ - Windows::Media::MediaProperties::ImageEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateJpeg(put(value))); - return value; -} - -template Windows::Media::MediaProperties::ImageEncodingProperties impl_IImageEncodingPropertiesStatics::CreatePng() const -{ - Windows::Media::MediaProperties::ImageEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePng(put(value))); - return value; -} - -template Windows::Media::MediaProperties::ImageEncodingProperties impl_IImageEncodingPropertiesStatics::CreateJpegXR() const -{ - Windows::Media::MediaProperties::ImageEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateJpegXR(put(value))); - return value; -} - -template Windows::Media::MediaProperties::ImageEncodingProperties impl_IImageEncodingPropertiesStatics2::CreateUncompressed(Windows::Media::MediaProperties::MediaPixelFormat format) const -{ - Windows::Media::MediaProperties::ImageEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateUncompressed(format, put(value))); - return value; -} - -template Windows::Media::MediaProperties::ImageEncodingProperties impl_IImageEncodingPropertiesStatics2::CreateBmp() const -{ - Windows::Media::MediaProperties::ImageEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBmp(put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaEncodingProfile impl_IMediaEncodingProfileStatics::CreateM4a(Windows::Media::MediaProperties::AudioEncodingQuality quality) const -{ - Windows::Media::MediaProperties::MediaEncodingProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateM4a(quality, put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaEncodingProfile impl_IMediaEncodingProfileStatics::CreateMp3(Windows::Media::MediaProperties::AudioEncodingQuality quality) const -{ - Windows::Media::MediaProperties::MediaEncodingProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMp3(quality, put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaEncodingProfile impl_IMediaEncodingProfileStatics::CreateWma(Windows::Media::MediaProperties::AudioEncodingQuality quality) const -{ - Windows::Media::MediaProperties::MediaEncodingProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWma(quality, put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaEncodingProfile impl_IMediaEncodingProfileStatics::CreateMp4(Windows::Media::MediaProperties::VideoEncodingQuality quality) const -{ - Windows::Media::MediaProperties::MediaEncodingProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMp4(quality, put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaEncodingProfile impl_IMediaEncodingProfileStatics::CreateWmv(Windows::Media::MediaProperties::VideoEncodingQuality quality) const -{ - Windows::Media::MediaProperties::MediaEncodingProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWmv(quality, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaEncodingProfileStatics::CreateFromFileAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromFileAsync(get(file), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaEncodingProfileStatics::CreateFromStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & stream) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromStreamAsync(get(stream), put(operation))); - return operation; -} - -template Windows::Media::MediaProperties::MediaEncodingProfile impl_IMediaEncodingProfileStatics2::CreateWav(Windows::Media::MediaProperties::AudioEncodingQuality quality) const -{ - Windows::Media::MediaProperties::MediaEncodingProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWav(quality, put(value))); - return value; -} - -template Windows::Media::MediaProperties::MediaEncodingProfile impl_IMediaEncodingProfileStatics2::CreateAvi(Windows::Media::MediaProperties::VideoEncodingQuality quality) const -{ - Windows::Media::MediaProperties::MediaEncodingProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAvi(quality, put(value))); - return value; -} - -template void impl_IMediaEncodingProfile::Audio(const Windows::Media::MediaProperties::AudioEncodingProperties & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Audio(get(value))); -} - -template Windows::Media::MediaProperties::AudioEncodingProperties impl_IMediaEncodingProfile::Audio() const -{ - Windows::Media::MediaProperties::AudioEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Audio(put(value))); - return value; -} - -template void impl_IMediaEncodingProfile::Video(const Windows::Media::MediaProperties::VideoEncodingProperties & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Video(get(value))); -} - -template Windows::Media::MediaProperties::VideoEncodingProperties impl_IMediaEncodingProfile::Video() const -{ - Windows::Media::MediaProperties::VideoEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Video(put(value))); - return value; -} - -template void impl_IMediaEncodingProfile::Container(const Windows::Media::MediaProperties::ContainerEncodingProperties & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Container(get(value))); -} - -template Windows::Media::MediaProperties::ContainerEncodingProperties impl_IMediaEncodingProfile::Container() const -{ - Windows::Media::MediaProperties::ContainerEncodingProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Container(put(value))); - return value; -} - -inline AudioEncodingProperties::AudioEncodingProperties() : - AudioEncodingProperties(activate_instance()) -{} - -inline Windows::Media::MediaProperties::AudioEncodingProperties AudioEncodingProperties::CreateAac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) -{ - return get_activation_factory().CreateAac(sampleRate, channelCount, bitrate); -} - -inline Windows::Media::MediaProperties::AudioEncodingProperties AudioEncodingProperties::CreateAacAdts(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) -{ - return get_activation_factory().CreateAacAdts(sampleRate, channelCount, bitrate); -} - -inline Windows::Media::MediaProperties::AudioEncodingProperties AudioEncodingProperties::CreateMp3(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) -{ - return get_activation_factory().CreateMp3(sampleRate, channelCount, bitrate); -} - -inline Windows::Media::MediaProperties::AudioEncodingProperties AudioEncodingProperties::CreatePcm(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample) -{ - return get_activation_factory().CreatePcm(sampleRate, channelCount, bitsPerSample); -} - -inline Windows::Media::MediaProperties::AudioEncodingProperties AudioEncodingProperties::CreateWma(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) -{ - return get_activation_factory().CreateWma(sampleRate, channelCount, bitrate); -} - -inline ContainerEncodingProperties::ContainerEncodingProperties() : - ContainerEncodingProperties(activate_instance()) -{} - -inline int32_t H264ProfileIds::ConstrainedBaseline() -{ - return get_activation_factory().ConstrainedBaseline(); -} - -inline int32_t H264ProfileIds::Baseline() -{ - return get_activation_factory().Baseline(); -} - -inline int32_t H264ProfileIds::Extended() -{ - return get_activation_factory().Extended(); -} - -inline int32_t H264ProfileIds::Main() -{ - return get_activation_factory().Main(); -} - -inline int32_t H264ProfileIds::High() -{ - return get_activation_factory().High(); -} - -inline int32_t H264ProfileIds::High10() -{ - return get_activation_factory().High10(); -} - -inline int32_t H264ProfileIds::High422() -{ - return get_activation_factory().High422(); -} - -inline int32_t H264ProfileIds::High444() -{ - return get_activation_factory().High444(); -} - -inline int32_t H264ProfileIds::StereoHigh() -{ - return get_activation_factory().StereoHigh(); -} - -inline int32_t H264ProfileIds::MultiviewHigh() -{ - return get_activation_factory().MultiviewHigh(); -} - -inline ImageEncodingProperties::ImageEncodingProperties() : - ImageEncodingProperties(activate_instance()) -{} - -inline Windows::Media::MediaProperties::ImageEncodingProperties ImageEncodingProperties::CreateJpeg() -{ - return get_activation_factory().CreateJpeg(); -} - -inline Windows::Media::MediaProperties::ImageEncodingProperties ImageEncodingProperties::CreatePng() -{ - return get_activation_factory().CreatePng(); -} - -inline Windows::Media::MediaProperties::ImageEncodingProperties ImageEncodingProperties::CreateJpegXR() -{ - return get_activation_factory().CreateJpegXR(); -} - -inline Windows::Media::MediaProperties::ImageEncodingProperties ImageEncodingProperties::CreateUncompressed(Windows::Media::MediaProperties::MediaPixelFormat format) -{ - return get_activation_factory().CreateUncompressed(format); -} - -inline Windows::Media::MediaProperties::ImageEncodingProperties ImageEncodingProperties::CreateBmp() -{ - return get_activation_factory().CreateBmp(); -} - -inline MediaEncodingProfile::MediaEncodingProfile() : - MediaEncodingProfile(activate_instance()) -{} - -inline Windows::Media::MediaProperties::MediaEncodingProfile MediaEncodingProfile::CreateM4a(Windows::Media::MediaProperties::AudioEncodingQuality quality) -{ - return get_activation_factory().CreateM4a(quality); -} - -inline Windows::Media::MediaProperties::MediaEncodingProfile MediaEncodingProfile::CreateMp3(Windows::Media::MediaProperties::AudioEncodingQuality quality) -{ - return get_activation_factory().CreateMp3(quality); -} - -inline Windows::Media::MediaProperties::MediaEncodingProfile MediaEncodingProfile::CreateWma(Windows::Media::MediaProperties::AudioEncodingQuality quality) -{ - return get_activation_factory().CreateWma(quality); -} - -inline Windows::Media::MediaProperties::MediaEncodingProfile MediaEncodingProfile::CreateMp4(Windows::Media::MediaProperties::VideoEncodingQuality quality) -{ - return get_activation_factory().CreateMp4(quality); -} - -inline Windows::Media::MediaProperties::MediaEncodingProfile MediaEncodingProfile::CreateWmv(Windows::Media::MediaProperties::VideoEncodingQuality quality) -{ - return get_activation_factory().CreateWmv(quality); -} - -inline Windows::Foundation::IAsyncOperation MediaEncodingProfile::CreateFromFileAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().CreateFromFileAsync(file); -} - -inline Windows::Foundation::IAsyncOperation MediaEncodingProfile::CreateFromStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & stream) -{ - return get_activation_factory().CreateFromStreamAsync(stream); -} - -inline Windows::Media::MediaProperties::MediaEncodingProfile MediaEncodingProfile::CreateWav(Windows::Media::MediaProperties::AudioEncodingQuality quality) -{ - return get_activation_factory().CreateWav(quality); -} - -inline Windows::Media::MediaProperties::MediaEncodingProfile MediaEncodingProfile::CreateAvi(Windows::Media::MediaProperties::VideoEncodingQuality quality) -{ - return get_activation_factory().CreateAvi(quality); -} - -inline hstring MediaEncodingSubtypes::Aac() -{ - return get_activation_factory().Aac(); -} - -inline hstring MediaEncodingSubtypes::AacAdts() -{ - return get_activation_factory().AacAdts(); -} - -inline hstring MediaEncodingSubtypes::Ac3() -{ - return get_activation_factory().Ac3(); -} - -inline hstring MediaEncodingSubtypes::AmrNb() -{ - return get_activation_factory().AmrNb(); -} - -inline hstring MediaEncodingSubtypes::AmrWb() -{ - return get_activation_factory().AmrWb(); -} - -inline hstring MediaEncodingSubtypes::Argb32() -{ - return get_activation_factory().Argb32(); -} - -inline hstring MediaEncodingSubtypes::Asf() -{ - return get_activation_factory().Asf(); -} - -inline hstring MediaEncodingSubtypes::Avi() -{ - return get_activation_factory().Avi(); -} - -inline hstring MediaEncodingSubtypes::Bgra8() -{ - return get_activation_factory().Bgra8(); -} - -inline hstring MediaEncodingSubtypes::Bmp() -{ - return get_activation_factory().Bmp(); -} - -inline hstring MediaEncodingSubtypes::Eac3() -{ - return get_activation_factory().Eac3(); -} - -inline hstring MediaEncodingSubtypes::Float() -{ - return get_activation_factory().Float(); -} - -inline hstring MediaEncodingSubtypes::Gif() -{ - return get_activation_factory().Gif(); -} - -inline hstring MediaEncodingSubtypes::H263() -{ - return get_activation_factory().H263(); -} - -inline hstring MediaEncodingSubtypes::H264() -{ - return get_activation_factory().H264(); -} - -inline hstring MediaEncodingSubtypes::H264Es() -{ - return get_activation_factory().H264Es(); -} - -inline hstring MediaEncodingSubtypes::Hevc() -{ - return get_activation_factory().Hevc(); -} - -inline hstring MediaEncodingSubtypes::HevcEs() -{ - return get_activation_factory().HevcEs(); -} - -inline hstring MediaEncodingSubtypes::Iyuv() -{ - return get_activation_factory().Iyuv(); -} - -inline hstring MediaEncodingSubtypes::Jpeg() -{ - return get_activation_factory().Jpeg(); -} - -inline hstring MediaEncodingSubtypes::JpegXr() -{ - return get_activation_factory().JpegXr(); -} - -inline hstring MediaEncodingSubtypes::Mjpg() -{ - return get_activation_factory().Mjpg(); -} - -inline hstring MediaEncodingSubtypes::Mpeg() -{ - return get_activation_factory().Mpeg(); -} - -inline hstring MediaEncodingSubtypes::Mpeg1() -{ - return get_activation_factory().Mpeg1(); -} - -inline hstring MediaEncodingSubtypes::Mpeg2() -{ - return get_activation_factory().Mpeg2(); -} - -inline hstring MediaEncodingSubtypes::Mp3() -{ - return get_activation_factory().Mp3(); -} - -inline hstring MediaEncodingSubtypes::Mpeg4() -{ - return get_activation_factory().Mpeg4(); -} - -inline hstring MediaEncodingSubtypes::Nv12() -{ - return get_activation_factory().Nv12(); -} - -inline hstring MediaEncodingSubtypes::Pcm() -{ - return get_activation_factory().Pcm(); -} - -inline hstring MediaEncodingSubtypes::Png() -{ - return get_activation_factory().Png(); -} - -inline hstring MediaEncodingSubtypes::Rgb24() -{ - return get_activation_factory().Rgb24(); -} - -inline hstring MediaEncodingSubtypes::Rgb32() -{ - return get_activation_factory().Rgb32(); -} - -inline hstring MediaEncodingSubtypes::Tiff() -{ - return get_activation_factory().Tiff(); -} - -inline hstring MediaEncodingSubtypes::Wave() -{ - return get_activation_factory().Wave(); -} - -inline hstring MediaEncodingSubtypes::Wma8() -{ - return get_activation_factory().Wma8(); -} - -inline hstring MediaEncodingSubtypes::Wma9() -{ - return get_activation_factory().Wma9(); -} - -inline hstring MediaEncodingSubtypes::Wmv3() -{ - return get_activation_factory().Wmv3(); -} - -inline hstring MediaEncodingSubtypes::Wvc1() -{ - return get_activation_factory().Wvc1(); -} - -inline hstring MediaEncodingSubtypes::Yuy2() -{ - return get_activation_factory().Yuy2(); -} - -inline hstring MediaEncodingSubtypes::Yv12() -{ - return get_activation_factory().Yv12(); -} - -inline MediaPropertySet::MediaPropertySet() : - MediaPropertySet(activate_instance()) -{} - -inline int32_t Mpeg2ProfileIds::Simple() -{ - return get_activation_factory().Simple(); -} - -inline int32_t Mpeg2ProfileIds::Main() -{ - return get_activation_factory().Main(); -} - -inline int32_t Mpeg2ProfileIds::SignalNoiseRatioScalable() -{ - return get_activation_factory().SignalNoiseRatioScalable(); -} - -inline int32_t Mpeg2ProfileIds::SpatiallyScalable() -{ - return get_activation_factory().SpatiallyScalable(); -} - -inline int32_t Mpeg2ProfileIds::High() -{ - return get_activation_factory().High(); -} - -inline VideoEncodingProperties::VideoEncodingProperties() : - VideoEncodingProperties(activate_instance()) -{} - -inline Windows::Media::MediaProperties::VideoEncodingProperties VideoEncodingProperties::CreateH264() -{ - return get_activation_factory().CreateH264(); -} - -inline Windows::Media::MediaProperties::VideoEncodingProperties VideoEncodingProperties::CreateMpeg2() -{ - return get_activation_factory().CreateMpeg2(); -} - -inline Windows::Media::MediaProperties::VideoEncodingProperties VideoEncodingProperties::CreateUncompressed(hstring_ref subtype, uint32_t width, uint32_t height) -{ - return get_activation_factory().CreateUncompressed(subtype, width, height); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Ocr.h b/10.0.14393.0/winrt/Windows.Media.Ocr.h deleted file mode 100644 index 62d07d04f..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Ocr.h +++ /dev/null @@ -1,359 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Graphics.Imaging.3.h" -#include "internal/Windows.Globalization.3.h" -#include "internal/Windows.Media.Ocr.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RecognizeAsync(abi_arg_in bitmap, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RecognizeAsync(*reinterpret_cast(&bitmap))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecognizerLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RecognizerLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxImageDimension(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxImageDimension()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AvailableRecognizerLanguages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AvailableRecognizerLanguages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsLanguageSupported(abi_arg_in language, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsLanguageSupported(*reinterpret_cast(&language))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryCreateFromLanguage(abi_arg_in language, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TryCreateFromLanguage(*reinterpret_cast(&language))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryCreateFromUserProfileLanguages(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TryCreateFromUserProfileLanguages()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Words(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Words()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Lines(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Lines()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextAngle(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TextAngle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BoundingRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BoundingRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Ocr { - -template Windows::Foundation::Rect impl_IOcrWord::BoundingRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_BoundingRect(put(value))); - return value; -} - -template hstring impl_IOcrWord::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IOcrLine::Words() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Words(put(value))); - return value; -} - -template hstring impl_IOcrLine::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IOcrResult::Lines() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Lines(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IOcrResult::TextAngle() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_TextAngle(put(value))); - return value; -} - -template hstring impl_IOcrResult::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IOcrEngine::RecognizeAsync(const Windows::Graphics::Imaging::SoftwareBitmap & bitmap) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RecognizeAsync(get(bitmap), put(result))); - return result; -} - -template Windows::Globalization::Language impl_IOcrEngine::RecognizerLanguage() const -{ - Windows::Globalization::Language value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RecognizerLanguage(put(value))); - return value; -} - -template uint32_t impl_IOcrEngineStatics::MaxImageDimension() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxImageDimension(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IOcrEngineStatics::AvailableRecognizerLanguages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AvailableRecognizerLanguages(put(value))); - return value; -} - -template bool impl_IOcrEngineStatics::IsLanguageSupported(const Windows::Globalization::Language & language) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsLanguageSupported(get(language), &result)); - return result; -} - -template Windows::Media::Ocr::OcrEngine impl_IOcrEngineStatics::TryCreateFromLanguage(const Windows::Globalization::Language & language) const -{ - Windows::Media::Ocr::OcrEngine result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryCreateFromLanguage(get(language), put(result))); - return result; -} - -template Windows::Media::Ocr::OcrEngine impl_IOcrEngineStatics::TryCreateFromUserProfileLanguages() const -{ - Windows::Media::Ocr::OcrEngine result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryCreateFromUserProfileLanguages(put(result))); - return result; -} - -inline uint32_t OcrEngine::MaxImageDimension() -{ - return get_activation_factory().MaxImageDimension(); -} - -inline Windows::Foundation::Collections::IVectorView OcrEngine::AvailableRecognizerLanguages() -{ - return get_activation_factory().AvailableRecognizerLanguages(); -} - -inline bool OcrEngine::IsLanguageSupported(const Windows::Globalization::Language & language) -{ - return get_activation_factory().IsLanguageSupported(language); -} - -inline Windows::Media::Ocr::OcrEngine OcrEngine::TryCreateFromLanguage(const Windows::Globalization::Language & language) -{ - return get_activation_factory().TryCreateFromLanguage(language); -} - -inline Windows::Media::Ocr::OcrEngine OcrEngine::TryCreateFromUserProfileLanguages() -{ - return get_activation_factory().TryCreateFromUserProfileLanguages(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.PlayTo.h b/10.0.14393.0/winrt/Windows.Media.PlayTo.h deleted file mode 100644 index 8b059f15e..000000000 --- a/10.0.14393.0/winrt/Windows.Media.PlayTo.h +++ /dev/null @@ -1,1987 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.PlayTo.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Time(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Time()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Mute(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Mute()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_State(Windows::Media::PlayTo::PlayToConnectionState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StateChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StateChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StateChanged(event_token token) noexcept override - { - try - { - this->shim().StateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Transferred(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Transferred(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Transferred(event_token token) noexcept override - { - try - { - this->shim().Transferred(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Error(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Error(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Error(event_token token) noexcept override - { - try - { - this->shim().Error(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Code(Windows::Media::PlayTo::PlayToConnectionError * value) noexcept override - { - try - { - *value = detach(this->shim().Code()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PreviousState(Windows::Media::PlayTo::PlayToConnectionState * value) noexcept override - { - try - { - *value = detach(this->shim().PreviousState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentState(Windows::Media::PlayTo::PlayToConnectionState * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PreviousSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreviousSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_SourceRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceRequested(event_token token) noexcept override - { - try - { - this->shim().SourceRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceSelected(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceSelected(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceSelected(event_token token) noexcept override - { - try - { - this->shim().SourceSelected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultSourceSelection(bool value) noexcept override - { - try - { - this->shim().DefaultSourceSelection(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultSourceSelection(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultSourceSelection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out playToManager) noexcept override - { - try - { - *playToManager = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *playToManager = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowPlayToUI() noexcept override - { - try - { - this->shim().ShowPlayToUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_PlayRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PlayRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PlayRequested(event_token token) noexcept override - { - try - { - this->shim().PlayRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PauseRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PauseRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PauseRequested(event_token token) noexcept override - { - try - { - this->shim().PauseRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceChangeRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceChangeRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceChangeRequested(event_token token) noexcept override - { - try - { - this->shim().SourceChangeRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PlaybackRateChangeRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PlaybackRateChangeRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PlaybackRateChangeRequested(event_token token) noexcept override - { - try - { - this->shim().PlaybackRateChangeRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CurrentTimeChangeRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CurrentTimeChangeRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CurrentTimeChangeRequested(event_token token) noexcept override - { - try - { - this->shim().CurrentTimeChangeRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MuteChangeRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MuteChangeRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MuteChangeRequested(event_token token) noexcept override - { - try - { - this->shim().MuteChangeRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VolumeChangeRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VolumeChangeRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VolumeChangeRequested(event_token token) noexcept override - { - try - { - this->shim().VolumeChangeRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TimeUpdateRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TimeUpdateRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TimeUpdateRequested(event_token token) noexcept override - { - try - { - this->shim().TimeUpdateRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StopRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().StopRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StopRequested(event_token token) noexcept override - { - try - { - this->shim().StopRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyVolumeChange(double volume, bool mute) noexcept override - { - try - { - this->shim().NotifyVolumeChange(volume, mute); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyRateChange(double rate) noexcept override - { - try - { - this->shim().NotifyRateChange(rate); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyLoadedMetadata() noexcept override - { - try - { - this->shim().NotifyLoadedMetadata(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyTimeUpdate(abi_arg_in currentTime) noexcept override - { - try - { - this->shim().NotifyTimeUpdate(*reinterpret_cast(¤tTime)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyDurationChange(abi_arg_in duration) noexcept override - { - try - { - this->shim().NotifyDurationChange(*reinterpret_cast(&duration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifySeeking() noexcept override - { - try - { - this->shim().NotifySeeking(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifySeeked() noexcept override - { - try - { - this->shim().NotifySeeked(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyPaused() noexcept override - { - try - { - this->shim().NotifyPaused(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyPlaying() noexcept override - { - try - { - this->shim().NotifyPlaying(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyEnded() noexcept override - { - try - { - this->shim().NotifyEnded(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyError() noexcept override - { - try - { - this->shim().NotifyError(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyStopped() noexcept override - { - try - { - this->shim().NotifyStopped(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FriendlyName(abi_arg_in value) noexcept override - { - try - { - this->shim().FriendlyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SupportsImage(bool value) noexcept override - { - try - { - this->shim().SupportsImage(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportsImage(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsImage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SupportsAudio(bool value) noexcept override - { - try - { - this->shim().SupportsAudio(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportsAudio(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsAudio()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SupportsVideo(bool value) noexcept override - { - try - { - this->shim().SupportsVideo(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportsVideo(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsVideo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAsync(abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().StartAsync()); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopAsync(abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().StopAsync()); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Connection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Connection()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Next(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Next()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Next(abi_arg_in value) noexcept override - { - try - { - this->shim().Next(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PlayNext() noexcept override - { - try - { - this->shim().PlayNext(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisplayErrorString(abi_arg_in errorString) noexcept override - { - try - { - this->shim().DisplayErrorString(*reinterpret_cast(&errorString)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetSource(abi_arg_in value) noexcept override - { - try - { - this->shim().SetSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceRequest(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceRequest()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Icon(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Icon()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportsImage(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsImage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportsAudio(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsAudio()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportsVideo(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SupportsVideo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PreferredSourceUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreferredSourceUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreferredSourceUri(abi_arg_in value) noexcept override - { - try - { - this->shim().PreferredSourceUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Rate(double * value) noexcept override - { - try - { - *value = detach(this->shim().Rate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Stream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Stream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Author(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Author()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Album(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Album()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Genre(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Genre()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Date(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Date()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rating(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Rating()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Volume(double * value) noexcept override - { - try - { - *value = detach(this->shim().Volume()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::PlayTo { - -template Windows::Storage::Streams::IRandomAccessStreamWithContentType impl_ISourceChangeRequestedEventArgs::Stream() const -{ - Windows::Storage::Streams::IRandomAccessStreamWithContentType value; - check_hresult(static_cast(static_cast(*this))->get_Stream(put(value))); - return value; -} - -template hstring impl_ISourceChangeRequestedEventArgs::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template hstring impl_ISourceChangeRequestedEventArgs::Author() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Author(put(value))); - return value; -} - -template hstring impl_ISourceChangeRequestedEventArgs::Album() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Album(put(value))); - return value; -} - -template hstring impl_ISourceChangeRequestedEventArgs::Genre() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Genre(put(value))); - return value; -} - -template hstring impl_ISourceChangeRequestedEventArgs::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ISourceChangeRequestedEventArgs::Date() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Date(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_ISourceChangeRequestedEventArgs::Thumbnail() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ISourceChangeRequestedEventArgs::Rating() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Rating(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_ISourceChangeRequestedEventArgs::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template double impl_IPlaybackRateChangeRequestedEventArgs::Rate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Rate(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_ICurrentTimeChangeRequestedEventArgs::Time() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Time(put(value))); - return value; -} - -template bool impl_IMuteChangeRequestedEventArgs::Mute() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Mute(&value)); - return value; -} - -template double impl_IVolumeChangeRequestedEventArgs::Volume() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Volume(&value)); - return value; -} - -template event_token impl_IPlayToReceiver::PlayRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PlayRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToReceiver::PlayRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToReceiver::remove_PlayRequested, PlayRequested(handler)); -} - -template void impl_IPlayToReceiver::PlayRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PlayRequested(token)); -} - -template event_token impl_IPlayToReceiver::PauseRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PauseRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToReceiver::PauseRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToReceiver::remove_PauseRequested, PauseRequested(handler)); -} - -template void impl_IPlayToReceiver::PauseRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PauseRequested(token)); -} - -template event_token impl_IPlayToReceiver::SourceChangeRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceChangeRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToReceiver::SourceChangeRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToReceiver::remove_SourceChangeRequested, SourceChangeRequested(handler)); -} - -template void impl_IPlayToReceiver::SourceChangeRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceChangeRequested(token)); -} - -template event_token impl_IPlayToReceiver::PlaybackRateChangeRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PlaybackRateChangeRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToReceiver::PlaybackRateChangeRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToReceiver::remove_PlaybackRateChangeRequested, PlaybackRateChangeRequested(handler)); -} - -template void impl_IPlayToReceiver::PlaybackRateChangeRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PlaybackRateChangeRequested(token)); -} - -template event_token impl_IPlayToReceiver::CurrentTimeChangeRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CurrentTimeChangeRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToReceiver::CurrentTimeChangeRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToReceiver::remove_CurrentTimeChangeRequested, CurrentTimeChangeRequested(handler)); -} - -template void impl_IPlayToReceiver::CurrentTimeChangeRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CurrentTimeChangeRequested(token)); -} - -template event_token impl_IPlayToReceiver::MuteChangeRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MuteChangeRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToReceiver::MuteChangeRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToReceiver::remove_MuteChangeRequested, MuteChangeRequested(handler)); -} - -template void impl_IPlayToReceiver::MuteChangeRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MuteChangeRequested(token)); -} - -template event_token impl_IPlayToReceiver::VolumeChangeRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VolumeChangeRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToReceiver::VolumeChangeRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToReceiver::remove_VolumeChangeRequested, VolumeChangeRequested(handler)); -} - -template void impl_IPlayToReceiver::VolumeChangeRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VolumeChangeRequested(token)); -} - -template event_token impl_IPlayToReceiver::TimeUpdateRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TimeUpdateRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToReceiver::TimeUpdateRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToReceiver::remove_TimeUpdateRequested, TimeUpdateRequested(handler)); -} - -template void impl_IPlayToReceiver::TimeUpdateRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TimeUpdateRequested(token)); -} - -template event_token impl_IPlayToReceiver::StopRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StopRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToReceiver::StopRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToReceiver::remove_StopRequested, StopRequested(handler)); -} - -template void impl_IPlayToReceiver::StopRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StopRequested(token)); -} - -template void impl_IPlayToReceiver::NotifyVolumeChange(double volume, bool mute) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyVolumeChange(volume, mute)); -} - -template void impl_IPlayToReceiver::NotifyRateChange(double rate) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyRateChange(rate)); -} - -template void impl_IPlayToReceiver::NotifyLoadedMetadata() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyLoadedMetadata()); -} - -template void impl_IPlayToReceiver::NotifyTimeUpdate(const Windows::Foundation::TimeSpan & currentTime) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyTimeUpdate(get(currentTime))); -} - -template void impl_IPlayToReceiver::NotifyDurationChange(const Windows::Foundation::TimeSpan & duration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyDurationChange(get(duration))); -} - -template void impl_IPlayToReceiver::NotifySeeking() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifySeeking()); -} - -template void impl_IPlayToReceiver::NotifySeeked() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifySeeked()); -} - -template void impl_IPlayToReceiver::NotifyPaused() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyPaused()); -} - -template void impl_IPlayToReceiver::NotifyPlaying() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyPlaying()); -} - -template void impl_IPlayToReceiver::NotifyEnded() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyEnded()); -} - -template void impl_IPlayToReceiver::NotifyError() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyError()); -} - -template void impl_IPlayToReceiver::NotifyStopped() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyStopped()); -} - -template hstring impl_IPlayToReceiver::FriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FriendlyName(put(value))); - return value; -} - -template void impl_IPlayToReceiver::FriendlyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FriendlyName(get(value))); -} - -template void impl_IPlayToReceiver::SupportsImage(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SupportsImage(value)); -} - -template bool impl_IPlayToReceiver::SupportsImage() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsImage(&value)); - return value; -} - -template void impl_IPlayToReceiver::SupportsAudio(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SupportsAudio(value)); -} - -template bool impl_IPlayToReceiver::SupportsAudio() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsAudio(&value)); - return value; -} - -template void impl_IPlayToReceiver::SupportsVideo(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SupportsVideo(value)); -} - -template bool impl_IPlayToReceiver::SupportsVideo() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsVideo(&value)); - return value; -} - -template Windows::Foundation::Collections::IPropertySet impl_IPlayToReceiver::Properties() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IPlayToReceiver::StartAsync() const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_StartAsync(put(action))); - return action; -} - -template Windows::Foundation::IAsyncAction impl_IPlayToReceiver::StopAsync() const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_StopAsync(put(action))); - return action; -} - -template Windows::Media::PlayTo::PlayToConnection impl_IPlayToSource::Connection() const -{ - Windows::Media::PlayTo::PlayToConnection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Connection(put(value))); - return value; -} - -template Windows::Media::PlayTo::PlayToSource impl_IPlayToSource::Next() const -{ - Windows::Media::PlayTo::PlayToSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Next(put(value))); - return value; -} - -template void impl_IPlayToSource::Next(const Windows::Media::PlayTo::PlayToSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Next(get(value))); -} - -template void impl_IPlayToSource::PlayNext() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PlayNext()); -} - -template Windows::Foundation::Uri impl_IPlayToSourceWithPreferredSourceUri::PreferredSourceUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PreferredSourceUri(put(value))); - return value; -} - -template void impl_IPlayToSourceWithPreferredSourceUri::PreferredSourceUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreferredSourceUri(get(value))); -} - -template Windows::Media::PlayTo::PlayToConnectionState impl_IPlayToConnectionStateChangedEventArgs::PreviousState() const -{ - Windows::Media::PlayTo::PlayToConnectionState value {}; - check_hresult(static_cast(static_cast(*this))->get_PreviousState(&value)); - return value; -} - -template Windows::Media::PlayTo::PlayToConnectionState impl_IPlayToConnectionStateChangedEventArgs::CurrentState() const -{ - Windows::Media::PlayTo::PlayToConnectionState value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentState(&value)); - return value; -} - -template Windows::Media::PlayTo::PlayToSource impl_IPlayToConnectionTransferredEventArgs::PreviousSource() const -{ - Windows::Media::PlayTo::PlayToSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PreviousSource(put(value))); - return value; -} - -template Windows::Media::PlayTo::PlayToSource impl_IPlayToConnectionTransferredEventArgs::CurrentSource() const -{ - Windows::Media::PlayTo::PlayToSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentSource(put(value))); - return value; -} - -template Windows::Media::PlayTo::PlayToConnectionError impl_IPlayToConnectionErrorEventArgs::Code() const -{ - Windows::Media::PlayTo::PlayToConnectionError value {}; - check_hresult(static_cast(static_cast(*this))->get_Code(&value)); - return value; -} - -template hstring impl_IPlayToConnectionErrorEventArgs::Message() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template Windows::Media::PlayTo::PlayToConnectionState impl_IPlayToConnection::State() const -{ - Windows::Media::PlayTo::PlayToConnectionState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template event_token impl_IPlayToConnection::StateChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_StateChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToConnection::StateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToConnection::remove_StateChanged, StateChanged(handler)); -} - -template void impl_IPlayToConnection::StateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StateChanged(token)); -} - -template event_token impl_IPlayToConnection::Transferred(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Transferred(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToConnection::Transferred(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToConnection::remove_Transferred, Transferred(handler)); -} - -template void impl_IPlayToConnection::Transferred(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Transferred(token)); -} - -template event_token impl_IPlayToConnection::Error(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Error(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToConnection::Error(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToConnection::remove_Error, Error(handler)); -} - -template void impl_IPlayToConnection::Error(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Error(token)); -} - -template hstring impl_IPlayToSourceSelectedEventArgs::FriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FriendlyName(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamWithContentType impl_IPlayToSourceSelectedEventArgs::Icon() const -{ - Windows::Storage::Streams::IRandomAccessStreamWithContentType value; - check_hresult(static_cast(static_cast(*this))->get_Icon(put(value))); - return value; -} - -template bool impl_IPlayToSourceSelectedEventArgs::SupportsImage() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsImage(&value)); - return value; -} - -template bool impl_IPlayToSourceSelectedEventArgs::SupportsAudio() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsAudio(&value)); - return value; -} - -template bool impl_IPlayToSourceSelectedEventArgs::SupportsVideo() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportsVideo(&value)); - return value; -} - -template void impl_IPlayToSourceDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::Foundation::DateTime impl_IPlayToSourceRequest::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template void impl_IPlayToSourceRequest::DisplayErrorString(hstring_ref errorString) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DisplayErrorString(get(errorString))); -} - -template Windows::Media::PlayTo::PlayToSourceDeferral impl_IPlayToSourceRequest::GetDeferral() const -{ - Windows::Media::PlayTo::PlayToSourceDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template void impl_IPlayToSourceRequest::SetSource(const Windows::Media::PlayTo::PlayToSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSource(get(value))); -} - -template Windows::Media::PlayTo::PlayToSourceRequest impl_IPlayToSourceRequestedEventArgs::SourceRequest() const -{ - Windows::Media::PlayTo::PlayToSourceRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceRequest(put(value))); - return value; -} - -template event_token impl_IPlayToManager::SourceRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToManager::SourceRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToManager::remove_SourceRequested, SourceRequested(handler)); -} - -template void impl_IPlayToManager::SourceRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceRequested(token)); -} - -template event_token impl_IPlayToManager::SourceSelected(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceSelected(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlayToManager::SourceSelected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::PlayTo::IPlayToManager::remove_SourceSelected, SourceSelected(handler)); -} - -template void impl_IPlayToManager::SourceSelected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceSelected(token)); -} - -template void impl_IPlayToManager::DefaultSourceSelection(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultSourceSelection(value)); -} - -template bool impl_IPlayToManager::DefaultSourceSelection() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultSourceSelection(&value)); - return value; -} - -template Windows::Media::PlayTo::PlayToManager impl_IPlayToManagerStatics::GetForCurrentView() const -{ - Windows::Media::PlayTo::PlayToManager playToManager { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(playToManager))); - return playToManager; -} - -template void impl_IPlayToManagerStatics::ShowPlayToUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowPlayToUI()); -} - -inline Windows::Media::PlayTo::PlayToManager PlayToManager::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline void PlayToManager::ShowPlayToUI() -{ - get_activation_factory().ShowPlayToUI(); -} - -inline PlayToReceiver::PlayToReceiver() : - PlayToReceiver(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Playback.h b/10.0.14393.0/winrt/Windows.Media.Playback.h deleted file mode 100644 index 26a9fb795..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Playback.h +++ /dev/null @@ -1,6841 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.Media.Casting.3.h" -#include "internal/Windows.UI.Composition.3.h" -#include "internal/Windows.Media.MediaProperties.3.h" -#include "internal/Windows.Media.Protection.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Media.Core.3.h" -#include "internal/Windows.Media.Playback.3.h" -#include "Windows.Media.h" -#include "Windows.Foundation.h" -#include "Windows.Foundation.Collections.h" -#include "Windows.Media.Core.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Current(abi_arg_out player) noexcept override - { - try - { - *player = detach(this->shim().Current()); - return S_OK; - } - catch (...) - { - *player = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MessageReceivedFromBackground(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MessageReceivedFromBackground(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MessageReceivedFromBackground(event_token token) noexcept override - { - try - { - this->shim().MessageReceivedFromBackground(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MessageReceivedFromForeground(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MessageReceivedFromForeground(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MessageReceivedFromForeground(event_token token) noexcept override - { - try - { - this->shim().MessageReceivedFromForeground(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendMessageToBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().SendMessageToBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendMessageToForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().SendMessageToForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsMediaPlaying(bool * isMediaPlaying) noexcept override - { - try - { - *isMediaPlaying = detach(this->shim().IsMediaPlaying()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Shutdown() noexcept override - { - try - { - this->shim().Shutdown(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NewItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OldItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PlaybackList(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackList()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PresentationPosition(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PresentationPosition()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InsertionMethod(Windows::Media::Playback::MediaBreakInsertionMethod * value) noexcept override - { - try - { - *value = detach(this->shim().InsertionMethod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanStart(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanStart()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanStart(bool value) noexcept override - { - try - { - this->shim().CanStart(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MediaBreak(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaBreak()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::Media::Playback::MediaBreakInsertionMethod insertionMethod, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(insertionMethod)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithPresentationPosition(Windows::Media::Playback::MediaBreakInsertionMethod insertionMethod, abi_arg_in presentationPosition, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithPresentationPosition(insertionMethod, *reinterpret_cast(&presentationPosition))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_BreaksSeekedOver(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BreaksSeekedOver(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BreaksSeekedOver(event_token token) noexcept override - { - try - { - this->shim().BreaksSeekedOver(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BreakStarted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BreakStarted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BreakStarted(event_token token) noexcept override - { - try - { - this->shim().BreakStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BreakEnded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BreakEnded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BreakEnded(event_token token) noexcept override - { - try - { - this->shim().BreakEnded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BreakSkipped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BreakSkipped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BreakSkipped(event_token token) noexcept override - { - try - { - this->shim().BreakSkipped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentBreak(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentBreak()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackSession(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackSession()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PlayBreak(abi_arg_in value) noexcept override - { - try - { - this->shim().PlayBreak(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SkipCurrentBreak() noexcept override - { - try - { - this->shim().SkipCurrentBreak(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ScheduleChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ScheduleChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ScheduleChanged(event_token token) noexcept override - { - try - { - this->shim().ScheduleChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertMidrollBreak(abi_arg_in mediaBreak) noexcept override - { - try - { - this->shim().InsertMidrollBreak(*reinterpret_cast(&mediaBreak)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveMidrollBreak(abi_arg_in mediaBreak) noexcept override - { - try - { - this->shim().RemoveMidrollBreak(*reinterpret_cast(&mediaBreak)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MidrollBreaks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MidrollBreaks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PrerollBreak(abi_arg_in value) noexcept override - { - try - { - this->shim().PrerollBreak(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrerollBreak(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrerollBreak()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PostrollBreak(abi_arg_in value) noexcept override - { - try - { - this->shim().PostrollBreak(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PostrollBreak(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PostrollBreak()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SeekedOverBreaks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SeekedOverBreaks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OldPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MediaBreak(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaBreak()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MediaBreak(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaBreak()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPlaybackSource(abi_arg_in source) noexcept override - { - try - { - this->shim().SetPlaybackSource(*reinterpret_cast(&source)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::Media::MediaPlaybackType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Type(Windows::Media::MediaPlaybackType value) noexcept override - { - try - { - this->shim().Type(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MusicProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MusicProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbnail(abi_arg_in value) noexcept override - { - try - { - this->shim().Thumbnail(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearAll() noexcept override - { - try - { - this->shim().ClearAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsEnabled(bool value) noexcept override - { - try - { - this->shim().IsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaPlayer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaPlayer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlayBehavior(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlayBehavior()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PauseBehavior(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PauseBehavior()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NextBehavior(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NextBehavior()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreviousBehavior(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreviousBehavior()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FastForwardBehavior(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FastForwardBehavior()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RewindBehavior(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RewindBehavior()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShuffleBehavior(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShuffleBehavior()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoRepeatModeBehavior(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutoRepeatModeBehavior()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionBehavior(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PositionBehavior()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RateBehavior(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RateBehavior()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PlayReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PlayReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PlayReceived(event_token token) noexcept override - { - try - { - this->shim().PlayReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PauseReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PauseReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PauseReceived(event_token token) noexcept override - { - try - { - this->shim().PauseReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NextReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NextReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NextReceived(event_token token) noexcept override - { - try - { - this->shim().NextReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PreviousReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PreviousReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PreviousReceived(event_token token) noexcept override - { - try - { - this->shim().PreviousReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FastForwardReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FastForwardReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FastForwardReceived(event_token token) noexcept override - { - try - { - this->shim().FastForwardReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RewindReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RewindReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RewindReceived(event_token token) noexcept override - { - try - { - this->shim().RewindReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ShuffleReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ShuffleReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ShuffleReceived(event_token token) noexcept override - { - try - { - this->shim().ShuffleReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AutoRepeatModeReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AutoRepeatModeReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AutoRepeatModeReceived(event_token token) noexcept override - { - try - { - this->shim().AutoRepeatModeReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PositionReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PositionReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PositionReceived(event_token token) noexcept override - { - try - { - this->shim().PositionReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RateReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RateReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RateReceived(event_token token) noexcept override - { - try - { - this->shim().RateReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoRepeatMode(Windows::Media::MediaPlaybackAutoRepeatMode * value) noexcept override - { - try - { - *value = detach(this->shim().AutoRepeatMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CommandManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EnablingRule(Windows::Media::Playback::MediaCommandEnablingRule * value) noexcept override - { - try - { - *value = detach(this->shim().EnablingRule()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EnablingRule(Windows::Media::Playback::MediaCommandEnablingRule value) noexcept override - { - try - { - this->shim().EnablingRule(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_IsEnabledChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().IsEnabledChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_IsEnabledChanged(event_token token) noexcept override - { - try - { - this->shim().IsEnabledChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackRate(double * value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsShuffleRequested(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsShuffleRequested()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_AudioTracksChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AudioTracksChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AudioTracksChanged(event_token token) noexcept override - { - try - { - this->shim().AudioTracksChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VideoTracksChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VideoTracksChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VideoTracksChanged(event_token token) noexcept override - { - try - { - this->shim().VideoTracksChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TimedMetadataTracksChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TimedMetadataTracksChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TimedMetadataTracksChanged(event_token token) noexcept override - { - try - { - this->shim().TimedMetadataTracksChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioTracks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AudioTracks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoTracks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().VideoTracks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimedMetadataTracks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TimedMetadataTracks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BreakSchedule(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BreakSchedule()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DurationLimit(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DurationLimit()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanSkip(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanSkip()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanSkip(bool value) noexcept override - { - try - { - this->shim().CanSkip(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDisplayProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDisplayProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ApplyDisplayProperties(abi_arg_in value) noexcept override - { - try - { - this->shim().ApplyDisplayProperties(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ErrorCode(Windows::Media::Playback::MediaPlaybackItemErrorCode * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in source, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(*reinterpret_cast(&source))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithStartTime(abi_arg_in source, abi_arg_in startTime, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithStartTime(*reinterpret_cast(&source), *reinterpret_cast(&startTime))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithStartTimeAndDurationLimit(abi_arg_in source, abi_arg_in startTime, abi_arg_in durationLimit, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithStartTimeAndDurationLimit(*reinterpret_cast(&source), *reinterpret_cast(&startTime), *reinterpret_cast(&durationLimit))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Item(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Item()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Error(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Item(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Item()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindFromMediaSource(abi_arg_in source, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FindFromMediaSource(*reinterpret_cast(&source))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ItemFailed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ItemFailed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemFailed(event_token token) noexcept override - { - try - { - this->shim().ItemFailed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CurrentItemChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CurrentItemChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CurrentItemChanged(event_token token) noexcept override - { - try - { - this->shim().CurrentItemChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ItemOpened(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ItemOpened(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemOpened(event_token token) noexcept override - { - try - { - this->shim().ItemOpened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoRepeatEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoRepeatEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoRepeatEnabled(bool value) noexcept override - { - try - { - this->shim().AutoRepeatEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShuffleEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShuffleEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShuffleEnabled(bool value) noexcept override - { - try - { - this->shim().ShuffleEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentItemIndex(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentItemIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveNext(abi_arg_out item) noexcept override - { - try - { - *item = detach(this->shim().MoveNext()); - return S_OK; - } - catch (...) - { - *item = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MovePrevious(abi_arg_out item) noexcept override - { - try - { - *item = detach(this->shim().MovePrevious()); - return S_OK; - } - catch (...) - { - *item = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveTo(uint32_t itemIndex, abi_arg_out item) noexcept override - { - try - { - *item = detach(this->shim().MoveTo(itemIndex)); - return S_OK; - } - catch (...) - { - *item = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxPrefetchTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxPrefetchTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxPrefetchTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().MaxPrefetchTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartingItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartingItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StartingItem(abi_arg_in value) noexcept override - { - try - { - this->shim().StartingItem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShuffledItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ShuffledItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetShuffledItems(abi_arg_in> value) noexcept override - { - try - { - this->shim().SetShuffledItems(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_PlaybackStateChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PlaybackStateChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PlaybackStateChanged(event_token token) noexcept override - { - try - { - this->shim().PlaybackStateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PlaybackRateChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PlaybackRateChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PlaybackRateChanged(event_token token) noexcept override - { - try - { - this->shim().PlaybackRateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SeekCompleted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SeekCompleted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SeekCompleted(event_token token) noexcept override - { - try - { - this->shim().SeekCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BufferingStarted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BufferingStarted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BufferingStarted(event_token token) noexcept override - { - try - { - this->shim().BufferingStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BufferingEnded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BufferingEnded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BufferingEnded(event_token token) noexcept override - { - try - { - this->shim().BufferingEnded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BufferingProgressChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BufferingProgressChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BufferingProgressChanged(event_token token) noexcept override - { - try - { - this->shim().BufferingProgressChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DownloadProgressChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DownloadProgressChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DownloadProgressChanged(event_token token) noexcept override - { - try - { - this->shim().DownloadProgressChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NaturalDurationChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NaturalDurationChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NaturalDurationChanged(event_token token) noexcept override - { - try - { - this->shim().NaturalDurationChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PositionChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PositionChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PositionChanged(event_token token) noexcept override - { - try - { - this->shim().PositionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NaturalVideoSizeChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NaturalVideoSizeChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NaturalVideoSizeChanged(event_token token) noexcept override - { - try - { - this->shim().NaturalVideoSizeChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaPlayer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaPlayer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NaturalDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Position(abi_arg_in value) noexcept override - { - try - { - this->shim().Position(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackState(Windows::Media::Playback::MediaPlaybackState * value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanSeek(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanSeek()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanPause(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanPause()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsProtected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsProtected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackRate(double * value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaybackRate(double value) noexcept override - { - try - { - this->shim().PlaybackRate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BufferingProgress(double * value) noexcept override - { - try - { - *value = detach(this->shim().BufferingProgress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DownloadProgress(double * value) noexcept override - { - try - { - *value = detach(this->shim().DownloadProgress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalVideoHeight(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NaturalVideoHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalVideoWidth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NaturalVideoWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NormalizedSourceRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NormalizedSourceRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NormalizedSourceRect(abi_arg_in value) noexcept override - { - try - { - this->shim().NormalizedSourceRect(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StereoscopicVideoPackingMode(Windows::Media::MediaProperties::StereoscopicVideoPackingMode * value) noexcept override - { - try - { - *value = detach(this->shim().StereoscopicVideoPackingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StereoscopicVideoPackingMode(Windows::Media::MediaProperties::StereoscopicVideoPackingMode value) noexcept override - { - try - { - this->shim().StereoscopicVideoPackingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_PresentationModeChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PresentationModeChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PresentationModeChanged(event_token token) noexcept override - { - try - { - this->shim().PresentationModeChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPresentationMode(uint32_t index, Windows::Media::Playback::TimedMetadataTrackPresentationMode * value) noexcept override - { - try - { - *value = detach(this->shim().GetPresentationMode(index)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPresentationMode(uint32_t index, Windows::Media::Playback::TimedMetadataTrackPresentationMode value) noexcept override - { - try - { - this->shim().SetPresentationMode(index, value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AutoPlay(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoPlay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoPlay(bool value) noexcept override - { - try - { - this->shim().AutoPlay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NaturalDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Position(abi_arg_in value) noexcept override - { - try - { - this->shim().Position(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BufferingProgress(double * value) noexcept override - { - try - { - *value = detach(this->shim().BufferingProgress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentState(Windows::Media::Playback::MediaPlayerState * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanSeek(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanSeek()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanPause(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanPause()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLoopingEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsLoopingEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsLoopingEnabled(bool value) noexcept override - { - try - { - this->shim().IsLoopingEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsProtected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsProtected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMuted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMuted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsMuted(bool value) noexcept override - { - try - { - this->shim().IsMuted(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackRate(double * value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaybackRate(double value) noexcept override - { - try - { - this->shim().PlaybackRate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Volume(double * value) noexcept override - { - try - { - *value = detach(this->shim().Volume()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Volume(double value) noexcept override - { - try - { - this->shim().Volume(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackMediaMarkers(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackMediaMarkers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MediaOpened(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MediaOpened(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MediaOpened(event_token token) noexcept override - { - try - { - this->shim().MediaOpened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MediaEnded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MediaEnded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MediaEnded(event_token token) noexcept override - { - try - { - this->shim().MediaEnded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MediaFailed(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MediaFailed(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MediaFailed(event_token token) noexcept override - { - try - { - this->shim().MediaFailed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CurrentStateChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CurrentStateChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CurrentStateChanged(event_token token) noexcept override - { - try - { - this->shim().CurrentStateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PlaybackMediaMarkerReached(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PlaybackMediaMarkerReached(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PlaybackMediaMarkerReached(event_token token) noexcept override - { - try - { - this->shim().PlaybackMediaMarkerReached(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MediaPlayerRateChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MediaPlayerRateChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MediaPlayerRateChanged(event_token token) noexcept override - { - try - { - this->shim().MediaPlayerRateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VolumeChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VolumeChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VolumeChanged(event_token token) noexcept override - { - try - { - this->shim().VolumeChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SeekCompleted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SeekCompleted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SeekCompleted(event_token token) noexcept override - { - try - { - this->shim().SeekCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BufferingStarted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BufferingStarted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BufferingStarted(event_token token) noexcept override - { - try - { - this->shim().BufferingStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BufferingEnded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BufferingEnded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BufferingEnded(event_token token) noexcept override - { - try - { - this->shim().BufferingEnded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Play() noexcept override - { - try - { - this->shim().Play(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Pause() noexcept override - { - try - { - this->shim().Pause(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetUriSource(abi_arg_in value) noexcept override - { - try - { - this->shim().SetUriSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SystemMediaTransportControls(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SystemMediaTransportControls()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioCategory(Windows::Media::Playback::MediaPlayerAudioCategory * value) noexcept override - { - try - { - *value = detach(this->shim().AudioCategory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioCategory(Windows::Media::Playback::MediaPlayerAudioCategory value) noexcept override - { - try - { - this->shim().AudioCategory(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioDeviceType(Windows::Media::Playback::MediaPlayerAudioDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().AudioDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioDeviceType(Windows::Media::Playback::MediaPlayerAudioDeviceType value) noexcept override - { - try - { - this->shim().AudioDeviceType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_IsMutedChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().IsMutedChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_IsMutedChanged(event_token token) noexcept override - { - try - { - this->shim().IsMutedChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceChanged(event_token token) noexcept override - { - try - { - this->shim().SourceChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioBalance(double * value) noexcept override - { - try - { - *value = detach(this->shim().AudioBalance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioBalance(double value) noexcept override - { - try - { - this->shim().AudioBalance(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RealTimePlayback(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RealTimePlayback()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RealTimePlayback(bool value) noexcept override - { - try - { - this->shim().RealTimePlayback(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StereoscopicVideoRenderMode(Windows::Media::Playback::StereoscopicVideoRenderMode * value) noexcept override - { - try - { - *value = detach(this->shim().StereoscopicVideoRenderMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StereoscopicVideoRenderMode(Windows::Media::Playback::StereoscopicVideoRenderMode value) noexcept override - { - try - { - this->shim().StereoscopicVideoRenderMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BreakManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BreakManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommandManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioDevice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioDevice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioDevice(abi_arg_in value) noexcept override - { - try - { - this->shim().AudioDevice(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimelineController(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimelineController()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TimelineController(abi_arg_in value) noexcept override - { - try - { - this->shim().TimelineController(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimelineControllerPositionOffset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimelineControllerPositionOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TimelineControllerPositionOffset(abi_arg_in value) noexcept override - { - try - { - this->shim().TimelineControllerPositionOffset(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackSession(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackSession()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StepForwardOneFrame() noexcept override - { - try - { - this->shim().StepForwardOneFrame(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StepBackwardOneFrame() noexcept override - { - try - { - this->shim().StepBackwardOneFrame(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAsCastingSource(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAsCastingSource()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetSurfaceSize(abi_arg_in size) noexcept override - { - try - { - this->shim().SetSurfaceSize(*reinterpret_cast(&size)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSurface(abi_arg_in compositor, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetSurface(*reinterpret_cast(&compositor))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddAudioEffect(abi_arg_in activatableClassId, bool effectOptional, abi_arg_in configuration) noexcept override - { - try - { - this->shim().AddAudioEffect(*reinterpret_cast(&activatableClassId), effectOptional, *reinterpret_cast(&configuration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAllEffects() noexcept override - { - try - { - this->shim().RemoveAllEffects(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddVideoEffect(abi_arg_in activatableClassId, bool effectOptional, abi_arg_in effectConfiguration) noexcept override - { - try - { - this->shim().AddVideoEffect(*reinterpret_cast(&activatableClassId), effectOptional, *reinterpret_cast(&effectConfiguration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Error(Windows::Media::Playback::MediaPlayerError * value) noexcept override - { - try - { - *value = detach(this->shim().Error()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedErrorCode(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ErrorMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NewRate(double * value) noexcept override - { - try - { - *value = detach(this->shim().NewRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProtectionManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProtectionManager(abi_arg_in value) noexcept override - { - try - { - this->shim().ProtectionManager(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetFileSource(abi_arg_in file) noexcept override - { - try - { - this->shim().SetFileSource(*reinterpret_cast(&file)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetStreamSource(abi_arg_in stream) noexcept override - { - try - { - this->shim().SetStreamSource(*reinterpret_cast(&stream)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetMediaSource(abi_arg_in source) noexcept override - { - try - { - this->shim().SetMediaSource(*reinterpret_cast(&source)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Source(abi_arg_in value) noexcept override - { - try - { - this->shim().Source(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CompositionSurface(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompositionSurface()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Compositor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Compositor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaPlayer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaPlayer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Time(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Time()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaMarkerType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaMarkerType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromTime(abi_arg_in value, abi_arg_out marker) noexcept override - { - try - { - *marker = detach(this->shim().CreateFromTime(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *marker = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Create(abi_arg_in value, abi_arg_in mediaMarketType, abi_arg_in text, abi_arg_out marker) noexcept override - { - try - { - *marker = detach(this->shim().Create(*reinterpret_cast(&value), *reinterpret_cast(&mediaMarketType), *reinterpret_cast(&text))); - return S_OK; - } - catch (...) - { - *marker = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PlaybackMediaMarker(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackMediaMarker()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Size(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Insert(abi_arg_in value) noexcept override - { - try - { - this->shim().Insert(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Track(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Track()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OldPresentationMode(Windows::Media::Playback::TimedMetadataTrackPresentationMode * value) noexcept override - { - try - { - *value = detach(this->shim().OldPresentationMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewPresentationMode(Windows::Media::Playback::TimedMetadataTrackPresentationMode * value) noexcept override - { - try - { - *value = detach(this->shim().NewPresentationMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Playback { - -template Windows::Foundation::TimeSpan impl_IPlaybackMediaMarker::Time() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Time(put(value))); - return value; -} - -template hstring impl_IPlaybackMediaMarker::MediaMarkerType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MediaMarkerType(put(value))); - return value; -} - -template hstring impl_IPlaybackMediaMarker::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::Media::Playback::PlaybackMediaMarker impl_IPlaybackMediaMarkerFactory::CreateFromTime(const Windows::Foundation::TimeSpan & value) const -{ - Windows::Media::Playback::PlaybackMediaMarker marker { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromTime(get(value), put(marker))); - return marker; -} - -template Windows::Media::Playback::PlaybackMediaMarker impl_IPlaybackMediaMarkerFactory::Create(const Windows::Foundation::TimeSpan & value, hstring_ref mediaMarketType, hstring_ref text) const -{ - Windows::Media::Playback::PlaybackMediaMarker marker { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(value), get(mediaMarketType), get(text), put(marker))); - return marker; -} - -template uint32_t impl_IPlaybackMediaMarkerSequence::Size() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(&value)); - return value; -} - -template void impl_IPlaybackMediaMarkerSequence::Insert(const Windows::Media::Playback::PlaybackMediaMarker & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Insert(get(value))); -} - -template void impl_IPlaybackMediaMarkerSequence::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template Windows::Media::Playback::MediaPlayerError impl_IMediaPlayerFailedEventArgs::Error() const -{ - Windows::Media::Playback::MediaPlayerError value {}; - check_hresult(static_cast(static_cast(*this))->get_Error(&value)); - return value; -} - -template HRESULT impl_IMediaPlayerFailedEventArgs::ExtendedErrorCode() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedErrorCode(&value)); - return value; -} - -template hstring impl_IMediaPlayerFailedEventArgs::ErrorMessage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ErrorMessage(put(value))); - return value; -} - -template double impl_IMediaPlayerRateChangedEventArgs::NewRate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_NewRate(&value)); - return value; -} - -template Windows::Media::Playback::PlaybackMediaMarker impl_IPlaybackMediaMarkerReachedEventArgs::PlaybackMediaMarker() const -{ - Windows::Media::Playback::PlaybackMediaMarker value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaybackMediaMarker(put(value))); - return value; -} - -template Windows::Foundation::Collections::ValueSet impl_IMediaPlayerDataReceivedEventArgs::Data() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template bool impl_IMediaPlayer::AutoPlay() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoPlay(&value)); - return value; -} - -template void impl_IMediaPlayer::AutoPlay(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoPlay(value)); -} - -template Windows::Foundation::TimeSpan impl_IMediaPlayer::NaturalDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_NaturalDuration(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaPlayer::Position() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template void impl_IMediaPlayer::Position(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Position(get(value))); -} - -template double impl_IMediaPlayer::BufferingProgress() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_BufferingProgress(&value)); - return value; -} - -template Windows::Media::Playback::MediaPlayerState impl_IMediaPlayer::CurrentState() const -{ - Windows::Media::Playback::MediaPlayerState value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentState(&value)); - return value; -} - -template bool impl_IMediaPlayer::CanSeek() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanSeek(&value)); - return value; -} - -template bool impl_IMediaPlayer::CanPause() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanPause(&value)); - return value; -} - -template bool impl_IMediaPlayer::IsLoopingEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsLoopingEnabled(&value)); - return value; -} - -template void impl_IMediaPlayer::IsLoopingEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsLoopingEnabled(value)); -} - -template bool impl_IMediaPlayer::IsProtected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsProtected(&value)); - return value; -} - -template bool impl_IMediaPlayer::IsMuted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMuted(&value)); - return value; -} - -template void impl_IMediaPlayer::IsMuted(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsMuted(value)); -} - -template double impl_IMediaPlayer::PlaybackRate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_PlaybackRate(&value)); - return value; -} - -template void impl_IMediaPlayer::PlaybackRate(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaybackRate(value)); -} - -template double impl_IMediaPlayer::Volume() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Volume(&value)); - return value; -} - -template void impl_IMediaPlayer::Volume(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Volume(value)); -} - -template Windows::Media::Playback::PlaybackMediaMarkerSequence impl_IMediaPlayer::PlaybackMediaMarkers() const -{ - Windows::Media::Playback::PlaybackMediaMarkerSequence value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaybackMediaMarkers(put(value))); - return value; -} - -template event_token impl_IMediaPlayer::MediaOpened(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MediaOpened(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer::MediaOpened(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer::remove_MediaOpened, MediaOpened(value)); -} - -template void impl_IMediaPlayer::MediaOpened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MediaOpened(token)); -} - -template event_token impl_IMediaPlayer::MediaEnded(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MediaEnded(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer::MediaEnded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer::remove_MediaEnded, MediaEnded(value)); -} - -template void impl_IMediaPlayer::MediaEnded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MediaEnded(token)); -} - -template event_token impl_IMediaPlayer::MediaFailed(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MediaFailed(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer::MediaFailed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer::remove_MediaFailed, MediaFailed(value)); -} - -template void impl_IMediaPlayer::MediaFailed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MediaFailed(token)); -} - -template event_token impl_IMediaPlayer::CurrentStateChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CurrentStateChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer::CurrentStateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer::remove_CurrentStateChanged, CurrentStateChanged(value)); -} - -template void impl_IMediaPlayer::CurrentStateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CurrentStateChanged(token)); -} - -template event_token impl_IMediaPlayer::PlaybackMediaMarkerReached(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PlaybackMediaMarkerReached(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer::PlaybackMediaMarkerReached(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer::remove_PlaybackMediaMarkerReached, PlaybackMediaMarkerReached(value)); -} - -template void impl_IMediaPlayer::PlaybackMediaMarkerReached(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PlaybackMediaMarkerReached(token)); -} - -template event_token impl_IMediaPlayer::MediaPlayerRateChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MediaPlayerRateChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer::MediaPlayerRateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer::remove_MediaPlayerRateChanged, MediaPlayerRateChanged(value)); -} - -template void impl_IMediaPlayer::MediaPlayerRateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MediaPlayerRateChanged(token)); -} - -template event_token impl_IMediaPlayer::VolumeChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VolumeChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer::VolumeChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer::remove_VolumeChanged, VolumeChanged(value)); -} - -template void impl_IMediaPlayer::VolumeChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VolumeChanged(token)); -} - -template event_token impl_IMediaPlayer::SeekCompleted(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SeekCompleted(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer::SeekCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer::remove_SeekCompleted, SeekCompleted(value)); -} - -template void impl_IMediaPlayer::SeekCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SeekCompleted(token)); -} - -template event_token impl_IMediaPlayer::BufferingStarted(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BufferingStarted(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer::BufferingStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer::remove_BufferingStarted, BufferingStarted(value)); -} - -template void impl_IMediaPlayer::BufferingStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BufferingStarted(token)); -} - -template event_token impl_IMediaPlayer::BufferingEnded(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BufferingEnded(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer::BufferingEnded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer::remove_BufferingEnded, BufferingEnded(value)); -} - -template void impl_IMediaPlayer::BufferingEnded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BufferingEnded(token)); -} - -template void impl_IMediaPlayer::Play() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Play()); -} - -template void impl_IMediaPlayer::Pause() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Pause()); -} - -template void impl_IMediaPlayer::SetUriSource(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetUriSource(get(value))); -} - -template Windows::Media::SystemMediaTransportControls impl_IMediaPlayer2::SystemMediaTransportControls() const -{ - Windows::Media::SystemMediaTransportControls value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SystemMediaTransportControls(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlayerAudioCategory impl_IMediaPlayer2::AudioCategory() const -{ - Windows::Media::Playback::MediaPlayerAudioCategory value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioCategory(&value)); - return value; -} - -template void impl_IMediaPlayer2::AudioCategory(Windows::Media::Playback::MediaPlayerAudioCategory value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioCategory(value)); -} - -template Windows::Media::Playback::MediaPlayerAudioDeviceType impl_IMediaPlayer2::AudioDeviceType() const -{ - Windows::Media::Playback::MediaPlayerAudioDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioDeviceType(&value)); - return value; -} - -template void impl_IMediaPlayer2::AudioDeviceType(Windows::Media::Playback::MediaPlayerAudioDeviceType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioDeviceType(value)); -} - -template event_token impl_IMediaPlayer3::IsMutedChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_IsMutedChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer3::IsMutedChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer3::remove_IsMutedChanged, IsMutedChanged(value)); -} - -template void impl_IMediaPlayer3::IsMutedChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_IsMutedChanged(token)); -} - -template event_token impl_IMediaPlayer3::SourceChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlayer3::SourceChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlayer3::remove_SourceChanged, SourceChanged(value)); -} - -template void impl_IMediaPlayer3::SourceChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceChanged(token)); -} - -template double impl_IMediaPlayer3::AudioBalance() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioBalance(&value)); - return value; -} - -template void impl_IMediaPlayer3::AudioBalance(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioBalance(value)); -} - -template bool impl_IMediaPlayer3::RealTimePlayback() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RealTimePlayback(&value)); - return value; -} - -template void impl_IMediaPlayer3::RealTimePlayback(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RealTimePlayback(value)); -} - -template Windows::Media::Playback::StereoscopicVideoRenderMode impl_IMediaPlayer3::StereoscopicVideoRenderMode() const -{ - Windows::Media::Playback::StereoscopicVideoRenderMode value {}; - check_hresult(static_cast(static_cast(*this))->get_StereoscopicVideoRenderMode(&value)); - return value; -} - -template void impl_IMediaPlayer3::StereoscopicVideoRenderMode(Windows::Media::Playback::StereoscopicVideoRenderMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StereoscopicVideoRenderMode(value)); -} - -template Windows::Media::Playback::MediaBreakManager impl_IMediaPlayer3::BreakManager() const -{ - Windows::Media::Playback::MediaBreakManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BreakManager(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManager impl_IMediaPlayer3::CommandManager() const -{ - Windows::Media::Playback::MediaPlaybackCommandManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CommandManager(put(value))); - return value; -} - -template Windows::Devices::Enumeration::DeviceInformation impl_IMediaPlayer3::AudioDevice() const -{ - Windows::Devices::Enumeration::DeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AudioDevice(put(value))); - return value; -} - -template void impl_IMediaPlayer3::AudioDevice(const Windows::Devices::Enumeration::DeviceInformation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioDevice(get(value))); -} - -template Windows::Media::MediaTimelineController impl_IMediaPlayer3::TimelineController() const -{ - Windows::Media::MediaTimelineController value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TimelineController(put(value))); - return value; -} - -template void impl_IMediaPlayer3::TimelineController(const Windows::Media::MediaTimelineController & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TimelineController(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaPlayer3::TimelineControllerPositionOffset() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TimelineControllerPositionOffset(put(value))); - return value; -} - -template void impl_IMediaPlayer3::TimelineControllerPositionOffset(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TimelineControllerPositionOffset(get(value))); -} - -template Windows::Media::Playback::MediaPlaybackSession impl_IMediaPlayer3::PlaybackSession() const -{ - Windows::Media::Playback::MediaPlaybackSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaybackSession(put(value))); - return value; -} - -template void impl_IMediaPlayer3::StepForwardOneFrame() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StepForwardOneFrame()); -} - -template void impl_IMediaPlayer3::StepBackwardOneFrame() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StepBackwardOneFrame()); -} - -template Windows::Media::Casting::CastingSource impl_IMediaPlayer3::GetAsCastingSource() const -{ - Windows::Media::Casting::CastingSource returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAsCastingSource(put(returnValue))); - return returnValue; -} - -template void impl_IMediaPlayer4::SetSurfaceSize(const Windows::Foundation::Size & size) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSurfaceSize(get(size))); -} - -template Windows::Media::Playback::MediaPlayerSurface impl_IMediaPlayer4::GetSurface(const Windows::UI::Composition::Compositor & compositor) const -{ - Windows::Media::Playback::MediaPlayerSurface result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetSurface(get(compositor), put(result))); - return result; -} - -template event_token impl_IMediaPlaybackSession::PlaybackStateChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PlaybackStateChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackSession::PlaybackStateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackSession::remove_PlaybackStateChanged, PlaybackStateChanged(value)); -} - -template void impl_IMediaPlaybackSession::PlaybackStateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PlaybackStateChanged(token)); -} - -template event_token impl_IMediaPlaybackSession::PlaybackRateChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PlaybackRateChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackSession::PlaybackRateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackSession::remove_PlaybackRateChanged, PlaybackRateChanged(value)); -} - -template void impl_IMediaPlaybackSession::PlaybackRateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PlaybackRateChanged(token)); -} - -template event_token impl_IMediaPlaybackSession::SeekCompleted(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SeekCompleted(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackSession::SeekCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackSession::remove_SeekCompleted, SeekCompleted(value)); -} - -template void impl_IMediaPlaybackSession::SeekCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SeekCompleted(token)); -} - -template event_token impl_IMediaPlaybackSession::BufferingStarted(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BufferingStarted(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackSession::BufferingStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackSession::remove_BufferingStarted, BufferingStarted(value)); -} - -template void impl_IMediaPlaybackSession::BufferingStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BufferingStarted(token)); -} - -template event_token impl_IMediaPlaybackSession::BufferingEnded(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BufferingEnded(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackSession::BufferingEnded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackSession::remove_BufferingEnded, BufferingEnded(value)); -} - -template void impl_IMediaPlaybackSession::BufferingEnded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BufferingEnded(token)); -} - -template event_token impl_IMediaPlaybackSession::BufferingProgressChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BufferingProgressChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackSession::BufferingProgressChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackSession::remove_BufferingProgressChanged, BufferingProgressChanged(value)); -} - -template void impl_IMediaPlaybackSession::BufferingProgressChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BufferingProgressChanged(token)); -} - -template event_token impl_IMediaPlaybackSession::DownloadProgressChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DownloadProgressChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackSession::DownloadProgressChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackSession::remove_DownloadProgressChanged, DownloadProgressChanged(value)); -} - -template void impl_IMediaPlaybackSession::DownloadProgressChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DownloadProgressChanged(token)); -} - -template event_token impl_IMediaPlaybackSession::NaturalDurationChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NaturalDurationChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackSession::NaturalDurationChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackSession::remove_NaturalDurationChanged, NaturalDurationChanged(value)); -} - -template void impl_IMediaPlaybackSession::NaturalDurationChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NaturalDurationChanged(token)); -} - -template event_token impl_IMediaPlaybackSession::PositionChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PositionChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackSession::PositionChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackSession::remove_PositionChanged, PositionChanged(value)); -} - -template void impl_IMediaPlaybackSession::PositionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PositionChanged(token)); -} - -template event_token impl_IMediaPlaybackSession::NaturalVideoSizeChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NaturalVideoSizeChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackSession::NaturalVideoSizeChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackSession::remove_NaturalVideoSizeChanged, NaturalVideoSizeChanged(value)); -} - -template void impl_IMediaPlaybackSession::NaturalVideoSizeChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NaturalVideoSizeChanged(token)); -} - -template Windows::Media::Playback::MediaPlayer impl_IMediaPlaybackSession::MediaPlayer() const -{ - Windows::Media::Playback::MediaPlayer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaPlayer(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaPlaybackSession::NaturalDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_NaturalDuration(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaPlaybackSession::Position() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template void impl_IMediaPlaybackSession::Position(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Position(get(value))); -} - -template Windows::Media::Playback::MediaPlaybackState impl_IMediaPlaybackSession::PlaybackState() const -{ - Windows::Media::Playback::MediaPlaybackState value {}; - check_hresult(static_cast(static_cast(*this))->get_PlaybackState(&value)); - return value; -} - -template bool impl_IMediaPlaybackSession::CanSeek() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanSeek(&value)); - return value; -} - -template bool impl_IMediaPlaybackSession::CanPause() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanPause(&value)); - return value; -} - -template bool impl_IMediaPlaybackSession::IsProtected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsProtected(&value)); - return value; -} - -template double impl_IMediaPlaybackSession::PlaybackRate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_PlaybackRate(&value)); - return value; -} - -template void impl_IMediaPlaybackSession::PlaybackRate(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaybackRate(value)); -} - -template double impl_IMediaPlaybackSession::BufferingProgress() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_BufferingProgress(&value)); - return value; -} - -template double impl_IMediaPlaybackSession::DownloadProgress() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DownloadProgress(&value)); - return value; -} - -template uint32_t impl_IMediaPlaybackSession::NaturalVideoHeight() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NaturalVideoHeight(&value)); - return value; -} - -template uint32_t impl_IMediaPlaybackSession::NaturalVideoWidth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NaturalVideoWidth(&value)); - return value; -} - -template Windows::Foundation::Rect impl_IMediaPlaybackSession::NormalizedSourceRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_NormalizedSourceRect(put(value))); - return value; -} - -template void impl_IMediaPlaybackSession::NormalizedSourceRect(const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NormalizedSourceRect(get(value))); -} - -template Windows::Media::MediaProperties::StereoscopicVideoPackingMode impl_IMediaPlaybackSession::StereoscopicVideoPackingMode() const -{ - Windows::Media::MediaProperties::StereoscopicVideoPackingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_StereoscopicVideoPackingMode(&value)); - return value; -} - -template void impl_IMediaPlaybackSession::StereoscopicVideoPackingMode(Windows::Media::MediaProperties::StereoscopicVideoPackingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StereoscopicVideoPackingMode(value)); -} - -template Windows::Media::Protection::MediaProtectionManager impl_IMediaPlayerSource::ProtectionManager() const -{ - Windows::Media::Protection::MediaProtectionManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProtectionManager(put(value))); - return value; -} - -template void impl_IMediaPlayerSource::ProtectionManager(const Windows::Media::Protection::MediaProtectionManager & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProtectionManager(get(value))); -} - -template void impl_IMediaPlayerSource::SetFileSource(const Windows::Storage::IStorageFile & file) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFileSource(get(file))); -} - -template void impl_IMediaPlayerSource::SetStreamSource(const Windows::Storage::Streams::IRandomAccessStream & stream) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetStreamSource(get(stream))); -} - -template void impl_IMediaPlayerSource::SetMediaSource(const Windows::Media::Core::IMediaSource & source) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetMediaSource(get(source))); -} - -template Windows::Media::Playback::IMediaPlaybackSource impl_IMediaPlayerSource2::Source() const -{ - Windows::Media::Playback::IMediaPlaybackSource value; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template void impl_IMediaPlayerSource2::Source(const Windows::Media::Playback::IMediaPlaybackSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Source(get(value))); -} - -template void impl_IMediaPlayerEffects::AddAudioEffect(hstring_ref activatableClassId, bool effectOptional, const Windows::Foundation::Collections::IPropertySet & configuration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddAudioEffect(get(activatableClassId), effectOptional, get(configuration))); -} - -template void impl_IMediaPlayerEffects::RemoveAllEffects() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveAllEffects()); -} - -template void impl_IMediaPlayerEffects2::AddVideoEffect(hstring_ref activatableClassId, bool effectOptional, const Windows::Foundation::Collections::IPropertySet & effectConfiguration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddVideoEffect(get(activatableClassId), effectOptional, get(effectConfiguration))); -} - -template Windows::Media::Playback::MediaBreak impl_IMediaBreakStartedEventArgs::MediaBreak() const -{ - Windows::Media::Playback::MediaBreak value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaBreak(put(value))); - return value; -} - -template Windows::Media::Playback::MediaBreak impl_IMediaBreakEndedEventArgs::MediaBreak() const -{ - Windows::Media::Playback::MediaBreak value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaBreak(put(value))); - return value; -} - -template Windows::Media::Playback::MediaBreak impl_IMediaBreakSkippedEventArgs::MediaBreak() const -{ - Windows::Media::Playback::MediaBreak value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaBreak(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaBreakSeekedOverEventArgs::SeekedOverBreaks() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SeekedOverBreaks(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaBreakSeekedOverEventArgs::OldPosition() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_OldPosition(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaBreakSeekedOverEventArgs::NewPosition() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_NewPosition(put(value))); - return value; -} - -template event_token impl_IMediaBreakManager::BreaksSeekedOver(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BreaksSeekedOver(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaBreakManager::BreaksSeekedOver(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaBreakManager::remove_BreaksSeekedOver, BreaksSeekedOver(handler)); -} - -template void impl_IMediaBreakManager::BreaksSeekedOver(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BreaksSeekedOver(token)); -} - -template event_token impl_IMediaBreakManager::BreakStarted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BreakStarted(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaBreakManager::BreakStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaBreakManager::remove_BreakStarted, BreakStarted(handler)); -} - -template void impl_IMediaBreakManager::BreakStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BreakStarted(token)); -} - -template event_token impl_IMediaBreakManager::BreakEnded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BreakEnded(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaBreakManager::BreakEnded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaBreakManager::remove_BreakEnded, BreakEnded(handler)); -} - -template void impl_IMediaBreakManager::BreakEnded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BreakEnded(token)); -} - -template event_token impl_IMediaBreakManager::BreakSkipped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BreakSkipped(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaBreakManager::BreakSkipped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaBreakManager::remove_BreakSkipped, BreakSkipped(handler)); -} - -template void impl_IMediaBreakManager::BreakSkipped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BreakSkipped(token)); -} - -template Windows::Media::Playback::MediaBreak impl_IMediaBreakManager::CurrentBreak() const -{ - Windows::Media::Playback::MediaBreak value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentBreak(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackSession impl_IMediaBreakManager::PlaybackSession() const -{ - Windows::Media::Playback::MediaPlaybackSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaybackSession(put(value))); - return value; -} - -template void impl_IMediaBreakManager::PlayBreak(const Windows::Media::Playback::MediaBreak & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PlayBreak(get(value))); -} - -template void impl_IMediaBreakManager::SkipCurrentBreak() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SkipCurrentBreak()); -} - -template Windows::UI::Composition::ICompositionSurface impl_IMediaPlayerSurface::CompositionSurface() const -{ - Windows::UI::Composition::ICompositionSurface value; - check_hresult(static_cast(static_cast(*this))->get_CompositionSurface(put(value))); - return value; -} - -template Windows::UI::Composition::Compositor impl_IMediaPlayerSurface::Compositor() const -{ - Windows::UI::Composition::Compositor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Compositor(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlayer impl_IMediaPlayerSurface::MediaPlayer() const -{ - Windows::Media::Playback::MediaPlayer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaPlayer(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlayer impl_IBackgroundMediaPlayerStatics::Current() const -{ - Windows::Media::Playback::MediaPlayer player { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Current(put(player))); - return player; -} - -template event_token impl_IBackgroundMediaPlayerStatics::MessageReceivedFromBackground(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MessageReceivedFromBackground(get(value), &token)); - return token; -} - -template event_revoker impl_IBackgroundMediaPlayerStatics::MessageReceivedFromBackground(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IBackgroundMediaPlayerStatics::remove_MessageReceivedFromBackground, MessageReceivedFromBackground(value)); -} - -template void impl_IBackgroundMediaPlayerStatics::MessageReceivedFromBackground(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MessageReceivedFromBackground(token)); -} - -template event_token impl_IBackgroundMediaPlayerStatics::MessageReceivedFromForeground(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MessageReceivedFromForeground(get(value), &token)); - return token; -} - -template event_revoker impl_IBackgroundMediaPlayerStatics::MessageReceivedFromForeground(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IBackgroundMediaPlayerStatics::remove_MessageReceivedFromForeground, MessageReceivedFromForeground(value)); -} - -template void impl_IBackgroundMediaPlayerStatics::MessageReceivedFromForeground(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MessageReceivedFromForeground(token)); -} - -template void impl_IBackgroundMediaPlayerStatics::SendMessageToBackground(const Windows::Foundation::Collections::ValueSet & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SendMessageToBackground(get(value))); -} - -template void impl_IBackgroundMediaPlayerStatics::SendMessageToForeground(const Windows::Foundation::Collections::ValueSet & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SendMessageToForeground(get(value))); -} - -template bool impl_IBackgroundMediaPlayerStatics::IsMediaPlaying() const -{ - bool isMediaPlaying {}; - check_hresult(static_cast(static_cast(*this))->abi_IsMediaPlaying(&isMediaPlaying)); - return isMediaPlaying; -} - -template void impl_IBackgroundMediaPlayerStatics::Shutdown() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Shutdown()); -} - -template bool impl_IMediaPlaybackCommandManagerPlayReceivedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManagerPlayReceivedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::Foundation::Deferral impl_IMediaPlaybackCommandManagerPlayReceivedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template bool impl_IMediaPlaybackCommandManagerPauseReceivedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManagerPauseReceivedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::Foundation::Deferral impl_IMediaPlaybackCommandManagerPauseReceivedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template bool impl_IMediaPlaybackCommandManagerNextReceivedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManagerNextReceivedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::Foundation::Deferral impl_IMediaPlaybackCommandManagerNextReceivedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template bool impl_IMediaPlaybackCommandManagerPreviousReceivedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManagerPreviousReceivedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::Foundation::Deferral impl_IMediaPlaybackCommandManagerPreviousReceivedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template bool impl_IMediaPlaybackCommandManagerFastForwardReceivedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManagerFastForwardReceivedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::Foundation::Deferral impl_IMediaPlaybackCommandManagerFastForwardReceivedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template bool impl_IMediaPlaybackCommandManagerRewindReceivedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManagerRewindReceivedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::Foundation::Deferral impl_IMediaPlaybackCommandManagerRewindReceivedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template bool impl_IMediaPlaybackCommandManagerShuffleReceivedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManagerShuffleReceivedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template bool impl_IMediaPlaybackCommandManagerShuffleReceivedEventArgs::IsShuffleRequested() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsShuffleRequested(&value)); - return value; -} - -template Windows::Foundation::Deferral impl_IMediaPlaybackCommandManagerShuffleReceivedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template bool impl_IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::Media::MediaPlaybackAutoRepeatMode impl_IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs::AutoRepeatMode() const -{ - Windows::Media::MediaPlaybackAutoRepeatMode value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoRepeatMode(&value)); - return value; -} - -template Windows::Foundation::Deferral impl_IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template bool impl_IMediaPlaybackCommandManagerPositionReceivedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManagerPositionReceivedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::Foundation::TimeSpan impl_IMediaPlaybackCommandManagerPositionReceivedEventArgs::Position() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IMediaPlaybackCommandManagerPositionReceivedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template bool impl_IMediaPlaybackCommandManagerRateReceivedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManagerRateReceivedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template double impl_IMediaPlaybackCommandManagerRateReceivedEventArgs::PlaybackRate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_PlaybackRate(&value)); - return value; -} - -template Windows::Foundation::Deferral impl_IMediaPlaybackCommandManagerRateReceivedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManager impl_IMediaPlaybackCommandManagerCommandBehavior::CommandManager() const -{ - Windows::Media::Playback::MediaPlaybackCommandManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CommandManager(put(value))); - return value; -} - -template bool impl_IMediaPlaybackCommandManagerCommandBehavior::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template Windows::Media::Playback::MediaCommandEnablingRule impl_IMediaPlaybackCommandManagerCommandBehavior::EnablingRule() const -{ - Windows::Media::Playback::MediaCommandEnablingRule value {}; - check_hresult(static_cast(static_cast(*this))->get_EnablingRule(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManagerCommandBehavior::EnablingRule(Windows::Media::Playback::MediaCommandEnablingRule value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EnablingRule(value)); -} - -template event_token impl_IMediaPlaybackCommandManagerCommandBehavior::IsEnabledChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_IsEnabledChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackCommandManagerCommandBehavior::IsEnabledChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackCommandManagerCommandBehavior::remove_IsEnabledChanged, IsEnabledChanged(handler)); -} - -template void impl_IMediaPlaybackCommandManagerCommandBehavior::IsEnabledChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_IsEnabledChanged(token)); -} - -template bool impl_IMediaPlaybackCommandManager::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_IMediaPlaybackCommandManager::IsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsEnabled(value)); -} - -template Windows::Media::Playback::MediaPlayer impl_IMediaPlaybackCommandManager::MediaPlayer() const -{ - Windows::Media::Playback::MediaPlayer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaPlayer(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior impl_IMediaPlaybackCommandManager::PlayBehavior() const -{ - Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlayBehavior(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior impl_IMediaPlaybackCommandManager::PauseBehavior() const -{ - Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PauseBehavior(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior impl_IMediaPlaybackCommandManager::NextBehavior() const -{ - Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NextBehavior(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior impl_IMediaPlaybackCommandManager::PreviousBehavior() const -{ - Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PreviousBehavior(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior impl_IMediaPlaybackCommandManager::FastForwardBehavior() const -{ - Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FastForwardBehavior(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior impl_IMediaPlaybackCommandManager::RewindBehavior() const -{ - Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RewindBehavior(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior impl_IMediaPlaybackCommandManager::ShuffleBehavior() const -{ - Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ShuffleBehavior(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior impl_IMediaPlaybackCommandManager::AutoRepeatModeBehavior() const -{ - Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AutoRepeatModeBehavior(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior impl_IMediaPlaybackCommandManager::PositionBehavior() const -{ - Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PositionBehavior(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior impl_IMediaPlaybackCommandManager::RateBehavior() const -{ - Windows::Media::Playback::MediaPlaybackCommandManagerCommandBehavior value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RateBehavior(put(value))); - return value; -} - -template event_token impl_IMediaPlaybackCommandManager::PlayReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PlayReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackCommandManager::PlayReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackCommandManager::remove_PlayReceived, PlayReceived(handler)); -} - -template void impl_IMediaPlaybackCommandManager::PlayReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PlayReceived(token)); -} - -template event_token impl_IMediaPlaybackCommandManager::PauseReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PauseReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackCommandManager::PauseReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackCommandManager::remove_PauseReceived, PauseReceived(handler)); -} - -template void impl_IMediaPlaybackCommandManager::PauseReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PauseReceived(token)); -} - -template event_token impl_IMediaPlaybackCommandManager::NextReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NextReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackCommandManager::NextReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackCommandManager::remove_NextReceived, NextReceived(handler)); -} - -template void impl_IMediaPlaybackCommandManager::NextReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NextReceived(token)); -} - -template event_token impl_IMediaPlaybackCommandManager::PreviousReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PreviousReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackCommandManager::PreviousReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackCommandManager::remove_PreviousReceived, PreviousReceived(handler)); -} - -template void impl_IMediaPlaybackCommandManager::PreviousReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PreviousReceived(token)); -} - -template event_token impl_IMediaPlaybackCommandManager::FastForwardReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FastForwardReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackCommandManager::FastForwardReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackCommandManager::remove_FastForwardReceived, FastForwardReceived(handler)); -} - -template void impl_IMediaPlaybackCommandManager::FastForwardReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FastForwardReceived(token)); -} - -template event_token impl_IMediaPlaybackCommandManager::RewindReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RewindReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackCommandManager::RewindReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackCommandManager::remove_RewindReceived, RewindReceived(handler)); -} - -template void impl_IMediaPlaybackCommandManager::RewindReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RewindReceived(token)); -} - -template event_token impl_IMediaPlaybackCommandManager::ShuffleReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ShuffleReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackCommandManager::ShuffleReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackCommandManager::remove_ShuffleReceived, ShuffleReceived(handler)); -} - -template void impl_IMediaPlaybackCommandManager::ShuffleReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ShuffleReceived(token)); -} - -template event_token impl_IMediaPlaybackCommandManager::AutoRepeatModeReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AutoRepeatModeReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackCommandManager::AutoRepeatModeReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackCommandManager::remove_AutoRepeatModeReceived, AutoRepeatModeReceived(handler)); -} - -template void impl_IMediaPlaybackCommandManager::AutoRepeatModeReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AutoRepeatModeReceived(token)); -} - -template event_token impl_IMediaPlaybackCommandManager::PositionReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PositionReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackCommandManager::PositionReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackCommandManager::remove_PositionReceived, PositionReceived(handler)); -} - -template void impl_IMediaPlaybackCommandManager::PositionReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PositionReceived(token)); -} - -template event_token impl_IMediaPlaybackCommandManager::RateReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RateReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackCommandManager::RateReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackCommandManager::remove_RateReceived, RateReceived(handler)); -} - -template void impl_IMediaPlaybackCommandManager::RateReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RateReceived(token)); -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaPlaybackItemFactory::Create(const Windows::Media::Core::MediaSource & source) const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(source), put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaPlaybackItemFactory2::CreateWithStartTime(const Windows::Media::Core::MediaSource & source, const Windows::Foundation::TimeSpan & startTime) const -{ - Windows::Media::Playback::MediaPlaybackItem result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithStartTime(get(source), get(startTime), put(result))); - return result; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaPlaybackItemFactory2::CreateWithStartTimeAndDurationLimit(const Windows::Media::Core::MediaSource & source, const Windows::Foundation::TimeSpan & startTime, const Windows::Foundation::TimeSpan & durationLimit) const -{ - Windows::Media::Playback::MediaPlaybackItem result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithStartTimeAndDurationLimit(get(source), get(startTime), get(durationLimit), put(result))); - return result; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaPlaybackItemStatics::FindFromMediaSource(const Windows::Media::Core::MediaSource & source) const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FindFromMediaSource(get(source), put(value))); - return value; -} - -template event_token impl_IMediaPlaybackItem::AudioTracksChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AudioTracksChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackItem::AudioTracksChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackItem::remove_AudioTracksChanged, AudioTracksChanged(handler)); -} - -template void impl_IMediaPlaybackItem::AudioTracksChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AudioTracksChanged(token)); -} - -template event_token impl_IMediaPlaybackItem::VideoTracksChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VideoTracksChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackItem::VideoTracksChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackItem::remove_VideoTracksChanged, VideoTracksChanged(handler)); -} - -template void impl_IMediaPlaybackItem::VideoTracksChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VideoTracksChanged(token)); -} - -template event_token impl_IMediaPlaybackItem::TimedMetadataTracksChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TimedMetadataTracksChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackItem::TimedMetadataTracksChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackItem::remove_TimedMetadataTracksChanged, TimedMetadataTracksChanged(handler)); -} - -template void impl_IMediaPlaybackItem::TimedMetadataTracksChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TimedMetadataTracksChanged(token)); -} - -template Windows::Media::Core::MediaSource impl_IMediaPlaybackItem::Source() const -{ - Windows::Media::Core::MediaSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackAudioTrackList impl_IMediaPlaybackItem::AudioTracks() const -{ - Windows::Media::Playback::MediaPlaybackAudioTrackList value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AudioTracks(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackVideoTrackList impl_IMediaPlaybackItem::VideoTracks() const -{ - Windows::Media::Playback::MediaPlaybackVideoTrackList value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoTracks(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackTimedMetadataTrackList impl_IMediaPlaybackItem::TimedMetadataTracks() const -{ - Windows::Media::Playback::MediaPlaybackTimedMetadataTrackList value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TimedMetadataTracks(put(value))); - return value; -} - -template Windows::Media::MediaPlaybackType impl_IMediaItemDisplayProperties::Type() const -{ - Windows::Media::MediaPlaybackType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template void impl_IMediaItemDisplayProperties::Type(Windows::Media::MediaPlaybackType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Type(value)); -} - -template Windows::Media::MusicDisplayProperties impl_IMediaItemDisplayProperties::MusicProperties() const -{ - Windows::Media::MusicDisplayProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MusicProperties(put(value))); - return value; -} - -template Windows::Media::VideoDisplayProperties impl_IMediaItemDisplayProperties::VideoProperties() const -{ - Windows::Media::VideoDisplayProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoProperties(put(value))); - return value; -} - -template Windows::Storage::Streams::RandomAccessStreamReference impl_IMediaItemDisplayProperties::Thumbnail() const -{ - Windows::Storage::Streams::RandomAccessStreamReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template void impl_IMediaItemDisplayProperties::Thumbnail(const Windows::Storage::Streams::RandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbnail(get(value))); -} - -template void impl_IMediaItemDisplayProperties::ClearAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearAll()); -} - -template Windows::Media::Playback::MediaBreakSchedule impl_IMediaPlaybackItem2::BreakSchedule() const -{ - Windows::Media::Playback::MediaBreakSchedule value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BreakSchedule(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaPlaybackItem2::StartTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IMediaPlaybackItem2::DurationLimit() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DurationLimit(put(value))); - return value; -} - -template bool impl_IMediaPlaybackItem2::CanSkip() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanSkip(&value)); - return value; -} - -template void impl_IMediaPlaybackItem2::CanSkip(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanSkip(value)); -} - -template Windows::Media::Playback::MediaItemDisplayProperties impl_IMediaPlaybackItem2::GetDisplayProperties() const -{ - Windows::Media::Playback::MediaItemDisplayProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDisplayProperties(put(value))); - return value; -} - -template void impl_IMediaPlaybackItem2::ApplyDisplayProperties(const Windows::Media::Playback::MediaItemDisplayProperties & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ApplyDisplayProperties(get(value))); -} - -template Windows::Media::Playback::MediaBreak impl_IMediaBreakFactory::Create(Windows::Media::Playback::MediaBreakInsertionMethod insertionMethod) const -{ - Windows::Media::Playback::MediaBreak result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(insertionMethod, put(result))); - return result; -} - -template Windows::Media::Playback::MediaBreak impl_IMediaBreakFactory::CreateWithPresentationPosition(Windows::Media::Playback::MediaBreakInsertionMethod insertionMethod, const Windows::Foundation::TimeSpan & presentationPosition) const -{ - Windows::Media::Playback::MediaBreak result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithPresentationPosition(insertionMethod, get(presentationPosition), put(result))); - return result; -} - -template Windows::Media::Playback::MediaPlaybackList impl_IMediaBreak::PlaybackList() const -{ - Windows::Media::Playback::MediaPlaybackList value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaybackList(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IMediaBreak::PresentationPosition() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_PresentationPosition(put(value))); - return value; -} - -template Windows::Media::Playback::MediaBreakInsertionMethod impl_IMediaBreak::InsertionMethod() const -{ - Windows::Media::Playback::MediaBreakInsertionMethod value {}; - check_hresult(static_cast(static_cast(*this))->get_InsertionMethod(&value)); - return value; -} - -template Windows::Foundation::Collections::ValueSet impl_IMediaBreak::CustomProperties() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CustomProperties(put(value))); - return value; -} - -template bool impl_IMediaBreak::CanStart() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanStart(&value)); - return value; -} - -template void impl_IMediaBreak::CanStart(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanStart(value)); -} - -template event_token impl_IMediaBreakSchedule::ScheduleChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ScheduleChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaBreakSchedule::ScheduleChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaBreakSchedule::remove_ScheduleChanged, ScheduleChanged(handler)); -} - -template void impl_IMediaBreakSchedule::ScheduleChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ScheduleChanged(token)); -} - -template void impl_IMediaBreakSchedule::InsertMidrollBreak(const Windows::Media::Playback::MediaBreak & mediaBreak) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertMidrollBreak(get(mediaBreak))); -} - -template void impl_IMediaBreakSchedule::RemoveMidrollBreak(const Windows::Media::Playback::MediaBreak & mediaBreak) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveMidrollBreak(get(mediaBreak))); -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaBreakSchedule::MidrollBreaks() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_MidrollBreaks(put(value))); - return value; -} - -template void impl_IMediaBreakSchedule::PrerollBreak(const Windows::Media::Playback::MediaBreak & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PrerollBreak(get(value))); -} - -template Windows::Media::Playback::MediaBreak impl_IMediaBreakSchedule::PrerollBreak() const -{ - Windows::Media::Playback::MediaBreak value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PrerollBreak(put(value))); - return value; -} - -template void impl_IMediaBreakSchedule::PostrollBreak(const Windows::Media::Playback::MediaBreak & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PostrollBreak(get(value))); -} - -template Windows::Media::Playback::MediaBreak impl_IMediaBreakSchedule::PostrollBreak() const -{ - Windows::Media::Playback::MediaBreak value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PostrollBreak(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaBreakSchedule::PlaybackItem() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaybackItem(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItemErrorCode impl_IMediaPlaybackItemError::ErrorCode() const -{ - Windows::Media::Playback::MediaPlaybackItemErrorCode value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template HRESULT impl_IMediaPlaybackItemError::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaEnginePlaybackSource::CurrentItem() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentItem(put(value))); - return value; -} - -template void impl_IMediaEnginePlaybackSource::SetPlaybackSource(const Windows::Media::Playback::IMediaPlaybackSource & source) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPlaybackSource(get(source))); -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaPlaybackItemOpenedEventArgs::Item() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Item(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaPlaybackItemFailedEventArgs::Item() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Item(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItemError impl_IMediaPlaybackItemFailedEventArgs::Error() const -{ - Windows::Media::Playback::MediaPlaybackItemError value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Error(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_ICurrentMediaPlaybackItemChangedEventArgs::NewItem() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NewItem(put(value))); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_ICurrentMediaPlaybackItemChangedEventArgs::OldItem() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OldItem(put(value))); - return value; -} - -template event_token impl_IMediaPlaybackList::ItemFailed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ItemFailed(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackList::ItemFailed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackList::remove_ItemFailed, ItemFailed(handler)); -} - -template void impl_IMediaPlaybackList::ItemFailed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemFailed(token)); -} - -template event_token impl_IMediaPlaybackList::CurrentItemChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CurrentItemChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackList::CurrentItemChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackList::remove_CurrentItemChanged, CurrentItemChanged(handler)); -} - -template void impl_IMediaPlaybackList::CurrentItemChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CurrentItemChanged(token)); -} - -template event_token impl_IMediaPlaybackList::ItemOpened(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ItemOpened(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackList::ItemOpened(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackList::remove_ItemOpened, ItemOpened(handler)); -} - -template void impl_IMediaPlaybackList::ItemOpened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemOpened(token)); -} - -template Windows::Foundation::Collections::IObservableVector impl_IMediaPlaybackList::Items() const -{ - Windows::Foundation::Collections::IObservableVector value; - check_hresult(static_cast(static_cast(*this))->get_Items(put(value))); - return value; -} - -template bool impl_IMediaPlaybackList::AutoRepeatEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoRepeatEnabled(&value)); - return value; -} - -template void impl_IMediaPlaybackList::AutoRepeatEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoRepeatEnabled(value)); -} - -template bool impl_IMediaPlaybackList::ShuffleEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShuffleEnabled(&value)); - return value; -} - -template void impl_IMediaPlaybackList::ShuffleEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShuffleEnabled(value)); -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaPlaybackList::CurrentItem() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentItem(put(value))); - return value; -} - -template uint32_t impl_IMediaPlaybackList::CurrentItemIndex() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentItemIndex(&value)); - return value; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaPlaybackList::MoveNext() const -{ - Windows::Media::Playback::MediaPlaybackItem item { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_MoveNext(put(item))); - return item; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaPlaybackList::MovePrevious() const -{ - Windows::Media::Playback::MediaPlaybackItem item { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_MovePrevious(put(item))); - return item; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaPlaybackList::MoveTo(uint32_t itemIndex) const -{ - Windows::Media::Playback::MediaPlaybackItem item { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_MoveTo(itemIndex, put(item))); - return item; -} - -template Windows::Foundation::IReference impl_IMediaPlaybackList2::MaxPrefetchTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxPrefetchTime(put(value))); - return value; -} - -template void impl_IMediaPlaybackList2::MaxPrefetchTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxPrefetchTime(get(value))); -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IMediaPlaybackList2::StartingItem() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StartingItem(put(value))); - return value; -} - -template void impl_IMediaPlaybackList2::StartingItem(const Windows::Media::Playback::MediaPlaybackItem & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartingItem(get(value))); -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaPlaybackList2::ShuffledItems() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ShuffledItems(put(value))); - return value; -} - -template void impl_IMediaPlaybackList2::SetShuffledItems(const Windows::Foundation::Collections::IIterable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetShuffledItems(get(value))); -} - -template event_token impl_IMediaPlaybackTimedMetadataTrackList::PresentationModeChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PresentationModeChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IMediaPlaybackTimedMetadataTrackList::PresentationModeChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Playback::IMediaPlaybackTimedMetadataTrackList::remove_PresentationModeChanged, PresentationModeChanged(handler)); -} - -template void impl_IMediaPlaybackTimedMetadataTrackList::PresentationModeChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PresentationModeChanged(token)); -} - -template Windows::Media::Playback::TimedMetadataTrackPresentationMode impl_IMediaPlaybackTimedMetadataTrackList::GetPresentationMode(uint32_t index) const -{ - Windows::Media::Playback::TimedMetadataTrackPresentationMode value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPresentationMode(index, &value)); - return value; -} - -template void impl_IMediaPlaybackTimedMetadataTrackList::SetPresentationMode(uint32_t index, Windows::Media::Playback::TimedMetadataTrackPresentationMode value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPresentationMode(index, value)); -} - -template Windows::Media::Core::TimedMetadataTrack impl_ITimedMetadataPresentationModeChangedEventArgs::Track() const -{ - Windows::Media::Core::TimedMetadataTrack value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Track(put(value))); - return value; -} - -template Windows::Media::Playback::TimedMetadataTrackPresentationMode impl_ITimedMetadataPresentationModeChangedEventArgs::OldPresentationMode() const -{ - Windows::Media::Playback::TimedMetadataTrackPresentationMode value {}; - check_hresult(static_cast(static_cast(*this))->get_OldPresentationMode(&value)); - return value; -} - -template Windows::Media::Playback::TimedMetadataTrackPresentationMode impl_ITimedMetadataPresentationModeChangedEventArgs::NewPresentationMode() const -{ - Windows::Media::Playback::TimedMetadataTrackPresentationMode value {}; - check_hresult(static_cast(static_cast(*this))->get_NewPresentationMode(&value)); - return value; -} - -inline Windows::Media::Playback::MediaPlayer BackgroundMediaPlayer::Current() -{ - return get_activation_factory().Current(); -} - -inline event_token BackgroundMediaPlayer::MessageReceivedFromBackground(const Windows::Foundation::EventHandler & value) -{ - return get_activation_factory().MessageReceivedFromBackground(value); -} - -inline factory_event_revoker BackgroundMediaPlayer::MessageReceivedFromBackground(auto_revoke_t, const Windows::Foundation::EventHandler & value) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::Playback::IBackgroundMediaPlayerStatics::remove_MessageReceivedFromBackground, factory.MessageReceivedFromBackground(value) }; -} - -inline void BackgroundMediaPlayer::MessageReceivedFromBackground(event_token token) -{ - get_activation_factory().MessageReceivedFromBackground(token); -} - -inline event_token BackgroundMediaPlayer::MessageReceivedFromForeground(const Windows::Foundation::EventHandler & value) -{ - return get_activation_factory().MessageReceivedFromForeground(value); -} - -inline factory_event_revoker BackgroundMediaPlayer::MessageReceivedFromForeground(auto_revoke_t, const Windows::Foundation::EventHandler & value) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::Playback::IBackgroundMediaPlayerStatics::remove_MessageReceivedFromForeground, factory.MessageReceivedFromForeground(value) }; -} - -inline void BackgroundMediaPlayer::MessageReceivedFromForeground(event_token token) -{ - get_activation_factory().MessageReceivedFromForeground(token); -} - -inline void BackgroundMediaPlayer::SendMessageToBackground(const Windows::Foundation::Collections::ValueSet & value) -{ - get_activation_factory().SendMessageToBackground(value); -} - -inline void BackgroundMediaPlayer::SendMessageToForeground(const Windows::Foundation::Collections::ValueSet & value) -{ - get_activation_factory().SendMessageToForeground(value); -} - -inline bool BackgroundMediaPlayer::IsMediaPlaying() -{ - return get_activation_factory().IsMediaPlaying(); -} - -inline void BackgroundMediaPlayer::Shutdown() -{ - get_activation_factory().Shutdown(); -} - -inline MediaBreak::MediaBreak(Windows::Media::Playback::MediaBreakInsertionMethod insertionMethod) : - MediaBreak(get_activation_factory().Create(insertionMethod)) -{} - -inline MediaBreak::MediaBreak(Windows::Media::Playback::MediaBreakInsertionMethod insertionMethod, const Windows::Foundation::TimeSpan & presentationPosition) : - MediaBreak(get_activation_factory().CreateWithPresentationPosition(insertionMethod, presentationPosition)) -{} - -inline MediaPlaybackItem::MediaPlaybackItem(const Windows::Media::Core::MediaSource & source) : - MediaPlaybackItem(get_activation_factory().Create(source)) -{} - -inline MediaPlaybackItem::MediaPlaybackItem(const Windows::Media::Core::MediaSource & source, const Windows::Foundation::TimeSpan & startTime) : - MediaPlaybackItem(get_activation_factory().CreateWithStartTime(source, startTime)) -{} - -inline MediaPlaybackItem::MediaPlaybackItem(const Windows::Media::Core::MediaSource & source, const Windows::Foundation::TimeSpan & startTime, const Windows::Foundation::TimeSpan & durationLimit) : - MediaPlaybackItem(get_activation_factory().CreateWithStartTimeAndDurationLimit(source, startTime, durationLimit)) -{} - -inline Windows::Media::Playback::MediaPlaybackItem MediaPlaybackItem::FindFromMediaSource(const Windows::Media::Core::MediaSource & source) -{ - return get_activation_factory().FindFromMediaSource(source); -} - -inline MediaPlaybackList::MediaPlaybackList() : - MediaPlaybackList(activate_instance()) -{} - -inline MediaPlayer::MediaPlayer() : - MediaPlayer(activate_instance()) -{} - -inline PlaybackMediaMarker::PlaybackMediaMarker(const Windows::Foundation::TimeSpan & value) : - PlaybackMediaMarker(get_activation_factory().CreateFromTime(value)) -{} - -inline PlaybackMediaMarker::PlaybackMediaMarker(const Windows::Foundation::TimeSpan & value, hstring_ref mediaMarketType, hstring_ref text) : - PlaybackMediaMarker(get_activation_factory().Create(value, mediaMarketType, text)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Playlists.h b/10.0.14393.0/winrt/Windows.Media.Playlists.h deleted file mode 100644 index faff0a37e..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Playlists.h +++ /dev/null @@ -1,144 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Media.Playlists.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Files(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Files()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SaveAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsAsync(abi_arg_in saveLocation, abi_arg_in desiredName, Windows::Storage::NameCollisionOption option, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SaveAsAsync(*reinterpret_cast(&saveLocation), *reinterpret_cast(&desiredName), option)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsWithFormatAsync(abi_arg_in saveLocation, abi_arg_in desiredName, Windows::Storage::NameCollisionOption option, Windows::Media::Playlists::PlaylistFormat playlistFormat, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SaveAsAsync(*reinterpret_cast(&saveLocation), *reinterpret_cast(&desiredName), option, playlistFormat)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LoadAsync(abi_arg_in file, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LoadAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Playlists { - -template Windows::Foundation::Collections::IVector impl_IPlaylist::Files() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Files(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IPlaylist::SaveAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPlaylist::SaveAsAsync(const Windows::Storage::IStorageFolder & saveLocation, hstring_ref desiredName, Windows::Storage::NameCollisionOption option) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsAsync(get(saveLocation), get(desiredName), option, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPlaylist::SaveAsAsync(const Windows::Storage::IStorageFolder & saveLocation, hstring_ref desiredName, Windows::Storage::NameCollisionOption option, Windows::Media::Playlists::PlaylistFormat playlistFormat) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsWithFormatAsync(get(saveLocation), get(desiredName), option, playlistFormat, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPlaylistStatics::LoadAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LoadAsync(get(file), put(operation))); - return operation; -} - -inline Playlist::Playlist() : - Playlist(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation Playlist::LoadAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().LoadAsync(file); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Protection.PlayReady.h b/10.0.14393.0/winrt/Windows.Media.Protection.PlayReady.h deleted file mode 100644 index ca42af6c1..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Protection.PlayReady.h +++ /dev/null @@ -1,3677 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.Protection.3.h" -#include "internal/Windows.Media.Core.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Media.Protection.PlayReady.3.h" -#include "Windows.Media.Protection.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall add_RegistrationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RegistrationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RegistrationCompleted(event_token token) noexcept override - { - try - { - this->shim().RegistrationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ProximityDetectionCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ProximityDetectionCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ProximityDetectionCompleted(event_token token) noexcept override - { - try - { - this->shim().ProximityDetectionCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LicenseFetchCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LicenseFetchCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LicenseFetchCompleted(event_token token) noexcept override - { - try - { - this->shim().LicenseFetchCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ReRegistrationNeeded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ReRegistrationNeeded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ReRegistrationNeeded(event_token token) noexcept override - { - try - { - this->shim().ReRegistrationNeeded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ClosedCaptionDataReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ClosedCaptionDataReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ClosedCaptionDataReceived(event_token token) noexcept override - { - try - { - this->shim().ClosedCaptionDataReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAsync(abi_arg_in contentUrl, uint32_t startAsyncOptions, abi_arg_in registrationCustomData, abi_arg_in licenseFetchDescriptor, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().StartAsync(*reinterpret_cast(&contentUrl), startAsyncOptions, *reinterpret_cast(®istrationCustomData), *reinterpret_cast(&licenseFetchDescriptor))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LicenseFetchAsync(abi_arg_in licenseFetchDescriptor, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().LicenseFetchAsync(*reinterpret_cast(&licenseFetchDescriptor))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReRegistrationAsync(abi_arg_in registrationCustomData, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReRegistrationAsync(*reinterpret_cast(®istrationCustomData))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Close() noexcept override - { - try - { - this->shim().Close(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in downloadEngine, abi_arg_in streamParser, abi_arg_in pMessenger, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&downloadEngine), *reinterpret_cast(&streamParser), *reinterpret_cast(&pMessenger))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClosedCaptionDataFormat(Windows::Media::Protection::PlayReady::NDClosedCaptionFormat * ccForamt) noexcept override - { - try - { - *ccForamt = detach(this->shim().ClosedCaptionDataFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PresentationTimestamp(int64_t * presentationTimestamp) noexcept override - { - try - { - *presentationTimestamp = detach(this->shim().PresentationTimestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClosedCaptionData(uint32_t * __ccDataBytesSize, abi_arg_out * ccDataBytes) noexcept override - { - try - { - std::tie(*__ccDataBytesSize, *ccDataBytes) = detach(this->shim().ClosedCaptionData()); - return S_OK; - } - catch (...) - { - *__ccDataBytesSize = 0; - *ccDataBytes = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CustomDataTypeID(uint32_t * __customDataTypeIDBytesSize, abi_arg_out * customDataTypeIDBytes) noexcept override - { - try - { - std::tie(*__customDataTypeIDBytesSize, *customDataTypeIDBytes) = detach(this->shim().CustomDataTypeID()); - return S_OK; - } - catch (...) - { - *__customDataTypeIDBytesSize = 0; - *customDataTypeIDBytes = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomData(uint32_t * __customDataBytesSize, abi_arg_out * customDataBytes) noexcept override - { - try - { - std::tie(*__customDataBytesSize, *customDataBytes) = detach(this->shim().CustomData()); - return S_OK; - } - catch (...) - { - *__customDataBytesSize = 0; - *customDataBytes = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(uint32_t __customDataTypeIDBytesSize, abi_arg_in * customDataTypeIDBytes, uint32_t __customDataBytesSize, abi_arg_in * customDataBytes, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(array_ref(customDataTypeIDBytes, customDataTypeIDBytes + __customDataTypeIDBytesSize), array_ref(customDataBytes, customDataBytes + __customDataBytesSize))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Open(abi_arg_in uri, uint32_t __sessionIDBytesSize, abi_arg_in * sessionIDBytes) noexcept override - { - try - { - this->shim().Open(*reinterpret_cast(&uri), array_ref(sessionIDBytes, sessionIDBytes + __sessionIDBytesSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Pause() noexcept override - { - try - { - this->shim().Pause(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Resume() noexcept override - { - try - { - this->shim().Resume(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Close() noexcept override - { - try - { - this->shim().Close(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Seek(abi_arg_in startPosition) noexcept override - { - try - { - this->shim().Seek(*reinterpret_cast(&startPosition)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanSeek(bool * canSeek) noexcept override - { - try - { - *canSeek = detach(this->shim().CanSeek()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BufferFullMinThresholdInSamples(uint32_t * bufferFullMinThreshold) noexcept override - { - try - { - *bufferFullMinThreshold = detach(this->shim().BufferFullMinThresholdInSamples()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BufferFullMaxThresholdInSamples(uint32_t * bufferFullMaxThreshold) noexcept override - { - try - { - *bufferFullMaxThreshold = detach(this->shim().BufferFullMaxThresholdInSamples()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Notifier(abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().Notifier()); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnStreamOpened() noexcept override - { - try - { - this->shim().OnStreamOpened(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnPlayReadyObjectReceived(uint32_t __dataBytesSize, abi_arg_in * dataBytes) noexcept override - { - try - { - this->shim().OnPlayReadyObjectReceived(array_ref(dataBytes, dataBytes + __dataBytesSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnContentIDReceived(abi_arg_in licenseFetchDescriptor) noexcept override - { - try - { - this->shim().OnContentIDReceived(*reinterpret_cast(&licenseFetchDescriptor)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnDataReceived(uint32_t __dataBytesSize, abi_arg_in * dataBytes, uint32_t bytesReceived) noexcept override - { - try - { - this->shim().OnDataReceived(array_ref(dataBytes, dataBytes + __dataBytesSize), bytesReceived); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnEndOfStream() noexcept override - { - try - { - this->shim().OnEndOfStream(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnNetworkError() noexcept override - { - try - { - this->shim().OnNetworkError(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResponseCustomData(abi_arg_out customData) noexcept override - { - try - { - *customData = detach(this->shim().ResponseCustomData()); - return S_OK; - } - catch (...) - { - *customData = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentIDType(Windows::Media::Protection::PlayReady::NDContentIDType * contentIDType) noexcept override - { - try - { - *contentIDType = detach(this->shim().ContentIDType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentID(uint32_t * __contentIDBytesSize, abi_arg_out * contentIDBytes) noexcept override - { - try - { - std::tie(*__contentIDBytesSize, *contentIDBytes) = detach(this->shim().ContentID()); - return S_OK; - } - catch (...) - { - *__contentIDBytesSize = 0; - *contentIDBytes = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LicenseFetchChallengeCustomData(abi_arg_out licenseFetchChallengeCustomData) noexcept override - { - try - { - *licenseFetchChallengeCustomData = detach(this->shim().LicenseFetchChallengeCustomData()); - return S_OK; - } - catch (...) - { - *licenseFetchChallengeCustomData = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LicenseFetchChallengeCustomData(abi_arg_in licenseFetchChallengeCustomData) noexcept override - { - try - { - this->shim().LicenseFetchChallengeCustomData(*reinterpret_cast(&licenseFetchChallengeCustomData)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(Windows::Media::Protection::PlayReady::NDContentIDType contentIDType, uint32_t __contentIDBytesSize, abi_arg_in * contentIDBytes, abi_arg_in licenseFetchChallengeCustomData, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(contentIDType, array_ref(contentIDBytes, contentIDBytes + __contentIDBytesSize), *reinterpret_cast(&licenseFetchChallengeCustomData))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResponseCustomData(abi_arg_out customData) noexcept override - { - try - { - *customData = detach(this->shim().ResponseCustomData()); - return S_OK; - } - catch (...) - { - *customData = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SendRegistrationRequestAsync(uint32_t __sessionIDBytesSize, abi_arg_in * sessionIDBytes, uint32_t __challengeDataBytesSize, abi_arg_in * challengeDataBytes, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SendRegistrationRequestAsync(array_ref(sessionIDBytes, sessionIDBytes + __sessionIDBytesSize), array_ref(challengeDataBytes, challengeDataBytes + __challengeDataBytesSize))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendProximityDetectionStartAsync(Windows::Media::Protection::PlayReady::NDProximityDetectionType pdType, uint32_t __transmitterChannelBytesSize, abi_arg_in * transmitterChannelBytes, uint32_t __sessionIDBytesSize, abi_arg_in * sessionIDBytes, uint32_t __challengeDataBytesSize, abi_arg_in * challengeDataBytes, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SendProximityDetectionStartAsync(pdType, array_ref(transmitterChannelBytes, transmitterChannelBytes + __transmitterChannelBytesSize), array_ref(sessionIDBytes, sessionIDBytes + __sessionIDBytesSize), array_ref(challengeDataBytes, challengeDataBytes + __challengeDataBytesSize))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendProximityDetectionResponseAsync(Windows::Media::Protection::PlayReady::NDProximityDetectionType pdType, uint32_t __transmitterChannelBytesSize, abi_arg_in * transmitterChannelBytes, uint32_t __sessionIDBytesSize, abi_arg_in * sessionIDBytes, uint32_t __responseDataBytesSize, abi_arg_in * responseDataBytes, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SendProximityDetectionResponseAsync(pdType, array_ref(transmitterChannelBytes, transmitterChannelBytes + __transmitterChannelBytesSize), array_ref(sessionIDBytes, sessionIDBytes + __sessionIDBytesSize), array_ref(responseDataBytes, responseDataBytes + __responseDataBytesSize))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendLicenseFetchRequestAsync(uint32_t __sessionIDBytesSize, abi_arg_in * sessionIDBytes, uint32_t __challengeDataBytesSize, abi_arg_in * challengeDataBytes, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SendLicenseFetchRequestAsync(array_ref(sessionIDBytes, sessionIDBytes + __sessionIDBytesSize), array_ref(challengeDataBytes, challengeDataBytes + __challengeDataBytesSize))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProximityDetectionRetryCount(uint32_t * retryCount) noexcept override - { - try - { - *retryCount = detach(this->shim().ProximityDetectionRetryCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResponseCustomData(abi_arg_out customData) noexcept override - { - try - { - *customData = detach(this->shim().ResponseCustomData()); - return S_OK; - } - catch (...) - { - *customData = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransmitterProperties(abi_arg_out transmitterProperties) noexcept override - { - try - { - *transmitterProperties = detach(this->shim().TransmitterProperties()); - return S_OK; - } - catch (...) - { - *transmitterProperties = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransmitterCertificateAccepted(bool * acceptpt) noexcept override - { - try - { - *acceptpt = detach(this->shim().TransmitterCertificateAccepted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransmitterCertificateAccepted(bool accept) noexcept override - { - try - { - this->shim().TransmitterCertificateAccepted(accept); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Response(uint32_t * __responseDataBytesSize, abi_arg_out * responseDataBytes) noexcept override - { - try - { - std::tie(*__responseDataBytesSize, *responseDataBytes) = detach(this->shim().Response()); - return S_OK; - } - catch (...) - { - *__responseDataBytesSize = 0; - *responseDataBytes = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MediaStreamSource(abi_arg_out mediaStreamSource) noexcept override - { - try - { - *mediaStreamSource = detach(this->shim().MediaStreamSource()); - return S_OK; - } - catch (...) - { - *mediaStreamSource = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetFileURLs(abi_arg_in file, abi_arg_out> fileURLs) noexcept override - { - try - { - *fileURLs = detach(this->shim().GetFileURLs(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *fileURLs = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ParseData(uint32_t __dataBytesSize, abi_arg_in * dataBytes) noexcept override - { - try - { - this->shim().ParseData(array_ref(dataBytes, dataBytes + __dataBytesSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStreamInformation(abi_arg_in descriptor, Windows::Media::Protection::PlayReady::NDMediaStreamType * streamType, uint32_t * streamID) noexcept override - { - try - { - *streamID = detach(this->shim().GetStreamInformation(*reinterpret_cast(&descriptor), *streamType)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BeginOfStream() noexcept override - { - try - { - this->shim().BeginOfStream(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EndOfStream() noexcept override - { - try - { - this->shim().EndOfStream(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Notifier(abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().Notifier()); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnContentIDReceived(abi_arg_in licenseFetchDescriptor) noexcept override - { - try - { - this->shim().OnContentIDReceived(*reinterpret_cast(&licenseFetchDescriptor)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnMediaStreamDescriptorCreated(abi_arg_in> audioStreamDescriptors, abi_arg_in> videoStreamDescriptors) noexcept override - { - try - { - this->shim().OnMediaStreamDescriptorCreated(*reinterpret_cast *>(&audioStreamDescriptors), *reinterpret_cast *>(&videoStreamDescriptors)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnSampleParsed(uint32_t streamID, Windows::Media::Protection::PlayReady::NDMediaStreamType streamType, abi_arg_in streamSample, int64_t pts, Windows::Media::Protection::PlayReady::NDClosedCaptionFormat ccFormat, uint32_t __ccDataBytesSize, abi_arg_in * ccDataBytes) noexcept override - { - try - { - this->shim().OnSampleParsed(streamID, streamType, *reinterpret_cast(&streamSample), pts, ccFormat, array_ref(ccDataBytes, ccDataBytes + __ccDataBytesSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnBeginSetupDecryptor(abi_arg_in descriptor, GUID keyID, uint32_t __proBytesSize, abi_arg_in * proBytes) noexcept override - { - try - { - this->shim().OnBeginSetupDecryptor(*reinterpret_cast(&descriptor), keyID, array_ref(proBytes, proBytes + __proBytesSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in remoteHostName, uint32_t remoteHostPort, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&remoteHostName), remoteHostPort)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CertificateType(Windows::Media::Protection::PlayReady::NDCertificateType * type) noexcept override - { - try - { - *type = detach(this->shim().CertificateType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlatformIdentifier(Windows::Media::Protection::PlayReady::NDCertificatePlatformID * identifier) noexcept override - { - try - { - *identifier = detach(this->shim().PlatformIdentifier()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedFeatures(uint32_t * __featureSetsSize, abi_arg_out * featureSets) noexcept override - { - try - { - std::tie(*__featureSetsSize, *featureSets) = detach(this->shim().SupportedFeatures()); - return S_OK; - } - catch (...) - { - *__featureSetsSize = 0; - *featureSets = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecurityLevel(uint32_t * level) noexcept override - { - try - { - *level = detach(this->shim().SecurityLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecurityVersion(uint32_t * securityVersion) noexcept override - { - try - { - *securityVersion = detach(this->shim().SecurityVersion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationDate(abi_arg_out expirationDate) noexcept override - { - try - { - *expirationDate = detach(this->shim().ExpirationDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClientID(uint32_t * __clientIDBytesSize, abi_arg_out * clientIDBytes) noexcept override - { - try - { - std::tie(*__clientIDBytesSize, *clientIDBytes) = detach(this->shim().ClientID()); - return S_OK; - } - catch (...) - { - *__clientIDBytesSize = 0; - *clientIDBytes = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModelDigest(uint32_t * __modelDigestBytesSize, abi_arg_out * modelDigestBytes) noexcept override - { - try - { - std::tie(*__modelDigestBytesSize, *modelDigestBytes) = detach(this->shim().ModelDigest()); - return S_OK; - } - catch (...) - { - *__modelDigestBytesSize = 0; - *modelDigestBytes = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModelManufacturerName(abi_arg_out modelManufacturerName) noexcept override - { - try - { - *modelManufacturerName = detach(this->shim().ModelManufacturerName()); - return S_OK; - } - catch (...) - { - *modelManufacturerName = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModelName(abi_arg_out modelName) noexcept override - { - try - { - *modelName = detach(this->shim().ModelName()); - return S_OK; - } - catch (...) - { - *modelName = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModelNumber(abi_arg_out modelNumber) noexcept override - { - try - { - *modelNumber = detach(this->shim().ModelNumber()); - return S_OK; - } - catch (...) - { - *modelNumber = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_KeyId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().KeyId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyIdString(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyIdString()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LicenseAcquisitionUrl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LicenseAcquisitionUrl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LicenseAcquisitionUserInterfaceUrl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LicenseAcquisitionUserInterfaceUrl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainServiceId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DomainServiceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EncryptionType(Windows::Media::Protection::PlayReady::PlayReadyEncryptionAlgorithm * value) noexcept override - { - try - { - *value = detach(this->shim().EncryptionType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomAttributes(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomAttributes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DecryptorSetup(Windows::Media::Protection::PlayReady::PlayReadyDecryptorSetup * value) noexcept override - { - try - { - *value = detach(this->shim().DecryptorSetup()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSerializedHeader(uint32_t * __headerBytesSize, abi_arg_out * headerBytes) noexcept override - { - try - { - std::tie(*__headerBytesSize, *headerBytes) = detach(this->shim().GetSerializedHeader()); - return S_OK; - } - catch (...) - { - *__headerBytesSize = 0; - *headerBytes = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderWithEmbeddedUpdates(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderWithEmbeddedUpdates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_KeyIds(uint32_t * __contentKeyIdsSize, abi_arg_out * contentKeyIds) noexcept override - { - try - { - std::tie(*__contentKeyIdsSize, *contentKeyIds) = detach(this->shim().KeyIds()); - return S_OK; - } - catch (...) - { - *__contentKeyIdsSize = 0; - *contentKeyIds = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyIdStrings(uint32_t * __contentKeyIdStringsSize, abi_arg_out * contentKeyIdStrings) noexcept override - { - try - { - std::tie(*__contentKeyIdStringsSize, *contentKeyIdStrings) = detach(this->shim().KeyIdStrings()); - return S_OK; - } - catch (...) - { - *__contentKeyIdStringsSize = 0; - *contentKeyIdStrings = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceFromWindowsMediaDrmHeader(uint32_t __headerBytesSize, abi_arg_in * headerBytes, abi_arg_in licenseAcquisitionUrl, abi_arg_in licenseAcquisitionUserInterfaceUrl, abi_arg_in customAttributes, GUID domainServiceId, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceFromWindowsMediaDrmHeader(array_ref(headerBytes, headerBytes + __headerBytesSize), *reinterpret_cast(&licenseAcquisitionUrl), *reinterpret_cast(&licenseAcquisitionUserInterfaceUrl), *reinterpret_cast(&customAttributes), domainServiceId)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceFromComponents(GUID contentKeyId, abi_arg_in contentKeyIdString, Windows::Media::Protection::PlayReady::PlayReadyEncryptionAlgorithm contentEncryptionAlgorithm, abi_arg_in licenseAcquisitionUrl, abi_arg_in licenseAcquisitionUserInterfaceUrl, abi_arg_in customAttributes, GUID domainServiceId, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceFromComponents(contentKeyId, *reinterpret_cast(&contentKeyIdString), contentEncryptionAlgorithm, *reinterpret_cast(&licenseAcquisitionUrl), *reinterpret_cast(&licenseAcquisitionUserInterfaceUrl), *reinterpret_cast(&customAttributes), domainServiceId)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceFromPlayReadyHeader(uint32_t __headerBytesSize, abi_arg_in * headerBytes, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceFromPlayReadyHeader(array_ref(headerBytes, headerBytes + __headerBytesSize))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceFromComponents2(uint32_t dwFlags, uint32_t __contentKeyIdsSize, abi_arg_in * contentKeyIds, uint32_t __contentKeyIdStringsSize, abi_arg_in * contentKeyIdStrings, Windows::Media::Protection::PlayReady::PlayReadyEncryptionAlgorithm contentEncryptionAlgorithm, abi_arg_in licenseAcquisitionUrl, abi_arg_in licenseAcquisitionUserInterfaceUrl, abi_arg_in customAttributes, GUID domainServiceId, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceFromComponents2(dwFlags, array_ref(contentKeyIds, contentKeyIds + __contentKeyIdsSize), *reinterpret_cast(&contentKeyIdStrings), contentEncryptionAlgorithm, *reinterpret_cast(&licenseAcquisitionUrl), *reinterpret_cast(&licenseAcquisitionUserInterfaceUrl), *reinterpret_cast(&customAttributes), domainServiceId)); - return S_OK; - } - catch (...) - { - *contentKeyIdStrings = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ServiceRequest(abi_arg_in contentHeader, abi_arg_out serviceRequest) noexcept override - { - try - { - *serviceRequest = detach(this->shim().ServiceRequest(*reinterpret_cast(&contentHeader))); - return S_OK; - } - catch (...) - { - *serviceRequest = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AccountId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AccountId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Revision(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Revision()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainJoinUrl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DomainJoinUrl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(GUID domainAccountId, abi_arg_out> domainIterable) noexcept override - { - try - { - *domainIterable = detach(this->shim().CreateInstance(domainAccountId)); - return S_OK; - } - catch (...) - { - *domainIterable = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DomainAccountId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DomainAccountId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DomainAccountId(GUID value) noexcept override - { - try - { - this->shim().DomainAccountId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainFriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DomainFriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DomainFriendlyName(abi_arg_in value) noexcept override - { - try - { - this->shim().DomainFriendlyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainServiceId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DomainServiceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DomainServiceId(GUID value) noexcept override - { - try - { - this->shim().DomainServiceId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DomainAccountId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DomainAccountId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DomainAccountId(GUID value) noexcept override - { - try - { - this->shim().DomainAccountId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainServiceId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DomainServiceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DomainServiceId(GUID value) noexcept override - { - try - { - this->shim().DomainServiceId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GenerateData(GUID guidCPSystemId, uint32_t countOfStreams, abi_arg_in configuration, Windows::Media::Protection::PlayReady::PlayReadyITADataFormat format, uint32_t * __dataBytesSize, abi_arg_out * dataBytes) noexcept override - { - try - { - std::tie(*__dataBytesSize, *dataBytes) = detach(this->shim().GenerateData(guidCPSystemId, countOfStreams, *reinterpret_cast(&configuration), format)); - return S_OK; - } - catch (...) - { - *__dataBytesSize = 0; - *dataBytes = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FullyEvaluated(bool * value) noexcept override - { - try - { - *value = detach(this->shim().FullyEvaluated()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UsableForPlay(bool * value) noexcept override - { - try - { - *value = detach(this->shim().UsableForPlay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationDate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpireAfterFirstPlay(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExpireAfterFirstPlay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainAccountID(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DomainAccountID()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChainDepth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ChainDepth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetKIDAtChainDepth(uint32_t chainDepth, GUID * kid) noexcept override - { - try - { - *kid = detach(this->shim().GetKIDAtChainDepth(chainDepth)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentHeader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentHeader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentHeader(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentHeader(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainServiceId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DomainServiceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DomainServiceId(GUID value) noexcept override - { - try - { - this->shim().DomainServiceId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SessionId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().SessionId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in contentHeader, bool fullyEvaluated, abi_arg_out> instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&contentHeader), fullyEvaluated)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_DeleteLicenses(abi_arg_in contentHeader, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().DeleteLicenses(*reinterpret_cast(&contentHeader))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateLAServiceRequest(abi_arg_out serviceRequest) noexcept override - { - try - { - *serviceRequest = detach(this->shim().CreateLAServiceRequest()); - return S_OK; - } - catch (...) - { - *serviceRequest = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConfigureMediaProtectionManager(abi_arg_in mpm) noexcept override - { - try - { - this->shim().ConfigureMediaProtectionManager(*reinterpret_cast(&mpm)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in configuration, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&configuration))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MeteringCertificate(uint32_t * __meteringCertBytesSize, abi_arg_out * meteringCertBytes) noexcept override - { - try - { - std::tie(*__meteringCertBytesSize, *meteringCertBytes) = detach(this->shim().MeteringCertificate()); - return S_OK; - } - catch (...) - { - *__meteringCertBytesSize = 0; - *meteringCertBytes = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MeteringCertificate(uint32_t __meteringCertBytesSize, abi_arg_in * meteringCertBytes) noexcept override - { - try - { - this->shim().MeteringCertificate(array_ref(meteringCertBytes, meteringCertBytes + __meteringCertBytesSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(uint32_t __publisherCertBytesSize, abi_arg_in * publisherCertBytes, abi_arg_out> instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(array_ref(publisherCertBytes, publisherCertBytes + __publisherCertBytesSize))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SessionID(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().SessionID()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpdateTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UpdateTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stopped(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Stopped()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PublisherCertificate(uint32_t * __publisherCertBytesSize, abi_arg_out * publisherCertBytes) noexcept override - { - try - { - std::tie(*__publisherCertBytesSize, *publisherCertBytes) = detach(this->shim().PublisherCertificate()); - return S_OK; - } - catch (...) - { - *__publisherCertBytesSize = 0; - *publisherCertBytes = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(uint32_t __publisherCertBytesSize, abi_arg_in * publisherCertBytes, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(array_ref(publisherCertBytes, publisherCertBytes + __publisherCertBytesSize))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceFromSessionID(GUID sessionID, uint32_t __publisherCertBytesSize, abi_arg_in * publisherCertBytes, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceFromSessionID(sessionID, array_ref(publisherCertBytes, publisherCertBytes + __publisherCertBytesSize))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Uri(abi_arg_in value) noexcept override - { - try - { - this->shim().Uri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResponseCustomData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResponseCustomData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChallengeCustomData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChallengeCustomData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChallengeCustomData(abi_arg_in value) noexcept override - { - try - { - this->shim().ChallengeCustomData(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BeginServiceRequest(abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().BeginServiceRequest()); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NextServiceRequest(abi_arg_out serviceRequest) noexcept override - { - try - { - *serviceRequest = detach(this->shim().NextServiceRequest()); - return S_OK; - } - catch (...) - { - *serviceRequest = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GenerateManualEnablingChallenge(abi_arg_out challengeMessage) noexcept override - { - try - { - *challengeMessage = detach(this->shim().GenerateManualEnablingChallenge()); - return S_OK; - } - catch (...) - { - *challengeMessage = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessManualEnablingResponse(uint32_t __responseBytesSize, abi_arg_in * responseBytes, HRESULT * result) noexcept override - { - try - { - *result = detach(this->shim().ProcessManualEnablingResponse(array_ref(responseBytes, responseBytes + __responseBytesSize))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetMessageBody(uint32_t * __messageBodyBytesSize, abi_arg_out * messageBodyBytes) noexcept override - { - try - { - std::tie(*__messageBodyBytesSize, *messageBodyBytes) = detach(this->shim().GetMessageBody()); - return S_OK; - } - catch (...) - { - *__messageBodyBytesSize = 0; - *messageBodyBytes = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageHeaders(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MessageHeaders()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Uri(abi_arg_out messageUri) noexcept override - { - try - { - *messageUri = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *messageUri = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DomainJoinServiceRequestType(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DomainJoinServiceRequestType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainLeaveServiceRequestType(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DomainLeaveServiceRequestType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IndividualizationServiceRequestType(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().IndividualizationServiceRequestType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LicenseAcquirerServiceRequestType(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().LicenseAcquirerServiceRequestType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MeteringReportServiceRequestType(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().MeteringReportServiceRequestType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RevocationServiceRequestType(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().RevocationServiceRequestType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaProtectionSystemId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().MediaProtectionSystemId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlayReadySecurityVersion(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PlayReadySecurityVersion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PlayReadyCertificateSecurityLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PlayReadyCertificateSecurityLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SecureStopServiceRequestType(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().SecureStopServiceRequestType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckSupportedHardware(Windows::Media::Protection::PlayReady::PlayReadyHardwareDRMFeatures hwdrmFeature, bool * value) noexcept override - { - try - { - *value = detach(this->shim().CheckSupportedHardware(hwdrmFeature)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InputTrustAuthorityToCreate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputTrustAuthorityToCreate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtectionSystemId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionSystemId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Protection::PlayReady { - -template GUID impl_IPlayReadyContentHeader::KeyId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyId(&value)); - return value; -} - -template hstring impl_IPlayReadyContentHeader::KeyIdString() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KeyIdString(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IPlayReadyContentHeader::LicenseAcquisitionUrl() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LicenseAcquisitionUrl(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IPlayReadyContentHeader::LicenseAcquisitionUserInterfaceUrl() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LicenseAcquisitionUserInterfaceUrl(put(value))); - return value; -} - -template GUID impl_IPlayReadyContentHeader::DomainServiceId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DomainServiceId(&value)); - return value; -} - -template Windows::Media::Protection::PlayReady::PlayReadyEncryptionAlgorithm impl_IPlayReadyContentHeader::EncryptionType() const -{ - Windows::Media::Protection::PlayReady::PlayReadyEncryptionAlgorithm value {}; - check_hresult(static_cast(static_cast(*this))->get_EncryptionType(&value)); - return value; -} - -template hstring impl_IPlayReadyContentHeader::CustomAttributes() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CustomAttributes(put(value))); - return value; -} - -template Windows::Media::Protection::PlayReady::PlayReadyDecryptorSetup impl_IPlayReadyContentHeader::DecryptorSetup() const -{ - Windows::Media::Protection::PlayReady::PlayReadyDecryptorSetup value {}; - check_hresult(static_cast(static_cast(*this))->get_DecryptorSetup(&value)); - return value; -} - -template com_array impl_IPlayReadyContentHeader::GetSerializedHeader() const -{ - com_array headerBytes {}; - check_hresult(static_cast(static_cast(*this))->abi_GetSerializedHeader(put_size(headerBytes), put(headerBytes))); - return headerBytes; -} - -template Windows::Media::Protection::PlayReady::PlayReadyContentHeader impl_IPlayReadyContentHeader::HeaderWithEmbeddedUpdates() const -{ - Windows::Media::Protection::PlayReady::PlayReadyContentHeader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderWithEmbeddedUpdates(put(value))); - return value; -} - -template Windows::Media::Protection::PlayReady::PlayReadyContentHeader impl_IPlayReadyContentHeaderFactory::CreateInstanceFromWindowsMediaDrmHeader(array_ref headerBytes, const Windows::Foundation::Uri & licenseAcquisitionUrl, const Windows::Foundation::Uri & licenseAcquisitionUserInterfaceUrl, hstring_ref customAttributes, GUID domainServiceId) const -{ - Windows::Media::Protection::PlayReady::PlayReadyContentHeader instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceFromWindowsMediaDrmHeader(headerBytes.size(), get(headerBytes), get(licenseAcquisitionUrl), get(licenseAcquisitionUserInterfaceUrl), get(customAttributes), domainServiceId, put(instance))); - return instance; -} - -template Windows::Media::Protection::PlayReady::PlayReadyContentHeader impl_IPlayReadyContentHeaderFactory::CreateInstanceFromComponents(GUID contentKeyId, hstring_ref contentKeyIdString, Windows::Media::Protection::PlayReady::PlayReadyEncryptionAlgorithm contentEncryptionAlgorithm, const Windows::Foundation::Uri & licenseAcquisitionUrl, const Windows::Foundation::Uri & licenseAcquisitionUserInterfaceUrl, hstring_ref customAttributes, GUID domainServiceId) const -{ - Windows::Media::Protection::PlayReady::PlayReadyContentHeader instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceFromComponents(contentKeyId, get(contentKeyIdString), contentEncryptionAlgorithm, get(licenseAcquisitionUrl), get(licenseAcquisitionUserInterfaceUrl), get(customAttributes), domainServiceId, put(instance))); - return instance; -} - -template Windows::Media::Protection::PlayReady::PlayReadyContentHeader impl_IPlayReadyContentHeaderFactory::CreateInstanceFromPlayReadyHeader(array_ref headerBytes) const -{ - Windows::Media::Protection::PlayReady::PlayReadyContentHeader instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceFromPlayReadyHeader(headerBytes.size(), get(headerBytes), put(instance))); - return instance; -} - -template com_array impl_IPlayReadyContentHeader2::KeyIds() const -{ - com_array contentKeyIds {}; - check_hresult(static_cast(static_cast(*this))->get_KeyIds(put_size(contentKeyIds), put(contentKeyIds))); - return contentKeyIds; -} - -template com_array impl_IPlayReadyContentHeader2::KeyIdStrings() const -{ - com_array contentKeyIdStrings; - check_hresult(static_cast(static_cast(*this))->get_KeyIdStrings(put_size(contentKeyIdStrings), put(contentKeyIdStrings))); - return contentKeyIdStrings; -} - -template Windows::Media::Protection::PlayReady::PlayReadyContentHeader impl_IPlayReadyContentHeaderFactory2::CreateInstanceFromComponents2(uint32_t dwFlags, array_ref contentKeyIds, array_ref contentKeyIdStrings, Windows::Media::Protection::PlayReady::PlayReadyEncryptionAlgorithm contentEncryptionAlgorithm, const Windows::Foundation::Uri & licenseAcquisitionUrl, const Windows::Foundation::Uri & licenseAcquisitionUserInterfaceUrl, hstring_ref customAttributes, GUID domainServiceId) const -{ - Windows::Media::Protection::PlayReady::PlayReadyContentHeader instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceFromComponents2(dwFlags, contentKeyIds.size(), get(contentKeyIds), contentKeyIdStrings.size(), get(contentKeyIdStrings), contentEncryptionAlgorithm, get(licenseAcquisitionUrl), get(licenseAcquisitionUserInterfaceUrl), get(customAttributes), domainServiceId, put(instance))); - return instance; -} - -template Windows::Media::Protection::PlayReady::IPlayReadyServiceRequest impl_IPlayReadyContentResolver::ServiceRequest(const Windows::Media::Protection::PlayReady::PlayReadyContentHeader & contentHeader) const -{ - Windows::Media::Protection::PlayReady::IPlayReadyServiceRequest serviceRequest; - check_hresult(static_cast(static_cast(*this))->abi_ServiceRequest(get(contentHeader), put(serviceRequest))); - return serviceRequest; -} - -template Windows::Foundation::IAsyncAction impl_IPlayReadyLicenseManagement::DeleteLicenses(const Windows::Media::Protection::PlayReady::PlayReadyContentHeader & contentHeader) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_DeleteLicenses(get(contentHeader), put(operation))); - return operation; -} - -template bool impl_IPlayReadyLicense::FullyEvaluated() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_FullyEvaluated(&value)); - return value; -} - -template bool impl_IPlayReadyLicense::UsableForPlay() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_UsableForPlay(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IPlayReadyLicense::ExpirationDate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ExpirationDate(put(value))); - return value; -} - -template uint32_t impl_IPlayReadyLicense::ExpireAfterFirstPlay() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExpireAfterFirstPlay(&value)); - return value; -} - -template GUID impl_IPlayReadyLicense::DomainAccountID() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DomainAccountID(&value)); - return value; -} - -template uint32_t impl_IPlayReadyLicense::ChainDepth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ChainDepth(&value)); - return value; -} - -template GUID impl_IPlayReadyLicense::GetKIDAtChainDepth(uint32_t chainDepth) const -{ - GUID kid {}; - check_hresult(static_cast(static_cast(*this))->abi_GetKIDAtChainDepth(chainDepth, &kid)); - return kid; -} - -template Windows::Media::Protection::PlayReady::PlayReadyLicenseIterable impl_IPlayReadyLicenseIterableFactory::CreateInstance(const Windows::Media::Protection::PlayReady::PlayReadyContentHeader & contentHeader, bool fullyEvaluated) const -{ - Windows::Media::Protection::PlayReady::PlayReadyLicenseIterable instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(contentHeader), fullyEvaluated, put(instance))); - return instance; -} - -template GUID impl_IPlayReadyDomain::AccountId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AccountId(&value)); - return value; -} - -template GUID impl_IPlayReadyDomain::ServiceId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceId(&value)); - return value; -} - -template uint32_t impl_IPlayReadyDomain::Revision() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Revision(&value)); - return value; -} - -template hstring impl_IPlayReadyDomain::FriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FriendlyName(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IPlayReadyDomain::DomainJoinUrl() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DomainJoinUrl(put(value))); - return value; -} - -template Windows::Media::Protection::PlayReady::PlayReadyDomainIterable impl_IPlayReadyDomainIterableFactory::CreateInstance(GUID domainAccountId) const -{ - Windows::Media::Protection::PlayReady::PlayReadyDomainIterable domainIterable { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(domainAccountId, put(domainIterable))); - return domainIterable; -} - -template GUID impl_IPlayReadyStatics::DomainJoinServiceRequestType() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DomainJoinServiceRequestType(&value)); - return value; -} - -template GUID impl_IPlayReadyStatics::DomainLeaveServiceRequestType() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DomainLeaveServiceRequestType(&value)); - return value; -} - -template GUID impl_IPlayReadyStatics::IndividualizationServiceRequestType() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_IndividualizationServiceRequestType(&value)); - return value; -} - -template GUID impl_IPlayReadyStatics::LicenseAcquirerServiceRequestType() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_LicenseAcquirerServiceRequestType(&value)); - return value; -} - -template GUID impl_IPlayReadyStatics::MeteringReportServiceRequestType() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_MeteringReportServiceRequestType(&value)); - return value; -} - -template GUID impl_IPlayReadyStatics::RevocationServiceRequestType() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_RevocationServiceRequestType(&value)); - return value; -} - -template GUID impl_IPlayReadyStatics::MediaProtectionSystemId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaProtectionSystemId(&value)); - return value; -} - -template uint32_t impl_IPlayReadyStatics::PlayReadySecurityVersion() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PlayReadySecurityVersion(&value)); - return value; -} - -template uint32_t impl_IPlayReadyStatics2::PlayReadyCertificateSecurityLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PlayReadyCertificateSecurityLevel(&value)); - return value; -} - -template GUID impl_IPlayReadyStatics3::SecureStopServiceRequestType() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_SecureStopServiceRequestType(&value)); - return value; -} - -template bool impl_IPlayReadyStatics3::CheckSupportedHardware(Windows::Media::Protection::PlayReady::PlayReadyHardwareDRMFeatures hwdrmFeature) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_CheckSupportedHardware(hwdrmFeature, &value)); - return value; -} - -template hstring impl_IPlayReadyStatics4::InputTrustAuthorityToCreate() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InputTrustAuthorityToCreate(put(value))); - return value; -} - -template GUID impl_IPlayReadyStatics4::ProtectionSystemId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtectionSystemId(&value)); - return value; -} - -template Windows::Media::Protection::PlayReady::PlayReadySecureStopServiceRequest impl_IPlayReadySecureStopServiceRequestFactory::CreateInstance(array_ref publisherCertBytes) const -{ - Windows::Media::Protection::PlayReady::PlayReadySecureStopServiceRequest instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(publisherCertBytes.size(), get(publisherCertBytes), put(instance))); - return instance; -} - -template Windows::Media::Protection::PlayReady::PlayReadySecureStopServiceRequest impl_IPlayReadySecureStopServiceRequestFactory::CreateInstanceFromSessionID(GUID sessionID, array_ref publisherCertBytes) const -{ - Windows::Media::Protection::PlayReady::PlayReadySecureStopServiceRequest instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceFromSessionID(sessionID, publisherCertBytes.size(), get(publisherCertBytes), put(instance))); - return instance; -} - -template Windows::Media::Protection::PlayReady::PlayReadySecureStopIterable impl_IPlayReadySecureStopIterableFactory::CreateInstance(array_ref publisherCertBytes) const -{ - Windows::Media::Protection::PlayReady::PlayReadySecureStopIterable instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(publisherCertBytes.size(), get(publisherCertBytes), put(instance))); - return instance; -} - -template com_array impl_IPlayReadySoapMessage::GetMessageBody() const -{ - com_array messageBodyBytes {}; - check_hresult(static_cast(static_cast(*this))->abi_GetMessageBody(put_size(messageBodyBytes), put(messageBodyBytes))); - return messageBodyBytes; -} - -template Windows::Foundation::Collections::IPropertySet impl_IPlayReadySoapMessage::MessageHeaders() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_MessageHeaders(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IPlayReadySoapMessage::Uri() const -{ - Windows::Foundation::Uri messageUri { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(messageUri))); - return messageUri; -} - -template com_array impl_IPlayReadyITADataGenerator::GenerateData(GUID guidCPSystemId, uint32_t countOfStreams, const Windows::Foundation::Collections::IPropertySet & configuration, Windows::Media::Protection::PlayReady::PlayReadyITADataFormat format) const -{ - com_array dataBytes {}; - check_hresult(static_cast(static_cast(*this))->abi_GenerateData(guidCPSystemId, countOfStreams, get(configuration), format, put_size(dataBytes), put(dataBytes))); - return dataBytes; -} - -template Windows::Media::Protection::PlayReady::IPlayReadyLicenseAcquisitionServiceRequest impl_IPlayReadyLicenseSession::CreateLAServiceRequest() const -{ - Windows::Media::Protection::PlayReady::IPlayReadyLicenseAcquisitionServiceRequest serviceRequest; - check_hresult(static_cast(static_cast(*this))->abi_CreateLAServiceRequest(put(serviceRequest))); - return serviceRequest; -} - -template void impl_IPlayReadyLicenseSession::ConfigureMediaProtectionManager(const Windows::Media::Protection::MediaProtectionManager & mpm) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ConfigureMediaProtectionManager(get(mpm))); -} - -template Windows::Media::Protection::PlayReady::PlayReadyLicenseSession impl_IPlayReadyLicenseSessionFactory::CreateInstance(const Windows::Foundation::Collections::IPropertySet & configuration) const -{ - Windows::Media::Protection::PlayReady::PlayReadyLicenseSession instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(configuration), put(instance))); - return instance; -} - -template void impl_INDDownloadEngine::Open(const Windows::Foundation::Uri & uri, array_ref sessionIDBytes) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Open(get(uri), sessionIDBytes.size(), get(sessionIDBytes))); -} - -template void impl_INDDownloadEngine::Pause() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Pause()); -} - -template void impl_INDDownloadEngine::Resume() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Resume()); -} - -template void impl_INDDownloadEngine::Close() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Close()); -} - -template void impl_INDDownloadEngine::Seek(const Windows::Foundation::TimeSpan & startPosition) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Seek(get(startPosition))); -} - -template bool impl_INDDownloadEngine::CanSeek() const -{ - bool canSeek {}; - check_hresult(static_cast(static_cast(*this))->get_CanSeek(&canSeek)); - return canSeek; -} - -template uint32_t impl_INDDownloadEngine::BufferFullMinThresholdInSamples() const -{ - uint32_t bufferFullMinThreshold {}; - check_hresult(static_cast(static_cast(*this))->get_BufferFullMinThresholdInSamples(&bufferFullMinThreshold)); - return bufferFullMinThreshold; -} - -template uint32_t impl_INDDownloadEngine::BufferFullMaxThresholdInSamples() const -{ - uint32_t bufferFullMaxThreshold {}; - check_hresult(static_cast(static_cast(*this))->get_BufferFullMaxThresholdInSamples(&bufferFullMaxThreshold)); - return bufferFullMaxThreshold; -} - -template Windows::Media::Protection::PlayReady::NDDownloadEngineNotifier impl_INDDownloadEngine::Notifier() const -{ - Windows::Media::Protection::PlayReady::NDDownloadEngineNotifier instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Notifier(put(instance))); - return instance; -} - -template void impl_INDDownloadEngineNotifier::OnStreamOpened() const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnStreamOpened()); -} - -template void impl_INDDownloadEngineNotifier::OnPlayReadyObjectReceived(array_ref dataBytes) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnPlayReadyObjectReceived(dataBytes.size(), get(dataBytes))); -} - -template void impl_INDDownloadEngineNotifier::OnContentIDReceived(const Windows::Media::Protection::PlayReady::INDLicenseFetchDescriptor & licenseFetchDescriptor) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnContentIDReceived(get(licenseFetchDescriptor))); -} - -template void impl_INDDownloadEngineNotifier::OnDataReceived(array_ref dataBytes, uint32_t bytesReceived) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnDataReceived(dataBytes.size(), get(dataBytes), bytesReceived)); -} - -template void impl_INDDownloadEngineNotifier::OnEndOfStream() const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnEndOfStream()); -} - -template void impl_INDDownloadEngineNotifier::OnNetworkError() const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnNetworkError()); -} - -template Windows::Media::Protection::PlayReady::NDContentIDType impl_INDLicenseFetchDescriptor::ContentIDType() const -{ - Windows::Media::Protection::PlayReady::NDContentIDType contentIDType {}; - check_hresult(static_cast(static_cast(*this))->get_ContentIDType(&contentIDType)); - return contentIDType; -} - -template com_array impl_INDLicenseFetchDescriptor::ContentID() const -{ - com_array contentIDBytes {}; - check_hresult(static_cast(static_cast(*this))->get_ContentID(put_size(contentIDBytes), put(contentIDBytes))); - return contentIDBytes; -} - -template Windows::Media::Protection::PlayReady::INDCustomData impl_INDLicenseFetchDescriptor::LicenseFetchChallengeCustomData() const -{ - Windows::Media::Protection::PlayReady::INDCustomData licenseFetchChallengeCustomData; - check_hresult(static_cast(static_cast(*this))->get_LicenseFetchChallengeCustomData(put(licenseFetchChallengeCustomData))); - return licenseFetchChallengeCustomData; -} - -template void impl_INDLicenseFetchDescriptor::LicenseFetchChallengeCustomData(const Windows::Media::Protection::PlayReady::INDCustomData & licenseFetchChallengeCustomData) const -{ - check_hresult(static_cast(static_cast(*this))->put_LicenseFetchChallengeCustomData(get(licenseFetchChallengeCustomData))); -} - -template com_array impl_INDCustomData::CustomDataTypeID() const -{ - com_array customDataTypeIDBytes {}; - check_hresult(static_cast(static_cast(*this))->get_CustomDataTypeID(put_size(customDataTypeIDBytes), put(customDataTypeIDBytes))); - return customDataTypeIDBytes; -} - -template com_array impl_INDCustomData::CustomData() const -{ - com_array customDataBytes {}; - check_hresult(static_cast(static_cast(*this))->get_CustomData(put_size(customDataBytes), put(customDataBytes))); - return customDataBytes; -} - -template void impl_INDStreamParser::ParseData(array_ref dataBytes) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ParseData(dataBytes.size(), get(dataBytes))); -} - -template uint32_t impl_INDStreamParser::GetStreamInformation(const Windows::Media::Core::IMediaStreamDescriptor & descriptor, Windows::Media::Protection::PlayReady::NDMediaStreamType & streamType) const -{ - uint32_t streamID {}; - check_hresult(static_cast(static_cast(*this))->abi_GetStreamInformation(get(descriptor), &streamType, &streamID)); - return streamID; -} - -template void impl_INDStreamParser::BeginOfStream() const -{ - check_hresult(static_cast(static_cast(*this))->abi_BeginOfStream()); -} - -template void impl_INDStreamParser::EndOfStream() const -{ - check_hresult(static_cast(static_cast(*this))->abi_EndOfStream()); -} - -template Windows::Media::Protection::PlayReady::NDStreamParserNotifier impl_INDStreamParser::Notifier() const -{ - Windows::Media::Protection::PlayReady::NDStreamParserNotifier instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Notifier(put(instance))); - return instance; -} - -template void impl_INDStreamParserNotifier::OnContentIDReceived(const Windows::Media::Protection::PlayReady::INDLicenseFetchDescriptor & licenseFetchDescriptor) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnContentIDReceived(get(licenseFetchDescriptor))); -} - -template void impl_INDStreamParserNotifier::OnMediaStreamDescriptorCreated(const Windows::Foundation::Collections::IVector & audioStreamDescriptors, const Windows::Foundation::Collections::IVector & videoStreamDescriptors) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnMediaStreamDescriptorCreated(get(audioStreamDescriptors), get(videoStreamDescriptors))); -} - -template void impl_INDStreamParserNotifier::OnSampleParsed(uint32_t streamID, Windows::Media::Protection::PlayReady::NDMediaStreamType streamType, const Windows::Media::Core::MediaStreamSample & streamSample, int64_t pts, Windows::Media::Protection::PlayReady::NDClosedCaptionFormat ccFormat, array_ref ccDataBytes) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnSampleParsed(streamID, streamType, get(streamSample), pts, ccFormat, ccDataBytes.size(), get(ccDataBytes))); -} - -template void impl_INDStreamParserNotifier::OnBeginSetupDecryptor(const Windows::Media::Core::IMediaStreamDescriptor & descriptor, GUID keyID, array_ref proBytes) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnBeginSetupDecryptor(get(descriptor), keyID, proBytes.size(), get(proBytes))); -} - -template com_array impl_INDSendResult::Response() const -{ - com_array responseDataBytes {}; - check_hresult(static_cast(static_cast(*this))->get_Response(put_size(responseDataBytes), put(responseDataBytes))); - return responseDataBytes; -} - -template Windows::Foundation::IAsyncOperation impl_INDMessenger::SendRegistrationRequestAsync(array_ref sessionIDBytes, array_ref challengeDataBytes) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_SendRegistrationRequestAsync(sessionIDBytes.size(), get(sessionIDBytes), challengeDataBytes.size(), get(challengeDataBytes), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_INDMessenger::SendProximityDetectionStartAsync(Windows::Media::Protection::PlayReady::NDProximityDetectionType pdType, array_ref transmitterChannelBytes, array_ref sessionIDBytes, array_ref challengeDataBytes) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_SendProximityDetectionStartAsync(pdType, transmitterChannelBytes.size(), get(transmitterChannelBytes), sessionIDBytes.size(), get(sessionIDBytes), challengeDataBytes.size(), get(challengeDataBytes), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_INDMessenger::SendProximityDetectionResponseAsync(Windows::Media::Protection::PlayReady::NDProximityDetectionType pdType, array_ref transmitterChannelBytes, array_ref sessionIDBytes, array_ref responseDataBytes) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_SendProximityDetectionResponseAsync(pdType, transmitterChannelBytes.size(), get(transmitterChannelBytes), sessionIDBytes.size(), get(sessionIDBytes), responseDataBytes.size(), get(responseDataBytes), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_INDMessenger::SendLicenseFetchRequestAsync(array_ref sessionIDBytes, array_ref challengeDataBytes) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_SendLicenseFetchRequestAsync(sessionIDBytes.size(), get(sessionIDBytes), challengeDataBytes.size(), get(challengeDataBytes), put(result))); - return result; -} - -template Windows::Media::Protection::PlayReady::NDTCPMessenger impl_INDTCPMessengerFactory::CreateInstance(hstring_ref remoteHostName, uint32_t remoteHostPort) const -{ - Windows::Media::Protection::PlayReady::NDTCPMessenger instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(remoteHostName), remoteHostPort, put(instance))); - return instance; -} - -template Windows::Media::Protection::PlayReady::NDCertificateType impl_INDTransmitterProperties::CertificateType() const -{ - Windows::Media::Protection::PlayReady::NDCertificateType type {}; - check_hresult(static_cast(static_cast(*this))->get_CertificateType(&type)); - return type; -} - -template Windows::Media::Protection::PlayReady::NDCertificatePlatformID impl_INDTransmitterProperties::PlatformIdentifier() const -{ - Windows::Media::Protection::PlayReady::NDCertificatePlatformID identifier {}; - check_hresult(static_cast(static_cast(*this))->get_PlatformIdentifier(&identifier)); - return identifier; -} - -template com_array impl_INDTransmitterProperties::SupportedFeatures() const -{ - com_array featureSets {}; - check_hresult(static_cast(static_cast(*this))->get_SupportedFeatures(put_size(featureSets), put(featureSets))); - return featureSets; -} - -template uint32_t impl_INDTransmitterProperties::SecurityLevel() const -{ - uint32_t level {}; - check_hresult(static_cast(static_cast(*this))->get_SecurityLevel(&level)); - return level; -} - -template uint32_t impl_INDTransmitterProperties::SecurityVersion() const -{ - uint32_t securityVersion {}; - check_hresult(static_cast(static_cast(*this))->get_SecurityVersion(&securityVersion)); - return securityVersion; -} - -template Windows::Foundation::DateTime impl_INDTransmitterProperties::ExpirationDate() const -{ - Windows::Foundation::DateTime expirationDate {}; - check_hresult(static_cast(static_cast(*this))->get_ExpirationDate(put(expirationDate))); - return expirationDate; -} - -template com_array impl_INDTransmitterProperties::ClientID() const -{ - com_array clientIDBytes {}; - check_hresult(static_cast(static_cast(*this))->get_ClientID(put_size(clientIDBytes), put(clientIDBytes))); - return clientIDBytes; -} - -template com_array impl_INDTransmitterProperties::ModelDigest() const -{ - com_array modelDigestBytes {}; - check_hresult(static_cast(static_cast(*this))->get_ModelDigest(put_size(modelDigestBytes), put(modelDigestBytes))); - return modelDigestBytes; -} - -template hstring impl_INDTransmitterProperties::ModelManufacturerName() const -{ - hstring modelManufacturerName; - check_hresult(static_cast(static_cast(*this))->get_ModelManufacturerName(put(modelManufacturerName))); - return modelManufacturerName; -} - -template hstring impl_INDTransmitterProperties::ModelName() const -{ - hstring modelName; - check_hresult(static_cast(static_cast(*this))->get_ModelName(put(modelName))); - return modelName; -} - -template hstring impl_INDTransmitterProperties::ModelNumber() const -{ - hstring modelNumber; - check_hresult(static_cast(static_cast(*this))->get_ModelNumber(put(modelNumber))); - return modelNumber; -} - -template Windows::Media::Core::MediaStreamSource impl_INDStartResult::MediaStreamSource() const -{ - Windows::Media::Core::MediaStreamSource mediaStreamSource { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaStreamSource(put(mediaStreamSource))); - return mediaStreamSource; -} - -template Windows::Media::Protection::PlayReady::INDCustomData impl_INDLicenseFetchResult::ResponseCustomData() const -{ - Windows::Media::Protection::PlayReady::INDCustomData customData; - check_hresult(static_cast(static_cast(*this))->get_ResponseCustomData(put(customData))); - return customData; -} - -template Windows::Media::Protection::PlayReady::NDLicenseFetchDescriptor impl_INDLicenseFetchDescriptorFactory::CreateInstance(Windows::Media::Protection::PlayReady::NDContentIDType contentIDType, array_ref contentIDBytes, const Windows::Media::Protection::PlayReady::INDCustomData & licenseFetchChallengeCustomData) const -{ - Windows::Media::Protection::PlayReady::NDLicenseFetchDescriptor instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(contentIDType, contentIDBytes.size(), get(contentIDBytes), get(licenseFetchChallengeCustomData), put(instance))); - return instance; -} - -template Windows::Media::Protection::PlayReady::INDCustomData impl_INDRegistrationCompletedEventArgs::ResponseCustomData() const -{ - Windows::Media::Protection::PlayReady::INDCustomData customData; - check_hresult(static_cast(static_cast(*this))->get_ResponseCustomData(put(customData))); - return customData; -} - -template Windows::Media::Protection::PlayReady::INDTransmitterProperties impl_INDRegistrationCompletedEventArgs::TransmitterProperties() const -{ - Windows::Media::Protection::PlayReady::INDTransmitterProperties transmitterProperties; - check_hresult(static_cast(static_cast(*this))->get_TransmitterProperties(put(transmitterProperties))); - return transmitterProperties; -} - -template bool impl_INDRegistrationCompletedEventArgs::TransmitterCertificateAccepted() const -{ - bool acceptpt {}; - check_hresult(static_cast(static_cast(*this))->get_TransmitterCertificateAccepted(&acceptpt)); - return acceptpt; -} - -template void impl_INDRegistrationCompletedEventArgs::TransmitterCertificateAccepted(bool accept) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransmitterCertificateAccepted(accept)); -} - -template Windows::Media::Protection::PlayReady::NDCustomData impl_INDCustomDataFactory::CreateInstance(array_ref customDataTypeIDBytes, array_ref customDataBytes) const -{ - Windows::Media::Protection::PlayReady::NDCustomData instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(customDataTypeIDBytes.size(), get(customDataTypeIDBytes), customDataBytes.size(), get(customDataBytes), put(instance))); - return instance; -} - -template uint32_t impl_INDProximityDetectionCompletedEventArgs::ProximityDetectionRetryCount() const -{ - uint32_t retryCount {}; - check_hresult(static_cast(static_cast(*this))->get_ProximityDetectionRetryCount(&retryCount)); - return retryCount; -} - -template Windows::Media::Protection::PlayReady::INDCustomData impl_INDLicenseFetchCompletedEventArgs::ResponseCustomData() const -{ - Windows::Media::Protection::PlayReady::INDCustomData customData; - check_hresult(static_cast(static_cast(*this))->get_ResponseCustomData(put(customData))); - return customData; -} - -template event_token impl_INDClient::RegistrationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RegistrationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_INDClient::RegistrationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Protection::PlayReady::INDClient::remove_RegistrationCompleted, RegistrationCompleted(handler)); -} - -template void impl_INDClient::RegistrationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RegistrationCompleted(token)); -} - -template event_token impl_INDClient::ProximityDetectionCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ProximityDetectionCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_INDClient::ProximityDetectionCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Protection::PlayReady::INDClient::remove_ProximityDetectionCompleted, ProximityDetectionCompleted(handler)); -} - -template void impl_INDClient::ProximityDetectionCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ProximityDetectionCompleted(token)); -} - -template event_token impl_INDClient::LicenseFetchCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LicenseFetchCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_INDClient::LicenseFetchCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Protection::PlayReady::INDClient::remove_LicenseFetchCompleted, LicenseFetchCompleted(handler)); -} - -template void impl_INDClient::LicenseFetchCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LicenseFetchCompleted(token)); -} - -template event_token impl_INDClient::ReRegistrationNeeded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ReRegistrationNeeded(get(handler), &token)); - return token; -} - -template event_revoker impl_INDClient::ReRegistrationNeeded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Protection::PlayReady::INDClient::remove_ReRegistrationNeeded, ReRegistrationNeeded(handler)); -} - -template void impl_INDClient::ReRegistrationNeeded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ReRegistrationNeeded(token)); -} - -template event_token impl_INDClient::ClosedCaptionDataReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ClosedCaptionDataReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_INDClient::ClosedCaptionDataReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Protection::PlayReady::INDClient::remove_ClosedCaptionDataReceived, ClosedCaptionDataReceived(handler)); -} - -template void impl_INDClient::ClosedCaptionDataReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ClosedCaptionDataReceived(token)); -} - -template Windows::Foundation::IAsyncOperation impl_INDClient::StartAsync(const Windows::Foundation::Uri & contentUrl, uint32_t startAsyncOptions, const Windows::Media::Protection::PlayReady::INDCustomData & registrationCustomData, const Windows::Media::Protection::PlayReady::INDLicenseFetchDescriptor & licenseFetchDescriptor) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_StartAsync(get(contentUrl), startAsyncOptions, get(registrationCustomData), get(licenseFetchDescriptor), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_INDClient::LicenseFetchAsync(const Windows::Media::Protection::PlayReady::INDLicenseFetchDescriptor & licenseFetchDescriptor) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_LicenseFetchAsync(get(licenseFetchDescriptor), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_INDClient::ReRegistrationAsync(const Windows::Media::Protection::PlayReady::INDCustomData & registrationCustomData) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReRegistrationAsync(get(registrationCustomData), put(result))); - return result; -} - -template void impl_INDClient::Close() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Close()); -} - -template Windows::Media::Protection::PlayReady::NDClosedCaptionFormat impl_INDClosedCaptionDataReceivedEventArgs::ClosedCaptionDataFormat() const -{ - Windows::Media::Protection::PlayReady::NDClosedCaptionFormat ccForamt {}; - check_hresult(static_cast(static_cast(*this))->get_ClosedCaptionDataFormat(&ccForamt)); - return ccForamt; -} - -template int64_t impl_INDClosedCaptionDataReceivedEventArgs::PresentationTimestamp() const -{ - int64_t presentationTimestamp {}; - check_hresult(static_cast(static_cast(*this))->get_PresentationTimestamp(&presentationTimestamp)); - return presentationTimestamp; -} - -template com_array impl_INDClosedCaptionDataReceivedEventArgs::ClosedCaptionData() const -{ - com_array ccDataBytes {}; - check_hresult(static_cast(static_cast(*this))->get_ClosedCaptionData(put_size(ccDataBytes), put(ccDataBytes))); - return ccDataBytes; -} - -template Windows::Media::Protection::PlayReady::NDClient impl_INDClientFactory::CreateInstance(const Windows::Media::Protection::PlayReady::INDDownloadEngine & downloadEngine, const Windows::Media::Protection::PlayReady::INDStreamParser & streamParser, const Windows::Media::Protection::PlayReady::INDMessenger & pMessenger) const -{ - Windows::Media::Protection::PlayReady::NDClient instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(downloadEngine), get(streamParser), get(pMessenger), put(instance))); - return instance; -} - -template Windows::Foundation::Collections::IVector impl_INDStorageFileHelper::GetFileURLs(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::Collections::IVector fileURLs; - check_hresult(static_cast(static_cast(*this))->abi_GetFileURLs(get(file), put(fileURLs))); - return fileURLs; -} - -template Windows::Foundation::Uri impl_IPlayReadyServiceRequest::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template void impl_IPlayReadyServiceRequest::Uri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Uri(get(value))); -} - -template hstring impl_IPlayReadyServiceRequest::ResponseCustomData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResponseCustomData(put(value))); - return value; -} - -template hstring impl_IPlayReadyServiceRequest::ChallengeCustomData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ChallengeCustomData(put(value))); - return value; -} - -template void impl_IPlayReadyServiceRequest::ChallengeCustomData(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChallengeCustomData(get(value))); -} - -template Windows::Foundation::IAsyncAction impl_IPlayReadyServiceRequest::BeginServiceRequest() const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_BeginServiceRequest(put(action))); - return action; -} - -template Windows::Media::Protection::PlayReady::IPlayReadyServiceRequest impl_IPlayReadyServiceRequest::NextServiceRequest() const -{ - Windows::Media::Protection::PlayReady::IPlayReadyServiceRequest serviceRequest; - check_hresult(static_cast(static_cast(*this))->abi_NextServiceRequest(put(serviceRequest))); - return serviceRequest; -} - -template Windows::Media::Protection::PlayReady::PlayReadySoapMessage impl_IPlayReadyServiceRequest::GenerateManualEnablingChallenge() const -{ - Windows::Media::Protection::PlayReady::PlayReadySoapMessage challengeMessage { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GenerateManualEnablingChallenge(put(challengeMessage))); - return challengeMessage; -} - -template HRESULT impl_IPlayReadyServiceRequest::ProcessManualEnablingResponse(array_ref responseBytes) const -{ - HRESULT result {}; - check_hresult(static_cast(static_cast(*this))->abi_ProcessManualEnablingResponse(responseBytes.size(), get(responseBytes), &result)); - return result; -} - -template GUID impl_IPlayReadyDomainJoinServiceRequest::DomainAccountId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DomainAccountId(&value)); - return value; -} - -template void impl_IPlayReadyDomainJoinServiceRequest::DomainAccountId(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DomainAccountId(value)); -} - -template hstring impl_IPlayReadyDomainJoinServiceRequest::DomainFriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DomainFriendlyName(put(value))); - return value; -} - -template void impl_IPlayReadyDomainJoinServiceRequest::DomainFriendlyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DomainFriendlyName(get(value))); -} - -template GUID impl_IPlayReadyDomainJoinServiceRequest::DomainServiceId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DomainServiceId(&value)); - return value; -} - -template void impl_IPlayReadyDomainJoinServiceRequest::DomainServiceId(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DomainServiceId(value)); -} - -template GUID impl_IPlayReadyDomainLeaveServiceRequest::DomainAccountId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DomainAccountId(&value)); - return value; -} - -template void impl_IPlayReadyDomainLeaveServiceRequest::DomainAccountId(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DomainAccountId(value)); -} - -template GUID impl_IPlayReadyDomainLeaveServiceRequest::DomainServiceId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DomainServiceId(&value)); - return value; -} - -template void impl_IPlayReadyDomainLeaveServiceRequest::DomainServiceId(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DomainServiceId(value)); -} - -template Windows::Media::Protection::PlayReady::PlayReadyContentHeader impl_IPlayReadyLicenseAcquisitionServiceRequest::ContentHeader() const -{ - Windows::Media::Protection::PlayReady::PlayReadyContentHeader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentHeader(put(value))); - return value; -} - -template void impl_IPlayReadyLicenseAcquisitionServiceRequest::ContentHeader(const Windows::Media::Protection::PlayReady::PlayReadyContentHeader & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentHeader(get(value))); -} - -template GUID impl_IPlayReadyLicenseAcquisitionServiceRequest::DomainServiceId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DomainServiceId(&value)); - return value; -} - -template void impl_IPlayReadyLicenseAcquisitionServiceRequest::DomainServiceId(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DomainServiceId(value)); -} - -template GUID impl_IPlayReadyLicenseAcquisitionServiceRequest2::SessionId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_SessionId(&value)); - return value; -} - -template com_array impl_IPlayReadyMeteringReportServiceRequest::MeteringCertificate() const -{ - com_array meteringCertBytes {}; - check_hresult(static_cast(static_cast(*this))->get_MeteringCertificate(put_size(meteringCertBytes), put(meteringCertBytes))); - return meteringCertBytes; -} - -template void impl_IPlayReadyMeteringReportServiceRequest::MeteringCertificate(array_ref meteringCertBytes) const -{ - check_hresult(static_cast(static_cast(*this))->put_MeteringCertificate(meteringCertBytes.size(), get(meteringCertBytes))); -} - -template GUID impl_IPlayReadySecureStopServiceRequest::SessionID() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_SessionID(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IPlayReadySecureStopServiceRequest::StartTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IPlayReadySecureStopServiceRequest::UpdateTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_UpdateTime(put(value))); - return value; -} - -template bool impl_IPlayReadySecureStopServiceRequest::Stopped() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Stopped(&value)); - return value; -} - -template com_array impl_IPlayReadySecureStopServiceRequest::PublisherCertificate() const -{ - com_array publisherCertBytes {}; - check_hresult(static_cast(static_cast(*this))->get_PublisherCertificate(put_size(publisherCertBytes), put(publisherCertBytes))); - return publisherCertBytes; -} - -inline NDClient::NDClient(const Windows::Media::Protection::PlayReady::INDDownloadEngine & downloadEngine, const Windows::Media::Protection::PlayReady::INDStreamParser & streamParser, const Windows::Media::Protection::PlayReady::INDMessenger & pMessenger) : - NDClient(get_activation_factory().CreateInstance(downloadEngine, streamParser, pMessenger)) -{} - -inline NDCustomData::NDCustomData(array_ref customDataTypeIDBytes, array_ref customDataBytes) : - NDCustomData(get_activation_factory().CreateInstance(customDataTypeIDBytes, customDataBytes)) -{} - -inline NDDownloadEngineNotifier::NDDownloadEngineNotifier() : - NDDownloadEngineNotifier(activate_instance()) -{} - -inline NDLicenseFetchDescriptor::NDLicenseFetchDescriptor(Windows::Media::Protection::PlayReady::NDContentIDType contentIDType, array_ref contentIDBytes, const Windows::Media::Protection::PlayReady::INDCustomData & licenseFetchChallengeCustomData) : - NDLicenseFetchDescriptor(get_activation_factory().CreateInstance(contentIDType, contentIDBytes, licenseFetchChallengeCustomData)) -{} - -inline NDStorageFileHelper::NDStorageFileHelper() : - NDStorageFileHelper(activate_instance()) -{} - -inline NDStreamParserNotifier::NDStreamParserNotifier() : - NDStreamParserNotifier(activate_instance()) -{} - -inline NDTCPMessenger::NDTCPMessenger(hstring_ref remoteHostName, uint32_t remoteHostPort) : - NDTCPMessenger(get_activation_factory().CreateInstance(remoteHostName, remoteHostPort)) -{} - -inline PlayReadyContentHeader::PlayReadyContentHeader(array_ref headerBytes, const Windows::Foundation::Uri & licenseAcquisitionUrl, const Windows::Foundation::Uri & licenseAcquisitionUserInterfaceUrl, hstring_ref customAttributes, GUID domainServiceId) : - PlayReadyContentHeader(get_activation_factory().CreateInstanceFromWindowsMediaDrmHeader(headerBytes, licenseAcquisitionUrl, licenseAcquisitionUserInterfaceUrl, customAttributes, domainServiceId)) -{} - -inline PlayReadyContentHeader::PlayReadyContentHeader(GUID contentKeyId, hstring_ref contentKeyIdString, Windows::Media::Protection::PlayReady::PlayReadyEncryptionAlgorithm contentEncryptionAlgorithm, const Windows::Foundation::Uri & licenseAcquisitionUrl, const Windows::Foundation::Uri & licenseAcquisitionUserInterfaceUrl, hstring_ref customAttributes, GUID domainServiceId) : - PlayReadyContentHeader(get_activation_factory().CreateInstanceFromComponents(contentKeyId, contentKeyIdString, contentEncryptionAlgorithm, licenseAcquisitionUrl, licenseAcquisitionUserInterfaceUrl, customAttributes, domainServiceId)) -{} - -inline PlayReadyContentHeader::PlayReadyContentHeader(array_ref headerBytes) : - PlayReadyContentHeader(get_activation_factory().CreateInstanceFromPlayReadyHeader(headerBytes)) -{} - -inline PlayReadyContentHeader::PlayReadyContentHeader(uint32_t dwFlags, array_ref contentKeyIds, array_ref contentKeyIdStrings, Windows::Media::Protection::PlayReady::PlayReadyEncryptionAlgorithm contentEncryptionAlgorithm, const Windows::Foundation::Uri & licenseAcquisitionUrl, const Windows::Foundation::Uri & licenseAcquisitionUserInterfaceUrl, hstring_ref customAttributes, GUID domainServiceId) : - PlayReadyContentHeader(get_activation_factory().CreateInstanceFromComponents2(dwFlags, contentKeyIds, contentKeyIdStrings, contentEncryptionAlgorithm, licenseAcquisitionUrl, licenseAcquisitionUserInterfaceUrl, customAttributes, domainServiceId)) -{} - -inline Windows::Media::Protection::PlayReady::IPlayReadyServiceRequest PlayReadyContentResolver::ServiceRequest(const Windows::Media::Protection::PlayReady::PlayReadyContentHeader & contentHeader) -{ - return get_activation_factory().ServiceRequest(contentHeader); -} - -inline PlayReadyDomainIterable::PlayReadyDomainIterable(GUID domainAccountId) : - PlayReadyDomainIterable(get_activation_factory().CreateInstance(domainAccountId)) -{} - -inline PlayReadyDomainJoinServiceRequest::PlayReadyDomainJoinServiceRequest() : - PlayReadyDomainJoinServiceRequest(activate_instance()) -{} - -inline PlayReadyDomainLeaveServiceRequest::PlayReadyDomainLeaveServiceRequest() : - PlayReadyDomainLeaveServiceRequest(activate_instance()) -{} - -inline PlayReadyITADataGenerator::PlayReadyITADataGenerator() : - PlayReadyITADataGenerator(activate_instance()) -{} - -inline PlayReadyIndividualizationServiceRequest::PlayReadyIndividualizationServiceRequest() : - PlayReadyIndividualizationServiceRequest(activate_instance()) -{} - -inline PlayReadyLicenseAcquisitionServiceRequest::PlayReadyLicenseAcquisitionServiceRequest() : - PlayReadyLicenseAcquisitionServiceRequest(activate_instance()) -{} - -inline PlayReadyLicenseIterable::PlayReadyLicenseIterable() : - PlayReadyLicenseIterable(activate_instance()) -{} - -inline PlayReadyLicenseIterable::PlayReadyLicenseIterable(const Windows::Media::Protection::PlayReady::PlayReadyContentHeader & contentHeader, bool fullyEvaluated) : - PlayReadyLicenseIterable(get_activation_factory().CreateInstance(contentHeader, fullyEvaluated)) -{} - -inline Windows::Foundation::IAsyncAction PlayReadyLicenseManagement::DeleteLicenses(const Windows::Media::Protection::PlayReady::PlayReadyContentHeader & contentHeader) -{ - return get_activation_factory().DeleteLicenses(contentHeader); -} - -inline PlayReadyLicenseSession::PlayReadyLicenseSession(const Windows::Foundation::Collections::IPropertySet & configuration) : - PlayReadyLicenseSession(get_activation_factory().CreateInstance(configuration)) -{} - -inline PlayReadyMeteringReportServiceRequest::PlayReadyMeteringReportServiceRequest() : - PlayReadyMeteringReportServiceRequest(activate_instance()) -{} - -inline PlayReadyRevocationServiceRequest::PlayReadyRevocationServiceRequest() : - PlayReadyRevocationServiceRequest(activate_instance()) -{} - -inline PlayReadySecureStopIterable::PlayReadySecureStopIterable(array_ref publisherCertBytes) : - PlayReadySecureStopIterable(get_activation_factory().CreateInstance(publisherCertBytes)) -{} - -inline PlayReadySecureStopServiceRequest::PlayReadySecureStopServiceRequest(array_ref publisherCertBytes) : - PlayReadySecureStopServiceRequest(get_activation_factory().CreateInstance(publisherCertBytes)) -{} - -inline PlayReadySecureStopServiceRequest::PlayReadySecureStopServiceRequest(GUID sessionID, array_ref publisherCertBytes) : - PlayReadySecureStopServiceRequest(get_activation_factory().CreateInstanceFromSessionID(sessionID, publisherCertBytes)) -{} - -inline GUID PlayReadyStatics::DomainJoinServiceRequestType() -{ - return get_activation_factory().DomainJoinServiceRequestType(); -} - -inline GUID PlayReadyStatics::DomainLeaveServiceRequestType() -{ - return get_activation_factory().DomainLeaveServiceRequestType(); -} - -inline GUID PlayReadyStatics::IndividualizationServiceRequestType() -{ - return get_activation_factory().IndividualizationServiceRequestType(); -} - -inline GUID PlayReadyStatics::LicenseAcquirerServiceRequestType() -{ - return get_activation_factory().LicenseAcquirerServiceRequestType(); -} - -inline GUID PlayReadyStatics::MeteringReportServiceRequestType() -{ - return get_activation_factory().MeteringReportServiceRequestType(); -} - -inline GUID PlayReadyStatics::RevocationServiceRequestType() -{ - return get_activation_factory().RevocationServiceRequestType(); -} - -inline GUID PlayReadyStatics::MediaProtectionSystemId() -{ - return get_activation_factory().MediaProtectionSystemId(); -} - -inline uint32_t PlayReadyStatics::PlayReadySecurityVersion() -{ - return get_activation_factory().PlayReadySecurityVersion(); -} - -inline uint32_t PlayReadyStatics::PlayReadyCertificateSecurityLevel() -{ - return get_activation_factory().PlayReadyCertificateSecurityLevel(); -} - -inline GUID PlayReadyStatics::SecureStopServiceRequestType() -{ - return get_activation_factory().SecureStopServiceRequestType(); -} - -inline bool PlayReadyStatics::CheckSupportedHardware(Windows::Media::Protection::PlayReady::PlayReadyHardwareDRMFeatures hwdrmFeature) -{ - return get_activation_factory().CheckSupportedHardware(hwdrmFeature); -} - -inline hstring PlayReadyStatics::InputTrustAuthorityToCreate() -{ - return get_activation_factory().InputTrustAuthorityToCreate(); -} - -inline GUID PlayReadyStatics::ProtectionSystemId() -{ - return get_activation_factory().ProtectionSystemId(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Protection.h b/10.0.14393.0/winrt/Windows.Media.Protection.h deleted file mode 100644 index d80a474e5..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Protection.h +++ /dev/null @@ -1,777 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.Playback.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Media.Protection.3.h" -#include "Windows.Media.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Media::Protection { - -template ComponentLoadFailedEventHandler::ComponentLoadFailedEventHandler(L lambda) : - ComponentLoadFailedEventHandler(impl::make_delegate, ComponentLoadFailedEventHandler>(std::forward(lambda))) -{} - -template ComponentLoadFailedEventHandler::ComponentLoadFailedEventHandler(F * function) : - ComponentLoadFailedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template ComponentLoadFailedEventHandler::ComponentLoadFailedEventHandler(O * object, M method) : - ComponentLoadFailedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void ComponentLoadFailedEventHandler::operator()(const Windows::Media::Protection::MediaProtectionManager & sender, const Windows::Media::Protection::ComponentLoadFailedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template RebootNeededEventHandler::RebootNeededEventHandler(L lambda) : - RebootNeededEventHandler(impl::make_delegate, RebootNeededEventHandler>(std::forward(lambda))) -{} - -template RebootNeededEventHandler::RebootNeededEventHandler(F * function) : - RebootNeededEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template RebootNeededEventHandler::RebootNeededEventHandler(O * object, M method) : - RebootNeededEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void RebootNeededEventHandler::operator()(const Windows::Media::Protection::MediaProtectionManager & sender) const -{ - check_hresult((*this)->abi_Invoke(get(sender))); -} - -template ServiceRequestedEventHandler::ServiceRequestedEventHandler(L lambda) : - ServiceRequestedEventHandler(impl::make_delegate, ServiceRequestedEventHandler>(std::forward(lambda))) -{} - -template ServiceRequestedEventHandler::ServiceRequestedEventHandler(F * function) : - ServiceRequestedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template ServiceRequestedEventHandler::ServiceRequestedEventHandler(O * object, M method) : - ServiceRequestedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void ServiceRequestedEventHandler::operator()(const Windows::Media::Protection::MediaProtectionManager & sender, const Windows::Media::Protection::ServiceRequestedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Information(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Information()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Completion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Completion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RenewSystemComponentsAsync(abi_arg_in information, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RenewSystemComponentsAsync(*reinterpret_cast(&information))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsEffectiveProtectionAtLeast(Windows::Media::Protection::HdcpProtection protection, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEffectiveProtectionAtLeast(protection)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEffectiveProtection(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetEffectiveProtection()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDesiredMinProtectionAsync(Windows::Media::Protection::HdcpProtection protection, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SetDesiredMinProtectionAsync(protection)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ProtectionChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ProtectionChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ProtectionChanged(event_token token) noexcept override - { - try - { - this->shim().ProtectionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ServiceRequested(abi_arg_in handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ServiceRequested(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ServiceRequested(event_token cookie) noexcept override - { - try - { - this->shim().ServiceRequested(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RebootNeeded(abi_arg_in handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().RebootNeeded(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RebootNeeded(event_token cookie) noexcept override - { - try - { - this->shim().RebootNeeded(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ComponentLoadFailed(abi_arg_in handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ComponentLoadFailed(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ComponentLoadFailed(event_token cookie) noexcept override - { - try - { - this->shim().ComponentLoadFailed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Properties(abi_arg_out ppProperties) noexcept override - { - try - { - *ppProperties = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *ppProperties = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreatePMPServer(abi_arg_in pProperties, abi_arg_out ppObject) noexcept override - { - try - { - *ppObject = detach(this->shim().CreatePMPServer(*reinterpret_cast(&pProperties))); - return S_OK; - } - catch (...) - { - *ppObject = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete(bool success) noexcept override - { - try - { - this->shim().Complete(success); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProtectionSystem(GUID * system) noexcept override - { - try - { - *system = detach(this->shim().ProtectionSystem()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(GUID * type) noexcept override - { - try - { - *type = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsTypeSupported(abi_arg_in type, abi_arg_in keySystem, Windows::Media::Protection::ProtectionCapabilityResult * value) noexcept override - { - try - { - *value = detach(this->shim().IsTypeSupported(*reinterpret_cast(&type), *reinterpret_cast(&keySystem))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Items(abi_arg_out> items) noexcept override - { - try - { - *items = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *items = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reasons(Windows::Media::Protection::RevocationAndRenewalReasons * reasons) noexcept override - { - try - { - *reasons = detach(this->shim().Reasons()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderHash(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderHash()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PublicKeyHash(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PublicKeyHash()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out name) noexcept override - { - try - { - *name = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *name = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RenewalId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RenewalId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Completion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Completion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MediaPlaybackItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaPlaybackItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Protection { - -template event_token impl_IMediaProtectionManager::ServiceRequested(const Windows::Media::Protection::ServiceRequestedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ServiceRequested(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaProtectionManager::ServiceRequested(auto_revoke_t, const Windows::Media::Protection::ServiceRequestedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Protection::IMediaProtectionManager::remove_ServiceRequested, ServiceRequested(handler)); -} - -template void impl_IMediaProtectionManager::ServiceRequested(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ServiceRequested(cookie)); -} - -template event_token impl_IMediaProtectionManager::RebootNeeded(const Windows::Media::Protection::RebootNeededEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_RebootNeeded(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaProtectionManager::RebootNeeded(auto_revoke_t, const Windows::Media::Protection::RebootNeededEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Protection::IMediaProtectionManager::remove_RebootNeeded, RebootNeeded(handler)); -} - -template void impl_IMediaProtectionManager::RebootNeeded(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RebootNeeded(cookie)); -} - -template event_token impl_IMediaProtectionManager::ComponentLoadFailed(const Windows::Media::Protection::ComponentLoadFailedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ComponentLoadFailed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaProtectionManager::ComponentLoadFailed(auto_revoke_t, const Windows::Media::Protection::ComponentLoadFailedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Protection::IMediaProtectionManager::remove_ComponentLoadFailed, ComponentLoadFailed(handler)); -} - -template void impl_IMediaProtectionManager::ComponentLoadFailed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ComponentLoadFailed(cookie)); -} - -template Windows::Foundation::Collections::IPropertySet impl_IMediaProtectionManager::Properties() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template void impl_IMediaProtectionServiceCompletion::Complete(bool success) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete(success)); -} - -template Windows::Media::Protection::IMediaProtectionServiceRequest impl_IServiceRequestedEventArgs::Request() const -{ - Windows::Media::Protection::IMediaProtectionServiceRequest value; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Media::Protection::MediaProtectionServiceCompletion impl_IServiceRequestedEventArgs::Completion() const -{ - Windows::Media::Protection::MediaProtectionServiceCompletion value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Completion(put(value))); - return value; -} - -template GUID impl_IMediaProtectionServiceRequest::ProtectionSystem() const -{ - GUID system {}; - check_hresult(static_cast(static_cast(*this))->get_ProtectionSystem(&system)); - return system; -} - -template GUID impl_IMediaProtectionServiceRequest::Type() const -{ - GUID type {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&type)); - return type; -} - -template Windows::Media::Playback::MediaPlaybackItem impl_IServiceRequestedEventArgs2::MediaPlaybackItem() const -{ - Windows::Media::Playback::MediaPlaybackItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaPlaybackItem(put(value))); - return value; -} - -template Windows::Media::Protection::RevocationAndRenewalInformation impl_IComponentLoadFailedEventArgs::Information() const -{ - Windows::Media::Protection::RevocationAndRenewalInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Information(put(value))); - return value; -} - -template Windows::Media::Protection::MediaProtectionServiceCompletion impl_IComponentLoadFailedEventArgs::Completion() const -{ - Windows::Media::Protection::MediaProtectionServiceCompletion value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Completion(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IRevocationAndRenewalInformation::Items() const -{ - Windows::Foundation::Collections::IVector items; - check_hresult(static_cast(static_cast(*this))->get_Items(put(items))); - return items; -} - -template Windows::Media::Protection::RevocationAndRenewalReasons impl_IRevocationAndRenewalItem::Reasons() const -{ - Windows::Media::Protection::RevocationAndRenewalReasons reasons {}; - check_hresult(static_cast(static_cast(*this))->get_Reasons(&reasons)); - return reasons; -} - -template hstring impl_IRevocationAndRenewalItem::HeaderHash() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HeaderHash(put(value))); - return value; -} - -template hstring impl_IRevocationAndRenewalItem::PublicKeyHash() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PublicKeyHash(put(value))); - return value; -} - -template hstring impl_IRevocationAndRenewalItem::Name() const -{ - hstring name; - check_hresult(static_cast(static_cast(*this))->get_Name(put(name))); - return name; -} - -template hstring impl_IRevocationAndRenewalItem::RenewalId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RenewalId(put(value))); - return value; -} - -template Windows::Media::Protection::MediaProtectionPMPServer impl_IMediaProtectionPMPServerFactory::CreatePMPServer(const Windows::Foundation::Collections::IPropertySet & pProperties) const -{ - Windows::Media::Protection::MediaProtectionPMPServer ppObject { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePMPServer(get(pProperties), put(ppObject))); - return ppObject; -} - -template Windows::Foundation::Collections::IPropertySet impl_IMediaProtectionPMPServer::Properties() const -{ - Windows::Foundation::Collections::IPropertySet ppProperties; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(ppProperties))); - return ppProperties; -} - -template Windows::Media::Protection::ProtectionCapabilityResult impl_IProtectionCapabilities::IsTypeSupported(hstring_ref type, hstring_ref keySystem) const -{ - Windows::Media::Protection::ProtectionCapabilityResult value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsTypeSupported(get(type), get(keySystem), &value)); - return value; -} - -template bool impl_IHdcpSession::IsEffectiveProtectionAtLeast(Windows::Media::Protection::HdcpProtection protection) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEffectiveProtectionAtLeast(protection, &value)); - return value; -} - -template Windows::Foundation::IReference impl_IHdcpSession::GetEffectiveProtection() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->abi_GetEffectiveProtection(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IHdcpSession::SetDesiredMinProtectionAsync(Windows::Media::Protection::HdcpProtection protection) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_SetDesiredMinProtectionAsync(protection, put(value))); - return value; -} - -template event_token impl_IHdcpSession::ProtectionChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ProtectionChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IHdcpSession::ProtectionChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Protection::IHdcpSession::remove_ProtectionChanged, ProtectionChanged(handler)); -} - -template void impl_IHdcpSession::ProtectionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ProtectionChanged(token)); -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IComponentRenewalStatics::RenewSystemComponentsAsync(const Windows::Media::Protection::RevocationAndRenewalInformation & information) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_RenewSystemComponentsAsync(get(information), put(operation))); - return operation; -} - -inline Windows::Foundation::IAsyncOperationWithProgress ComponentRenewal::RenewSystemComponentsAsync(const Windows::Media::Protection::RevocationAndRenewalInformation & information) -{ - return get_activation_factory().RenewSystemComponentsAsync(information); -} - -inline HdcpSession::HdcpSession() : - HdcpSession(activate_instance()) -{} - -inline MediaProtectionManager::MediaProtectionManager() : - MediaProtectionManager(activate_instance()) -{} - -inline MediaProtectionPMPServer::MediaProtectionPMPServer(const Windows::Foundation::Collections::IPropertySet & pProperties) : - MediaProtectionPMPServer(get_activation_factory().CreatePMPServer(pProperties)) -{} - -inline ProtectionCapabilities::ProtectionCapabilities() : - ProtectionCapabilities(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Render.h b/10.0.14393.0/winrt/Windows.Media.Render.h deleted file mode 100644 index a6f4133d7..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Render.h +++ /dev/null @@ -1,15 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Media.Render.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.SpeechRecognition.h b/10.0.14393.0/winrt/Windows.Media.SpeechRecognition.h deleted file mode 100644 index 58810b84f..000000000 --- a/10.0.14393.0/winrt/Windows.Media.SpeechRecognition.h +++ /dev/null @@ -1,1944 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Globalization.3.h" -#include "internal/Windows.Media.SpeechRecognition.3.h" -#include "Windows.Media.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Media::SpeechRecognition::SpeechRecognitionResultStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Result(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Result()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AutoStopSilenceTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutoStopSilenceTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoStopSilenceTimeout(abi_arg_in value) noexcept override - { - try - { - this->shim().AutoStopSilenceTimeout(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAsync(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartWithModeAsync(Windows::Media::SpeechRecognition::SpeechContinuousRecognitionMode mode, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartAsync(mode)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopAsync(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StopAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CancelAsync(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CancelAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PauseAsync(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PauseAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Resume() noexcept override - { - try - { - this->shim().Resume(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Completed(abi_arg_in> value, event_token * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Completed(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Completed(event_token value) noexcept override - { - try - { - this->shim().Completed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ResultGenerated(abi_arg_in> value, event_token * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ResultGenerated(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ResultGenerated(event_token value) noexcept override - { - try - { - this->shim().ResultGenerated(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Media::SpeechRecognition::SpeechRecognitionResultStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsEnabled(bool value) noexcept override - { - try - { - this->shim().IsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Tag(abi_arg_in value) noexcept override - { - try - { - this->shim().Tag(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::Media::SpeechRecognition::SpeechRecognitionConstraintType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Probability(Windows::Media::SpeechRecognition::SpeechRecognitionConstraintProbability * value) noexcept override - { - try - { - *value = detach(this->shim().Probability()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Probability(Windows::Media::SpeechRecognition::SpeechRecognitionConstraintProbability value) noexcept override - { - try - { - this->shim().Probability(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GrammarFile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GrammarFile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in file, abi_arg_out constraint) noexcept override - { - try - { - *constraint = detach(this->shim().Create(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *constraint = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithTag(abi_arg_in file, abi_arg_in tag, abi_arg_out constraint) noexcept override - { - try - { - *constraint = detach(this->shim().CreateWithTag(*reinterpret_cast(&file), *reinterpret_cast(&tag))); - return S_OK; - } - catch (...) - { - *constraint = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Hypothesis(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Hypothesis()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Commands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Commands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in> commands, abi_arg_out constraint) noexcept override - { - try - { - *constraint = detach(this->shim().Create(*reinterpret_cast *>(&commands))); - return S_OK; - } - catch (...) - { - *constraint = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithTag(abi_arg_in> commands, abi_arg_in tag, abi_arg_out constraint) noexcept override - { - try - { - *constraint = detach(this->shim().CreateWithTag(*reinterpret_cast *>(&commands), *reinterpret_cast(&tag))); - return S_OK; - } - catch (...) - { - *constraint = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Problem(Windows::Media::SpeechRecognition::SpeechRecognitionAudioProblem * value) noexcept override - { - try - { - *value = detach(this->shim().Problem()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Media::SpeechRecognition::SpeechRecognitionResultStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Confidence(Windows::Media::SpeechRecognition::SpeechRecognitionConfidence * value) noexcept override - { - try - { - *value = detach(this->shim().Confidence()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SemanticInterpretation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SemanticInterpretation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlternates(uint32_t maxAlternates, abi_arg_out> alternates) noexcept override - { - try - { - *alternates = detach(this->shim().GetAlternates(maxAlternates)); - return S_OK; - } - catch (...) - { - *alternates = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Constraint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Constraint()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RulePath(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RulePath()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawConfidence(double * value) noexcept override - { - try - { - *value = detach(this->shim().RawConfidence()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PhraseStartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhraseStartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhraseDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhraseDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Properties(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Scenario(Windows::Media::SpeechRecognition::SpeechRecognitionScenario * value) noexcept override - { - try - { - *value = detach(this->shim().Scenario()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TopicHint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TopicHint()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::Media::SpeechRecognition::SpeechRecognitionScenario scenario, abi_arg_in topicHint, abi_arg_out constraint) noexcept override - { - try - { - *constraint = detach(this->shim().Create(scenario, *reinterpret_cast(&topicHint))); - return S_OK; - } - catch (...) - { - *constraint = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithTag(Windows::Media::SpeechRecognition::SpeechRecognitionScenario scenario, abi_arg_in topicHint, abi_arg_in tag, abi_arg_out constraint) noexcept override - { - try - { - *constraint = detach(this->shim().CreateWithTag(scenario, *reinterpret_cast(&topicHint), *reinterpret_cast(&tag))); - return S_OK; - } - catch (...) - { - *constraint = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentLanguage(abi_arg_out language) noexcept override - { - try - { - *language = detach(this->shim().CurrentLanguage()); - return S_OK; - } - catch (...) - { - *language = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Constraints(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Constraints()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timeouts(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timeouts()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UIOptions(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UIOptions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CompileConstraintsAsync(abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().CompileConstraintsAsync()); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RecognizeAsync(abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().RecognizeAsync()); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RecognizeWithUIAsync(abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().RecognizeWithUIAsync()); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RecognitionQualityDegrading(abi_arg_in> speechRecognitionQualityDegradingHandler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().RecognitionQualityDegrading(*reinterpret_cast *>(&speechRecognitionQualityDegradingHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RecognitionQualityDegrading(event_token cookie) noexcept override - { - try - { - this->shim().RecognitionQualityDegrading(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StateChanged(abi_arg_in> stateChangedHandler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().StateChanged(*reinterpret_cast *>(&stateChangedHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StateChanged(event_token cookie) noexcept override - { - try - { - this->shim().StateChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContinuousRecognitionSession(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContinuousRecognitionSession()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(Windows::Media::SpeechRecognition::SpeechRecognizerState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopRecognitionAsync(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StopRecognitionAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_HypothesisGenerated(abi_arg_in> value, event_token * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().HypothesisGenerated(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HypothesisGenerated(event_token value) noexcept override - { - try - { - this->shim().HypothesisGenerated(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in language, abi_arg_out recognizer) noexcept override - { - try - { - *recognizer = detach(this->shim().Create(*reinterpret_cast(&language))); - return S_OK; - } - catch (...) - { - *recognizer = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_State(Windows::Media::SpeechRecognition::SpeechRecognizerState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SystemSpeechLanguage(abi_arg_out language) noexcept override - { - try - { - *language = detach(this->shim().SystemSpeechLanguage()); - return S_OK; - } - catch (...) - { - *language = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedTopicLanguages(abi_arg_out> languages) noexcept override - { - try - { - *languages = detach(this->shim().SupportedTopicLanguages()); - return S_OK; - } - catch (...) - { - *languages = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedGrammarLanguages(abi_arg_out> languages) noexcept override - { - try - { - *languages = detach(this->shim().SupportedGrammarLanguages()); - return S_OK; - } - catch (...) - { - *languages = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InitialSilenceTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InitialSilenceTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InitialSilenceTimeout(abi_arg_in value) noexcept override - { - try - { - this->shim().InitialSilenceTimeout(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndSilenceTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EndSilenceTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EndSilenceTimeout(abi_arg_in value) noexcept override - { - try - { - this->shim().EndSilenceTimeout(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BabbleTimeout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BabbleTimeout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BabbleTimeout(abi_arg_in value) noexcept override - { - try - { - this->shim().BabbleTimeout(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExampleText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExampleText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExampleText(abi_arg_in value) noexcept override - { - try - { - this->shim().ExampleText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudiblePrompt(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudiblePrompt()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudiblePrompt(abi_arg_in value) noexcept override - { - try - { - this->shim().AudiblePrompt(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsReadBackEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReadBackEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsReadBackEnabled(bool value) noexcept override - { - try - { - this->shim().IsReadBackEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowConfirmation(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowConfirmation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShowConfirmation(bool value) noexcept override - { - try - { - this->shim().ShowConfirmation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_InstallCommandSetsFromStorageFileAsync(abi_arg_in file, abi_arg_out installAction) noexcept override - { - try - { - *installAction = detach(this->shim().InstallCommandSetsFromStorageFileAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *installAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstalledCommandSets(abi_arg_out> voiceCommandSets) noexcept override - { - try - { - *voiceCommandSets = detach(this->shim().InstalledCommandSets()); - return S_OK; - } - catch (...) - { - *voiceCommandSets = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPhraseListAsync(abi_arg_in phraseListName, abi_arg_in> phraseList, abi_arg_out updateAction) noexcept override - { - try - { - *updateAction = detach(this->shim().SetPhraseListAsync(*reinterpret_cast(&phraseListName), *reinterpret_cast *>(&phraseList))); - return S_OK; - } - catch (...) - { - *updateAction = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::SpeechRecognition { - -template Windows::Media::SpeechRecognition::SpeechRecognitionResultStatus impl_ISpeechRecognitionCompilationResult::Status() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionResultStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_ISpeechRecognizerTimeouts::InitialSilenceTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_InitialSilenceTimeout(put(value))); - return value; -} - -template void impl_ISpeechRecognizerTimeouts::InitialSilenceTimeout(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InitialSilenceTimeout(get(value))); -} - -template Windows::Foundation::TimeSpan impl_ISpeechRecognizerTimeouts::EndSilenceTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_EndSilenceTimeout(put(value))); - return value; -} - -template void impl_ISpeechRecognizerTimeouts::EndSilenceTimeout(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EndSilenceTimeout(get(value))); -} - -template Windows::Foundation::TimeSpan impl_ISpeechRecognizerTimeouts::BabbleTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_BabbleTimeout(put(value))); - return value; -} - -template void impl_ISpeechRecognizerTimeouts::BabbleTimeout(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BabbleTimeout(get(value))); -} - -template hstring impl_ISpeechRecognizerUIOptions::ExampleText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExampleText(put(value))); - return value; -} - -template void impl_ISpeechRecognizerUIOptions::ExampleText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExampleText(get(value))); -} - -template hstring impl_ISpeechRecognizerUIOptions::AudiblePrompt() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AudiblePrompt(put(value))); - return value; -} - -template void impl_ISpeechRecognizerUIOptions::AudiblePrompt(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudiblePrompt(get(value))); -} - -template bool impl_ISpeechRecognizerUIOptions::IsReadBackEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsReadBackEnabled(&value)); - return value; -} - -template void impl_ISpeechRecognizerUIOptions::IsReadBackEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsReadBackEnabled(value)); -} - -template bool impl_ISpeechRecognizerUIOptions::ShowConfirmation() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShowConfirmation(&value)); - return value; -} - -template void impl_ISpeechRecognizerUIOptions::ShowConfirmation(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShowConfirmation(value)); -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionResultStatus impl_ISpeechRecognitionResult::Status() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionResultStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template hstring impl_ISpeechRecognitionResult::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionConfidence impl_ISpeechRecognitionResult::Confidence() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionConfidence value {}; - check_hresult(static_cast(static_cast(*this))->get_Confidence(&value)); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionSemanticInterpretation impl_ISpeechRecognitionResult::SemanticInterpretation() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionSemanticInterpretation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SemanticInterpretation(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISpeechRecognitionResult::GetAlternates(uint32_t maxAlternates) const -{ - Windows::Foundation::Collections::IVectorView alternates; - check_hresult(static_cast(static_cast(*this))->abi_GetAlternates(maxAlternates, put(alternates))); - return alternates; -} - -template Windows::Media::SpeechRecognition::ISpeechRecognitionConstraint impl_ISpeechRecognitionResult::Constraint() const -{ - Windows::Media::SpeechRecognition::ISpeechRecognitionConstraint value; - check_hresult(static_cast(static_cast(*this))->get_Constraint(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISpeechRecognitionResult::RulePath() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_RulePath(put(value))); - return value; -} - -template double impl_ISpeechRecognitionResult::RawConfidence() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_RawConfidence(&value)); - return value; -} - -template bool impl_ISpeechRecognitionConstraint::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_ISpeechRecognitionConstraint::IsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsEnabled(value)); -} - -template hstring impl_ISpeechRecognitionConstraint::Tag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Tag(put(value))); - return value; -} - -template void impl_ISpeechRecognitionConstraint::Tag(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Tag(get(value))); -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionConstraintType impl_ISpeechRecognitionConstraint::Type() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionConstraintType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionConstraintProbability impl_ISpeechRecognitionConstraint::Probability() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionConstraintProbability value {}; - check_hresult(static_cast(static_cast(*this))->get_Probability(&value)); - return value; -} - -template void impl_ISpeechRecognitionConstraint::Probability(Windows::Media::SpeechRecognition::SpeechRecognitionConstraintProbability value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Probability(value)); -} - -template Windows::Foundation::DateTime impl_ISpeechRecognitionResult2::PhraseStartTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_PhraseStartTime(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_ISpeechRecognitionResult2::PhraseDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_PhraseDuration(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView> impl_ISpeechRecognitionSemanticInterpretation::Properties() const -{ - Windows::Foundation::Collections::IMapView> value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionScenario impl_ISpeechRecognitionTopicConstraint::Scenario() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionScenario value {}; - check_hresult(static_cast(static_cast(*this))->get_Scenario(&value)); - return value; -} - -template hstring impl_ISpeechRecognitionTopicConstraint::TopicHint() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TopicHint(put(value))); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionTopicConstraint impl_ISpeechRecognitionTopicConstraintFactory::Create(Windows::Media::SpeechRecognition::SpeechRecognitionScenario scenario, hstring_ref topicHint) const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionTopicConstraint constraint { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(scenario, get(topicHint), put(constraint))); - return constraint; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionTopicConstraint impl_ISpeechRecognitionTopicConstraintFactory::CreateWithTag(Windows::Media::SpeechRecognition::SpeechRecognitionScenario scenario, hstring_ref topicHint, hstring_ref tag) const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionTopicConstraint constraint { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithTag(scenario, get(topicHint), get(tag), put(constraint))); - return constraint; -} - -template Windows::Foundation::Collections::IVector impl_ISpeechRecognitionListConstraint::Commands() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Commands(put(value))); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionListConstraint impl_ISpeechRecognitionListConstraintFactory::Create(const Windows::Foundation::Collections::IIterable & commands) const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionListConstraint constraint { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(commands), put(constraint))); - return constraint; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionListConstraint impl_ISpeechRecognitionListConstraintFactory::CreateWithTag(const Windows::Foundation::Collections::IIterable & commands, hstring_ref tag) const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionListConstraint constraint { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithTag(get(commands), get(tag), put(constraint))); - return constraint; -} - -template Windows::Storage::StorageFile impl_ISpeechRecognitionGrammarFileConstraint::GrammarFile() const -{ - Windows::Storage::StorageFile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GrammarFile(put(value))); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionGrammarFileConstraint impl_ISpeechRecognitionGrammarFileConstraintFactory::Create(const Windows::Storage::StorageFile & file) const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionGrammarFileConstraint constraint { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(file), put(constraint))); - return constraint; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionGrammarFileConstraint impl_ISpeechRecognitionGrammarFileConstraintFactory::CreateWithTag(const Windows::Storage::StorageFile & file, hstring_ref tag) const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionGrammarFileConstraint constraint { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithTag(get(file), get(tag), put(constraint))); - return constraint; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionAudioProblem impl_ISpeechRecognitionQualityDegradingEventArgs::Problem() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionAudioProblem value {}; - check_hresult(static_cast(static_cast(*this))->get_Problem(&value)); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognizerState impl_ISpeechRecognizerStateChangedEventArgs::State() const -{ - Windows::Media::SpeechRecognition::SpeechRecognizerState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template Windows::Globalization::Language impl_ISpeechRecognizer::CurrentLanguage() const -{ - Windows::Globalization::Language language { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentLanguage(put(language))); - return language; -} - -template Windows::Foundation::Collections::IVector impl_ISpeechRecognizer::Constraints() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Constraints(put(value))); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognizerTimeouts impl_ISpeechRecognizer::Timeouts() const -{ - Windows::Media::SpeechRecognition::SpeechRecognizerTimeouts value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Timeouts(put(value))); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognizerUIOptions impl_ISpeechRecognizer::UIOptions() const -{ - Windows::Media::SpeechRecognition::SpeechRecognizerUIOptions value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UIOptions(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISpeechRecognizer::CompileConstraintsAsync() const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_CompileConstraintsAsync(put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ISpeechRecognizer::RecognizeAsync() const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_RecognizeAsync(put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ISpeechRecognizer::RecognizeWithUIAsync() const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_RecognizeWithUIAsync(put(asyncOperation))); - return asyncOperation; -} - -template event_token impl_ISpeechRecognizer::RecognitionQualityDegrading(const Windows::Foundation::TypedEventHandler & speechRecognitionQualityDegradingHandler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_RecognitionQualityDegrading(get(speechRecognitionQualityDegradingHandler), &cookie)); - return cookie; -} - -template event_revoker impl_ISpeechRecognizer::RecognitionQualityDegrading(auto_revoke_t, const Windows::Foundation::TypedEventHandler & speechRecognitionQualityDegradingHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::SpeechRecognition::ISpeechRecognizer::remove_RecognitionQualityDegrading, RecognitionQualityDegrading(speechRecognitionQualityDegradingHandler)); -} - -template void impl_ISpeechRecognizer::RecognitionQualityDegrading(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RecognitionQualityDegrading(cookie)); -} - -template event_token impl_ISpeechRecognizer::StateChanged(const Windows::Foundation::TypedEventHandler & stateChangedHandler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_StateChanged(get(stateChangedHandler), &cookie)); - return cookie; -} - -template event_revoker impl_ISpeechRecognizer::StateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & stateChangedHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::SpeechRecognition::ISpeechRecognizer::remove_StateChanged, StateChanged(stateChangedHandler)); -} - -template void impl_ISpeechRecognizer::StateChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StateChanged(cookie)); -} - -template Windows::Media::SpeechRecognition::SpeechRecognizer impl_ISpeechRecognizerFactory::Create(const Windows::Globalization::Language & language) const -{ - Windows::Media::SpeechRecognition::SpeechRecognizer recognizer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(language), put(recognizer))); - return recognizer; -} - -template Windows::Globalization::Language impl_ISpeechRecognizerStatics::SystemSpeechLanguage() const -{ - Windows::Globalization::Language language { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SystemSpeechLanguage(put(language))); - return language; -} - -template Windows::Foundation::Collections::IVectorView impl_ISpeechRecognizerStatics::SupportedTopicLanguages() const -{ - Windows::Foundation::Collections::IVectorView languages; - check_hresult(static_cast(static_cast(*this))->get_SupportedTopicLanguages(put(languages))); - return languages; -} - -template Windows::Foundation::Collections::IVectorView impl_ISpeechRecognizerStatics::SupportedGrammarLanguages() const -{ - Windows::Foundation::Collections::IVectorView languages; - check_hresult(static_cast(static_cast(*this))->get_SupportedGrammarLanguages(put(languages))); - return languages; -} - -template Windows::Media::SpeechRecognition::SpeechContinuousRecognitionSession impl_ISpeechRecognizer2::ContinuousRecognitionSession() const -{ - Windows::Media::SpeechRecognition::SpeechContinuousRecognitionSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContinuousRecognitionSession(put(value))); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognizerState impl_ISpeechRecognizer2::State() const -{ - Windows::Media::SpeechRecognition::SpeechRecognizerState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ISpeechRecognizer2::StopRecognitionAsync() const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_StopRecognitionAsync(put(value))); - return value; -} - -template event_token impl_ISpeechRecognizer2::HypothesisGenerated(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token returnValue {}; - check_hresult(static_cast(static_cast(*this))->add_HypothesisGenerated(get(value), &returnValue)); - return returnValue; -} - -template event_revoker impl_ISpeechRecognizer2::HypothesisGenerated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::SpeechRecognition::ISpeechRecognizer2::remove_HypothesisGenerated, HypothesisGenerated(value)); -} - -template void impl_ISpeechRecognizer2::HypothesisGenerated(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HypothesisGenerated(value)); -} - -template hstring impl_ISpeechRecognitionHypothesis::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionHypothesis impl_ISpeechRecognitionHypothesisGeneratedEventArgs::Hypothesis() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionHypothesis value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Hypothesis(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_ISpeechContinuousRecognitionSession::AutoStopSilenceTimeout() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoStopSilenceTimeout(put(value))); - return value; -} - -template void impl_ISpeechContinuousRecognitionSession::AutoStopSilenceTimeout(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoStopSilenceTimeout(get(value))); -} - -template Windows::Foundation::IAsyncAction impl_ISpeechContinuousRecognitionSession::StartAsync() const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_StartAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ISpeechContinuousRecognitionSession::StartAsync(Windows::Media::SpeechRecognition::SpeechContinuousRecognitionMode mode) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_StartWithModeAsync(mode, put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ISpeechContinuousRecognitionSession::StopAsync() const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_StopAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ISpeechContinuousRecognitionSession::CancelAsync() const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_CancelAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ISpeechContinuousRecognitionSession::PauseAsync() const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_PauseAsync(put(value))); - return value; -} - -template void impl_ISpeechContinuousRecognitionSession::Resume() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Resume()); -} - -template event_token impl_ISpeechContinuousRecognitionSession::Completed(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token returnValue {}; - check_hresult(static_cast(static_cast(*this))->add_Completed(get(value), &returnValue)); - return returnValue; -} - -template event_revoker impl_ISpeechContinuousRecognitionSession::Completed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::SpeechRecognition::ISpeechContinuousRecognitionSession::remove_Completed, Completed(value)); -} - -template void impl_ISpeechContinuousRecognitionSession::Completed(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Completed(value)); -} - -template event_token impl_ISpeechContinuousRecognitionSession::ResultGenerated(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token returnValue {}; - check_hresult(static_cast(static_cast(*this))->add_ResultGenerated(get(value), &returnValue)); - return returnValue; -} - -template event_revoker impl_ISpeechContinuousRecognitionSession::ResultGenerated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::SpeechRecognition::ISpeechContinuousRecognitionSession::remove_ResultGenerated, ResultGenerated(value)); -} - -template void impl_ISpeechContinuousRecognitionSession::ResultGenerated(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ResultGenerated(value)); -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionResultStatus impl_ISpeechContinuousRecognitionCompletedEventArgs::Status() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionResultStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Media::SpeechRecognition::SpeechRecognitionResult impl_ISpeechContinuousRecognitionResultGeneratedEventArgs::Result() const -{ - Windows::Media::SpeechRecognition::SpeechRecognitionResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Result(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IVoiceCommandManager::InstallCommandSetsFromStorageFileAsync(const Windows::Storage::StorageFile & file) const -{ - Windows::Foundation::IAsyncAction installAction; - check_hresult(static_cast(static_cast(*this))->abi_InstallCommandSetsFromStorageFileAsync(get(file), put(installAction))); - return installAction; -} - -template Windows::Foundation::Collections::IMapView impl_IVoiceCommandManager::InstalledCommandSets() const -{ - Windows::Foundation::Collections::IMapView voiceCommandSets; - check_hresult(static_cast(static_cast(*this))->get_InstalledCommandSets(put(voiceCommandSets))); - return voiceCommandSets; -} - -template hstring impl_IVoiceCommandSet::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template hstring impl_IVoiceCommandSet::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IVoiceCommandSet::SetPhraseListAsync(hstring_ref phraseListName, const Windows::Foundation::Collections::IIterable & phraseList) const -{ - Windows::Foundation::IAsyncAction updateAction; - check_hresult(static_cast(static_cast(*this))->abi_SetPhraseListAsync(get(phraseListName), get(phraseList), put(updateAction))); - return updateAction; -} - -inline SpeechRecognitionGrammarFileConstraint::SpeechRecognitionGrammarFileConstraint(const Windows::Storage::StorageFile & file) : - SpeechRecognitionGrammarFileConstraint(get_activation_factory().Create(file)) -{} - -inline SpeechRecognitionGrammarFileConstraint::SpeechRecognitionGrammarFileConstraint(const Windows::Storage::StorageFile & file, hstring_ref tag) : - SpeechRecognitionGrammarFileConstraint(get_activation_factory().CreateWithTag(file, tag)) -{} - -inline SpeechRecognitionListConstraint::SpeechRecognitionListConstraint(const Windows::Foundation::Collections::IIterable & commands) : - SpeechRecognitionListConstraint(get_activation_factory().Create(commands)) -{} - -inline SpeechRecognitionListConstraint::SpeechRecognitionListConstraint(const Windows::Foundation::Collections::IIterable & commands, hstring_ref tag) : - SpeechRecognitionListConstraint(get_activation_factory().CreateWithTag(commands, tag)) -{} - -inline SpeechRecognitionTopicConstraint::SpeechRecognitionTopicConstraint(Windows::Media::SpeechRecognition::SpeechRecognitionScenario scenario, hstring_ref topicHint) : - SpeechRecognitionTopicConstraint(get_activation_factory().Create(scenario, topicHint)) -{} - -inline SpeechRecognitionTopicConstraint::SpeechRecognitionTopicConstraint(Windows::Media::SpeechRecognition::SpeechRecognitionScenario scenario, hstring_ref topicHint, hstring_ref tag) : - SpeechRecognitionTopicConstraint(get_activation_factory().CreateWithTag(scenario, topicHint, tag)) -{} - -inline SpeechRecognizer::SpeechRecognizer() : - SpeechRecognizer(activate_instance()) -{} - -inline SpeechRecognizer::SpeechRecognizer(const Windows::Globalization::Language & language) : - SpeechRecognizer(get_activation_factory().Create(language)) -{} - -inline Windows::Globalization::Language SpeechRecognizer::SystemSpeechLanguage() -{ - return get_activation_factory().SystemSpeechLanguage(); -} - -inline Windows::Foundation::Collections::IVectorView SpeechRecognizer::SupportedTopicLanguages() -{ - return get_activation_factory().SupportedTopicLanguages(); -} - -inline Windows::Foundation::Collections::IVectorView SpeechRecognizer::SupportedGrammarLanguages() -{ - return get_activation_factory().SupportedGrammarLanguages(); -} - -inline Windows::Foundation::IAsyncAction VoiceCommandManager::InstallCommandSetsFromStorageFileAsync(const Windows::Storage::StorageFile & file) -{ - return get_activation_factory().InstallCommandSetsFromStorageFileAsync(file); -} - -inline Windows::Foundation::Collections::IMapView VoiceCommandManager::InstalledCommandSets() -{ - return get_activation_factory().InstalledCommandSets(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.SpeechSynthesis.h b/10.0.14393.0/winrt/Windows.Media.SpeechSynthesis.h deleted file mode 100644 index 0bfb99266..000000000 --- a/10.0.14393.0/winrt/Windows.Media.SpeechSynthesis.h +++ /dev/null @@ -1,301 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Media.SpeechSynthesis.3.h" -#include "Windows.Media.h" -#include "Windows.Foundation.h" -#include "Windows.Storage.Streams.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllVoices(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AllVoices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultVoice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultVoice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Markers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Markers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SynthesizeTextToStreamAsync(abi_arg_in text, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SynthesizeTextToStreamAsync(*reinterpret_cast(&text))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SynthesizeSsmlToStreamAsync(abi_arg_in Ssml, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SynthesizeSsmlToStreamAsync(*reinterpret_cast(&Ssml))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Voice(abi_arg_in value) noexcept override - { - try - { - this->shim().Voice(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Voice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Voice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gender(Windows::Media::SpeechSynthesis::VoiceGender * value) noexcept override - { - try - { - *value = detach(this->shim().Gender()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::SpeechSynthesis { - -template hstring impl_IVoiceInformation::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IVoiceInformation::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IVoiceInformation::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template hstring impl_IVoiceInformation::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template Windows::Media::SpeechSynthesis::VoiceGender impl_IVoiceInformation::Gender() const -{ - Windows::Media::SpeechSynthesis::VoiceGender value {}; - check_hresult(static_cast(static_cast(*this))->get_Gender(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IInstalledVoicesStatic::AllVoices() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AllVoices(put(value))); - return value; -} - -template Windows::Media::SpeechSynthesis::VoiceInformation impl_IInstalledVoicesStatic::DefaultVoice() const -{ - Windows::Media::SpeechSynthesis::VoiceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DefaultVoice(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISpeechSynthesisStream::Markers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Markers(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISpeechSynthesizer::SynthesizeTextToStreamAsync(hstring_ref text) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SynthesizeTextToStreamAsync(get(text), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISpeechSynthesizer::SynthesizeSsmlToStreamAsync(hstring_ref Ssml) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SynthesizeSsmlToStreamAsync(get(Ssml), put(operation))); - return operation; -} - -template void impl_ISpeechSynthesizer::Voice(const Windows::Media::SpeechSynthesis::VoiceInformation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Voice(get(value))); -} - -template Windows::Media::SpeechSynthesis::VoiceInformation impl_ISpeechSynthesizer::Voice() const -{ - Windows::Media::SpeechSynthesis::VoiceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Voice(put(value))); - return value; -} - -inline SpeechSynthesizer::SpeechSynthesizer() : - SpeechSynthesizer(activate_instance()) -{} - -inline Windows::Foundation::Collections::IVectorView SpeechSynthesizer::AllVoices() -{ - return get_activation_factory().AllVoices(); -} - -inline Windows::Media::SpeechSynthesis::VoiceInformation SpeechSynthesizer::DefaultVoice() -{ - return get_activation_factory().DefaultVoice(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Streaming.Adaptive.h b/10.0.14393.0/winrt/Windows.Media.Streaming.Adaptive.h deleted file mode 100644 index c84d61a01..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Streaming.Adaptive.h +++ /dev/null @@ -1,1655 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Web.Http.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Media.Streaming.Adaptive.3.h" -#include "Windows.Media.h" -#include "Windows.Media.Core.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsLive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsLive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredLiveOffset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DesiredLiveOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredLiveOffset(abi_arg_in value) noexcept override - { - try - { - this->shim().DesiredLiveOffset(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InitialBitrate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InitialBitrate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InitialBitrate(uint32_t value) noexcept override - { - try - { - this->shim().InitialBitrate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentDownloadBitrate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentDownloadBitrate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentPlaybackBitrate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentPlaybackBitrate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AvailableBitrates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AvailableBitrates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredMinBitrate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DesiredMinBitrate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredMinBitrate(abi_arg_in> value) noexcept override - { - try - { - this->shim().DesiredMinBitrate(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredMaxBitrate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DesiredMaxBitrate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredMaxBitrate(abi_arg_in> value) noexcept override - { - try - { - this->shim().DesiredMaxBitrate(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioOnlyPlayback(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AudioOnlyPlayback()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InboundBitsPerSecond(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().InboundBitsPerSecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InboundBitsPerSecondWindow(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InboundBitsPerSecondWindow()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InboundBitsPerSecondWindow(abi_arg_in value) noexcept override - { - try - { - this->shim().InboundBitsPerSecondWindow(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DownloadBitrateChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DownloadBitrateChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DownloadBitrateChanged(event_token token) noexcept override - { - try - { - this->shim().DownloadBitrateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PlaybackBitrateChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PlaybackBitrateChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PlaybackBitrateChanged(event_token token) noexcept override - { - try - { - this->shim().PlaybackBitrateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DownloadRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DownloadRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DownloadRequested(event_token token) noexcept override - { - try - { - this->shim().DownloadRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DownloadCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DownloadCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DownloadCompleted(event_token token) noexcept override - { - try - { - this->shim().DownloadCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DownloadFailed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DownloadFailed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DownloadFailed(event_token token) noexcept override - { - try - { - this->shim().DownloadFailed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AdvancedSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdvancedSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllSegmentsIndependent(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllSegmentsIndependent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllSegmentsIndependent(bool value) noexcept override - { - try - { - this->shim().AllSegmentsIndependent(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredBitrateHeadroomRatio(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DesiredBitrateHeadroomRatio()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredBitrateHeadroomRatio(abi_arg_in> value) noexcept override - { - try - { - this->shim().DesiredBitrateHeadroomRatio(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitrateDowngradeTriggerRatio(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BitrateDowngradeTriggerRatio()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BitrateDowngradeTriggerRatio(abi_arg_in> value) noexcept override - { - try - { - this->shim().BitrateDowngradeTriggerRatio(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceCreationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HttpResponseMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HttpResponseMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OldValue(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OldValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewValue(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NewValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResourceType(Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceResourceType * value) noexcept override - { - try - { - *value = detach(this->shim().ResourceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResourceUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceByteRangeOffset(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ResourceByteRangeOffset()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceByteRangeLength(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ResourceByteRangeLength()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HttpResponseMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HttpResponseMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResourceType(Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceResourceType * value) noexcept override - { - try - { - *value = detach(this->shim().ResourceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResourceUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceByteRangeOffset(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ResourceByteRangeOffset()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceByteRangeLength(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ResourceByteRangeLength()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HttpResponseMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HttpResponseMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResourceType(Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceResourceType * value) noexcept override - { - try - { - *value = detach(this->shim().ResourceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResourceUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceByteRangeOffset(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ResourceByteRangeOffset()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceByteRangeLength(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ResourceByteRangeLength()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Result(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Result()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResourceUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResourceUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ResourceUri(abi_arg_in value) noexcept override - { - try - { - this->shim().ResourceUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InputStream(abi_arg_in value) noexcept override - { - try - { - this->shim().InputStream(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Buffer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Buffer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Buffer(abi_arg_in value) noexcept override - { - try - { - this->shim().Buffer(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentType(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentType(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedStatus(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExtendedStatus(uint32_t value) noexcept override - { - try - { - this->shim().ExtendedStatus(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResourceByteRangeOffset(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ResourceByteRangeOffset()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ResourceByteRangeOffset(abi_arg_in> value) noexcept override - { - try - { - this->shim().ResourceByteRangeOffset(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResourceByteRangeLength(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ResourceByteRangeLength()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ResourceByteRangeLength(abi_arg_in> value) noexcept override - { - try - { - this->shim().ResourceByteRangeLength(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OldValue(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OldValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewValue(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NewValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AudioOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsContentTypeSupported(abi_arg_in contentType, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsContentTypeSupported(*reinterpret_cast(&contentType))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromUriAsync(abi_arg_in uri, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromUriAsync(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromUriWithDownloaderAsync(abi_arg_in uri, abi_arg_in httpClient, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromUriAsync(*reinterpret_cast(&uri), *reinterpret_cast(&httpClient))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromStreamAsync(abi_arg_in stream, abi_arg_in uri, abi_arg_in contentType, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromStreamAsync(*reinterpret_cast(&stream), *reinterpret_cast(&uri), *reinterpret_cast(&contentType))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromStreamWithDownloaderAsync(abi_arg_in stream, abi_arg_in uri, abi_arg_in contentType, abi_arg_in httpClient, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromStreamAsync(*reinterpret_cast(&stream), *reinterpret_cast(&uri), *reinterpret_cast(&contentType), *reinterpret_cast(&httpClient))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Streaming::Adaptive { - -template Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceCreationStatus impl_IAdaptiveMediaSourceCreationResult::Status() const -{ - Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceCreationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Media::Streaming::Adaptive::AdaptiveMediaSource impl_IAdaptiveMediaSourceCreationResult::MediaSource() const -{ - Windows::Media::Streaming::Adaptive::AdaptiveMediaSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaSource(put(value))); - return value; -} - -template Windows::Web::Http::HttpResponseMessage impl_IAdaptiveMediaSourceCreationResult::HttpResponseMessage() const -{ - Windows::Web::Http::HttpResponseMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HttpResponseMessage(put(value))); - return value; -} - -template bool impl_IAdaptiveMediaSourceStatics::IsContentTypeSupported(hstring_ref contentType) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsContentTypeSupported(get(contentType), &result)); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAdaptiveMediaSourceStatics::CreateFromUriAsync(const Windows::Foundation::Uri & uri) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromUriAsync(get(uri), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAdaptiveMediaSourceStatics::CreateFromUriAsync(const Windows::Foundation::Uri & uri, const Windows::Web::Http::HttpClient & httpClient) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromUriWithDownloaderAsync(get(uri), get(httpClient), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAdaptiveMediaSourceStatics::CreateFromStreamAsync(const Windows::Storage::Streams::IInputStream & stream, const Windows::Foundation::Uri & uri, hstring_ref contentType) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromStreamAsync(get(stream), get(uri), get(contentType), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IAdaptiveMediaSourceStatics::CreateFromStreamAsync(const Windows::Storage::Streams::IInputStream & stream, const Windows::Foundation::Uri & uri, hstring_ref contentType, const Windows::Web::Http::HttpClient & httpClient) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromStreamWithDownloaderAsync(get(stream), get(uri), get(contentType), get(httpClient), put(result))); - return result; -} - -template bool impl_IAdaptiveMediaSource::IsLive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsLive(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IAdaptiveMediaSource::DesiredLiveOffset() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredLiveOffset(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSource::DesiredLiveOffset(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredLiveOffset(get(value))); -} - -template uint32_t impl_IAdaptiveMediaSource::InitialBitrate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InitialBitrate(&value)); - return value; -} - -template void impl_IAdaptiveMediaSource::InitialBitrate(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InitialBitrate(value)); -} - -template uint32_t impl_IAdaptiveMediaSource::CurrentDownloadBitrate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentDownloadBitrate(&value)); - return value; -} - -template uint32_t impl_IAdaptiveMediaSource::CurrentPlaybackBitrate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentPlaybackBitrate(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAdaptiveMediaSource::AvailableBitrates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AvailableBitrates(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSource::DesiredMinBitrate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DesiredMinBitrate(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSource::DesiredMinBitrate(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredMinBitrate(get(value))); -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSource::DesiredMaxBitrate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DesiredMaxBitrate(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSource::DesiredMaxBitrate(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredMaxBitrate(get(value))); -} - -template bool impl_IAdaptiveMediaSource::AudioOnlyPlayback() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioOnlyPlayback(&value)); - return value; -} - -template uint64_t impl_IAdaptiveMediaSource::InboundBitsPerSecond() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InboundBitsPerSecond(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IAdaptiveMediaSource::InboundBitsPerSecondWindow() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_InboundBitsPerSecondWindow(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSource::InboundBitsPerSecondWindow(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InboundBitsPerSecondWindow(get(value))); -} - -template event_token impl_IAdaptiveMediaSource::DownloadBitrateChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DownloadBitrateChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAdaptiveMediaSource::DownloadBitrateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Streaming::Adaptive::IAdaptiveMediaSource::remove_DownloadBitrateChanged, DownloadBitrateChanged(handler)); -} - -template void impl_IAdaptiveMediaSource::DownloadBitrateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DownloadBitrateChanged(token)); -} - -template event_token impl_IAdaptiveMediaSource::PlaybackBitrateChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PlaybackBitrateChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IAdaptiveMediaSource::PlaybackBitrateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Streaming::Adaptive::IAdaptiveMediaSource::remove_PlaybackBitrateChanged, PlaybackBitrateChanged(handler)); -} - -template void impl_IAdaptiveMediaSource::PlaybackBitrateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PlaybackBitrateChanged(token)); -} - -template event_token impl_IAdaptiveMediaSource::DownloadRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DownloadRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IAdaptiveMediaSource::DownloadRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Streaming::Adaptive::IAdaptiveMediaSource::remove_DownloadRequested, DownloadRequested(handler)); -} - -template void impl_IAdaptiveMediaSource::DownloadRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DownloadRequested(token)); -} - -template event_token impl_IAdaptiveMediaSource::DownloadCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DownloadCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IAdaptiveMediaSource::DownloadCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Streaming::Adaptive::IAdaptiveMediaSource::remove_DownloadCompleted, DownloadCompleted(handler)); -} - -template void impl_IAdaptiveMediaSource::DownloadCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DownloadCompleted(token)); -} - -template event_token impl_IAdaptiveMediaSource::DownloadFailed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DownloadFailed(get(handler), &token)); - return token; -} - -template event_revoker impl_IAdaptiveMediaSource::DownloadFailed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::Streaming::Adaptive::IAdaptiveMediaSource::remove_DownloadFailed, DownloadFailed(handler)); -} - -template void impl_IAdaptiveMediaSource::DownloadFailed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DownloadFailed(token)); -} - -template Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceAdvancedSettings impl_IAdaptiveMediaSource2::AdvancedSettings() const -{ - Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceAdvancedSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AdvancedSettings(put(value))); - return value; -} - -template bool impl_IAdaptiveMediaSourceAdvancedSettings::AllSegmentsIndependent() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllSegmentsIndependent(&value)); - return value; -} - -template void impl_IAdaptiveMediaSourceAdvancedSettings::AllSegmentsIndependent(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllSegmentsIndependent(value)); -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSourceAdvancedSettings::DesiredBitrateHeadroomRatio() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DesiredBitrateHeadroomRatio(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSourceAdvancedSettings::DesiredBitrateHeadroomRatio(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredBitrateHeadroomRatio(get(value))); -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSourceAdvancedSettings::BitrateDowngradeTriggerRatio() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_BitrateDowngradeTriggerRatio(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSourceAdvancedSettings::BitrateDowngradeTriggerRatio(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BitrateDowngradeTriggerRatio(get(value))); -} - -template uint32_t impl_IAdaptiveMediaSourceDownloadBitrateChangedEventArgs::OldValue() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OldValue(&value)); - return value; -} - -template uint32_t impl_IAdaptiveMediaSourceDownloadBitrateChangedEventArgs::NewValue() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NewValue(&value)); - return value; -} - -template uint32_t impl_IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs::OldValue() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OldValue(&value)); - return value; -} - -template uint32_t impl_IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs::NewValue() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NewValue(&value)); - return value; -} - -template bool impl_IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs::AudioOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioOnly(&value)); - return value; -} - -template Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceResourceType impl_IAdaptiveMediaSourceDownloadRequestedEventArgs::ResourceType() const -{ - Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceResourceType value {}; - check_hresult(static_cast(static_cast(*this))->get_ResourceType(&value)); - return value; -} - -template Windows::Foundation::Uri impl_IAdaptiveMediaSourceDownloadRequestedEventArgs::ResourceUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ResourceUri(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSourceDownloadRequestedEventArgs::ResourceByteRangeOffset() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ResourceByteRangeOffset(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSourceDownloadRequestedEventArgs::ResourceByteRangeLength() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ResourceByteRangeLength(put(value))); - return value; -} - -template Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceDownloadResult impl_IAdaptiveMediaSourceDownloadRequestedEventArgs::Result() const -{ - Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceDownloadResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Result(put(value))); - return value; -} - -template Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceDownloadRequestedDeferral impl_IAdaptiveMediaSourceDownloadRequestedEventArgs::GetDeferral() const -{ - Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceDownloadRequestedDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template Windows::Foundation::Uri impl_IAdaptiveMediaSourceDownloadResult::ResourceUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ResourceUri(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSourceDownloadResult::ResourceUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ResourceUri(get(value))); -} - -template Windows::Storage::Streams::IInputStream impl_IAdaptiveMediaSourceDownloadResult::InputStream() const -{ - Windows::Storage::Streams::IInputStream value; - check_hresult(static_cast(static_cast(*this))->get_InputStream(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSourceDownloadResult::InputStream(const Windows::Storage::Streams::IInputStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InputStream(get(value))); -} - -template Windows::Storage::Streams::IBuffer impl_IAdaptiveMediaSourceDownloadResult::Buffer() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Buffer(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSourceDownloadResult::Buffer(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Buffer(get(value))); -} - -template hstring impl_IAdaptiveMediaSourceDownloadResult::ContentType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContentType(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSourceDownloadResult::ContentType(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentType(get(value))); -} - -template uint32_t impl_IAdaptiveMediaSourceDownloadResult::ExtendedStatus() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedStatus(&value)); - return value; -} - -template void impl_IAdaptiveMediaSourceDownloadResult::ExtendedStatus(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExtendedStatus(value)); -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSourceDownloadResult2::ResourceByteRangeOffset() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ResourceByteRangeOffset(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSourceDownloadResult2::ResourceByteRangeOffset(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ResourceByteRangeOffset(get(value))); -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSourceDownloadResult2::ResourceByteRangeLength() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ResourceByteRangeLength(put(value))); - return value; -} - -template void impl_IAdaptiveMediaSourceDownloadResult2::ResourceByteRangeLength(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ResourceByteRangeLength(get(value))); -} - -template void impl_IAdaptiveMediaSourceDownloadRequestedDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceResourceType impl_IAdaptiveMediaSourceDownloadCompletedEventArgs::ResourceType() const -{ - Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceResourceType value {}; - check_hresult(static_cast(static_cast(*this))->get_ResourceType(&value)); - return value; -} - -template Windows::Foundation::Uri impl_IAdaptiveMediaSourceDownloadCompletedEventArgs::ResourceUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ResourceUri(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSourceDownloadCompletedEventArgs::ResourceByteRangeOffset() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ResourceByteRangeOffset(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSourceDownloadCompletedEventArgs::ResourceByteRangeLength() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ResourceByteRangeLength(put(value))); - return value; -} - -template Windows::Web::Http::HttpResponseMessage impl_IAdaptiveMediaSourceDownloadCompletedEventArgs::HttpResponseMessage() const -{ - Windows::Web::Http::HttpResponseMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HttpResponseMessage(put(value))); - return value; -} - -template Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceResourceType impl_IAdaptiveMediaSourceDownloadFailedEventArgs::ResourceType() const -{ - Windows::Media::Streaming::Adaptive::AdaptiveMediaSourceResourceType value {}; - check_hresult(static_cast(static_cast(*this))->get_ResourceType(&value)); - return value; -} - -template Windows::Foundation::Uri impl_IAdaptiveMediaSourceDownloadFailedEventArgs::ResourceUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ResourceUri(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSourceDownloadFailedEventArgs::ResourceByteRangeOffset() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ResourceByteRangeOffset(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IAdaptiveMediaSourceDownloadFailedEventArgs::ResourceByteRangeLength() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ResourceByteRangeLength(put(value))); - return value; -} - -template Windows::Web::Http::HttpResponseMessage impl_IAdaptiveMediaSourceDownloadFailedEventArgs::HttpResponseMessage() const -{ - Windows::Web::Http::HttpResponseMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HttpResponseMessage(put(value))); - return value; -} - -inline bool AdaptiveMediaSource::IsContentTypeSupported(hstring_ref contentType) -{ - return get_activation_factory().IsContentTypeSupported(contentType); -} - -inline Windows::Foundation::IAsyncOperation AdaptiveMediaSource::CreateFromUriAsync(const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().CreateFromUriAsync(uri); -} - -inline Windows::Foundation::IAsyncOperation AdaptiveMediaSource::CreateFromUriAsync(const Windows::Foundation::Uri & uri, const Windows::Web::Http::HttpClient & httpClient) -{ - return get_activation_factory().CreateFromUriAsync(uri, httpClient); -} - -inline Windows::Foundation::IAsyncOperation AdaptiveMediaSource::CreateFromStreamAsync(const Windows::Storage::Streams::IInputStream & stream, const Windows::Foundation::Uri & uri, hstring_ref contentType) -{ - return get_activation_factory().CreateFromStreamAsync(stream, uri, contentType); -} - -inline Windows::Foundation::IAsyncOperation AdaptiveMediaSource::CreateFromStreamAsync(const Windows::Storage::Streams::IInputStream & stream, const Windows::Foundation::Uri & uri, hstring_ref contentType, const Windows::Web::Http::HttpClient & httpClient) -{ - return get_activation_factory().CreateFromStreamAsync(stream, uri, contentType, httpClient); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.Transcoding.h b/10.0.14393.0/winrt/Windows.Media.Transcoding.h deleted file mode 100644 index 6a93dcced..000000000 --- a/10.0.14393.0/winrt/Windows.Media.Transcoding.h +++ /dev/null @@ -1,445 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Media.Core.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Media.MediaProperties.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Media.Transcoding.3.h" -#include "Windows.Media.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall put_TrimStartTime(abi_arg_in value) noexcept override - { - try - { - this->shim().TrimStartTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrimStartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrimStartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TrimStopTime(abi_arg_in value) noexcept override - { - try - { - this->shim().TrimStopTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrimStopTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrimStopTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AlwaysReencode(bool value) noexcept override - { - try - { - this->shim().AlwaysReencode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlwaysReencode(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AlwaysReencode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HardwareAccelerationEnabled(bool value) noexcept override - { - try - { - this->shim().HardwareAccelerationEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HardwareAccelerationEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HardwareAccelerationEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddAudioEffect(abi_arg_in activatableClassId) noexcept override - { - try - { - this->shim().AddAudioEffect(*reinterpret_cast(&activatableClassId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddAudioEffectWithSettings(abi_arg_in activatableClassId, bool effectRequired, abi_arg_in configuration) noexcept override - { - try - { - this->shim().AddAudioEffect(*reinterpret_cast(&activatableClassId), effectRequired, *reinterpret_cast(&configuration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddVideoEffect(abi_arg_in activatableClassId) noexcept override - { - try - { - this->shim().AddVideoEffect(*reinterpret_cast(&activatableClassId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddVideoEffectWithSettings(abi_arg_in activatableClassId, bool effectRequired, abi_arg_in configuration) noexcept override - { - try - { - this->shim().AddVideoEffect(*reinterpret_cast(&activatableClassId), effectRequired, *reinterpret_cast(&configuration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearEffects() noexcept override - { - try - { - this->shim().ClearEffects(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrepareFileTranscodeAsync(abi_arg_in source, abi_arg_in destination, abi_arg_in profile, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareFileTranscodeAsync(*reinterpret_cast(&source), *reinterpret_cast(&destination), *reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrepareStreamTranscodeAsync(abi_arg_in source, abi_arg_in destination, abi_arg_in profile, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareStreamTranscodeAsync(*reinterpret_cast(&source), *reinterpret_cast(&destination), *reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_PrepareMediaStreamSourceTranscodeAsync(abi_arg_in source, abi_arg_in destination, abi_arg_in profile, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareMediaStreamSourceTranscodeAsync(*reinterpret_cast(&source), *reinterpret_cast(&destination), *reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VideoProcessingAlgorithm(Windows::Media::Transcoding::MediaVideoProcessingAlgorithm value) noexcept override - { - try - { - this->shim().VideoProcessingAlgorithm(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoProcessingAlgorithm(Windows::Media::Transcoding::MediaVideoProcessingAlgorithm * value) noexcept override - { - try - { - *value = detach(this->shim().VideoProcessingAlgorithm()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanTranscode(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanTranscode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FailureReason(Windows::Media::Transcoding::TranscodeFailureReason * value) noexcept override - { - try - { - *value = detach(this->shim().FailureReason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TranscodeAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TranscodeAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media::Transcoding { - -template Windows::Foundation::IAsyncOperation impl_IMediaTranscoder2::PrepareMediaStreamSourceTranscodeAsync(const Windows::Media::Core::IMediaSource & source, const Windows::Storage::Streams::IRandomAccessStream & destination, const Windows::Media::MediaProperties::MediaEncodingProfile & profile) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareMediaStreamSourceTranscodeAsync(get(source), get(destination), get(profile), put(operation))); - return operation; -} - -template void impl_IMediaTranscoder2::VideoProcessingAlgorithm(Windows::Media::Transcoding::MediaVideoProcessingAlgorithm value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VideoProcessingAlgorithm(value)); -} - -template Windows::Media::Transcoding::MediaVideoProcessingAlgorithm impl_IMediaTranscoder2::VideoProcessingAlgorithm() const -{ - Windows::Media::Transcoding::MediaVideoProcessingAlgorithm value {}; - check_hresult(static_cast(static_cast(*this))->get_VideoProcessingAlgorithm(&value)); - return value; -} - -template void impl_IMediaTranscoder::TrimStartTime(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TrimStartTime(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaTranscoder::TrimStartTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TrimStartTime(put(value))); - return value; -} - -template void impl_IMediaTranscoder::TrimStopTime(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TrimStopTime(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IMediaTranscoder::TrimStopTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TrimStopTime(put(value))); - return value; -} - -template void impl_IMediaTranscoder::AlwaysReencode(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AlwaysReencode(value)); -} - -template bool impl_IMediaTranscoder::AlwaysReencode() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AlwaysReencode(&value)); - return value; -} - -template void impl_IMediaTranscoder::HardwareAccelerationEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HardwareAccelerationEnabled(value)); -} - -template bool impl_IMediaTranscoder::HardwareAccelerationEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HardwareAccelerationEnabled(&value)); - return value; -} - -template void impl_IMediaTranscoder::AddAudioEffect(hstring_ref activatableClassId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddAudioEffect(get(activatableClassId))); -} - -template void impl_IMediaTranscoder::AddAudioEffect(hstring_ref activatableClassId, bool effectRequired, const Windows::Foundation::Collections::IPropertySet & configuration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddAudioEffectWithSettings(get(activatableClassId), effectRequired, get(configuration))); -} - -template void impl_IMediaTranscoder::AddVideoEffect(hstring_ref activatableClassId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddVideoEffect(get(activatableClassId))); -} - -template void impl_IMediaTranscoder::AddVideoEffect(hstring_ref activatableClassId, bool effectRequired, const Windows::Foundation::Collections::IPropertySet & configuration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddVideoEffectWithSettings(get(activatableClassId), effectRequired, get(configuration))); -} - -template void impl_IMediaTranscoder::ClearEffects() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearEffects()); -} - -template Windows::Foundation::IAsyncOperation impl_IMediaTranscoder::PrepareFileTranscodeAsync(const Windows::Storage::IStorageFile & source, const Windows::Storage::IStorageFile & destination, const Windows::Media::MediaProperties::MediaEncodingProfile & profile) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareFileTranscodeAsync(get(source), get(destination), get(profile), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IMediaTranscoder::PrepareStreamTranscodeAsync(const Windows::Storage::Streams::IRandomAccessStream & source, const Windows::Storage::Streams::IRandomAccessStream & destination, const Windows::Media::MediaProperties::MediaEncodingProfile & profile) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareStreamTranscodeAsync(get(source), get(destination), get(profile), put(operation))); - return operation; -} - -template bool impl_IPrepareTranscodeResult::CanTranscode() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanTranscode(&value)); - return value; -} - -template Windows::Media::Transcoding::TranscodeFailureReason impl_IPrepareTranscodeResult::FailureReason() const -{ - Windows::Media::Transcoding::TranscodeFailureReason value {}; - check_hresult(static_cast(static_cast(*this))->get_FailureReason(&value)); - return value; -} - -template Windows::Foundation::IAsyncActionWithProgress impl_IPrepareTranscodeResult::TranscodeAsync() const -{ - Windows::Foundation::IAsyncActionWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_TranscodeAsync(put(operation))); - return operation; -} - -inline MediaTranscoder::MediaTranscoder() : - MediaTranscoder(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Media.h b/10.0.14393.0/winrt/Windows.Media.h deleted file mode 100644 index 77bbcb10d..000000000 --- a/10.0.14393.0/winrt/Windows.Media.h +++ /dev/null @@ -1,4042 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Graphics.Imaging.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Graphics.DirectX.Direct3D11.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Media.3.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Capacity(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Capacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Length(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Length(uint32_t value) noexcept override - { - try - { - this->shim().Length(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LockBuffer(Windows::Media::AudioBufferAccessMode mode, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LockBuffer(mode)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t capacity, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(capacity)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequestedAutoRepeatMode(Windows::Media::MediaPlaybackAutoRepeatMode * value) noexcept override - { - try - { - *value = detach(this->shim().RequestedAutoRepeatMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subtitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subtitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Subtitle(abi_arg_in value) noexcept override - { - try - { - this->shim().Subtitle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_SoundLevelChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().SoundLevelChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SoundLevelChanged(event_token cookie) noexcept override - { - try - { - this->shim().SoundLevelChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PlayPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PlayPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PlayPressed(event_token cookie) noexcept override - { - try - { - this->shim().PlayPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PausePressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PausePressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PausePressed(event_token cookie) noexcept override - { - try - { - this->shim().PausePressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StopPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().StopPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StopPressed(event_token cookie) noexcept override - { - try - { - this->shim().StopPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PlayPauseTogglePressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PlayPauseTogglePressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PlayPauseTogglePressed(event_token cookie) noexcept override - { - try - { - this->shim().PlayPauseTogglePressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RecordPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().RecordPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RecordPressed(event_token cookie) noexcept override - { - try - { - this->shim().RecordPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NextTrackPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().NextTrackPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NextTrackPressed(event_token cookie) noexcept override - { - try - { - this->shim().NextTrackPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PreviousTrackPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PreviousTrackPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PreviousTrackPressed(event_token cookie) noexcept override - { - try - { - this->shim().PreviousTrackPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FastForwardPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().FastForwardPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FastForwardPressed(event_token cookie) noexcept override - { - try - { - this->shim().FastForwardPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RewindPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().RewindPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RewindPressed(event_token cookie) noexcept override - { - try - { - this->shim().RewindPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ChannelUpPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ChannelUpPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ChannelUpPressed(event_token cookie) noexcept override - { - try - { - this->shim().ChannelUpPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ChannelDownPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ChannelDownPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ChannelDownPressed(event_token cookie) noexcept override - { - try - { - this->shim().ChannelDownPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SoundLevel(Windows::Media::SoundLevel * value) noexcept override - { - try - { - *value = detach(this->shim().SoundLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TrackName(abi_arg_in value) noexcept override - { - try - { - this->shim().TrackName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrackName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrackName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ArtistName(abi_arg_in value) noexcept override - { - try - { - this->shim().ArtistName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ArtistName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ArtistName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPlaying(bool value) noexcept override - { - try - { - this->shim().IsPlaying(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPlaying(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPlaying()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AlbumArt(abi_arg_in value) noexcept override - { - try - { - this->shim().AlbumArt(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlbumArt(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlbumArt()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetProperties(abi_arg_in configuration) noexcept override - { - try - { - this->shim().SetProperties(*reinterpret_cast(&configuration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RegisterSchemeHandler(abi_arg_in activatableClassId, abi_arg_in scheme) noexcept override - { - try - { - this->shim().RegisterSchemeHandler(*reinterpret_cast(&activatableClassId), *reinterpret_cast(&scheme)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterSchemeHandlerWithSettings(abi_arg_in activatableClassId, abi_arg_in scheme, abi_arg_in configuration) noexcept override - { - try - { - this->shim().RegisterSchemeHandler(*reinterpret_cast(&activatableClassId), *reinterpret_cast(&scheme), *reinterpret_cast(&configuration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterByteStreamHandler(abi_arg_in activatableClassId, abi_arg_in fileExtension, abi_arg_in mimeType) noexcept override - { - try - { - this->shim().RegisterByteStreamHandler(*reinterpret_cast(&activatableClassId), *reinterpret_cast(&fileExtension), *reinterpret_cast(&mimeType)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterByteStreamHandlerWithSettings(abi_arg_in activatableClassId, abi_arg_in fileExtension, abi_arg_in mimeType, abi_arg_in configuration) noexcept override - { - try - { - this->shim().RegisterByteStreamHandler(*reinterpret_cast(&activatableClassId), *reinterpret_cast(&fileExtension), *reinterpret_cast(&mimeType), *reinterpret_cast(&configuration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterAudioDecoder(abi_arg_in activatableClassId, GUID inputSubtype, GUID outputSubtype) noexcept override - { - try - { - this->shim().RegisterAudioDecoder(*reinterpret_cast(&activatableClassId), inputSubtype, outputSubtype); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterAudioDecoderWithSettings(abi_arg_in activatableClassId, GUID inputSubtype, GUID outputSubtype, abi_arg_in configuration) noexcept override - { - try - { - this->shim().RegisterAudioDecoder(*reinterpret_cast(&activatableClassId), inputSubtype, outputSubtype, *reinterpret_cast(&configuration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterAudioEncoder(abi_arg_in activatableClassId, GUID inputSubtype, GUID outputSubtype) noexcept override - { - try - { - this->shim().RegisterAudioEncoder(*reinterpret_cast(&activatableClassId), inputSubtype, outputSubtype); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterAudioEncoderWithSettings(abi_arg_in activatableClassId, GUID inputSubtype, GUID outputSubtype, abi_arg_in configuration) noexcept override - { - try - { - this->shim().RegisterAudioEncoder(*reinterpret_cast(&activatableClassId), inputSubtype, outputSubtype, *reinterpret_cast(&configuration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterVideoDecoder(abi_arg_in activatableClassId, GUID inputSubtype, GUID outputSubtype) noexcept override - { - try - { - this->shim().RegisterVideoDecoder(*reinterpret_cast(&activatableClassId), inputSubtype, outputSubtype); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterVideoDecoderWithSettings(abi_arg_in activatableClassId, GUID inputSubtype, GUID outputSubtype, abi_arg_in configuration) noexcept override - { - try - { - this->shim().RegisterVideoDecoder(*reinterpret_cast(&activatableClassId), inputSubtype, outputSubtype, *reinterpret_cast(&configuration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterVideoEncoder(abi_arg_in activatableClassId, GUID inputSubtype, GUID outputSubtype) noexcept override - { - try - { - this->shim().RegisterVideoEncoder(*reinterpret_cast(&activatableClassId), inputSubtype, outputSubtype); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterVideoEncoderWithSettings(abi_arg_in activatableClassId, GUID inputSubtype, GUID outputSubtype, abi_arg_in configuration) noexcept override - { - try - { - this->shim().RegisterVideoEncoder(*reinterpret_cast(&activatableClassId), inputSubtype, outputSubtype, *reinterpret_cast(&configuration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsReadOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RelativeTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().RelativeTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RelativeTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RelativeTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SystemRelativeTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().SystemRelativeTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemRelativeTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SystemRelativeTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Duration(abi_arg_in> value) noexcept override - { - try - { - this->shim().Duration(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDiscontinuous(bool value) noexcept override - { - try - { - this->shim().IsDiscontinuous(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDiscontinuous(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDiscontinuous()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Time(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Time()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaMarkerType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaMarkerType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Bookmark(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bookmark()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Markers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Markers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Arguments(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Arguments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Resume() noexcept override - { - try - { - this->shim().Resume(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Pause() noexcept override - { - try - { - this->shim().Pause(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Position(abi_arg_in value) noexcept override - { - try - { - this->shim().Position(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClockRate(double * value) noexcept override - { - try - { - *value = detach(this->shim().ClockRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClockRate(double value) noexcept override - { - try - { - this->shim().ClockRate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(Windows::Media::MediaTimelineControllerState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PositionChanged(abi_arg_in> positionChangedEventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().PositionChanged(*reinterpret_cast *>(&positionChangedEventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PositionChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().PositionChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StateChanged(abi_arg_in> stateChangedEventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().StateChanged(*reinterpret_cast *>(&stateChangedEventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StateChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().StateChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlbumArtist(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlbumArtist()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AlbumArtist(abi_arg_in value) noexcept override - { - try - { - this->shim().AlbumArtist(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Artist(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Artist()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Artist(abi_arg_in value) noexcept override - { - try - { - this->shim().Artist(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlbumTitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlbumTitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AlbumTitle(abi_arg_in value) noexcept override - { - try - { - this->shim().AlbumTitle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrackNumber(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TrackNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TrackNumber(uint32_t value) noexcept override - { - try - { - this->shim().TrackNumber(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Genres(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Genres()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlbumTrackCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AlbumTrackCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AlbumTrackCount(uint32_t value) noexcept override - { - try - { - this->shim().AlbumTrackCount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequestedPlaybackPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RequestedPlaybackPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequestedPlaybackRate(double * value) noexcept override - { - try - { - *value = detach(this->shim().RequestedPlaybackRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequestedShuffleEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RequestedShuffleEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PlaybackStatus(Windows::Media::MediaPlaybackStatus * value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaybackStatus(Windows::Media::MediaPlaybackStatus value) noexcept override - { - try - { - this->shim().PlaybackStatus(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayUpdater(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayUpdater()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SoundLevel(Windows::Media::SoundLevel * value) noexcept override - { - try - { - *value = detach(this->shim().SoundLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsEnabled(bool value) noexcept override - { - try - { - this->shim().IsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPlayEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPlayEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPlayEnabled(bool value) noexcept override - { - try - { - this->shim().IsPlayEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStopEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStopEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsStopEnabled(bool value) noexcept override - { - try - { - this->shim().IsStopEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPauseEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPauseEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPauseEnabled(bool value) noexcept override - { - try - { - this->shim().IsPauseEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRecordEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRecordEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsRecordEnabled(bool value) noexcept override - { - try - { - this->shim().IsRecordEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFastForwardEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFastForwardEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFastForwardEnabled(bool value) noexcept override - { - try - { - this->shim().IsFastForwardEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRewindEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRewindEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsRewindEnabled(bool value) noexcept override - { - try - { - this->shim().IsRewindEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPreviousEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPreviousEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPreviousEnabled(bool value) noexcept override - { - try - { - this->shim().IsPreviousEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsNextEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsNextEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsNextEnabled(bool value) noexcept override - { - try - { - this->shim().IsNextEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsChannelUpEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsChannelUpEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsChannelUpEnabled(bool value) noexcept override - { - try - { - this->shim().IsChannelUpEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsChannelDownEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsChannelDownEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsChannelDownEnabled(bool value) noexcept override - { - try - { - this->shim().IsChannelDownEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ButtonPressed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ButtonPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ButtonPressed(event_token token) noexcept override - { - try - { - this->shim().ButtonPressed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PropertyChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PropertyChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PropertyChanged(event_token token) noexcept override - { - try - { - this->shim().PropertyChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AutoRepeatMode(Windows::Media::MediaPlaybackAutoRepeatMode * value) noexcept override - { - try - { - *value = detach(this->shim().AutoRepeatMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoRepeatMode(Windows::Media::MediaPlaybackAutoRepeatMode value) noexcept override - { - try - { - this->shim().AutoRepeatMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShuffleEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShuffleEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShuffleEnabled(bool value) noexcept override - { - try - { - this->shim().ShuffleEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackRate(double * value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaybackRate(double value) noexcept override - { - try - { - this->shim().PlaybackRate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateTimelineProperties(abi_arg_in timelineProperties) noexcept override - { - try - { - this->shim().UpdateTimelineProperties(*reinterpret_cast(&timelineProperties)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PlaybackPositionChangeRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PlaybackPositionChangeRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PlaybackPositionChangeRequested(event_token token) noexcept override - { - try - { - this->shim().PlaybackPositionChangeRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PlaybackRateChangeRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PlaybackRateChangeRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PlaybackRateChangeRequested(event_token token) noexcept override - { - try - { - this->shim().PlaybackRateChangeRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ShuffleEnabledChangeRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ShuffleEnabledChangeRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ShuffleEnabledChangeRequested(event_token token) noexcept override - { - try - { - this->shim().ShuffleEnabledChangeRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AutoRepeatModeChangeRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AutoRepeatModeChangeRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AutoRepeatModeChangeRequested(event_token token) noexcept override - { - try - { - this->shim().AutoRepeatModeChangeRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Button(Windows::Media::SystemMediaTransportControlsButton * value) noexcept override - { - try - { - *value = detach(this->shim().Button()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::Media::MediaPlaybackType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Type(Windows::Media::MediaPlaybackType value) noexcept override - { - try - { - this->shim().Type(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppMediaId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppMediaId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppMediaId(abi_arg_in value) noexcept override - { - try - { - this->shim().AppMediaId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbnail(abi_arg_in value) noexcept override - { - try - { - this->shim().Thumbnail(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MusicProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MusicProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImageProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImageProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyFromFileAsync(Windows::Media::MediaPlaybackType type, abi_arg_in source, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CopyFromFileAsync(type, *reinterpret_cast(&source))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearAll() noexcept override - { - try - { - this->shim().ClearAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Update() noexcept override - { - try - { - this->shim().Update(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Property(Windows::Media::SystemMediaTransportControlsProperty * value) noexcept override - { - try - { - *value = detach(this->shim().Property()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out mediaControl) noexcept override - { - try - { - *mediaControl = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *mediaControl = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StartTime(abi_arg_in value) noexcept override - { - try - { - this->shim().StartTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EndTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EndTime(abi_arg_in value) noexcept override - { - try - { - this->shim().EndTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinSeekTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinSeekTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinSeekTime(abi_arg_in value) noexcept override - { - try - { - this->shim().MinSeekTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxSeekTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxSeekTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxSeekTime(abi_arg_in value) noexcept override - { - try - { - this->shim().MaxSeekTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Position(abi_arg_in value) noexcept override - { - try - { - this->shim().Position(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subtitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subtitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Subtitle(abi_arg_in value) noexcept override - { - try - { - this->shim().Subtitle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Genres(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Genres()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VideoStabilization(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoStabilization()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SoftwareBitmap(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SoftwareBitmap()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyToAsync(abi_arg_in frame, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CopyToAsync(*reinterpret_cast(&frame))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Direct3DSurface(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Direct3DSurface()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(format, width, height)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithAlpha(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, Windows::Graphics::Imaging::BitmapAlphaMode alpha, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithAlpha(format, width, height, alpha)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Media { - -template Windows::Foundation::Collections::ValueSet impl_IMediaProcessingTriggerDetails::Arguments() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Arguments(put(value))); - return value; -} - -template Windows::Media::VideoFrame impl_IVideoFrameFactory::Create(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height) const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(format, width, height, put(value))); - return value; -} - -template Windows::Media::VideoFrame impl_IVideoFrameFactory::CreateWithAlpha(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, Windows::Graphics::Imaging::BitmapAlphaMode alpha) const -{ - Windows::Media::VideoFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithAlpha(format, width, height, alpha, put(value))); - return value; -} - -template Windows::Media::AudioFrame impl_IAudioFrameFactory::Create(uint32_t capacity) const -{ - Windows::Media::AudioFrame value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(capacity, put(value))); - return value; -} - -template hstring impl_IMediaFrame::Type() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Type(put(value))); - return value; -} - -template bool impl_IMediaFrame::IsReadOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnly(&value)); - return value; -} - -template void impl_IMediaFrame::RelativeTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RelativeTime(get(value))); -} - -template Windows::Foundation::IReference impl_IMediaFrame::RelativeTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_RelativeTime(put(value))); - return value; -} - -template void impl_IMediaFrame::SystemRelativeTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SystemRelativeTime(get(value))); -} - -template Windows::Foundation::IReference impl_IMediaFrame::SystemRelativeTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_SystemRelativeTime(put(value))); - return value; -} - -template void impl_IMediaFrame::Duration(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Duration(get(value))); -} - -template Windows::Foundation::IReference impl_IMediaFrame::Duration() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template void impl_IMediaFrame::IsDiscontinuous(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDiscontinuous(value)); -} - -template bool impl_IMediaFrame::IsDiscontinuous() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDiscontinuous(&value)); - return value; -} - -template Windows::Foundation::Collections::IPropertySet impl_IMediaFrame::ExtendedProperties() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedProperties(put(value))); - return value; -} - -template Windows::Graphics::Imaging::SoftwareBitmap impl_IVideoFrame::SoftwareBitmap() const -{ - Windows::Graphics::Imaging::SoftwareBitmap value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SoftwareBitmap(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IVideoFrame::CopyToAsync(const Windows::Media::VideoFrame & frame) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_CopyToAsync(get(frame), put(value))); - return value; -} - -template Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface impl_IVideoFrame::Direct3DSurface() const -{ - Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface value; - check_hresult(static_cast(static_cast(*this))->get_Direct3DSurface(put(value))); - return value; -} - -template Windows::Media::AudioBuffer impl_IAudioFrame::LockBuffer(Windows::Media::AudioBufferAccessMode mode) const -{ - Windows::Media::AudioBuffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_LockBuffer(mode, put(value))); - return value; -} - -template uint32_t impl_IAudioBuffer::Capacity() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Capacity(&value)); - return value; -} - -template uint32_t impl_IAudioBuffer::Length() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template void impl_IAudioBuffer::Length(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Length(value)); -} - -template Windows::Foundation::TimeSpan impl_IMediaMarker::Time() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Time(put(value))); - return value; -} - -template hstring impl_IMediaMarker::MediaMarkerType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MediaMarkerType(put(value))); - return value; -} - -template hstring impl_IMediaMarker::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMediaMarkers::Markers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Markers(put(value))); - return value; -} - -template hstring impl_IMediaMarkerTypesStatics::Bookmark() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Bookmark(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_ISystemMediaTransportControlsTimelineProperties::StartTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template void impl_ISystemMediaTransportControlsTimelineProperties::StartTime(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartTime(get(value))); -} - -template Windows::Foundation::TimeSpan impl_ISystemMediaTransportControlsTimelineProperties::EndTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_EndTime(put(value))); - return value; -} - -template void impl_ISystemMediaTransportControlsTimelineProperties::EndTime(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EndTime(get(value))); -} - -template Windows::Foundation::TimeSpan impl_ISystemMediaTransportControlsTimelineProperties::MinSeekTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MinSeekTime(put(value))); - return value; -} - -template void impl_ISystemMediaTransportControlsTimelineProperties::MinSeekTime(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinSeekTime(get(value))); -} - -template Windows::Foundation::TimeSpan impl_ISystemMediaTransportControlsTimelineProperties::MaxSeekTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxSeekTime(put(value))); - return value; -} - -template void impl_ISystemMediaTransportControlsTimelineProperties::MaxSeekTime(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxSeekTime(get(value))); -} - -template Windows::Foundation::TimeSpan impl_ISystemMediaTransportControlsTimelineProperties::Position() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template void impl_ISystemMediaTransportControlsTimelineProperties::Position(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Position(get(value))); -} - -template hstring impl_IMusicDisplayProperties::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IMusicDisplayProperties::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template hstring impl_IMusicDisplayProperties::AlbumArtist() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlbumArtist(put(value))); - return value; -} - -template void impl_IMusicDisplayProperties::AlbumArtist(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AlbumArtist(get(value))); -} - -template hstring impl_IMusicDisplayProperties::Artist() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Artist(put(value))); - return value; -} - -template void impl_IMusicDisplayProperties::Artist(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Artist(get(value))); -} - -template hstring impl_IMusicDisplayProperties2::AlbumTitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlbumTitle(put(value))); - return value; -} - -template void impl_IMusicDisplayProperties2::AlbumTitle(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AlbumTitle(get(value))); -} - -template uint32_t impl_IMusicDisplayProperties2::TrackNumber() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TrackNumber(&value)); - return value; -} - -template void impl_IMusicDisplayProperties2::TrackNumber(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TrackNumber(value)); -} - -template Windows::Foundation::Collections::IVector impl_IMusicDisplayProperties2::Genres() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Genres(put(value))); - return value; -} - -template uint32_t impl_IMusicDisplayProperties3::AlbumTrackCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AlbumTrackCount(&value)); - return value; -} - -template void impl_IMusicDisplayProperties3::AlbumTrackCount(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AlbumTrackCount(value)); -} - -template hstring impl_IVideoDisplayProperties::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IVideoDisplayProperties::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template hstring impl_IVideoDisplayProperties::Subtitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subtitle(put(value))); - return value; -} - -template void impl_IVideoDisplayProperties::Subtitle(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Subtitle(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IVideoDisplayProperties2::Genres() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Genres(put(value))); - return value; -} - -template hstring impl_IImageDisplayProperties::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IImageDisplayProperties::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template hstring impl_IImageDisplayProperties::Subtitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subtitle(put(value))); - return value; -} - -template void impl_IImageDisplayProperties::Subtitle(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Subtitle(get(value))); -} - -template Windows::Media::MediaPlaybackType impl_ISystemMediaTransportControlsDisplayUpdater::Type() const -{ - Windows::Media::MediaPlaybackType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template void impl_ISystemMediaTransportControlsDisplayUpdater::Type(Windows::Media::MediaPlaybackType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Type(value)); -} - -template hstring impl_ISystemMediaTransportControlsDisplayUpdater::AppMediaId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppMediaId(put(value))); - return value; -} - -template void impl_ISystemMediaTransportControlsDisplayUpdater::AppMediaId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppMediaId(get(value))); -} - -template Windows::Storage::Streams::RandomAccessStreamReference impl_ISystemMediaTransportControlsDisplayUpdater::Thumbnail() const -{ - Windows::Storage::Streams::RandomAccessStreamReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template void impl_ISystemMediaTransportControlsDisplayUpdater::Thumbnail(const Windows::Storage::Streams::RandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbnail(get(value))); -} - -template Windows::Media::MusicDisplayProperties impl_ISystemMediaTransportControlsDisplayUpdater::MusicProperties() const -{ - Windows::Media::MusicDisplayProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MusicProperties(put(value))); - return value; -} - -template Windows::Media::VideoDisplayProperties impl_ISystemMediaTransportControlsDisplayUpdater::VideoProperties() const -{ - Windows::Media::VideoDisplayProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoProperties(put(value))); - return value; -} - -template Windows::Media::ImageDisplayProperties impl_ISystemMediaTransportControlsDisplayUpdater::ImageProperties() const -{ - Windows::Media::ImageDisplayProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ImageProperties(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISystemMediaTransportControlsDisplayUpdater::CopyFromFileAsync(Windows::Media::MediaPlaybackType type, const Windows::Storage::StorageFile & source) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CopyFromFileAsync(type, get(source), put(operation))); - return operation; -} - -template void impl_ISystemMediaTransportControlsDisplayUpdater::ClearAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearAll()); -} - -template void impl_ISystemMediaTransportControlsDisplayUpdater::Update() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Update()); -} - -template Windows::Media::SystemMediaTransportControlsButton impl_ISystemMediaTransportControlsButtonPressedEventArgs::Button() const -{ - Windows::Media::SystemMediaTransportControlsButton value {}; - check_hresult(static_cast(static_cast(*this))->get_Button(&value)); - return value; -} - -template Windows::Media::SystemMediaTransportControlsProperty impl_ISystemMediaTransportControlsPropertyChangedEventArgs::Property() const -{ - Windows::Media::SystemMediaTransportControlsProperty value {}; - check_hresult(static_cast(static_cast(*this))->get_Property(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IPlaybackPositionChangeRequestedEventArgs::RequestedPlaybackPosition() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestedPlaybackPosition(put(value))); - return value; -} - -template double impl_IPlaybackRateChangeRequestedEventArgs::RequestedPlaybackRate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestedPlaybackRate(&value)); - return value; -} - -template bool impl_IShuffleEnabledChangeRequestedEventArgs::RequestedShuffleEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestedShuffleEnabled(&value)); - return value; -} - -template Windows::Media::MediaPlaybackAutoRepeatMode impl_IAutoRepeatModeChangeRequestedEventArgs::RequestedAutoRepeatMode() const -{ - Windows::Media::MediaPlaybackAutoRepeatMode value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestedAutoRepeatMode(&value)); - return value; -} - -template Windows::Media::MediaPlaybackStatus impl_ISystemMediaTransportControls::PlaybackStatus() const -{ - Windows::Media::MediaPlaybackStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_PlaybackStatus(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::PlaybackStatus(Windows::Media::MediaPlaybackStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaybackStatus(value)); -} - -template Windows::Media::SystemMediaTransportControlsDisplayUpdater impl_ISystemMediaTransportControls::DisplayUpdater() const -{ - Windows::Media::SystemMediaTransportControlsDisplayUpdater value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisplayUpdater(put(value))); - return value; -} - -template Windows::Media::SoundLevel impl_ISystemMediaTransportControls::SoundLevel() const -{ - Windows::Media::SoundLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_SoundLevel(&value)); - return value; -} - -template bool impl_ISystemMediaTransportControls::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::IsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsEnabled(value)); -} - -template bool impl_ISystemMediaTransportControls::IsPlayEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPlayEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::IsPlayEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPlayEnabled(value)); -} - -template bool impl_ISystemMediaTransportControls::IsStopEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStopEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::IsStopEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsStopEnabled(value)); -} - -template bool impl_ISystemMediaTransportControls::IsPauseEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPauseEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::IsPauseEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPauseEnabled(value)); -} - -template bool impl_ISystemMediaTransportControls::IsRecordEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRecordEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::IsRecordEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsRecordEnabled(value)); -} - -template bool impl_ISystemMediaTransportControls::IsFastForwardEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFastForwardEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::IsFastForwardEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFastForwardEnabled(value)); -} - -template bool impl_ISystemMediaTransportControls::IsRewindEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRewindEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::IsRewindEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsRewindEnabled(value)); -} - -template bool impl_ISystemMediaTransportControls::IsPreviousEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPreviousEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::IsPreviousEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPreviousEnabled(value)); -} - -template bool impl_ISystemMediaTransportControls::IsNextEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsNextEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::IsNextEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsNextEnabled(value)); -} - -template bool impl_ISystemMediaTransportControls::IsChannelUpEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsChannelUpEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::IsChannelUpEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsChannelUpEnabled(value)); -} - -template bool impl_ISystemMediaTransportControls::IsChannelDownEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsChannelDownEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls::IsChannelDownEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsChannelDownEnabled(value)); -} - -template event_token impl_ISystemMediaTransportControls::ButtonPressed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ButtonPressed(get(handler), &token)); - return token; -} - -template event_revoker impl_ISystemMediaTransportControls::ButtonPressed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::ISystemMediaTransportControls::remove_ButtonPressed, ButtonPressed(handler)); -} - -template void impl_ISystemMediaTransportControls::ButtonPressed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ButtonPressed(token)); -} - -template event_token impl_ISystemMediaTransportControls::PropertyChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PropertyChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ISystemMediaTransportControls::PropertyChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::ISystemMediaTransportControls::remove_PropertyChanged, PropertyChanged(handler)); -} - -template void impl_ISystemMediaTransportControls::PropertyChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PropertyChanged(token)); -} - -template Windows::Media::MediaPlaybackAutoRepeatMode impl_ISystemMediaTransportControls2::AutoRepeatMode() const -{ - Windows::Media::MediaPlaybackAutoRepeatMode value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoRepeatMode(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls2::AutoRepeatMode(Windows::Media::MediaPlaybackAutoRepeatMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoRepeatMode(value)); -} - -template bool impl_ISystemMediaTransportControls2::ShuffleEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShuffleEnabled(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls2::ShuffleEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShuffleEnabled(value)); -} - -template double impl_ISystemMediaTransportControls2::PlaybackRate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_PlaybackRate(&value)); - return value; -} - -template void impl_ISystemMediaTransportControls2::PlaybackRate(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaybackRate(value)); -} - -template void impl_ISystemMediaTransportControls2::UpdateTimelineProperties(const Windows::Media::SystemMediaTransportControlsTimelineProperties & timelineProperties) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateTimelineProperties(get(timelineProperties))); -} - -template event_token impl_ISystemMediaTransportControls2::PlaybackPositionChangeRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PlaybackPositionChangeRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ISystemMediaTransportControls2::PlaybackPositionChangeRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::ISystemMediaTransportControls2::remove_PlaybackPositionChangeRequested, PlaybackPositionChangeRequested(handler)); -} - -template void impl_ISystemMediaTransportControls2::PlaybackPositionChangeRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PlaybackPositionChangeRequested(token)); -} - -template event_token impl_ISystemMediaTransportControls2::PlaybackRateChangeRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PlaybackRateChangeRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ISystemMediaTransportControls2::PlaybackRateChangeRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::ISystemMediaTransportControls2::remove_PlaybackRateChangeRequested, PlaybackRateChangeRequested(handler)); -} - -template void impl_ISystemMediaTransportControls2::PlaybackRateChangeRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PlaybackRateChangeRequested(token)); -} - -template event_token impl_ISystemMediaTransportControls2::ShuffleEnabledChangeRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ShuffleEnabledChangeRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ISystemMediaTransportControls2::ShuffleEnabledChangeRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::ISystemMediaTransportControls2::remove_ShuffleEnabledChangeRequested, ShuffleEnabledChangeRequested(handler)); -} - -template void impl_ISystemMediaTransportControls2::ShuffleEnabledChangeRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ShuffleEnabledChangeRequested(token)); -} - -template event_token impl_ISystemMediaTransportControls2::AutoRepeatModeChangeRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AutoRepeatModeChangeRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ISystemMediaTransportControls2::AutoRepeatModeChangeRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::ISystemMediaTransportControls2::remove_AutoRepeatModeChangeRequested, AutoRepeatModeChangeRequested(handler)); -} - -template void impl_ISystemMediaTransportControls2::AutoRepeatModeChangeRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AutoRepeatModeChangeRequested(token)); -} - -template Windows::Media::SystemMediaTransportControls impl_ISystemMediaTransportControlsStatics::GetForCurrentView() const -{ - Windows::Media::SystemMediaTransportControls mediaControl { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(mediaControl))); - return mediaControl; -} - -template void impl_IMediaExtension::SetProperties(const Windows::Foundation::Collections::IPropertySet & configuration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetProperties(get(configuration))); -} - -template void impl_IMediaExtensionManager::RegisterSchemeHandler(hstring_ref activatableClassId, hstring_ref scheme) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterSchemeHandler(get(activatableClassId), get(scheme))); -} - -template void impl_IMediaExtensionManager::RegisterSchemeHandler(hstring_ref activatableClassId, hstring_ref scheme, const Windows::Foundation::Collections::IPropertySet & configuration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterSchemeHandlerWithSettings(get(activatableClassId), get(scheme), get(configuration))); -} - -template void impl_IMediaExtensionManager::RegisterByteStreamHandler(hstring_ref activatableClassId, hstring_ref fileExtension, hstring_ref mimeType) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterByteStreamHandler(get(activatableClassId), get(fileExtension), get(mimeType))); -} - -template void impl_IMediaExtensionManager::RegisterByteStreamHandler(hstring_ref activatableClassId, hstring_ref fileExtension, hstring_ref mimeType, const Windows::Foundation::Collections::IPropertySet & configuration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterByteStreamHandlerWithSettings(get(activatableClassId), get(fileExtension), get(mimeType), get(configuration))); -} - -template void impl_IMediaExtensionManager::RegisterAudioDecoder(hstring_ref activatableClassId, GUID inputSubtype, GUID outputSubtype) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterAudioDecoder(get(activatableClassId), inputSubtype, outputSubtype)); -} - -template void impl_IMediaExtensionManager::RegisterAudioDecoder(hstring_ref activatableClassId, GUID inputSubtype, GUID outputSubtype, const Windows::Foundation::Collections::IPropertySet & configuration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterAudioDecoderWithSettings(get(activatableClassId), inputSubtype, outputSubtype, get(configuration))); -} - -template void impl_IMediaExtensionManager::RegisterAudioEncoder(hstring_ref activatableClassId, GUID inputSubtype, GUID outputSubtype) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterAudioEncoder(get(activatableClassId), inputSubtype, outputSubtype)); -} - -template void impl_IMediaExtensionManager::RegisterAudioEncoder(hstring_ref activatableClassId, GUID inputSubtype, GUID outputSubtype, const Windows::Foundation::Collections::IPropertySet & configuration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterAudioEncoderWithSettings(get(activatableClassId), inputSubtype, outputSubtype, get(configuration))); -} - -template void impl_IMediaExtensionManager::RegisterVideoDecoder(hstring_ref activatableClassId, GUID inputSubtype, GUID outputSubtype) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterVideoDecoder(get(activatableClassId), inputSubtype, outputSubtype)); -} - -template void impl_IMediaExtensionManager::RegisterVideoDecoder(hstring_ref activatableClassId, GUID inputSubtype, GUID outputSubtype, const Windows::Foundation::Collections::IPropertySet & configuration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterVideoDecoderWithSettings(get(activatableClassId), inputSubtype, outputSubtype, get(configuration))); -} - -template void impl_IMediaExtensionManager::RegisterVideoEncoder(hstring_ref activatableClassId, GUID inputSubtype, GUID outputSubtype) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterVideoEncoder(get(activatableClassId), inputSubtype, outputSubtype)); -} - -template void impl_IMediaExtensionManager::RegisterVideoEncoder(hstring_ref activatableClassId, GUID inputSubtype, GUID outputSubtype, const Windows::Foundation::Collections::IPropertySet & configuration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterVideoEncoderWithSettings(get(activatableClassId), inputSubtype, outputSubtype, get(configuration))); -} - -template hstring impl_IVideoEffectsStatics::VideoStabilization() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VideoStabilization(put(value))); - return value; -} - -template void impl_IMediaTimelineController::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IMediaTimelineController::Resume() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Resume()); -} - -template void impl_IMediaTimelineController::Pause() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Pause()); -} - -template Windows::Foundation::TimeSpan impl_IMediaTimelineController::Position() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template void impl_IMediaTimelineController::Position(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Position(get(value))); -} - -template double impl_IMediaTimelineController::ClockRate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ClockRate(&value)); - return value; -} - -template void impl_IMediaTimelineController::ClockRate(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ClockRate(value)); -} - -template Windows::Media::MediaTimelineControllerState impl_IMediaTimelineController::State() const -{ - Windows::Media::MediaTimelineControllerState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template event_token impl_IMediaTimelineController::PositionChanged(const Windows::Foundation::TypedEventHandler & positionChangedEventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_PositionChanged(get(positionChangedEventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IMediaTimelineController::PositionChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & positionChangedEventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaTimelineController::remove_PositionChanged, PositionChanged(positionChangedEventHandler)); -} - -template void impl_IMediaTimelineController::PositionChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PositionChanged(eventCookie)); -} - -template event_token impl_IMediaTimelineController::StateChanged(const Windows::Foundation::TypedEventHandler & stateChangedEventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_StateChanged(get(stateChangedEventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IMediaTimelineController::StateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & stateChangedEventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaTimelineController::remove_StateChanged, StateChanged(stateChangedEventHandler)); -} - -template void impl_IMediaTimelineController::StateChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StateChanged(eventCookie)); -} - -template event_token impl_IMediaControl::SoundLevelChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_SoundLevelChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::SoundLevelChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_SoundLevelChanged, SoundLevelChanged(handler)); -} - -template void impl_IMediaControl::SoundLevelChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SoundLevelChanged(cookie)); -} - -template event_token impl_IMediaControl::PlayPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PlayPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::PlayPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_PlayPressed, PlayPressed(handler)); -} - -template void impl_IMediaControl::PlayPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PlayPressed(cookie)); -} - -template event_token impl_IMediaControl::PausePressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PausePressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::PausePressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_PausePressed, PausePressed(handler)); -} - -template void impl_IMediaControl::PausePressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PausePressed(cookie)); -} - -template event_token impl_IMediaControl::StopPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_StopPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::StopPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_StopPressed, StopPressed(handler)); -} - -template void impl_IMediaControl::StopPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StopPressed(cookie)); -} - -template event_token impl_IMediaControl::PlayPauseTogglePressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PlayPauseTogglePressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::PlayPauseTogglePressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_PlayPauseTogglePressed, PlayPauseTogglePressed(handler)); -} - -template void impl_IMediaControl::PlayPauseTogglePressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PlayPauseTogglePressed(cookie)); -} - -template event_token impl_IMediaControl::RecordPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_RecordPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::RecordPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_RecordPressed, RecordPressed(handler)); -} - -template void impl_IMediaControl::RecordPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RecordPressed(cookie)); -} - -template event_token impl_IMediaControl::NextTrackPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_NextTrackPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::NextTrackPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_NextTrackPressed, NextTrackPressed(handler)); -} - -template void impl_IMediaControl::NextTrackPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NextTrackPressed(cookie)); -} - -template event_token impl_IMediaControl::PreviousTrackPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PreviousTrackPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::PreviousTrackPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_PreviousTrackPressed, PreviousTrackPressed(handler)); -} - -template void impl_IMediaControl::PreviousTrackPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PreviousTrackPressed(cookie)); -} - -template event_token impl_IMediaControl::FastForwardPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_FastForwardPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::FastForwardPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_FastForwardPressed, FastForwardPressed(handler)); -} - -template void impl_IMediaControl::FastForwardPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FastForwardPressed(cookie)); -} - -template event_token impl_IMediaControl::RewindPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_RewindPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::RewindPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_RewindPressed, RewindPressed(handler)); -} - -template void impl_IMediaControl::RewindPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RewindPressed(cookie)); -} - -template event_token impl_IMediaControl::ChannelUpPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ChannelUpPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::ChannelUpPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_ChannelUpPressed, ChannelUpPressed(handler)); -} - -template void impl_IMediaControl::ChannelUpPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ChannelUpPressed(cookie)); -} - -template event_token impl_IMediaControl::ChannelDownPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ChannelDownPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMediaControl::ChannelDownPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Media::IMediaControl::remove_ChannelDownPressed, ChannelDownPressed(handler)); -} - -template void impl_IMediaControl::ChannelDownPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ChannelDownPressed(cookie)); -} - -template Windows::Media::SoundLevel impl_IMediaControl::SoundLevel() const -{ - Windows::Media::SoundLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_SoundLevel(&value)); - return value; -} - -template void impl_IMediaControl::TrackName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TrackName(get(value))); -} - -template hstring impl_IMediaControl::TrackName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TrackName(put(value))); - return value; -} - -template void impl_IMediaControl::ArtistName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ArtistName(get(value))); -} - -template hstring impl_IMediaControl::ArtistName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ArtistName(put(value))); - return value; -} - -template void impl_IMediaControl::IsPlaying(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPlaying(value)); -} - -template bool impl_IMediaControl::IsPlaying() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPlaying(&value)); - return value; -} - -template void impl_IMediaControl::AlbumArt(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AlbumArt(get(value))); -} - -template Windows::Foundation::Uri impl_IMediaControl::AlbumArt() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlbumArt(put(value))); - return value; -} - -inline AudioFrame::AudioFrame(uint32_t capacity) : - AudioFrame(get_activation_factory().Create(capacity)) -{} - -inline event_token MediaControl::SoundLevelChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().SoundLevelChanged(handler); -} - -inline factory_event_revoker MediaControl::SoundLevelChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_SoundLevelChanged, factory.SoundLevelChanged(handler) }; -} - -inline void MediaControl::SoundLevelChanged(event_token cookie) -{ - get_activation_factory().SoundLevelChanged(cookie); -} - -inline event_token MediaControl::PlayPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().PlayPressed(handler); -} - -inline factory_event_revoker MediaControl::PlayPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_PlayPressed, factory.PlayPressed(handler) }; -} - -inline void MediaControl::PlayPressed(event_token cookie) -{ - get_activation_factory().PlayPressed(cookie); -} - -inline event_token MediaControl::PausePressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().PausePressed(handler); -} - -inline factory_event_revoker MediaControl::PausePressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_PausePressed, factory.PausePressed(handler) }; -} - -inline void MediaControl::PausePressed(event_token cookie) -{ - get_activation_factory().PausePressed(cookie); -} - -inline event_token MediaControl::StopPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().StopPressed(handler); -} - -inline factory_event_revoker MediaControl::StopPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_StopPressed, factory.StopPressed(handler) }; -} - -inline void MediaControl::StopPressed(event_token cookie) -{ - get_activation_factory().StopPressed(cookie); -} - -inline event_token MediaControl::PlayPauseTogglePressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().PlayPauseTogglePressed(handler); -} - -inline factory_event_revoker MediaControl::PlayPauseTogglePressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_PlayPauseTogglePressed, factory.PlayPauseTogglePressed(handler) }; -} - -inline void MediaControl::PlayPauseTogglePressed(event_token cookie) -{ - get_activation_factory().PlayPauseTogglePressed(cookie); -} - -inline event_token MediaControl::RecordPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().RecordPressed(handler); -} - -inline factory_event_revoker MediaControl::RecordPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_RecordPressed, factory.RecordPressed(handler) }; -} - -inline void MediaControl::RecordPressed(event_token cookie) -{ - get_activation_factory().RecordPressed(cookie); -} - -inline event_token MediaControl::NextTrackPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().NextTrackPressed(handler); -} - -inline factory_event_revoker MediaControl::NextTrackPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_NextTrackPressed, factory.NextTrackPressed(handler) }; -} - -inline void MediaControl::NextTrackPressed(event_token cookie) -{ - get_activation_factory().NextTrackPressed(cookie); -} - -inline event_token MediaControl::PreviousTrackPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().PreviousTrackPressed(handler); -} - -inline factory_event_revoker MediaControl::PreviousTrackPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_PreviousTrackPressed, factory.PreviousTrackPressed(handler) }; -} - -inline void MediaControl::PreviousTrackPressed(event_token cookie) -{ - get_activation_factory().PreviousTrackPressed(cookie); -} - -inline event_token MediaControl::FastForwardPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().FastForwardPressed(handler); -} - -inline factory_event_revoker MediaControl::FastForwardPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_FastForwardPressed, factory.FastForwardPressed(handler) }; -} - -inline void MediaControl::FastForwardPressed(event_token cookie) -{ - get_activation_factory().FastForwardPressed(cookie); -} - -inline event_token MediaControl::RewindPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().RewindPressed(handler); -} - -inline factory_event_revoker MediaControl::RewindPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_RewindPressed, factory.RewindPressed(handler) }; -} - -inline void MediaControl::RewindPressed(event_token cookie) -{ - get_activation_factory().RewindPressed(cookie); -} - -inline event_token MediaControl::ChannelUpPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().ChannelUpPressed(handler); -} - -inline factory_event_revoker MediaControl::ChannelUpPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_ChannelUpPressed, factory.ChannelUpPressed(handler) }; -} - -inline void MediaControl::ChannelUpPressed(event_token cookie) -{ - get_activation_factory().ChannelUpPressed(cookie); -} - -inline event_token MediaControl::ChannelDownPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().ChannelDownPressed(handler); -} - -inline factory_event_revoker MediaControl::ChannelDownPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Media::IMediaControl::remove_ChannelDownPressed, factory.ChannelDownPressed(handler) }; -} - -inline void MediaControl::ChannelDownPressed(event_token cookie) -{ - get_activation_factory().ChannelDownPressed(cookie); -} - -inline Windows::Media::SoundLevel MediaControl::SoundLevel() -{ - return get_activation_factory().SoundLevel(); -} - -inline void MediaControl::TrackName(hstring_ref value) -{ - get_activation_factory().TrackName(value); -} - -inline hstring MediaControl::TrackName() -{ - return get_activation_factory().TrackName(); -} - -inline void MediaControl::ArtistName(hstring_ref value) -{ - get_activation_factory().ArtistName(value); -} - -inline hstring MediaControl::ArtistName() -{ - return get_activation_factory().ArtistName(); -} - -inline void MediaControl::IsPlaying(bool value) -{ - get_activation_factory().IsPlaying(value); -} - -inline bool MediaControl::IsPlaying() -{ - return get_activation_factory().IsPlaying(); -} - -inline void MediaControl::AlbumArt(const Windows::Foundation::Uri & value) -{ - get_activation_factory().AlbumArt(value); -} - -inline Windows::Foundation::Uri MediaControl::AlbumArt() -{ - return get_activation_factory().AlbumArt(); -} - -inline MediaExtensionManager::MediaExtensionManager() : - MediaExtensionManager(activate_instance()) -{} - -inline hstring MediaMarkerTypes::Bookmark() -{ - return get_activation_factory().Bookmark(); -} - -inline MediaTimelineController::MediaTimelineController() : - MediaTimelineController(activate_instance()) -{} - -inline Windows::Media::SystemMediaTransportControls SystemMediaTransportControls::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline SystemMediaTransportControlsTimelineProperties::SystemMediaTransportControlsTimelineProperties() : - SystemMediaTransportControlsTimelineProperties(activate_instance()) -{} - -inline hstring VideoEffects::VideoStabilization() -{ - return get_activation_factory().VideoStabilization(); -} - -inline VideoFrame::VideoFrame(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height) : - VideoFrame(get_activation_factory().Create(format, width, height)) -{} - -inline VideoFrame::VideoFrame(Windows::Graphics::Imaging::BitmapPixelFormat format, int32_t width, int32_t height, Windows::Graphics::Imaging::BitmapAlphaMode alpha) : - VideoFrame(get_activation_factory().CreateWithAlpha(format, width, height, alpha)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Networking.BackgroundTransfer.h b/10.0.14393.0/winrt/Windows.Networking.BackgroundTransfer.h deleted file mode 100644 index 8266ab1ad..000000000 --- a/10.0.14393.0/winrt/Windows.Networking.BackgroundTransfer.h +++ /dev/null @@ -1,2204 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Security.Credentials.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.UI.Notifications.3.h" -#include "internal/Windows.Web.3.h" -#include "internal/Windows.ApplicationModel.Background.3.h" -#include "internal/Windows.Networking.BackgroundTransfer.3.h" -#include "Windows.Networking.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateDownload(abi_arg_in uri, abi_arg_in resultFile, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateDownload(*reinterpret_cast(&uri), *reinterpret_cast(&resultFile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDownloadFromFile(abi_arg_in uri, abi_arg_in resultFile, abi_arg_in requestBodyFile, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateDownload(*reinterpret_cast(&uri), *reinterpret_cast(&resultFile), *reinterpret_cast(&requestBodyFile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDownloadAsync(abi_arg_in uri, abi_arg_in resultFile, abi_arg_in requestBodyStream, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateDownloadAsync(*reinterpret_cast(&uri), *reinterpret_cast(&resultFile), *reinterpret_cast(&requestBodyStream))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TransferGroup(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransferGroup()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransferGroup(abi_arg_in value) noexcept override - { - try - { - this->shim().TransferGroup(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuccessToastNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SuccessToastNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuccessToastNotification(abi_arg_in value) noexcept override - { - try - { - this->shim().SuccessToastNotification(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FailureToastNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FailureToastNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FailureToastNotification(abi_arg_in value) noexcept override - { - try - { - this->shim().FailureToastNotification(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuccessTileNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SuccessTileNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuccessTileNotification(abi_arg_in value) noexcept override - { - try - { - this->shim().SuccessTileNotification(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FailureTileNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FailureTileNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FailureTileNotification(abi_arg_in value) noexcept override - { - try - { - this->shim().FailureTileNotification(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CompletionGroup(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompletionGroup()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithCompletionGroup(abi_arg_in completionGroup, abi_arg_out backgroundDownloader) noexcept override - { - try - { - *backgroundDownloader = detach(this->shim().CreateWithCompletionGroup(*reinterpret_cast(&completionGroup))); - return S_OK; - } - catch (...) - { - *backgroundDownloader = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentDownloadsAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCurrentDownloadsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentDownloadsForGroupAsync(abi_arg_in group, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCurrentDownloadsAsync(*reinterpret_cast(&group))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentDownloadsForTransferGroupAsync(abi_arg_in group, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCurrentDownloadsForTransferGroupAsync(*reinterpret_cast(&group))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestUnconstrainedDownloadsAsync(abi_arg_in> operations, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestUnconstrainedDownloadsAsync(*reinterpret_cast *>(&operations))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetRequestHeader(abi_arg_in headerName, abi_arg_in headerValue) noexcept override - { - try - { - this->shim().SetRequestHeader(*reinterpret_cast(&headerName), *reinterpret_cast(&headerValue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerCredential(abi_arg_out credential) noexcept override - { - try - { - *credential = detach(this->shim().ServerCredential()); - return S_OK; - } - catch (...) - { - *credential = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ServerCredential(abi_arg_in credential) noexcept override - { - try - { - this->shim().ServerCredential(*reinterpret_cast(&credential)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProxyCredential(abi_arg_out credential) noexcept override - { - try - { - *credential = detach(this->shim().ProxyCredential()); - return S_OK; - } - catch (...) - { - *credential = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProxyCredential(abi_arg_in credential) noexcept override - { - try - { - this->shim().ProxyCredential(*reinterpret_cast(&credential)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Method(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Method()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Method(abi_arg_in value) noexcept override - { - try - { - this->shim().Method(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Group(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Group()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Group(abi_arg_in value) noexcept override - { - try - { - this->shim().Group(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CostPolicy(Windows::Networking::BackgroundTransfer::BackgroundTransferCostPolicy * value) noexcept override - { - try - { - *value = detach(this->shim().CostPolicy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CostPolicy(Windows::Networking::BackgroundTransfer::BackgroundTransferCostPolicy value) noexcept override - { - try - { - this->shim().CostPolicy(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Trigger(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Trigger()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Enable() noexcept override - { - try - { - this->shim().Enable(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Downloads(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Downloads()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Uploads(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Uploads()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetHeader(abi_arg_in headerName, abi_arg_in headerValue) noexcept override - { - try - { - this->shim().SetHeader(*reinterpret_cast(&headerName), *reinterpret_cast(&headerValue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetText(abi_arg_in value) noexcept override - { - try - { - this->shim().SetText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetFile(abi_arg_in value) noexcept override - { - try - { - this->shim().SetFile(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithName(abi_arg_in name, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithName(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithNameAndFileName(abi_arg_in name, abi_arg_in fileName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithNameAndFileName(*reinterpret_cast(&name), *reinterpret_cast(&fileName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetStatus(int32_t hresult, Windows::Web::WebErrorStatus * status) noexcept override - { - try - { - *status = detach(this->shim().GetStatus(hresult)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransferBehavior(Windows::Networking::BackgroundTransfer::BackgroundTransferBehavior * value) noexcept override - { - try - { - *value = detach(this->shim().TransferBehavior()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransferBehavior(Windows::Networking::BackgroundTransfer::BackgroundTransferBehavior value) noexcept override - { - try - { - this->shim().TransferBehavior(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateGroup(abi_arg_in name, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateGroup(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Guid(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Guid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequestedUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RequestedUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Method(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Method()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Group(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Group()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CostPolicy(Windows::Networking::BackgroundTransfer::BackgroundTransferCostPolicy * value) noexcept override - { - try - { - *value = detach(this->shim().CostPolicy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CostPolicy(Windows::Networking::BackgroundTransfer::BackgroundTransferCostPolicy value) noexcept override - { - try - { - this->shim().CostPolicy(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetResultStreamAt(uint64_t position, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetResultStreamAt(position)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetResponseInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetResponseInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Priority(Windows::Networking::BackgroundTransfer::BackgroundTransferPriority * value) noexcept override - { - try - { - *value = detach(this->shim().Priority()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Priority(Windows::Networking::BackgroundTransfer::BackgroundTransferPriority value) noexcept override - { - try - { - this->shim().Priority(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateUpload(abi_arg_in uri, abi_arg_in sourceFile, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateUpload(*reinterpret_cast(&uri), *reinterpret_cast(&sourceFile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUploadFromStreamAsync(abi_arg_in uri, abi_arg_in sourceStream, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateUploadFromStreamAsync(*reinterpret_cast(&uri), *reinterpret_cast(&sourceStream))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUploadWithFormDataAndAutoBoundaryAsync(abi_arg_in uri, abi_arg_in> parts, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateUploadAsync(*reinterpret_cast(&uri), *reinterpret_cast *>(&parts))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUploadWithSubTypeAsync(abi_arg_in uri, abi_arg_in> parts, abi_arg_in subType, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateUploadAsync(*reinterpret_cast(&uri), *reinterpret_cast *>(&parts), *reinterpret_cast(&subType))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateUploadWithSubTypeAndBoundaryAsync(abi_arg_in uri, abi_arg_in> parts, abi_arg_in subType, abi_arg_in boundary, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateUploadAsync(*reinterpret_cast(&uri), *reinterpret_cast *>(&parts), *reinterpret_cast(&subType), *reinterpret_cast(&boundary))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TransferGroup(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransferGroup()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransferGroup(abi_arg_in value) noexcept override - { - try - { - this->shim().TransferGroup(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuccessToastNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SuccessToastNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuccessToastNotification(abi_arg_in value) noexcept override - { - try - { - this->shim().SuccessToastNotification(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FailureToastNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FailureToastNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FailureToastNotification(abi_arg_in value) noexcept override - { - try - { - this->shim().FailureToastNotification(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuccessTileNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SuccessTileNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuccessTileNotification(abi_arg_in value) noexcept override - { - try - { - this->shim().SuccessTileNotification(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FailureTileNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FailureTileNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FailureTileNotification(abi_arg_in value) noexcept override - { - try - { - this->shim().FailureTileNotification(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CompletionGroup(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompletionGroup()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithCompletionGroup(abi_arg_in completionGroup, abi_arg_out backgroundUploader) noexcept override - { - try - { - *backgroundUploader = detach(this->shim().CreateWithCompletionGroup(*reinterpret_cast(&completionGroup))); - return S_OK; - } - catch (...) - { - *backgroundUploader = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentUploadsAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCurrentUploadsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentUploadsForGroupAsync(abi_arg_in group, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCurrentUploadsAsync(*reinterpret_cast(&group))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentUploadsForTransferGroupAsync(abi_arg_in group, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCurrentUploadsForTransferGroupAsync(*reinterpret_cast(&group))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestUnconstrainedUploadsAsync(abi_arg_in> operations, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestUnconstrainedUploadsAsync(*reinterpret_cast *>(&operations))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentUris(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ContentUris()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IndirectContentUri(abi_arg_in value) noexcept override - { - try - { - this->shim().IndirectContentUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IndirectContentUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IndirectContentUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LastSuccessfulPrefetchTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LastSuccessfulPrefetchTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResultFile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResultFile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Progress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Progress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().StartAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AttachAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().AttachAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Pause() noexcept override - { - try - { - this->shim().Pause(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Resume() noexcept override - { - try - { - this->shim().Resume(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TransferGroup(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransferGroup()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsResumable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsResumable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActualUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActualUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StatusCode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StatusCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Headers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Headers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsUnconstrained(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsUnconstrained()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceFile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceFile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Progress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Progress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().StartAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AttachAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().AttachAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TransferGroup(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransferGroup()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Networking::BackgroundTransfer { - -template void impl_IBackgroundTransferBase::SetRequestHeader(hstring_ref headerName, hstring_ref headerValue) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetRequestHeader(get(headerName), get(headerValue))); -} - -template Windows::Security::Credentials::PasswordCredential impl_IBackgroundTransferBase::ServerCredential() const -{ - Windows::Security::Credentials::PasswordCredential credential { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ServerCredential(put(credential))); - return credential; -} - -template void impl_IBackgroundTransferBase::ServerCredential(const Windows::Security::Credentials::PasswordCredential & credential) const -{ - check_hresult(static_cast(static_cast(*this))->put_ServerCredential(get(credential))); -} - -template Windows::Security::Credentials::PasswordCredential impl_IBackgroundTransferBase::ProxyCredential() const -{ - Windows::Security::Credentials::PasswordCredential credential { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProxyCredential(put(credential))); - return credential; -} - -template void impl_IBackgroundTransferBase::ProxyCredential(const Windows::Security::Credentials::PasswordCredential & credential) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProxyCredential(get(credential))); -} - -template hstring impl_IBackgroundTransferBase::Method() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Method(put(value))); - return value; -} - -template void impl_IBackgroundTransferBase::Method(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Method(get(value))); -} - -template hstring impl_IBackgroundTransferBase::Group() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Group(put(value))); - return value; -} - -template void impl_IBackgroundTransferBase::Group(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Group(get(value))); -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferCostPolicy impl_IBackgroundTransferBase::CostPolicy() const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferCostPolicy value {}; - check_hresult(static_cast(static_cast(*this))->get_CostPolicy(&value)); - return value; -} - -template void impl_IBackgroundTransferBase::CostPolicy(Windows::Networking::BackgroundTransfer::BackgroundTransferCostPolicy value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CostPolicy(value)); -} - -template bool impl_IUnconstrainedTransferRequestResult::IsUnconstrained() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsUnconstrained(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IBackgroundDownloaderUserConsent::RequestUnconstrainedDownloadsAsync(const Windows::Foundation::Collections::IIterable & operations) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestUnconstrainedDownloadsAsync(get(operations), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBackgroundUploaderUserConsent::RequestUnconstrainedUploadsAsync(const Windows::Foundation::Collections::IIterable & operations) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestUnconstrainedUploadsAsync(get(operations), put(operation))); - return operation; -} - -template Windows::Networking::BackgroundTransfer::DownloadOperation impl_IBackgroundDownloader::CreateDownload(const Windows::Foundation::Uri & uri, const Windows::Storage::IStorageFile & resultFile) const -{ - Windows::Networking::BackgroundTransfer::DownloadOperation operation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDownload(get(uri), get(resultFile), put(operation))); - return operation; -} - -template Windows::Networking::BackgroundTransfer::DownloadOperation impl_IBackgroundDownloader::CreateDownload(const Windows::Foundation::Uri & uri, const Windows::Storage::IStorageFile & resultFile, const Windows::Storage::IStorageFile & requestBodyFile) const -{ - Windows::Networking::BackgroundTransfer::DownloadOperation operation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDownloadFromFile(get(uri), get(resultFile), get(requestBodyFile), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBackgroundDownloader::CreateDownloadAsync(const Windows::Foundation::Uri & uri, const Windows::Storage::IStorageFile & resultFile, const Windows::Storage::Streams::IInputStream & requestBodyStream) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateDownloadAsync(get(uri), get(resultFile), get(requestBodyStream), put(operation))); - return operation; -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferGroup impl_IBackgroundDownloader2::TransferGroup() const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferGroup value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TransferGroup(put(value))); - return value; -} - -template void impl_IBackgroundDownloader2::TransferGroup(const Windows::Networking::BackgroundTransfer::BackgroundTransferGroup & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransferGroup(get(value))); -} - -template Windows::UI::Notifications::ToastNotification impl_IBackgroundDownloader2::SuccessToastNotification() const -{ - Windows::UI::Notifications::ToastNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SuccessToastNotification(put(value))); - return value; -} - -template void impl_IBackgroundDownloader2::SuccessToastNotification(const Windows::UI::Notifications::ToastNotification & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuccessToastNotification(get(value))); -} - -template Windows::UI::Notifications::ToastNotification impl_IBackgroundDownloader2::FailureToastNotification() const -{ - Windows::UI::Notifications::ToastNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FailureToastNotification(put(value))); - return value; -} - -template void impl_IBackgroundDownloader2::FailureToastNotification(const Windows::UI::Notifications::ToastNotification & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FailureToastNotification(get(value))); -} - -template Windows::UI::Notifications::TileNotification impl_IBackgroundDownloader2::SuccessTileNotification() const -{ - Windows::UI::Notifications::TileNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SuccessTileNotification(put(value))); - return value; -} - -template void impl_IBackgroundDownloader2::SuccessTileNotification(const Windows::UI::Notifications::TileNotification & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuccessTileNotification(get(value))); -} - -template Windows::UI::Notifications::TileNotification impl_IBackgroundDownloader2::FailureTileNotification() const -{ - Windows::UI::Notifications::TileNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FailureTileNotification(put(value))); - return value; -} - -template void impl_IBackgroundDownloader2::FailureTileNotification(const Windows::UI::Notifications::TileNotification & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FailureTileNotification(get(value))); -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferCompletionGroup impl_IBackgroundDownloader3::CompletionGroup() const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferCompletionGroup value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CompletionGroup(put(value))); - return value; -} - -template Windows::Networking::BackgroundTransfer::UploadOperation impl_IBackgroundUploader::CreateUpload(const Windows::Foundation::Uri & uri, const Windows::Storage::IStorageFile & sourceFile) const -{ - Windows::Networking::BackgroundTransfer::UploadOperation operation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateUpload(get(uri), get(sourceFile), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBackgroundUploader::CreateUploadFromStreamAsync(const Windows::Foundation::Uri & uri, const Windows::Storage::Streams::IInputStream & sourceStream) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateUploadFromStreamAsync(get(uri), get(sourceStream), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBackgroundUploader::CreateUploadAsync(const Windows::Foundation::Uri & uri, const Windows::Foundation::Collections::IIterable & parts) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateUploadWithFormDataAndAutoBoundaryAsync(get(uri), get(parts), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBackgroundUploader::CreateUploadAsync(const Windows::Foundation::Uri & uri, const Windows::Foundation::Collections::IIterable & parts, hstring_ref subType) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateUploadWithSubTypeAsync(get(uri), get(parts), get(subType), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IBackgroundUploader::CreateUploadAsync(const Windows::Foundation::Uri & uri, const Windows::Foundation::Collections::IIterable & parts, hstring_ref subType, hstring_ref boundary) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateUploadWithSubTypeAndBoundaryAsync(get(uri), get(parts), get(subType), get(boundary), put(operation))); - return operation; -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferGroup impl_IBackgroundUploader2::TransferGroup() const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferGroup value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TransferGroup(put(value))); - return value; -} - -template void impl_IBackgroundUploader2::TransferGroup(const Windows::Networking::BackgroundTransfer::BackgroundTransferGroup & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransferGroup(get(value))); -} - -template Windows::UI::Notifications::ToastNotification impl_IBackgroundUploader2::SuccessToastNotification() const -{ - Windows::UI::Notifications::ToastNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SuccessToastNotification(put(value))); - return value; -} - -template void impl_IBackgroundUploader2::SuccessToastNotification(const Windows::UI::Notifications::ToastNotification & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuccessToastNotification(get(value))); -} - -template Windows::UI::Notifications::ToastNotification impl_IBackgroundUploader2::FailureToastNotification() const -{ - Windows::UI::Notifications::ToastNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FailureToastNotification(put(value))); - return value; -} - -template void impl_IBackgroundUploader2::FailureToastNotification(const Windows::UI::Notifications::ToastNotification & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FailureToastNotification(get(value))); -} - -template Windows::UI::Notifications::TileNotification impl_IBackgroundUploader2::SuccessTileNotification() const -{ - Windows::UI::Notifications::TileNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SuccessTileNotification(put(value))); - return value; -} - -template void impl_IBackgroundUploader2::SuccessTileNotification(const Windows::UI::Notifications::TileNotification & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuccessTileNotification(get(value))); -} - -template Windows::UI::Notifications::TileNotification impl_IBackgroundUploader2::FailureTileNotification() const -{ - Windows::UI::Notifications::TileNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FailureTileNotification(put(value))); - return value; -} - -template void impl_IBackgroundUploader2::FailureTileNotification(const Windows::UI::Notifications::TileNotification & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FailureTileNotification(get(value))); -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferCompletionGroup impl_IBackgroundUploader3::CompletionGroup() const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferCompletionGroup value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CompletionGroup(put(value))); - return value; -} - -template GUID impl_IBackgroundTransferOperation::Guid() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Guid(&value)); - return value; -} - -template Windows::Foundation::Uri impl_IBackgroundTransferOperation::RequestedUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RequestedUri(put(value))); - return value; -} - -template hstring impl_IBackgroundTransferOperation::Method() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Method(put(value))); - return value; -} - -template hstring impl_IBackgroundTransferOperation::Group() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Group(put(value))); - return value; -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferCostPolicy impl_IBackgroundTransferOperation::CostPolicy() const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferCostPolicy value {}; - check_hresult(static_cast(static_cast(*this))->get_CostPolicy(&value)); - return value; -} - -template void impl_IBackgroundTransferOperation::CostPolicy(Windows::Networking::BackgroundTransfer::BackgroundTransferCostPolicy value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CostPolicy(value)); -} - -template Windows::Storage::Streams::IInputStream impl_IBackgroundTransferOperation::GetResultStreamAt(uint64_t position) const -{ - Windows::Storage::Streams::IInputStream value; - check_hresult(static_cast(static_cast(*this))->abi_GetResultStreamAt(position, put(value))); - return value; -} - -template Windows::Networking::BackgroundTransfer::ResponseInformation impl_IBackgroundTransferOperation::GetResponseInformation() const -{ - Windows::Networking::BackgroundTransfer::ResponseInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetResponseInformation(put(value))); - return value; -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferPriority impl_IBackgroundTransferOperationPriority::Priority() const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferPriority value {}; - check_hresult(static_cast(static_cast(*this))->get_Priority(&value)); - return value; -} - -template void impl_IBackgroundTransferOperationPriority::Priority(Windows::Networking::BackgroundTransfer::BackgroundTransferPriority value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Priority(value)); -} - -template Windows::Storage::IStorageFile impl_IDownloadOperation::ResultFile() const -{ - Windows::Storage::IStorageFile value; - check_hresult(static_cast(static_cast(*this))->get_ResultFile(put(value))); - return value; -} - -template Windows::Networking::BackgroundTransfer::BackgroundDownloadProgress impl_IDownloadOperation::Progress() const -{ - Windows::Networking::BackgroundTransfer::BackgroundDownloadProgress value {}; - check_hresult(static_cast(static_cast(*this))->get_Progress(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IDownloadOperation::StartAsync() const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_StartAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IDownloadOperation::AttachAsync() const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_AttachAsync(put(operation))); - return operation; -} - -template void impl_IDownloadOperation::Pause() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Pause()); -} - -template void impl_IDownloadOperation::Resume() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Resume()); -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferGroup impl_IDownloadOperation2::TransferGroup() const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferGroup value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TransferGroup(put(value))); - return value; -} - -template Windows::Storage::IStorageFile impl_IUploadOperation::SourceFile() const -{ - Windows::Storage::IStorageFile value; - check_hresult(static_cast(static_cast(*this))->get_SourceFile(put(value))); - return value; -} - -template Windows::Networking::BackgroundTransfer::BackgroundUploadProgress impl_IUploadOperation::Progress() const -{ - Windows::Networking::BackgroundTransfer::BackgroundUploadProgress value {}; - check_hresult(static_cast(static_cast(*this))->get_Progress(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IUploadOperation::StartAsync() const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_StartAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IUploadOperation::AttachAsync() const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_AttachAsync(put(operation))); - return operation; -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferGroup impl_IUploadOperation2::TransferGroup() const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferGroup value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TransferGroup(put(value))); - return value; -} - -template Windows::Networking::BackgroundTransfer::BackgroundDownloader impl_IBackgroundDownloaderFactory::CreateWithCompletionGroup(const Windows::Networking::BackgroundTransfer::BackgroundTransferCompletionGroup & completionGroup) const -{ - Windows::Networking::BackgroundTransfer::BackgroundDownloader backgroundDownloader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithCompletionGroup(get(completionGroup), put(backgroundDownloader))); - return backgroundDownloader; -} - -template Windows::Foundation::IAsyncOperation> impl_IBackgroundDownloaderStaticMethods::GetCurrentDownloadsAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentDownloadsAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IBackgroundDownloaderStaticMethods::GetCurrentDownloadsAsync(hstring_ref group) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentDownloadsForGroupAsync(get(group), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IBackgroundDownloaderStaticMethods2::GetCurrentDownloadsForTransferGroupAsync(const Windows::Networking::BackgroundTransfer::BackgroundTransferGroup & group) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentDownloadsForTransferGroupAsync(get(group), put(operation))); - return operation; -} - -template Windows::Networking::BackgroundTransfer::BackgroundUploader impl_IBackgroundUploaderFactory::CreateWithCompletionGroup(const Windows::Networking::BackgroundTransfer::BackgroundTransferCompletionGroup & completionGroup) const -{ - Windows::Networking::BackgroundTransfer::BackgroundUploader backgroundUploader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithCompletionGroup(get(completionGroup), put(backgroundUploader))); - return backgroundUploader; -} - -template Windows::Foundation::IAsyncOperation> impl_IBackgroundUploaderStaticMethods::GetCurrentUploadsAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentUploadsAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IBackgroundUploaderStaticMethods::GetCurrentUploadsAsync(hstring_ref group) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentUploadsForGroupAsync(get(group), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IBackgroundUploaderStaticMethods2::GetCurrentUploadsForTransferGroupAsync(const Windows::Networking::BackgroundTransfer::BackgroundTransferGroup & group) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentUploadsForTransferGroupAsync(get(group), put(operation))); - return operation; -} - -template bool impl_IResponseInformation::IsResumable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsResumable(&value)); - return value; -} - -template Windows::Foundation::Uri impl_IResponseInformation::ActualUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ActualUri(put(value))); - return value; -} - -template uint32_t impl_IResponseInformation::StatusCode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StatusCode(&value)); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IResponseInformation::Headers() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Headers(put(value))); - return value; -} - -template Windows::Web::WebErrorStatus impl_IBackgroundTransferErrorStaticMethods::GetStatus(int32_t hresult) const -{ - Windows::Web::WebErrorStatus status {}; - check_hresult(static_cast(static_cast(*this))->abi_GetStatus(hresult, &status)); - return status; -} - -template void impl_IBackgroundTransferContentPart::SetHeader(hstring_ref headerName, hstring_ref headerValue) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetHeader(get(headerName), get(headerValue))); -} - -template void impl_IBackgroundTransferContentPart::SetText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetText(get(value))); -} - -template void impl_IBackgroundTransferContentPart::SetFile(const Windows::Storage::IStorageFile & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFile(get(value))); -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferContentPart impl_IBackgroundTransferContentPartFactory::CreateWithName(hstring_ref name) const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferContentPart value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithName(get(name), put(value))); - return value; -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferContentPart impl_IBackgroundTransferContentPartFactory::CreateWithNameAndFileName(hstring_ref name, hstring_ref fileName) const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferContentPart value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithNameAndFileName(get(name), get(fileName), put(value))); - return value; -} - -template hstring impl_IBackgroundTransferGroup::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferBehavior impl_IBackgroundTransferGroup::TransferBehavior() const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferBehavior value {}; - check_hresult(static_cast(static_cast(*this))->get_TransferBehavior(&value)); - return value; -} - -template void impl_IBackgroundTransferGroup::TransferBehavior(Windows::Networking::BackgroundTransfer::BackgroundTransferBehavior value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransferBehavior(value)); -} - -template Windows::Networking::BackgroundTransfer::BackgroundTransferGroup impl_IBackgroundTransferGroupStatics::CreateGroup(hstring_ref name) const -{ - Windows::Networking::BackgroundTransfer::BackgroundTransferGroup value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateGroup(get(name), put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IContentPrefetcherTime::LastSuccessfulPrefetchTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_LastSuccessfulPrefetchTime(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IContentPrefetcher::ContentUris() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ContentUris(put(value))); - return value; -} - -template void impl_IContentPrefetcher::IndirectContentUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IndirectContentUri(get(value))); -} - -template Windows::Foundation::Uri impl_IContentPrefetcher::IndirectContentUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IndirectContentUri(put(value))); - return value; -} - -template Windows::ApplicationModel::Background::IBackgroundTrigger impl_IBackgroundTransferCompletionGroup::Trigger() const -{ - Windows::ApplicationModel::Background::IBackgroundTrigger value; - check_hresult(static_cast(static_cast(*this))->get_Trigger(put(value))); - return value; -} - -template bool impl_IBackgroundTransferCompletionGroup::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_IBackgroundTransferCompletionGroup::Enable() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Enable()); -} - -template Windows::Foundation::Collections::IVectorView impl_IBackgroundTransferCompletionGroupTriggerDetails::Downloads() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Downloads(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IBackgroundTransferCompletionGroupTriggerDetails::Uploads() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Uploads(put(value))); - return value; -} - -inline BackgroundDownloader::BackgroundDownloader() : - BackgroundDownloader(activate_instance()) -{} - -inline BackgroundDownloader::BackgroundDownloader(const Windows::Networking::BackgroundTransfer::BackgroundTransferCompletionGroup & completionGroup) : - BackgroundDownloader(get_activation_factory().CreateWithCompletionGroup(completionGroup)) -{} - -inline Windows::Foundation::IAsyncOperation> BackgroundDownloader::GetCurrentDownloadsAsync() -{ - return get_activation_factory().GetCurrentDownloadsAsync(); -} - -inline Windows::Foundation::IAsyncOperation> BackgroundDownloader::GetCurrentDownloadsAsync(hstring_ref group) -{ - return get_activation_factory().GetCurrentDownloadsAsync(group); -} - -inline Windows::Foundation::IAsyncOperation> BackgroundDownloader::GetCurrentDownloadsForTransferGroupAsync(const Windows::Networking::BackgroundTransfer::BackgroundTransferGroup & group) -{ - return get_activation_factory().GetCurrentDownloadsForTransferGroupAsync(group); -} - -inline Windows::Foundation::IAsyncOperation BackgroundDownloader::RequestUnconstrainedDownloadsAsync(const Windows::Foundation::Collections::IIterable & operations) -{ - return get_activation_factory().RequestUnconstrainedDownloadsAsync(operations); -} - -inline BackgroundTransferCompletionGroup::BackgroundTransferCompletionGroup() : - BackgroundTransferCompletionGroup(activate_instance()) -{} - -inline BackgroundTransferContentPart::BackgroundTransferContentPart() : - BackgroundTransferContentPart(activate_instance()) -{} - -inline BackgroundTransferContentPart::BackgroundTransferContentPart(hstring_ref name) : - BackgroundTransferContentPart(get_activation_factory().CreateWithName(name)) -{} - -inline BackgroundTransferContentPart::BackgroundTransferContentPart(hstring_ref name, hstring_ref fileName) : - BackgroundTransferContentPart(get_activation_factory().CreateWithNameAndFileName(name, fileName)) -{} - -inline Windows::Web::WebErrorStatus BackgroundTransferError::GetStatus(int32_t hresult) -{ - return get_activation_factory().GetStatus(hresult); -} - -inline Windows::Networking::BackgroundTransfer::BackgroundTransferGroup BackgroundTransferGroup::CreateGroup(hstring_ref name) -{ - return get_activation_factory().CreateGroup(name); -} - -inline BackgroundUploader::BackgroundUploader() : - BackgroundUploader(activate_instance()) -{} - -inline BackgroundUploader::BackgroundUploader(const Windows::Networking::BackgroundTransfer::BackgroundTransferCompletionGroup & completionGroup) : - BackgroundUploader(get_activation_factory().CreateWithCompletionGroup(completionGroup)) -{} - -inline Windows::Foundation::IAsyncOperation> BackgroundUploader::GetCurrentUploadsAsync() -{ - return get_activation_factory().GetCurrentUploadsAsync(); -} - -inline Windows::Foundation::IAsyncOperation> BackgroundUploader::GetCurrentUploadsAsync(hstring_ref group) -{ - return get_activation_factory().GetCurrentUploadsAsync(group); -} - -inline Windows::Foundation::IAsyncOperation> BackgroundUploader::GetCurrentUploadsForTransferGroupAsync(const Windows::Networking::BackgroundTransfer::BackgroundTransferGroup & group) -{ - return get_activation_factory().GetCurrentUploadsForTransferGroupAsync(group); -} - -inline Windows::Foundation::IAsyncOperation BackgroundUploader::RequestUnconstrainedUploadsAsync(const Windows::Foundation::Collections::IIterable & operations) -{ - return get_activation_factory().RequestUnconstrainedUploadsAsync(operations); -} - -inline Windows::Foundation::Collections::IVector ContentPrefetcher::ContentUris() -{ - return get_activation_factory().ContentUris(); -} - -inline void ContentPrefetcher::IndirectContentUri(const Windows::Foundation::Uri & value) -{ - get_activation_factory().IndirectContentUri(value); -} - -inline Windows::Foundation::Uri ContentPrefetcher::IndirectContentUri() -{ - return get_activation_factory().IndirectContentUri(); -} - -inline Windows::Foundation::IReference ContentPrefetcher::LastSuccessfulPrefetchTime() -{ - return get_activation_factory().LastSuccessfulPrefetchTime(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Networking.Connectivity.h b/10.0.14393.0/winrt/Windows.Networking.Connectivity.h deleted file mode 100644 index a356681a1..000000000 --- a/10.0.14393.0/winrt/Windows.Networking.Connectivity.h +++ /dev/null @@ -1,2714 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Networking.3.h" -#include "internal/Windows.Networking.Connectivity.3.h" -#include "Windows.Networking.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Networking::Connectivity { - -template NetworkStatusChangedEventHandler::NetworkStatusChangedEventHandler(L lambda) : - NetworkStatusChangedEventHandler(impl::make_delegate, NetworkStatusChangedEventHandler>(std::forward(lambda))) -{} - -template NetworkStatusChangedEventHandler::NetworkStatusChangedEventHandler(F * function) : - NetworkStatusChangedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template NetworkStatusChangedEventHandler::NetworkStatusChangedEventHandler(O * object, M method) : - NetworkStatusChangedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void NetworkStatusChangedEventHandler::operator()(const Windows::IInspectable & sender) const -{ - check_hresult((*this)->abi_Invoke(get(sender))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BytesSent(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BytesSent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BytesReceived(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BytesReceived()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttributionId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AttributionId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttributionName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AttributionName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttributionThumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AttributionThumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProviderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProviderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProviderId(abi_arg_in value) noexcept override - { - try - { - this->shim().ProviderId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccessPointName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccessPointName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AccessPointName(abi_arg_in value) noexcept override - { - try - { - this->shim().AccessPointName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UserName(abi_arg_in value) noexcept override - { - try - { - this->shim().UserName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Password(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Password()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Password(abi_arg_in value) noexcept override - { - try - { - this->shim().Password(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCompressionEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCompressionEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsCompressionEnabled(bool value) noexcept override - { - try - { - this->shim().IsCompressionEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationType(Windows::Networking::Connectivity::CellularApnAuthenticationType * value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AuthenticationType(Windows::Networking::Connectivity::CellularApnAuthenticationType value) noexcept override - { - try - { - this->shim().AuthenticationType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkCostType(Windows::Networking::Connectivity::NetworkCostType * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkCostType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Roaming(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Roaming()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OverDataLimit(bool * value) noexcept override - { - try - { - *value = detach(this->shim().OverDataLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApproachingDataLimit(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ApproachingDataLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BackgroundDataUsageRestricted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundDataUsageRestricted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProfileName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProfileName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNetworkConnectivityLevel(Windows::Networking::Connectivity::NetworkConnectivityLevel * value) noexcept override - { - try - { - *value = detach(this->shim().GetNetworkConnectivityLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNetworkNames(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetNetworkNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConnectionCost(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetConnectionCost()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDataPlanStatus(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDataPlanStatus()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkAdapter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAdapter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLocalUsage(abi_arg_in StartTime, abi_arg_in EndTime, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetLocalUsage(*reinterpret_cast(&StartTime), *reinterpret_cast(&EndTime))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLocalUsagePerRoamingStates(abi_arg_in StartTime, abi_arg_in EndTime, Windows::Networking::Connectivity::RoamingStates States, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetLocalUsage(*reinterpret_cast(&StartTime), *reinterpret_cast(&EndTime), States)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkSecuritySettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkSecuritySettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsWwanConnectionProfile(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsWwanConnectionProfile()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsWlanConnectionProfile(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsWlanConnectionProfile()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WwanConnectionProfileDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WwanConnectionProfileDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WlanConnectionProfileDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WlanConnectionProfileDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceProviderGuid(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServiceProviderGuid()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSignalBars(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetSignalBars()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDomainConnectivityLevel(Windows::Networking::Connectivity::DomainConnectivityLevel * value) noexcept override - { - try - { - *value = detach(this->shim().GetDomainConnectivityLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNetworkUsageAsync(abi_arg_in startTime, abi_arg_in endTime, Windows::Networking::Connectivity::DataUsageGranularity granularity, abi_arg_in states, abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().GetNetworkUsageAsync(*reinterpret_cast(&startTime), *reinterpret_cast(&endTime), granularity, *reinterpret_cast(&states))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConnectivityIntervalsAsync(abi_arg_in startTime, abi_arg_in endTime, abi_arg_in states, abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().GetConnectivityIntervalsAsync(*reinterpret_cast(&startTime), *reinterpret_cast(&endTime), *reinterpret_cast(&states))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAttributedNetworkUsageAsync(abi_arg_in startTime, abi_arg_in endTime, abi_arg_in states, abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().GetAttributedNetworkUsageAsync(*reinterpret_cast(&startTime), *reinterpret_cast(&endTime), *reinterpret_cast(&states))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_IsConnected(bool value) noexcept override - { - try - { - this->shim().IsConnected(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsConnected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsConnected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsWwanConnectionProfile(bool value) noexcept override - { - try - { - this->shim().IsWwanConnectionProfile(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsWwanConnectionProfile(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsWwanConnectionProfile()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsWlanConnectionProfile(bool value) noexcept override - { - try - { - this->shim().IsWlanConnectionProfile(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsWlanConnectionProfile(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsWlanConnectionProfile()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NetworkCostType(Windows::Networking::Connectivity::NetworkCostType value) noexcept override - { - try - { - this->shim().NetworkCostType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkCostType(Windows::Networking::Connectivity::NetworkCostType * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkCostType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ServiceProviderGuid(abi_arg_in> value) noexcept override - { - try - { - this->shim().ServiceProviderGuid(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceProviderGuid(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServiceProviderGuid()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_IsRoaming(abi_arg_in> value) noexcept override - { - try - { - this->shim().IsRoaming(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRoaming(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IsRoaming()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOverDataLimit(abi_arg_in> value) noexcept override - { - try - { - this->shim().IsOverDataLimit(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOverDataLimit(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IsOverDataLimit()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsBackgroundDataUsageRestricted(abi_arg_in> value) noexcept override - { - try - { - this->shim().IsBackgroundDataUsageRestricted(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsBackgroundDataUsageRestricted(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IsBackgroundDataUsageRestricted()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RawData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConnectionProfile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionProfile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartTime(abi_arg_out startTime) noexcept override - { - try - { - *startTime = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionDuration(abi_arg_out duration) noexcept override - { - try - { - *duration = detach(this->shim().ConnectionDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AcquireConnectionAsync(abi_arg_in cellularApnContext, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().AcquireConnectionAsync(*reinterpret_cast(&cellularApnContext))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddHttpRoutePolicy(abi_arg_in routePolicy) noexcept override - { - try - { - this->shim().AddHttpRoutePolicy(*reinterpret_cast(&routePolicy)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveHttpRoutePolicy(abi_arg_in routePolicy) noexcept override - { - try - { - this->shim().RemoveHttpRoutePolicy(*reinterpret_cast(&routePolicy)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DataPlanUsage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataPlanUsage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataLimitInMegabytes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DataLimitInMegabytes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InboundBitsPerSecond(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InboundBitsPerSecond()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutboundBitsPerSecond(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().OutboundBitsPerSecond()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NextBillingCycle(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().NextBillingCycle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxTransferSizeInMegabytes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MaxTransferSizeInMegabytes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MegabytesUsed(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MegabytesUsed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastSyncTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastSyncTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BytesSent(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BytesSent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BytesReceived(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BytesReceived()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkAdapter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAdapter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrefixLength(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PrefixLength()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InfrastructureId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InfrastructureId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PortId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PortId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkAdapterId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAdapterId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OutboundMaxBitsPerSecond(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().OutboundMaxBitsPerSecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InboundMaxBitsPerSecond(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().InboundMaxBitsPerSecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IanaInterfaceType(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IanaInterfaceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkAdapterId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAdapterId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConnectedProfileAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetConnectedProfileAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetConnectionProfiles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetConnectionProfiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInternetConnectionProfile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetInternetConnectionProfile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLanIdentifiers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetLanIdentifiers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHostNames(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetHostNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetProxyConfigurationAsync(abi_arg_in uri, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetProxyConfigurationAsync(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSortedEndpointPairs(abi_arg_in> destinationList, Windows::Networking::HostNameSortOptions sortOptions, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetSortedEndpointPairs(*reinterpret_cast *>(&destinationList), sortOptions)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NetworkStatusChanged(abi_arg_in networkStatusHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().NetworkStatusChanged(*reinterpret_cast(&networkStatusHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NetworkStatusChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().NetworkStatusChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindConnectionProfilesAsync(abi_arg_in pProfileFilter, abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().FindConnectionProfilesAsync(*reinterpret_cast(&pProfileFilter))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNetworkTypes(Windows::Networking::Connectivity::NetworkTypes * value) noexcept override - { - try - { - *value = detach(this->shim().GetNetworkTypes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkAuthenticationType(Windows::Networking::Connectivity::NetworkAuthenticationType * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAuthenticationType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkEncryptionType(Windows::Networking::Connectivity::NetworkEncryptionType * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkEncryptionType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HasNewInternetConnectionProfile(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasNewInternetConnectionProfile()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasNewConnectionCost(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasNewConnectionCost()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasNewNetworkConnectivityLevel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasNewNetworkConnectivityLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasNewDomainConnectivityLevel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasNewDomainConnectivityLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasNewHostNameList(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasNewHostNameList()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasNewWwanRegistrationState(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasNewWwanRegistrationState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HasNewTetheringOperationalState(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasNewTetheringOperationalState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasNewTetheringClientCount(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasNewTetheringClientCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BytesSent(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BytesSent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BytesReceived(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BytesReceived()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionDuration(abi_arg_out duration) noexcept override - { - try - { - *duration = detach(this->shim().ConnectionDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProxyUris(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ProxyUris()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanConnectDirectly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanConnectDirectly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConnectionProfile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionProfile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HostName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HostName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HostNameType(Windows::Networking::DomainNameType * value) noexcept override - { - try - { - *value = detach(this->shim().HostNameType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateRoutePolicy(abi_arg_in connectionProfile, abi_arg_in hostName, Windows::Networking::DomainNameType type, abi_arg_out routePolicy) noexcept override - { - try - { - *routePolicy = detach(this->shim().CreateRoutePolicy(*reinterpret_cast(&connectionProfile), *reinterpret_cast(&hostName), type)); - return S_OK; - } - catch (...) - { - *routePolicy = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetConnectedSsid(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetConnectedSsid()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HomeProviderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HomeProviderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccessPointName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccessPointName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNetworkRegistrationState(Windows::Networking::Connectivity::WwanNetworkRegistrationState * value) noexcept override - { - try - { - *value = detach(this->shim().GetNetworkRegistrationState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentDataClass(Windows::Networking::Connectivity::WwanDataClass * value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentDataClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Networking::Connectivity { - -template uint64_t impl_IDataUsage::BytesSent() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BytesSent(&value)); - return value; -} - -template uint64_t impl_IDataUsage::BytesReceived() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BytesReceived(&value)); - return value; -} - -template uint32_t impl_IDataPlanUsage::MegabytesUsed() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MegabytesUsed(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IDataPlanUsage::LastSyncTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_LastSyncTime(put(value))); - return value; -} - -template Windows::Networking::Connectivity::DataPlanUsage impl_IDataPlanStatus::DataPlanUsage() const -{ - Windows::Networking::Connectivity::DataPlanUsage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DataPlanUsage(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IDataPlanStatus::DataLimitInMegabytes() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_DataLimitInMegabytes(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IDataPlanStatus::InboundBitsPerSecond() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InboundBitsPerSecond(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IDataPlanStatus::OutboundBitsPerSecond() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_OutboundBitsPerSecond(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IDataPlanStatus::NextBillingCycle() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_NextBillingCycle(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IDataPlanStatus::MaxTransferSizeInMegabytes() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_MaxTransferSizeInMegabytes(put(value))); - return value; -} - -template Windows::Networking::Connectivity::NetworkCostType impl_IConnectionCost::NetworkCostType() const -{ - Windows::Networking::Connectivity::NetworkCostType value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkCostType(&value)); - return value; -} - -template bool impl_IConnectionCost::Roaming() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Roaming(&value)); - return value; -} - -template bool impl_IConnectionCost::OverDataLimit() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_OverDataLimit(&value)); - return value; -} - -template bool impl_IConnectionCost::ApproachingDataLimit() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ApproachingDataLimit(&value)); - return value; -} - -template bool impl_IConnectionCost2::BackgroundDataUsageRestricted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundDataUsageRestricted(&value)); - return value; -} - -template Windows::Networking::Connectivity::NetworkAuthenticationType impl_INetworkSecuritySettings::NetworkAuthenticationType() const -{ - Windows::Networking::Connectivity::NetworkAuthenticationType value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkAuthenticationType(&value)); - return value; -} - -template Windows::Networking::Connectivity::NetworkEncryptionType impl_INetworkSecuritySettings::NetworkEncryptionType() const -{ - Windows::Networking::Connectivity::NetworkEncryptionType value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkEncryptionType(&value)); - return value; -} - -template hstring impl_IConnectionProfile::ProfileName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProfileName(put(value))); - return value; -} - -template Windows::Networking::Connectivity::NetworkConnectivityLevel impl_IConnectionProfile::GetNetworkConnectivityLevel() const -{ - Windows::Networking::Connectivity::NetworkConnectivityLevel value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetNetworkConnectivityLevel(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IConnectionProfile::GetNetworkNames() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetNetworkNames(put(value))); - return value; -} - -template Windows::Networking::Connectivity::ConnectionCost impl_IConnectionProfile::GetConnectionCost() const -{ - Windows::Networking::Connectivity::ConnectionCost value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetConnectionCost(put(value))); - return value; -} - -template Windows::Networking::Connectivity::DataPlanStatus impl_IConnectionProfile::GetDataPlanStatus() const -{ - Windows::Networking::Connectivity::DataPlanStatus value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDataPlanStatus(put(value))); - return value; -} - -template Windows::Networking::Connectivity::NetworkAdapter impl_IConnectionProfile::NetworkAdapter() const -{ - Windows::Networking::Connectivity::NetworkAdapter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NetworkAdapter(put(value))); - return value; -} - -template Windows::Networking::Connectivity::DataUsage impl_IConnectionProfile::GetLocalUsage(const Windows::Foundation::DateTime & StartTime, const Windows::Foundation::DateTime & EndTime) const -{ - Windows::Networking::Connectivity::DataUsage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetLocalUsage(get(StartTime), get(EndTime), put(value))); - return value; -} - -template Windows::Networking::Connectivity::DataUsage impl_IConnectionProfile::GetLocalUsage(const Windows::Foundation::DateTime & StartTime, const Windows::Foundation::DateTime & EndTime, Windows::Networking::Connectivity::RoamingStates States) const -{ - Windows::Networking::Connectivity::DataUsage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetLocalUsagePerRoamingStates(get(StartTime), get(EndTime), States, put(value))); - return value; -} - -template Windows::Networking::Connectivity::NetworkSecuritySettings impl_IConnectionProfile::NetworkSecuritySettings() const -{ - Windows::Networking::Connectivity::NetworkSecuritySettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NetworkSecuritySettings(put(value))); - return value; -} - -template hstring impl_IWlanConnectionProfileDetails::GetConnectedSsid() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetConnectedSsid(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IConnectivityInterval::StartTime() const -{ - Windows::Foundation::DateTime startTime {}; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(startTime))); - return startTime; -} - -template Windows::Foundation::TimeSpan impl_IConnectivityInterval::ConnectionDuration() const -{ - Windows::Foundation::TimeSpan duration {}; - check_hresult(static_cast(static_cast(*this))->get_ConnectionDuration(put(duration))); - return duration; -} - -template uint64_t impl_INetworkUsage::BytesSent() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BytesSent(&value)); - return value; -} - -template uint64_t impl_INetworkUsage::BytesReceived() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BytesReceived(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_INetworkUsage::ConnectionDuration() const -{ - Windows::Foundation::TimeSpan duration {}; - check_hresult(static_cast(static_cast(*this))->get_ConnectionDuration(put(duration))); - return duration; -} - -template uint64_t impl_IAttributedNetworkUsage::BytesSent() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BytesSent(&value)); - return value; -} - -template uint64_t impl_IAttributedNetworkUsage::BytesReceived() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BytesReceived(&value)); - return value; -} - -template hstring impl_IAttributedNetworkUsage::AttributionId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AttributionId(put(value))); - return value; -} - -template hstring impl_IAttributedNetworkUsage::AttributionName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AttributionName(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IAttributedNetworkUsage::AttributionThumbnail() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_AttributionThumbnail(put(value))); - return value; -} - -template bool impl_IConnectionProfile2::IsWwanConnectionProfile() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsWwanConnectionProfile(&value)); - return value; -} - -template bool impl_IConnectionProfile2::IsWlanConnectionProfile() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsWlanConnectionProfile(&value)); - return value; -} - -template Windows::Networking::Connectivity::WwanConnectionProfileDetails impl_IConnectionProfile2::WwanConnectionProfileDetails() const -{ - Windows::Networking::Connectivity::WwanConnectionProfileDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WwanConnectionProfileDetails(put(value))); - return value; -} - -template Windows::Networking::Connectivity::WlanConnectionProfileDetails impl_IConnectionProfile2::WlanConnectionProfileDetails() const -{ - Windows::Networking::Connectivity::WlanConnectionProfileDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WlanConnectionProfileDetails(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IConnectionProfile2::ServiceProviderGuid() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ServiceProviderGuid(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IConnectionProfile2::GetSignalBars() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->abi_GetSignalBars(put(value))); - return value; -} - -template Windows::Networking::Connectivity::DomainConnectivityLevel impl_IConnectionProfile2::GetDomainConnectivityLevel() const -{ - Windows::Networking::Connectivity::DomainConnectivityLevel value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetDomainConnectivityLevel(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IConnectionProfile2::GetNetworkUsageAsync(const Windows::Foundation::DateTime & startTime, const Windows::Foundation::DateTime & endTime, Windows::Networking::Connectivity::DataUsageGranularity granularity, const Windows::Networking::Connectivity::NetworkUsageStates & states) const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_GetNetworkUsageAsync(get(startTime), get(endTime), granularity, get(states), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IConnectionProfile2::GetConnectivityIntervalsAsync(const Windows::Foundation::DateTime & startTime, const Windows::Foundation::DateTime & endTime, const Windows::Networking::Connectivity::NetworkUsageStates & states) const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_GetConnectivityIntervalsAsync(get(startTime), get(endTime), get(states), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IConnectionProfile3::GetAttributedNetworkUsageAsync(const Windows::Foundation::DateTime & startTime, const Windows::Foundation::DateTime & endTime, const Windows::Networking::Connectivity::NetworkUsageStates & states) const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_GetAttributedNetworkUsageAsync(get(startTime), get(endTime), get(states), put(value))); - return value; -} - -template uint32_t impl_ILanIdentifierData::Type() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ILanIdentifierData::Value() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template Windows::Networking::Connectivity::LanIdentifierData impl_ILanIdentifier::InfrastructureId() const -{ - Windows::Networking::Connectivity::LanIdentifierData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InfrastructureId(put(value))); - return value; -} - -template Windows::Networking::Connectivity::LanIdentifierData impl_ILanIdentifier::PortId() const -{ - Windows::Networking::Connectivity::LanIdentifierData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PortId(put(value))); - return value; -} - -template GUID impl_ILanIdentifier::NetworkAdapterId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkAdapterId(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_INetworkInformationStatics::GetConnectionProfiles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetConnectionProfiles(put(value))); - return value; -} - -template Windows::Networking::Connectivity::ConnectionProfile impl_INetworkInformationStatics::GetInternetConnectionProfile() const -{ - Windows::Networking::Connectivity::ConnectionProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetInternetConnectionProfile(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_INetworkInformationStatics::GetLanIdentifiers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetLanIdentifiers(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_INetworkInformationStatics::GetHostNames() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetHostNames(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_INetworkInformationStatics::GetProxyConfigurationAsync(const Windows::Foundation::Uri & uri) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetProxyConfigurationAsync(get(uri), put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_INetworkInformationStatics::GetSortedEndpointPairs(const Windows::Foundation::Collections::IIterable & destinationList, Windows::Networking::HostNameSortOptions sortOptions) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetSortedEndpointPairs(get(destinationList), sortOptions, put(value))); - return value; -} - -template event_token impl_INetworkInformationStatics::NetworkStatusChanged(const Windows::Networking::Connectivity::NetworkStatusChangedEventHandler & networkStatusHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_NetworkStatusChanged(get(networkStatusHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_INetworkInformationStatics::NetworkStatusChanged(auto_revoke_t, const Windows::Networking::Connectivity::NetworkStatusChangedEventHandler & networkStatusHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Connectivity::INetworkInformationStatics::remove_NetworkStatusChanged, NetworkStatusChanged(networkStatusHandler)); -} - -template void impl_INetworkInformationStatics::NetworkStatusChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NetworkStatusChanged(eventCookie)); -} - -template void impl_IConnectionProfileFilter::IsConnected(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsConnected(value)); -} - -template bool impl_IConnectionProfileFilter::IsConnected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsConnected(&value)); - return value; -} - -template void impl_IConnectionProfileFilter::IsWwanConnectionProfile(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsWwanConnectionProfile(value)); -} - -template bool impl_IConnectionProfileFilter::IsWwanConnectionProfile() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsWwanConnectionProfile(&value)); - return value; -} - -template void impl_IConnectionProfileFilter::IsWlanConnectionProfile(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsWlanConnectionProfile(value)); -} - -template bool impl_IConnectionProfileFilter::IsWlanConnectionProfile() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsWlanConnectionProfile(&value)); - return value; -} - -template void impl_IConnectionProfileFilter::NetworkCostType(Windows::Networking::Connectivity::NetworkCostType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NetworkCostType(value)); -} - -template Windows::Networking::Connectivity::NetworkCostType impl_IConnectionProfileFilter::NetworkCostType() const -{ - Windows::Networking::Connectivity::NetworkCostType value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkCostType(&value)); - return value; -} - -template void impl_IConnectionProfileFilter::ServiceProviderGuid(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ServiceProviderGuid(get(value))); -} - -template Windows::Foundation::IReference impl_IConnectionProfileFilter::ServiceProviderGuid() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ServiceProviderGuid(put(value))); - return value; -} - -template void impl_IConnectionProfileFilter2::IsRoaming(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsRoaming(get(value))); -} - -template Windows::Foundation::IReference impl_IConnectionProfileFilter2::IsRoaming() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_IsRoaming(put(value))); - return value; -} - -template void impl_IConnectionProfileFilter2::IsOverDataLimit(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOverDataLimit(get(value))); -} - -template Windows::Foundation::IReference impl_IConnectionProfileFilter2::IsOverDataLimit() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_IsOverDataLimit(put(value))); - return value; -} - -template void impl_IConnectionProfileFilter2::IsBackgroundDataUsageRestricted(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsBackgroundDataUsageRestricted(get(value))); -} - -template Windows::Foundation::IReference impl_IConnectionProfileFilter2::IsBackgroundDataUsageRestricted() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_IsBackgroundDataUsageRestricted(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IConnectionProfileFilter2::RawData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_RawData(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_INetworkInformationStatics2::FindConnectionProfilesAsync(const Windows::Networking::Connectivity::ConnectionProfileFilter & pProfileFilter) const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_FindConnectionProfilesAsync(get(pProfileFilter), put(value))); - return value; -} - -template GUID impl_INetworkItem::NetworkId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkId(&value)); - return value; -} - -template Windows::Networking::Connectivity::NetworkTypes impl_INetworkItem::GetNetworkTypes() const -{ - Windows::Networking::Connectivity::NetworkTypes value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetNetworkTypes(&value)); - return value; -} - -template uint64_t impl_INetworkAdapter::OutboundMaxBitsPerSecond() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OutboundMaxBitsPerSecond(&value)); - return value; -} - -template uint64_t impl_INetworkAdapter::InboundMaxBitsPerSecond() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InboundMaxBitsPerSecond(&value)); - return value; -} - -template uint32_t impl_INetworkAdapter::IanaInterfaceType() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IanaInterfaceType(&value)); - return value; -} - -template Windows::Networking::Connectivity::NetworkItem impl_INetworkAdapter::NetworkItem() const -{ - Windows::Networking::Connectivity::NetworkItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NetworkItem(put(value))); - return value; -} - -template GUID impl_INetworkAdapter::NetworkAdapterId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkAdapterId(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_INetworkAdapter::GetConnectedProfileAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetConnectedProfileAsync(put(value))); - return value; -} - -template Windows::Networking::Connectivity::NetworkAdapter impl_IIPInformation::NetworkAdapter() const -{ - Windows::Networking::Connectivity::NetworkAdapter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NetworkAdapter(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IIPInformation::PrefixLength() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_PrefixLength(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IProxyConfiguration::ProxyUris() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ProxyUris(put(value))); - return value; -} - -template bool impl_IProxyConfiguration::CanConnectDirectly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanConnectDirectly(&value)); - return value; -} - -template Windows::Networking::Connectivity::ConnectionProfile impl_IConnectionSession::ConnectionProfile() const -{ - Windows::Networking::Connectivity::ConnectionProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ConnectionProfile(put(value))); - return value; -} - -template Windows::Networking::Connectivity::ConnectionProfile impl_IRoutePolicy::ConnectionProfile() const -{ - Windows::Networking::Connectivity::ConnectionProfile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ConnectionProfile(put(value))); - return value; -} - -template Windows::Networking::HostName impl_IRoutePolicy::HostName() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HostName(put(value))); - return value; -} - -template Windows::Networking::DomainNameType impl_IRoutePolicy::HostNameType() const -{ - Windows::Networking::DomainNameType value {}; - check_hresult(static_cast(static_cast(*this))->get_HostNameType(&value)); - return value; -} - -template Windows::Networking::Connectivity::RoutePolicy impl_IRoutePolicyFactory::CreateRoutePolicy(const Windows::Networking::Connectivity::ConnectionProfile & connectionProfile, const Windows::Networking::HostName & hostName, Windows::Networking::DomainNameType type) const -{ - Windows::Networking::Connectivity::RoutePolicy routePolicy { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateRoutePolicy(get(connectionProfile), get(hostName), type, put(routePolicy))); - return routePolicy; -} - -template hstring impl_ICellularApnContext::ProviderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProviderId(put(value))); - return value; -} - -template void impl_ICellularApnContext::ProviderId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProviderId(get(value))); -} - -template hstring impl_ICellularApnContext::AccessPointName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AccessPointName(put(value))); - return value; -} - -template void impl_ICellularApnContext::AccessPointName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AccessPointName(get(value))); -} - -template hstring impl_ICellularApnContext::UserName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserName(put(value))); - return value; -} - -template void impl_ICellularApnContext::UserName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UserName(get(value))); -} - -template hstring impl_ICellularApnContext::Password() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Password(put(value))); - return value; -} - -template void impl_ICellularApnContext::Password(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Password(get(value))); -} - -template bool impl_ICellularApnContext::IsCompressionEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCompressionEnabled(&value)); - return value; -} - -template void impl_ICellularApnContext::IsCompressionEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsCompressionEnabled(value)); -} - -template Windows::Networking::Connectivity::CellularApnAuthenticationType impl_ICellularApnContext::AuthenticationType() const -{ - Windows::Networking::Connectivity::CellularApnAuthenticationType value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationType(&value)); - return value; -} - -template void impl_ICellularApnContext::AuthenticationType(Windows::Networking::Connectivity::CellularApnAuthenticationType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AuthenticationType(value)); -} - -template Windows::Foundation::IAsyncOperation impl_IConnectivityManagerStatics::AcquireConnectionAsync(const Windows::Networking::Connectivity::CellularApnContext & cellularApnContext) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_AcquireConnectionAsync(get(cellularApnContext), put(operation))); - return operation; -} - -template void impl_IConnectivityManagerStatics::AddHttpRoutePolicy(const Windows::Networking::Connectivity::RoutePolicy & routePolicy) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddHttpRoutePolicy(get(routePolicy))); -} - -template void impl_IConnectivityManagerStatics::RemoveHttpRoutePolicy(const Windows::Networking::Connectivity::RoutePolicy & routePolicy) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveHttpRoutePolicy(get(routePolicy))); -} - -template bool impl_INetworkStateChangeEventDetails::HasNewInternetConnectionProfile() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasNewInternetConnectionProfile(&value)); - return value; -} - -template bool impl_INetworkStateChangeEventDetails::HasNewConnectionCost() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasNewConnectionCost(&value)); - return value; -} - -template bool impl_INetworkStateChangeEventDetails::HasNewNetworkConnectivityLevel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasNewNetworkConnectivityLevel(&value)); - return value; -} - -template bool impl_INetworkStateChangeEventDetails::HasNewDomainConnectivityLevel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasNewDomainConnectivityLevel(&value)); - return value; -} - -template bool impl_INetworkStateChangeEventDetails::HasNewHostNameList() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasNewHostNameList(&value)); - return value; -} - -template bool impl_INetworkStateChangeEventDetails::HasNewWwanRegistrationState() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasNewWwanRegistrationState(&value)); - return value; -} - -template bool impl_INetworkStateChangeEventDetails2::HasNewTetheringOperationalState() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasNewTetheringOperationalState(&value)); - return value; -} - -template bool impl_INetworkStateChangeEventDetails2::HasNewTetheringClientCount() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasNewTetheringClientCount(&value)); - return value; -} - -template hstring impl_IWwanConnectionProfileDetails::HomeProviderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HomeProviderId(put(value))); - return value; -} - -template hstring impl_IWwanConnectionProfileDetails::AccessPointName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AccessPointName(put(value))); - return value; -} - -template Windows::Networking::Connectivity::WwanNetworkRegistrationState impl_IWwanConnectionProfileDetails::GetNetworkRegistrationState() const -{ - Windows::Networking::Connectivity::WwanNetworkRegistrationState value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetNetworkRegistrationState(&value)); - return value; -} - -template Windows::Networking::Connectivity::WwanDataClass impl_IWwanConnectionProfileDetails::GetCurrentDataClass() const -{ - Windows::Networking::Connectivity::WwanDataClass value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentDataClass(&value)); - return value; -} - -inline CellularApnContext::CellularApnContext() : - CellularApnContext(activate_instance()) -{} - -inline ConnectionProfileFilter::ConnectionProfileFilter() : - ConnectionProfileFilter(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation ConnectivityManager::AcquireConnectionAsync(const Windows::Networking::Connectivity::CellularApnContext & cellularApnContext) -{ - return get_activation_factory().AcquireConnectionAsync(cellularApnContext); -} - -inline void ConnectivityManager::AddHttpRoutePolicy(const Windows::Networking::Connectivity::RoutePolicy & routePolicy) -{ - get_activation_factory().AddHttpRoutePolicy(routePolicy); -} - -inline void ConnectivityManager::RemoveHttpRoutePolicy(const Windows::Networking::Connectivity::RoutePolicy & routePolicy) -{ - get_activation_factory().RemoveHttpRoutePolicy(routePolicy); -} - -inline Windows::Foundation::Collections::IVectorView NetworkInformation::GetConnectionProfiles() -{ - return get_activation_factory().GetConnectionProfiles(); -} - -inline Windows::Networking::Connectivity::ConnectionProfile NetworkInformation::GetInternetConnectionProfile() -{ - return get_activation_factory().GetInternetConnectionProfile(); -} - -inline Windows::Foundation::Collections::IVectorView NetworkInformation::GetLanIdentifiers() -{ - return get_activation_factory().GetLanIdentifiers(); -} - -inline Windows::Foundation::Collections::IVectorView NetworkInformation::GetHostNames() -{ - return get_activation_factory().GetHostNames(); -} - -inline Windows::Foundation::IAsyncOperation NetworkInformation::GetProxyConfigurationAsync(const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().GetProxyConfigurationAsync(uri); -} - -inline Windows::Foundation::Collections::IVectorView NetworkInformation::GetSortedEndpointPairs(const Windows::Foundation::Collections::IIterable & destinationList, Windows::Networking::HostNameSortOptions sortOptions) -{ - return get_activation_factory().GetSortedEndpointPairs(destinationList, sortOptions); -} - -inline event_token NetworkInformation::NetworkStatusChanged(const Windows::Networking::Connectivity::NetworkStatusChangedEventHandler & networkStatusHandler) -{ - return get_activation_factory().NetworkStatusChanged(networkStatusHandler); -} - -inline factory_event_revoker NetworkInformation::NetworkStatusChanged(auto_revoke_t, const Windows::Networking::Connectivity::NetworkStatusChangedEventHandler & networkStatusHandler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Networking::Connectivity::INetworkInformationStatics::remove_NetworkStatusChanged, factory.NetworkStatusChanged(networkStatusHandler) }; -} - -inline void NetworkInformation::NetworkStatusChanged(event_token eventCookie) -{ - get_activation_factory().NetworkStatusChanged(eventCookie); -} - -inline Windows::Foundation::IAsyncOperation> NetworkInformation::FindConnectionProfilesAsync(const Windows::Networking::Connectivity::ConnectionProfileFilter & pProfileFilter) -{ - return get_activation_factory().FindConnectionProfilesAsync(pProfileFilter); -} - -inline RoutePolicy::RoutePolicy(const Windows::Networking::Connectivity::ConnectionProfile & connectionProfile, const Windows::Networking::HostName & hostName, Windows::Networking::DomainNameType type) : - RoutePolicy(get_activation_factory().CreateRoutePolicy(connectionProfile, hostName, type)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Networking.NetworkOperators.h b/10.0.14393.0/winrt/Windows.Networking.NetworkOperators.h deleted file mode 100644 index c84d5809c..000000000 --- a/10.0.14393.0/winrt/Windows.Networking.NetworkOperators.h +++ /dev/null @@ -1,4792 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Sms.3.h" -#include "internal/Windows.Networking.Connectivity.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Data.Xml.Dom.3.h" -#include "internal/Windows.Networking.NetworkOperators.3.h" -#include "Windows.Networking.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestUnlockAsync(abi_arg_in contactListId, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().RequestUnlockAsync(*reinterpret_cast(&contactListId))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WirelessNetworkId(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().WirelessNetworkId()); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkAdapter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAdapter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RedirectMessageUrl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RedirectMessageUrl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RedirectMessageXml(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RedirectMessageXml()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationUrl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationUrl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IssueCredentials(abi_arg_in userName, abi_arg_in password, abi_arg_in extraParameters, bool markAsManualConnectOnFailure) noexcept override - { - try - { - this->shim().IssueCredentials(*reinterpret_cast(&userName), *reinterpret_cast(&password), *reinterpret_cast(&extraParameters), markAsManualConnectOnFailure); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AbortAuthentication(bool markAsManual) noexcept override - { - try - { - this->shim().AbortAuthentication(markAsManual); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SkipAuthentication() noexcept override - { - try - { - this->shim().SkipAuthentication(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TriggerAttentionRequired(abi_arg_in packageRelativeApplicationId, abi_arg_in applicationParameters) noexcept override - { - try - { - this->shim().TriggerAttentionRequired(*reinterpret_cast(&packageRelativeApplicationId), *reinterpret_cast(&applicationParameters)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IssueCredentialsAsync(abi_arg_in userName, abi_arg_in password, abi_arg_in extraParameters, bool markAsManualConnectOnFailure, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().IssueCredentialsAsync(*reinterpret_cast(&userName), *reinterpret_cast(&password), *reinterpret_cast(&extraParameters), markAsManualConnectOnFailure)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryGetAuthenticationContext(abi_arg_in evenToken, abi_arg_out context, bool * isValid) noexcept override - { - try - { - *isValid = detach(this->shim().TryGetAuthenticationContext(*reinterpret_cast(&evenToken), *context)); - return S_OK; - } - catch (...) - { - *context = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EventToken(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EventToken()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HasNetworkErrorOccurred(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasNetworkErrorOccurred()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResponseCode(Windows::Networking::NetworkOperators::HotspotAuthenticationResponseCode * value) noexcept override - { - try - { - *value = detach(this->shim().ResponseCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LogoffUrl(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LogoffUrl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationReplyXml(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationReplyXml()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EFSpn(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EFSpn()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gid1(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Gid1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gid2(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Gid2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EFSpn(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EFSpn()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gid1(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Gid1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gid2(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Gid2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EFOns(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EFOns()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EFSpn(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EFSpn()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gid1(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Gid1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gid2(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Gid2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EFSpn(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EFSpn()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EFOpl(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EFOpl()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EFPnn(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EFPnn()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gid1(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Gid1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gid2(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Gid2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceProviderGuid(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceProviderGuid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceProviderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceProviderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentNetwork(abi_arg_out network) noexcept override - { - try - { - *network = detach(this->shim().CurrentNetwork()); - return S_OK; - } - catch (...) - { - *network = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentDeviceInformation(abi_arg_out deviceInformation) noexcept override - { - try - { - *deviceInformation = detach(this->shim().CurrentDeviceInformation()); - return S_OK; - } - catch (...) - { - *deviceInformation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetConnectionProfiles(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetConnectionProfiles()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AvailableNetworkAccountIds(abi_arg_out> ppAccountIds) noexcept override - { - try - { - *ppAccountIds = detach(this->shim().AvailableNetworkAccountIds()); - return S_OK; - } - catch (...) - { - *ppAccountIds = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromNetworkAccountId(abi_arg_in networkAccountId, abi_arg_out ppAccount) noexcept override - { - try - { - *ppAccount = detach(this->shim().CreateFromNetworkAccountId(*reinterpret_cast(&networkAccountId))); - return S_OK; - } - catch (...) - { - *ppAccount = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasDeviceInformationChanged(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasDeviceInformationChanged()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasNetworkChanged(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasNetworkChanged()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_AccountAdded(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().AccountAdded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AccountAdded(event_token cookie) noexcept override - { - try - { - this->shim().AccountAdded(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AccountUpdated(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().AccountUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AccountUpdated(event_token cookie) noexcept override - { - try - { - this->shim().AccountUpdated(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AccountRemoved(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().AccountRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AccountRemoved(event_token cookie) noexcept override - { - try - { - this->shim().AccountRemoved(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnumerationCompleted(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().EnumerationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnumerationCompleted(event_token cookie) noexcept override - { - try - { - this->shim().EnumerationCompleted(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token cookie) noexcept override - { - try - { - this->shim().Stopped(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcherStatus * status) noexcept override - { - try - { - *status = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkDeviceStatus(Windows::Networking::NetworkOperators::NetworkDeviceStatus * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkDeviceStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Manufacturer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Manufacturer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Model(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Model()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirmwareInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirmwareInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CellularClass(Windows::Devices::Sms::CellularClass * value) noexcept override - { - try - { - *value = detach(this->shim().CellularClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataClasses(Windows::Networking::NetworkOperators::DataClasses * value) noexcept override - { - try - { - *value = detach(this->shim().DataClasses()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomDataClass(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomDataClass()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MobileEquipmentId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MobileEquipmentId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TelephoneNumbers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TelephoneNumbers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubscriberId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SubscriberId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SimIccId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SimIccId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceType(Windows::Networking::NetworkOperators::MobileBroadbandDeviceType * pDeviceType) noexcept override - { - try - { - *pDeviceType = detach(this->shim().DeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentRadioState(Windows::Networking::NetworkOperators::MobileBroadbandRadioState * pCurrentState) noexcept override - { - try - { - *pCurrentState = detach(this->shim().CurrentRadioState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PinManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PinManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Revision(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Revision()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SerialNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SerialNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceServiceId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DeviceServiceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedCommands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedCommands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenDataSession(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OpenDataSession()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenCommandSession(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OpenCommandSession()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StatusCode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StatusCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResponseData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResponseData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SendQueryCommandAsync(uint32_t commandId, abi_arg_in data, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SendQueryCommandAsync(commandId, *reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SendSetCommandAsync(uint32_t commandId, abi_arg_in data, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SendSetCommandAsync(commandId, *reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CloseSession() noexcept override - { - try - { - this->shim().CloseSession(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ReceivedData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReceivedData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_WriteDataAsync(abi_arg_in value, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().WriteDataAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CloseSession() noexcept override - { - try - { - this->shim().CloseSession(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DataReceived(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().DataReceived(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DataReceived(event_token eventCookie) noexcept override - { - try - { - this->shim().DataReceived(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceServiceId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DeviceServiceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDataReadSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDataReadSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDataWriteSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDataWriteSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceServiceId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().DeviceServiceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReceivedData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReceivedData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentAccount(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentAccount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDeviceServiceCommandSizeInBytes(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxDeviceServiceCommandSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDeviceServiceDataSizeInBytes(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxDeviceServiceDataSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceServices(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DeviceServices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceService(GUID deviceServiceId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceService(deviceServiceId)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsResetSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsResetSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ResetAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentConfigurationAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetCurrentConfigurationAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentNetwork(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentNetwork()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uicc(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uicc()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HomeProviderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HomeProviderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HomeProviderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HomeProviderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromId(abi_arg_in deviceId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FromId(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefault(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkAdapter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAdapter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkRegistrationState(Windows::Networking::NetworkOperators::NetworkRegistrationState * registrationState) noexcept override - { - try - { - *registrationState = detach(this->shim().NetworkRegistrationState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RegistrationNetworkError(uint32_t * networkError) noexcept override - { - try - { - *networkError = detach(this->shim().RegistrationNetworkError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PacketAttachNetworkError(uint32_t * networkError) noexcept override - { - try - { - *networkError = detach(this->shim().PacketAttachNetworkError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActivationNetworkError(uint32_t * networkError) noexcept override - { - try - { - *networkError = detach(this->shim().ActivationNetworkError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccessPointName(abi_arg_out apn) noexcept override - { - try - { - *apn = detach(this->shim().AccessPointName()); - return S_OK; - } - catch (...) - { - *apn = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RegisteredDataClass(Windows::Networking::NetworkOperators::DataClasses * value) noexcept override - { - try - { - *value = detach(this->shim().RegisteredDataClass()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RegisteredProviderId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RegisteredProviderId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RegisteredProviderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RegisteredProviderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowConnectionUI() noexcept override - { - try - { - this->shim().ShowConnectionUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetVoiceCallSupportAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetVoiceCallSupportAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RegistrationUiccApps(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RegistrationUiccApps()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Network(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Network()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NetworkRegistrationStateChanges(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().NetworkRegistrationStateChanges()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::Networking::NetworkOperators::MobileBroadbandPinType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LockState(Windows::Networking::NetworkOperators::MobileBroadbandPinLockState * value) noexcept override - { - try - { - *value = detach(this->shim().LockState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Format(Windows::Networking::NetworkOperators::MobileBroadbandPinFormat * value) noexcept override - { - try - { - *value = detach(this->shim().Format()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttemptsRemaining(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AttemptsRemaining()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableAsync(abi_arg_in currentPin, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().EnableAsync(*reinterpret_cast(¤tPin))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisableAsync(abi_arg_in currentPin, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().DisableAsync(*reinterpret_cast(¤tPin))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnterAsync(abi_arg_in currentPin, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().EnterAsync(*reinterpret_cast(¤tPin))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ChangeAsync(abi_arg_in currentPin, abi_arg_in newPin, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ChangeAsync(*reinterpret_cast(¤tPin), *reinterpret_cast(&newPin))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnblockAsync(abi_arg_in pinUnblockKey, abi_arg_in newPin, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().UnblockAsync(*reinterpret_cast(&pinUnblockKey), *reinterpret_cast(&newPin))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PinType(Windows::Networking::NetworkOperators::MobileBroadbandPinType * value) noexcept override - { - try - { - *value = detach(this->shim().PinType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PinLockState(Windows::Networking::NetworkOperators::MobileBroadbandPinLockState * value) noexcept override - { - try - { - *value = detach(this->shim().PinLockState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PinLockStateChanges(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PinLockStateChanges()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SupportedPins(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedPins()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPin(Windows::Networking::NetworkOperators::MobileBroadbandPinType pinType, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetPin(pinType)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSuccessful(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSuccessful()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttemptsRemaining(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AttemptsRemaining()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RadioState(Windows::Networking::NetworkOperators::MobileBroadbandRadioState * value) noexcept override - { - try - { - *value = detach(this->shim().RadioState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RadioStateChanges(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RadioStateChanges()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SimIccId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SimIccId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUiccAppsAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetUiccAppsAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::Networking::NetworkOperators::UiccAppKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRecordDetailsAsync(abi_arg_in> uiccFilePath, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetRecordDetailsAsync(*reinterpret_cast *>(&uiccFilePath))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadRecordAsync(abi_arg_in> uiccFilePath, int32_t recordIndex, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ReadRecordAsync(*reinterpret_cast *>(&uiccFilePath), recordIndex)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::Networking::NetworkOperators::UiccAppRecordKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecordCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RecordCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecordSize(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RecordSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReadAccessCondition(Windows::Networking::NetworkOperators::UiccAccessCondition * value) noexcept override - { - try - { - *value = detach(this->shim().ReadAccessCondition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WriteAccessCondition(Windows::Networking::NetworkOperators::UiccAccessCondition * value) noexcept override - { - try - { - *value = detach(this->shim().WriteAccessCondition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UiccApps(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().UiccApps()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NotificationType(Windows::Networking::NetworkOperators::NetworkOperatorEventMessageType * value) noexcept override - { - try - { - *value = detach(this->shim().NotificationType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NetworkAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EncodingType(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().EncodingType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RuleId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RuleId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmsMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmsMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Ssid(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ssid()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Ssid(abi_arg_in value) noexcept override - { - try - { - this->shim().Ssid(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Passphrase(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Passphrase()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Passphrase(abi_arg_in value) noexcept override - { - try - { - this->shim().Passphrase(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MacAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MacAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HostNames(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().HostNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetTetheringClients(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetTetheringClients()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AuthorizeTethering(bool allow, abi_arg_in entitlementFailureReason) noexcept override - { - try - { - this->shim().AuthorizeTethering(allow, *reinterpret_cast(&entitlementFailureReason)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxClientCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxClientCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClientCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ClientCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TetheringOperationalState(Windows::Networking::NetworkOperators::TetheringOperationalState * value) noexcept override - { - try - { - *value = detach(this->shim().TetheringOperationalState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentAccessPointConfiguration(abi_arg_out configuration) noexcept override - { - try - { - *configuration = detach(this->shim().GetCurrentAccessPointConfiguration()); - return S_OK; - } - catch (...) - { - *configuration = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConfigureAccessPointAsync(abi_arg_in configuration, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ConfigureAccessPointAsync(*reinterpret_cast(&configuration))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartTetheringAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().StartTetheringAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopTetheringAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().StopTetheringAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetTetheringCapability(abi_arg_in networkAccountId, Windows::Networking::NetworkOperators::TetheringCapability * value) noexcept override - { - try - { - *value = detach(this->shim().GetTetheringCapability(*reinterpret_cast(&networkAccountId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromNetworkAccountId(abi_arg_in networkAccountId, abi_arg_out ppManager) noexcept override - { - try - { - *ppManager = detach(this->shim().CreateFromNetworkAccountId(*reinterpret_cast(&networkAccountId))); - return S_OK; - } - catch (...) - { - *ppManager = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetTetheringCapabilityFromConnectionProfile(abi_arg_in profile, Windows::Networking::NetworkOperators::TetheringCapability * result) noexcept override - { - try - { - *result = detach(this->shim().GetTetheringCapabilityFromConnectionProfile(*reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromConnectionProfile(abi_arg_in profile, abi_arg_out ppManager) noexcept override - { - try - { - *ppManager = detach(this->shim().CreateFromConnectionProfile(*reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *ppManager = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromConnectionProfileWithTargetAdapter(abi_arg_in profile, abi_arg_in adapter, abi_arg_out ppManager) noexcept override - { - try - { - *ppManager = detach(this->shim().CreateFromConnectionProfile(*reinterpret_cast(&profile), *reinterpret_cast(&adapter))); - return S_OK; - } - catch (...) - { - *ppManager = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Networking::NetworkOperators::TetheringOperationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdditionalErrorMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdditionalErrorMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllElementsProvisioned(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllElementsProvisioned()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProvisionResultsXml(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProvisionResultsXml()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_UpdateCost(Windows::Networking::Connectivity::NetworkCostType value) noexcept override - { - try - { - this->shim().UpdateCost(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateUsage(abi_arg_in value) noexcept override - { - try - { - this->shim().UpdateUsage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ProvisionFromXmlDocumentAsync(abi_arg_in provisioningXmlDocument, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ProvisionFromXmlDocumentAsync(*reinterpret_cast(&provisioningXmlDocument))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetProvisionedProfile(Windows::Networking::NetworkOperators::ProfileMediaType mediaType, abi_arg_in profileName, abi_arg_out provisionedProfile) noexcept override - { - try - { - *provisionedProfile = detach(this->shim().GetProvisionedProfile(mediaType, *reinterpret_cast(&profileName))); - return S_OK; - } - catch (...) - { - *provisionedProfile = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromNetworkAccountId(abi_arg_in networkAccountId, abi_arg_out provisioningAgent) noexcept override - { - try - { - *provisioningAgent = detach(this->shim().CreateFromNetworkAccountId(*reinterpret_cast(&networkAccountId))); - return S_OK; - } - catch (...) - { - *provisioningAgent = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DataCodingScheme(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().DataCodingScheme()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataCodingScheme(uint8_t value) noexcept override - { - try - { - this->shim().DataCodingScheme(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPayload(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().GetPayload()); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPayload(uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().SetPayload(array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PayloadAsText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PayloadAsText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PayloadAsText(abi_arg_in value) noexcept override - { - try - { - this->shim().PayloadAsText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMessage(abi_arg_in messageText, abi_arg_out ussdMessage) noexcept override - { - try - { - *ussdMessage = detach(this->shim().CreateMessage(*reinterpret_cast(&messageText))); - return S_OK; - } - catch (...) - { - *ussdMessage = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResultCode(Windows::Networking::NetworkOperators::UssdResultCode * value) noexcept override - { - try - { - *value = detach(this->shim().ResultCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SendMessageAndGetReplyAsync(abi_arg_in message, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SendMessageAndGetReplyAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Close() noexcept override - { - try - { - this->shim().Close(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromNetworkAccountId(abi_arg_in networkAccountId, abi_arg_out ussdSession) noexcept override - { - try - { - *ussdSession = detach(this->shim().CreateFromNetworkAccountId(*reinterpret_cast(&networkAccountId))); - return S_OK; - } - catch (...) - { - *ussdSession = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromNetworkInterfaceId(abi_arg_in networkInterfaceId, abi_arg_out ussdSession) noexcept override - { - try - { - *ussdSession = detach(this->shim().CreateFromNetworkInterfaceId(*reinterpret_cast(&networkInterfaceId))); - return S_OK; - } - catch (...) - { - *ussdSession = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Networking::NetworkOperators { - -template Windows::Foundation::Collections::IVectorView impl_IMobileBroadbandAccountStatics::AvailableNetworkAccountIds() const -{ - Windows::Foundation::Collections::IVectorView ppAccountIds; - check_hresult(static_cast(static_cast(*this))->get_AvailableNetworkAccountIds(put(ppAccountIds))); - return ppAccountIds; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandAccount impl_IMobileBroadbandAccountStatics::CreateFromNetworkAccountId(hstring_ref networkAccountId) const -{ - Windows::Networking::NetworkOperators::MobileBroadbandAccount ppAccount { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromNetworkAccountId(get(networkAccountId), put(ppAccount))); - return ppAccount; -} - -template hstring impl_IMobileBroadbandAccount::NetworkAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NetworkAccountId(put(value))); - return value; -} - -template GUID impl_IMobileBroadbandAccount::ServiceProviderGuid() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceProviderGuid(&value)); - return value; -} - -template hstring impl_IMobileBroadbandAccount::ServiceProviderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceProviderName(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandNetwork impl_IMobileBroadbandAccount::CurrentNetwork() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandNetwork network { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentNetwork(put(network))); - return network; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandDeviceInformation impl_IMobileBroadbandAccount::CurrentDeviceInformation() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandDeviceInformation deviceInformation { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentDeviceInformation(put(deviceInformation))); - return deviceInformation; -} - -template Windows::Foundation::Collections::IVectorView impl_IMobileBroadbandAccount2::GetConnectionProfiles() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetConnectionProfiles(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::NetworkDeviceStatus impl_IMobileBroadbandDeviceInformation::NetworkDeviceStatus() const -{ - Windows::Networking::NetworkOperators::NetworkDeviceStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkDeviceStatus(&value)); - return value; -} - -template hstring impl_IMobileBroadbandDeviceInformation::Manufacturer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Manufacturer(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandDeviceInformation::Model() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Model(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandDeviceInformation::FirmwareInformation() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FirmwareInformation(put(value))); - return value; -} - -template Windows::Devices::Sms::CellularClass impl_IMobileBroadbandDeviceInformation::CellularClass() const -{ - Windows::Devices::Sms::CellularClass value {}; - check_hresult(static_cast(static_cast(*this))->get_CellularClass(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::DataClasses impl_IMobileBroadbandDeviceInformation::DataClasses() const -{ - Windows::Networking::NetworkOperators::DataClasses value {}; - check_hresult(static_cast(static_cast(*this))->get_DataClasses(&value)); - return value; -} - -template hstring impl_IMobileBroadbandDeviceInformation::CustomDataClass() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CustomDataClass(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandDeviceInformation::MobileEquipmentId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MobileEquipmentId(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMobileBroadbandDeviceInformation::TelephoneNumbers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_TelephoneNumbers(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandDeviceInformation::SubscriberId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SubscriberId(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandDeviceInformation::SimIccId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SimIccId(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandDeviceType impl_IMobileBroadbandDeviceInformation::DeviceType() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandDeviceType pDeviceType {}; - check_hresult(static_cast(static_cast(*this))->get_DeviceType(&pDeviceType)); - return pDeviceType; -} - -template hstring impl_IMobileBroadbandDeviceInformation::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandRadioState impl_IMobileBroadbandDeviceInformation::CurrentRadioState() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandRadioState pCurrentState {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentRadioState(&pCurrentState)); - return pCurrentState; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandPinManager impl_IMobileBroadbandDeviceInformation2::PinManager() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandPinManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PinManager(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandDeviceInformation2::Revision() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Revision(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandDeviceInformation2::SerialNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SerialNumber(put(value))); - return value; -} - -template Windows::Networking::Connectivity::NetworkAdapter impl_IMobileBroadbandNetwork::NetworkAdapter() const -{ - Windows::Networking::Connectivity::NetworkAdapter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NetworkAdapter(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::NetworkRegistrationState impl_IMobileBroadbandNetwork::NetworkRegistrationState() const -{ - Windows::Networking::NetworkOperators::NetworkRegistrationState registrationState {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkRegistrationState(®istrationState)); - return registrationState; -} - -template uint32_t impl_IMobileBroadbandNetwork::RegistrationNetworkError() const -{ - uint32_t networkError {}; - check_hresult(static_cast(static_cast(*this))->get_RegistrationNetworkError(&networkError)); - return networkError; -} - -template uint32_t impl_IMobileBroadbandNetwork::PacketAttachNetworkError() const -{ - uint32_t networkError {}; - check_hresult(static_cast(static_cast(*this))->get_PacketAttachNetworkError(&networkError)); - return networkError; -} - -template uint32_t impl_IMobileBroadbandNetwork::ActivationNetworkError() const -{ - uint32_t networkError {}; - check_hresult(static_cast(static_cast(*this))->get_ActivationNetworkError(&networkError)); - return networkError; -} - -template hstring impl_IMobileBroadbandNetwork::AccessPointName() const -{ - hstring apn; - check_hresult(static_cast(static_cast(*this))->get_AccessPointName(put(apn))); - return apn; -} - -template Windows::Networking::NetworkOperators::DataClasses impl_IMobileBroadbandNetwork::RegisteredDataClass() const -{ - Windows::Networking::NetworkOperators::DataClasses value {}; - check_hresult(static_cast(static_cast(*this))->get_RegisteredDataClass(&value)); - return value; -} - -template hstring impl_IMobileBroadbandNetwork::RegisteredProviderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RegisteredProviderId(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandNetwork::RegisteredProviderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RegisteredProviderName(put(value))); - return value; -} - -template void impl_IMobileBroadbandNetwork::ShowConnectionUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowConnectionUI()); -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandNetwork2::GetVoiceCallSupportAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetVoiceCallSupportAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::Collections::IVectorView impl_IMobileBroadbandNetwork2::RegistrationUiccApps() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_RegistrationUiccApps(put(value))); - return value; -} - -template hstring impl_INetworkOperatorTetheringAccessPointConfiguration::Ssid() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ssid(put(value))); - return value; -} - -template void impl_INetworkOperatorTetheringAccessPointConfiguration::Ssid(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Ssid(get(value))); -} - -template hstring impl_INetworkOperatorTetheringAccessPointConfiguration::Passphrase() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Passphrase(put(value))); - return value; -} - -template void impl_INetworkOperatorTetheringAccessPointConfiguration::Passphrase(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Passphrase(get(value))); -} - -template Windows::Networking::NetworkOperators::TetheringOperationStatus impl_INetworkOperatorTetheringOperationResult::Status() const -{ - Windows::Networking::NetworkOperators::TetheringOperationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template hstring impl_INetworkOperatorTetheringOperationResult::AdditionalErrorMessage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AdditionalErrorMessage(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::TetheringCapability impl_INetworkOperatorTetheringManagerStatics::GetTetheringCapability(hstring_ref networkAccountId) const -{ - Windows::Networking::NetworkOperators::TetheringCapability value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetTetheringCapability(get(networkAccountId), &value)); - return value; -} - -template Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager impl_INetworkOperatorTetheringManagerStatics::CreateFromNetworkAccountId(hstring_ref networkAccountId) const -{ - Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager ppManager { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromNetworkAccountId(get(networkAccountId), put(ppManager))); - return ppManager; -} - -template Windows::Networking::NetworkOperators::TetheringCapability impl_INetworkOperatorTetheringManagerStatics2::GetTetheringCapabilityFromConnectionProfile(const Windows::Networking::Connectivity::ConnectionProfile & profile) const -{ - Windows::Networking::NetworkOperators::TetheringCapability result {}; - check_hresult(static_cast(static_cast(*this))->abi_GetTetheringCapabilityFromConnectionProfile(get(profile), &result)); - return result; -} - -template Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager impl_INetworkOperatorTetheringManagerStatics2::CreateFromConnectionProfile(const Windows::Networking::Connectivity::ConnectionProfile & profile) const -{ - Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager ppManager { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromConnectionProfile(get(profile), put(ppManager))); - return ppManager; -} - -template Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager impl_INetworkOperatorTetheringManagerStatics3::CreateFromConnectionProfile(const Windows::Networking::Connectivity::ConnectionProfile & profile, const Windows::Networking::Connectivity::NetworkAdapter & adapter) const -{ - Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager ppManager { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromConnectionProfileWithTargetAdapter(get(profile), get(adapter), put(ppManager))); - return ppManager; -} - -template uint32_t impl_INetworkOperatorTetheringManager::MaxClientCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxClientCount(&value)); - return value; -} - -template uint32_t impl_INetworkOperatorTetheringManager::ClientCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ClientCount(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::TetheringOperationalState impl_INetworkOperatorTetheringManager::TetheringOperationalState() const -{ - Windows::Networking::NetworkOperators::TetheringOperationalState value {}; - check_hresult(static_cast(static_cast(*this))->get_TetheringOperationalState(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::NetworkOperatorTetheringAccessPointConfiguration impl_INetworkOperatorTetheringManager::GetCurrentAccessPointConfiguration() const -{ - Windows::Networking::NetworkOperators::NetworkOperatorTetheringAccessPointConfiguration configuration { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentAccessPointConfiguration(put(configuration))); - return configuration; -} - -template Windows::Foundation::IAsyncAction impl_INetworkOperatorTetheringManager::ConfigureAccessPointAsync(const Windows::Networking::NetworkOperators::NetworkOperatorTetheringAccessPointConfiguration & configuration) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ConfigureAccessPointAsync(get(configuration), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_INetworkOperatorTetheringManager::StartTetheringAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_StartTetheringAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_INetworkOperatorTetheringManager::StopTetheringAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_StopTetheringAsync(put(asyncInfo))); - return asyncInfo; -} - -template hstring impl_INetworkOperatorTetheringClient::MacAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MacAddress(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_INetworkOperatorTetheringClient::HostNames() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_HostNames(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_INetworkOperatorTetheringClientManager::GetTetheringClients() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetTetheringClients(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandAccountEventArgs::NetworkAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NetworkAccountId(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandAccountUpdatedEventArgs::NetworkAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NetworkAccountId(put(value))); - return value; -} - -template bool impl_IMobileBroadbandAccountUpdatedEventArgs::HasDeviceInformationChanged() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasDeviceInformationChanged(&value)); - return value; -} - -template bool impl_IMobileBroadbandAccountUpdatedEventArgs::HasNetworkChanged() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasNetworkChanged(&value)); - return value; -} - -template event_token impl_IMobileBroadbandAccountWatcher::AccountAdded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_AccountAdded(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMobileBroadbandAccountWatcher::AccountAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccountWatcher::remove_AccountAdded, AccountAdded(handler)); -} - -template void impl_IMobileBroadbandAccountWatcher::AccountAdded(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AccountAdded(cookie)); -} - -template event_token impl_IMobileBroadbandAccountWatcher::AccountUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_AccountUpdated(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMobileBroadbandAccountWatcher::AccountUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccountWatcher::remove_AccountUpdated, AccountUpdated(handler)); -} - -template void impl_IMobileBroadbandAccountWatcher::AccountUpdated(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AccountUpdated(cookie)); -} - -template event_token impl_IMobileBroadbandAccountWatcher::AccountRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_AccountRemoved(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMobileBroadbandAccountWatcher::AccountRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccountWatcher::remove_AccountRemoved, AccountRemoved(handler)); -} - -template void impl_IMobileBroadbandAccountWatcher::AccountRemoved(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AccountRemoved(cookie)); -} - -template event_token impl_IMobileBroadbandAccountWatcher::EnumerationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_EnumerationCompleted(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMobileBroadbandAccountWatcher::EnumerationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccountWatcher::remove_EnumerationCompleted, EnumerationCompleted(handler)); -} - -template void impl_IMobileBroadbandAccountWatcher::EnumerationCompleted(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnumerationCompleted(cookie)); -} - -template event_token impl_IMobileBroadbandAccountWatcher::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IMobileBroadbandAccountWatcher::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccountWatcher::remove_Stopped, Stopped(handler)); -} - -template void impl_IMobileBroadbandAccountWatcher::Stopped(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(cookie)); -} - -template Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcherStatus impl_IMobileBroadbandAccountWatcher::Status() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcherStatus status {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&status)); - return status; -} - -template void impl_IMobileBroadbandAccountWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IMobileBroadbandAccountWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template hstring impl_IMobileBroadbandModemStatics::GetDeviceSelector() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandModem impl_IMobileBroadbandModemStatics::FromId(hstring_ref deviceId) const -{ - Windows::Networking::NetworkOperators::MobileBroadbandModem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromId(get(deviceId), put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandModem impl_IMobileBroadbandModemStatics::GetDefault() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandModem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandUicc impl_IMobileBroadbandModemConfiguration::Uicc() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandUicc value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uicc(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandModemConfiguration::HomeProviderId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HomeProviderId(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandModemConfiguration::HomeProviderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HomeProviderName(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandAccount impl_IMobileBroadbandModem::CurrentAccount() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandAccount value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentAccount(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandDeviceInformation impl_IMobileBroadbandModem::DeviceInformation() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandDeviceInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DeviceInformation(put(value))); - return value; -} - -template uint32_t impl_IMobileBroadbandModem::MaxDeviceServiceCommandSizeInBytes() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxDeviceServiceCommandSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IMobileBroadbandModem::MaxDeviceServiceDataSizeInBytes() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxDeviceServiceDataSizeInBytes(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMobileBroadbandModem::DeviceServices() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_DeviceServices(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandDeviceService impl_IMobileBroadbandModem::GetDeviceService(GUID deviceServiceId) const -{ - Windows::Networking::NetworkOperators::MobileBroadbandDeviceService value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceService(deviceServiceId, put(value))); - return value; -} - -template bool impl_IMobileBroadbandModem::IsResetSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsResetSupported(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IMobileBroadbandModem::ResetAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ResetAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandModem::GetCurrentConfigurationAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentConfigurationAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandNetwork impl_IMobileBroadbandModem::CurrentNetwork() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandNetwork value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentNetwork(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMobileBroadbandPinManager::SupportedPins() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedPins(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandPin impl_IMobileBroadbandPinManager::GetPin(Windows::Networking::NetworkOperators::MobileBroadbandPinType pinType) const -{ - Windows::Networking::NetworkOperators::MobileBroadbandPin value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetPin(pinType, put(value))); - return value; -} - -template bool impl_IMobileBroadbandPinOperationResult::IsSuccessful() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSuccessful(&value)); - return value; -} - -template uint32_t impl_IMobileBroadbandPinOperationResult::AttemptsRemaining() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AttemptsRemaining(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandPinType impl_IMobileBroadbandPin::Type() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandPinType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandPinLockState impl_IMobileBroadbandPin::LockState() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandPinLockState value {}; - check_hresult(static_cast(static_cast(*this))->get_LockState(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandPinFormat impl_IMobileBroadbandPin::Format() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandPinFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_Format(&value)); - return value; -} - -template bool impl_IMobileBroadbandPin::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template uint32_t impl_IMobileBroadbandPin::MaxLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxLength(&value)); - return value; -} - -template uint32_t impl_IMobileBroadbandPin::MinLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinLength(&value)); - return value; -} - -template uint32_t impl_IMobileBroadbandPin::AttemptsRemaining() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AttemptsRemaining(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandPin::EnableAsync(hstring_ref currentPin) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_EnableAsync(get(currentPin), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandPin::DisableAsync(hstring_ref currentPin) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_DisableAsync(get(currentPin), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandPin::EnterAsync(hstring_ref currentPin) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_EnterAsync(get(currentPin), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandPin::ChangeAsync(hstring_ref currentPin, hstring_ref newPin) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ChangeAsync(get(currentPin), get(newPin), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandPin::UnblockAsync(hstring_ref pinUnblockKey, hstring_ref newPin) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_UnblockAsync(get(pinUnblockKey), get(newPin), put(asyncInfo))); - return asyncInfo; -} - -template GUID impl_IMobileBroadbandDeviceServiceInformation::DeviceServiceId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DeviceServiceId(&value)); - return value; -} - -template bool impl_IMobileBroadbandDeviceServiceInformation::IsDataReadSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDataReadSupported(&value)); - return value; -} - -template bool impl_IMobileBroadbandDeviceServiceInformation::IsDataWriteSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDataWriteSupported(&value)); - return value; -} - -template GUID impl_IMobileBroadbandDeviceService::DeviceServiceId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DeviceServiceId(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMobileBroadbandDeviceService::SupportedCommands() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedCommands(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataSession impl_IMobileBroadbandDeviceService::OpenDataSession() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenDataSession(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandSession impl_IMobileBroadbandDeviceService::OpenCommandSession() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandSession value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenCommandSession(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IMobileBroadbandDeviceServiceDataReceivedEventArgs::ReceivedData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_ReceivedData(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IMobileBroadbandDeviceServiceDataSession::WriteDataAsync(const Windows::Storage::Streams::IBuffer & value) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_WriteDataAsync(get(value), put(asyncInfo))); - return asyncInfo; -} - -template void impl_IMobileBroadbandDeviceServiceDataSession::CloseSession() const -{ - check_hresult(static_cast(static_cast(*this))->abi_CloseSession()); -} - -template event_token impl_IMobileBroadbandDeviceServiceDataSession::DataReceived(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_DataReceived(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IMobileBroadbandDeviceServiceDataSession::DataReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceDataSession::remove_DataReceived, DataReceived(eventHandler)); -} - -template void impl_IMobileBroadbandDeviceServiceDataSession::DataReceived(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DataReceived(eventCookie)); -} - -template uint32_t impl_IMobileBroadbandDeviceServiceCommandResult::StatusCode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StatusCode(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IMobileBroadbandDeviceServiceCommandResult::ResponseData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_ResponseData(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandDeviceServiceCommandSession::SendQueryCommandAsync(uint32_t commandId, const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SendQueryCommandAsync(commandId, get(data), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandDeviceServiceCommandSession::SendSetCommandAsync(uint32_t commandId, const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SendSetCommandAsync(commandId, get(data), put(asyncInfo))); - return asyncInfo; -} - -template void impl_IMobileBroadbandDeviceServiceCommandSession::CloseSession() const -{ - check_hresult(static_cast(static_cast(*this))->abi_CloseSession()); -} - -template Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus impl_IMobileBroadbandUiccAppsResult::Status() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMobileBroadbandUiccAppsResult::UiccApps() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_UiccApps(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandUicc::SimIccId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SimIccId(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandUicc::GetUiccAppsAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetUiccAppsAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus impl_IMobileBroadbandUiccAppRecordDetailsResult::Status() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::UiccAppRecordKind impl_IMobileBroadbandUiccAppRecordDetailsResult::Kind() const -{ - Windows::Networking::NetworkOperators::UiccAppRecordKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template int32_t impl_IMobileBroadbandUiccAppRecordDetailsResult::RecordCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RecordCount(&value)); - return value; -} - -template int32_t impl_IMobileBroadbandUiccAppRecordDetailsResult::RecordSize() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RecordSize(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::UiccAccessCondition impl_IMobileBroadbandUiccAppRecordDetailsResult::ReadAccessCondition() const -{ - Windows::Networking::NetworkOperators::UiccAccessCondition value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadAccessCondition(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::UiccAccessCondition impl_IMobileBroadbandUiccAppRecordDetailsResult::WriteAccessCondition() const -{ - Windows::Networking::NetworkOperators::UiccAccessCondition value {}; - check_hresult(static_cast(static_cast(*this))->get_WriteAccessCondition(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus impl_IMobileBroadbandUiccAppReadRecordResult::Status() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IMobileBroadbandUiccAppReadRecordResult::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IMobileBroadbandUiccApp::Id() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::UiccAppKind impl_IMobileBroadbandUiccApp::Kind() const -{ - Windows::Networking::NetworkOperators::UiccAppKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandUiccApp::GetRecordDetailsAsync(const Windows::Foundation::Collections::IIterable & uiccFilePath) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetRecordDetailsAsync(get(uiccFilePath), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IMobileBroadbandUiccApp::ReadRecordAsync(const Windows::Foundation::Collections::IIterable & uiccFilePath, int32_t recordIndex) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ReadRecordAsync(get(uiccFilePath), recordIndex, put(asyncInfo))); - return asyncInfo; -} - -template hstring impl_IMobileBroadbandNetworkRegistrationStateChange::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandNetwork impl_IMobileBroadbandNetworkRegistrationStateChange::Network() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandNetwork value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Network(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails::NetworkRegistrationStateChanges() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_NetworkRegistrationStateChanges(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandRadioStateChange::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandRadioState impl_IMobileBroadbandRadioStateChange::RadioState() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandRadioState value {}; - check_hresult(static_cast(static_cast(*this))->get_RadioState(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMobileBroadbandRadioStateChangeTriggerDetails::RadioStateChanges() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_RadioStateChanges(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandPinLockStateChange::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandPinType impl_IMobileBroadbandPinLockStateChange::PinType() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandPinType value {}; - check_hresult(static_cast(static_cast(*this))->get_PinType(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::MobileBroadbandPinLockState impl_IMobileBroadbandPinLockStateChange::PinLockState() const -{ - Windows::Networking::NetworkOperators::MobileBroadbandPinLockState value {}; - check_hresult(static_cast(static_cast(*this))->get_PinLockState(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMobileBroadbandPinLockStateChangeTriggerDetails::PinLockStateChanges() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_PinLockStateChanges(put(value))); - return value; -} - -template hstring impl_IMobileBroadbandDeviceServiceTriggerDetails::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template GUID impl_IMobileBroadbandDeviceServiceTriggerDetails::DeviceServiceId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_DeviceServiceId(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IMobileBroadbandDeviceServiceTriggerDetails::ReceivedData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_ReceivedData(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownCSimFilePathsStatics::EFSpn() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_EFSpn(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownCSimFilePathsStatics::Gid1() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Gid1(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownCSimFilePathsStatics::Gid2() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Gid2(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownRuimFilePathsStatics::EFSpn() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_EFSpn(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownRuimFilePathsStatics::Gid1() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Gid1(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownRuimFilePathsStatics::Gid2() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Gid2(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownSimFilePathsStatics::EFOns() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_EFOns(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownSimFilePathsStatics::EFSpn() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_EFSpn(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownSimFilePathsStatics::Gid1() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Gid1(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownSimFilePathsStatics::Gid2() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Gid2(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownUSimFilePathsStatics::EFSpn() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_EFSpn(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownUSimFilePathsStatics::EFOpl() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_EFOpl(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownUSimFilePathsStatics::EFPnn() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_EFPnn(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownUSimFilePathsStatics::Gid1() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Gid1(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IKnownUSimFilePathsStatics::Gid2() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Gid2(put(value))); - return value; -} - -template hstring impl_IHotspotAuthenticationEventDetails::EventToken() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EventToken(put(value))); - return value; -} - -template bool impl_IHotspotAuthenticationContextStatics::TryGetAuthenticationContext(hstring_ref evenToken, Windows::Networking::NetworkOperators::HotspotAuthenticationContext & context) const -{ - bool isValid {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetAuthenticationContext(get(evenToken), put(context), &isValid)); - return isValid; -} - -template com_array impl_IHotspotAuthenticationContext::WirelessNetworkId() const -{ - com_array value {}; - check_hresult(static_cast(static_cast(*this))->get_WirelessNetworkId(put_size(value), put(value))); - return value; -} - -template Windows::Networking::Connectivity::NetworkAdapter impl_IHotspotAuthenticationContext::NetworkAdapter() const -{ - Windows::Networking::Connectivity::NetworkAdapter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NetworkAdapter(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IHotspotAuthenticationContext::RedirectMessageUrl() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RedirectMessageUrl(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_IHotspotAuthenticationContext::RedirectMessageXml() const -{ - Windows::Data::Xml::Dom::XmlDocument value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RedirectMessageXml(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IHotspotAuthenticationContext::AuthenticationUrl() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationUrl(put(value))); - return value; -} - -template void impl_IHotspotAuthenticationContext::IssueCredentials(hstring_ref userName, hstring_ref password, hstring_ref extraParameters, bool markAsManualConnectOnFailure) const -{ - check_hresult(static_cast(static_cast(*this))->abi_IssueCredentials(get(userName), get(password), get(extraParameters), markAsManualConnectOnFailure)); -} - -template void impl_IHotspotAuthenticationContext::AbortAuthentication(bool markAsManual) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AbortAuthentication(markAsManual)); -} - -template void impl_IHotspotAuthenticationContext::SkipAuthentication() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SkipAuthentication()); -} - -template void impl_IHotspotAuthenticationContext::TriggerAttentionRequired(hstring_ref packageRelativeApplicationId, hstring_ref applicationParameters) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TriggerAttentionRequired(get(packageRelativeApplicationId), get(applicationParameters))); -} - -template bool impl_IHotspotCredentialsAuthenticationResult::HasNetworkErrorOccurred() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasNetworkErrorOccurred(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::HotspotAuthenticationResponseCode impl_IHotspotCredentialsAuthenticationResult::ResponseCode() const -{ - Windows::Networking::NetworkOperators::HotspotAuthenticationResponseCode value {}; - check_hresult(static_cast(static_cast(*this))->get_ResponseCode(&value)); - return value; -} - -template Windows::Foundation::Uri impl_IHotspotCredentialsAuthenticationResult::LogoffUrl() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LogoffUrl(put(value))); - return value; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_IHotspotCredentialsAuthenticationResult::AuthenticationReplyXml() const -{ - Windows::Data::Xml::Dom::XmlDocument value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationReplyXml(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IHotspotAuthenticationContext2::IssueCredentialsAsync(hstring_ref userName, hstring_ref password, hstring_ref extraParameters, bool markAsManualConnectOnFailure) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_IssueCredentialsAsync(get(userName), get(password), get(extraParameters), markAsManualConnectOnFailure, put(asyncInfo))); - return asyncInfo; -} - -template bool impl_IProvisionFromXmlDocumentResults::AllElementsProvisioned() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllElementsProvisioned(&value)); - return value; -} - -template hstring impl_IProvisionFromXmlDocumentResults::ProvisionResultsXml() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProvisionResultsXml(put(value))); - return value; -} - -template void impl_IProvisionedProfile::UpdateCost(Windows::Networking::Connectivity::NetworkCostType value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateCost(value)); -} - -template void impl_IProvisionedProfile::UpdateUsage(const Windows::Networking::NetworkOperators::ProfileUsage & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateUsage(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_IProvisioningAgent::ProvisionFromXmlDocumentAsync(hstring_ref provisioningXmlDocument) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ProvisionFromXmlDocumentAsync(get(provisioningXmlDocument), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Networking::NetworkOperators::ProvisionedProfile impl_IProvisioningAgent::GetProvisionedProfile(Windows::Networking::NetworkOperators::ProfileMediaType mediaType, hstring_ref profileName) const -{ - Windows::Networking::NetworkOperators::ProvisionedProfile provisionedProfile { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetProvisionedProfile(mediaType, get(profileName), put(provisionedProfile))); - return provisionedProfile; -} - -template Windows::Networking::NetworkOperators::ProvisioningAgent impl_IProvisioningAgentStaticMethods::CreateFromNetworkAccountId(hstring_ref networkAccountId) const -{ - Windows::Networking::NetworkOperators::ProvisioningAgent provisioningAgent { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromNetworkAccountId(get(networkAccountId), put(provisioningAgent))); - return provisioningAgent; -} - -template uint8_t impl_IUssdMessage::DataCodingScheme() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DataCodingScheme(&value)); - return value; -} - -template void impl_IUssdMessage::DataCodingScheme(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataCodingScheme(value)); -} - -template com_array impl_IUssdMessage::GetPayload() const -{ - com_array value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPayload(put_size(value), put(value))); - return value; -} - -template void impl_IUssdMessage::SetPayload(array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPayload(value.size(), get(value))); -} - -template hstring impl_IUssdMessage::PayloadAsText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PayloadAsText(put(value))); - return value; -} - -template void impl_IUssdMessage::PayloadAsText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PayloadAsText(get(value))); -} - -template Windows::Networking::NetworkOperators::UssdMessage impl_IUssdMessageFactory::CreateMessage(hstring_ref messageText) const -{ - Windows::Networking::NetworkOperators::UssdMessage ussdMessage { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMessage(get(messageText), put(ussdMessage))); - return ussdMessage; -} - -template Windows::Networking::NetworkOperators::UssdResultCode impl_IUssdReply::ResultCode() const -{ - Windows::Networking::NetworkOperators::UssdResultCode value {}; - check_hresult(static_cast(static_cast(*this))->get_ResultCode(&value)); - return value; -} - -template Windows::Networking::NetworkOperators::UssdMessage impl_IUssdReply::Message() const -{ - Windows::Networking::NetworkOperators::UssdMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IUssdSession::SendMessageAndGetReplyAsync(const Windows::Networking::NetworkOperators::UssdMessage & message) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SendMessageAndGetReplyAsync(get(message), put(asyncInfo))); - return asyncInfo; -} - -template void impl_IUssdSession::Close() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Close()); -} - -template Windows::Networking::NetworkOperators::UssdSession impl_IUssdSessionStatics::CreateFromNetworkAccountId(hstring_ref networkAccountId) const -{ - Windows::Networking::NetworkOperators::UssdSession ussdSession { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromNetworkAccountId(get(networkAccountId), put(ussdSession))); - return ussdSession; -} - -template Windows::Networking::NetworkOperators::UssdSession impl_IUssdSessionStatics::CreateFromNetworkInterfaceId(hstring_ref networkInterfaceId) const -{ - Windows::Networking::NetworkOperators::UssdSession ussdSession { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromNetworkInterfaceId(get(networkInterfaceId), put(ussdSession))); - return ussdSession; -} - -template Windows::Networking::NetworkOperators::NetworkOperatorEventMessageType impl_INetworkOperatorNotificationEventDetails::NotificationType() const -{ - Windows::Networking::NetworkOperators::NetworkOperatorEventMessageType value {}; - check_hresult(static_cast(static_cast(*this))->get_NotificationType(&value)); - return value; -} - -template hstring impl_INetworkOperatorNotificationEventDetails::NetworkAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NetworkAccountId(put(value))); - return value; -} - -template uint8_t impl_INetworkOperatorNotificationEventDetails::EncodingType() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EncodingType(&value)); - return value; -} - -template hstring impl_INetworkOperatorNotificationEventDetails::Message() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template hstring impl_INetworkOperatorNotificationEventDetails::RuleId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RuleId(put(value))); - return value; -} - -template Windows::Devices::Sms::ISmsMessage impl_INetworkOperatorNotificationEventDetails::SmsMessage() const -{ - Windows::Devices::Sms::ISmsMessage value; - check_hresult(static_cast(static_cast(*this))->get_SmsMessage(put(value))); - return value; -} - -template void impl_INetworkOperatorTetheringEntitlementCheck::AuthorizeTethering(bool allow, hstring_ref entitlementFailureReason) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AuthorizeTethering(allow, get(entitlementFailureReason))); -} - -template Windows::Foundation::IAsyncOperation impl_IFdnAccessManagerStatics::RequestUnlockAsync(hstring_ref contactListId) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_RequestUnlockAsync(get(contactListId), put(returnValue))); - return returnValue; -} - -inline Windows::Foundation::IAsyncOperation FdnAccessManager::RequestUnlockAsync(hstring_ref contactListId) -{ - return get_activation_factory().RequestUnlockAsync(contactListId); -} - -inline bool HotspotAuthenticationContext::TryGetAuthenticationContext(hstring_ref evenToken, Windows::Networking::NetworkOperators::HotspotAuthenticationContext & context) -{ - return get_activation_factory().TryGetAuthenticationContext(evenToken, context); -} - -inline Windows::Foundation::Collections::IVectorView KnownCSimFilePaths::EFSpn() -{ - return get_activation_factory().EFSpn(); -} - -inline Windows::Foundation::Collections::IVectorView KnownCSimFilePaths::Gid1() -{ - return get_activation_factory().Gid1(); -} - -inline Windows::Foundation::Collections::IVectorView KnownCSimFilePaths::Gid2() -{ - return get_activation_factory().Gid2(); -} - -inline Windows::Foundation::Collections::IVectorView KnownRuimFilePaths::EFSpn() -{ - return get_activation_factory().EFSpn(); -} - -inline Windows::Foundation::Collections::IVectorView KnownRuimFilePaths::Gid1() -{ - return get_activation_factory().Gid1(); -} - -inline Windows::Foundation::Collections::IVectorView KnownRuimFilePaths::Gid2() -{ - return get_activation_factory().Gid2(); -} - -inline Windows::Foundation::Collections::IVectorView KnownSimFilePaths::EFOns() -{ - return get_activation_factory().EFOns(); -} - -inline Windows::Foundation::Collections::IVectorView KnownSimFilePaths::EFSpn() -{ - return get_activation_factory().EFSpn(); -} - -inline Windows::Foundation::Collections::IVectorView KnownSimFilePaths::Gid1() -{ - return get_activation_factory().Gid1(); -} - -inline Windows::Foundation::Collections::IVectorView KnownSimFilePaths::Gid2() -{ - return get_activation_factory().Gid2(); -} - -inline Windows::Foundation::Collections::IVectorView KnownUSimFilePaths::EFSpn() -{ - return get_activation_factory().EFSpn(); -} - -inline Windows::Foundation::Collections::IVectorView KnownUSimFilePaths::EFOpl() -{ - return get_activation_factory().EFOpl(); -} - -inline Windows::Foundation::Collections::IVectorView KnownUSimFilePaths::EFPnn() -{ - return get_activation_factory().EFPnn(); -} - -inline Windows::Foundation::Collections::IVectorView KnownUSimFilePaths::Gid1() -{ - return get_activation_factory().Gid1(); -} - -inline Windows::Foundation::Collections::IVectorView KnownUSimFilePaths::Gid2() -{ - return get_activation_factory().Gid2(); -} - -inline Windows::Foundation::Collections::IVectorView MobileBroadbandAccount::AvailableNetworkAccountIds() -{ - return get_activation_factory().AvailableNetworkAccountIds(); -} - -inline Windows::Networking::NetworkOperators::MobileBroadbandAccount MobileBroadbandAccount::CreateFromNetworkAccountId(hstring_ref networkAccountId) -{ - return get_activation_factory().CreateFromNetworkAccountId(networkAccountId); -} - -inline MobileBroadbandAccountWatcher::MobileBroadbandAccountWatcher() : - MobileBroadbandAccountWatcher(activate_instance()) -{} - -inline hstring MobileBroadbandModem::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Networking::NetworkOperators::MobileBroadbandModem MobileBroadbandModem::FromId(hstring_ref deviceId) -{ - return get_activation_factory().FromId(deviceId); -} - -inline Windows::Networking::NetworkOperators::MobileBroadbandModem MobileBroadbandModem::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline NetworkOperatorTetheringAccessPointConfiguration::NetworkOperatorTetheringAccessPointConfiguration() : - NetworkOperatorTetheringAccessPointConfiguration(activate_instance()) -{} - -inline Windows::Networking::NetworkOperators::TetheringCapability NetworkOperatorTetheringManager::GetTetheringCapability(hstring_ref networkAccountId) -{ - return get_activation_factory().GetTetheringCapability(networkAccountId); -} - -inline Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager NetworkOperatorTetheringManager::CreateFromNetworkAccountId(hstring_ref networkAccountId) -{ - return get_activation_factory().CreateFromNetworkAccountId(networkAccountId); -} - -inline Windows::Networking::NetworkOperators::TetheringCapability NetworkOperatorTetheringManager::GetTetheringCapabilityFromConnectionProfile(const Windows::Networking::Connectivity::ConnectionProfile & profile) -{ - return get_activation_factory().GetTetheringCapabilityFromConnectionProfile(profile); -} - -inline Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager NetworkOperatorTetheringManager::CreateFromConnectionProfile(const Windows::Networking::Connectivity::ConnectionProfile & profile) -{ - return get_activation_factory().CreateFromConnectionProfile(profile); -} - -inline Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager NetworkOperatorTetheringManager::CreateFromConnectionProfile(const Windows::Networking::Connectivity::ConnectionProfile & profile, const Windows::Networking::Connectivity::NetworkAdapter & adapter) -{ - return get_activation_factory().CreateFromConnectionProfile(profile, adapter); -} - -inline ProvisioningAgent::ProvisioningAgent() : - ProvisioningAgent(activate_instance()) -{} - -inline Windows::Networking::NetworkOperators::ProvisioningAgent ProvisioningAgent::CreateFromNetworkAccountId(hstring_ref networkAccountId) -{ - return get_activation_factory().CreateFromNetworkAccountId(networkAccountId); -} - -inline UssdMessage::UssdMessage(hstring_ref messageText) : - UssdMessage(get_activation_factory().CreateMessage(messageText)) -{} - -inline Windows::Networking::NetworkOperators::UssdSession UssdSession::CreateFromNetworkAccountId(hstring_ref networkAccountId) -{ - return get_activation_factory().CreateFromNetworkAccountId(networkAccountId); -} - -inline Windows::Networking::NetworkOperators::UssdSession UssdSession::CreateFromNetworkInterfaceId(hstring_ref networkInterfaceId) -{ - return get_activation_factory().CreateFromNetworkInterfaceId(networkInterfaceId); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Networking.Proximity.h b/10.0.14393.0/winrt/Windows.Networking.Proximity.h deleted file mode 100644 index 91dc4532a..000000000 --- a/10.0.14393.0/winrt/Windows.Networking.Proximity.h +++ /dev/null @@ -1,1688 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Networking.Sockets.3.h" -#include "internal/Windows.Networking.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Networking.Proximity.3.h" -#include "Windows.Networking.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Networking::Proximity { - -template DeviceArrivedEventHandler::DeviceArrivedEventHandler(L lambda) : - DeviceArrivedEventHandler(impl::make_delegate, DeviceArrivedEventHandler>(std::forward(lambda))) -{} - -template DeviceArrivedEventHandler::DeviceArrivedEventHandler(F * function) : - DeviceArrivedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template DeviceArrivedEventHandler::DeviceArrivedEventHandler(O * object, M method) : - DeviceArrivedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void DeviceArrivedEventHandler::operator()(const Windows::Networking::Proximity::ProximityDevice & sender) const -{ - check_hresult((*this)->abi_Invoke(get(sender))); -} - -template DeviceDepartedEventHandler::DeviceDepartedEventHandler(L lambda) : - DeviceDepartedEventHandler(impl::make_delegate, DeviceDepartedEventHandler>(std::forward(lambda))) -{} - -template DeviceDepartedEventHandler::DeviceDepartedEventHandler(F * function) : - DeviceDepartedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template DeviceDepartedEventHandler::DeviceDepartedEventHandler(O * object, M method) : - DeviceDepartedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void DeviceDepartedEventHandler::operator()(const Windows::Networking::Proximity::ProximityDevice & sender) const -{ - check_hresult((*this)->abi_Invoke(get(sender))); -} - -template MessageReceivedHandler::MessageReceivedHandler(L lambda) : - MessageReceivedHandler(impl::make_delegate, MessageReceivedHandler>(std::forward(lambda))) -{} - -template MessageReceivedHandler::MessageReceivedHandler(F * function) : - MessageReceivedHandler([=](auto && ... args) { function(args ...); }) -{} - -template MessageReceivedHandler::MessageReceivedHandler(O * object, M method) : - MessageReceivedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void MessageReceivedHandler::operator()(const Windows::Networking::Proximity::ProximityDevice & sender, const Windows::Networking::Proximity::ProximityMessage & message) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(message))); -} - -template MessageTransmittedHandler::MessageTransmittedHandler(L lambda) : - MessageTransmittedHandler(impl::make_delegate, MessageTransmittedHandler>(std::forward(lambda))) -{} - -template MessageTransmittedHandler::MessageTransmittedHandler(F * function) : - MessageTransmittedHandler([=](auto && ... args) { function(args ...); }) -{} - -template MessageTransmittedHandler::MessageTransmittedHandler(O * object, M method) : - MessageTransmittedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void MessageTransmittedHandler::operator()(const Windows::Networking::Proximity::ProximityDevice & sender, int64_t messageId) const -{ - check_hresult((*this)->abi_Invoke(get(sender), messageId)); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PeerInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PeerInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllowBluetooth(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowBluetooth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowBluetooth(bool value) noexcept override - { - try - { - this->shim().AllowBluetooth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowInfrastructure(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowInfrastructure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowInfrastructure(bool value) noexcept override - { - try - { - this->shim().AllowInfrastructure(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowWiFiDirect(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowWiFiDirect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowWiFiDirect(bool value) noexcept override - { - try - { - this->shim().AllowWiFiDirect(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedDiscoveryTypes(Windows::Networking::Proximity::PeerDiscoveryTypes * value) noexcept override - { - try - { - *value = detach(this->shim().SupportedDiscoveryTypes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlternateIdentities(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AlternateIdentities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartWithMessage(abi_arg_in peerMessage) noexcept override - { - try - { - this->shim().Start(*reinterpret_cast(&peerMessage)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TriggeredConnectionStateChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().TriggeredConnectionStateChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TriggeredConnectionStateChanged(event_token cookie) noexcept override - { - try - { - this->shim().TriggeredConnectionStateChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ConnectionRequested(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ConnectionRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ConnectionRequested(event_token cookie) noexcept override - { - try - { - this->shim().ConnectionRequested(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllPeersAsync(abi_arg_out>> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().FindAllPeersAsync()); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectAsync(abi_arg_in peerInformation, abi_arg_out> asyncOp) noexcept override - { - try - { - *asyncOp = detach(this->shim().ConnectAsync(*reinterpret_cast(&peerInformation))); - return S_OK; - } - catch (...) - { - *asyncOp = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Role(Windows::Networking::Proximity::PeerRole * value) noexcept override - { - try - { - *value = detach(this->shim().Role()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Role(Windows::Networking::Proximity::PeerRole value) noexcept override - { - try - { - this->shim().Role(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DiscoveryData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DiscoveryData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DiscoveryData(abi_arg_in value) noexcept override - { - try - { - this->shim().DiscoveryData(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWatcher(abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher()); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DiscoveryData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DiscoveryData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HostName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HostName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Added(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Added(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Added(event_token token) noexcept override - { - try - { - this->shim().Added(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Removed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Removed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Removed(event_token token) noexcept override - { - try - { - this->shim().Removed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Updated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Updated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Updated(event_token token) noexcept override - { - try - { - this->shim().Updated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnumerationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnumerationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnumerationCompleted(event_token token) noexcept override - { - try - { - this->shim().EnumerationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Networking::Proximity::PeerWatcherStatus * status) noexcept override - { - try - { - *status = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SubscribeForMessage(abi_arg_in messageType, abi_arg_in messageReceivedHandler, int64_t * subscriptionId) noexcept override - { - try - { - *subscriptionId = detach(this->shim().SubscribeForMessage(*reinterpret_cast(&messageType), *reinterpret_cast(&messageReceivedHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PublishMessage(abi_arg_in messageType, abi_arg_in message, int64_t * messageId) noexcept override - { - try - { - *messageId = detach(this->shim().PublishMessage(*reinterpret_cast(&messageType), *reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PublishMessageWithCallback(abi_arg_in messageType, abi_arg_in message, abi_arg_in messageTransmittedHandler, int64_t * messageId) noexcept override - { - try - { - *messageId = detach(this->shim().PublishMessage(*reinterpret_cast(&messageType), *reinterpret_cast(&message), *reinterpret_cast(&messageTransmittedHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PublishBinaryMessage(abi_arg_in messageType, abi_arg_in message, int64_t * messageId) noexcept override - { - try - { - *messageId = detach(this->shim().PublishBinaryMessage(*reinterpret_cast(&messageType), *reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PublishBinaryMessageWithCallback(abi_arg_in messageType, abi_arg_in message, abi_arg_in messageTransmittedHandler, int64_t * messageId) noexcept override - { - try - { - *messageId = detach(this->shim().PublishBinaryMessage(*reinterpret_cast(&messageType), *reinterpret_cast(&message), *reinterpret_cast(&messageTransmittedHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PublishUriMessage(abi_arg_in message, int64_t * messageId) noexcept override - { - try - { - *messageId = detach(this->shim().PublishUriMessage(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PublishUriMessageWithCallback(abi_arg_in message, abi_arg_in messageTransmittedHandler, int64_t * messageId) noexcept override - { - try - { - *messageId = detach(this->shim().PublishUriMessage(*reinterpret_cast(&message), *reinterpret_cast(&messageTransmittedHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopSubscribingForMessage(int64_t subscriptionId) noexcept override - { - try - { - this->shim().StopSubscribingForMessage(subscriptionId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopPublishingMessage(int64_t messageId) noexcept override - { - try - { - this->shim().StopPublishingMessage(messageId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DeviceArrived(abi_arg_in arrivedHandler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().DeviceArrived(*reinterpret_cast(&arrivedHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DeviceArrived(event_token cookie) noexcept override - { - try - { - this->shim().DeviceArrived(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DeviceDeparted(abi_arg_in departedHandler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().DeviceDeparted(*reinterpret_cast(&departedHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DeviceDeparted(event_token cookie) noexcept override - { - try - { - this->shim().DeviceDeparted(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxMessageBytes(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxMessageBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BitsPerSecond(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BitsPerSecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefault(abi_arg_out proximityDevice) noexcept override - { - try - { - *proximityDevice = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *proximityDevice = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromId(abi_arg_in deviceId, abi_arg_out proximityDevice) noexcept override - { - try - { - *proximityDevice = detach(this->shim().FromId(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *proximityDevice = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MessageType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MessageType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubscriptionId(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().SubscriptionId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataAsString(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataAsString()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_State(Windows::Networking::Proximity::TriggeredConnectState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Socket(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Socket()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Networking::Proximity { - -template hstring impl_IProximityMessage::MessageType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MessageType(put(value))); - return value; -} - -template int64_t impl_IProximityMessage::SubscriptionId() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SubscriptionId(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IProximityMessage::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template hstring impl_IProximityMessage::DataAsString() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DataAsString(put(value))); - return value; -} - -template int64_t impl_IProximityDevice::SubscribeForMessage(hstring_ref messageType, const Windows::Networking::Proximity::MessageReceivedHandler & messageReceivedHandler) const -{ - int64_t subscriptionId {}; - check_hresult(static_cast(static_cast(*this))->abi_SubscribeForMessage(get(messageType), get(messageReceivedHandler), &subscriptionId)); - return subscriptionId; -} - -template int64_t impl_IProximityDevice::PublishMessage(hstring_ref messageType, hstring_ref message) const -{ - int64_t messageId {}; - check_hresult(static_cast(static_cast(*this))->abi_PublishMessage(get(messageType), get(message), &messageId)); - return messageId; -} - -template int64_t impl_IProximityDevice::PublishMessage(hstring_ref messageType, hstring_ref message, const Windows::Networking::Proximity::MessageTransmittedHandler & messageTransmittedHandler) const -{ - int64_t messageId {}; - check_hresult(static_cast(static_cast(*this))->abi_PublishMessageWithCallback(get(messageType), get(message), get(messageTransmittedHandler), &messageId)); - return messageId; -} - -template int64_t impl_IProximityDevice::PublishBinaryMessage(hstring_ref messageType, const Windows::Storage::Streams::IBuffer & message) const -{ - int64_t messageId {}; - check_hresult(static_cast(static_cast(*this))->abi_PublishBinaryMessage(get(messageType), get(message), &messageId)); - return messageId; -} - -template int64_t impl_IProximityDevice::PublishBinaryMessage(hstring_ref messageType, const Windows::Storage::Streams::IBuffer & message, const Windows::Networking::Proximity::MessageTransmittedHandler & messageTransmittedHandler) const -{ - int64_t messageId {}; - check_hresult(static_cast(static_cast(*this))->abi_PublishBinaryMessageWithCallback(get(messageType), get(message), get(messageTransmittedHandler), &messageId)); - return messageId; -} - -template int64_t impl_IProximityDevice::PublishUriMessage(const Windows::Foundation::Uri & message) const -{ - int64_t messageId {}; - check_hresult(static_cast(static_cast(*this))->abi_PublishUriMessage(get(message), &messageId)); - return messageId; -} - -template int64_t impl_IProximityDevice::PublishUriMessage(const Windows::Foundation::Uri & message, const Windows::Networking::Proximity::MessageTransmittedHandler & messageTransmittedHandler) const -{ - int64_t messageId {}; - check_hresult(static_cast(static_cast(*this))->abi_PublishUriMessageWithCallback(get(message), get(messageTransmittedHandler), &messageId)); - return messageId; -} - -template void impl_IProximityDevice::StopSubscribingForMessage(int64_t subscriptionId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopSubscribingForMessage(subscriptionId)); -} - -template void impl_IProximityDevice::StopPublishingMessage(int64_t messageId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopPublishingMessage(messageId)); -} - -template event_token impl_IProximityDevice::DeviceArrived(const Windows::Networking::Proximity::DeviceArrivedEventHandler & arrivedHandler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_DeviceArrived(get(arrivedHandler), &cookie)); - return cookie; -} - -template event_revoker impl_IProximityDevice::DeviceArrived(auto_revoke_t, const Windows::Networking::Proximity::DeviceArrivedEventHandler & arrivedHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Proximity::IProximityDevice::remove_DeviceArrived, DeviceArrived(arrivedHandler)); -} - -template void impl_IProximityDevice::DeviceArrived(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DeviceArrived(cookie)); -} - -template event_token impl_IProximityDevice::DeviceDeparted(const Windows::Networking::Proximity::DeviceDepartedEventHandler & departedHandler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_DeviceDeparted(get(departedHandler), &cookie)); - return cookie; -} - -template event_revoker impl_IProximityDevice::DeviceDeparted(auto_revoke_t, const Windows::Networking::Proximity::DeviceDepartedEventHandler & departedHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Proximity::IProximityDevice::remove_DeviceDeparted, DeviceDeparted(departedHandler)); -} - -template void impl_IProximityDevice::DeviceDeparted(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DeviceDeparted(cookie)); -} - -template uint32_t impl_IProximityDevice::MaxMessageBytes() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxMessageBytes(&value)); - return value; -} - -template uint64_t impl_IProximityDevice::BitsPerSecond() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BitsPerSecond(&value)); - return value; -} - -template hstring impl_IProximityDevice::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template hstring impl_IProximityDeviceStatics::GetDeviceSelector() const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(selector))); - return selector; -} - -template Windows::Networking::Proximity::ProximityDevice impl_IProximityDeviceStatics::GetDefault() const -{ - Windows::Networking::Proximity::ProximityDevice proximityDevice { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(proximityDevice))); - return proximityDevice; -} - -template Windows::Networking::Proximity::ProximityDevice impl_IProximityDeviceStatics::FromId(hstring_ref deviceId) const -{ - Windows::Networking::Proximity::ProximityDevice proximityDevice { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromId(get(deviceId), put(proximityDevice))); - return proximityDevice; -} - -template Windows::Networking::Proximity::TriggeredConnectState impl_ITriggeredConnectionStateChangedEventArgs::State() const -{ - Windows::Networking::Proximity::TriggeredConnectState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template uint32_t impl_ITriggeredConnectionStateChangedEventArgs::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Networking::Sockets::StreamSocket impl_ITriggeredConnectionStateChangedEventArgs::Socket() const -{ - Windows::Networking::Sockets::StreamSocket value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Socket(put(value))); - return value; -} - -template hstring impl_IPeerInformation::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template Windows::Networking::HostName impl_IPeerInformationWithHostAndService::HostName() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HostName(put(value))); - return value; -} - -template hstring impl_IPeerInformationWithHostAndService::ServiceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceName(put(value))); - return value; -} - -template hstring impl_IPeerInformation3::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IPeerInformation3::DiscoveryData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_DiscoveryData(put(value))); - return value; -} - -template Windows::Networking::Proximity::PeerInformation impl_IConnectionRequestedEventArgs::PeerInformation() const -{ - Windows::Networking::Proximity::PeerInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PeerInformation(put(value))); - return value; -} - -template event_token impl_IPeerWatcher::Added(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Added(get(handler), &token)); - return token; -} - -template event_revoker impl_IPeerWatcher::Added(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Proximity::IPeerWatcher::remove_Added, Added(handler)); -} - -template void impl_IPeerWatcher::Added(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Added(token)); -} - -template event_token impl_IPeerWatcher::Removed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Removed(get(handler), &token)); - return token; -} - -template event_revoker impl_IPeerWatcher::Removed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Proximity::IPeerWatcher::remove_Removed, Removed(handler)); -} - -template void impl_IPeerWatcher::Removed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Removed(token)); -} - -template event_token impl_IPeerWatcher::Updated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Updated(get(handler), &token)); - return token; -} - -template event_revoker impl_IPeerWatcher::Updated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Proximity::IPeerWatcher::remove_Updated, Updated(handler)); -} - -template void impl_IPeerWatcher::Updated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Updated(token)); -} - -template event_token impl_IPeerWatcher::EnumerationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnumerationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IPeerWatcher::EnumerationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Proximity::IPeerWatcher::remove_EnumerationCompleted, EnumerationCompleted(handler)); -} - -template void impl_IPeerWatcher::EnumerationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnumerationCompleted(token)); -} - -template event_token impl_IPeerWatcher::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IPeerWatcher::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Proximity::IPeerWatcher::remove_Stopped, Stopped(handler)); -} - -template void impl_IPeerWatcher::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template Windows::Networking::Proximity::PeerWatcherStatus impl_IPeerWatcher::Status() const -{ - Windows::Networking::Proximity::PeerWatcherStatus status {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&status)); - return status; -} - -template void impl_IPeerWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IPeerWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template bool impl_IPeerFinderStatics::AllowBluetooth() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowBluetooth(&value)); - return value; -} - -template void impl_IPeerFinderStatics::AllowBluetooth(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowBluetooth(value)); -} - -template bool impl_IPeerFinderStatics::AllowInfrastructure() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowInfrastructure(&value)); - return value; -} - -template void impl_IPeerFinderStatics::AllowInfrastructure(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowInfrastructure(value)); -} - -template bool impl_IPeerFinderStatics::AllowWiFiDirect() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowWiFiDirect(&value)); - return value; -} - -template void impl_IPeerFinderStatics::AllowWiFiDirect(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowWiFiDirect(value)); -} - -template hstring impl_IPeerFinderStatics::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IPeerFinderStatics::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template Windows::Networking::Proximity::PeerDiscoveryTypes impl_IPeerFinderStatics::SupportedDiscoveryTypes() const -{ - Windows::Networking::Proximity::PeerDiscoveryTypes value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportedDiscoveryTypes(&value)); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IPeerFinderStatics::AlternateIdentities() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_AlternateIdentities(put(value))); - return value; -} - -template void impl_IPeerFinderStatics::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IPeerFinderStatics::Start(hstring_ref peerMessage) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartWithMessage(get(peerMessage))); -} - -template void impl_IPeerFinderStatics::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template event_token impl_IPeerFinderStatics::TriggeredConnectionStateChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_TriggeredConnectionStateChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IPeerFinderStatics::TriggeredConnectionStateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Proximity::IPeerFinderStatics::remove_TriggeredConnectionStateChanged, TriggeredConnectionStateChanged(handler)); -} - -template void impl_IPeerFinderStatics::TriggeredConnectionStateChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TriggeredConnectionStateChanged(cookie)); -} - -template event_token impl_IPeerFinderStatics::ConnectionRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ConnectionRequested(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IPeerFinderStatics::ConnectionRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Proximity::IPeerFinderStatics::remove_ConnectionRequested, ConnectionRequested(handler)); -} - -template void impl_IPeerFinderStatics::ConnectionRequested(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ConnectionRequested(cookie)); -} - -template Windows::Foundation::IAsyncOperation> impl_IPeerFinderStatics::FindAllPeersAsync() const -{ - Windows::Foundation::IAsyncOperation> asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_FindAllPeersAsync(put(asyncOp))); - return asyncOp; -} - -template Windows::Foundation::IAsyncOperation impl_IPeerFinderStatics::ConnectAsync(const Windows::Networking::Proximity::PeerInformation & peerInformation) const -{ - Windows::Foundation::IAsyncOperation asyncOp; - check_hresult(static_cast(static_cast(*this))->abi_ConnectAsync(get(peerInformation), put(asyncOp))); - return asyncOp; -} - -template Windows::Networking::Proximity::PeerRole impl_IPeerFinderStatics2::Role() const -{ - Windows::Networking::Proximity::PeerRole value {}; - check_hresult(static_cast(static_cast(*this))->get_Role(&value)); - return value; -} - -template void impl_IPeerFinderStatics2::Role(Windows::Networking::Proximity::PeerRole value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Role(value)); -} - -template Windows::Storage::Streams::IBuffer impl_IPeerFinderStatics2::DiscoveryData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_DiscoveryData(put(value))); - return value; -} - -template void impl_IPeerFinderStatics2::DiscoveryData(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DiscoveryData(get(value))); -} - -template Windows::Networking::Proximity::PeerWatcher impl_IPeerFinderStatics2::CreateWatcher() const -{ - Windows::Networking::Proximity::PeerWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcher(put(watcher))); - return watcher; -} - -inline bool PeerFinder::AllowBluetooth() -{ - return get_activation_factory().AllowBluetooth(); -} - -inline void PeerFinder::AllowBluetooth(bool value) -{ - get_activation_factory().AllowBluetooth(value); -} - -inline bool PeerFinder::AllowInfrastructure() -{ - return get_activation_factory().AllowInfrastructure(); -} - -inline void PeerFinder::AllowInfrastructure(bool value) -{ - get_activation_factory().AllowInfrastructure(value); -} - -inline bool PeerFinder::AllowWiFiDirect() -{ - return get_activation_factory().AllowWiFiDirect(); -} - -inline void PeerFinder::AllowWiFiDirect(bool value) -{ - get_activation_factory().AllowWiFiDirect(value); -} - -inline hstring PeerFinder::DisplayName() -{ - return get_activation_factory().DisplayName(); -} - -inline void PeerFinder::DisplayName(hstring_ref value) -{ - get_activation_factory().DisplayName(value); -} - -inline Windows::Networking::Proximity::PeerDiscoveryTypes PeerFinder::SupportedDiscoveryTypes() -{ - return get_activation_factory().SupportedDiscoveryTypes(); -} - -inline Windows::Foundation::Collections::IMap PeerFinder::AlternateIdentities() -{ - return get_activation_factory().AlternateIdentities(); -} - -inline void PeerFinder::Start() -{ - get_activation_factory().Start(); -} - -inline void PeerFinder::Start(hstring_ref peerMessage) -{ - get_activation_factory().Start(peerMessage); -} - -inline void PeerFinder::Stop() -{ - get_activation_factory().Stop(); -} - -inline event_token PeerFinder::TriggeredConnectionStateChanged(const Windows::Foundation::TypedEventHandler & handler) -{ - return get_activation_factory().TriggeredConnectionStateChanged(handler); -} - -inline factory_event_revoker PeerFinder::TriggeredConnectionStateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Networking::Proximity::IPeerFinderStatics::remove_TriggeredConnectionStateChanged, factory.TriggeredConnectionStateChanged(handler) }; -} - -inline void PeerFinder::TriggeredConnectionStateChanged(event_token cookie) -{ - get_activation_factory().TriggeredConnectionStateChanged(cookie); -} - -inline event_token PeerFinder::ConnectionRequested(const Windows::Foundation::TypedEventHandler & handler) -{ - return get_activation_factory().ConnectionRequested(handler); -} - -inline factory_event_revoker PeerFinder::ConnectionRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Networking::Proximity::IPeerFinderStatics::remove_ConnectionRequested, factory.ConnectionRequested(handler) }; -} - -inline void PeerFinder::ConnectionRequested(event_token cookie) -{ - get_activation_factory().ConnectionRequested(cookie); -} - -inline Windows::Foundation::IAsyncOperation> PeerFinder::FindAllPeersAsync() -{ - return get_activation_factory().FindAllPeersAsync(); -} - -inline Windows::Foundation::IAsyncOperation PeerFinder::ConnectAsync(const Windows::Networking::Proximity::PeerInformation & peerInformation) -{ - return get_activation_factory().ConnectAsync(peerInformation); -} - -inline Windows::Networking::Proximity::PeerRole PeerFinder::Role() -{ - return get_activation_factory().Role(); -} - -inline void PeerFinder::Role(Windows::Networking::Proximity::PeerRole value) -{ - get_activation_factory().Role(value); -} - -inline Windows::Storage::Streams::IBuffer PeerFinder::DiscoveryData() -{ - return get_activation_factory().DiscoveryData(); -} - -inline void PeerFinder::DiscoveryData(const Windows::Storage::Streams::IBuffer & value) -{ - get_activation_factory().DiscoveryData(value); -} - -inline Windows::Networking::Proximity::PeerWatcher PeerFinder::CreateWatcher() -{ - return get_activation_factory().CreateWatcher(); -} - -inline hstring ProximityDevice::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::Networking::Proximity::ProximityDevice ProximityDevice::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Networking::Proximity::ProximityDevice ProximityDevice::FromId(hstring_ref deviceId) -{ - return get_activation_factory().FromId(deviceId); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Networking.PushNotifications.h b/10.0.14393.0/winrt/Windows.Networking.PushNotifications.h deleted file mode 100644 index d78f3b917..000000000 --- a/10.0.14393.0/winrt/Windows.Networking.PushNotifications.h +++ /dev/null @@ -1,499 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.UI.Notifications.3.h" -#include "internal/Windows.Networking.PushNotifications.3.h" -#include "Windows.Networking.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Close() noexcept override - { - try - { - this->shim().Close(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PushNotificationReceived(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PushNotificationReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PushNotificationReceived(event_token token) noexcept override - { - try - { - this->shim().PushNotificationReceived(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreatePushNotificationChannelForApplicationAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreatePushNotificationChannelForApplicationAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePushNotificationChannelForApplicationAsyncWithId(abi_arg_in applicationId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreatePushNotificationChannelForApplicationAsync(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePushNotificationChannelForSecondaryTileAsync(abi_arg_in tileId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreatePushNotificationChannelForSecondaryTileAsync(*reinterpret_cast(&tileId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreatePushNotificationChannelForApplicationAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreatePushNotificationChannelForApplicationAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePushNotificationChannelForApplicationAsyncWithId(abi_arg_in applicationId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreatePushNotificationChannelForApplicationAsync(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePushNotificationChannelForSecondaryTileAsync(abi_arg_in tileId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreatePushNotificationChannelForSecondaryTileAsync(*reinterpret_cast(&tileId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForUser(abi_arg_in user, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Cancel(bool value) noexcept override - { - try - { - this->shim().Cancel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cancel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Cancel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NotificationType(Windows::Networking::PushNotifications::PushNotificationType * value) noexcept override - { - try - { - *value = detach(this->shim().NotificationType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToastNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ToastNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TileNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TileNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BadgeNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BadgeNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawNotification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RawNotification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Networking::PushNotifications { - -template Windows::Foundation::IAsyncOperation impl_IPushNotificationChannelManagerStatics::CreatePushNotificationChannelForApplicationAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreatePushNotificationChannelForApplicationAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPushNotificationChannelManagerStatics::CreatePushNotificationChannelForApplicationAsync(hstring_ref applicationId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreatePushNotificationChannelForApplicationAsyncWithId(get(applicationId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPushNotificationChannelManagerStatics::CreatePushNotificationChannelForSecondaryTileAsync(hstring_ref tileId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreatePushNotificationChannelForSecondaryTileAsync(get(tileId), put(operation))); - return operation; -} - -template Windows::Networking::PushNotifications::PushNotificationChannelManagerForUser impl_IPushNotificationChannelManagerStatics2::GetForUser(const Windows::System::User & user) const -{ - Windows::Networking::PushNotifications::PushNotificationChannelManagerForUser result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForUser(get(user), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IPushNotificationChannelManagerForUser::CreatePushNotificationChannelForApplicationAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreatePushNotificationChannelForApplicationAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPushNotificationChannelManagerForUser::CreatePushNotificationChannelForApplicationAsync(hstring_ref applicationId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreatePushNotificationChannelForApplicationAsyncWithId(get(applicationId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPushNotificationChannelManagerForUser::CreatePushNotificationChannelForSecondaryTileAsync(hstring_ref tileId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreatePushNotificationChannelForSecondaryTileAsync(get(tileId), put(operation))); - return operation; -} - -template Windows::System::User impl_IPushNotificationChannelManagerForUser::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template hstring impl_IPushNotificationChannel::Uri() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IPushNotificationChannel::ExpirationTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ExpirationTime(put(value))); - return value; -} - -template void impl_IPushNotificationChannel::Close() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Close()); -} - -template event_token impl_IPushNotificationChannel::PushNotificationReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PushNotificationReceived(get(handler), &token)); - return token; -} - -template event_revoker impl_IPushNotificationChannel::PushNotificationReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::PushNotifications::IPushNotificationChannel::remove_PushNotificationReceived, PushNotificationReceived(handler)); -} - -template void impl_IPushNotificationChannel::PushNotificationReceived(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PushNotificationReceived(token)); -} - -template void impl_IPushNotificationReceivedEventArgs::Cancel(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Cancel(value)); -} - -template bool impl_IPushNotificationReceivedEventArgs::Cancel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Cancel(&value)); - return value; -} - -template Windows::Networking::PushNotifications::PushNotificationType impl_IPushNotificationReceivedEventArgs::NotificationType() const -{ - Windows::Networking::PushNotifications::PushNotificationType value {}; - check_hresult(static_cast(static_cast(*this))->get_NotificationType(&value)); - return value; -} - -template Windows::UI::Notifications::ToastNotification impl_IPushNotificationReceivedEventArgs::ToastNotification() const -{ - Windows::UI::Notifications::ToastNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ToastNotification(put(value))); - return value; -} - -template Windows::UI::Notifications::TileNotification impl_IPushNotificationReceivedEventArgs::TileNotification() const -{ - Windows::UI::Notifications::TileNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TileNotification(put(value))); - return value; -} - -template Windows::UI::Notifications::BadgeNotification impl_IPushNotificationReceivedEventArgs::BadgeNotification() const -{ - Windows::UI::Notifications::BadgeNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BadgeNotification(put(value))); - return value; -} - -template Windows::Networking::PushNotifications::RawNotification impl_IPushNotificationReceivedEventArgs::RawNotification() const -{ - Windows::Networking::PushNotifications::RawNotification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RawNotification(put(value))); - return value; -} - -template hstring impl_IRawNotification::Content() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -inline Windows::Foundation::IAsyncOperation PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync() -{ - return get_activation_factory().CreatePushNotificationChannelForApplicationAsync(); -} - -inline Windows::Foundation::IAsyncOperation PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync(hstring_ref applicationId) -{ - return get_activation_factory().CreatePushNotificationChannelForApplicationAsync(applicationId); -} - -inline Windows::Foundation::IAsyncOperation PushNotificationChannelManager::CreatePushNotificationChannelForSecondaryTileAsync(hstring_ref tileId) -{ - return get_activation_factory().CreatePushNotificationChannelForSecondaryTileAsync(tileId); -} - -inline Windows::Networking::PushNotifications::PushNotificationChannelManagerForUser PushNotificationChannelManager::GetForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetForUser(user); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Networking.ServiceDiscovery.Dnssd.h b/10.0.14393.0/winrt/Windows.Networking.ServiceDiscovery.Dnssd.h deleted file mode 100644 index e00109d43..000000000 --- a/10.0.14393.0/winrt/Windows.Networking.ServiceDiscovery.Dnssd.h +++ /dev/null @@ -1,614 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Networking.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Networking.Sockets.3.h" -#include "internal/Windows.Networking.Connectivity.3.h" -#include "internal/Windows.Networking.ServiceDiscovery.Dnssd.3.h" -#include "Windows.Networking.h" -#include "Windows.Foundation.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Networking::ServiceDiscovery::Dnssd::DnssdRegistrationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IPAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IPAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasInstanceNameChanged(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasInstanceNameChanged()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DnssdServiceInstanceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DnssdServiceInstanceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DnssdServiceInstanceName(abi_arg_in value) noexcept override - { - try - { - this->shim().DnssdServiceInstanceName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HostName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HostName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HostName(abi_arg_in value) noexcept override - { - try - { - this->shim().HostName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Port(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Port()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Port(uint16_t value) noexcept override - { - try - { - this->shim().Port(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Priority(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Priority()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Priority(uint16_t value) noexcept override - { - try - { - this->shim().Priority(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Weight(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Weight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Weight(uint16_t value) noexcept override - { - try - { - this->shim().Weight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextAttributes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TextAttributes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterStreamSocketListenerAsync1(abi_arg_in socket, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RegisterStreamSocketListenerAsync(*reinterpret_cast(&socket))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterStreamSocketListenerAsync2(abi_arg_in socket, abi_arg_in adapter, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RegisterStreamSocketListenerAsync(*reinterpret_cast(&socket), *reinterpret_cast(&adapter))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterDatagramSocketAsync1(abi_arg_in socket, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RegisterDatagramSocketAsync(*reinterpret_cast(&socket))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterDatagramSocketAsync2(abi_arg_in socket, abi_arg_in adapter, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RegisterDatagramSocketAsync(*reinterpret_cast(&socket), *reinterpret_cast(&adapter))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in dnssdServiceInstanceName, abi_arg_in hostName, uint16_t port, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&dnssdServiceInstanceName), *reinterpret_cast(&hostName), port)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Added(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Added(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Added(event_token token) noexcept override - { - try - { - this->shim().Added(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnumerationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnumerationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnumerationCompleted(event_token token) noexcept override - { - try - { - this->shim().EnumerationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcherStatus * status) noexcept override - { - try - { - *status = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Networking::ServiceDiscovery::Dnssd { - -template event_token impl_IDnssdServiceWatcher::Added(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Added(get(handler), &token)); - return token; -} - -template event_revoker impl_IDnssdServiceWatcher::Added(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::ServiceDiscovery::Dnssd::IDnssdServiceWatcher::remove_Added, Added(handler)); -} - -template void impl_IDnssdServiceWatcher::Added(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Added(token)); -} - -template event_token impl_IDnssdServiceWatcher::EnumerationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnumerationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IDnssdServiceWatcher::EnumerationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::ServiceDiscovery::Dnssd::IDnssdServiceWatcher::remove_EnumerationCompleted, EnumerationCompleted(handler)); -} - -template void impl_IDnssdServiceWatcher::EnumerationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnumerationCompleted(token)); -} - -template event_token impl_IDnssdServiceWatcher::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IDnssdServiceWatcher::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::ServiceDiscovery::Dnssd::IDnssdServiceWatcher::remove_Stopped, Stopped(handler)); -} - -template void impl_IDnssdServiceWatcher::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcherStatus impl_IDnssdServiceWatcher::Status() const -{ - Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcherStatus status {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&status)); - return status; -} - -template void impl_IDnssdServiceWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IDnssdServiceWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template Windows::Networking::ServiceDiscovery::Dnssd::DnssdRegistrationStatus impl_IDnssdRegistrationResult::Status() const -{ - Windows::Networking::ServiceDiscovery::Dnssd::DnssdRegistrationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Networking::HostName impl_IDnssdRegistrationResult::IPAddress() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IPAddress(put(value))); - return value; -} - -template bool impl_IDnssdRegistrationResult::HasInstanceNameChanged() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasInstanceNameChanged(&value)); - return value; -} - -template Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance impl_IDnssdServiceInstanceFactory::Create(hstring_ref dnssdServiceInstanceName, const Windows::Networking::HostName & hostName, uint16_t port) const -{ - Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(dnssdServiceInstanceName), get(hostName), port, put(result))); - return result; -} - -template hstring impl_IDnssdServiceInstance::DnssdServiceInstanceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DnssdServiceInstanceName(put(value))); - return value; -} - -template void impl_IDnssdServiceInstance::DnssdServiceInstanceName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DnssdServiceInstanceName(get(value))); -} - -template Windows::Networking::HostName impl_IDnssdServiceInstance::HostName() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HostName(put(value))); - return value; -} - -template void impl_IDnssdServiceInstance::HostName(const Windows::Networking::HostName & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HostName(get(value))); -} - -template uint16_t impl_IDnssdServiceInstance::Port() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Port(&value)); - return value; -} - -template void impl_IDnssdServiceInstance::Port(uint16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Port(value)); -} - -template uint16_t impl_IDnssdServiceInstance::Priority() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Priority(&value)); - return value; -} - -template void impl_IDnssdServiceInstance::Priority(uint16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Priority(value)); -} - -template uint16_t impl_IDnssdServiceInstance::Weight() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Weight(&value)); - return value; -} - -template void impl_IDnssdServiceInstance::Weight(uint16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Weight(value)); -} - -template Windows::Foundation::Collections::IMap impl_IDnssdServiceInstance::TextAttributes() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_TextAttributes(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDnssdServiceInstance::RegisterStreamSocketListenerAsync(const Windows::Networking::Sockets::StreamSocketListener & socket) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RegisterStreamSocketListenerAsync1(get(socket), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDnssdServiceInstance::RegisterStreamSocketListenerAsync(const Windows::Networking::Sockets::StreamSocketListener & socket, const Windows::Networking::Connectivity::NetworkAdapter & adapter) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RegisterStreamSocketListenerAsync2(get(socket), get(adapter), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDnssdServiceInstance::RegisterDatagramSocketAsync(const Windows::Networking::Sockets::DatagramSocket & socket) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RegisterDatagramSocketAsync1(get(socket), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDnssdServiceInstance::RegisterDatagramSocketAsync(const Windows::Networking::Sockets::DatagramSocket & socket, const Windows::Networking::Connectivity::NetworkAdapter & adapter) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RegisterDatagramSocketAsync2(get(socket), get(adapter), put(result))); - return result; -} - -inline DnssdRegistrationResult::DnssdRegistrationResult() : - DnssdRegistrationResult(activate_instance()) -{} - -inline DnssdServiceInstance::DnssdServiceInstance(hstring_ref dnssdServiceInstanceName, const Windows::Networking::HostName & hostName, uint16_t port) : - DnssdServiceInstance(get_activation_factory().Create(dnssdServiceInstanceName, hostName, port)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Networking.Sockets.h b/10.0.14393.0/winrt/Windows.Networking.Sockets.h deleted file mode 100644 index 5b7fe6717..000000000 --- a/10.0.14393.0/winrt/Windows.Networking.Sockets.h +++ /dev/null @@ -1,4188 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Networking.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Networking.Connectivity.3.h" -#include "internal/Windows.Security.Cryptography.Certificates.3.h" -#include "internal/Windows.Security.Credentials.3.h" -#include "internal/Windows.Web.3.h" -#include "internal/Windows.ApplicationModel.Background.3.h" -#include "internal/Windows.Networking.Sockets.3.h" -#include "Windows.Networking.h" -#include "Windows.ApplicationModel.Background.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ControlChannelTriggerId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ControlChannelTriggerId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerKeepAliveIntervalInMinutes(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ServerKeepAliveIntervalInMinutes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ServerKeepAliveIntervalInMinutes(uint32_t value) noexcept override - { - try - { - this->shim().ServerKeepAliveIntervalInMinutes(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentKeepAliveIntervalInMinutes(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentKeepAliveIntervalInMinutes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportObject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransportObject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeepAliveTrigger(abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().KeepAliveTrigger()); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PushNotificationTrigger(abi_arg_out trigger) noexcept override - { - try - { - *trigger = detach(this->shim().PushNotificationTrigger()); - return S_OK; - } - catch (...) - { - *trigger = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UsingTransport(abi_arg_in transport) noexcept override - { - try - { - this->shim().UsingTransport(*reinterpret_cast(&transport)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WaitForPushEnabled(Windows::Networking::Sockets::ControlChannelTriggerStatus * channelTriggerStatus) noexcept override - { - try - { - *channelTriggerStatus = detach(this->shim().WaitForPushEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DecreaseNetworkKeepAliveInterval() noexcept override - { - try - { - this->shim().DecreaseNetworkKeepAliveInterval(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FlushTransport() noexcept override - { - try - { - this->shim().FlushTransport(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsWakeFromLowPowerSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsWakeFromLowPowerSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ControlChannelTrigger(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ControlChannelTrigger()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateControlChannelTrigger(abi_arg_in channelId, uint32_t serverKeepAliveIntervalInMinutes, abi_arg_out notificationChannel) noexcept override - { - try - { - *notificationChannel = detach(this->shim().CreateControlChannelTrigger(*reinterpret_cast(&channelId), serverKeepAliveIntervalInMinutes)); - return S_OK; - } - catch (...) - { - *notificationChannel = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateControlChannelTriggerEx(abi_arg_in channelId, uint32_t serverKeepAliveIntervalInMinutes, Windows::Networking::Sockets::ControlChannelTriggerResourceType resourceRequestType, abi_arg_out notificationChannel) noexcept override - { - try - { - *notificationChannel = detach(this->shim().CreateControlChannelTriggerEx(*reinterpret_cast(&channelId), serverKeepAliveIntervalInMinutes, resourceRequestType)); - return S_OK; - } - catch (...) - { - *notificationChannel = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResetReason(Windows::Networking::Sockets::ControlChannelTriggerResetReason * value) noexcept override - { - try - { - *value = detach(this->shim().ResetReason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HardwareSlotReset(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HardwareSlotReset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SoftwareSlotReset(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SoftwareSlotReset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Control(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Control()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Information(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Information()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectAsync(abi_arg_in remoteHostName, abi_arg_in remoteServiceName, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ConnectAsync(*reinterpret_cast(&remoteHostName), *reinterpret_cast(&remoteServiceName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectWithEndpointPairAsync(abi_arg_in endpointPair, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ConnectAsync(*reinterpret_cast(&endpointPair))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BindServiceNameAsync(abi_arg_in localServiceName, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().BindServiceNameAsync(*reinterpret_cast(&localServiceName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BindEndpointAsync(abi_arg_in localHostName, abi_arg_in localServiceName, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().BindEndpointAsync(*reinterpret_cast(&localHostName), *reinterpret_cast(&localServiceName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_JoinMulticastGroup(abi_arg_in host) noexcept override - { - try - { - this->shim().JoinMulticastGroup(*reinterpret_cast(&host)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetOutputStreamAsync(abi_arg_in remoteHostName, abi_arg_in remoteServiceName, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetOutputStreamAsync(*reinterpret_cast(&remoteHostName), *reinterpret_cast(&remoteServiceName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetOutputStreamWithEndpointPairAsync(abi_arg_in endpointPair, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetOutputStreamAsync(*reinterpret_cast(&endpointPair))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MessageReceived(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().MessageReceived(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MessageReceived(event_token eventCookie) noexcept override - { - try - { - this->shim().MessageReceived(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_BindServiceNameAndAdapterAsync(abi_arg_in localServiceName, abi_arg_in adapter, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().BindServiceNameAsync(*reinterpret_cast(&localServiceName), *reinterpret_cast(&adapter))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CancelIOAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().CancelIOAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableTransferOwnership(GUID taskId) noexcept override - { - try - { - this->shim().EnableTransferOwnership(taskId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableTransferOwnershipWithConnectedStandbyAction(GUID taskId, Windows::Networking::Sockets::SocketActivityConnectedStandbyAction connectedStandbyAction) noexcept override - { - try - { - this->shim().EnableTransferOwnership(taskId, connectedStandbyAction); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferOwnership(abi_arg_in socketId) noexcept override - { - try - { - this->shim().TransferOwnership(*reinterpret_cast(&socketId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferOwnershipWithContext(abi_arg_in socketId, abi_arg_in data) noexcept override - { - try - { - this->shim().TransferOwnership(*reinterpret_cast(&socketId), *reinterpret_cast(&data)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferOwnershipWithContextAndKeepAliveTime(abi_arg_in socketId, abi_arg_in data, abi_arg_in keepAliveTime) noexcept override - { - try - { - this->shim().TransferOwnership(*reinterpret_cast(&socketId), *reinterpret_cast(&data), *reinterpret_cast(&keepAliveTime)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QualityOfService(Windows::Networking::Sockets::SocketQualityOfService * value) noexcept override - { - try - { - *value = detach(this->shim().QualityOfService()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_QualityOfService(Windows::Networking::Sockets::SocketQualityOfService value) noexcept override - { - try - { - this->shim().QualityOfService(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutboundUnicastHopLimit(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().OutboundUnicastHopLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutboundUnicastHopLimit(uint8_t value) noexcept override - { - try - { - this->shim().OutboundUnicastHopLimit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InboundBufferSizeInBytes(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InboundBufferSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InboundBufferSizeInBytes(uint32_t value) noexcept override - { - try - { - this->shim().InboundBufferSizeInBytes(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DontFragment(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DontFragment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DontFragment(bool value) noexcept override - { - try - { - this->shim().DontFragment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MulticastOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().MulticastOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MulticastOnly(bool value) noexcept override - { - try - { - this->shim().MulticastOnly(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalPort(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalPort()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemotePort(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemotePort()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoteAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemotePort(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemotePort()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDataReader(abi_arg_out dataReader) noexcept override - { - try - { - *dataReader = detach(this->shim().GetDataReader()); - return S_OK; - } - catch (...) - { - *dataReader = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDataStream(abi_arg_out inputStream) noexcept override - { - try - { - *inputStream = detach(this->shim().GetDataStream()); - return S_OK; - } - catch (...) - { - *inputStream = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetEndpointPairsAsync(abi_arg_in remoteHostName, abi_arg_in remoteServiceName, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetEndpointPairsAsync(*reinterpret_cast(&remoteHostName), *reinterpret_cast(&remoteServiceName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEndpointPairsWithSortOptionsAsync(abi_arg_in remoteHostName, abi_arg_in remoteServiceName, Windows::Networking::HostNameSortOptions sortOptions, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetEndpointPairsAsync(*reinterpret_cast(&remoteHostName), *reinterpret_cast(&remoteServiceName), sortOptions)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Control(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Control()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Information(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Information()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MessageReceived(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().MessageReceived(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MessageReceived(event_token eventCookie) noexcept override - { - try - { - this->shim().MessageReceived(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ServerCustomValidationRequested(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().ServerCustomValidationRequested(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ServerCustomValidationRequested(event_token eventCookie) noexcept override - { - try - { - this->shim().ServerCustomValidationRequested(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxMessageSize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxMessageSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxMessageSize(uint32_t value) noexcept override - { - try - { - this->shim().MaxMessageSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageType(Windows::Networking::Sockets::SocketMessageType * value) noexcept override - { - try - { - *value = detach(this->shim().MessageType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MessageType(Windows::Networking::Sockets::SocketMessageType value) noexcept override - { - try - { - this->shim().MessageType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MessageType(Windows::Networking::Sockets::SocketMessageType * value) noexcept override - { - try - { - *value = detach(this->shim().MessageType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDataReader(abi_arg_out dataReader) noexcept override - { - try - { - *dataReader = detach(this->shim().GetDataReader()); - return S_OK; - } - catch (...) - { - *dataReader = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDataStream(abi_arg_out inputStream) noexcept override - { - try - { - *inputStream = detach(this->shim().GetDataStream()); - return S_OK; - } - catch (...) - { - *inputStream = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in data, abi_arg_out context) noexcept override - { - try - { - *context = detach(this->shim().Create(*reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *context = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TaskId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TaskId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SocketKind(Windows::Networking::Sockets::SocketActivityKind * value) noexcept override - { - try - { - *value = detach(this->shim().SocketKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Context(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Context()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DatagramSocket(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DatagramSocket()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StreamSocket(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StreamSocket()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StreamSocketListener(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StreamSocketListener()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllSockets(abi_arg_out> sockets) noexcept override - { - try - { - *sockets = detach(this->shim().AllSockets()); - return S_OK; - } - catch (...) - { - *sockets = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reason(Windows::Networking::Sockets::SocketActivityTriggerReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SocketInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SocketInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetStatus(int32_t hresult, Windows::Networking::Sockets::SocketErrorStatus * status) noexcept override - { - try - { - *status = detach(this->shim().GetStatus(hresult)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Control(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Control()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Information(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Information()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectWithEndpointPairAsync(abi_arg_in endpointPair, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ConnectAsync(*reinterpret_cast(&endpointPair))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectAsync(abi_arg_in remoteHostName, abi_arg_in remoteServiceName, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ConnectAsync(*reinterpret_cast(&remoteHostName), *reinterpret_cast(&remoteServiceName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectWithEndpointPairAndProtectionLevelAsync(abi_arg_in endpointPair, Windows::Networking::Sockets::SocketProtectionLevel protectionLevel, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ConnectAsync(*reinterpret_cast(&endpointPair), protectionLevel)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectWithProtectionLevelAsync(abi_arg_in remoteHostName, abi_arg_in remoteServiceName, Windows::Networking::Sockets::SocketProtectionLevel protectionLevel, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ConnectAsync(*reinterpret_cast(&remoteHostName), *reinterpret_cast(&remoteServiceName), protectionLevel)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpgradeToSslAsync(Windows::Networking::Sockets::SocketProtectionLevel protectionLevel, abi_arg_in validationHostName, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().UpgradeToSslAsync(protectionLevel, *reinterpret_cast(&validationHostName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ConnectWithProtectionLevelAndAdapterAsync(abi_arg_in remoteHostName, abi_arg_in remoteServiceName, Windows::Networking::Sockets::SocketProtectionLevel protectionLevel, abi_arg_in adapter, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ConnectAsync(*reinterpret_cast(&remoteHostName), *reinterpret_cast(&remoteServiceName), protectionLevel, *reinterpret_cast(&adapter))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CancelIOAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().CancelIOAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableTransferOwnership(GUID taskId) noexcept override - { - try - { - this->shim().EnableTransferOwnership(taskId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableTransferOwnershipWithConnectedStandbyAction(GUID taskId, Windows::Networking::Sockets::SocketActivityConnectedStandbyAction connectedStandbyAction) noexcept override - { - try - { - this->shim().EnableTransferOwnership(taskId, connectedStandbyAction); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferOwnership(abi_arg_in socketId) noexcept override - { - try - { - this->shim().TransferOwnership(*reinterpret_cast(&socketId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferOwnershipWithContext(abi_arg_in socketId, abi_arg_in data) noexcept override - { - try - { - this->shim().TransferOwnership(*reinterpret_cast(&socketId), *reinterpret_cast(&data)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferOwnershipWithContextAndKeepAliveTime(abi_arg_in socketId, abi_arg_in data, abi_arg_in keepAliveTime) noexcept override - { - try - { - this->shim().TransferOwnership(*reinterpret_cast(&socketId), *reinterpret_cast(&data), *reinterpret_cast(&keepAliveTime)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NoDelay(bool * value) noexcept override - { - try - { - *value = detach(this->shim().NoDelay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NoDelay(bool value) noexcept override - { - try - { - this->shim().NoDelay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeepAlive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().KeepAlive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeepAlive(bool value) noexcept override - { - try - { - this->shim().KeepAlive(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutboundBufferSizeInBytes(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OutboundBufferSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutboundBufferSizeInBytes(uint32_t value) noexcept override - { - try - { - this->shim().OutboundBufferSizeInBytes(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QualityOfService(Windows::Networking::Sockets::SocketQualityOfService * value) noexcept override - { - try - { - *value = detach(this->shim().QualityOfService()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_QualityOfService(Windows::Networking::Sockets::SocketQualityOfService value) noexcept override - { - try - { - this->shim().QualityOfService(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutboundUnicastHopLimit(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().OutboundUnicastHopLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutboundUnicastHopLimit(uint8_t value) noexcept override - { - try - { - this->shim().OutboundUnicastHopLimit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IgnorableServerCertificateErrors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IgnorableServerCertificateErrors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SerializeConnectionAttempts(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SerializeConnectionAttempts()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SerializeConnectionAttempts(bool value) noexcept override - { - try - { - this->shim().SerializeConnectionAttempts(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClientCertificate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClientCertificate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClientCertificate(abi_arg_in value) noexcept override - { - try - { - this->shim().ClientCertificate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalPort(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalPort()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteHostName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteHostName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteServiceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteServiceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemotePort(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemotePort()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoundTripTimeStatistics(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RoundTripTimeStatistics()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BandwidthStatistics(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BandwidthStatistics()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtectionLevel(Windows::Networking::Sockets::SocketProtectionLevel * value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionKey(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SessionKey()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServerCertificateErrorSeverity(Windows::Networking::Sockets::SocketSslErrorSeverity * value) noexcept override - { - try - { - *value = detach(this->shim().ServerCertificateErrorSeverity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerCertificateErrors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServerCertificateErrors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerCertificate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServerCertificate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerIntermediateCertificates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServerIntermediateCertificates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Control(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Control()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Information(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Information()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BindServiceNameAsync(abi_arg_in localServiceName, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().BindServiceNameAsync(*reinterpret_cast(&localServiceName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BindEndpointAsync(abi_arg_in localHostName, abi_arg_in localServiceName, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().BindEndpointAsync(*reinterpret_cast(&localHostName), *reinterpret_cast(&localServiceName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ConnectionReceived(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().ConnectionReceived(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ConnectionReceived(event_token eventCookie) noexcept override - { - try - { - this->shim().ConnectionReceived(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_BindServiceNameWithProtectionLevelAsync(abi_arg_in localServiceName, Windows::Networking::Sockets::SocketProtectionLevel protectionLevel, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().BindServiceNameAsync(*reinterpret_cast(&localServiceName), protectionLevel)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BindServiceNameWithProtectionLevelAndAdapterAsync(abi_arg_in localServiceName, Windows::Networking::Sockets::SocketProtectionLevel protectionLevel, abi_arg_in adapter, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().BindServiceNameAsync(*reinterpret_cast(&localServiceName), protectionLevel, *reinterpret_cast(&adapter))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CancelIOAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().CancelIOAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableTransferOwnership(GUID taskId) noexcept override - { - try - { - this->shim().EnableTransferOwnership(taskId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableTransferOwnershipWithConnectedStandbyAction(GUID taskId, Windows::Networking::Sockets::SocketActivityConnectedStandbyAction connectedStandbyAction) noexcept override - { - try - { - this->shim().EnableTransferOwnership(taskId, connectedStandbyAction); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferOwnership(abi_arg_in socketId) noexcept override - { - try - { - this->shim().TransferOwnership(*reinterpret_cast(&socketId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransferOwnershipWithContext(abi_arg_in socketId, abi_arg_in data) noexcept override - { - try - { - this->shim().TransferOwnership(*reinterpret_cast(&socketId), *reinterpret_cast(&data)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Socket(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Socket()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QualityOfService(Windows::Networking::Sockets::SocketQualityOfService * value) noexcept override - { - try - { - *value = detach(this->shim().QualityOfService()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_QualityOfService(Windows::Networking::Sockets::SocketQualityOfService value) noexcept override - { - try - { - this->shim().QualityOfService(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NoDelay(bool * value) noexcept override - { - try - { - *value = detach(this->shim().NoDelay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NoDelay(bool value) noexcept override - { - try - { - this->shim().NoDelay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeepAlive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().KeepAlive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeepAlive(bool value) noexcept override - { - try - { - this->shim().KeepAlive(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutboundBufferSizeInBytes(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OutboundBufferSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutboundBufferSizeInBytes(uint32_t value) noexcept override - { - try - { - this->shim().OutboundBufferSizeInBytes(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutboundUnicastHopLimit(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().OutboundUnicastHopLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutboundUnicastHopLimit(uint8_t value) noexcept override - { - try - { - this->shim().OutboundUnicastHopLimit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalPort(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalPort()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetEndpointPairsAsync(abi_arg_in remoteHostName, abi_arg_in remoteServiceName, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetEndpointPairsAsync(*reinterpret_cast(&remoteHostName), *reinterpret_cast(&remoteServiceName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEndpointPairsWithSortOptionsAsync(abi_arg_in remoteHostName, abi_arg_in remoteServiceName, Windows::Networking::HostNameSortOptions sortOptions, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetEndpointPairsAsync(*reinterpret_cast(&remoteHostName), *reinterpret_cast(&remoteServiceName), sortOptions)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Control(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Control()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Information(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Information()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ServerCustomValidationRequested(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().ServerCustomValidationRequested(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ServerCustomValidationRequested(event_token eventCookie) noexcept override - { - try - { - this->shim().ServerCustomValidationRequested(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NoDelay(bool * value) noexcept override - { - try - { - *value = detach(this->shim().NoDelay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NoDelay(bool value) noexcept override - { - try - { - this->shim().NoDelay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OutputStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutputStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectAsync(abi_arg_in uri, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ConnectAsync(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRequestHeader(abi_arg_in headerName, abi_arg_in headerValue) noexcept override - { - try - { - this->shim().SetRequestHeader(*reinterpret_cast(&headerName), *reinterpret_cast(&headerValue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closed(abi_arg_in> eventHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().Closed(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token eventCookie) noexcept override - { - try - { - this->shim().Closed(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CloseWithStatus(uint16_t code, abi_arg_in reason) noexcept override - { - try - { - this->shim().Close(code, *reinterpret_cast(&reason)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Code(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().Code()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Reason(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OutboundBufferSizeInBytes(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OutboundBufferSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutboundBufferSizeInBytes(uint32_t value) noexcept override - { - try - { - this->shim().OutboundBufferSizeInBytes(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServerCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ServerCredential(abi_arg_in value) noexcept override - { - try - { - this->shim().ServerCredential(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProxyCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProxyCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProxyCredential(abi_arg_in value) noexcept override - { - try - { - this->shim().ProxyCredential(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedProtocols(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedProtocols()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IgnorableServerCertificateErrors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IgnorableServerCertificateErrors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetStatus(int32_t hresult, Windows::Web::WebErrorStatus * status) noexcept override - { - try - { - *status = detach(this->shim().GetStatus(hresult)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BandwidthStatistics(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BandwidthStatistics()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Protocol(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Protocol()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServerCertificate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServerCertificate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerCertificateErrorSeverity(Windows::Networking::Sockets::SocketSslErrorSeverity * value) noexcept override - { - try - { - *value = detach(this->shim().ServerCertificateErrorSeverity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerCertificateErrors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServerCertificateErrors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerIntermediateCertificates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServerIntermediateCertificates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServerCertificate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServerCertificate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerCertificateErrorSeverity(Windows::Networking::Sockets::SocketSslErrorSeverity * value) noexcept override - { - try - { - *value = detach(this->shim().ServerCertificateErrorSeverity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerCertificateErrors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServerCertificateErrors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerIntermediateCertificates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServerIntermediateCertificates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Reject() noexcept override - { - try - { - this->shim().Reject(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Networking::Sockets { - -template GUID impl_ISocketActivityInformation::TaskId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TaskId(&value)); - return value; -} - -template hstring impl_ISocketActivityInformation::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Networking::Sockets::SocketActivityKind impl_ISocketActivityInformation::SocketKind() const -{ - Windows::Networking::Sockets::SocketActivityKind value {}; - check_hresult(static_cast(static_cast(*this))->get_SocketKind(&value)); - return value; -} - -template Windows::Networking::Sockets::SocketActivityContext impl_ISocketActivityInformation::Context() const -{ - Windows::Networking::Sockets::SocketActivityContext value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Context(put(value))); - return value; -} - -template Windows::Networking::Sockets::DatagramSocket impl_ISocketActivityInformation::DatagramSocket() const -{ - Windows::Networking::Sockets::DatagramSocket value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DatagramSocket(put(value))); - return value; -} - -template Windows::Networking::Sockets::StreamSocket impl_ISocketActivityInformation::StreamSocket() const -{ - Windows::Networking::Sockets::StreamSocket value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StreamSocket(put(value))); - return value; -} - -template Windows::Networking::Sockets::StreamSocketListener impl_ISocketActivityInformation::StreamSocketListener() const -{ - Windows::Networking::Sockets::StreamSocketListener value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StreamSocketListener(put(value))); - return value; -} - -template Windows::Networking::Sockets::SocketActivityTriggerReason impl_ISocketActivityTriggerDetails::Reason() const -{ - Windows::Networking::Sockets::SocketActivityTriggerReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template Windows::Networking::Sockets::SocketActivityInformation impl_ISocketActivityTriggerDetails::SocketInformation() const -{ - Windows::Networking::Sockets::SocketActivityInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SocketInformation(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_ISocketActivityInformationStatics::AllSockets() const -{ - Windows::Foundation::Collections::IMapView sockets; - check_hresult(static_cast(static_cast(*this))->get_AllSockets(put(sockets))); - return sockets; -} - -template Windows::Storage::Streams::IBuffer impl_ISocketActivityContext::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template Windows::Networking::Sockets::SocketActivityContext impl_ISocketActivityContextFactory::Create(const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Networking::Sockets::SocketActivityContext context { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(data), put(context))); - return context; -} - -template Windows::Networking::HostName impl_IDatagramSocketMessageReceivedEventArgs::RemoteAddress() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoteAddress(put(value))); - return value; -} - -template hstring impl_IDatagramSocketMessageReceivedEventArgs::RemotePort() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemotePort(put(value))); - return value; -} - -template Windows::Networking::HostName impl_IDatagramSocketMessageReceivedEventArgs::LocalAddress() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalAddress(put(value))); - return value; -} - -template Windows::Storage::Streams::DataReader impl_IDatagramSocketMessageReceivedEventArgs::GetDataReader() const -{ - Windows::Storage::Streams::DataReader dataReader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDataReader(put(dataReader))); - return dataReader; -} - -template Windows::Storage::Streams::IInputStream impl_IDatagramSocketMessageReceivedEventArgs::GetDataStream() const -{ - Windows::Storage::Streams::IInputStream inputStream; - check_hresult(static_cast(static_cast(*this))->abi_GetDataStream(put(inputStream))); - return inputStream; -} - -template Windows::Networking::Sockets::SocketMessageType impl_IMessageWebSocketMessageReceivedEventArgs::MessageType() const -{ - Windows::Networking::Sockets::SocketMessageType value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageType(&value)); - return value; -} - -template Windows::Storage::Streams::DataReader impl_IMessageWebSocketMessageReceivedEventArgs::GetDataReader() const -{ - Windows::Storage::Streams::DataReader dataReader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDataReader(put(dataReader))); - return dataReader; -} - -template Windows::Storage::Streams::IInputStream impl_IMessageWebSocketMessageReceivedEventArgs::GetDataStream() const -{ - Windows::Storage::Streams::IInputStream inputStream; - check_hresult(static_cast(static_cast(*this))->abi_GetDataStream(put(inputStream))); - return inputStream; -} - -template uint16_t impl_IWebSocketClosedEventArgs::Code() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Code(&value)); - return value; -} - -template hstring impl_IWebSocketClosedEventArgs::Reason() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Reason(put(value))); - return value; -} - -template Windows::Networking::HostName impl_IDatagramSocketInformation::LocalAddress() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalAddress(put(value))); - return value; -} - -template hstring impl_IDatagramSocketInformation::LocalPort() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LocalPort(put(value))); - return value; -} - -template Windows::Networking::HostName impl_IDatagramSocketInformation::RemoteAddress() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoteAddress(put(value))); - return value; -} - -template hstring impl_IDatagramSocketInformation::RemotePort() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemotePort(put(value))); - return value; -} - -template Windows::Networking::Sockets::SocketQualityOfService impl_IDatagramSocketControl::QualityOfService() const -{ - Windows::Networking::Sockets::SocketQualityOfService value {}; - check_hresult(static_cast(static_cast(*this))->get_QualityOfService(&value)); - return value; -} - -template void impl_IDatagramSocketControl::QualityOfService(Windows::Networking::Sockets::SocketQualityOfService value) const -{ - check_hresult(static_cast(static_cast(*this))->put_QualityOfService(value)); -} - -template uint8_t impl_IDatagramSocketControl::OutboundUnicastHopLimit() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OutboundUnicastHopLimit(&value)); - return value; -} - -template void impl_IDatagramSocketControl::OutboundUnicastHopLimit(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutboundUnicastHopLimit(value)); -} - -template uint32_t impl_IDatagramSocketControl2::InboundBufferSizeInBytes() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InboundBufferSizeInBytes(&value)); - return value; -} - -template void impl_IDatagramSocketControl2::InboundBufferSizeInBytes(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InboundBufferSizeInBytes(value)); -} - -template bool impl_IDatagramSocketControl2::DontFragment() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DontFragment(&value)); - return value; -} - -template void impl_IDatagramSocketControl2::DontFragment(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DontFragment(value)); -} - -template bool impl_IDatagramSocketControl3::MulticastOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_MulticastOnly(&value)); - return value; -} - -template void impl_IDatagramSocketControl3::MulticastOnly(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MulticastOnly(value)); -} - -template Windows::Foundation::IAsyncOperation> impl_IDatagramSocketStatics::GetEndpointPairsAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetEndpointPairsAsync(get(remoteHostName), get(remoteServiceName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IDatagramSocketStatics::GetEndpointPairsAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName, Windows::Networking::HostNameSortOptions sortOptions) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetEndpointPairsWithSortOptionsAsync(get(remoteHostName), get(remoteServiceName), sortOptions, put(operation))); - return operation; -} - -template Windows::Networking::Sockets::DatagramSocketControl impl_IDatagramSocket::Control() const -{ - Windows::Networking::Sockets::DatagramSocketControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Control(put(value))); - return value; -} - -template Windows::Networking::Sockets::DatagramSocketInformation impl_IDatagramSocket::Information() const -{ - Windows::Networking::Sockets::DatagramSocketInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Information(put(value))); - return value; -} - -template Windows::Storage::Streams::IOutputStream impl_IDatagramSocket::OutputStream() const -{ - Windows::Storage::Streams::IOutputStream value; - check_hresult(static_cast(static_cast(*this))->get_OutputStream(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IDatagramSocket::ConnectAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ConnectAsync(get(remoteHostName), get(remoteServiceName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IDatagramSocket::ConnectAsync(const Windows::Networking::EndpointPair & endpointPair) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ConnectWithEndpointPairAsync(get(endpointPair), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IDatagramSocket::BindServiceNameAsync(hstring_ref localServiceName) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_BindServiceNameAsync(get(localServiceName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IDatagramSocket::BindEndpointAsync(const Windows::Networking::HostName & localHostName, hstring_ref localServiceName) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_BindEndpointAsync(get(localHostName), get(localServiceName), put(operation))); - return operation; -} - -template void impl_IDatagramSocket::JoinMulticastGroup(const Windows::Networking::HostName & host) const -{ - check_hresult(static_cast(static_cast(*this))->abi_JoinMulticastGroup(get(host))); -} - -template Windows::Foundation::IAsyncOperation impl_IDatagramSocket::GetOutputStreamAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetOutputStreamAsync(get(remoteHostName), get(remoteServiceName), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDatagramSocket::GetOutputStreamAsync(const Windows::Networking::EndpointPair & endpointPair) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetOutputStreamWithEndpointPairAsync(get(endpointPair), put(value))); - return value; -} - -template event_token impl_IDatagramSocket::MessageReceived(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_MessageReceived(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IDatagramSocket::MessageReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Sockets::IDatagramSocket::remove_MessageReceived, MessageReceived(eventHandler)); -} - -template void impl_IDatagramSocket::MessageReceived(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MessageReceived(eventCookie)); -} - -template Windows::Foundation::IAsyncAction impl_IDatagramSocket2::BindServiceNameAsync(hstring_ref localServiceName, const Windows::Networking::Connectivity::NetworkAdapter & adapter) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_BindServiceNameAndAdapterAsync(get(localServiceName), get(adapter), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IDatagramSocket3::CancelIOAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_CancelIOAsync(put(operation))); - return operation; -} - -template void impl_IDatagramSocket3::EnableTransferOwnership(GUID taskId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableTransferOwnership(taskId)); -} - -template void impl_IDatagramSocket3::EnableTransferOwnership(GUID taskId, Windows::Networking::Sockets::SocketActivityConnectedStandbyAction connectedStandbyAction) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableTransferOwnershipWithConnectedStandbyAction(taskId, connectedStandbyAction)); -} - -template void impl_IDatagramSocket3::TransferOwnership(hstring_ref socketId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferOwnership(get(socketId))); -} - -template void impl_IDatagramSocket3::TransferOwnership(hstring_ref socketId, const Windows::Networking::Sockets::SocketActivityContext & data) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferOwnershipWithContext(get(socketId), get(data))); -} - -template void impl_IDatagramSocket3::TransferOwnership(hstring_ref socketId, const Windows::Networking::Sockets::SocketActivityContext & data, const Windows::Foundation::TimeSpan & keepAliveTime) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferOwnershipWithContextAndKeepAliveTime(get(socketId), get(data), get(keepAliveTime))); -} - -template Windows::Networking::HostName impl_IStreamSocketInformation::LocalAddress() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalAddress(put(value))); - return value; -} - -template hstring impl_IStreamSocketInformation::LocalPort() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LocalPort(put(value))); - return value; -} - -template Windows::Networking::HostName impl_IStreamSocketInformation::RemoteHostName() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoteHostName(put(value))); - return value; -} - -template Windows::Networking::HostName impl_IStreamSocketInformation::RemoteAddress() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoteAddress(put(value))); - return value; -} - -template hstring impl_IStreamSocketInformation::RemoteServiceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteServiceName(put(value))); - return value; -} - -template hstring impl_IStreamSocketInformation::RemotePort() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemotePort(put(value))); - return value; -} - -template Windows::Networking::Sockets::RoundTripTimeStatistics impl_IStreamSocketInformation::RoundTripTimeStatistics() const -{ - Windows::Networking::Sockets::RoundTripTimeStatistics value {}; - check_hresult(static_cast(static_cast(*this))->get_RoundTripTimeStatistics(put(value))); - return value; -} - -template Windows::Networking::Sockets::BandwidthStatistics impl_IStreamSocketInformation::BandwidthStatistics() const -{ - Windows::Networking::Sockets::BandwidthStatistics value {}; - check_hresult(static_cast(static_cast(*this))->get_BandwidthStatistics(put(value))); - return value; -} - -template Windows::Networking::Sockets::SocketProtectionLevel impl_IStreamSocketInformation::ProtectionLevel() const -{ - Windows::Networking::Sockets::SocketProtectionLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtectionLevel(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IStreamSocketInformation::SessionKey() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_SessionKey(put(value))); - return value; -} - -template Windows::Networking::Sockets::SocketSslErrorSeverity impl_IStreamSocketInformation2::ServerCertificateErrorSeverity() const -{ - Windows::Networking::Sockets::SocketSslErrorSeverity value {}; - check_hresult(static_cast(static_cast(*this))->get_ServerCertificateErrorSeverity(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStreamSocketInformation2::ServerCertificateErrors() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ServerCertificateErrors(put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_IStreamSocketInformation2::ServerCertificate() const -{ - Windows::Security::Cryptography::Certificates::Certificate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ServerCertificate(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStreamSocketInformation2::ServerIntermediateCertificates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ServerIntermediateCertificates(put(value))); - return value; -} - -template bool impl_IStreamSocketControl::NoDelay() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_NoDelay(&value)); - return value; -} - -template void impl_IStreamSocketControl::NoDelay(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NoDelay(value)); -} - -template bool impl_IStreamSocketControl::KeepAlive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_KeepAlive(&value)); - return value; -} - -template void impl_IStreamSocketControl::KeepAlive(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeepAlive(value)); -} - -template uint32_t impl_IStreamSocketControl::OutboundBufferSizeInBytes() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OutboundBufferSizeInBytes(&value)); - return value; -} - -template void impl_IStreamSocketControl::OutboundBufferSizeInBytes(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutboundBufferSizeInBytes(value)); -} - -template Windows::Networking::Sockets::SocketQualityOfService impl_IStreamSocketControl::QualityOfService() const -{ - Windows::Networking::Sockets::SocketQualityOfService value {}; - check_hresult(static_cast(static_cast(*this))->get_QualityOfService(&value)); - return value; -} - -template void impl_IStreamSocketControl::QualityOfService(Windows::Networking::Sockets::SocketQualityOfService value) const -{ - check_hresult(static_cast(static_cast(*this))->put_QualityOfService(value)); -} - -template uint8_t impl_IStreamSocketControl::OutboundUnicastHopLimit() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OutboundUnicastHopLimit(&value)); - return value; -} - -template void impl_IStreamSocketControl::OutboundUnicastHopLimit(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutboundUnicastHopLimit(value)); -} - -template Windows::Foundation::Collections::IVector impl_IStreamSocketControl2::IgnorableServerCertificateErrors() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_IgnorableServerCertificateErrors(put(value))); - return value; -} - -template bool impl_IStreamSocketControl3::SerializeConnectionAttempts() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SerializeConnectionAttempts(&value)); - return value; -} - -template void impl_IStreamSocketControl3::SerializeConnectionAttempts(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SerializeConnectionAttempts(value)); -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_IStreamSocketControl3::ClientCertificate() const -{ - Windows::Security::Cryptography::Certificates::Certificate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ClientCertificate(put(value))); - return value; -} - -template void impl_IStreamSocketControl3::ClientCertificate(const Windows::Security::Cryptography::Certificates::Certificate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ClientCertificate(get(value))); -} - -template Windows::Networking::Sockets::StreamSocketControl impl_IStreamSocket::Control() const -{ - Windows::Networking::Sockets::StreamSocketControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Control(put(value))); - return value; -} - -template Windows::Networking::Sockets::StreamSocketInformation impl_IStreamSocket::Information() const -{ - Windows::Networking::Sockets::StreamSocketInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Information(put(value))); - return value; -} - -template Windows::Storage::Streams::IInputStream impl_IStreamSocket::InputStream() const -{ - Windows::Storage::Streams::IInputStream value; - check_hresult(static_cast(static_cast(*this))->get_InputStream(put(value))); - return value; -} - -template Windows::Storage::Streams::IOutputStream impl_IStreamSocket::OutputStream() const -{ - Windows::Storage::Streams::IOutputStream value; - check_hresult(static_cast(static_cast(*this))->get_OutputStream(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocket::ConnectAsync(const Windows::Networking::EndpointPair & endpointPair) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ConnectWithEndpointPairAsync(get(endpointPair), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocket::ConnectAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ConnectAsync(get(remoteHostName), get(remoteServiceName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocket::ConnectAsync(const Windows::Networking::EndpointPair & endpointPair, Windows::Networking::Sockets::SocketProtectionLevel protectionLevel) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ConnectWithEndpointPairAndProtectionLevelAsync(get(endpointPair), protectionLevel, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocket::ConnectAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName, Windows::Networking::Sockets::SocketProtectionLevel protectionLevel) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ConnectWithProtectionLevelAsync(get(remoteHostName), get(remoteServiceName), protectionLevel, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocket::UpgradeToSslAsync(Windows::Networking::Sockets::SocketProtectionLevel protectionLevel, const Windows::Networking::HostName & validationHostName) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_UpgradeToSslAsync(protectionLevel, get(validationHostName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocket2::ConnectAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName, Windows::Networking::Sockets::SocketProtectionLevel protectionLevel, const Windows::Networking::Connectivity::NetworkAdapter & adapter) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ConnectWithProtectionLevelAndAdapterAsync(get(remoteHostName), get(remoteServiceName), protectionLevel, get(adapter), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocket3::CancelIOAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_CancelIOAsync(put(operation))); - return operation; -} - -template void impl_IStreamSocket3::EnableTransferOwnership(GUID taskId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableTransferOwnership(taskId)); -} - -template void impl_IStreamSocket3::EnableTransferOwnership(GUID taskId, Windows::Networking::Sockets::SocketActivityConnectedStandbyAction connectedStandbyAction) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableTransferOwnershipWithConnectedStandbyAction(taskId, connectedStandbyAction)); -} - -template void impl_IStreamSocket3::TransferOwnership(hstring_ref socketId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferOwnership(get(socketId))); -} - -template void impl_IStreamSocket3::TransferOwnership(hstring_ref socketId, const Windows::Networking::Sockets::SocketActivityContext & data) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferOwnershipWithContext(get(socketId), get(data))); -} - -template void impl_IStreamSocket3::TransferOwnership(hstring_ref socketId, const Windows::Networking::Sockets::SocketActivityContext & data, const Windows::Foundation::TimeSpan & keepAliveTime) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferOwnershipWithContextAndKeepAliveTime(get(socketId), get(data), get(keepAliveTime))); -} - -template Windows::Foundation::IAsyncOperation> impl_IStreamSocketStatics::GetEndpointPairsAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetEndpointPairsAsync(get(remoteHostName), get(remoteServiceName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStreamSocketStatics::GetEndpointPairsAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName, Windows::Networking::HostNameSortOptions sortOptions) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetEndpointPairsWithSortOptionsAsync(get(remoteHostName), get(remoteServiceName), sortOptions, put(operation))); - return operation; -} - -template Windows::Networking::Sockets::SocketQualityOfService impl_IStreamSocketListenerControl::QualityOfService() const -{ - Windows::Networking::Sockets::SocketQualityOfService value {}; - check_hresult(static_cast(static_cast(*this))->get_QualityOfService(&value)); - return value; -} - -template void impl_IStreamSocketListenerControl::QualityOfService(Windows::Networking::Sockets::SocketQualityOfService value) const -{ - check_hresult(static_cast(static_cast(*this))->put_QualityOfService(value)); -} - -template bool impl_IStreamSocketListenerControl2::NoDelay() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_NoDelay(&value)); - return value; -} - -template void impl_IStreamSocketListenerControl2::NoDelay(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NoDelay(value)); -} - -template bool impl_IStreamSocketListenerControl2::KeepAlive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_KeepAlive(&value)); - return value; -} - -template void impl_IStreamSocketListenerControl2::KeepAlive(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeepAlive(value)); -} - -template uint32_t impl_IStreamSocketListenerControl2::OutboundBufferSizeInBytes() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OutboundBufferSizeInBytes(&value)); - return value; -} - -template void impl_IStreamSocketListenerControl2::OutboundBufferSizeInBytes(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutboundBufferSizeInBytes(value)); -} - -template uint8_t impl_IStreamSocketListenerControl2::OutboundUnicastHopLimit() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OutboundUnicastHopLimit(&value)); - return value; -} - -template void impl_IStreamSocketListenerControl2::OutboundUnicastHopLimit(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutboundUnicastHopLimit(value)); -} - -template hstring impl_IStreamSocketListenerInformation::LocalPort() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LocalPort(put(value))); - return value; -} - -template Windows::Networking::Sockets::StreamSocket impl_IStreamSocketListenerConnectionReceivedEventArgs::Socket() const -{ - Windows::Networking::Sockets::StreamSocket value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Socket(put(value))); - return value; -} - -template Windows::Networking::Sockets::StreamSocketListenerControl impl_IStreamSocketListener::Control() const -{ - Windows::Networking::Sockets::StreamSocketListenerControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Control(put(value))); - return value; -} - -template Windows::Networking::Sockets::StreamSocketListenerInformation impl_IStreamSocketListener::Information() const -{ - Windows::Networking::Sockets::StreamSocketListenerInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Information(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocketListener::BindServiceNameAsync(hstring_ref localServiceName) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_BindServiceNameAsync(get(localServiceName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocketListener::BindEndpointAsync(const Windows::Networking::HostName & localHostName, hstring_ref localServiceName) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_BindEndpointAsync(get(localHostName), get(localServiceName), put(operation))); - return operation; -} - -template event_token impl_IStreamSocketListener::ConnectionReceived(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ConnectionReceived(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IStreamSocketListener::ConnectionReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Sockets::IStreamSocketListener::remove_ConnectionReceived, ConnectionReceived(eventHandler)); -} - -template void impl_IStreamSocketListener::ConnectionReceived(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ConnectionReceived(eventCookie)); -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocketListener2::BindServiceNameAsync(hstring_ref localServiceName, Windows::Networking::Sockets::SocketProtectionLevel protectionLevel) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_BindServiceNameWithProtectionLevelAsync(get(localServiceName), protectionLevel, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocketListener2::BindServiceNameAsync(hstring_ref localServiceName, Windows::Networking::Sockets::SocketProtectionLevel protectionLevel, const Windows::Networking::Connectivity::NetworkAdapter & adapter) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_BindServiceNameWithProtectionLevelAndAdapterAsync(get(localServiceName), protectionLevel, get(adapter), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStreamSocketListener3::CancelIOAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_CancelIOAsync(put(operation))); - return operation; -} - -template void impl_IStreamSocketListener3::EnableTransferOwnership(GUID taskId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableTransferOwnership(taskId)); -} - -template void impl_IStreamSocketListener3::EnableTransferOwnership(GUID taskId, Windows::Networking::Sockets::SocketActivityConnectedStandbyAction connectedStandbyAction) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableTransferOwnershipWithConnectedStandbyAction(taskId, connectedStandbyAction)); -} - -template void impl_IStreamSocketListener3::TransferOwnership(hstring_ref socketId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferOwnership(get(socketId))); -} - -template void impl_IStreamSocketListener3::TransferOwnership(hstring_ref socketId, const Windows::Networking::Sockets::SocketActivityContext & data) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TransferOwnershipWithContext(get(socketId), get(data))); -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_IWebSocketServerCustomValidationRequestedEventArgs::ServerCertificate() const -{ - Windows::Security::Cryptography::Certificates::Certificate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ServerCertificate(put(value))); - return value; -} - -template Windows::Networking::Sockets::SocketSslErrorSeverity impl_IWebSocketServerCustomValidationRequestedEventArgs::ServerCertificateErrorSeverity() const -{ - Windows::Networking::Sockets::SocketSslErrorSeverity value {}; - check_hresult(static_cast(static_cast(*this))->get_ServerCertificateErrorSeverity(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IWebSocketServerCustomValidationRequestedEventArgs::ServerCertificateErrors() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ServerCertificateErrors(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IWebSocketServerCustomValidationRequestedEventArgs::ServerIntermediateCertificates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ServerIntermediateCertificates(put(value))); - return value; -} - -template void impl_IWebSocketServerCustomValidationRequestedEventArgs::Reject() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Reject()); -} - -template Windows::Foundation::Deferral impl_IWebSocketServerCustomValidationRequestedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -template uint32_t impl_IWebSocketControl::OutboundBufferSizeInBytes() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OutboundBufferSizeInBytes(&value)); - return value; -} - -template void impl_IWebSocketControl::OutboundBufferSizeInBytes(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutboundBufferSizeInBytes(value)); -} - -template Windows::Security::Credentials::PasswordCredential impl_IWebSocketControl::ServerCredential() const -{ - Windows::Security::Credentials::PasswordCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ServerCredential(put(value))); - return value; -} - -template void impl_IWebSocketControl::ServerCredential(const Windows::Security::Credentials::PasswordCredential & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ServerCredential(get(value))); -} - -template Windows::Security::Credentials::PasswordCredential impl_IWebSocketControl::ProxyCredential() const -{ - Windows::Security::Credentials::PasswordCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProxyCredential(put(value))); - return value; -} - -template void impl_IWebSocketControl::ProxyCredential(const Windows::Security::Credentials::PasswordCredential & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProxyCredential(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IWebSocketControl::SupportedProtocols() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SupportedProtocols(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IWebSocketControl2::IgnorableServerCertificateErrors() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_IgnorableServerCertificateErrors(put(value))); - return value; -} - -template Windows::Networking::HostName impl_IWebSocketInformation::LocalAddress() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalAddress(put(value))); - return value; -} - -template Windows::Networking::Sockets::BandwidthStatistics impl_IWebSocketInformation::BandwidthStatistics() const -{ - Windows::Networking::Sockets::BandwidthStatistics value {}; - check_hresult(static_cast(static_cast(*this))->get_BandwidthStatistics(put(value))); - return value; -} - -template hstring impl_IWebSocketInformation::Protocol() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Protocol(put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_IWebSocketInformation2::ServerCertificate() const -{ - Windows::Security::Cryptography::Certificates::Certificate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ServerCertificate(put(value))); - return value; -} - -template Windows::Networking::Sockets::SocketSslErrorSeverity impl_IWebSocketInformation2::ServerCertificateErrorSeverity() const -{ - Windows::Networking::Sockets::SocketSslErrorSeverity value {}; - check_hresult(static_cast(static_cast(*this))->get_ServerCertificateErrorSeverity(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IWebSocketInformation2::ServerCertificateErrors() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ServerCertificateErrors(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IWebSocketInformation2::ServerIntermediateCertificates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ServerIntermediateCertificates(put(value))); - return value; -} - -template Windows::Storage::Streams::IOutputStream impl_IWebSocket::OutputStream() const -{ - Windows::Storage::Streams::IOutputStream value; - check_hresult(static_cast(static_cast(*this))->get_OutputStream(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IWebSocket::ConnectAsync(const Windows::Foundation::Uri & uri) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ConnectAsync(get(uri), put(operation))); - return operation; -} - -template void impl_IWebSocket::SetRequestHeader(hstring_ref headerName, hstring_ref headerValue) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetRequestHeader(get(headerName), get(headerValue))); -} - -template event_token impl_IWebSocket::Closed(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IWebSocket::Closed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Sockets::IWebSocket::remove_Closed, Closed(eventHandler)); -} - -template void impl_IWebSocket::Closed(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(eventCookie)); -} - -template void impl_IWebSocket::Close(uint16_t code, hstring_ref reason) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CloseWithStatus(code, get(reason))); -} - -template uint32_t impl_IMessageWebSocketControl::MaxMessageSize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxMessageSize(&value)); - return value; -} - -template void impl_IMessageWebSocketControl::MaxMessageSize(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxMessageSize(value)); -} - -template Windows::Networking::Sockets::SocketMessageType impl_IMessageWebSocketControl::MessageType() const -{ - Windows::Networking::Sockets::SocketMessageType value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageType(&value)); - return value; -} - -template void impl_IMessageWebSocketControl::MessageType(Windows::Networking::Sockets::SocketMessageType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MessageType(value)); -} - -template Windows::Networking::Sockets::MessageWebSocketControl impl_IMessageWebSocket::Control() const -{ - Windows::Networking::Sockets::MessageWebSocketControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Control(put(value))); - return value; -} - -template Windows::Networking::Sockets::MessageWebSocketInformation impl_IMessageWebSocket::Information() const -{ - Windows::Networking::Sockets::MessageWebSocketInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Information(put(value))); - return value; -} - -template event_token impl_IMessageWebSocket::MessageReceived(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_MessageReceived(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IMessageWebSocket::MessageReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Sockets::IMessageWebSocket::remove_MessageReceived, MessageReceived(eventHandler)); -} - -template void impl_IMessageWebSocket::MessageReceived(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MessageReceived(eventCookie)); -} - -template event_token impl_IMessageWebSocket2::ServerCustomValidationRequested(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ServerCustomValidationRequested(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IMessageWebSocket2::ServerCustomValidationRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Sockets::IMessageWebSocket2::remove_ServerCustomValidationRequested, ServerCustomValidationRequested(eventHandler)); -} - -template void impl_IMessageWebSocket2::ServerCustomValidationRequested(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ServerCustomValidationRequested(eventCookie)); -} - -template bool impl_IStreamWebSocketControl::NoDelay() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_NoDelay(&value)); - return value; -} - -template void impl_IStreamWebSocketControl::NoDelay(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NoDelay(value)); -} - -template Windows::Networking::Sockets::StreamWebSocketControl impl_IStreamWebSocket::Control() const -{ - Windows::Networking::Sockets::StreamWebSocketControl value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Control(put(value))); - return value; -} - -template Windows::Networking::Sockets::StreamWebSocketInformation impl_IStreamWebSocket::Information() const -{ - Windows::Networking::Sockets::StreamWebSocketInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Information(put(value))); - return value; -} - -template Windows::Storage::Streams::IInputStream impl_IStreamWebSocket::InputStream() const -{ - Windows::Storage::Streams::IInputStream value; - check_hresult(static_cast(static_cast(*this))->get_InputStream(put(value))); - return value; -} - -template event_token impl_IStreamWebSocket2::ServerCustomValidationRequested(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ServerCustomValidationRequested(get(eventHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IStreamWebSocket2::ServerCustomValidationRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Sockets::IStreamWebSocket2::remove_ServerCustomValidationRequested, ServerCustomValidationRequested(eventHandler)); -} - -template void impl_IStreamWebSocket2::ServerCustomValidationRequested(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ServerCustomValidationRequested(eventCookie)); -} - -template Windows::Networking::Sockets::SocketErrorStatus impl_ISocketErrorStatics::GetStatus(int32_t hresult) const -{ - Windows::Networking::Sockets::SocketErrorStatus status {}; - check_hresult(static_cast(static_cast(*this))->abi_GetStatus(hresult, &status)); - return status; -} - -template Windows::Web::WebErrorStatus impl_IWebSocketErrorStatics::GetStatus(int32_t hresult) const -{ - Windows::Web::WebErrorStatus status {}; - check_hresult(static_cast(static_cast(*this))->abi_GetStatus(hresult, &status)); - return status; -} - -template hstring impl_IControlChannelTrigger::ControlChannelTriggerId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ControlChannelTriggerId(put(value))); - return value; -} - -template uint32_t impl_IControlChannelTrigger::ServerKeepAliveIntervalInMinutes() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ServerKeepAliveIntervalInMinutes(&value)); - return value; -} - -template void impl_IControlChannelTrigger::ServerKeepAliveIntervalInMinutes(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ServerKeepAliveIntervalInMinutes(value)); -} - -template uint32_t impl_IControlChannelTrigger::CurrentKeepAliveIntervalInMinutes() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentKeepAliveIntervalInMinutes(&value)); - return value; -} - -template Windows::IInspectable impl_IControlChannelTrigger::TransportObject() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_TransportObject(put(value))); - return value; -} - -template Windows::ApplicationModel::Background::IBackgroundTrigger impl_IControlChannelTrigger::KeepAliveTrigger() const -{ - Windows::ApplicationModel::Background::IBackgroundTrigger trigger; - check_hresult(static_cast(static_cast(*this))->get_KeepAliveTrigger(put(trigger))); - return trigger; -} - -template Windows::ApplicationModel::Background::IBackgroundTrigger impl_IControlChannelTrigger::PushNotificationTrigger() const -{ - Windows::ApplicationModel::Background::IBackgroundTrigger trigger; - check_hresult(static_cast(static_cast(*this))->get_PushNotificationTrigger(put(trigger))); - return trigger; -} - -template void impl_IControlChannelTrigger::UsingTransport(const Windows::IInspectable & transport) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UsingTransport(get(transport))); -} - -template Windows::Networking::Sockets::ControlChannelTriggerStatus impl_IControlChannelTrigger::WaitForPushEnabled() const -{ - Windows::Networking::Sockets::ControlChannelTriggerStatus channelTriggerStatus {}; - check_hresult(static_cast(static_cast(*this))->abi_WaitForPushEnabled(&channelTriggerStatus)); - return channelTriggerStatus; -} - -template void impl_IControlChannelTrigger::DecreaseNetworkKeepAliveInterval() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DecreaseNetworkKeepAliveInterval()); -} - -template void impl_IControlChannelTrigger::FlushTransport() const -{ - check_hresult(static_cast(static_cast(*this))->abi_FlushTransport()); -} - -template Windows::Networking::Sockets::ControlChannelTrigger impl_IControlChannelTriggerFactory::CreateControlChannelTrigger(hstring_ref channelId, uint32_t serverKeepAliveIntervalInMinutes) const -{ - Windows::Networking::Sockets::ControlChannelTrigger notificationChannel { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateControlChannelTrigger(get(channelId), serverKeepAliveIntervalInMinutes, put(notificationChannel))); - return notificationChannel; -} - -template Windows::Networking::Sockets::ControlChannelTrigger impl_IControlChannelTriggerFactory::CreateControlChannelTriggerEx(hstring_ref channelId, uint32_t serverKeepAliveIntervalInMinutes, Windows::Networking::Sockets::ControlChannelTriggerResourceType resourceRequestType) const -{ - Windows::Networking::Sockets::ControlChannelTrigger notificationChannel { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateControlChannelTriggerEx(get(channelId), serverKeepAliveIntervalInMinutes, resourceRequestType, put(notificationChannel))); - return notificationChannel; -} - -template Windows::Networking::Sockets::ControlChannelTrigger impl_IControlChannelTriggerEventDetails::ControlChannelTrigger() const -{ - Windows::Networking::Sockets::ControlChannelTrigger value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ControlChannelTrigger(put(value))); - return value; -} - -template Windows::Networking::Sockets::ControlChannelTriggerResetReason impl_IControlChannelTriggerResetEventDetails::ResetReason() const -{ - Windows::Networking::Sockets::ControlChannelTriggerResetReason value {}; - check_hresult(static_cast(static_cast(*this))->get_ResetReason(&value)); - return value; -} - -template bool impl_IControlChannelTriggerResetEventDetails::HardwareSlotReset() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HardwareSlotReset(&value)); - return value; -} - -template bool impl_IControlChannelTriggerResetEventDetails::SoftwareSlotReset() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SoftwareSlotReset(&value)); - return value; -} - -template bool impl_IControlChannelTrigger2::IsWakeFromLowPowerSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsWakeFromLowPowerSupported(&value)); - return value; -} - -inline ControlChannelTrigger::ControlChannelTrigger(hstring_ref channelId, uint32_t serverKeepAliveIntervalInMinutes) : - ControlChannelTrigger(get_activation_factory().CreateControlChannelTrigger(channelId, serverKeepAliveIntervalInMinutes)) -{} - -inline ControlChannelTrigger::ControlChannelTrigger(hstring_ref channelId, uint32_t serverKeepAliveIntervalInMinutes, Windows::Networking::Sockets::ControlChannelTriggerResourceType resourceRequestType) : - ControlChannelTrigger(get_activation_factory().CreateControlChannelTriggerEx(channelId, serverKeepAliveIntervalInMinutes, resourceRequestType)) -{} - -inline DatagramSocket::DatagramSocket() : - DatagramSocket(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation> DatagramSocket::GetEndpointPairsAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName) -{ - return get_activation_factory().GetEndpointPairsAsync(remoteHostName, remoteServiceName); -} - -inline Windows::Foundation::IAsyncOperation> DatagramSocket::GetEndpointPairsAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName, Windows::Networking::HostNameSortOptions sortOptions) -{ - return get_activation_factory().GetEndpointPairsAsync(remoteHostName, remoteServiceName, sortOptions); -} - -inline MessageWebSocket::MessageWebSocket() : - MessageWebSocket(activate_instance()) -{} - -inline SocketActivityContext::SocketActivityContext(const Windows::Storage::Streams::IBuffer & data) : - SocketActivityContext(get_activation_factory().Create(data)) -{} - -inline Windows::Foundation::Collections::IMapView SocketActivityInformation::AllSockets() -{ - return get_activation_factory().AllSockets(); -} - -inline Windows::Networking::Sockets::SocketErrorStatus SocketError::GetStatus(int32_t hresult) -{ - return get_activation_factory().GetStatus(hresult); -} - -inline StreamSocket::StreamSocket() : - StreamSocket(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation> StreamSocket::GetEndpointPairsAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName) -{ - return get_activation_factory().GetEndpointPairsAsync(remoteHostName, remoteServiceName); -} - -inline Windows::Foundation::IAsyncOperation> StreamSocket::GetEndpointPairsAsync(const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName, Windows::Networking::HostNameSortOptions sortOptions) -{ - return get_activation_factory().GetEndpointPairsAsync(remoteHostName, remoteServiceName, sortOptions); -} - -inline StreamSocketListener::StreamSocketListener() : - StreamSocketListener(activate_instance()) -{} - -inline StreamWebSocket::StreamWebSocket() : - StreamWebSocket(activate_instance()) -{} - -inline Windows::Web::WebErrorStatus WebSocketError::GetStatus(int32_t hresult) -{ - return get_activation_factory().GetStatus(hresult); -} - -inline WebSocketKeepAlive::WebSocketKeepAlive() : - WebSocketKeepAlive(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Networking.Vpn.h b/10.0.14393.0/winrt/Windows.Networking.Vpn.h deleted file mode 100644 index 7f60ccbd5..000000000 --- a/10.0.14393.0/winrt/Windows.Networking.Vpn.h +++ /dev/null @@ -1,4387 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Networking.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Security.Credentials.3.h" -#include "internal/Windows.Security.Cryptography.Certificates.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Networking.Vpn.3.h" -#include "Windows.Networking.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::Networking::Vpn::VpnAppIdType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Type(Windows::Networking::Vpn::VpnAppIdType value) noexcept override - { - try - { - this->shim().Type(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(abi_arg_in value) noexcept override - { - try - { - this->shim().Value(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::Networking::Vpn::VpnAppIdType type, abi_arg_in value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(type, *reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AssociateTransport(abi_arg_in mainOuterTunnelTransport, abi_arg_in optionalOuterTunnelTransport) noexcept override - { - try - { - this->shim().AssociateTransport(*reinterpret_cast(&mainOuterTunnelTransport), *reinterpret_cast(&optionalOuterTunnelTransport)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start(abi_arg_in> assignedClientIPv4list, abi_arg_in> assignedClientIPv6list, abi_arg_in vpnInterfaceId, abi_arg_in routeScope, abi_arg_in namespaceScope, uint32_t mtuSize, uint32_t maxFrameSize, bool optimizeForLowCostNetwork, abi_arg_in mainOuterTunnelTransport, abi_arg_in optionalOuterTunnelTransport) noexcept override - { - try - { - this->shim().Start(*reinterpret_cast *>(&assignedClientIPv4list), *reinterpret_cast *>(&assignedClientIPv6list), *reinterpret_cast(&vpnInterfaceId), *reinterpret_cast(&routeScope), *reinterpret_cast(&namespaceScope), mtuSize, maxFrameSize, optimizeForLowCostNetwork, *reinterpret_cast(&mainOuterTunnelTransport), *reinterpret_cast(&optionalOuterTunnelTransport)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCredentials(Windows::Networking::Vpn::VpnCredentialType credType, bool isRetry, bool isSingleSignOnCredential, abi_arg_in certificate, abi_arg_out credential) noexcept override - { - try - { - *credential = detach(this->shim().RequestCredentials(credType, isRetry, isSingleSignOnCredential, *reinterpret_cast(&certificate))); - return S_OK; - } - catch (...) - { - *credential = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestVpnPacketBuffer(Windows::Networking::Vpn::VpnDataPathType type, abi_arg_out vpnPacketBuffer) noexcept override - { - try - { - this->shim().RequestVpnPacketBuffer(type, *vpnPacketBuffer); - return S_OK; - } - catch (...) - { - *vpnPacketBuffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LogDiagnosticMessage(abi_arg_in message) noexcept override - { - try - { - this->shim().LogDiagnosticMessage(*reinterpret_cast(&message)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Configuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Configuration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ActivityChange(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ActivityChange(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ActivityChange(event_token token) noexcept override - { - try - { - this->shim().ActivityChange(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlugInContext(abi_arg_in value) noexcept override - { - try - { - this->shim().PlugInContext(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlugInContext(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlugInContext()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemHealth(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SystemHealth()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCustomPrompt(abi_arg_in> customPrompt) noexcept override - { - try - { - this->shim().RequestCustomPrompt(*reinterpret_cast *>(&customPrompt)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetErrorMessage(abi_arg_in message) noexcept override - { - try - { - this->shim().SetErrorMessage(*reinterpret_cast(&message)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAllowedSslTlsVersions(abi_arg_in tunnelTransport, bool useTls12) noexcept override - { - try - { - this->shim().SetAllowedSslTlsVersions(*reinterpret_cast(&tunnelTransport), useTls12); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartWithMainTransport(abi_arg_in> assignedClientIPv4list, abi_arg_in> assignedClientIPv6list, abi_arg_in vpnInterfaceId, abi_arg_in assignedRoutes, abi_arg_in assignedDomainName, uint32_t mtuSize, uint32_t maxFrameSize, bool Reserved, abi_arg_in mainOuterTunnelTransport) noexcept override - { - try - { - this->shim().StartWithMainTransport(*reinterpret_cast *>(&assignedClientIPv4list), *reinterpret_cast *>(&assignedClientIPv6list), *reinterpret_cast(&vpnInterfaceId), *reinterpret_cast(&assignedRoutes), *reinterpret_cast(&assignedDomainName), mtuSize, maxFrameSize, Reserved, *reinterpret_cast(&mainOuterTunnelTransport)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartExistingTransports(abi_arg_in> assignedClientIPv4list, abi_arg_in> assignedClientIPv6list, abi_arg_in vpnInterfaceId, abi_arg_in assignedRoutes, abi_arg_in assignedDomainName, uint32_t mtuSize, uint32_t maxFrameSize, bool Reserved) noexcept override - { - try - { - this->shim().StartExistingTransports(*reinterpret_cast *>(&assignedClientIPv4list), *reinterpret_cast *>(&assignedClientIPv6list), *reinterpret_cast(&vpnInterfaceId), *reinterpret_cast(&assignedRoutes), *reinterpret_cast(&assignedDomainName), mtuSize, maxFrameSize, Reserved); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ActivityStateChange(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ActivityStateChange(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ActivityStateChange(event_token token) noexcept override - { - try - { - this->shim().ActivityStateChange(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVpnSendPacketBuffer(abi_arg_out vpnSendPacketBuffer) noexcept override - { - try - { - *vpnSendPacketBuffer = detach(this->shim().GetVpnSendPacketBuffer()); - return S_OK; - } - catch (...) - { - *vpnSendPacketBuffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVpnReceivePacketBuffer(abi_arg_out vpnReceivePacketBuffer) noexcept override - { - try - { - *vpnReceivePacketBuffer = detach(this->shim().GetVpnReceivePacketBuffer()); - return S_OK; - } - catch (...) - { - *vpnReceivePacketBuffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCustomPromptAsync(abi_arg_in> customPromptElement, abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().RequestCustomPromptAsync(*reinterpret_cast *>(&customPromptElement))); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCredentialsWithCertificateAsync(Windows::Networking::Vpn::VpnCredentialType credType, uint32_t credOptions, abi_arg_in certificate, abi_arg_out> credential) noexcept override - { - try - { - *credential = detach(this->shim().RequestCredentialsAsync(credType, credOptions, *reinterpret_cast(&certificate))); - return S_OK; - } - catch (...) - { - *credential = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCredentialsWithOptionsAsync(Windows::Networking::Vpn::VpnCredentialType credType, uint32_t credOptions, abi_arg_out> credential) noexcept override - { - try - { - *credential = detach(this->shim().RequestCredentialsAsync(credType, credOptions)); - return S_OK; - } - catch (...) - { - *credential = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCredentialsSimpleAsync(Windows::Networking::Vpn::VpnCredentialType credType, abi_arg_out> credential) noexcept override - { - try - { - *credential = detach(this->shim().RequestCredentialsAsync(credType)); - return S_OK; - } - catch (...) - { - *credential = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TerminateConnection(abi_arg_in message) noexcept override - { - try - { - this->shim().TerminateConnection(*reinterpret_cast(&message)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartWithTrafficFilter(abi_arg_in> assignedClientIpv4List, abi_arg_in> assignedClientIpv6List, abi_arg_in vpnInterfaceId, abi_arg_in assignedRoutes, abi_arg_in assignedNamespace, uint32_t mtuSize, uint32_t maxFrameSize, bool reserved, abi_arg_in mainOuterTunnelTransport, abi_arg_in optionalOuterTunnelTransport, abi_arg_in assignedTrafficFilters) noexcept override - { - try - { - this->shim().StartWithTrafficFilter(*reinterpret_cast *>(&assignedClientIpv4List), *reinterpret_cast *>(&assignedClientIpv6List), *reinterpret_cast(&vpnInterfaceId), *reinterpret_cast(&assignedRoutes), *reinterpret_cast(&assignedNamespace), mtuSize, maxFrameSize, reserved, *reinterpret_cast(&mainOuterTunnelTransport), *reinterpret_cast(&optionalOuterTunnelTransport), *reinterpret_cast(&assignedTrafficFilters)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::Networking::Vpn::VpnChannelActivityEventType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ActivityState(Windows::Networking::Vpn::VpnChannelActivityEventType * value) noexcept override - { - try - { - *value = detach(this->shim().ActivityState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServerServiceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServerServiceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerHostNameList(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServerHostNameList()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomField(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomField()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServerUris(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServerUris()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ProcessEventAsync(abi_arg_in thirdPartyPlugIn, abi_arg_in event) noexcept override - { - try - { - this->shim().ProcessEventAsync(*reinterpret_cast(&thirdPartyPlugIn), *reinterpret_cast(&event)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PasskeyCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PasskeyCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CertificateCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CertificateCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdditionalPin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdditionalPin()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OldPasswordCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldPasswordCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_InitialCheckState(bool value) noexcept override - { - try - { - this->shim().InitialCheckState(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InitialCheckState(bool * value) noexcept override - { - try - { - *value = detach(this->shim().InitialCheckState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Checked(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Checked()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_OptionsText(abi_arg_in> value) noexcept override - { - try - { - this->shim().OptionsText(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OptionsText(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().OptionsText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Selected(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Selected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_DefaultText(abi_arg_in value) noexcept override - { - try - { - this->shim().DefaultText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NoEcho(bool value) noexcept override - { - try - { - this->shim().NoEcho(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NoEcho(bool * value) noexcept override - { - try - { - *value = detach(this->shim().NoEcho()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Label(abi_arg_in value) noexcept override - { - try - { - this->shim().Label(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Label(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Label()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Compulsory(bool value) noexcept override - { - try - { - this->shim().Compulsory(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Compulsory(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Compulsory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Bordered(bool value) noexcept override - { - try - { - this->shim().Bordered(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bordered(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Bordered()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_InitialValue(bool value) noexcept override - { - try - { - this->shim().InitialValue(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InitialValue(bool * value) noexcept override - { - try - { - *value = detach(this->shim().InitialValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Compulsory(bool value) noexcept override - { - try - { - this->shim().Compulsory(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Compulsory(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Compulsory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Emphasized(bool value) noexcept override - { - try - { - this->shim().Emphasized(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Emphasized(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Emphasized()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Options(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Options()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedIndex(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_PlaceholderText(abi_arg_in value) noexcept override - { - try - { - this->shim().PlaceholderText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTextHidden(bool value) noexcept override - { - try - { - this->shim().IsTextHidden(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTextHidden(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTextHidden()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_DisplayText(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DomainNameList(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DomainNameList()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProxyAutoConfigurationUri(abi_arg_in value) noexcept override - { - try - { - this->shim().ProxyAutoConfigurationUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProxyAutoConfigurationUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProxyAutoConfigurationUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_DomainName(abi_arg_in value) noexcept override - { - try - { - this->shim().DomainName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DomainName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DomainNameType(Windows::Networking::Vpn::VpnDomainNameType value) noexcept override - { - try - { - this->shim().DomainNameType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainNameType(Windows::Networking::Vpn::VpnDomainNameType * value) noexcept override - { - try - { - *value = detach(this->shim().DomainNameType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DnsServers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DnsServers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WebProxyServers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().WebProxyServers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WebProxyUris(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().WebProxyUris()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateVpnDomainNameInfo(abi_arg_in name, Windows::Networking::Vpn::VpnDomainNameType nameType, abi_arg_in> dnsServerList, abi_arg_in> proxyServerList, abi_arg_out domainNameInfo) noexcept override - { - try - { - *domainNameInfo = detach(this->shim().CreateVpnDomainNameInfo(*reinterpret_cast(&name), nameType, *reinterpret_cast *>(&dnsServerList), *reinterpret_cast *>(&proxyServerList))); - return S_OK; - } - catch (...) - { - *domainNameInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAddressInfo(uint32_t * __idSize, abi_arg_out * id) noexcept override - { - try - { - this->shim().GetAddressInfo(detach(__idSize, id)); - return S_OK; - } - catch (...) - { - *__idSize = 0; - *id = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateVpnInterfaceId(uint32_t __addressSize, abi_arg_in * address, abi_arg_out vpnInterfaceId) noexcept override - { - try - { - *vpnInterfaceId = detach(this->shim().CreateVpnInterfaceId(array_ref(address, address + __addressSize))); - return S_OK; - } - catch (...) - { - *vpnInterfaceId = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddProfileFromXmlAsync(abi_arg_in xml, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().AddProfileFromXmlAsync(*reinterpret_cast(&xml))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddProfileFromObjectAsync(abi_arg_in profile, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().AddProfileFromObjectAsync(*reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateProfileFromXmlAsync(abi_arg_in xml, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().UpdateProfileFromXmlAsync(*reinterpret_cast(&xml))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateProfileFromObjectAsync(abi_arg_in profile, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().UpdateProfileFromObjectAsync(*reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetProfilesAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetProfilesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteProfileAsync(abi_arg_in profile, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().DeleteProfileAsync(*reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectProfileAsync(abi_arg_in profile, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ConnectProfileAsync(*reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConnectProfileWithPasswordCredentialAsync(abi_arg_in profile, abi_arg_in passwordCredential, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ConnectProfileWithPasswordCredentialAsync(*reinterpret_cast(&profile), *reinterpret_cast(&passwordCredential))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisconnectProfileAsync(abi_arg_in profile, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().DisconnectProfileAsync(*reinterpret_cast(&profile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_NamespaceList(abi_arg_in> value) noexcept override - { - try - { - this->shim().NamespaceList(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NamespaceList(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().NamespaceList()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProxyAutoConfigUri(abi_arg_in value) noexcept override - { - try - { - this->shim().ProxyAutoConfigUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProxyAutoConfigUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProxyAutoConfigUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Namespace(abi_arg_in value) noexcept override - { - try - { - this->shim().Namespace(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Namespace(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Namespace()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DnsServers(abi_arg_in> value) noexcept override - { - try - { - this->shim().DnsServers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DnsServers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DnsServers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WebProxyServers(abi_arg_in> value) noexcept override - { - try - { - this->shim().WebProxyServers(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WebProxyServers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().WebProxyServers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateVpnNamespaceInfo(abi_arg_in name, abi_arg_in> dnsServerList, abi_arg_in> proxyServerList, abi_arg_out namespaceInfo) noexcept override - { - try - { - *namespaceInfo = detach(this->shim().CreateVpnNamespaceInfo(*reinterpret_cast(&name), *reinterpret_cast *>(&dnsServerList), *reinterpret_cast *>(&proxyServerList))); - return S_OK; - } - catch (...) - { - *namespaceInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Servers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Servers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoutingPolicyType(Windows::Networking::Vpn::VpnRoutingPolicyType * value) noexcept override - { - try - { - *value = detach(this->shim().RoutingPolicyType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RoutingPolicyType(Windows::Networking::Vpn::VpnRoutingPolicyType value) noexcept override - { - try - { - this->shim().RoutingPolicyType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NativeProtocolType(Windows::Networking::Vpn::VpnNativeProtocolType * value) noexcept override - { - try - { - *value = detach(this->shim().NativeProtocolType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NativeProtocolType(Windows::Networking::Vpn::VpnNativeProtocolType value) noexcept override - { - try - { - this->shim().NativeProtocolType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserAuthenticationMethod(Windows::Networking::Vpn::VpnAuthenticationMethod * value) noexcept override - { - try - { - *value = detach(this->shim().UserAuthenticationMethod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UserAuthenticationMethod(Windows::Networking::Vpn::VpnAuthenticationMethod value) noexcept override - { - try - { - this->shim().UserAuthenticationMethod(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TunnelAuthenticationMethod(Windows::Networking::Vpn::VpnAuthenticationMethod * value) noexcept override - { - try - { - *value = detach(this->shim().TunnelAuthenticationMethod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TunnelAuthenticationMethod(Windows::Networking::Vpn::VpnAuthenticationMethod value) noexcept override - { - try - { - this->shim().TunnelAuthenticationMethod(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EapConfiguration(abi_arg_out Value) noexcept override - { - try - { - *Value = detach(this->shim().EapConfiguration()); - return S_OK; - } - catch (...) - { - *Value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EapConfiguration(abi_arg_in value) noexcept override - { - try - { - this->shim().EapConfiguration(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequireVpnClientAppUI(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RequireVpnClientAppUI()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RequireVpnClientAppUI(bool value) noexcept override - { - try - { - this->shim().RequireVpnClientAppUI(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionStatus(Windows::Networking::Vpn::VpnManagementConnectionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Buffer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Buffer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Status(Windows::Networking::Vpn::VpnPacketBufferStatus value) noexcept override - { - try - { - this->shim().Status(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Networking::Vpn::VpnPacketBufferStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransportAffinity(uint32_t value) noexcept override - { - try - { - this->shim().TransportAffinity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportAffinity(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TransportAffinity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateVpnPacketBuffer(abi_arg_in parentBuffer, uint32_t offset, uint32_t length, abi_arg_out vpnPacketBuffer) noexcept override - { - try - { - *vpnPacketBuffer = detach(this->shim().CreateVpnPacketBuffer(*reinterpret_cast(&parentBuffer), offset, length)); - return S_OK; - } - catch (...) - { - *vpnPacketBuffer = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Append(abi_arg_in nextVpnPacketBuffer) noexcept override - { - try - { - this->shim().Append(*reinterpret_cast(&nextVpnPacketBuffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddAtBegin(abi_arg_in nextVpnPacketBuffer) noexcept override - { - try - { - this->shim().AddAtBegin(*reinterpret_cast(&nextVpnPacketBuffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAtEnd(abi_arg_out nextVpnPacketBuffer) noexcept override - { - try - { - *nextVpnPacketBuffer = detach(this->shim().RemoveAtEnd()); - return S_OK; - } - catch (...) - { - *nextVpnPacketBuffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAtBegin(abi_arg_out nextVpnPacketBuffer) noexcept override - { - try - { - *nextVpnPacketBuffer = detach(this->shim().RemoveAtBegin()); - return S_OK; - } - catch (...) - { - *nextVpnPacketBuffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Status(Windows::Networking::Vpn::VpnPacketBufferStatus value) noexcept override - { - try - { - this->shim().Status(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Networking::Vpn::VpnPacketBufferStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Size(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddLeadingPacket(abi_arg_in nextVpnPacketBuffer) noexcept override - { - try - { - this->shim().AddLeadingPacket(*reinterpret_cast(&nextVpnPacketBuffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveLeadingPacket(abi_arg_out nextVpnPacketBuffer) noexcept override - { - try - { - *nextVpnPacketBuffer = detach(this->shim().RemoveLeadingPacket()); - return S_OK; - } - catch (...) - { - *nextVpnPacketBuffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddTrailingPacket(abi_arg_in nextVpnPacketBuffer) noexcept override - { - try - { - this->shim().AddTrailingPacket(*reinterpret_cast(&nextVpnPacketBuffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveTrailingPacket(abi_arg_out nextVpnPacketBuffer) noexcept override - { - try - { - *nextVpnPacketBuffer = detach(this->shim().RemoveTrailingPacket()); - return S_OK; - } - catch (...) - { - *nextVpnPacketBuffer = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PasskeyCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PasskeyCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdditionalPin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdditionalPin()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OldPasswordCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldPasswordCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Connect(abi_arg_in channel) noexcept override - { - try - { - this->shim().Connect(*reinterpret_cast(&channel)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Disconnect(abi_arg_in channel) noexcept override - { - try - { - this->shim().Disconnect(*reinterpret_cast(&channel)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetKeepAlivePayload(abi_arg_in channel, abi_arg_out keepAlivePacket) noexcept override - { - try - { - this->shim().GetKeepAlivePayload(*reinterpret_cast(&channel), *keepAlivePacket); - return S_OK; - } - catch (...) - { - *keepAlivePacket = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Encapsulate(abi_arg_in channel, abi_arg_in packets, abi_arg_in encapulatedPackets) noexcept override - { - try - { - this->shim().Encapsulate(*reinterpret_cast(&channel), *reinterpret_cast(&packets), *reinterpret_cast(&encapulatedPackets)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Decapsulate(abi_arg_in channel, abi_arg_in encapBuffer, abi_arg_in decapsulatedPackets, abi_arg_in controlPacketsToSend) noexcept override - { - try - { - this->shim().Decapsulate(*reinterpret_cast(&channel), *reinterpret_cast(&encapBuffer), *reinterpret_cast(&decapsulatedPackets), *reinterpret_cast(&controlPacketsToSend)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServerUris(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ServerUris()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomConfiguration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomConfiguration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CustomConfiguration(abi_arg_in value) noexcept override - { - try - { - this->shim().CustomConfiguration(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VpnPluginPackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VpnPluginPackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VpnPluginPackageFamilyName(abi_arg_in value) noexcept override - { - try - { - this->shim().VpnPluginPackageFamilyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequireVpnClientAppUI(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RequireVpnClientAppUI()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RequireVpnClientAppUI(bool value) noexcept override - { - try - { - this->shim().RequireVpnClientAppUI(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConnectionStatus(Windows::Networking::Vpn::VpnManagementConnectionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ConnectionStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProfileName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProfileName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProfileName(abi_arg_in value) noexcept override - { - try - { - this->shim().ProfileName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppTriggers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AppTriggers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Routes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Routes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainNameInfoList(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DomainNameInfoList()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrafficFilters(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TrafficFilters()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RememberCredentials(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RememberCredentials()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RememberCredentials(bool value) noexcept override - { - try - { - this->shim().RememberCredentials(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlwaysOn(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AlwaysOn()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AlwaysOn(bool value) noexcept override - { - try - { - this->shim().AlwaysOn(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Address(abi_arg_in value) noexcept override - { - try - { - this->shim().Address(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Address(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Address()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PrefixSize(uint8_t value) noexcept override - { - try - { - this->shim().PrefixSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrefixSize(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().PrefixSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Ipv4InclusionRoutes(abi_arg_in> value) noexcept override - { - try - { - this->shim().Ipv4InclusionRoutes(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Ipv6InclusionRoutes(abi_arg_in> value) noexcept override - { - try - { - this->shim().Ipv6InclusionRoutes(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ipv4InclusionRoutes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Ipv4InclusionRoutes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ipv6InclusionRoutes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Ipv6InclusionRoutes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Ipv4ExclusionRoutes(abi_arg_in> value) noexcept override - { - try - { - this->shim().Ipv4ExclusionRoutes(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Ipv6ExclusionRoutes(abi_arg_in> value) noexcept override - { - try - { - this->shim().Ipv6ExclusionRoutes(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ipv4ExclusionRoutes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Ipv4ExclusionRoutes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ipv6ExclusionRoutes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Ipv6ExclusionRoutes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExcludeLocalSubnets(bool value) noexcept override - { - try - { - this->shim().ExcludeLocalSubnets(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExcludeLocalSubnets(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ExcludeLocalSubnets()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateVpnRoute(abi_arg_in address, uint8_t prefixSize, abi_arg_out route) noexcept override - { - try - { - *route = detach(this->shim().CreateVpnRoute(*reinterpret_cast(&address), prefixSize)); - return S_OK; - } - catch (...) - { - *route = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StatementOfHealth(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StatementOfHealth()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppId(abi_arg_in value) noexcept override - { - try - { - this->shim().AppId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppClaims(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AppClaims()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Protocol(Windows::Networking::Vpn::VpnIPProtocol * value) noexcept override - { - try - { - *value = detach(this->shim().Protocol()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Protocol(Windows::Networking::Vpn::VpnIPProtocol value) noexcept override - { - try - { - this->shim().Protocol(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalPortRanges(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LocalPortRanges()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemotePortRanges(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RemotePortRanges()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalAddressRanges(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LocalAddressRanges()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteAddressRanges(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RemoteAddressRanges()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoutingPolicyType(Windows::Networking::Vpn::VpnRoutingPolicyType * value) noexcept override - { - try - { - *value = detach(this->shim().RoutingPolicyType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RoutingPolicyType(Windows::Networking::Vpn::VpnRoutingPolicyType value) noexcept override - { - try - { - this->shim().RoutingPolicyType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TrafficFilterList(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TrafficFilterList()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowOutbound(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowOutbound()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowOutbound(bool value) noexcept override - { - try - { - this->shim().AllowOutbound(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowInbound(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowInbound()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowInbound(bool value) noexcept override - { - try - { - this->shim().AllowInbound(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in appId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&appId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Networking::Vpn { - -template void impl_IVpnPlugIn::Connect(const Windows::Networking::Vpn::VpnChannel & channel) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Connect(get(channel))); -} - -template void impl_IVpnPlugIn::Disconnect(const Windows::Networking::Vpn::VpnChannel & channel) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Disconnect(get(channel))); -} - -template void impl_IVpnPlugIn::GetKeepAlivePayload(const Windows::Networking::Vpn::VpnChannel & channel, Windows::Networking::Vpn::VpnPacketBuffer & keepAlivePacket) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetKeepAlivePayload(get(channel), put(keepAlivePacket))); -} - -template void impl_IVpnPlugIn::Encapsulate(const Windows::Networking::Vpn::VpnChannel & channel, const Windows::Networking::Vpn::VpnPacketBufferList & packets, const Windows::Networking::Vpn::VpnPacketBufferList & encapulatedPackets) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Encapsulate(get(channel), get(packets), get(encapulatedPackets))); -} - -template void impl_IVpnPlugIn::Decapsulate(const Windows::Networking::Vpn::VpnChannel & channel, const Windows::Networking::Vpn::VpnPacketBuffer & encapBuffer, const Windows::Networking::Vpn::VpnPacketBufferList & decapsulatedPackets, const Windows::Networking::Vpn::VpnPacketBufferList & controlPacketsToSend) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Decapsulate(get(channel), get(encapBuffer), get(decapsulatedPackets), get(controlPacketsToSend))); -} - -template void impl_IVpnCustomPrompt::Label(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Label(get(value))); -} - -template hstring impl_IVpnCustomPrompt::Label() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Label(put(value))); - return value; -} - -template void impl_IVpnCustomPrompt::Compulsory(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Compulsory(value)); -} - -template bool impl_IVpnCustomPrompt::Compulsory() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Compulsory(&value)); - return value; -} - -template void impl_IVpnCustomPrompt::Bordered(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Bordered(value)); -} - -template bool impl_IVpnCustomPrompt::Bordered() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Bordered(&value)); - return value; -} - -template void impl_IVpnCustomEditBox::DefaultText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultText(get(value))); -} - -template hstring impl_IVpnCustomEditBox::DefaultText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DefaultText(put(value))); - return value; -} - -template void impl_IVpnCustomEditBox::NoEcho(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NoEcho(value)); -} - -template bool impl_IVpnCustomEditBox::NoEcho() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_NoEcho(&value)); - return value; -} - -template hstring impl_IVpnCustomEditBox::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_IVpnCustomComboBox::OptionsText(const Windows::Foundation::Collections::IVectorView & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OptionsText(get(value))); -} - -template Windows::Foundation::Collections::IVectorView impl_IVpnCustomComboBox::OptionsText() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_OptionsText(put(value))); - return value; -} - -template uint32_t impl_IVpnCustomComboBox::Selected() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Selected(&value)); - return value; -} - -template void impl_IVpnCustomTextBox::DisplayText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayText(get(value))); -} - -template hstring impl_IVpnCustomTextBox::DisplayText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayText(put(value))); - return value; -} - -template void impl_IVpnCustomCheckBox::InitialCheckState(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InitialCheckState(value)); -} - -template bool impl_IVpnCustomCheckBox::InitialCheckState() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_InitialCheckState(&value)); - return value; -} - -template bool impl_IVpnCustomCheckBox::Checked() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Checked(&value)); - return value; -} - -template Windows::Networking::Vpn::VpnRoute impl_IVpnRouteFactory::CreateVpnRoute(const Windows::Networking::HostName & address, uint8_t prefixSize) const -{ - Windows::Networking::Vpn::VpnRoute route { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateVpnRoute(get(address), prefixSize, put(route))); - return route; -} - -template void impl_IVpnRoute::Address(const Windows::Networking::HostName & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Address(get(value))); -} - -template Windows::Networking::HostName impl_IVpnRoute::Address() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Address(put(value))); - return value; -} - -template void impl_IVpnRoute::PrefixSize(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PrefixSize(value)); -} - -template uint8_t impl_IVpnRoute::PrefixSize() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PrefixSize(&value)); - return value; -} - -template void impl_IVpnRouteAssignment::Ipv4InclusionRoutes(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Ipv4InclusionRoutes(get(value))); -} - -template void impl_IVpnRouteAssignment::Ipv6InclusionRoutes(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Ipv6InclusionRoutes(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IVpnRouteAssignment::Ipv4InclusionRoutes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Ipv4InclusionRoutes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnRouteAssignment::Ipv6InclusionRoutes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Ipv6InclusionRoutes(put(value))); - return value; -} - -template void impl_IVpnRouteAssignment::Ipv4ExclusionRoutes(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Ipv4ExclusionRoutes(get(value))); -} - -template void impl_IVpnRouteAssignment::Ipv6ExclusionRoutes(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Ipv6ExclusionRoutes(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IVpnRouteAssignment::Ipv4ExclusionRoutes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Ipv4ExclusionRoutes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnRouteAssignment::Ipv6ExclusionRoutes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Ipv6ExclusionRoutes(put(value))); - return value; -} - -template void impl_IVpnRouteAssignment::ExcludeLocalSubnets(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExcludeLocalSubnets(value)); -} - -template bool impl_IVpnRouteAssignment::ExcludeLocalSubnets() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ExcludeLocalSubnets(&value)); - return value; -} - -template Windows::Networking::Vpn::VpnNamespaceInfo impl_IVpnNamespaceInfoFactory::CreateVpnNamespaceInfo(hstring_ref name, const Windows::Foundation::Collections::IVector & dnsServerList, const Windows::Foundation::Collections::IVector & proxyServerList) const -{ - Windows::Networking::Vpn::VpnNamespaceInfo namespaceInfo { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateVpnNamespaceInfo(get(name), get(dnsServerList), get(proxyServerList), put(namespaceInfo))); - return namespaceInfo; -} - -template void impl_IVpnNamespaceInfo::Namespace(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Namespace(get(value))); -} - -template hstring impl_IVpnNamespaceInfo::Namespace() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Namespace(put(value))); - return value; -} - -template void impl_IVpnNamespaceInfo::DnsServers(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DnsServers(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IVpnNamespaceInfo::DnsServers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DnsServers(put(value))); - return value; -} - -template void impl_IVpnNamespaceInfo::WebProxyServers(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WebProxyServers(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IVpnNamespaceInfo::WebProxyServers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_WebProxyServers(put(value))); - return value; -} - -template void impl_IVpnNamespaceAssignment::NamespaceList(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NamespaceList(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IVpnNamespaceAssignment::NamespaceList() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_NamespaceList(put(value))); - return value; -} - -template void impl_IVpnNamespaceAssignment::ProxyAutoConfigUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProxyAutoConfigUri(get(value))); -} - -template Windows::Foundation::Uri impl_IVpnNamespaceAssignment::ProxyAutoConfigUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProxyAutoConfigUri(put(value))); - return value; -} - -template Windows::Networking::Vpn::VpnInterfaceId impl_IVpnInterfaceIdFactory::CreateVpnInterfaceId(array_ref address) const -{ - Windows::Networking::Vpn::VpnInterfaceId vpnInterfaceId { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateVpnInterfaceId(address.size(), get(address), put(vpnInterfaceId))); - return vpnInterfaceId; -} - -template void impl_IVpnInterfaceId::GetAddressInfo(com_array & id) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetAddressInfo(put_size(id), put(id))); -} - -template Windows::Security::Credentials::PasswordCredential impl_IVpnPickedCredential::PasskeyCredential() const -{ - Windows::Security::Credentials::PasswordCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PasskeyCredential(put(value))); - return value; -} - -template hstring impl_IVpnPickedCredential::AdditionalPin() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AdditionalPin(put(value))); - return value; -} - -template Windows::Security::Credentials::PasswordCredential impl_IVpnPickedCredential::OldPasswordCredential() const -{ - Windows::Security::Credentials::PasswordCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OldPasswordCredential(put(value))); - return value; -} - -template Windows::Security::Credentials::PasswordCredential impl_IVpnCredential::PasskeyCredential() const -{ - Windows::Security::Credentials::PasswordCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PasskeyCredential(put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_IVpnCredential::CertificateCredential() const -{ - Windows::Security::Cryptography::Certificates::Certificate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CertificateCredential(put(value))); - return value; -} - -template hstring impl_IVpnCredential::AdditionalPin() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AdditionalPin(put(value))); - return value; -} - -template Windows::Security::Credentials::PasswordCredential impl_IVpnCredential::OldPasswordCredential() const -{ - Windows::Security::Credentials::PasswordCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OldPasswordCredential(put(value))); - return value; -} - -template Windows::Storage::Streams::Buffer impl_IVpnSystemHealth::StatementOfHealth() const -{ - Windows::Storage::Streams::Buffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StatementOfHealth(put(value))); - return value; -} - -template hstring impl_IVpnChannelConfiguration::ServerServiceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServerServiceName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IVpnChannelConfiguration::ServerHostNameList() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ServerHostNameList(put(value))); - return value; -} - -template hstring impl_IVpnChannelConfiguration::CustomField() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CustomField(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IVpnChannelConfiguration2::ServerUris() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ServerUris(put(value))); - return value; -} - -template Windows::Networking::Vpn::VpnChannelActivityEventType impl_IVpnChannelActivityEventArgs::Type() const -{ - Windows::Networking::Vpn::VpnChannelActivityEventType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template void impl_IVpnChannel::AssociateTransport(const Windows::IInspectable & mainOuterTunnelTransport, const Windows::IInspectable & optionalOuterTunnelTransport) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AssociateTransport(get(mainOuterTunnelTransport), get(optionalOuterTunnelTransport))); -} - -template void impl_IVpnChannel::Start(const Windows::Foundation::Collections::IVectorView & assignedClientIPv4list, const Windows::Foundation::Collections::IVectorView & assignedClientIPv6list, const Windows::Networking::Vpn::VpnInterfaceId & vpnInterfaceId, const Windows::Networking::Vpn::VpnRouteAssignment & routeScope, const Windows::Networking::Vpn::VpnNamespaceAssignment & namespaceScope, uint32_t mtuSize, uint32_t maxFrameSize, bool optimizeForLowCostNetwork, const Windows::IInspectable & mainOuterTunnelTransport, const Windows::IInspectable & optionalOuterTunnelTransport) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start(get(assignedClientIPv4list), get(assignedClientIPv6list), get(vpnInterfaceId), get(routeScope), get(namespaceScope), mtuSize, maxFrameSize, optimizeForLowCostNetwork, get(mainOuterTunnelTransport), get(optionalOuterTunnelTransport))); -} - -template void impl_IVpnChannel::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template Windows::Networking::Vpn::VpnPickedCredential impl_IVpnChannel::RequestCredentials(Windows::Networking::Vpn::VpnCredentialType credType, bool isRetry, bool isSingleSignOnCredential, const Windows::Security::Cryptography::Certificates::Certificate & certificate) const -{ - Windows::Networking::Vpn::VpnPickedCredential credential { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_RequestCredentials(credType, isRetry, isSingleSignOnCredential, get(certificate), put(credential))); - return credential; -} - -template void impl_IVpnChannel::RequestVpnPacketBuffer(Windows::Networking::Vpn::VpnDataPathType type, Windows::Networking::Vpn::VpnPacketBuffer & vpnPacketBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RequestVpnPacketBuffer(type, put(vpnPacketBuffer))); -} - -template void impl_IVpnChannel::LogDiagnosticMessage(hstring_ref message) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LogDiagnosticMessage(get(message))); -} - -template uint32_t impl_IVpnChannel::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Networking::Vpn::VpnChannelConfiguration impl_IVpnChannel::Configuration() const -{ - Windows::Networking::Vpn::VpnChannelConfiguration value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Configuration(put(value))); - return value; -} - -template event_token impl_IVpnChannel::ActivityChange(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ActivityChange(get(handler), &token)); - return token; -} - -template event_revoker impl_IVpnChannel::ActivityChange(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Vpn::IVpnChannel::remove_ActivityChange, ActivityChange(handler)); -} - -template void impl_IVpnChannel::ActivityChange(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ActivityChange(token)); -} - -template void impl_IVpnChannel::PlugInContext(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlugInContext(get(value))); -} - -template Windows::IInspectable impl_IVpnChannel::PlugInContext() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_PlugInContext(put(value))); - return value; -} - -template Windows::Networking::Vpn::VpnSystemHealth impl_IVpnChannel::SystemHealth() const -{ - Windows::Networking::Vpn::VpnSystemHealth value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SystemHealth(put(value))); - return value; -} - -template void impl_IVpnChannel::RequestCustomPrompt(const Windows::Foundation::Collections::IVectorView & customPrompt) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RequestCustomPrompt(get(customPrompt))); -} - -template void impl_IVpnChannel::SetErrorMessage(hstring_ref message) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetErrorMessage(get(message))); -} - -template void impl_IVpnChannel::SetAllowedSslTlsVersions(const Windows::IInspectable & tunnelTransport, bool useTls12) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAllowedSslTlsVersions(get(tunnelTransport), useTls12)); -} - -template void impl_IVpnChannel2::StartWithMainTransport(const Windows::Foundation::Collections::IVectorView & assignedClientIPv4list, const Windows::Foundation::Collections::IVectorView & assignedClientIPv6list, const Windows::Networking::Vpn::VpnInterfaceId & vpnInterfaceId, const Windows::Networking::Vpn::VpnRouteAssignment & assignedRoutes, const Windows::Networking::Vpn::VpnDomainNameAssignment & assignedDomainName, uint32_t mtuSize, uint32_t maxFrameSize, bool Reserved, const Windows::IInspectable & mainOuterTunnelTransport) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartWithMainTransport(get(assignedClientIPv4list), get(assignedClientIPv6list), get(vpnInterfaceId), get(assignedRoutes), get(assignedDomainName), mtuSize, maxFrameSize, Reserved, get(mainOuterTunnelTransport))); -} - -template void impl_IVpnChannel2::StartExistingTransports(const Windows::Foundation::Collections::IVectorView & assignedClientIPv4list, const Windows::Foundation::Collections::IVectorView & assignedClientIPv6list, const Windows::Networking::Vpn::VpnInterfaceId & vpnInterfaceId, const Windows::Networking::Vpn::VpnRouteAssignment & assignedRoutes, const Windows::Networking::Vpn::VpnDomainNameAssignment & assignedDomainName, uint32_t mtuSize, uint32_t maxFrameSize, bool Reserved) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartExistingTransports(get(assignedClientIPv4list), get(assignedClientIPv6list), get(vpnInterfaceId), get(assignedRoutes), get(assignedDomainName), mtuSize, maxFrameSize, Reserved)); -} - -template event_token impl_IVpnChannel2::ActivityStateChange(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ActivityStateChange(get(handler), &token)); - return token; -} - -template event_revoker impl_IVpnChannel2::ActivityStateChange(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Networking::Vpn::IVpnChannel2::remove_ActivityStateChange, ActivityStateChange(handler)); -} - -template void impl_IVpnChannel2::ActivityStateChange(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ActivityStateChange(token)); -} - -template Windows::Networking::Vpn::VpnPacketBuffer impl_IVpnChannel2::GetVpnSendPacketBuffer() const -{ - Windows::Networking::Vpn::VpnPacketBuffer vpnSendPacketBuffer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetVpnSendPacketBuffer(put(vpnSendPacketBuffer))); - return vpnSendPacketBuffer; -} - -template Windows::Networking::Vpn::VpnPacketBuffer impl_IVpnChannel2::GetVpnReceivePacketBuffer() const -{ - Windows::Networking::Vpn::VpnPacketBuffer vpnReceivePacketBuffer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetVpnReceivePacketBuffer(put(vpnReceivePacketBuffer))); - return vpnReceivePacketBuffer; -} - -template Windows::Foundation::IAsyncAction impl_IVpnChannel2::RequestCustomPromptAsync(const Windows::Foundation::Collections::IVectorView & customPromptElement) const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_RequestCustomPromptAsync(get(customPromptElement), put(action))); - return action; -} - -template Windows::Foundation::IAsyncOperation impl_IVpnChannel2::RequestCredentialsAsync(Windows::Networking::Vpn::VpnCredentialType credType, uint32_t credOptions, const Windows::Security::Cryptography::Certificates::Certificate & certificate) const -{ - Windows::Foundation::IAsyncOperation credential; - check_hresult(static_cast(static_cast(*this))->abi_RequestCredentialsWithCertificateAsync(credType, credOptions, get(certificate), put(credential))); - return credential; -} - -template Windows::Foundation::IAsyncOperation impl_IVpnChannel2::RequestCredentialsAsync(Windows::Networking::Vpn::VpnCredentialType credType, uint32_t credOptions) const -{ - Windows::Foundation::IAsyncOperation credential; - check_hresult(static_cast(static_cast(*this))->abi_RequestCredentialsWithOptionsAsync(credType, credOptions, put(credential))); - return credential; -} - -template Windows::Foundation::IAsyncOperation impl_IVpnChannel2::RequestCredentialsAsync(Windows::Networking::Vpn::VpnCredentialType credType) const -{ - Windows::Foundation::IAsyncOperation credential; - check_hresult(static_cast(static_cast(*this))->abi_RequestCredentialsSimpleAsync(credType, put(credential))); - return credential; -} - -template void impl_IVpnChannel2::TerminateConnection(hstring_ref message) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TerminateConnection(get(message))); -} - -template void impl_IVpnChannel2::StartWithTrafficFilter(const Windows::Foundation::Collections::IVectorView & assignedClientIpv4List, const Windows::Foundation::Collections::IVectorView & assignedClientIpv6List, const Windows::Networking::Vpn::VpnInterfaceId & vpnInterfaceId, const Windows::Networking::Vpn::VpnRouteAssignment & assignedRoutes, const Windows::Networking::Vpn::VpnDomainNameAssignment & assignedNamespace, uint32_t mtuSize, uint32_t maxFrameSize, bool reserved, const Windows::IInspectable & mainOuterTunnelTransport, const Windows::IInspectable & optionalOuterTunnelTransport, const Windows::Networking::Vpn::VpnTrafficFilterAssignment & assignedTrafficFilters) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartWithTrafficFilter(get(assignedClientIpv4List), get(assignedClientIpv6List), get(vpnInterfaceId), get(assignedRoutes), get(assignedNamespace), mtuSize, maxFrameSize, reserved, get(mainOuterTunnelTransport), get(optionalOuterTunnelTransport), get(assignedTrafficFilters))); -} - -template void impl_IVpnCustomPromptElement::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IVpnCustomPromptElement::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IVpnCustomPromptElement::Compulsory(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Compulsory(value)); -} - -template bool impl_IVpnCustomPromptElement::Compulsory() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Compulsory(&value)); - return value; -} - -template void impl_IVpnCustomPromptElement::Emphasized(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Emphasized(value)); -} - -template bool impl_IVpnCustomPromptElement::Emphasized() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Emphasized(&value)); - return value; -} - -template void impl_IVpnChannelStatics::ProcessEventAsync(const Windows::IInspectable & thirdPartyPlugIn, const Windows::IInspectable & event) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProcessEventAsync(get(thirdPartyPlugIn), get(event))); -} - -template Windows::Networking::Vpn::VpnPacketBuffer impl_IVpnPacketBufferFactory::CreateVpnPacketBuffer(const Windows::Networking::Vpn::VpnPacketBuffer & parentBuffer, uint32_t offset, uint32_t length) const -{ - Windows::Networking::Vpn::VpnPacketBuffer vpnPacketBuffer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateVpnPacketBuffer(get(parentBuffer), offset, length, put(vpnPacketBuffer))); - return vpnPacketBuffer; -} - -template Windows::Storage::Streams::Buffer impl_IVpnPacketBuffer::Buffer() const -{ - Windows::Storage::Streams::Buffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Buffer(put(value))); - return value; -} - -template void impl_IVpnPacketBuffer::Status(Windows::Networking::Vpn::VpnPacketBufferStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Status(value)); -} - -template Windows::Networking::Vpn::VpnPacketBufferStatus impl_IVpnPacketBuffer::Status() const -{ - Windows::Networking::Vpn::VpnPacketBufferStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template void impl_IVpnPacketBuffer::TransportAffinity(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransportAffinity(value)); -} - -template uint32_t impl_IVpnPacketBuffer::TransportAffinity() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TransportAffinity(&value)); - return value; -} - -template Windows::Networking::Vpn::VpnAppId impl_IVpnPacketBuffer2::AppId() const -{ - Windows::Networking::Vpn::VpnAppId value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppId(put(value))); - return value; -} - -template void impl_IVpnPacketBufferList::Append(const Windows::Networking::Vpn::VpnPacketBuffer & nextVpnPacketBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Append(get(nextVpnPacketBuffer))); -} - -template void impl_IVpnPacketBufferList::AddAtBegin(const Windows::Networking::Vpn::VpnPacketBuffer & nextVpnPacketBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddAtBegin(get(nextVpnPacketBuffer))); -} - -template Windows::Networking::Vpn::VpnPacketBuffer impl_IVpnPacketBufferList::RemoveAtEnd() const -{ - Windows::Networking::Vpn::VpnPacketBuffer nextVpnPacketBuffer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_RemoveAtEnd(put(nextVpnPacketBuffer))); - return nextVpnPacketBuffer; -} - -template Windows::Networking::Vpn::VpnPacketBuffer impl_IVpnPacketBufferList::RemoveAtBegin() const -{ - Windows::Networking::Vpn::VpnPacketBuffer nextVpnPacketBuffer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_RemoveAtBegin(put(nextVpnPacketBuffer))); - return nextVpnPacketBuffer; -} - -template void impl_IVpnPacketBufferList::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template void impl_IVpnPacketBufferList::Status(Windows::Networking::Vpn::VpnPacketBufferStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Status(value)); -} - -template Windows::Networking::Vpn::VpnPacketBufferStatus impl_IVpnPacketBufferList::Status() const -{ - Windows::Networking::Vpn::VpnPacketBufferStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template uint32_t impl_IVpnPacketBufferList::Size() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(&value)); - return value; -} - -template void impl_IVpnPacketBufferList2::AddLeadingPacket(const Windows::Networking::Vpn::VpnPacketBuffer & nextVpnPacketBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddLeadingPacket(get(nextVpnPacketBuffer))); -} - -template Windows::Networking::Vpn::VpnPacketBuffer impl_IVpnPacketBufferList2::RemoveLeadingPacket() const -{ - Windows::Networking::Vpn::VpnPacketBuffer nextVpnPacketBuffer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_RemoveLeadingPacket(put(nextVpnPacketBuffer))); - return nextVpnPacketBuffer; -} - -template void impl_IVpnPacketBufferList2::AddTrailingPacket(const Windows::Networking::Vpn::VpnPacketBuffer & nextVpnPacketBuffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddTrailingPacket(get(nextVpnPacketBuffer))); -} - -template Windows::Networking::Vpn::VpnPacketBuffer impl_IVpnPacketBufferList2::RemoveTrailingPacket() const -{ - Windows::Networking::Vpn::VpnPacketBuffer nextVpnPacketBuffer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_RemoveTrailingPacket(put(nextVpnPacketBuffer))); - return nextVpnPacketBuffer; -} - -template void impl_IVpnCustomPromptTextInput::PlaceholderText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaceholderText(get(value))); -} - -template hstring impl_IVpnCustomPromptTextInput::PlaceholderText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderText(put(value))); - return value; -} - -template void impl_IVpnCustomPromptTextInput::IsTextHidden(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTextHidden(value)); -} - -template bool impl_IVpnCustomPromptTextInput::IsTextHidden() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTextHidden(&value)); - return value; -} - -template hstring impl_IVpnCustomPromptTextInput::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnCustomPromptOptionSelector::Options() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Options(put(value))); - return value; -} - -template uint32_t impl_IVpnCustomPromptOptionSelector::SelectedIndex() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedIndex(&value)); - return value; -} - -template void impl_IVpnCustomPromptBooleanInput::InitialValue(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InitialValue(value)); -} - -template bool impl_IVpnCustomPromptBooleanInput::InitialValue() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_InitialValue(&value)); - return value; -} - -template bool impl_IVpnCustomPromptBooleanInput::Value() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template void impl_IVpnCustomPromptText::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template hstring impl_IVpnCustomPromptText::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::Networking::Vpn::VpnChannelActivityEventType impl_IVpnChannelActivityStateChangedArgs::ActivityState() const -{ - Windows::Networking::Vpn::VpnChannelActivityEventType value {}; - check_hresult(static_cast(static_cast(*this))->get_ActivityState(&value)); - return value; -} - -template Windows::Networking::Vpn::VpnDomainNameInfo impl_IVpnDomainNameInfoFactory::CreateVpnDomainNameInfo(hstring_ref name, Windows::Networking::Vpn::VpnDomainNameType nameType, const Windows::Foundation::Collections::IIterable & dnsServerList, const Windows::Foundation::Collections::IIterable & proxyServerList) const -{ - Windows::Networking::Vpn::VpnDomainNameInfo domainNameInfo { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateVpnDomainNameInfo(get(name), nameType, get(dnsServerList), get(proxyServerList), put(domainNameInfo))); - return domainNameInfo; -} - -template void impl_IVpnDomainNameInfo::DomainName(const Windows::Networking::HostName & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DomainName(get(value))); -} - -template Windows::Networking::HostName impl_IVpnDomainNameInfo::DomainName() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DomainName(put(value))); - return value; -} - -template void impl_IVpnDomainNameInfo::DomainNameType(Windows::Networking::Vpn::VpnDomainNameType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DomainNameType(value)); -} - -template Windows::Networking::Vpn::VpnDomainNameType impl_IVpnDomainNameInfo::DomainNameType() const -{ - Windows::Networking::Vpn::VpnDomainNameType value {}; - check_hresult(static_cast(static_cast(*this))->get_DomainNameType(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnDomainNameInfo::DnsServers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DnsServers(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnDomainNameInfo::WebProxyServers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_WebProxyServers(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnDomainNameInfo2::WebProxyUris() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_WebProxyUris(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnDomainNameAssignment::DomainNameList() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DomainNameList(put(value))); - return value; -} - -template void impl_IVpnDomainNameAssignment::ProxyAutoConfigurationUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProxyAutoConfigurationUri(get(value))); -} - -template Windows::Foundation::Uri impl_IVpnDomainNameAssignment::ProxyAutoConfigurationUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProxyAutoConfigurationUri(put(value))); - return value; -} - -template Windows::Networking::Vpn::VpnAppId impl_IVpnAppIdFactory::Create(Windows::Networking::Vpn::VpnAppIdType type, hstring_ref value) const -{ - Windows::Networking::Vpn::VpnAppId result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(type, get(value), put(result))); - return result; -} - -template Windows::Networking::Vpn::VpnAppIdType impl_IVpnAppId::Type() const -{ - Windows::Networking::Vpn::VpnAppIdType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template void impl_IVpnAppId::Type(Windows::Networking::Vpn::VpnAppIdType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Type(value)); -} - -template hstring impl_IVpnAppId::Value() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template void impl_IVpnAppId::Value(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(get(value))); -} - -template Windows::Networking::Vpn::VpnTrafficFilter impl_IVpnTrafficFilterFactory::Create(const Windows::Networking::Vpn::VpnAppId & appId) const -{ - Windows::Networking::Vpn::VpnTrafficFilter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(appId), put(result))); - return result; -} - -template Windows::Networking::Vpn::VpnAppId impl_IVpnTrafficFilter::AppId() const -{ - Windows::Networking::Vpn::VpnAppId value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppId(put(value))); - return value; -} - -template void impl_IVpnTrafficFilter::AppId(const Windows::Networking::Vpn::VpnAppId & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppId(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IVpnTrafficFilter::AppClaims() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_AppClaims(put(value))); - return value; -} - -template Windows::Networking::Vpn::VpnIPProtocol impl_IVpnTrafficFilter::Protocol() const -{ - Windows::Networking::Vpn::VpnIPProtocol value {}; - check_hresult(static_cast(static_cast(*this))->get_Protocol(&value)); - return value; -} - -template void impl_IVpnTrafficFilter::Protocol(Windows::Networking::Vpn::VpnIPProtocol value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Protocol(value)); -} - -template Windows::Foundation::Collections::IVector impl_IVpnTrafficFilter::LocalPortRanges() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_LocalPortRanges(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnTrafficFilter::RemotePortRanges() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_RemotePortRanges(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnTrafficFilter::LocalAddressRanges() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_LocalAddressRanges(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnTrafficFilter::RemoteAddressRanges() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_RemoteAddressRanges(put(value))); - return value; -} - -template Windows::Networking::Vpn::VpnRoutingPolicyType impl_IVpnTrafficFilter::RoutingPolicyType() const -{ - Windows::Networking::Vpn::VpnRoutingPolicyType value {}; - check_hresult(static_cast(static_cast(*this))->get_RoutingPolicyType(&value)); - return value; -} - -template void impl_IVpnTrafficFilter::RoutingPolicyType(Windows::Networking::Vpn::VpnRoutingPolicyType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RoutingPolicyType(value)); -} - -template Windows::Foundation::Collections::IVector impl_IVpnTrafficFilterAssignment::TrafficFilterList() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_TrafficFilterList(put(value))); - return value; -} - -template bool impl_IVpnTrafficFilterAssignment::AllowOutbound() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowOutbound(&value)); - return value; -} - -template void impl_IVpnTrafficFilterAssignment::AllowOutbound(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowOutbound(value)); -} - -template bool impl_IVpnTrafficFilterAssignment::AllowInbound() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowInbound(&value)); - return value; -} - -template void impl_IVpnTrafficFilterAssignment::AllowInbound(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowInbound(value)); -} - -template hstring impl_IVpnProfile::ProfileName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProfileName(put(value))); - return value; -} - -template void impl_IVpnProfile::ProfileName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProfileName(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IVpnProfile::AppTriggers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_AppTriggers(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnProfile::Routes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Routes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnProfile::DomainNameInfoList() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DomainNameInfoList(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnProfile::TrafficFilters() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_TrafficFilters(put(value))); - return value; -} - -template bool impl_IVpnProfile::RememberCredentials() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RememberCredentials(&value)); - return value; -} - -template void impl_IVpnProfile::RememberCredentials(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RememberCredentials(value)); -} - -template bool impl_IVpnProfile::AlwaysOn() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AlwaysOn(&value)); - return value; -} - -template void impl_IVpnProfile::AlwaysOn(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AlwaysOn(value)); -} - -template Windows::Foundation::Collections::IVector impl_IVpnPlugInProfile::ServerUris() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ServerUris(put(value))); - return value; -} - -template hstring impl_IVpnPlugInProfile::CustomConfiguration() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CustomConfiguration(put(value))); - return value; -} - -template void impl_IVpnPlugInProfile::CustomConfiguration(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CustomConfiguration(get(value))); -} - -template hstring impl_IVpnPlugInProfile::VpnPluginPackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VpnPluginPackageFamilyName(put(value))); - return value; -} - -template void impl_IVpnPlugInProfile::VpnPluginPackageFamilyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VpnPluginPackageFamilyName(get(value))); -} - -template bool impl_IVpnPlugInProfile2::RequireVpnClientAppUI() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RequireVpnClientAppUI(&value)); - return value; -} - -template void impl_IVpnPlugInProfile2::RequireVpnClientAppUI(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RequireVpnClientAppUI(value)); -} - -template Windows::Networking::Vpn::VpnManagementConnectionStatus impl_IVpnPlugInProfile2::ConnectionStatus() const -{ - Windows::Networking::Vpn::VpnManagementConnectionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ConnectionStatus(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVpnNativeProfile::Servers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Servers(put(value))); - return value; -} - -template Windows::Networking::Vpn::VpnRoutingPolicyType impl_IVpnNativeProfile::RoutingPolicyType() const -{ - Windows::Networking::Vpn::VpnRoutingPolicyType value {}; - check_hresult(static_cast(static_cast(*this))->get_RoutingPolicyType(&value)); - return value; -} - -template void impl_IVpnNativeProfile::RoutingPolicyType(Windows::Networking::Vpn::VpnRoutingPolicyType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RoutingPolicyType(value)); -} - -template Windows::Networking::Vpn::VpnNativeProtocolType impl_IVpnNativeProfile::NativeProtocolType() const -{ - Windows::Networking::Vpn::VpnNativeProtocolType value {}; - check_hresult(static_cast(static_cast(*this))->get_NativeProtocolType(&value)); - return value; -} - -template void impl_IVpnNativeProfile::NativeProtocolType(Windows::Networking::Vpn::VpnNativeProtocolType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NativeProtocolType(value)); -} - -template Windows::Networking::Vpn::VpnAuthenticationMethod impl_IVpnNativeProfile::UserAuthenticationMethod() const -{ - Windows::Networking::Vpn::VpnAuthenticationMethod value {}; - check_hresult(static_cast(static_cast(*this))->get_UserAuthenticationMethod(&value)); - return value; -} - -template void impl_IVpnNativeProfile::UserAuthenticationMethod(Windows::Networking::Vpn::VpnAuthenticationMethod value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UserAuthenticationMethod(value)); -} - -template Windows::Networking::Vpn::VpnAuthenticationMethod impl_IVpnNativeProfile::TunnelAuthenticationMethod() const -{ - Windows::Networking::Vpn::VpnAuthenticationMethod value {}; - check_hresult(static_cast(static_cast(*this))->get_TunnelAuthenticationMethod(&value)); - return value; -} - -template void impl_IVpnNativeProfile::TunnelAuthenticationMethod(Windows::Networking::Vpn::VpnAuthenticationMethod value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TunnelAuthenticationMethod(value)); -} - -template hstring impl_IVpnNativeProfile::EapConfiguration() const -{ - hstring Value; - check_hresult(static_cast(static_cast(*this))->get_EapConfiguration(put(Value))); - return Value; -} - -template void impl_IVpnNativeProfile::EapConfiguration(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EapConfiguration(get(value))); -} - -template bool impl_IVpnNativeProfile2::RequireVpnClientAppUI() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RequireVpnClientAppUI(&value)); - return value; -} - -template void impl_IVpnNativeProfile2::RequireVpnClientAppUI(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RequireVpnClientAppUI(value)); -} - -template Windows::Networking::Vpn::VpnManagementConnectionStatus impl_IVpnNativeProfile2::ConnectionStatus() const -{ - Windows::Networking::Vpn::VpnManagementConnectionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ConnectionStatus(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IVpnManagementAgent::AddProfileFromXmlAsync(hstring_ref xml) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_AddProfileFromXmlAsync(get(xml), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IVpnManagementAgent::AddProfileFromObjectAsync(const Windows::Networking::Vpn::IVpnProfile & profile) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_AddProfileFromObjectAsync(get(profile), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IVpnManagementAgent::UpdateProfileFromXmlAsync(hstring_ref xml) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateProfileFromXmlAsync(get(xml), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IVpnManagementAgent::UpdateProfileFromObjectAsync(const Windows::Networking::Vpn::IVpnProfile & profile) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateProfileFromObjectAsync(get(profile), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IVpnManagementAgent::GetProfilesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetProfilesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IVpnManagementAgent::DeleteProfileAsync(const Windows::Networking::Vpn::IVpnProfile & profile) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_DeleteProfileAsync(get(profile), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IVpnManagementAgent::ConnectProfileAsync(const Windows::Networking::Vpn::IVpnProfile & profile) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ConnectProfileAsync(get(profile), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IVpnManagementAgent::ConnectProfileWithPasswordCredentialAsync(const Windows::Networking::Vpn::IVpnProfile & profile, const Windows::Security::Credentials::PasswordCredential & passwordCredential) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ConnectProfileWithPasswordCredentialAsync(get(profile), get(passwordCredential), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IVpnManagementAgent::DisconnectProfileAsync(const Windows::Networking::Vpn::IVpnProfile & profile) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_DisconnectProfileAsync(get(profile), put(operation))); - return operation; -} - -inline VpnAppId::VpnAppId(Windows::Networking::Vpn::VpnAppIdType type, hstring_ref value) : - VpnAppId(get_activation_factory().Create(type, value)) -{} - -inline void VpnChannel::ProcessEventAsync(const Windows::IInspectable & thirdPartyPlugIn, const Windows::IInspectable & event) -{ - get_activation_factory().ProcessEventAsync(thirdPartyPlugIn, event); -} - -inline VpnCustomCheckBox::VpnCustomCheckBox() : - VpnCustomCheckBox(activate_instance()) -{} - -inline VpnCustomComboBox::VpnCustomComboBox() : - VpnCustomComboBox(activate_instance()) -{} - -inline VpnCustomEditBox::VpnCustomEditBox() : - VpnCustomEditBox(activate_instance()) -{} - -inline VpnCustomErrorBox::VpnCustomErrorBox() : - VpnCustomErrorBox(activate_instance()) -{} - -inline VpnCustomPromptBooleanInput::VpnCustomPromptBooleanInput() : - VpnCustomPromptBooleanInput(activate_instance()) -{} - -inline VpnCustomPromptOptionSelector::VpnCustomPromptOptionSelector() : - VpnCustomPromptOptionSelector(activate_instance()) -{} - -inline VpnCustomPromptText::VpnCustomPromptText() : - VpnCustomPromptText(activate_instance()) -{} - -inline VpnCustomPromptTextInput::VpnCustomPromptTextInput() : - VpnCustomPromptTextInput(activate_instance()) -{} - -inline VpnCustomTextBox::VpnCustomTextBox() : - VpnCustomTextBox(activate_instance()) -{} - -inline VpnDomainNameAssignment::VpnDomainNameAssignment() : - VpnDomainNameAssignment(activate_instance()) -{} - -inline VpnDomainNameInfo::VpnDomainNameInfo(hstring_ref name, Windows::Networking::Vpn::VpnDomainNameType nameType, const Windows::Foundation::Collections::IIterable & dnsServerList, const Windows::Foundation::Collections::IIterable & proxyServerList) : - VpnDomainNameInfo(get_activation_factory().CreateVpnDomainNameInfo(name, nameType, dnsServerList, proxyServerList)) -{} - -inline VpnInterfaceId::VpnInterfaceId(array_ref address) : - VpnInterfaceId(get_activation_factory().CreateVpnInterfaceId(address)) -{} - -inline VpnManagementAgent::VpnManagementAgent() : - VpnManagementAgent(activate_instance()) -{} - -inline VpnNamespaceAssignment::VpnNamespaceAssignment() : - VpnNamespaceAssignment(activate_instance()) -{} - -inline VpnNamespaceInfo::VpnNamespaceInfo(hstring_ref name, const Windows::Foundation::Collections::IVector & dnsServerList, const Windows::Foundation::Collections::IVector & proxyServerList) : - VpnNamespaceInfo(get_activation_factory().CreateVpnNamespaceInfo(name, dnsServerList, proxyServerList)) -{} - -inline VpnNativeProfile::VpnNativeProfile() : - VpnNativeProfile(activate_instance()) -{} - -inline VpnPacketBuffer::VpnPacketBuffer(const Windows::Networking::Vpn::VpnPacketBuffer & parentBuffer, uint32_t offset, uint32_t length) : - VpnPacketBuffer(get_activation_factory().CreateVpnPacketBuffer(parentBuffer, offset, length)) -{} - -inline VpnPlugInProfile::VpnPlugInProfile() : - VpnPlugInProfile(activate_instance()) -{} - -inline VpnRoute::VpnRoute(const Windows::Networking::HostName & address, uint8_t prefixSize) : - VpnRoute(get_activation_factory().CreateVpnRoute(address, prefixSize)) -{} - -inline VpnRouteAssignment::VpnRouteAssignment() : - VpnRouteAssignment(activate_instance()) -{} - -inline VpnTrafficFilter::VpnTrafficFilter(const Windows::Networking::Vpn::VpnAppId & appId) : - VpnTrafficFilter(get_activation_factory().Create(appId)) -{} - -inline VpnTrafficFilterAssignment::VpnTrafficFilterAssignment() : - VpnTrafficFilterAssignment(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Networking.h b/10.0.14393.0/winrt/Windows.Networking.h deleted file mode 100644 index c3ad54eaa..000000000 --- a/10.0.14393.0/winrt/Windows.Networking.h +++ /dev/null @@ -1,395 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Networking.Connectivity.3.h" -#include "internal/Windows.Networking.3.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalHostName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalHostName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LocalHostName(abi_arg_in value) noexcept override - { - try - { - this->shim().LocalHostName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalServiceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalServiceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LocalServiceName(abi_arg_in value) noexcept override - { - try - { - this->shim().LocalServiceName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteHostName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteHostName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteHostName(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteHostName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteServiceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteServiceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteServiceName(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteServiceName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateEndpointPair(abi_arg_in localHostName, abi_arg_in localServiceName, abi_arg_in remoteHostName, abi_arg_in remoteServiceName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateEndpointPair(*reinterpret_cast(&localHostName), *reinterpret_cast(&localServiceName), *reinterpret_cast(&remoteHostName), *reinterpret_cast(&remoteServiceName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IPInformation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IPInformation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RawName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanonicalName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanonicalName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::Networking::HostNameType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEqual(abi_arg_in hostName, bool * isEqual) noexcept override - { - try - { - *isEqual = detach(this->shim().IsEqual(*reinterpret_cast(&hostName))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateHostName(abi_arg_in hostName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateHostName(*reinterpret_cast(&hostName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Compare(abi_arg_in value1, abi_arg_in value2, int32_t * result) noexcept override - { - try - { - *result = detach(this->shim().Compare(*reinterpret_cast(&value1), *reinterpret_cast(&value2))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Networking { - -template int32_t impl_IHostNameStatics::Compare(hstring_ref value1, hstring_ref value2) const -{ - int32_t result {}; - check_hresult(static_cast(static_cast(*this))->abi_Compare(get(value1), get(value2), &result)); - return result; -} - -template Windows::Networking::Connectivity::IPInformation impl_IHostName::IPInformation() const -{ - Windows::Networking::Connectivity::IPInformation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IPInformation(put(value))); - return value; -} - -template hstring impl_IHostName::RawName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RawName(put(value))); - return value; -} - -template hstring impl_IHostName::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IHostName::CanonicalName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CanonicalName(put(value))); - return value; -} - -template Windows::Networking::HostNameType impl_IHostName::Type() const -{ - Windows::Networking::HostNameType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template bool impl_IHostName::IsEqual(const Windows::Networking::HostName & hostName) const -{ - bool isEqual {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEqual(get(hostName), &isEqual)); - return isEqual; -} - -template Windows::Networking::HostName impl_IHostNameFactory::CreateHostName(hstring_ref hostName) const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateHostName(get(hostName), put(value))); - return value; -} - -template Windows::Networking::HostName impl_IEndpointPair::LocalHostName() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalHostName(put(value))); - return value; -} - -template void impl_IEndpointPair::LocalHostName(const Windows::Networking::HostName & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LocalHostName(get(value))); -} - -template hstring impl_IEndpointPair::LocalServiceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LocalServiceName(put(value))); - return value; -} - -template void impl_IEndpointPair::LocalServiceName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LocalServiceName(get(value))); -} - -template Windows::Networking::HostName impl_IEndpointPair::RemoteHostName() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoteHostName(put(value))); - return value; -} - -template void impl_IEndpointPair::RemoteHostName(const Windows::Networking::HostName & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteHostName(get(value))); -} - -template hstring impl_IEndpointPair::RemoteServiceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteServiceName(put(value))); - return value; -} - -template void impl_IEndpointPair::RemoteServiceName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteServiceName(get(value))); -} - -template Windows::Networking::EndpointPair impl_IEndpointPairFactory::CreateEndpointPair(const Windows::Networking::HostName & localHostName, hstring_ref localServiceName, const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName) const -{ - Windows::Networking::EndpointPair value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateEndpointPair(get(localHostName), get(localServiceName), get(remoteHostName), get(remoteServiceName), put(value))); - return value; -} - -inline EndpointPair::EndpointPair(const Windows::Networking::HostName & localHostName, hstring_ref localServiceName, const Windows::Networking::HostName & remoteHostName, hstring_ref remoteServiceName) : - EndpointPair(get_activation_factory().CreateEndpointPair(localHostName, localServiceName, remoteHostName, remoteServiceName)) -{} - -inline HostName::HostName(hstring_ref hostName) : - HostName(get_activation_factory().CreateHostName(hostName)) -{} - -inline int32_t HostName::Compare(hstring_ref value1, hstring_ref value2) -{ - return get_activation_factory().Compare(value1, value2); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Perception.Automation.Core.h b/10.0.14393.0/winrt/Windows.Perception.Automation.Core.h deleted file mode 100644 index 287504d56..000000000 --- a/10.0.14393.0/winrt/Windows.Perception.Automation.Core.h +++ /dev/null @@ -1,47 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Perception.Automation.Core.3.h" -#include "Windows.Perception.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetActivationFactoryProvider(abi_arg_in provider) noexcept override - { - try - { - this->shim().SetActivationFactoryProvider(*reinterpret_cast(&provider)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Perception::Automation::Core { - -template void impl_ICorePerceptionAutomationStatics::SetActivationFactoryProvider(const Windows::Foundation::IGetActivationFactory & provider) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetActivationFactoryProvider(get(provider))); -} - -inline void CorePerceptionAutomation::SetActivationFactoryProvider(const Windows::Foundation::IGetActivationFactory & provider) -{ - get_activation_factory().SetActivationFactoryProvider(provider); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Perception.People.h b/10.0.14393.0/winrt/Windows.Perception.People.h deleted file mode 100644 index b7b0ff14b..000000000 --- a/10.0.14393.0/winrt/Windows.Perception.People.h +++ /dev/null @@ -1,83 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Perception.People.3.h" -#include "Windows.Perception.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForwardDirection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForwardDirection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpDirection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UpDirection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Perception::People { - -template Windows::Foundation::Numerics::float3 impl_IHeadPose::Position() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_IHeadPose::ForwardDirection() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_ForwardDirection(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_IHeadPose::UpDirection() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_UpDirection(put(value))); - return value; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Perception.Spatial.Surfaces.h b/10.0.14393.0/winrt/Windows.Perception.Spatial.Surfaces.h deleted file mode 100644 index 83c0e69c7..000000000 --- a/10.0.14393.0/winrt/Windows.Perception.Spatial.Surfaces.h +++ /dev/null @@ -1,725 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Graphics.DirectX.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Perception.Spatial.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Perception.Spatial.Surfaces.3.h" -#include "Windows.Perception.Spatial.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpdateTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UpdateTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetBounds(abi_arg_in coordinateSystem, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TryGetBounds(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryComputeLatestMeshAsync(double maxTrianglesPerCubicMeter, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TryComputeLatestMeshAsync(maxTrianglesPerCubicMeter)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryComputeLatestMeshWithOptionsAsync(double maxTrianglesPerCubicMeter, abi_arg_in options, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TryComputeLatestMeshAsync(maxTrianglesPerCubicMeter, *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SurfaceInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SurfaceInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CoordinateSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CoordinateSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TriangleIndices(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TriangleIndices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VertexPositions(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VertexPositions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VertexPositionScale(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VertexPositionScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VertexNormals(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VertexNormals()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Format(Windows::Graphics::DirectX::DirectXPixelFormat * value) noexcept override - { - try - { - *value = detach(this->shim().Format()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stride(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Stride()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ElementCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ElementCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VertexPositionFormat(Windows::Graphics::DirectX::DirectXPixelFormat * value) noexcept override - { - try - { - *value = detach(this->shim().VertexPositionFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VertexPositionFormat(Windows::Graphics::DirectX::DirectXPixelFormat value) noexcept override - { - try - { - this->shim().VertexPositionFormat(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TriangleIndexFormat(Windows::Graphics::DirectX::DirectXPixelFormat * value) noexcept override - { - try - { - *value = detach(this->shim().TriangleIndexFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TriangleIndexFormat(Windows::Graphics::DirectX::DirectXPixelFormat value) noexcept override - { - try - { - this->shim().TriangleIndexFormat(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VertexNormalFormat(Windows::Graphics::DirectX::DirectXPixelFormat * value) noexcept override - { - try - { - *value = detach(this->shim().VertexNormalFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VertexNormalFormat(Windows::Graphics::DirectX::DirectXPixelFormat value) noexcept override - { - try - { - this->shim().VertexNormalFormat(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncludeVertexNormals(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeVertexNormals()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncludeVertexNormals(bool value) noexcept override - { - try - { - this->shim().IncludeVertexNormals(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SupportedVertexPositionFormats(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedVertexPositionFormats()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedTriangleIndexFormats(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedTriangleIndexFormats()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedVertexNormalFormats(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedVertexNormalFormats()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetObservedSurfaces(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetObservedSurfaces()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetBoundingVolume(abi_arg_in bounds) noexcept override - { - try - { - this->shim().SetBoundingVolume(*reinterpret_cast(&bounds)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetBoundingVolumes(abi_arg_in> bounds) noexcept override - { - try - { - this->shim().SetBoundingVolumes(*reinterpret_cast *>(&bounds)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ObservedSurfacesChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ObservedSurfacesChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ObservedSurfacesChanged(event_token token) noexcept override - { - try - { - this->shim().ObservedSurfacesChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Perception::Spatial::Surfaces { - -template Windows::Graphics::DirectX::DirectXPixelFormat impl_ISpatialSurfaceMeshBuffer::Format() const -{ - Windows::Graphics::DirectX::DirectXPixelFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_Format(&value)); - return value; -} - -template uint32_t impl_ISpatialSurfaceMeshBuffer::Stride() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Stride(&value)); - return value; -} - -template uint32_t impl_ISpatialSurfaceMeshBuffer::ElementCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ElementCount(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISpatialSurfaceMeshBuffer::Data() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template Windows::Perception::Spatial::Surfaces::SpatialSurfaceInfo impl_ISpatialSurfaceMesh::SurfaceInfo() const -{ - Windows::Perception::Spatial::Surfaces::SpatialSurfaceInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SurfaceInfo(put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialCoordinateSystem impl_ISpatialSurfaceMesh::CoordinateSystem() const -{ - Windows::Perception::Spatial::SpatialCoordinateSystem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CoordinateSystem(put(value))); - return value; -} - -template Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer impl_ISpatialSurfaceMesh::TriangleIndices() const -{ - Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TriangleIndices(put(value))); - return value; -} - -template Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer impl_ISpatialSurfaceMesh::VertexPositions() const -{ - Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VertexPositions(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_ISpatialSurfaceMesh::VertexPositionScale() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_VertexPositionScale(put(value))); - return value; -} - -template Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer impl_ISpatialSurfaceMesh::VertexNormals() const -{ - Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VertexNormals(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISpatialSurfaceMeshOptionsStatics::SupportedVertexPositionFormats() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedVertexPositionFormats(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISpatialSurfaceMeshOptionsStatics::SupportedTriangleIndexFormats() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedTriangleIndexFormats(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISpatialSurfaceMeshOptionsStatics::SupportedVertexNormalFormats() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedVertexNormalFormats(put(value))); - return value; -} - -template Windows::Graphics::DirectX::DirectXPixelFormat impl_ISpatialSurfaceMeshOptions::VertexPositionFormat() const -{ - Windows::Graphics::DirectX::DirectXPixelFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_VertexPositionFormat(&value)); - return value; -} - -template void impl_ISpatialSurfaceMeshOptions::VertexPositionFormat(Windows::Graphics::DirectX::DirectXPixelFormat value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VertexPositionFormat(value)); -} - -template Windows::Graphics::DirectX::DirectXPixelFormat impl_ISpatialSurfaceMeshOptions::TriangleIndexFormat() const -{ - Windows::Graphics::DirectX::DirectXPixelFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_TriangleIndexFormat(&value)); - return value; -} - -template void impl_ISpatialSurfaceMeshOptions::TriangleIndexFormat(Windows::Graphics::DirectX::DirectXPixelFormat value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TriangleIndexFormat(value)); -} - -template Windows::Graphics::DirectX::DirectXPixelFormat impl_ISpatialSurfaceMeshOptions::VertexNormalFormat() const -{ - Windows::Graphics::DirectX::DirectXPixelFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_VertexNormalFormat(&value)); - return value; -} - -template void impl_ISpatialSurfaceMeshOptions::VertexNormalFormat(Windows::Graphics::DirectX::DirectXPixelFormat value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VertexNormalFormat(value)); -} - -template bool impl_ISpatialSurfaceMeshOptions::IncludeVertexNormals() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeVertexNormals(&value)); - return value; -} - -template void impl_ISpatialSurfaceMeshOptions::IncludeVertexNormals(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncludeVertexNormals(value)); -} - -template GUID impl_ISpatialSurfaceInfo::Id() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_ISpatialSurfaceInfo::UpdateTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_UpdateTime(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ISpatialSurfaceInfo::TryGetBounds(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->abi_TryGetBounds(get(coordinateSystem), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISpatialSurfaceInfo::TryComputeLatestMeshAsync(double maxTrianglesPerCubicMeter) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_TryComputeLatestMeshAsync(maxTrianglesPerCubicMeter, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISpatialSurfaceInfo::TryComputeLatestMeshAsync(double maxTrianglesPerCubicMeter, const Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions & options) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_TryComputeLatestMeshWithOptionsAsync(maxTrianglesPerCubicMeter, get(options), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISpatialSurfaceObserverStatics::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(result))); - return result; -} - -template Windows::Foundation::Collections::IMapView impl_ISpatialSurfaceObserver::GetObservedSurfaces() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->abi_GetObservedSurfaces(put(value))); - return value; -} - -template void impl_ISpatialSurfaceObserver::SetBoundingVolume(const Windows::Perception::Spatial::SpatialBoundingVolume & bounds) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBoundingVolume(get(bounds))); -} - -template void impl_ISpatialSurfaceObserver::SetBoundingVolumes(const Windows::Foundation::Collections::IIterable & bounds) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBoundingVolumes(get(bounds))); -} - -template event_token impl_ISpatialSurfaceObserver::ObservedSurfacesChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ObservedSurfacesChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialSurfaceObserver::ObservedSurfacesChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Perception::Spatial::Surfaces::ISpatialSurfaceObserver::remove_ObservedSurfacesChanged, ObservedSurfacesChanged(handler)); -} - -template void impl_ISpatialSurfaceObserver::ObservedSurfacesChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ObservedSurfacesChanged(token)); -} - -inline SpatialSurfaceMeshOptions::SpatialSurfaceMeshOptions() : - SpatialSurfaceMeshOptions(activate_instance()) -{} - -inline Windows::Foundation::Collections::IVectorView SpatialSurfaceMeshOptions::SupportedVertexPositionFormats() -{ - return get_activation_factory().SupportedVertexPositionFormats(); -} - -inline Windows::Foundation::Collections::IVectorView SpatialSurfaceMeshOptions::SupportedTriangleIndexFormats() -{ - return get_activation_factory().SupportedTriangleIndexFormats(); -} - -inline Windows::Foundation::Collections::IVectorView SpatialSurfaceMeshOptions::SupportedVertexNormalFormats() -{ - return get_activation_factory().SupportedVertexNormalFormats(); -} - -inline SpatialSurfaceObserver::SpatialSurfaceObserver() : - SpatialSurfaceObserver(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation SpatialSurfaceObserver::RequestAccessAsync() -{ - return get_activation_factory().RequestAccessAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Perception.Spatial.h b/10.0.14393.0/winrt/Windows.Perception.Spatial.h deleted file mode 100644 index 1fd4c84f9..000000000 --- a/10.0.14393.0/winrt/Windows.Perception.Spatial.h +++ /dev/null @@ -1,1232 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Perception.3.h" -#include "internal/Windows.Perception.Spatial.3.h" -#include "Windows.Perception.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CoordinateSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CoordinateSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawCoordinateSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RawCoordinateSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RawCoordinateSystemAdjusted(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().RawCoordinateSystemAdjusted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RawCoordinateSystemAdjusted(event_token cookie) noexcept override - { - try - { - this->shim().RawCoordinateSystemAdjusted(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemovedByUser(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RemovedByUser()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestStoreAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequestStoreAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OldRawCoordinateSystemToNewRawCoordinateSystemTransform(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldRawCoordinateSystemToNewRawCoordinateSystemTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryCreateRelativeTo(abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryCreateRelativeTo(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryCreateWithPositionRelativeTo(abi_arg_in coordinateSystem, abi_arg_in position, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryCreateRelativeTo(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&position))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryCreateWithPositionAndOrientationRelativeTo(abi_arg_in coordinateSystem, abi_arg_in position, abi_arg_in orientation, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryCreateRelativeTo(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&position), *reinterpret_cast(&orientation))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAllSavedAnchors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetAllSavedAnchors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySave(abi_arg_in id, abi_arg_in anchor, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TrySave(*reinterpret_cast(&id), *reinterpret_cast(&anchor))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Remove(abi_arg_in id) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&id)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryImportAnchorsAsync(abi_arg_in stream, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().TryImportAnchorsAsync(*reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryExportAnchorsAsync(abi_arg_in>> anchors, abi_arg_in stream, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TryExportAnchorsAsync(*reinterpret_cast> *>(&anchors), *reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromBox(abi_arg_in coordinateSystem, abi_arg_in box, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FromBox(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&box))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromOrientedBox(abi_arg_in coordinateSystem, abi_arg_in box, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FromOrientedBox(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&box))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromSphere(abi_arg_in coordinateSystem, abi_arg_in sphere, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FromSphere(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&sphere))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FromFrustum(abi_arg_in coordinateSystem, abi_arg_in frustum, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FromFrustum(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(&frustum))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryGetTransformTo(abi_arg_in target, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TryGetTransformTo(*reinterpret_cast(&target))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AbsoluteLinearVelocity(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AbsoluteLinearVelocity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AbsoluteLinearAcceleration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AbsoluteLinearAcceleration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AbsoluteAngularVelocity(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AbsoluteAngularVelocity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AbsoluteAngularAcceleration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AbsoluteAngularAcceleration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Locatability(Windows::Perception::Spatial::SpatialLocatability * value) noexcept override - { - try - { - *value = detach(this->shim().Locatability()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LocatabilityChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().LocatabilityChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LocatabilityChanged(event_token cookie) noexcept override - { - try - { - this->shim().LocatabilityChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PositionalTrackingDeactivating(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PositionalTrackingDeactivating(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PositionalTrackingDeactivating(event_token cookie) noexcept override - { - try - { - this->shim().PositionalTrackingDeactivating(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryLocateAtTimestamp(abi_arg_in timestamp, abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryLocateAtTimestamp(*reinterpret_cast(×tamp), *reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAttachedFrameOfReferenceAtCurrentHeading(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateAttachedFrameOfReferenceAtCurrentHeading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAttachedFrameOfReferenceAtCurrentHeadingWithPosition(abi_arg_in relativePosition, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateAttachedFrameOfReferenceAtCurrentHeading(*reinterpret_cast(&relativePosition))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientation(abi_arg_in relativePosition, abi_arg_in relativeOrientation, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateAttachedFrameOfReferenceAtCurrentHeading(*reinterpret_cast(&relativePosition), *reinterpret_cast(&relativeOrientation))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientationAndRelativeHeading(abi_arg_in relativePosition, abi_arg_in relativeOrientation, double relativeHeadingInRadians, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateAttachedFrameOfReferenceAtCurrentHeading(*reinterpret_cast(&relativePosition), *reinterpret_cast(&relativeOrientation), relativeHeadingInRadians)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStationaryFrameOfReferenceAtCurrentLocation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateStationaryFrameOfReferenceAtCurrentLocation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStationaryFrameOfReferenceAtCurrentLocationWithPosition(abi_arg_in relativePosition, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateStationaryFrameOfReferenceAtCurrentLocation(*reinterpret_cast(&relativePosition))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientation(abi_arg_in relativePosition, abi_arg_in relativeOrientation, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateStationaryFrameOfReferenceAtCurrentLocation(*reinterpret_cast(&relativePosition), *reinterpret_cast(&relativeOrientation))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientationAndRelativeHeading(abi_arg_in relativePosition, abi_arg_in relativeOrientation, double relativeHeadingInRadians, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateStationaryFrameOfReferenceAtCurrentLocation(*reinterpret_cast(&relativePosition), *reinterpret_cast(&relativeOrientation), relativeHeadingInRadians)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RelativePosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RelativePosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RelativePosition(abi_arg_in value) noexcept override - { - try - { - this->shim().RelativePosition(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RelativeOrientation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RelativeOrientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RelativeOrientation(abi_arg_in value) noexcept override - { - try - { - this->shim().RelativeOrientation(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AdjustHeading(double headingOffsetInRadians) noexcept override - { - try - { - this->shim().AdjustHeading(headingOffsetInRadians); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStationaryCoordinateSystemAtTimestamp(abi_arg_in timestamp, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetStationaryCoordinateSystemAtTimestamp(*reinterpret_cast(×tamp))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetRelativeHeadingAtTimestamp(abi_arg_in timestamp, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TryGetRelativeHeadingAtTimestamp(*reinterpret_cast(×tamp))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Canceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Canceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Canceled(bool value) noexcept override - { - try - { - this->shim().Canceled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CoordinateSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CoordinateSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Perception::Spatial { - -template Windows::Foundation::IReference impl_ISpatialCoordinateSystem::TryGetTransformTo(const Windows::Perception::Spatial::SpatialCoordinateSystem & target) const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->abi_TryGetTransformTo(get(target), put(value))); - return value; -} - -template Windows::Foundation::Numerics::float4x4 impl_ISpatialAnchorRawCoordinateSystemAdjustedEventArgs::OldRawCoordinateSystemToNewRawCoordinateSystemTransform() const -{ - Windows::Foundation::Numerics::float4x4 value {}; - check_hresult(static_cast(static_cast(*this))->get_OldRawCoordinateSystemToNewRawCoordinateSystemTransform(put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialCoordinateSystem impl_ISpatialAnchor::CoordinateSystem() const -{ - Windows::Perception::Spatial::SpatialCoordinateSystem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CoordinateSystem(put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialCoordinateSystem impl_ISpatialAnchor::RawCoordinateSystem() const -{ - Windows::Perception::Spatial::SpatialCoordinateSystem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RawCoordinateSystem(put(value))); - return value; -} - -template event_token impl_ISpatialAnchor::RawCoordinateSystemAdjusted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_RawCoordinateSystemAdjusted(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ISpatialAnchor::RawCoordinateSystemAdjusted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Perception::Spatial::ISpatialAnchor::remove_RawCoordinateSystemAdjusted, RawCoordinateSystemAdjusted(handler)); -} - -template void impl_ISpatialAnchor::RawCoordinateSystemAdjusted(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RawCoordinateSystemAdjusted(cookie)); -} - -template bool impl_ISpatialAnchor2::RemovedByUser() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RemovedByUser(&value)); - return value; -} - -template Windows::Perception::Spatial::SpatialAnchor impl_ISpatialAnchorStatics::TryCreateRelativeTo(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::Perception::Spatial::SpatialAnchor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryCreateRelativeTo(get(coordinateSystem), put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialAnchor impl_ISpatialAnchorStatics::TryCreateRelativeTo(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Foundation::Numerics::float3 & position) const -{ - Windows::Perception::Spatial::SpatialAnchor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryCreateWithPositionRelativeTo(get(coordinateSystem), get(position), put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialAnchor impl_ISpatialAnchorStatics::TryCreateRelativeTo(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Foundation::Numerics::float3 & position, const Windows::Foundation::Numerics::quaternion & orientation) const -{ - Windows::Perception::Spatial::SpatialAnchor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryCreateWithPositionAndOrientationRelativeTo(get(coordinateSystem), get(position), get(orientation), put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_ISpatialAnchorStore::GetAllSavedAnchors() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->abi_GetAllSavedAnchors(put(value))); - return value; -} - -template bool impl_ISpatialAnchorStore::TrySave(hstring_ref id, const Windows::Perception::Spatial::SpatialAnchor & anchor) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySave(get(id), get(anchor), &succeeded)); - return succeeded; -} - -template void impl_ISpatialAnchorStore::Remove(hstring_ref id) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Remove(get(id))); -} - -template void impl_ISpatialAnchorStore::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template Windows::Foundation::IAsyncOperation impl_ISpatialAnchorManagerStatics::RequestStoreAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_RequestStoreAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_ISpatialAnchorTransferManagerStatics::TryImportAnchorsAsync(const Windows::Storage::Streams::IInputStream & stream) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_TryImportAnchorsAsync(get(stream), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISpatialAnchorTransferManagerStatics::TryExportAnchorsAsync(const Windows::Foundation::Collections::IIterable> & anchors, const Windows::Storage::Streams::IOutputStream & stream) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_TryExportAnchorsAsync(get(anchors), get(stream), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISpatialAnchorTransferManagerStatics::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(result))); - return result; -} - -template bool impl_ISpatialLocatorPositionalTrackingDeactivatingEventArgs::Canceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Canceled(&value)); - return value; -} - -template void impl_ISpatialLocatorPositionalTrackingDeactivatingEventArgs::Canceled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Canceled(value)); -} - -template Windows::Foundation::Numerics::float3 impl_ISpatialLocatorAttachedFrameOfReference::RelativePosition() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_RelativePosition(put(value))); - return value; -} - -template void impl_ISpatialLocatorAttachedFrameOfReference::RelativePosition(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RelativePosition(get(value))); -} - -template Windows::Foundation::Numerics::quaternion impl_ISpatialLocatorAttachedFrameOfReference::RelativeOrientation() const -{ - Windows::Foundation::Numerics::quaternion value {}; - check_hresult(static_cast(static_cast(*this))->get_RelativeOrientation(put(value))); - return value; -} - -template void impl_ISpatialLocatorAttachedFrameOfReference::RelativeOrientation(const Windows::Foundation::Numerics::quaternion & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RelativeOrientation(get(value))); -} - -template void impl_ISpatialLocatorAttachedFrameOfReference::AdjustHeading(double headingOffsetInRadians) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AdjustHeading(headingOffsetInRadians)); -} - -template Windows::Perception::Spatial::SpatialCoordinateSystem impl_ISpatialLocatorAttachedFrameOfReference::GetStationaryCoordinateSystemAtTimestamp(const Windows::Perception::PerceptionTimestamp & timestamp) const -{ - Windows::Perception::Spatial::SpatialCoordinateSystem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetStationaryCoordinateSystemAtTimestamp(get(timestamp), put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ISpatialLocatorAttachedFrameOfReference::TryGetRelativeHeadingAtTimestamp(const Windows::Perception::PerceptionTimestamp & timestamp) const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->abi_TryGetRelativeHeadingAtTimestamp(get(timestamp), put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialCoordinateSystem impl_ISpatialStationaryFrameOfReference::CoordinateSystem() const -{ - Windows::Perception::Spatial::SpatialCoordinateSystem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CoordinateSystem(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_ISpatialLocation::Position() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Foundation::Numerics::quaternion impl_ISpatialLocation::Orientation() const -{ - Windows::Foundation::Numerics::quaternion value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_ISpatialLocation::AbsoluteLinearVelocity() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_AbsoluteLinearVelocity(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_ISpatialLocation::AbsoluteLinearAcceleration() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_AbsoluteLinearAcceleration(put(value))); - return value; -} - -template Windows::Foundation::Numerics::quaternion impl_ISpatialLocation::AbsoluteAngularVelocity() const -{ - Windows::Foundation::Numerics::quaternion value {}; - check_hresult(static_cast(static_cast(*this))->get_AbsoluteAngularVelocity(put(value))); - return value; -} - -template Windows::Foundation::Numerics::quaternion impl_ISpatialLocation::AbsoluteAngularAcceleration() const -{ - Windows::Foundation::Numerics::quaternion value {}; - check_hresult(static_cast(static_cast(*this))->get_AbsoluteAngularAcceleration(put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialLocatability impl_ISpatialLocator::Locatability() const -{ - Windows::Perception::Spatial::SpatialLocatability value {}; - check_hresult(static_cast(static_cast(*this))->get_Locatability(&value)); - return value; -} - -template event_token impl_ISpatialLocator::LocatabilityChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_LocatabilityChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ISpatialLocator::LocatabilityChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Perception::Spatial::ISpatialLocator::remove_LocatabilityChanged, LocatabilityChanged(handler)); -} - -template void impl_ISpatialLocator::LocatabilityChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LocatabilityChanged(cookie)); -} - -template event_token impl_ISpatialLocator::PositionalTrackingDeactivating(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PositionalTrackingDeactivating(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ISpatialLocator::PositionalTrackingDeactivating(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Perception::Spatial::ISpatialLocator::remove_PositionalTrackingDeactivating, PositionalTrackingDeactivating(handler)); -} - -template void impl_ISpatialLocator::PositionalTrackingDeactivating(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PositionalTrackingDeactivating(cookie)); -} - -template Windows::Perception::Spatial::SpatialLocation impl_ISpatialLocator::TryLocateAtTimestamp(const Windows::Perception::PerceptionTimestamp & timestamp, const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::Perception::Spatial::SpatialLocation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryLocateAtTimestamp(get(timestamp), get(coordinateSystem), put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialLocatorAttachedFrameOfReference impl_ISpatialLocator::CreateAttachedFrameOfReferenceAtCurrentHeading() const -{ - Windows::Perception::Spatial::SpatialLocatorAttachedFrameOfReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAttachedFrameOfReferenceAtCurrentHeading(put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialLocatorAttachedFrameOfReference impl_ISpatialLocator::CreateAttachedFrameOfReferenceAtCurrentHeading(const Windows::Foundation::Numerics::float3 & relativePosition) const -{ - Windows::Perception::Spatial::SpatialLocatorAttachedFrameOfReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAttachedFrameOfReferenceAtCurrentHeadingWithPosition(get(relativePosition), put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialLocatorAttachedFrameOfReference impl_ISpatialLocator::CreateAttachedFrameOfReferenceAtCurrentHeading(const Windows::Foundation::Numerics::float3 & relativePosition, const Windows::Foundation::Numerics::quaternion & relativeOrientation) const -{ - Windows::Perception::Spatial::SpatialLocatorAttachedFrameOfReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientation(get(relativePosition), get(relativeOrientation), put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialLocatorAttachedFrameOfReference impl_ISpatialLocator::CreateAttachedFrameOfReferenceAtCurrentHeading(const Windows::Foundation::Numerics::float3 & relativePosition, const Windows::Foundation::Numerics::quaternion & relativeOrientation, double relativeHeadingInRadians) const -{ - Windows::Perception::Spatial::SpatialLocatorAttachedFrameOfReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAttachedFrameOfReferenceAtCurrentHeadingWithPositionAndOrientationAndRelativeHeading(get(relativePosition), get(relativeOrientation), relativeHeadingInRadians, put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialStationaryFrameOfReference impl_ISpatialLocator::CreateStationaryFrameOfReferenceAtCurrentLocation() const -{ - Windows::Perception::Spatial::SpatialStationaryFrameOfReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateStationaryFrameOfReferenceAtCurrentLocation(put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialStationaryFrameOfReference impl_ISpatialLocator::CreateStationaryFrameOfReferenceAtCurrentLocation(const Windows::Foundation::Numerics::float3 & relativePosition) const -{ - Windows::Perception::Spatial::SpatialStationaryFrameOfReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateStationaryFrameOfReferenceAtCurrentLocationWithPosition(get(relativePosition), put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialStationaryFrameOfReference impl_ISpatialLocator::CreateStationaryFrameOfReferenceAtCurrentLocation(const Windows::Foundation::Numerics::float3 & relativePosition, const Windows::Foundation::Numerics::quaternion & relativeOrientation) const -{ - Windows::Perception::Spatial::SpatialStationaryFrameOfReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientation(get(relativePosition), get(relativeOrientation), put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialStationaryFrameOfReference impl_ISpatialLocator::CreateStationaryFrameOfReferenceAtCurrentLocation(const Windows::Foundation::Numerics::float3 & relativePosition, const Windows::Foundation::Numerics::quaternion & relativeOrientation, double relativeHeadingInRadians) const -{ - Windows::Perception::Spatial::SpatialStationaryFrameOfReference value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientationAndRelativeHeading(get(relativePosition), get(relativeOrientation), relativeHeadingInRadians, put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialLocator impl_ISpatialLocatorStatics::GetDefault() const -{ - Windows::Perception::Spatial::SpatialLocator value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialBoundingVolume impl_ISpatialBoundingVolumeStatics::FromBox(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Perception::Spatial::SpatialBoundingBox & box) const -{ - Windows::Perception::Spatial::SpatialBoundingVolume value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromBox(get(coordinateSystem), get(box), put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialBoundingVolume impl_ISpatialBoundingVolumeStatics::FromOrientedBox(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Perception::Spatial::SpatialBoundingOrientedBox & box) const -{ - Windows::Perception::Spatial::SpatialBoundingVolume value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromOrientedBox(get(coordinateSystem), get(box), put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialBoundingVolume impl_ISpatialBoundingVolumeStatics::FromSphere(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Perception::Spatial::SpatialBoundingSphere & sphere) const -{ - Windows::Perception::Spatial::SpatialBoundingVolume value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromSphere(get(coordinateSystem), get(sphere), put(value))); - return value; -} - -template Windows::Perception::Spatial::SpatialBoundingVolume impl_ISpatialBoundingVolumeStatics::FromFrustum(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Perception::Spatial::SpatialBoundingFrustum & frustum) const -{ - Windows::Perception::Spatial::SpatialBoundingVolume value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromFrustum(get(coordinateSystem), get(frustum), put(value))); - return value; -} - -inline Windows::Perception::Spatial::SpatialAnchor SpatialAnchor::TryCreateRelativeTo(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) -{ - return get_activation_factory().TryCreateRelativeTo(coordinateSystem); -} - -inline Windows::Perception::Spatial::SpatialAnchor SpatialAnchor::TryCreateRelativeTo(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Foundation::Numerics::float3 & position) -{ - return get_activation_factory().TryCreateRelativeTo(coordinateSystem, position); -} - -inline Windows::Perception::Spatial::SpatialAnchor SpatialAnchor::TryCreateRelativeTo(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Foundation::Numerics::float3 & position, const Windows::Foundation::Numerics::quaternion & orientation) -{ - return get_activation_factory().TryCreateRelativeTo(coordinateSystem, position, orientation); -} - -inline Windows::Foundation::IAsyncOperation SpatialAnchorManager::RequestStoreAsync() -{ - return get_activation_factory().RequestStoreAsync(); -} - -inline Windows::Foundation::IAsyncOperation> SpatialAnchorTransferManager::TryImportAnchorsAsync(const Windows::Storage::Streams::IInputStream & stream) -{ - return get_activation_factory().TryImportAnchorsAsync(stream); -} - -inline Windows::Foundation::IAsyncOperation SpatialAnchorTransferManager::TryExportAnchorsAsync(const Windows::Foundation::Collections::IIterable> & anchors, const Windows::Storage::Streams::IOutputStream & stream) -{ - return get_activation_factory().TryExportAnchorsAsync(anchors, stream); -} - -inline Windows::Foundation::IAsyncOperation SpatialAnchorTransferManager::RequestAccessAsync() -{ - return get_activation_factory().RequestAccessAsync(); -} - -inline Windows::Perception::Spatial::SpatialBoundingVolume SpatialBoundingVolume::FromBox(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Perception::Spatial::SpatialBoundingBox & box) -{ - return get_activation_factory().FromBox(coordinateSystem, box); -} - -inline Windows::Perception::Spatial::SpatialBoundingVolume SpatialBoundingVolume::FromOrientedBox(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Perception::Spatial::SpatialBoundingOrientedBox & box) -{ - return get_activation_factory().FromOrientedBox(coordinateSystem, box); -} - -inline Windows::Perception::Spatial::SpatialBoundingVolume SpatialBoundingVolume::FromSphere(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Perception::Spatial::SpatialBoundingSphere & sphere) -{ - return get_activation_factory().FromSphere(coordinateSystem, sphere); -} - -inline Windows::Perception::Spatial::SpatialBoundingVolume SpatialBoundingVolume::FromFrustum(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Perception::Spatial::SpatialBoundingFrustum & frustum) -{ - return get_activation_factory().FromFrustum(coordinateSystem, frustum); -} - -inline Windows::Perception::Spatial::SpatialLocator SpatialLocator::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Perception.h b/10.0.14393.0/winrt/Windows.Perception.h deleted file mode 100644 index 9e4d9d170..000000000 --- a/10.0.14393.0/winrt/Windows.Perception.h +++ /dev/null @@ -1,93 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Perception.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TargetTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PredictionAmount(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PredictionAmount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromHistoricalTargetTime(abi_arg_in targetTime, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FromHistoricalTargetTime(*reinterpret_cast(&targetTime))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Perception { - -template Windows::Foundation::DateTime impl_IPerceptionTimestamp::TargetTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_TargetTime(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IPerceptionTimestamp::PredictionAmount() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_PredictionAmount(put(value))); - return value; -} - -template Windows::Perception::PerceptionTimestamp impl_IPerceptionTimestampHelperStatics::FromHistoricalTargetTime(const Windows::Foundation::DateTime & targetTime) const -{ - Windows::Perception::PerceptionTimestamp value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromHistoricalTargetTime(get(targetTime), put(value))); - return value; -} - -inline Windows::Perception::PerceptionTimestamp PerceptionTimestampHelper::FromHistoricalTargetTime(const Windows::Foundation::DateTime & targetTime) -{ - return get_activation_factory().FromHistoricalTargetTime(targetTime); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.ApplicationModel.h b/10.0.14393.0/winrt/Windows.Phone.ApplicationModel.h deleted file mode 100644 index 5ab6ea9b1..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.ApplicationModel.h +++ /dev/null @@ -1,47 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Phone.ApplicationModel.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Modes(Windows::Phone::ApplicationModel::ApplicationProfileModes * value) noexcept override - { - try - { - *value = detach(this->shim().Modes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::ApplicationModel { - -template Windows::Phone::ApplicationModel::ApplicationProfileModes impl_IApplicationProfileStatics::Modes() const -{ - Windows::Phone::ApplicationModel::ApplicationProfileModes value {}; - check_hresult(static_cast(static_cast(*this))->get_Modes(&value)); - return value; -} - -inline Windows::Phone::ApplicationModel::ApplicationProfileModes ApplicationProfile::Modes() -{ - return get_activation_factory().Modes(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.Devices.Notification.h b/10.0.14393.0/winrt/Windows.Phone.Devices.Notification.h deleted file mode 100644 index 48e391f56..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.Devices.Notification.h +++ /dev/null @@ -1,89 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Phone.Devices.Notification.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Vibrate(abi_arg_in duration) noexcept override - { - try - { - this->shim().Vibrate(*reinterpret_cast(&duration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Cancel() noexcept override - { - try - { - this->shim().Cancel(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::Devices::Notification { - -template Windows::Phone::Devices::Notification::VibrationDevice impl_IVibrationDeviceStatics::GetDefault() const -{ - Windows::Phone::Devices::Notification::VibrationDevice result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template void impl_IVibrationDevice::Vibrate(const Windows::Foundation::TimeSpan & duration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Vibrate(get(duration))); -} - -template void impl_IVibrationDevice::Cancel() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Cancel()); -} - -inline Windows::Phone::Devices::Notification::VibrationDevice VibrationDevice::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.Devices.Power.h b/10.0.14393.0/winrt/Windows.Phone.Devices.Power.h deleted file mode 100644 index c8fde84c5..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.Devices.Power.h +++ /dev/null @@ -1,136 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Phone.Devices.Power.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemainingChargePercent(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RemainingChargePercent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemainingDischargeTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemainingDischargeTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RemainingChargePercentChanged(abi_arg_in> changeHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RemainingChargePercentChanged(*reinterpret_cast *>(&changeHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RemainingChargePercentChanged(event_token token) noexcept override - { - try - { - this->shim().RemainingChargePercentChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::Devices::Power { - -template Windows::Phone::Devices::Power::Battery impl_IBatteryStatics::GetDefault() const -{ - Windows::Phone::Devices::Power::Battery result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template int32_t impl_IBattery::RemainingChargePercent() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RemainingChargePercent(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IBattery::RemainingDischargeTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_RemainingDischargeTime(put(value))); - return value; -} - -template event_token impl_IBattery::RemainingChargePercentChanged(const Windows::Foundation::EventHandler & changeHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RemainingChargePercentChanged(get(changeHandler), &token)); - return token; -} - -template event_revoker impl_IBattery::RemainingChargePercentChanged(auto_revoke_t, const Windows::Foundation::EventHandler & changeHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Phone::Devices::Power::IBattery::remove_RemainingChargePercentChanged, RemainingChargePercentChanged(changeHandler)); -} - -template void impl_IBattery::RemainingChargePercentChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RemainingChargePercentChanged(token)); -} - -inline Windows::Phone::Devices::Power::Battery Battery::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.Management.Deployment.h b/10.0.14393.0/winrt/Windows.Phone.Management.Deployment.h deleted file mode 100644 index ad6ce3e90..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.Management.Deployment.h +++ /dev/null @@ -1,611 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Management.Deployment.3.h" -#include "internal/Windows.Phone.Management.Deployment.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WorkplaceId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().WorkplaceId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EnrollmentValidFrom(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EnrollmentValidFrom()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EnrollmentValidTo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EnrollmentValidTo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Phone::Management::Deployment::EnterpriseStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnrolledEnterprises(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().EnrolledEnterprises()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentEnterprise(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CurrentEnterprise()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ValidateEnterprisesAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ValidateEnterprisesAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestEnrollmentAsync(abi_arg_in enrollmentToken, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestEnrollmentAsync(*reinterpret_cast(&enrollmentToken))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestUnenrollmentAsync(abi_arg_in enterprise, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestUnenrollmentAsync(*reinterpret_cast(&enterprise))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnrolledEnterprise(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().EnrolledEnterprise()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Phone::Management::Deployment::EnterpriseEnrollmentStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddPackageAsync(abi_arg_in title, abi_arg_in sourceLocation, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().AddPackageAsync(*reinterpret_cast(&title), *reinterpret_cast(&sourceLocation))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddPackagePreloadedAsync(abi_arg_in title, abi_arg_in sourceLocation, abi_arg_in instanceId, abi_arg_in offerId, abi_arg_in license, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().AddPackageAsync(*reinterpret_cast(&title), *reinterpret_cast(&sourceLocation), *reinterpret_cast(&instanceId), *reinterpret_cast(&offerId), *reinterpret_cast(&license))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPendingPackageInstalls(abi_arg_out>> items) noexcept override - { - try - { - *items = detach(this->shim().GetPendingPackageInstalls()); - return S_OK; - } - catch (...) - { - *items = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesForCurrentPublisher(abi_arg_out> items) noexcept override - { - try - { - *items = detach(this->shim().FindPackagesForCurrentPublisher()); - return S_OK; - } - catch (...) - { - *items = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackages(abi_arg_out> items) noexcept override - { - try - { - *items = detach(this->shim().FindPackages()); - return S_OK; - } - catch (...) - { - *items = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RemovePackageAsync(abi_arg_in packageFullName, Windows::Management::Deployment::RemovalOptions removalOptions, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().RemovePackageAsync(*reinterpret_cast(&packageFullName), removalOptions)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterPackageAsync(abi_arg_in manifestUri, abi_arg_in> dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().RegisterPackageAsync(*reinterpret_cast(&manifestUri), *reinterpret_cast *>(&dependencyPackageUris), deploymentOptions)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindPackagesByNamePublisher(abi_arg_in packageName, abi_arg_in packagePublisher, abi_arg_out> items) noexcept override - { - try - { - *items = detach(this->shim().FindPackages(*reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); - return S_OK; - } - catch (...) - { - *items = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProductId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProductId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstallState(Windows::Management::Deployment::PackageInstallState * value) noexcept override - { - try - { - *value = detach(this->shim().InstallState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ErrorText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ErrorText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::Management::Deployment { - -template GUID impl_IEnterprise::Id() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template hstring impl_IEnterprise::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template int32_t impl_IEnterprise::WorkplaceId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_WorkplaceId(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IEnterprise::EnrollmentValidFrom() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_EnrollmentValidFrom(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IEnterprise::EnrollmentValidTo() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_EnrollmentValidTo(put(value))); - return value; -} - -template Windows::Phone::Management::Deployment::EnterpriseStatus impl_IEnterprise::Status() const -{ - Windows::Phone::Management::Deployment::EnterpriseStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IEnterpriseEnrollmentManager::EnrolledEnterprises() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->get_EnrolledEnterprises(put(result))); - return result; -} - -template Windows::Phone::Management::Deployment::Enterprise impl_IEnterpriseEnrollmentManager::CurrentEnterprise() const -{ - Windows::Phone::Management::Deployment::Enterprise result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentEnterprise(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IEnterpriseEnrollmentManager::ValidateEnterprisesAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ValidateEnterprisesAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEnterpriseEnrollmentManager::RequestEnrollmentAsync(hstring_ref enrollmentToken) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestEnrollmentAsync(get(enrollmentToken), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEnterpriseEnrollmentManager::RequestUnenrollmentAsync(const Windows::Phone::Management::Deployment::Enterprise & enterprise) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestUnenrollmentAsync(get(enterprise), put(result))); - return result; -} - -template hstring impl_IPackageInstallResult::ProductId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProductId(put(value))); - return value; -} - -template Windows::Management::Deployment::PackageInstallState impl_IPackageInstallResult::InstallState() const -{ - Windows::Management::Deployment::PackageInstallState value {}; - check_hresult(static_cast(static_cast(*this))->get_InstallState(&value)); - return value; -} - -template hstring impl_IPackageInstallResult2::ErrorText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ErrorText(put(value))); - return value; -} - -template Windows::Phone::Management::Deployment::Enterprise impl_IEnterpriseEnrollmentResult::EnrolledEnterprise() const -{ - Windows::Phone::Management::Deployment::Enterprise result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EnrolledEnterprise(put(result))); - return result; -} - -template Windows::Phone::Management::Deployment::EnterpriseEnrollmentStatus impl_IEnterpriseEnrollmentResult::Status() const -{ - Windows::Phone::Management::Deployment::EnterpriseEnrollmentStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IInstallationManagerStatics::AddPackageAsync(hstring_ref title, const Windows::Foundation::Uri & sourceLocation) const -{ - Windows::Foundation::IAsyncOperationWithProgress asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_AddPackageAsync(get(title), get(sourceLocation), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IInstallationManagerStatics::AddPackageAsync(hstring_ref title, const Windows::Foundation::Uri & sourceLocation, hstring_ref instanceId, hstring_ref offerId, const Windows::Foundation::Uri & license) const -{ - Windows::Foundation::IAsyncOperationWithProgress asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_AddPackagePreloadedAsync(get(title), get(sourceLocation), get(instanceId), get(offerId), get(license), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::Collections::IIterable> impl_IInstallationManagerStatics::GetPendingPackageInstalls() const -{ - Windows::Foundation::Collections::IIterable> items; - check_hresult(static_cast(static_cast(*this))->abi_GetPendingPackageInstalls(put(items))); - return items; -} - -template Windows::Foundation::Collections::IIterable impl_IInstallationManagerStatics::FindPackagesForCurrentPublisher() const -{ - Windows::Foundation::Collections::IIterable items; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesForCurrentPublisher(put(items))); - return items; -} - -template Windows::Foundation::Collections::IIterable impl_IInstallationManagerStatics::FindPackages() const -{ - Windows::Foundation::Collections::IIterable items; - check_hresult(static_cast(static_cast(*this))->abi_FindPackages(put(items))); - return items; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IInstallationManagerStatics2::RemovePackageAsync(hstring_ref packageFullName, Windows::Management::Deployment::RemovalOptions removalOptions) const -{ - Windows::Foundation::IAsyncOperationWithProgress asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_RemovePackageAsync(get(packageFullName), removalOptions, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IInstallationManagerStatics2::RegisterPackageAsync(const Windows::Foundation::Uri & manifestUri, const Windows::Foundation::Collections::IIterable & dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions) const -{ - Windows::Foundation::IAsyncOperationWithProgress asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_RegisterPackageAsync(get(manifestUri), get(dependencyPackageUris), deploymentOptions, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::Collections::IIterable impl_IInstallationManagerStatics2::FindPackages(hstring_ref packageName, hstring_ref packagePublisher) const -{ - Windows::Foundation::Collections::IIterable items; - check_hresult(static_cast(static_cast(*this))->abi_FindPackagesByNamePublisher(get(packageName), get(packagePublisher), put(items))); - return items; -} - -inline Windows::Foundation::Collections::IVectorView EnterpriseEnrollmentManager::EnrolledEnterprises() -{ - return get_activation_factory().EnrolledEnterprises(); -} - -inline Windows::Phone::Management::Deployment::Enterprise EnterpriseEnrollmentManager::CurrentEnterprise() -{ - return get_activation_factory().CurrentEnterprise(); -} - -inline Windows::Foundation::IAsyncAction EnterpriseEnrollmentManager::ValidateEnterprisesAsync() -{ - return get_activation_factory().ValidateEnterprisesAsync(); -} - -inline Windows::Foundation::IAsyncOperation EnterpriseEnrollmentManager::RequestEnrollmentAsync(hstring_ref enrollmentToken) -{ - return get_activation_factory().RequestEnrollmentAsync(enrollmentToken); -} - -inline Windows::Foundation::IAsyncOperation EnterpriseEnrollmentManager::RequestUnenrollmentAsync(const Windows::Phone::Management::Deployment::Enterprise & enterprise) -{ - return get_activation_factory().RequestUnenrollmentAsync(enterprise); -} - -inline Windows::Foundation::IAsyncOperationWithProgress InstallationManager::AddPackageAsync(hstring_ref title, const Windows::Foundation::Uri & sourceLocation) -{ - return get_activation_factory().AddPackageAsync(title, sourceLocation); -} - -inline Windows::Foundation::IAsyncOperationWithProgress InstallationManager::AddPackageAsync(hstring_ref title, const Windows::Foundation::Uri & sourceLocation, hstring_ref instanceId, hstring_ref offerId, const Windows::Foundation::Uri & license) -{ - return get_activation_factory().AddPackageAsync(title, sourceLocation, instanceId, offerId, license); -} - -inline Windows::Foundation::Collections::IIterable> InstallationManager::GetPendingPackageInstalls() -{ - return get_activation_factory().GetPendingPackageInstalls(); -} - -inline Windows::Foundation::Collections::IIterable InstallationManager::FindPackagesForCurrentPublisher() -{ - return get_activation_factory().FindPackagesForCurrentPublisher(); -} - -inline Windows::Foundation::Collections::IIterable InstallationManager::FindPackages() -{ - return get_activation_factory().FindPackages(); -} - -inline Windows::Foundation::IAsyncOperationWithProgress InstallationManager::RemovePackageAsync(hstring_ref packageFullName, Windows::Management::Deployment::RemovalOptions removalOptions) -{ - return get_activation_factory().RemovePackageAsync(packageFullName, removalOptions); -} - -inline Windows::Foundation::IAsyncOperationWithProgress InstallationManager::RegisterPackageAsync(const Windows::Foundation::Uri & manifestUri, const Windows::Foundation::Collections::IIterable & dependencyPackageUris, Windows::Management::Deployment::DeploymentOptions deploymentOptions) -{ - return get_activation_factory().RegisterPackageAsync(manifestUri, dependencyPackageUris, deploymentOptions); -} - -inline Windows::Foundation::Collections::IIterable InstallationManager::FindPackages(hstring_ref packageName, hstring_ref packagePublisher) -{ - return get_activation_factory().FindPackages(packageName, packagePublisher); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.Media.Devices.h b/10.0.14393.0/winrt/Windows.Phone.Media.Devices.h deleted file mode 100644 index 41eb4240d..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.Media.Devices.h +++ /dev/null @@ -1,154 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Phone.Media.Devices.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAudioEndpoint(Windows::Phone::Media::Devices::AudioRoutingEndpoint * endpoint) noexcept override - { - try - { - *endpoint = detach(this->shim().GetAudioEndpoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAudioEndpoint(Windows::Phone::Media::Devices::AudioRoutingEndpoint endpoint) noexcept override - { - try - { - this->shim().SetAudioEndpoint(endpoint); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AudioEndpointChanged(abi_arg_in> endpointChangeHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AudioEndpointChanged(*reinterpret_cast *>(&endpointChangeHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AudioEndpointChanged(event_token token) noexcept override - { - try - { - this->shim().AudioEndpointChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AvailableAudioEndpoints(Windows::Phone::Media::Devices::AvailableAudioRoutingEndpoints * value) noexcept override - { - try - { - *value = detach(this->shim().AvailableAudioEndpoints()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out audioRoutingManager) noexcept override - { - try - { - *audioRoutingManager = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *audioRoutingManager = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::Media::Devices { - -template Windows::Phone::Media::Devices::AudioRoutingEndpoint impl_IAudioRoutingManager::GetAudioEndpoint() const -{ - Windows::Phone::Media::Devices::AudioRoutingEndpoint endpoint {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAudioEndpoint(&endpoint)); - return endpoint; -} - -template void impl_IAudioRoutingManager::SetAudioEndpoint(Windows::Phone::Media::Devices::AudioRoutingEndpoint endpoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAudioEndpoint(endpoint)); -} - -template event_token impl_IAudioRoutingManager::AudioEndpointChanged(const Windows::Foundation::TypedEventHandler & endpointChangeHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AudioEndpointChanged(get(endpointChangeHandler), &token)); - return token; -} - -template event_revoker impl_IAudioRoutingManager::AudioEndpointChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & endpointChangeHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Phone::Media::Devices::IAudioRoutingManager::remove_AudioEndpointChanged, AudioEndpointChanged(endpointChangeHandler)); -} - -template void impl_IAudioRoutingManager::AudioEndpointChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AudioEndpointChanged(token)); -} - -template Windows::Phone::Media::Devices::AvailableAudioRoutingEndpoints impl_IAudioRoutingManager::AvailableAudioEndpoints() const -{ - Windows::Phone::Media::Devices::AvailableAudioRoutingEndpoints value {}; - check_hresult(static_cast(static_cast(*this))->get_AvailableAudioEndpoints(&value)); - return value; -} - -template Windows::Phone::Media::Devices::AudioRoutingManager impl_IAudioRoutingManagerStatics::GetDefault() const -{ - Windows::Phone::Media::Devices::AudioRoutingManager audioRoutingManager { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(audioRoutingManager))); - return audioRoutingManager; -} - -inline Windows::Phone::Media::Devices::AudioRoutingManager AudioRoutingManager::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.Notification.Management.h b/10.0.14393.0/winrt/Windows.Phone.Notification.Management.h deleted file mode 100644 index 991cc0319..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.Notification.Management.h +++ /dev/null @@ -1,3631 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.ApplicationModel.Email.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.Appointments.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Phone.Notification.Management.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RegisterAccessoryApp(abi_arg_out triggerId) noexcept override - { - try - { - *triggerId = detach(this->shim().RegisterAccessoryApp()); - return S_OK; - } - catch (...) - { - *triggerId = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNextTriggerDetails(abi_arg_out pDetails) noexcept override - { - try - { - *pDetails = detach(this->shim().GetNextTriggerDetails()); - return S_OK; - } - catch (...) - { - *pDetails = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessTriggerDetails(abi_arg_in pDetails) noexcept override - { - try - { - this->shim().ProcessTriggerDetails(*reinterpret_cast(&pDetails)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneLineDetails(abi_arg_out> ppvalue) noexcept override - { - try - { - *ppvalue = detach(this->shim().PhoneLineDetails()); - return S_OK; - } - catch (...) - { - *ppvalue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPhoneLineDetails(GUID phoneLine, abi_arg_out ppdetails) noexcept override - { - try - { - *ppdetails = detach(this->shim().GetPhoneLineDetails(phoneLine)); - return S_OK; - } - catch (...) - { - *ppdetails = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcceptPhoneCall(uint32_t phoneCallId) noexcept override - { - try - { - this->shim().AcceptPhoneCall(phoneCallId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcceptPhoneCallOnEndpoint(uint32_t phoneCallId, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) noexcept override - { - try - { - this->shim().AcceptPhoneCall(phoneCallId, endPoint); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcceptPhoneCallWithVideo(uint32_t phoneCallId) noexcept override - { - try - { - this->shim().AcceptPhoneCallWithVideo(phoneCallId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcceptPhoneCallWithVideoOnAudioEndpoint(uint32_t phoneCallId, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) noexcept override - { - try - { - this->shim().AcceptPhoneCallWithVideo(phoneCallId, endPoint); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RejectPhoneCall(uint32_t phoneCallId) noexcept override - { - try - { - this->shim().RejectPhoneCall(phoneCallId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RejectPhoneCallWithText(uint32_t phoneCallId, uint32_t textResponseID) noexcept override - { - try - { - this->shim().RejectPhoneCall(phoneCallId, textResponseID); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MakePhoneCall(GUID phoneLine, abi_arg_in phoneNumber) noexcept override - { - try - { - this->shim().MakePhoneCall(phoneLine, *reinterpret_cast(&phoneNumber)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MakePhoneCallOnAudioEndpoint(GUID phoneLine, abi_arg_in phoneNumber, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) noexcept override - { - try - { - this->shim().MakePhoneCall(phoneLine, *reinterpret_cast(&phoneNumber), endPoint); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MakePhoneCallWithVideo(GUID phoneLine, abi_arg_in phoneNumber) noexcept override - { - try - { - this->shim().MakePhoneCallWithVideo(phoneLine, *reinterpret_cast(&phoneNumber)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MakePhoneCallWithVideoOnAudioEndpoint(GUID phoneLine, abi_arg_in phoneNumber, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) noexcept override - { - try - { - this->shim().MakePhoneCallWithVideo(phoneLine, *reinterpret_cast(&phoneNumber), endPoint); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SwapPhoneCalls(uint32_t phoneCallIdToHold, uint32_t phoneCallIdOnHold) noexcept override - { - try - { - this->shim().SwapPhoneCalls(phoneCallIdToHold, phoneCallIdOnHold); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HoldPhoneCall(uint32_t phoneCallId, bool holdCall) noexcept override - { - try - { - this->shim().HoldPhoneCall(phoneCallId, holdCall); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EndPhoneCall(uint32_t phoneCallId) noexcept override - { - try - { - this->shim().EndPhoneCall(phoneCallId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PhoneMute(bool value) noexcept override - { - try - { - this->shim().PhoneMute(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneMute(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PhoneMute()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PhoneCallAudioEndpoint(Windows::Phone::Notification::Management::PhoneCallAudioEndpoint value) noexcept override - { - try - { - this->shim().PhoneCallAudioEndpoint(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneCallAudioEndpoint(Windows::Phone::Notification::Management::PhoneCallAudioEndpoint * value) noexcept override - { - try - { - *value = detach(this->shim().PhoneCallAudioEndpoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SnoozeAlarm(GUID alarmId) noexcept override - { - try - { - this->shim().SnoozeAlarm(alarmId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SnoozeAlarmForSpecifiedTime(GUID alarmId, abi_arg_in timeSpan) noexcept override - { - try - { - this->shim().SnoozeAlarm(alarmId, *reinterpret_cast(&timeSpan)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DismissAlarm(GUID alarmId) noexcept override - { - try - { - this->shim().DismissAlarm(alarmId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SnoozeReminder(GUID reminderId) noexcept override - { - try - { - this->shim().SnoozeReminder(reminderId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SnoozeReminderForSpecifiedTime(GUID reminderId, abi_arg_in timeSpan) noexcept override - { - try - { - this->shim().SnoozeReminder(reminderId, *reinterpret_cast(&timeSpan)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DismissReminder(GUID reminderId) noexcept override - { - try - { - this->shim().DismissReminder(reminderId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetMediaMetadata(abi_arg_out ppMetadata) noexcept override - { - try - { - *ppMetadata = detach(this->shim().GetMediaMetadata()); - return S_OK; - } - catch (...) - { - *ppMetadata = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaPlaybackCapabilities(Windows::Phone::Notification::Management::PlaybackCapability * value) noexcept override - { - try - { - *value = detach(this->shim().MediaPlaybackCapabilities()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaPlaybackStatus(Windows::Phone::Notification::Management::PlaybackStatus * value) noexcept override - { - try - { - *value = detach(this->shim().MediaPlaybackStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PerformMediaPlaybackCommand(Windows::Phone::Notification::Management::PlaybackCommand command) noexcept override - { - try - { - this->shim().PerformMediaPlaybackCommand(command); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DoNotDisturbEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DoNotDisturbEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DrivingModeEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DrivingModeEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BatterySaverState(bool * value) noexcept override - { - try - { - *value = detach(this->shim().BatterySaverState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetApps(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetApps()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableNotificationsForApplication(abi_arg_in appId) noexcept override - { - try - { - this->shim().EnableNotificationsForApplication(*reinterpret_cast(&appId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisableNotificationsForApplication(abi_arg_in appId) noexcept override - { - try - { - this->shim().DisableNotificationsForApplication(*reinterpret_cast(&appId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsNotificationEnabledForApplication(abi_arg_in appId, bool * enabled) noexcept override - { - try - { - *enabled = detach(this->shim().IsNotificationEnabledForApplication(*reinterpret_cast(&appId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEnabledAccessoryNotificationTypes(int32_t * enabledAccessoryNotificationTypes) noexcept override - { - try - { - *enabledAccessoryNotificationTypes = detach(this->shim().GetEnabledAccessoryNotificationTypes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableAccessoryNotificationTypes(int32_t accessoryNotificationTypes) noexcept override - { - try - { - this->shim().EnableAccessoryNotificationTypes(accessoryNotificationTypes); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisableAllAccessoryNotificationTypes() noexcept override - { - try - { - this->shim().DisableAllAccessoryNotificationTypes(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUserConsent(bool * enabled) noexcept override - { - try - { - *enabled = detach(this->shim().GetUserConsent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppIcon(abi_arg_in appId, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAppIcon(*reinterpret_cast(&appId))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RingDevice() noexcept override - { - try - { - this->shim().RingDevice(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpeedDialList(abi_arg_out> ppvalue) noexcept override - { - try - { - *ppvalue = detach(this->shim().SpeedDialList()); - return S_OK; - } - catch (...) - { - *ppvalue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearToast(abi_arg_in instanceId) noexcept override - { - try - { - this->shim().ClearToast(*reinterpret_cast(&instanceId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPhonePinLocked(bool * pinLocked) noexcept override - { - try - { - *pinLocked = detach(this->shim().IsPhonePinLocked()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IncreaseVolume(int32_t step) noexcept override - { - try - { - this->shim().IncreaseVolume(step); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DecreaseVolume(int32_t step) noexcept override - { - try - { - this->shim().DecreaseVolume(step); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetMute(bool mute) noexcept override - { - try - { - this->shim().SetMute(mute); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRingerVibrate(bool ringer, bool vibrate) noexcept override - { - try - { - this->shim().SetRingerVibrate(ringer, vibrate); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VolumeInfo(abi_arg_out ppVolume) noexcept override - { - try - { - *ppVolume = detach(this->shim().VolumeInfo()); - return S_OK; - } - catch (...) - { - *ppVolume = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAllEmailAccounts(abi_arg_out> emailAccounts) noexcept override - { - try - { - *emailAccounts = detach(this->shim().GetAllEmailAccounts()); - return S_OK; - } - catch (...) - { - *emailAccounts = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFolders(abi_arg_in emailAccount, abi_arg_out> folders) noexcept override - { - try - { - *folders = detach(this->shim().GetFolders(*reinterpret_cast(&emailAccount))); - return S_OK; - } - catch (...) - { - *folders = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableEmailNotificationEmailAccount(abi_arg_in emailAccount) noexcept override - { - try - { - this->shim().EnableEmailNotificationEmailAccount(*reinterpret_cast(&emailAccount)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DisableEmailNotificationEmailAccount(abi_arg_in emailAccount) noexcept override - { - try - { - this->shim().DisableEmailNotificationEmailAccount(*reinterpret_cast(&emailAccount)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableEmailNotificationFolderFilter(abi_arg_in emailAccount, abi_arg_in> folders) noexcept override - { - try - { - this->shim().EnableEmailNotificationFolderFilter(*reinterpret_cast(&emailAccount), *reinterpret_cast *>(&folders)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateEmailReadStatus(abi_arg_in messageEntryId, bool isRead) noexcept override - { - try - { - this->shim().UpdateEmailReadStatus(*reinterpret_cast(&messageEntryId), isRead); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SnoozeAlarmByInstanceId(abi_arg_in instanceId) noexcept override - { - try - { - this->shim().SnoozeAlarmByInstanceId(*reinterpret_cast(&instanceId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DismissAlarmByInstanceId(abi_arg_in instanceId) noexcept override - { - try - { - this->shim().DismissAlarmByInstanceId(*reinterpret_cast(&instanceId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SnoozeReminderByInstanceId(abi_arg_in instanceId) noexcept override - { - try - { - this->shim().SnoozeReminderByInstanceId(*reinterpret_cast(&instanceId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DismissReminderByInstanceId(abi_arg_in instanceId) noexcept override - { - try - { - this->shim().DismissReminderByInstanceId(*reinterpret_cast(&instanceId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TimeCreated(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimeCreated()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccessoryNotificationType(Windows::Phone::Notification::Management::AccessoryNotificationType * value) noexcept override - { - try - { - *value = detach(this->shim().AccessoryNotificationType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartedProcessing(bool * value) noexcept override - { - try - { - *value = detach(this->shim().StartedProcessing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StartedProcessing(bool value) noexcept override - { - try - { - this->shim().StartedProcessing(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlarmId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().AlarmId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReminderState(Windows::Phone::Notification::Management::ReminderState * value) noexcept override - { - try - { - *value = detach(this->shim().ReminderState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InstanceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InstanceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Length(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EventType(Windows::Phone::Notification::Management::CalendarChangedEvent * value) noexcept override - { - try - { - *value = detach(this->shim().EventType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TileId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TileId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LargeContent1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LargeContent1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LargeContent2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LargeContent2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmphasizedText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmphasizedText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NonWrappedSmallContent1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NonWrappedSmallContent1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NonWrappedSmallContent2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NonWrappedSmallContent2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NonWrappedSmallContent3(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NonWrappedSmallContent3()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NonWrappedSmallContent4(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NonWrappedSmallContent4()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsNotificationEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsNotificationEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsNotificationEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsNotificationEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AccountName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccountName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ParentFolderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ParentFolderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SenderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SenderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SenderAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SenderAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EmailMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EmailMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MessageEntryId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MessageEntryId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AccountName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccountName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ParentFolderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ParentFolderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageEntryId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MessageEntryId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRead(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRead()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PlaybackStatus(Windows::Phone::Notification::Management::PlaybackStatus * value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaMetadata(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaMetadata()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subtitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subtitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Artist(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Artist()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Album(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Album()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Track(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Track()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PhoneLine(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().PhoneLine()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CallId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallTransport(Windows::Phone::Notification::Management::PhoneCallTransport * value) noexcept override - { - try - { - *value = detach(this->shim().CallTransport()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallMediaType(Windows::Phone::Notification::Management::PhoneMediaType * value) noexcept override - { - try - { - *value = detach(this->shim().CallMediaType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallDirection(Windows::Phone::Notification::Management::PhoneCallDirection * value) noexcept override - { - try - { - *value = detach(this->shim().CallDirection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(Windows::Phone::Notification::Management::PhoneCallState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConferenceCallId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ConferenceCallId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EndTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhoneNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContactName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PresetTextResponses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PresetTextResponses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LineId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().LineId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LineNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultOutgoingLine(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultOutgoingLine()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VoicemailCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().VoicemailCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RegistrationState(Windows::Phone::Notification::Management::PhoneLineRegistrationState * value) noexcept override - { - try - { - *value = detach(this->shim().RegistrationState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MissedCallCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MissedCallCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PhoneNotificationType(Windows::Phone::Notification::Management::PhoneNotificationType * value) noexcept override - { - try - { - *value = detach(this->shim().PhoneNotificationType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CallDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneLineChangedId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().PhoneLineChangedId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ReminderId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ReminderId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Details(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Details()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Appointment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Appointment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReminderState(Windows::Phone::Notification::Management::ReminderState * value) noexcept override - { - try - { - *value = detach(this->shim().ReminderState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InstanceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InstanceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PhoneNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhoneNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NumberType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContactName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Text1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text3(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text3()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text4(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text4()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuppressPopup(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SuppressPopup()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InstanceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InstanceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SystemVolume(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SystemVolume()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallVolume(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CallVolume()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaVolume(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MediaVolume()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMuted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMuted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVibrateEnabled(Windows::Phone::Notification::Management::VibrateState * value) noexcept override - { - try - { - *value = detach(this->shim().IsVibrateEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::Notification::Management { - -template uint32_t impl_ITextResponse::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template hstring impl_ITextResponse::Content() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template hstring impl_IAppNotificationInfo::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IAppNotificationInfo::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template hstring impl_IEmailAccountInfo::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template bool impl_IEmailAccountInfo::IsNotificationEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsNotificationEnabled(&value)); - return value; -} - -template hstring impl_IEmailFolderInfo::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template bool impl_IEmailFolderInfo::IsNotificationEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsNotificationEnabled(&value)); - return value; -} - -template uint8_t impl_IBinaryId::Id() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template uint32_t impl_IBinaryId::Length() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IAccessoryNotificationTriggerDetails::TimeCreated() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeCreated(put(value))); - return value; -} - -template hstring impl_IAccessoryNotificationTriggerDetails::AppDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppDisplayName(put(value))); - return value; -} - -template hstring impl_IAccessoryNotificationTriggerDetails::AppId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AppId(put(value))); - return value; -} - -template Windows::Phone::Notification::Management::AccessoryNotificationType impl_IAccessoryNotificationTriggerDetails::AccessoryNotificationType() const -{ - Windows::Phone::Notification::Management::AccessoryNotificationType value {}; - check_hresult(static_cast(static_cast(*this))->get_AccessoryNotificationType(&value)); - return value; -} - -template bool impl_IAccessoryNotificationTriggerDetails::StartedProcessing() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_StartedProcessing(&value)); - return value; -} - -template void impl_IAccessoryNotificationTriggerDetails::StartedProcessing(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartedProcessing(value)); -} - -template GUID impl_IAlarmNotificationTriggerDetails::AlarmId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_AlarmId(&value)); - return value; -} - -template hstring impl_IAlarmNotificationTriggerDetails::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IAlarmNotificationTriggerDetails::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Phone::Notification::Management::ReminderState impl_IAlarmNotificationTriggerDetails::ReminderState() const -{ - Windows::Phone::Notification::Management::ReminderState value {}; - check_hresult(static_cast(static_cast(*this))->get_ReminderState(&value)); - return value; -} - -template hstring impl_IAlarmNotificationTriggerDetails2::InstanceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InstanceId(put(value))); - return value; -} - -template hstring impl_IEmailNotificationTriggerDetails::AccountName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AccountName(put(value))); - return value; -} - -template hstring impl_IEmailNotificationTriggerDetails::ParentFolderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ParentFolderName(put(value))); - return value; -} - -template hstring impl_IEmailNotificationTriggerDetails::SenderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SenderName(put(value))); - return value; -} - -template hstring impl_IEmailNotificationTriggerDetails::SenderAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SenderAddress(put(value))); - return value; -} - -template Windows::ApplicationModel::Email::EmailMessage impl_IEmailNotificationTriggerDetails::EmailMessage() const -{ - Windows::ApplicationModel::Email::EmailMessage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EmailMessage(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IEmailNotificationTriggerDetails::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Phone::Notification::Management::BinaryId impl_IEmailNotificationTriggerDetails2::MessageEntryId() const -{ - Windows::Phone::Notification::Management::BinaryId value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MessageEntryId(put(value))); - return value; -} - -template hstring impl_IEmailReadNotificationTriggerDetails::AccountName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AccountName(put(value))); - return value; -} - -template hstring impl_IEmailReadNotificationTriggerDetails::ParentFolderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ParentFolderName(put(value))); - return value; -} - -template Windows::Phone::Notification::Management::BinaryId impl_IEmailReadNotificationTriggerDetails::MessageEntryId() const -{ - Windows::Phone::Notification::Management::BinaryId value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MessageEntryId(put(value))); - return value; -} - -template bool impl_IEmailReadNotificationTriggerDetails::IsRead() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRead(&value)); - return value; -} - -template GUID impl_IPhoneLineDetails::LineId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_LineId(&value)); - return value; -} - -template hstring impl_IPhoneLineDetails::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IPhoneLineDetails::LineNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LineNumber(put(value))); - return value; -} - -template bool impl_IPhoneLineDetails::DefaultOutgoingLine() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultOutgoingLine(&value)); - return value; -} - -template uint32_t impl_IPhoneLineDetails::VoicemailCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VoicemailCount(&value)); - return value; -} - -template Windows::Phone::Notification::Management::PhoneLineRegistrationState impl_IPhoneLineDetails::RegistrationState() const -{ - Windows::Phone::Notification::Management::PhoneLineRegistrationState value {}; - check_hresult(static_cast(static_cast(*this))->get_RegistrationState(&value)); - return value; -} - -template uint32_t impl_IPhoneLineDetails2::MissedCallCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MissedCallCount(&value)); - return value; -} - -template GUID impl_IPhoneCallDetails::PhoneLine() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_PhoneLine(&value)); - return value; -} - -template uint32_t impl_IPhoneCallDetails::CallId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CallId(&value)); - return value; -} - -template Windows::Phone::Notification::Management::PhoneCallTransport impl_IPhoneCallDetails::CallTransport() const -{ - Windows::Phone::Notification::Management::PhoneCallTransport value {}; - check_hresult(static_cast(static_cast(*this))->get_CallTransport(&value)); - return value; -} - -template Windows::Phone::Notification::Management::PhoneMediaType impl_IPhoneCallDetails::CallMediaType() const -{ - Windows::Phone::Notification::Management::PhoneMediaType value {}; - check_hresult(static_cast(static_cast(*this))->get_CallMediaType(&value)); - return value; -} - -template Windows::Phone::Notification::Management::PhoneCallDirection impl_IPhoneCallDetails::CallDirection() const -{ - Windows::Phone::Notification::Management::PhoneCallDirection value {}; - check_hresult(static_cast(static_cast(*this))->get_CallDirection(&value)); - return value; -} - -template Windows::Phone::Notification::Management::PhoneCallState impl_IPhoneCallDetails::State() const -{ - Windows::Phone::Notification::Management::PhoneCallState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template uint32_t impl_IPhoneCallDetails::ConferenceCallId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ConferenceCallId(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IPhoneCallDetails::StartTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_StartTime(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IPhoneCallDetails::EndTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_EndTime(put(value))); - return value; -} - -template hstring impl_IPhoneCallDetails::PhoneNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PhoneNumber(put(value))); - return value; -} - -template hstring impl_IPhoneCallDetails::ContactName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContactName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IPhoneCallDetails::PresetTextResponses() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_PresetTextResponses(put(value))); - return value; -} - -template Windows::Phone::Notification::Management::PhoneNotificationType impl_IPhoneNotificationTriggerDetails::PhoneNotificationType() const -{ - Windows::Phone::Notification::Management::PhoneNotificationType value {}; - check_hresult(static_cast(static_cast(*this))->get_PhoneNotificationType(&value)); - return value; -} - -template Windows::Phone::Notification::Management::PhoneCallDetails impl_IPhoneNotificationTriggerDetails::CallDetails() const -{ - Windows::Phone::Notification::Management::PhoneCallDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CallDetails(put(value))); - return value; -} - -template GUID impl_IPhoneNotificationTriggerDetails::PhoneLineChangedId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_PhoneLineChangedId(&value)); - return value; -} - -template hstring impl_ISpeedDialEntry::PhoneNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PhoneNumber(put(value))); - return value; -} - -template hstring impl_ISpeedDialEntry::NumberType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NumberType(put(value))); - return value; -} - -template hstring impl_ISpeedDialEntry::ContactName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContactName(put(value))); - return value; -} - -template GUID impl_IReminderNotificationTriggerDetails::ReminderId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ReminderId(&value)); - return value; -} - -template hstring impl_IReminderNotificationTriggerDetails::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template hstring impl_IReminderNotificationTriggerDetails::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template hstring impl_IReminderNotificationTriggerDetails::Details() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Details(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IReminderNotificationTriggerDetails::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::ApplicationModel::Appointments::Appointment impl_IReminderNotificationTriggerDetails::Appointment() const -{ - Windows::ApplicationModel::Appointments::Appointment value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Appointment(put(value))); - return value; -} - -template Windows::Phone::Notification::Management::ReminderState impl_IReminderNotificationTriggerDetails::ReminderState() const -{ - Windows::Phone::Notification::Management::ReminderState value {}; - check_hresult(static_cast(static_cast(*this))->get_ReminderState(&value)); - return value; -} - -template hstring impl_IReminderNotificationTriggerDetails2::InstanceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InstanceId(put(value))); - return value; -} - -template Windows::Phone::Notification::Management::CalendarChangedEvent impl_ICalendarChangedNotificationTriggerDetails::EventType() const -{ - Windows::Phone::Notification::Management::CalendarChangedEvent value {}; - check_hresult(static_cast(static_cast(*this))->get_EventType(&value)); - return value; -} - -template hstring impl_ICalendarChangedNotificationTriggerDetails::ItemId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ItemId(put(value))); - return value; -} - -template hstring impl_IToastNotificationTriggerDetails::Text1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text1(put(value))); - return value; -} - -template hstring impl_IToastNotificationTriggerDetails::Text2() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text2(put(value))); - return value; -} - -template hstring impl_IToastNotificationTriggerDetails::Text3() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text3(put(value))); - return value; -} - -template hstring impl_IToastNotificationTriggerDetails::Text4() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text4(put(value))); - return value; -} - -template bool impl_IToastNotificationTriggerDetails::SuppressPopup() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SuppressPopup(&value)); - return value; -} - -template hstring impl_IToastNotificationTriggerDetails2::InstanceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InstanceId(put(value))); - return value; -} - -template hstring impl_ICortanaTileNotificationTriggerDetails::TileId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TileId(put(value))); - return value; -} - -template hstring impl_ICortanaTileNotificationTriggerDetails::Content() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template hstring impl_ICortanaTileNotificationTriggerDetails::LargeContent1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LargeContent1(put(value))); - return value; -} - -template hstring impl_ICortanaTileNotificationTriggerDetails::LargeContent2() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LargeContent2(put(value))); - return value; -} - -template hstring impl_ICortanaTileNotificationTriggerDetails::EmphasizedText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EmphasizedText(put(value))); - return value; -} - -template hstring impl_ICortanaTileNotificationTriggerDetails::NonWrappedSmallContent1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NonWrappedSmallContent1(put(value))); - return value; -} - -template hstring impl_ICortanaTileNotificationTriggerDetails::NonWrappedSmallContent2() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NonWrappedSmallContent2(put(value))); - return value; -} - -template hstring impl_ICortanaTileNotificationTriggerDetails::NonWrappedSmallContent3() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NonWrappedSmallContent3(put(value))); - return value; -} - -template hstring impl_ICortanaTileNotificationTriggerDetails::NonWrappedSmallContent4() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NonWrappedSmallContent4(put(value))); - return value; -} - -template hstring impl_ICortanaTileNotificationTriggerDetails::Source() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template hstring impl_IMediaMetadata::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template hstring impl_IMediaMetadata::Subtitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subtitle(put(value))); - return value; -} - -template hstring impl_IMediaMetadata::Artist() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Artist(put(value))); - return value; -} - -template hstring impl_IMediaMetadata::Album() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Album(put(value))); - return value; -} - -template uint32_t impl_IMediaMetadata::Track() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Track(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaMetadata::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IMediaMetadata::Thumbnail() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template Windows::Phone::Notification::Management::PlaybackStatus impl_IMediaControlsTriggerDetails::PlaybackStatus() const -{ - Windows::Phone::Notification::Management::PlaybackStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_PlaybackStatus(&value)); - return value; -} - -template Windows::Phone::Notification::Management::MediaMetadata impl_IMediaControlsTriggerDetails::MediaMetadata() const -{ - Windows::Phone::Notification::Management::MediaMetadata value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaMetadata(put(value))); - return value; -} - -template uint32_t impl_IVolumeInfo::SystemVolume() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SystemVolume(&value)); - return value; -} - -template uint32_t impl_IVolumeInfo::CallVolume() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CallVolume(&value)); - return value; -} - -template uint32_t impl_IVolumeInfo::MediaVolume() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaVolume(&value)); - return value; -} - -template bool impl_IVolumeInfo::IsMuted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMuted(&value)); - return value; -} - -template Windows::Phone::Notification::Management::VibrateState impl_IVolumeInfo::IsVibrateEnabled() const -{ - Windows::Phone::Notification::Management::VibrateState value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVibrateEnabled(&value)); - return value; -} - -template hstring impl_IAccessoryManager::RegisterAccessoryApp() const -{ - hstring triggerId; - check_hresult(static_cast(static_cast(*this))->abi_RegisterAccessoryApp(put(triggerId))); - return triggerId; -} - -template Windows::Phone::Notification::Management::IAccessoryNotificationTriggerDetails impl_IAccessoryManager::GetNextTriggerDetails() const -{ - Windows::Phone::Notification::Management::IAccessoryNotificationTriggerDetails pDetails; - check_hresult(static_cast(static_cast(*this))->abi_GetNextTriggerDetails(put(pDetails))); - return pDetails; -} - -template void impl_IAccessoryManager::ProcessTriggerDetails(const Windows::Phone::Notification::Management::IAccessoryNotificationTriggerDetails & pDetails) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProcessTriggerDetails(get(pDetails))); -} - -template Windows::Foundation::Collections::IVectorView impl_IAccessoryManager::PhoneLineDetails() const -{ - Windows::Foundation::Collections::IVectorView ppvalue; - check_hresult(static_cast(static_cast(*this))->get_PhoneLineDetails(put(ppvalue))); - return ppvalue; -} - -template Windows::Phone::Notification::Management::PhoneLineDetails impl_IAccessoryManager::GetPhoneLineDetails(GUID phoneLine) const -{ - Windows::Phone::Notification::Management::PhoneLineDetails ppdetails { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetPhoneLineDetails(phoneLine, put(ppdetails))); - return ppdetails; -} - -template void impl_IAccessoryManager::AcceptPhoneCall(uint32_t phoneCallId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptPhoneCall(phoneCallId)); -} - -template void impl_IAccessoryManager::AcceptPhoneCall(uint32_t phoneCallId, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptPhoneCallOnEndpoint(phoneCallId, endPoint)); -} - -template void impl_IAccessoryManager::AcceptPhoneCallWithVideo(uint32_t phoneCallId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptPhoneCallWithVideo(phoneCallId)); -} - -template void impl_IAccessoryManager::AcceptPhoneCallWithVideo(uint32_t phoneCallId, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AcceptPhoneCallWithVideoOnAudioEndpoint(phoneCallId, endPoint)); -} - -template void impl_IAccessoryManager::RejectPhoneCall(uint32_t phoneCallId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RejectPhoneCall(phoneCallId)); -} - -template void impl_IAccessoryManager::RejectPhoneCall(uint32_t phoneCallId, uint32_t textResponseID) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RejectPhoneCallWithText(phoneCallId, textResponseID)); -} - -template void impl_IAccessoryManager::MakePhoneCall(GUID phoneLine, hstring_ref phoneNumber) const -{ - check_hresult(static_cast(static_cast(*this))->abi_MakePhoneCall(phoneLine, get(phoneNumber))); -} - -template void impl_IAccessoryManager::MakePhoneCall(GUID phoneLine, hstring_ref phoneNumber, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_MakePhoneCallOnAudioEndpoint(phoneLine, get(phoneNumber), endPoint)); -} - -template void impl_IAccessoryManager::MakePhoneCallWithVideo(GUID phoneLine, hstring_ref phoneNumber) const -{ - check_hresult(static_cast(static_cast(*this))->abi_MakePhoneCallWithVideo(phoneLine, get(phoneNumber))); -} - -template void impl_IAccessoryManager::MakePhoneCallWithVideo(GUID phoneLine, hstring_ref phoneNumber, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_MakePhoneCallWithVideoOnAudioEndpoint(phoneLine, get(phoneNumber), endPoint)); -} - -template void impl_IAccessoryManager::SwapPhoneCalls(uint32_t phoneCallIdToHold, uint32_t phoneCallIdOnHold) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SwapPhoneCalls(phoneCallIdToHold, phoneCallIdOnHold)); -} - -template void impl_IAccessoryManager::HoldPhoneCall(uint32_t phoneCallId, bool holdCall) const -{ - check_hresult(static_cast(static_cast(*this))->abi_HoldPhoneCall(phoneCallId, holdCall)); -} - -template void impl_IAccessoryManager::EndPhoneCall(uint32_t phoneCallId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EndPhoneCall(phoneCallId)); -} - -template void impl_IAccessoryManager::PhoneMute(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PhoneMute(value)); -} - -template bool impl_IAccessoryManager::PhoneMute() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PhoneMute(&value)); - return value; -} - -template void impl_IAccessoryManager::PhoneCallAudioEndpoint(Windows::Phone::Notification::Management::PhoneCallAudioEndpoint value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PhoneCallAudioEndpoint(value)); -} - -template Windows::Phone::Notification::Management::PhoneCallAudioEndpoint impl_IAccessoryManager::PhoneCallAudioEndpoint() const -{ - Windows::Phone::Notification::Management::PhoneCallAudioEndpoint value {}; - check_hresult(static_cast(static_cast(*this))->get_PhoneCallAudioEndpoint(&value)); - return value; -} - -template void impl_IAccessoryManager::SnoozeAlarm(GUID alarmId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SnoozeAlarm(alarmId)); -} - -template void impl_IAccessoryManager::SnoozeAlarm(GUID alarmId, const Windows::Foundation::TimeSpan & timeSpan) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SnoozeAlarmForSpecifiedTime(alarmId, get(timeSpan))); -} - -template void impl_IAccessoryManager::DismissAlarm(GUID alarmId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DismissAlarm(alarmId)); -} - -template void impl_IAccessoryManager::SnoozeReminder(GUID reminderId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SnoozeReminder(reminderId)); -} - -template void impl_IAccessoryManager::SnoozeReminder(GUID reminderId, const Windows::Foundation::TimeSpan & timeSpan) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SnoozeReminderForSpecifiedTime(reminderId, get(timeSpan))); -} - -template void impl_IAccessoryManager::DismissReminder(GUID reminderId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DismissReminder(reminderId)); -} - -template Windows::Phone::Notification::Management::MediaMetadata impl_IAccessoryManager::GetMediaMetadata() const -{ - Windows::Phone::Notification::Management::MediaMetadata ppMetadata { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetMediaMetadata(put(ppMetadata))); - return ppMetadata; -} - -template Windows::Phone::Notification::Management::PlaybackCapability impl_IAccessoryManager::MediaPlaybackCapabilities() const -{ - Windows::Phone::Notification::Management::PlaybackCapability value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaPlaybackCapabilities(&value)); - return value; -} - -template Windows::Phone::Notification::Management::PlaybackStatus impl_IAccessoryManager::MediaPlaybackStatus() const -{ - Windows::Phone::Notification::Management::PlaybackStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_MediaPlaybackStatus(&value)); - return value; -} - -template void impl_IAccessoryManager::PerformMediaPlaybackCommand(Windows::Phone::Notification::Management::PlaybackCommand command) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PerformMediaPlaybackCommand(command)); -} - -template bool impl_IAccessoryManager::DoNotDisturbEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DoNotDisturbEnabled(&value)); - return value; -} - -template bool impl_IAccessoryManager::DrivingModeEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DrivingModeEnabled(&value)); - return value; -} - -template bool impl_IAccessoryManager::BatterySaverState() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_BatterySaverState(&value)); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IAccessoryManager::GetApps() const -{ - Windows::Foundation::Collections::IMapView returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetApps(put(returnValue))); - return returnValue; -} - -template void impl_IAccessoryManager::EnableNotificationsForApplication(hstring_ref appId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableNotificationsForApplication(get(appId))); -} - -template void impl_IAccessoryManager::DisableNotificationsForApplication(hstring_ref appId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DisableNotificationsForApplication(get(appId))); -} - -template bool impl_IAccessoryManager::IsNotificationEnabledForApplication(hstring_ref appId) const -{ - bool enabled {}; - check_hresult(static_cast(static_cast(*this))->abi_IsNotificationEnabledForApplication(get(appId), &enabled)); - return enabled; -} - -template int32_t impl_IAccessoryManager::GetEnabledAccessoryNotificationTypes() const -{ - int32_t enabledAccessoryNotificationTypes {}; - check_hresult(static_cast(static_cast(*this))->abi_GetEnabledAccessoryNotificationTypes(&enabledAccessoryNotificationTypes)); - return enabledAccessoryNotificationTypes; -} - -template void impl_IAccessoryManager::EnableAccessoryNotificationTypes(int32_t accessoryNotificationTypes) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableAccessoryNotificationTypes(accessoryNotificationTypes)); -} - -template void impl_IAccessoryManager::DisableAllAccessoryNotificationTypes() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DisableAllAccessoryNotificationTypes()); -} - -template bool impl_IAccessoryManager::GetUserConsent() const -{ - bool enabled {}; - check_hresult(static_cast(static_cast(*this))->abi_GetUserConsent(&enabled)); - return enabled; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IAccessoryManager::GetAppIcon(hstring_ref appId) const -{ - Windows::Storage::Streams::IRandomAccessStreamReference returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAppIcon(get(appId), put(returnValue))); - return returnValue; -} - -template void impl_IAccessoryManager2::RingDevice() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RingDevice()); -} - -template Windows::Foundation::Collections::IVectorView impl_IAccessoryManager2::SpeedDialList() const -{ - Windows::Foundation::Collections::IVectorView ppvalue; - check_hresult(static_cast(static_cast(*this))->get_SpeedDialList(put(ppvalue))); - return ppvalue; -} - -template void impl_IAccessoryManager2::ClearToast(hstring_ref instanceId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearToast(get(instanceId))); -} - -template bool impl_IAccessoryManager2::IsPhonePinLocked() const -{ - bool pinLocked {}; - check_hresult(static_cast(static_cast(*this))->get_IsPhonePinLocked(&pinLocked)); - return pinLocked; -} - -template void impl_IAccessoryManager2::IncreaseVolume(int32_t step) const -{ - check_hresult(static_cast(static_cast(*this))->abi_IncreaseVolume(step)); -} - -template void impl_IAccessoryManager2::DecreaseVolume(int32_t step) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DecreaseVolume(step)); -} - -template void impl_IAccessoryManager2::SetMute(bool mute) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetMute(mute)); -} - -template void impl_IAccessoryManager2::SetRingerVibrate(bool ringer, bool vibrate) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetRingerVibrate(ringer, vibrate)); -} - -template Windows::Phone::Notification::Management::VolumeInfo impl_IAccessoryManager2::VolumeInfo() const -{ - Windows::Phone::Notification::Management::VolumeInfo ppVolume { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VolumeInfo(put(ppVolume))); - return ppVolume; -} - -template Windows::Foundation::Collections::IVectorView impl_IAccessoryManager2::GetAllEmailAccounts() const -{ - Windows::Foundation::Collections::IVectorView emailAccounts; - check_hresult(static_cast(static_cast(*this))->abi_GetAllEmailAccounts(put(emailAccounts))); - return emailAccounts; -} - -template Windows::Foundation::Collections::IVectorView impl_IAccessoryManager2::GetFolders(hstring_ref emailAccount) const -{ - Windows::Foundation::Collections::IVectorView folders; - check_hresult(static_cast(static_cast(*this))->abi_GetFolders(get(emailAccount), put(folders))); - return folders; -} - -template void impl_IAccessoryManager2::EnableEmailNotificationEmailAccount(hstring_ref emailAccount) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableEmailNotificationEmailAccount(get(emailAccount))); -} - -template void impl_IAccessoryManager2::DisableEmailNotificationEmailAccount(hstring_ref emailAccount) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DisableEmailNotificationEmailAccount(get(emailAccount))); -} - -template void impl_IAccessoryManager2::EnableEmailNotificationFolderFilter(hstring_ref emailAccount, const Windows::Foundation::Collections::IVectorView & folders) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableEmailNotificationFolderFilter(get(emailAccount), get(folders))); -} - -template void impl_IAccessoryManager2::UpdateEmailReadStatus(const Windows::Phone::Notification::Management::BinaryId & messageEntryId, bool isRead) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateEmailReadStatus(get(messageEntryId), isRead)); -} - -template void impl_IAccessoryManager3::SnoozeAlarmByInstanceId(hstring_ref instanceId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SnoozeAlarmByInstanceId(get(instanceId))); -} - -template void impl_IAccessoryManager3::DismissAlarmByInstanceId(hstring_ref instanceId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DismissAlarmByInstanceId(get(instanceId))); -} - -template void impl_IAccessoryManager3::SnoozeReminderByInstanceId(hstring_ref instanceId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SnoozeReminderByInstanceId(get(instanceId))); -} - -template void impl_IAccessoryManager3::DismissReminderByInstanceId(hstring_ref instanceId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DismissReminderByInstanceId(get(instanceId))); -} - -inline hstring AccessoryManager::RegisterAccessoryApp() -{ - return get_activation_factory().RegisterAccessoryApp(); -} - -inline Windows::Phone::Notification::Management::IAccessoryNotificationTriggerDetails AccessoryManager::GetNextTriggerDetails() -{ - return get_activation_factory().GetNextTriggerDetails(); -} - -inline void AccessoryManager::ProcessTriggerDetails(const Windows::Phone::Notification::Management::IAccessoryNotificationTriggerDetails & pDetails) -{ - get_activation_factory().ProcessTriggerDetails(pDetails); -} - -inline Windows::Foundation::Collections::IVectorView AccessoryManager::PhoneLineDetails() -{ - return get_activation_factory().PhoneLineDetails(); -} - -inline Windows::Phone::Notification::Management::PhoneLineDetails AccessoryManager::GetPhoneLineDetails(GUID phoneLine) -{ - return get_activation_factory().GetPhoneLineDetails(phoneLine); -} - -inline void AccessoryManager::AcceptPhoneCall(uint32_t phoneCallId) -{ - get_activation_factory().AcceptPhoneCall(phoneCallId); -} - -inline void AccessoryManager::AcceptPhoneCall(uint32_t phoneCallId, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) -{ - get_activation_factory().AcceptPhoneCall(phoneCallId, endPoint); -} - -inline void AccessoryManager::AcceptPhoneCallWithVideo(uint32_t phoneCallId) -{ - get_activation_factory().AcceptPhoneCallWithVideo(phoneCallId); -} - -inline void AccessoryManager::AcceptPhoneCallWithVideo(uint32_t phoneCallId, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) -{ - get_activation_factory().AcceptPhoneCallWithVideo(phoneCallId, endPoint); -} - -inline void AccessoryManager::RejectPhoneCall(uint32_t phoneCallId) -{ - get_activation_factory().RejectPhoneCall(phoneCallId); -} - -inline void AccessoryManager::RejectPhoneCall(uint32_t phoneCallId, uint32_t textResponseID) -{ - get_activation_factory().RejectPhoneCall(phoneCallId, textResponseID); -} - -inline void AccessoryManager::MakePhoneCall(GUID phoneLine, hstring_ref phoneNumber) -{ - get_activation_factory().MakePhoneCall(phoneLine, phoneNumber); -} - -inline void AccessoryManager::MakePhoneCall(GUID phoneLine, hstring_ref phoneNumber, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) -{ - get_activation_factory().MakePhoneCall(phoneLine, phoneNumber, endPoint); -} - -inline void AccessoryManager::MakePhoneCallWithVideo(GUID phoneLine, hstring_ref phoneNumber) -{ - get_activation_factory().MakePhoneCallWithVideo(phoneLine, phoneNumber); -} - -inline void AccessoryManager::MakePhoneCallWithVideo(GUID phoneLine, hstring_ref phoneNumber, Windows::Phone::Notification::Management::PhoneCallAudioEndpoint endPoint) -{ - get_activation_factory().MakePhoneCallWithVideo(phoneLine, phoneNumber, endPoint); -} - -inline void AccessoryManager::SwapPhoneCalls(uint32_t phoneCallIdToHold, uint32_t phoneCallIdOnHold) -{ - get_activation_factory().SwapPhoneCalls(phoneCallIdToHold, phoneCallIdOnHold); -} - -inline void AccessoryManager::HoldPhoneCall(uint32_t phoneCallId, bool holdCall) -{ - get_activation_factory().HoldPhoneCall(phoneCallId, holdCall); -} - -inline void AccessoryManager::EndPhoneCall(uint32_t phoneCallId) -{ - get_activation_factory().EndPhoneCall(phoneCallId); -} - -inline void AccessoryManager::PhoneMute(bool value) -{ - get_activation_factory().PhoneMute(value); -} - -inline bool AccessoryManager::PhoneMute() -{ - return get_activation_factory().PhoneMute(); -} - -inline void AccessoryManager::PhoneCallAudioEndpoint(Windows::Phone::Notification::Management::PhoneCallAudioEndpoint value) -{ - get_activation_factory().PhoneCallAudioEndpoint(value); -} - -inline Windows::Phone::Notification::Management::PhoneCallAudioEndpoint AccessoryManager::PhoneCallAudioEndpoint() -{ - return get_activation_factory().PhoneCallAudioEndpoint(); -} - -inline void AccessoryManager::SnoozeAlarm(GUID alarmId) -{ - get_activation_factory().SnoozeAlarm(alarmId); -} - -inline void AccessoryManager::SnoozeAlarm(GUID alarmId, const Windows::Foundation::TimeSpan & timeSpan) -{ - get_activation_factory().SnoozeAlarm(alarmId, timeSpan); -} - -inline void AccessoryManager::DismissAlarm(GUID alarmId) -{ - get_activation_factory().DismissAlarm(alarmId); -} - -inline void AccessoryManager::SnoozeReminder(GUID reminderId) -{ - get_activation_factory().SnoozeReminder(reminderId); -} - -inline void AccessoryManager::SnoozeReminder(GUID reminderId, const Windows::Foundation::TimeSpan & timeSpan) -{ - get_activation_factory().SnoozeReminder(reminderId, timeSpan); -} - -inline void AccessoryManager::DismissReminder(GUID reminderId) -{ - get_activation_factory().DismissReminder(reminderId); -} - -inline Windows::Phone::Notification::Management::MediaMetadata AccessoryManager::GetMediaMetadata() -{ - return get_activation_factory().GetMediaMetadata(); -} - -inline Windows::Phone::Notification::Management::PlaybackCapability AccessoryManager::MediaPlaybackCapabilities() -{ - return get_activation_factory().MediaPlaybackCapabilities(); -} - -inline Windows::Phone::Notification::Management::PlaybackStatus AccessoryManager::MediaPlaybackStatus() -{ - return get_activation_factory().MediaPlaybackStatus(); -} - -inline void AccessoryManager::PerformMediaPlaybackCommand(Windows::Phone::Notification::Management::PlaybackCommand command) -{ - get_activation_factory().PerformMediaPlaybackCommand(command); -} - -inline bool AccessoryManager::DoNotDisturbEnabled() -{ - return get_activation_factory().DoNotDisturbEnabled(); -} - -inline bool AccessoryManager::DrivingModeEnabled() -{ - return get_activation_factory().DrivingModeEnabled(); -} - -inline bool AccessoryManager::BatterySaverState() -{ - return get_activation_factory().BatterySaverState(); -} - -inline Windows::Foundation::Collections::IMapView AccessoryManager::GetApps() -{ - return get_activation_factory().GetApps(); -} - -inline void AccessoryManager::EnableNotificationsForApplication(hstring_ref appId) -{ - get_activation_factory().EnableNotificationsForApplication(appId); -} - -inline void AccessoryManager::DisableNotificationsForApplication(hstring_ref appId) -{ - get_activation_factory().DisableNotificationsForApplication(appId); -} - -inline bool AccessoryManager::IsNotificationEnabledForApplication(hstring_ref appId) -{ - return get_activation_factory().IsNotificationEnabledForApplication(appId); -} - -inline int32_t AccessoryManager::GetEnabledAccessoryNotificationTypes() -{ - return get_activation_factory().GetEnabledAccessoryNotificationTypes(); -} - -inline void AccessoryManager::EnableAccessoryNotificationTypes(int32_t accessoryNotificationTypes) -{ - get_activation_factory().EnableAccessoryNotificationTypes(accessoryNotificationTypes); -} - -inline void AccessoryManager::DisableAllAccessoryNotificationTypes() -{ - get_activation_factory().DisableAllAccessoryNotificationTypes(); -} - -inline bool AccessoryManager::GetUserConsent() -{ - return get_activation_factory().GetUserConsent(); -} - -inline Windows::Storage::Streams::IRandomAccessStreamReference AccessoryManager::GetAppIcon(hstring_ref appId) -{ - return get_activation_factory().GetAppIcon(appId); -} - -inline void AccessoryManager::RingDevice() -{ - get_activation_factory().RingDevice(); -} - -inline Windows::Foundation::Collections::IVectorView AccessoryManager::SpeedDialList() -{ - return get_activation_factory().SpeedDialList(); -} - -inline void AccessoryManager::ClearToast(hstring_ref instanceId) -{ - get_activation_factory().ClearToast(instanceId); -} - -inline bool AccessoryManager::IsPhonePinLocked() -{ - return get_activation_factory().IsPhonePinLocked(); -} - -inline void AccessoryManager::IncreaseVolume(int32_t step) -{ - get_activation_factory().IncreaseVolume(step); -} - -inline void AccessoryManager::DecreaseVolume(int32_t step) -{ - get_activation_factory().DecreaseVolume(step); -} - -inline void AccessoryManager::SetMute(bool mute) -{ - get_activation_factory().SetMute(mute); -} - -inline void AccessoryManager::SetRingerVibrate(bool ringer, bool vibrate) -{ - get_activation_factory().SetRingerVibrate(ringer, vibrate); -} - -inline Windows::Phone::Notification::Management::VolumeInfo AccessoryManager::VolumeInfo() -{ - return get_activation_factory().VolumeInfo(); -} - -inline Windows::Foundation::Collections::IVectorView AccessoryManager::GetAllEmailAccounts() -{ - return get_activation_factory().GetAllEmailAccounts(); -} - -inline Windows::Foundation::Collections::IVectorView AccessoryManager::GetFolders(hstring_ref emailAccount) -{ - return get_activation_factory().GetFolders(emailAccount); -} - -inline void AccessoryManager::EnableEmailNotificationEmailAccount(hstring_ref emailAccount) -{ - get_activation_factory().EnableEmailNotificationEmailAccount(emailAccount); -} - -inline void AccessoryManager::DisableEmailNotificationEmailAccount(hstring_ref emailAccount) -{ - get_activation_factory().DisableEmailNotificationEmailAccount(emailAccount); -} - -inline void AccessoryManager::EnableEmailNotificationFolderFilter(hstring_ref emailAccount, const Windows::Foundation::Collections::IVectorView & folders) -{ - get_activation_factory().EnableEmailNotificationFolderFilter(emailAccount, folders); -} - -inline void AccessoryManager::UpdateEmailReadStatus(const Windows::Phone::Notification::Management::BinaryId & messageEntryId, bool isRead) -{ - get_activation_factory().UpdateEmailReadStatus(messageEntryId, isRead); -} - -inline void AccessoryManager::SnoozeAlarmByInstanceId(hstring_ref instanceId) -{ - get_activation_factory().SnoozeAlarmByInstanceId(instanceId); -} - -inline void AccessoryManager::DismissAlarmByInstanceId(hstring_ref instanceId) -{ - get_activation_factory().DismissAlarmByInstanceId(instanceId); -} - -inline void AccessoryManager::SnoozeReminderByInstanceId(hstring_ref instanceId) -{ - get_activation_factory().SnoozeReminderByInstanceId(instanceId); -} - -inline void AccessoryManager::DismissReminderByInstanceId(hstring_ref instanceId) -{ - get_activation_factory().DismissReminderByInstanceId(instanceId); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.PersonalInformation.Provisioning.h b/10.0.14393.0/winrt/Windows.Phone.PersonalInformation.Provisioning.h deleted file mode 100644 index ccdbcbbed..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.PersonalInformation.Provisioning.h +++ /dev/null @@ -1,165 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Phone.PersonalInformation.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Phone.PersonalInformation.Provisioning.3.h" -#include "Windows.Phone.PersonalInformation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AssociateNetworkAccountAsync(abi_arg_in store, abi_arg_in networkName, abi_arg_in networkAccountId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().AssociateNetworkAccountAsync(*reinterpret_cast(&store), *reinterpret_cast(&networkName), *reinterpret_cast(&networkAccountId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportVcardToSystemAsync(abi_arg_in stream, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ImportVcardToSystemAsync(*reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AssociateSocialNetworkAccountAsync(abi_arg_in store, abi_arg_in networkName, abi_arg_in networkAccountId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().AssociateSocialNetworkAccountAsync(*reinterpret_cast(&store), *reinterpret_cast(&networkName), *reinterpret_cast(&networkAccountId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ImportSmsToSystemAsync(bool incoming, bool read, abi_arg_in body, abi_arg_in sender, abi_arg_in> recipients, abi_arg_in deliveryTime, abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().ImportSmsToSystemAsync(incoming, read, *reinterpret_cast(&body), *reinterpret_cast(&sender), *reinterpret_cast *>(&recipients), *reinterpret_cast(&deliveryTime))); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportMmsToSystemAsync(bool incoming, bool read, abi_arg_in subject, abi_arg_in sender, abi_arg_in> recipients, abi_arg_in deliveryTime, abi_arg_in>> attachments, abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().ImportMmsToSystemAsync(incoming, read, *reinterpret_cast(&subject), *reinterpret_cast(&sender), *reinterpret_cast *>(&recipients), *reinterpret_cast(&deliveryTime), *reinterpret_cast> *>(&attachments))); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::PersonalInformation::Provisioning { - -template Windows::Foundation::IAsyncAction impl_IContactPartnerProvisioningManagerStatics::AssociateNetworkAccountAsync(const Windows::Phone::PersonalInformation::ContactStore & store, hstring_ref networkName, hstring_ref networkAccountId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_AssociateNetworkAccountAsync(get(store), get(networkName), get(networkAccountId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IContactPartnerProvisioningManagerStatics::ImportVcardToSystemAsync(const Windows::Storage::Streams::IInputStream & stream) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ImportVcardToSystemAsync(get(stream), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IContactPartnerProvisioningManagerStatics2::AssociateSocialNetworkAccountAsync(const Windows::Phone::PersonalInformation::ContactStore & store, hstring_ref networkName, hstring_ref networkAccountId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_AssociateSocialNetworkAccountAsync(get(store), get(networkName), get(networkAccountId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IMessagePartnerProvisioningManagerStatics::ImportSmsToSystemAsync(bool incoming, bool read, hstring_ref body, hstring_ref sender, const Windows::Foundation::Collections::IVectorView & recipients, const Windows::Foundation::DateTime & deliveryTime) const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_ImportSmsToSystemAsync(incoming, read, get(body), get(sender), get(recipients), get(deliveryTime), put(action))); - return action; -} - -template Windows::Foundation::IAsyncAction impl_IMessagePartnerProvisioningManagerStatics::ImportMmsToSystemAsync(bool incoming, bool read, hstring_ref subject, hstring_ref sender, const Windows::Foundation::Collections::IVectorView & recipients, const Windows::Foundation::DateTime & deliveryTime, const Windows::Foundation::Collections::IVectorView> & attachments) const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_ImportMmsToSystemAsync(incoming, read, get(subject), get(sender), get(recipients), get(deliveryTime), get(attachments), put(action))); - return action; -} - -inline Windows::Foundation::IAsyncAction ContactPartnerProvisioningManager::AssociateNetworkAccountAsync(const Windows::Phone::PersonalInformation::ContactStore & store, hstring_ref networkName, hstring_ref networkAccountId) -{ - return get_activation_factory().AssociateNetworkAccountAsync(store, networkName, networkAccountId); -} - -inline Windows::Foundation::IAsyncAction ContactPartnerProvisioningManager::ImportVcardToSystemAsync(const Windows::Storage::Streams::IInputStream & stream) -{ - return get_activation_factory().ImportVcardToSystemAsync(stream); -} - -inline Windows::Foundation::IAsyncAction ContactPartnerProvisioningManager::AssociateSocialNetworkAccountAsync(const Windows::Phone::PersonalInformation::ContactStore & store, hstring_ref networkName, hstring_ref networkAccountId) -{ - return get_activation_factory().AssociateSocialNetworkAccountAsync(store, networkName, networkAccountId); -} - -inline Windows::Foundation::IAsyncAction MessagePartnerProvisioningManager::ImportSmsToSystemAsync(bool incoming, bool read, hstring_ref body, hstring_ref sender, const Windows::Foundation::Collections::IVectorView & recipients, const Windows::Foundation::DateTime & deliveryTime) -{ - return get_activation_factory().ImportSmsToSystemAsync(incoming, read, body, sender, recipients, deliveryTime); -} - -inline Windows::Foundation::IAsyncAction MessagePartnerProvisioningManager::ImportMmsToSystemAsync(bool incoming, bool read, hstring_ref subject, hstring_ref sender, const Windows::Foundation::Collections::IVectorView & recipients, const Windows::Foundation::DateTime & deliveryTime, const Windows::Foundation::Collections::IVectorView> & attachments) -{ - return get_activation_factory().ImportMmsToSystemAsync(incoming, read, subject, sender, recipients, deliveryTime, attachments); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.PersonalInformation.h b/10.0.14393.0/winrt/Windows.Phone.PersonalInformation.h deleted file mode 100644 index b5104675c..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.PersonalInformation.h +++ /dev/null @@ -1,2276 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Phone.PersonalInformation.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Country(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Country()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Country(abi_arg_in value) noexcept override - { - try - { - this->shim().Country(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Locality(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Locality()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Locality(abi_arg_in value) noexcept override - { - try - { - this->shim().Locality(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Region(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Region()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Region(abi_arg_in value) noexcept override - { - try - { - this->shim().Region(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PostalCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PostalCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PostalCode(abi_arg_in value) noexcept override - { - try - { - this->shim().PostalCode(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StreetAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StreetAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StreetAddress(abi_arg_in value) noexcept override - { - try - { - this->shim().StreetAddress(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeType(Windows::Phone::PersonalInformation::ContactChangeType * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RevisionNumber(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().RevisionNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FamilyName(abi_arg_in value) noexcept override - { - try - { - this->shim().FamilyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GivenName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GivenName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GivenName(abi_arg_in value) noexcept override - { - try - { - this->shim().GivenName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HonorificPrefix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HonorificPrefix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HonorificPrefix(abi_arg_in value) noexcept override - { - try - { - this->shim().HonorificPrefix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HonorificSuffix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HonorificSuffix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HonorificSuffix(abi_arg_in value) noexcept override - { - try - { - this->shim().HonorificSuffix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDisplayPictureAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDisplayPictureAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDisplayPictureAsync(abi_arg_in stream, abi_arg_out action) noexcept override - { - try - { - *action = detach(this->shim().SetDisplayPictureAsync(*reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *action = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayPicture(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayPicture()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPropertiesAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPropertiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ToVcardAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ToVcardAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ToVcardWithOptionsAsync(Windows::Phone::PersonalInformation::VCardFormat format, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ToVcardAsync(format)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayPictureDate(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().DisplayPictureDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayPictureDate(abi_arg_in returnValue) noexcept override - { - try - { - this->shim().DisplayPictureDate(*reinterpret_cast(&returnValue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ParseVcardAsync(abi_arg_in vcard, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ParseVcardAsync(*reinterpret_cast(&vcard))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DesiredFields(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DesiredFields()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrderBy(Windows::Phone::PersonalInformation::ContactQueryResultOrdering * value) noexcept override - { - try - { - *value = detach(this->shim().OrderBy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OrderBy(Windows::Phone::PersonalInformation::ContactQueryResultOrdering value) noexcept override - { - try - { - this->shim().OrderBy(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetContactCountAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetContactCountAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetContactsAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetContactsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetContactsAsyncInRange(uint32_t startIndex, uint32_t maxNumberOfItems, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetContactsAsync(startIndex, maxNumberOfItems)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentQueryOptions(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentQueryOptions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindContactByRemoteIdAsync(abi_arg_in id, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindContactByRemoteIdAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindContactByIdAsync(abi_arg_in id, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindContactByIdAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteContactAsync(abi_arg_in id, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DeleteContactAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateContactQueryDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateContactQuery()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateContactQueryWithOptions(abi_arg_in options, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateContactQuery(*reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().DeleteAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RevisionNumber(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().RevisionNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetChangesAsync(uint64_t baseRevisionNumber, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetChangesAsync(baseRevisionNumber)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadExtendedPropertiesAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().LoadExtendedPropertiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveExtendedPropertiesAsync(abi_arg_in> data, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveExtendedPropertiesAsync(*reinterpret_cast *>(&data))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMeContactAsync(abi_arg_in id, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateMeContactAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateOrOpenAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateOrOpenAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateOrOpenWithOptionsAsync(Windows::Phone::PersonalInformation::ContactStoreSystemAccessMode access, Windows::Phone::PersonalInformation::ContactStoreApplicationAccessMode sharing, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateOrOpenAsync(access, sharing)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GivenName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GivenName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HonorificPrefix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HonorificPrefix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HonorificSuffix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HonorificSuffix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdditionalName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdditionalName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Address(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Address()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OtherAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Email(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Email()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WorkAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WorkAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WorkTelephone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WorkTelephone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_JobTitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().JobTitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Birthdate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Birthdate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Anniversary(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Anniversary()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Telephone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Telephone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MobileTelephone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MobileTelephone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Url(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Url()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Notes(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Notes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WorkFax(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WorkFax()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Children(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Children()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SignificantOther(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SignificantOther()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompanyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompanyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompanyTelephone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompanyTelephone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HomeFax(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HomeFax()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlternateTelephone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlternateTelephone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Manager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Manager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Nickname(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Nickname()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OfficeLocation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OfficeLocation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WorkEmail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WorkEmail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YomiGivenName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YomiGivenName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YomiFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YomiFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YomiCompanyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YomiCompanyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherEmail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OtherEmail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlternateMobileTelephone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlternateMobileTelephone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlternateWorkTelephone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlternateWorkTelephone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Store(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Store()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetExtendedPropertiesAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetExtendedPropertiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReplaceExistingContactAsync(abi_arg_in id, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ReplaceExistingContactAsync(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateStoredContact(abi_arg_in store, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateStoredContact(*reinterpret_cast(&store))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStoredContactFromInformation(abi_arg_in store, abi_arg_in contact, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateStoredContactFromInformation(*reinterpret_cast(&store), *reinterpret_cast(&contact))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::PersonalInformation { - -template hstring impl_IContactAddress::Country() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Country(put(value))); - return value; -} - -template void impl_IContactAddress::Country(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Country(get(value))); -} - -template hstring impl_IContactAddress::Locality() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Locality(put(value))); - return value; -} - -template void impl_IContactAddress::Locality(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Locality(get(value))); -} - -template hstring impl_IContactAddress::Region() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Region(put(value))); - return value; -} - -template void impl_IContactAddress::Region(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Region(get(value))); -} - -template hstring impl_IContactAddress::PostalCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PostalCode(put(value))); - return value; -} - -template void impl_IContactAddress::PostalCode(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PostalCode(get(value))); -} - -template hstring impl_IContactAddress::StreetAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StreetAddress(put(value))); - return value; -} - -template void impl_IContactAddress::StreetAddress(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StreetAddress(get(value))); -} - -template hstring impl_IContactInformation::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IContactInformation::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IContactInformation::FamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FamilyName(put(value))); - return value; -} - -template void impl_IContactInformation::FamilyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FamilyName(get(value))); -} - -template hstring impl_IContactInformation::GivenName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GivenName(put(value))); - return value; -} - -template void impl_IContactInformation::GivenName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GivenName(get(value))); -} - -template hstring impl_IContactInformation::HonorificPrefix() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HonorificPrefix(put(value))); - return value; -} - -template void impl_IContactInformation::HonorificPrefix(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HonorificPrefix(get(value))); -} - -template hstring impl_IContactInformation::HonorificSuffix() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HonorificSuffix(put(value))); - return value; -} - -template void impl_IContactInformation::HonorificSuffix(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HonorificSuffix(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_IContactInformation::GetDisplayPictureAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDisplayPictureAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IContactInformation::SetDisplayPictureAsync(const Windows::Storage::Streams::IInputStream & stream) const -{ - Windows::Foundation::IAsyncAction action; - check_hresult(static_cast(static_cast(*this))->abi_SetDisplayPictureAsync(get(stream), put(action))); - return action; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IContactInformation::DisplayPicture() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_DisplayPicture(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactInformation::GetPropertiesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPropertiesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IContactInformation::ToVcardAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ToVcardAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IContactInformation::ToVcardAsync(Windows::Phone::PersonalInformation::VCardFormat format) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ToVcardWithOptionsAsync(format, put(operation))); - return operation; -} - -template Windows::Foundation::DateTime impl_IContactInformation2::DisplayPictureDate() const -{ - Windows::Foundation::DateTime returnValue {}; - check_hresult(static_cast(static_cast(*this))->get_DisplayPictureDate(put(returnValue))); - return returnValue; -} - -template void impl_IContactInformation2::DisplayPictureDate(const Windows::Foundation::DateTime & returnValue) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayPictureDate(get(returnValue))); -} - -template Windows::Foundation::IAsyncOperation impl_IContactInformationStatics::ParseVcardAsync(const Windows::Storage::Streams::IInputStream & vcard) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ParseVcardAsync(get(vcard), put(operation))); - return operation; -} - -template Windows::Phone::PersonalInformation::ContactStore impl_IStoredContact::Store() const -{ - Windows::Phone::PersonalInformation::ContactStore value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Store(put(value))); - return value; -} - -template hstring impl_IStoredContact::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IStoredContact::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template void impl_IStoredContact::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template Windows::Foundation::IAsyncOperation> impl_IStoredContact::GetExtendedPropertiesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetExtendedPropertiesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStoredContact::SaveAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IStoredContact::ReplaceExistingContactAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ReplaceExistingContactAsync(get(id), put(result))); - return result; -} - -template Windows::Phone::PersonalInformation::StoredContact impl_IStoredContactFactory::CreateStoredContact(const Windows::Phone::PersonalInformation::ContactStore & store) const -{ - Windows::Phone::PersonalInformation::StoredContact result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateStoredContact(get(store), put(result))); - return result; -} - -template Windows::Phone::PersonalInformation::StoredContact impl_IStoredContactFactory::CreateStoredContactFromInformation(const Windows::Phone::PersonalInformation::ContactStore & store, const Windows::Phone::PersonalInformation::ContactInformation & contact) const -{ - Windows::Phone::PersonalInformation::StoredContact result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateStoredContactFromInformation(get(store), get(contact), put(result))); - return result; -} - -template hstring impl_IKnownContactPropertiesStatics::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::FamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FamilyName(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::GivenName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GivenName(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::HonorificPrefix() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HonorificPrefix(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::HonorificSuffix() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HonorificSuffix(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::AdditionalName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AdditionalName(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::Address() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Address(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::OtherAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OtherAddress(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::Email() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Email(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::WorkAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WorkAddress(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::WorkTelephone() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WorkTelephone(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::JobTitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_JobTitle(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::Birthdate() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Birthdate(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::Anniversary() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Anniversary(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::Telephone() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Telephone(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::MobileTelephone() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MobileTelephone(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::Url() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Url(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::Notes() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Notes(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::WorkFax() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WorkFax(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::Children() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Children(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::SignificantOther() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SignificantOther(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::CompanyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CompanyName(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::CompanyTelephone() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CompanyTelephone(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::HomeFax() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HomeFax(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::AlternateTelephone() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlternateTelephone(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::Manager() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Manager(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::Nickname() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Nickname(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::OfficeLocation() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OfficeLocation(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::WorkEmail() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WorkEmail(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::YomiGivenName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_YomiGivenName(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::YomiFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_YomiFamilyName(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::YomiCompanyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_YomiCompanyName(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::OtherEmail() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OtherEmail(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::AlternateMobileTelephone() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlternateMobileTelephone(put(value))); - return value; -} - -template hstring impl_IKnownContactPropertiesStatics::AlternateWorkTelephone() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlternateWorkTelephone(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IContactQueryResult::GetContactCountAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetContactCountAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactQueryResult::GetContactsAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetContactsAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactQueryResult::GetContactsAsync(uint32_t startIndex, uint32_t maxNumberOfItems) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetContactsAsyncInRange(startIndex, maxNumberOfItems, put(operation))); - return operation; -} - -template Windows::Phone::PersonalInformation::ContactQueryOptions impl_IContactQueryResult::GetCurrentQueryOptions() const -{ - Windows::Phone::PersonalInformation::ContactQueryOptions value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentQueryOptions(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IContactQueryOptions::DesiredFields() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DesiredFields(put(value))); - return value; -} - -template Windows::Phone::PersonalInformation::ContactQueryResultOrdering impl_IContactQueryOptions::OrderBy() const -{ - Windows::Phone::PersonalInformation::ContactQueryResultOrdering value {}; - check_hresult(static_cast(static_cast(*this))->get_OrderBy(&value)); - return value; -} - -template void impl_IContactQueryOptions::OrderBy(Windows::Phone::PersonalInformation::ContactQueryResultOrdering value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OrderBy(value)); -} - -template Windows::Foundation::IAsyncOperation impl_IContactStore::FindContactByRemoteIdAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FindContactByRemoteIdAsync(get(id), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IContactStore::FindContactByIdAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FindContactByIdAsync(get(id), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IContactStore::DeleteContactAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteContactAsync(get(id), put(result))); - return result; -} - -template Windows::Phone::PersonalInformation::ContactQueryResult impl_IContactStore::CreateContactQuery() const -{ - Windows::Phone::PersonalInformation::ContactQueryResult result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateContactQueryDefault(put(result))); - return result; -} - -template Windows::Phone::PersonalInformation::ContactQueryResult impl_IContactStore::CreateContactQuery(const Windows::Phone::PersonalInformation::ContactQueryOptions & options) const -{ - Windows::Phone::PersonalInformation::ContactQueryResult result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateContactQueryWithOptions(get(options), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_IContactStore::DeleteAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(put(result))); - return result; -} - -template uint64_t impl_IContactStore::RevisionNumber() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RevisionNumber(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactStore::GetChangesAsync(uint64_t baseRevisionNumber) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetChangesAsync(baseRevisionNumber, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IContactStore::LoadExtendedPropertiesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_LoadExtendedPropertiesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IContactStore::SaveExtendedPropertiesAsync(const Windows::Foundation::Collections::IMapView & data) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveExtendedPropertiesAsync(get(data), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IContactStore2::CreateMeContactAsync(hstring_ref id) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateMeContactAsync(get(id), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IContactStoreStatics::CreateOrOpenAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateOrOpenAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IContactStoreStatics::CreateOrOpenAsync(Windows::Phone::PersonalInformation::ContactStoreSystemAccessMode access, Windows::Phone::PersonalInformation::ContactStoreApplicationAccessMode sharing) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateOrOpenWithOptionsAsync(access, sharing, put(operation))); - return operation; -} - -template Windows::Phone::PersonalInformation::ContactChangeType impl_IContactChangeRecord::ChangeType() const -{ - Windows::Phone::PersonalInformation::ContactChangeType value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeType(&value)); - return value; -} - -template uint64_t impl_IContactChangeRecord::RevisionNumber() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RevisionNumber(&value)); - return value; -} - -template hstring impl_IContactChangeRecord::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IContactChangeRecord::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -inline ContactAddress::ContactAddress() : - ContactAddress(activate_instance()) -{} - -inline ContactInformation::ContactInformation() : - ContactInformation(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation ContactInformation::ParseVcardAsync(const Windows::Storage::Streams::IInputStream & vcard) -{ - return get_activation_factory().ParseVcardAsync(vcard); -} - -inline ContactQueryOptions::ContactQueryOptions() : - ContactQueryOptions(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation ContactStore::CreateOrOpenAsync() -{ - return get_activation_factory().CreateOrOpenAsync(); -} - -inline Windows::Foundation::IAsyncOperation ContactStore::CreateOrOpenAsync(Windows::Phone::PersonalInformation::ContactStoreSystemAccessMode access, Windows::Phone::PersonalInformation::ContactStoreApplicationAccessMode sharing) -{ - return get_activation_factory().CreateOrOpenAsync(access, sharing); -} - -inline hstring KnownContactProperties::DisplayName() -{ - return get_activation_factory().DisplayName(); -} - -inline hstring KnownContactProperties::FamilyName() -{ - return get_activation_factory().FamilyName(); -} - -inline hstring KnownContactProperties::GivenName() -{ - return get_activation_factory().GivenName(); -} - -inline hstring KnownContactProperties::HonorificPrefix() -{ - return get_activation_factory().HonorificPrefix(); -} - -inline hstring KnownContactProperties::HonorificSuffix() -{ - return get_activation_factory().HonorificSuffix(); -} - -inline hstring KnownContactProperties::AdditionalName() -{ - return get_activation_factory().AdditionalName(); -} - -inline hstring KnownContactProperties::Address() -{ - return get_activation_factory().Address(); -} - -inline hstring KnownContactProperties::OtherAddress() -{ - return get_activation_factory().OtherAddress(); -} - -inline hstring KnownContactProperties::Email() -{ - return get_activation_factory().Email(); -} - -inline hstring KnownContactProperties::WorkAddress() -{ - return get_activation_factory().WorkAddress(); -} - -inline hstring KnownContactProperties::WorkTelephone() -{ - return get_activation_factory().WorkTelephone(); -} - -inline hstring KnownContactProperties::JobTitle() -{ - return get_activation_factory().JobTitle(); -} - -inline hstring KnownContactProperties::Birthdate() -{ - return get_activation_factory().Birthdate(); -} - -inline hstring KnownContactProperties::Anniversary() -{ - return get_activation_factory().Anniversary(); -} - -inline hstring KnownContactProperties::Telephone() -{ - return get_activation_factory().Telephone(); -} - -inline hstring KnownContactProperties::MobileTelephone() -{ - return get_activation_factory().MobileTelephone(); -} - -inline hstring KnownContactProperties::Url() -{ - return get_activation_factory().Url(); -} - -inline hstring KnownContactProperties::Notes() -{ - return get_activation_factory().Notes(); -} - -inline hstring KnownContactProperties::WorkFax() -{ - return get_activation_factory().WorkFax(); -} - -inline hstring KnownContactProperties::Children() -{ - return get_activation_factory().Children(); -} - -inline hstring KnownContactProperties::SignificantOther() -{ - return get_activation_factory().SignificantOther(); -} - -inline hstring KnownContactProperties::CompanyName() -{ - return get_activation_factory().CompanyName(); -} - -inline hstring KnownContactProperties::CompanyTelephone() -{ - return get_activation_factory().CompanyTelephone(); -} - -inline hstring KnownContactProperties::HomeFax() -{ - return get_activation_factory().HomeFax(); -} - -inline hstring KnownContactProperties::AlternateTelephone() -{ - return get_activation_factory().AlternateTelephone(); -} - -inline hstring KnownContactProperties::Manager() -{ - return get_activation_factory().Manager(); -} - -inline hstring KnownContactProperties::Nickname() -{ - return get_activation_factory().Nickname(); -} - -inline hstring KnownContactProperties::OfficeLocation() -{ - return get_activation_factory().OfficeLocation(); -} - -inline hstring KnownContactProperties::WorkEmail() -{ - return get_activation_factory().WorkEmail(); -} - -inline hstring KnownContactProperties::YomiGivenName() -{ - return get_activation_factory().YomiGivenName(); -} - -inline hstring KnownContactProperties::YomiFamilyName() -{ - return get_activation_factory().YomiFamilyName(); -} - -inline hstring KnownContactProperties::YomiCompanyName() -{ - return get_activation_factory().YomiCompanyName(); -} - -inline hstring KnownContactProperties::OtherEmail() -{ - return get_activation_factory().OtherEmail(); -} - -inline hstring KnownContactProperties::AlternateMobileTelephone() -{ - return get_activation_factory().AlternateMobileTelephone(); -} - -inline hstring KnownContactProperties::AlternateWorkTelephone() -{ - return get_activation_factory().AlternateWorkTelephone(); -} - -inline StoredContact::StoredContact(const Windows::Phone::PersonalInformation::ContactStore & store) : - StoredContact(get_activation_factory().CreateStoredContact(store)) -{} - -inline StoredContact::StoredContact(const Windows::Phone::PersonalInformation::ContactStore & store, const Windows::Phone::PersonalInformation::ContactInformation & contact) : - StoredContact(get_activation_factory().CreateStoredContactFromInformation(store, contact)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.Speech.Recognition.h b/10.0.14393.0/winrt/Windows.Phone.Speech.Recognition.h deleted file mode 100644 index f097380b5..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.Speech.Recognition.h +++ /dev/null @@ -1,14 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Phone.Speech.Recognition.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.StartScreen.h b/10.0.14393.0/winrt/Windows.Phone.StartScreen.h deleted file mode 100644 index 55ce7183d..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.StartScreen.h +++ /dev/null @@ -1,387 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.Notifications.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Phone.StartScreen.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPinnedToStart(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPinnedToStart()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().UpdateAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().DeleteAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetTileForSim2(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetTileForSim2()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateDisplayNameForSim1Async(abi_arg_in name, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().UpdateDisplayNameForSim1Async(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTileUpdaterForSim1(abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateTileUpdaterForSim1()); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTileUpdaterForSim2(abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateTileUpdaterForSim2()); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBadgeUpdaterForSim1(abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateBadgeUpdaterForSim1()); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBadgeUpdaterForSim2(abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateBadgeUpdaterForSim2()); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateToastNotifierForSim1(abi_arg_out notifier) noexcept override - { - try - { - *notifier = detach(this->shim().CreateToastNotifierForSim1()); - return S_OK; - } - catch (...) - { - *notifier = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateToastNotifierForSim2(abi_arg_out notifier) noexcept override - { - try - { - *notifier = detach(this->shim().CreateToastNotifierForSim2()); - return S_OK; - } - catch (...) - { - *notifier = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateToastNotifierForSecondaryTile(abi_arg_in tileId, abi_arg_out notifier) noexcept override - { - try - { - *notifier = detach(this->shim().CreateToastNotifierForSecondaryTile(*reinterpret_cast(&tileId))); - return S_OK; - } - catch (...) - { - *notifier = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::StartScreen { - -template Windows::UI::Notifications::ToastNotifier impl_IToastNotificationManagerStatics3::CreateToastNotifierForSecondaryTile(hstring_ref tileId) const -{ - Windows::UI::Notifications::ToastNotifier notifier { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateToastNotifierForSecondaryTile(get(tileId), put(notifier))); - return notifier; -} - -template void impl_IDualSimTile::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IDualSimTile::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template bool impl_IDualSimTile::IsPinnedToStart() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPinnedToStart(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDualSimTile::CreateAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDualSimTile::UpdateAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDualSimTile::DeleteAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(put(operation))); - return operation; -} - -template Windows::Phone::StartScreen::DualSimTile impl_IDualSimTileStatics::GetTileForSim2() const -{ - Windows::Phone::StartScreen::DualSimTile result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetTileForSim2(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDualSimTileStatics::UpdateDisplayNameForSim1Async(hstring_ref name) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateDisplayNameForSim1Async(get(name), put(operation))); - return operation; -} - -template Windows::UI::Notifications::TileUpdater impl_IDualSimTileStatics::CreateTileUpdaterForSim1() const -{ - Windows::UI::Notifications::TileUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileUpdaterForSim1(put(updater))); - return updater; -} - -template Windows::UI::Notifications::TileUpdater impl_IDualSimTileStatics::CreateTileUpdaterForSim2() const -{ - Windows::UI::Notifications::TileUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileUpdaterForSim2(put(updater))); - return updater; -} - -template Windows::UI::Notifications::BadgeUpdater impl_IDualSimTileStatics::CreateBadgeUpdaterForSim1() const -{ - Windows::UI::Notifications::BadgeUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBadgeUpdaterForSim1(put(updater))); - return updater; -} - -template Windows::UI::Notifications::BadgeUpdater impl_IDualSimTileStatics::CreateBadgeUpdaterForSim2() const -{ - Windows::UI::Notifications::BadgeUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBadgeUpdaterForSim2(put(updater))); - return updater; -} - -template Windows::UI::Notifications::ToastNotifier impl_IDualSimTileStatics::CreateToastNotifierForSim1() const -{ - Windows::UI::Notifications::ToastNotifier notifier { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateToastNotifierForSim1(put(notifier))); - return notifier; -} - -template Windows::UI::Notifications::ToastNotifier impl_IDualSimTileStatics::CreateToastNotifierForSim2() const -{ - Windows::UI::Notifications::ToastNotifier notifier { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateToastNotifierForSim2(put(notifier))); - return notifier; -} - -inline DualSimTile::DualSimTile() : - DualSimTile(activate_instance()) -{} - -inline Windows::Phone::StartScreen::DualSimTile DualSimTile::GetTileForSim2() -{ - return get_activation_factory().GetTileForSim2(); -} - -inline Windows::Foundation::IAsyncOperation DualSimTile::UpdateDisplayNameForSim1Async(hstring_ref name) -{ - return get_activation_factory().UpdateDisplayNameForSim1Async(name); -} - -inline Windows::UI::Notifications::TileUpdater DualSimTile::CreateTileUpdaterForSim1() -{ - return get_activation_factory().CreateTileUpdaterForSim1(); -} - -inline Windows::UI::Notifications::TileUpdater DualSimTile::CreateTileUpdaterForSim2() -{ - return get_activation_factory().CreateTileUpdaterForSim2(); -} - -inline Windows::UI::Notifications::BadgeUpdater DualSimTile::CreateBadgeUpdaterForSim1() -{ - return get_activation_factory().CreateBadgeUpdaterForSim1(); -} - -inline Windows::UI::Notifications::BadgeUpdater DualSimTile::CreateBadgeUpdaterForSim2() -{ - return get_activation_factory().CreateBadgeUpdaterForSim2(); -} - -inline Windows::UI::Notifications::ToastNotifier DualSimTile::CreateToastNotifierForSim1() -{ - return get_activation_factory().CreateToastNotifierForSim1(); -} - -inline Windows::UI::Notifications::ToastNotifier DualSimTile::CreateToastNotifierForSim2() -{ - return get_activation_factory().CreateToastNotifierForSim2(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.System.Power.h b/10.0.14393.0/winrt/Windows.Phone.System.Power.h deleted file mode 100644 index bb7e7bb29..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.System.Power.h +++ /dev/null @@ -1,137 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Phone.System.Power.3.h" -#include "Windows.Phone.System.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PowerSavingMode(Windows::Phone::System::Power::PowerSavingMode * value) noexcept override - { - try - { - *value = detach(this->shim().PowerSavingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PowerSavingModeChanged(abi_arg_in> changeHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PowerSavingModeChanged(*reinterpret_cast *>(&changeHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PowerSavingModeChanged(event_token token) noexcept override - { - try - { - this->shim().PowerSavingModeChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PowerSavingModeEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PowerSavingModeEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::System::Power { - -template Windows::Phone::System::Power::PowerSavingMode impl_IPowerManagerStatics::PowerSavingMode() const -{ - Windows::Phone::System::Power::PowerSavingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerSavingMode(&value)); - return value; -} - -template event_token impl_IPowerManagerStatics::PowerSavingModeChanged(const Windows::Foundation::EventHandler & changeHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PowerSavingModeChanged(get(changeHandler), &token)); - return token; -} - -template event_revoker impl_IPowerManagerStatics::PowerSavingModeChanged(auto_revoke_t, const Windows::Foundation::EventHandler & changeHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Phone::System::Power::IPowerManagerStatics::remove_PowerSavingModeChanged, PowerSavingModeChanged(changeHandler)); -} - -template void impl_IPowerManagerStatics::PowerSavingModeChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PowerSavingModeChanged(token)); -} - -template bool impl_IPowerManagerStatics2::PowerSavingModeEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerSavingModeEnabled(&value)); - return value; -} - -inline Windows::Phone::System::Power::PowerSavingMode PowerManager::PowerSavingMode() -{ - return get_activation_factory().PowerSavingMode(); -} - -inline event_token PowerManager::PowerSavingModeChanged(const Windows::Foundation::EventHandler & changeHandler) -{ - return get_activation_factory().PowerSavingModeChanged(changeHandler); -} - -inline factory_event_revoker PowerManager::PowerSavingModeChanged(auto_revoke_t, const Windows::Foundation::EventHandler & changeHandler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Phone::System::Power::IPowerManagerStatics::remove_PowerSavingModeChanged, factory.PowerSavingModeChanged(changeHandler) }; -} - -inline void PowerManager::PowerSavingModeChanged(event_token token) -{ - get_activation_factory().PowerSavingModeChanged(token); -} - -inline bool PowerManager::PowerSavingModeEnabled() -{ - return get_activation_factory().PowerSavingModeEnabled(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.System.Profile.h b/10.0.14393.0/winrt/Windows.Phone.System.Profile.h deleted file mode 100644 index c0b970287..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.System.Profile.h +++ /dev/null @@ -1,48 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Phone.System.Profile.3.h" -#include "Windows.Phone.System.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RetailModeEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RetailModeEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::System::Profile { - -template bool impl_IRetailModeStatics::RetailModeEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RetailModeEnabled(&value)); - return value; -} - -inline bool RetailMode::RetailModeEnabled() -{ - return get_activation_factory().RetailModeEnabled(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.System.UserProfile.GameServices.Core.h b/10.0.14393.0/winrt/Windows.Phone.System.UserProfile.GameServices.Core.h deleted file mode 100644 index 93545323b..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.System.UserProfile.GameServices.Core.h +++ /dev/null @@ -1,301 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Phone.System.UserProfile.GameServices.Core.3.h" -#include "Windows.Phone.System.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServiceUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGamerProfileAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetGamerProfileAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInstalledGameItemsAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetInstalledGameItemsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPartnerTokenAsync(abi_arg_in audienceUri, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPartnerTokenAsync(*reinterpret_cast(&audienceUri))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPrivilegesAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPrivilegesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GrantAchievement(uint32_t achievementId) noexcept override - { - try - { - this->shim().GrantAchievement(achievementId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GrantAvatarAward(uint32_t avatarAwardId) noexcept override - { - try - { - this->shim().GrantAvatarAward(avatarAwardId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PostResult(uint32_t gameVariant, Windows::Phone::System::UserProfile::GameServices::Core::GameServiceScoreKind scoreKind, int64_t scoreValue, Windows::Phone::System::UserProfile::GameServices::Core::GameServiceGameOutcome gameOutcome, abi_arg_in buffer) noexcept override - { - try - { - this->shim().PostResult(gameVariant, scoreKind, scoreValue, gameOutcome, *reinterpret_cast(&buffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_NotifyPartnerTokenExpired(abi_arg_in audienceUri) noexcept override - { - try - { - this->shim().NotifyPartnerTokenExpired(*reinterpret_cast(&audienceUri)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAuthenticationStatus(uint32_t * status) noexcept override - { - try - { - *status = detach(this->shim().GetAuthenticationStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPropertyAsync(abi_arg_in propertyName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPropertyAsync(*reinterpret_cast(&propertyName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::System::UserProfile::GameServices::Core { - -template Windows::Foundation::IAsyncOperation impl_IGameServicePropertyCollection::GetPropertyAsync(hstring_ref propertyName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPropertyAsync(get(propertyName), put(operation))); - return operation; -} - -template Windows::Foundation::Uri impl_IGameService::ServiceUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ServiceUri(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IGameService::GetGamerProfileAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetGamerProfileAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IGameService::GetInstalledGameItemsAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetInstalledGameItemsAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IGameService::GetPartnerTokenAsync(const Windows::Foundation::Uri & audienceUri) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPartnerTokenAsync(get(audienceUri), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IGameService::GetPrivilegesAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPrivilegesAsync(put(operation))); - return operation; -} - -template void impl_IGameService::GrantAchievement(uint32_t achievementId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GrantAchievement(achievementId)); -} - -template void impl_IGameService::GrantAvatarAward(uint32_t avatarAwardId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GrantAvatarAward(avatarAwardId)); -} - -template void impl_IGameService::PostResult(uint32_t gameVariant, Windows::Phone::System::UserProfile::GameServices::Core::GameServiceScoreKind scoreKind, int64_t scoreValue, Windows::Phone::System::UserProfile::GameServices::Core::GameServiceGameOutcome gameOutcome, const Windows::Storage::Streams::IBuffer & buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PostResult(gameVariant, scoreKind, scoreValue, gameOutcome, get(buffer))); -} - -template void impl_IGameService2::NotifyPartnerTokenExpired(const Windows::Foundation::Uri & audienceUri) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyPartnerTokenExpired(get(audienceUri))); -} - -template uint32_t impl_IGameService2::GetAuthenticationStatus() const -{ - uint32_t status {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAuthenticationStatus(&status)); - return status; -} - -inline Windows::Foundation::Uri GameService::ServiceUri() -{ - return get_activation_factory().ServiceUri(); -} - -inline Windows::Foundation::IAsyncOperation GameService::GetGamerProfileAsync() -{ - return get_activation_factory().GetGamerProfileAsync(); -} - -inline Windows::Foundation::IAsyncOperation GameService::GetInstalledGameItemsAsync() -{ - return get_activation_factory().GetInstalledGameItemsAsync(); -} - -inline Windows::Foundation::IAsyncOperation GameService::GetPartnerTokenAsync(const Windows::Foundation::Uri & audienceUri) -{ - return get_activation_factory().GetPartnerTokenAsync(audienceUri); -} - -inline Windows::Foundation::IAsyncOperation GameService::GetPrivilegesAsync() -{ - return get_activation_factory().GetPrivilegesAsync(); -} - -inline void GameService::GrantAchievement(uint32_t achievementId) -{ - get_activation_factory().GrantAchievement(achievementId); -} - -inline void GameService::GrantAvatarAward(uint32_t avatarAwardId) -{ - get_activation_factory().GrantAvatarAward(avatarAwardId); -} - -inline void GameService::PostResult(uint32_t gameVariant, Windows::Phone::System::UserProfile::GameServices::Core::GameServiceScoreKind scoreKind, int64_t scoreValue, Windows::Phone::System::UserProfile::GameServices::Core::GameServiceGameOutcome gameOutcome, const Windows::Storage::Streams::IBuffer & buffer) -{ - get_activation_factory().PostResult(gameVariant, scoreKind, scoreValue, gameOutcome, buffer); -} - -inline void GameService::NotifyPartnerTokenExpired(const Windows::Foundation::Uri & audienceUri) -{ - get_activation_factory().NotifyPartnerTokenExpired(audienceUri); -} - -inline uint32_t GameService::GetAuthenticationStatus() -{ - return get_activation_factory().GetAuthenticationStatus(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.System.h b/10.0.14393.0/winrt/Windows.Phone.System.h deleted file mode 100644 index f8cb36a3a..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.System.h +++ /dev/null @@ -1,74 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Phone.System.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ScreenLocked(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ScreenLocked()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestScreenUnlock() noexcept override - { - try - { - this->shim().RequestScreenUnlock(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::System { - -template bool impl_ISystemProtectionStatics::ScreenLocked() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ScreenLocked(&value)); - return value; -} - -template void impl_ISystemProtectionUnlockStatics::RequestScreenUnlock() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RequestScreenUnlock()); -} - -inline bool SystemProtection::ScreenLocked() -{ - return get_activation_factory().ScreenLocked(); -} - -inline void SystemProtection::RequestScreenUnlock() -{ - get_activation_factory().RequestScreenUnlock(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Phone.UI.Input.h b/10.0.14393.0/winrt/Windows.Phone.UI.Input.h deleted file mode 100644 index 567191007..000000000 --- a/10.0.14393.0/winrt/Windows.Phone.UI.Input.h +++ /dev/null @@ -1,309 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Phone.UI.Input.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_BackPressed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BackPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BackPressed(event_token token) noexcept override - { - try - { - this->shim().BackPressed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_CameraHalfPressed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CameraHalfPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CameraHalfPressed(event_token token) noexcept override - { - try - { - this->shim().CameraHalfPressed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CameraPressed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CameraPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CameraPressed(event_token token) noexcept override - { - try - { - this->shim().CameraPressed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CameraReleased(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CameraReleased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CameraReleased(event_token token) noexcept override - { - try - { - this->shim().CameraReleased(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Phone::UI::Input { - -template event_token impl_IHardwareButtonsStatics::BackPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BackPressed(get(handler), &token)); - return token; -} - -template event_revoker impl_IHardwareButtonsStatics::BackPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Phone::UI::Input::IHardwareButtonsStatics::remove_BackPressed, BackPressed(handler)); -} - -template void impl_IHardwareButtonsStatics::BackPressed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BackPressed(token)); -} - -template event_token impl_IHardwareButtonsStatics2::CameraHalfPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CameraHalfPressed(get(handler), &token)); - return token; -} - -template event_revoker impl_IHardwareButtonsStatics2::CameraHalfPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Phone::UI::Input::IHardwareButtonsStatics2::remove_CameraHalfPressed, CameraHalfPressed(handler)); -} - -template void impl_IHardwareButtonsStatics2::CameraHalfPressed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CameraHalfPressed(token)); -} - -template event_token impl_IHardwareButtonsStatics2::CameraPressed(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CameraPressed(get(handler), &token)); - return token; -} - -template event_revoker impl_IHardwareButtonsStatics2::CameraPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Phone::UI::Input::IHardwareButtonsStatics2::remove_CameraPressed, CameraPressed(handler)); -} - -template void impl_IHardwareButtonsStatics2::CameraPressed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CameraPressed(token)); -} - -template event_token impl_IHardwareButtonsStatics2::CameraReleased(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CameraReleased(get(handler), &token)); - return token; -} - -template event_revoker impl_IHardwareButtonsStatics2::CameraReleased(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Phone::UI::Input::IHardwareButtonsStatics2::remove_CameraReleased, CameraReleased(handler)); -} - -template void impl_IHardwareButtonsStatics2::CameraReleased(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CameraReleased(token)); -} - -template bool impl_IBackPressedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IBackPressedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -inline event_token HardwareButtons::BackPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().BackPressed(handler); -} - -inline factory_event_revoker HardwareButtons::BackPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Phone::UI::Input::IHardwareButtonsStatics::remove_BackPressed, factory.BackPressed(handler) }; -} - -inline void HardwareButtons::BackPressed(event_token token) -{ - get_activation_factory().BackPressed(token); -} - -inline event_token HardwareButtons::CameraHalfPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().CameraHalfPressed(handler); -} - -inline factory_event_revoker HardwareButtons::CameraHalfPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Phone::UI::Input::IHardwareButtonsStatics2::remove_CameraHalfPressed, factory.CameraHalfPressed(handler) }; -} - -inline void HardwareButtons::CameraHalfPressed(event_token token) -{ - get_activation_factory().CameraHalfPressed(token); -} - -inline event_token HardwareButtons::CameraPressed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().CameraPressed(handler); -} - -inline factory_event_revoker HardwareButtons::CameraPressed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Phone::UI::Input::IHardwareButtonsStatics2::remove_CameraPressed, factory.CameraPressed(handler) }; -} - -inline void HardwareButtons::CameraPressed(event_token token) -{ - get_activation_factory().CameraPressed(token); -} - -inline event_token HardwareButtons::CameraReleased(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().CameraReleased(handler); -} - -inline factory_event_revoker HardwareButtons::CameraReleased(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Phone::UI::Input::IHardwareButtonsStatics2::remove_CameraReleased, factory.CameraReleased(handler) }; -} - -inline void HardwareButtons::CameraReleased(event_token token) -{ - get_activation_factory().CameraReleased(token); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Authentication.Identity.Core.h b/10.0.14393.0/winrt/Windows.Security.Authentication.Identity.Core.h deleted file mode 100644 index 000808718..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Authentication.Identity.Core.h +++ /dev/null @@ -1,608 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Security.Authentication.Identity.Core.3.h" -#include "Windows.Security.Authentication.Identity.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetOneTimePassCodeAsync(abi_arg_in userAccountId, uint32_t codeLength, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().GetOneTimePassCodeAsync(*reinterpret_cast(&userAccountId), codeLength)); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddDeviceAsync(abi_arg_in userAccountId, abi_arg_in authenticationToken, abi_arg_in wnsChannelId, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().AddDeviceAsync(*reinterpret_cast(&userAccountId), *reinterpret_cast(&authenticationToken), *reinterpret_cast(&wnsChannelId))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveDeviceAsync(abi_arg_in userAccountId, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().RemoveDeviceAsync(*reinterpret_cast(&userAccountId))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateWnsChannelAsync(abi_arg_in userAccountId, abi_arg_in channelUri, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().UpdateWnsChannelAsync(*reinterpret_cast(&userAccountId), *reinterpret_cast(&channelUri))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSessionsAsync(abi_arg_in> userAccountIdList, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().GetSessionsAsync(*reinterpret_cast *>(&userAccountIdList))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSessionsAndUnregisteredAccountsAsync(abi_arg_in> userAccountIdList, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().GetSessionsAndUnregisteredAccountsAsync(*reinterpret_cast *>(&userAccountIdList))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ApproveSessionUsingAuthSessionInfoAsync(Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionAuthenticationStatus sessionAuthentictionStatus, abi_arg_in authenticationSessionInfo, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().ApproveSessionAsync(sessionAuthentictionStatus, *reinterpret_cast(&authenticationSessionInfo))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ApproveSessionAsync(Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionAuthenticationStatus sessionAuthentictionStatus, abi_arg_in userAccountId, abi_arg_in sessionId, Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType sessionAuthenticationType, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().ApproveSessionAsync(sessionAuthentictionStatus, *reinterpret_cast(&userAccountId), *reinterpret_cast(&sessionId), sessionAuthenticationType)); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DenySessionUsingAuthSessionInfoAsync(abi_arg_in authenticationSessionInfo, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().DenySessionAsync(*reinterpret_cast(&authenticationSessionInfo))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DenySessionAsync(abi_arg_in userAccountId, abi_arg_in sessionId, Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType sessionAuthenticationType, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().DenySessionAsync(*reinterpret_cast(&userAccountId), *reinterpret_cast(&sessionId), sessionAuthenticationType)); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Current(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Current()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Sessions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Sessions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceResponse(Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorServiceResponse * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceResponse()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Code(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Code()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeInterval(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimeInterval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeToLive(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimeToLive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceResponse(Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorServiceResponse * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceResponse()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UserAccountId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserAccountId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SessionId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplaySessionId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplaySessionId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApprovalStatus(Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionApprovalStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ApprovalStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationType(Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType * value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequestTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RequestTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Sessions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Sessions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UnregisteredAccounts(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().UnregisteredAccounts()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceResponse(Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorServiceResponse * value) noexcept override - { - try - { - *value = detach(this->shim().ServiceResponse()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Authentication::Identity::Core { - -template hstring impl_IMicrosoftAccountMultiFactorSessionInfo::UserAccountId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserAccountId(put(value))); - return value; -} - -template hstring impl_IMicrosoftAccountMultiFactorSessionInfo::SessionId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SessionId(put(value))); - return value; -} - -template hstring impl_IMicrosoftAccountMultiFactorSessionInfo::DisplaySessionId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplaySessionId(put(value))); - return value; -} - -template Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionApprovalStatus impl_IMicrosoftAccountMultiFactorSessionInfo::ApprovalStatus() const -{ - Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionApprovalStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ApprovalStatus(&value)); - return value; -} - -template Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType impl_IMicrosoftAccountMultiFactorSessionInfo::AuthenticationType() const -{ - Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationType(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IMicrosoftAccountMultiFactorSessionInfo::RequestTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestTime(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IMicrosoftAccountMultiFactorSessionInfo::ExpirationTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ExpirationTime(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMicrosoftAccountMultiFactorGetSessionsResult::Sessions() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Sessions(put(value))); - return value; -} - -template Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorServiceResponse impl_IMicrosoftAccountMultiFactorGetSessionsResult::ServiceResponse() const -{ - Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorServiceResponse value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceResponse(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo::Sessions() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Sessions(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo::UnregisteredAccounts() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_UnregisteredAccounts(put(value))); - return value; -} - -template Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorServiceResponse impl_IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo::ServiceResponse() const -{ - Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorServiceResponse value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceResponse(&value)); - return value; -} - -template hstring impl_IMicrosoftAccountMultiFactorOneTimeCodedInfo::Code() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Code(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMicrosoftAccountMultiFactorOneTimeCodedInfo::TimeInterval() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeInterval(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMicrosoftAccountMultiFactorOneTimeCodedInfo::TimeToLive() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeToLive(put(value))); - return value; -} - -template Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorServiceResponse impl_IMicrosoftAccountMultiFactorOneTimeCodedInfo::ServiceResponse() const -{ - Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorServiceResponse value {}; - check_hresult(static_cast(static_cast(*this))->get_ServiceResponse(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMicrosoftAccountMultiFactorAuthenticationManager::GetOneTimePassCodeAsync(hstring_ref userAccountId, uint32_t codeLength) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_GetOneTimePassCodeAsync(get(userAccountId), codeLength, put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IMicrosoftAccountMultiFactorAuthenticationManager::AddDeviceAsync(hstring_ref userAccountId, hstring_ref authenticationToken, hstring_ref wnsChannelId) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_AddDeviceAsync(get(userAccountId), get(authenticationToken), get(wnsChannelId), put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IMicrosoftAccountMultiFactorAuthenticationManager::RemoveDeviceAsync(hstring_ref userAccountId) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_RemoveDeviceAsync(get(userAccountId), put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IMicrosoftAccountMultiFactorAuthenticationManager::UpdateWnsChannelAsync(hstring_ref userAccountId, hstring_ref channelUri) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateWnsChannelAsync(get(userAccountId), get(channelUri), put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IMicrosoftAccountMultiFactorAuthenticationManager::GetSessionsAsync(const Windows::Foundation::Collections::IIterable & userAccountIdList) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_GetSessionsAsync(get(userAccountIdList), put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IMicrosoftAccountMultiFactorAuthenticationManager::GetSessionsAndUnregisteredAccountsAsync(const Windows::Foundation::Collections::IIterable & userAccountIdList) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_GetSessionsAndUnregisteredAccountsAsync(get(userAccountIdList), put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IMicrosoftAccountMultiFactorAuthenticationManager::ApproveSessionAsync(Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionAuthenticationStatus sessionAuthentictionStatus, const Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo & authenticationSessionInfo) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_ApproveSessionUsingAuthSessionInfoAsync(sessionAuthentictionStatus, get(authenticationSessionInfo), put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IMicrosoftAccountMultiFactorAuthenticationManager::ApproveSessionAsync(Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionAuthenticationStatus sessionAuthentictionStatus, hstring_ref userAccountId, hstring_ref sessionId, Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType sessionAuthenticationType) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_ApproveSessionAsync(sessionAuthentictionStatus, get(userAccountId), get(sessionId), sessionAuthenticationType, put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IMicrosoftAccountMultiFactorAuthenticationManager::DenySessionAsync(const Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo & authenticationSessionInfo) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_DenySessionUsingAuthSessionInfoAsync(get(authenticationSessionInfo), put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IMicrosoftAccountMultiFactorAuthenticationManager::DenySessionAsync(hstring_ref userAccountId, hstring_ref sessionId, Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType sessionAuthenticationType) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_DenySessionAsync(get(userAccountId), get(sessionId), sessionAuthenticationType, put(asyncOperation))); - return asyncOperation; -} - -template Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager impl_IMicrosoftAccountMultiFactorAuthenticatorStatics::Current() const -{ - Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Current(put(value))); - return value; -} - -inline Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager MicrosoftAccountMultiFactorAuthenticationManager::Current() -{ - return get_activation_factory().Current(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Authentication.Identity.Provider.h b/10.0.14393.0/winrt/Windows.Security.Authentication.Identity.Provider.h deleted file mode 100644 index 444cf0347..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Authentication.Identity.Provider.h +++ /dev/null @@ -1,714 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Security.Authentication.Identity.Provider.3.h" -#include "Windows.Security.Authentication.Identity.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ServiceAuthenticationHmac(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceAuthenticationHmac()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionNonce(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SessionNonce()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceNonce(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceNonce()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceConfigurationData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceConfigurationData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FinishAuthenticationAsync(abi_arg_in deviceHmac, abi_arg_in sessionHmac, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FinishAuthenticationAsync(*reinterpret_cast(&deviceHmac), *reinterpret_cast(&sessionHmac))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AbortAuthenticationAsync(abi_arg_in errorLogMessage, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().AbortAuthenticationAsync(*reinterpret_cast(&errorLogMessage))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Authentication(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Authentication()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StageInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StageInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Stage(Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStage * value) noexcept override - { - try - { - *value = detach(this->shim().Stage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Scenario(Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationScenario * value) noexcept override - { - try - { - *value = detach(this->shim().Scenario()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowNotificationMessageAsync(abi_arg_in deviceName, Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationMessage message, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ShowNotificationMessageAsync(*reinterpret_cast(&deviceName), message)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAuthenticationAsync(abi_arg_in deviceId, abi_arg_in serviceAuthenticationNonce, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().StartAuthenticationAsync(*reinterpret_cast(&deviceId), *reinterpret_cast(&serviceAuthenticationNonce))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AuthenticationStageChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AuthenticationStageChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AuthenticationStageChanged(event_token token) noexcept override - { - try - { - this->shim().AuthenticationStageChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAuthenticationStageInfoAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetAuthenticationStageInfoAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out deviceId) noexcept override - { - try - { - *deviceId = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *deviceId = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceFriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceFriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceModelNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceModelNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceConfigurationData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceConfigurationData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FinishRegisteringDeviceAsync(abi_arg_in deviceConfigurationData, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().FinishRegisteringDeviceAsync(*reinterpret_cast(&deviceConfigurationData))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AbortRegisteringDeviceAsync(abi_arg_in errorLogMessage, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().AbortRegisteringDeviceAsync(*reinterpret_cast(&errorLogMessage))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistrationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Registration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Registration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestStartRegisteringDeviceAsync(abi_arg_in deviceId, Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorDeviceCapabilities capabilities, abi_arg_in deviceFriendlyName, abi_arg_in deviceModelNumber, abi_arg_in deviceKey, abi_arg_in mutualAuthenticationKey, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestStartRegisteringDeviceAsync(*reinterpret_cast(&deviceId), capabilities, *reinterpret_cast(&deviceFriendlyName), *reinterpret_cast(&deviceModelNumber), *reinterpret_cast(&deviceKey), *reinterpret_cast(&mutualAuthenticationKey))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllRegisteredDeviceInfoAsync(Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorDeviceFindScope queryType, abi_arg_out>> deviceInfoList) noexcept override - { - try - { - *deviceInfoList = detach(this->shim().FindAllRegisteredDeviceInfoAsync(queryType)); - return S_OK; - } - catch (...) - { - *deviceInfoList = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnregisterDeviceAsync(abi_arg_in deviceId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UnregisterDeviceAsync(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateDeviceConfigurationDataAsync(abi_arg_in deviceId, abi_arg_in deviceConfigurationData, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().UpdateDeviceConfigurationDataAsync(*reinterpret_cast(&deviceId), *reinterpret_cast(&deviceConfigurationData))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Authentication::Identity::Provider { - -template Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistrationStatus impl_ISecondaryAuthenticationFactorRegistrationResult::Status() const -{ - Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistrationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistration impl_ISecondaryAuthenticationFactorRegistrationResult::Registration() const -{ - Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistration value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Registration(put(value))); - return value; -} - -template Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStatus impl_ISecondaryAuthenticationFactorAuthenticationResult::Status() const -{ - Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthentication impl_ISecondaryAuthenticationFactorAuthenticationResult::Authentication() const -{ - Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthentication value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Authentication(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryAuthenticationFactorRegistrationStatics::RequestStartRegisteringDeviceAsync(hstring_ref deviceId, Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorDeviceCapabilities capabilities, hstring_ref deviceFriendlyName, hstring_ref deviceModelNumber, const Windows::Storage::Streams::IBuffer & deviceKey, const Windows::Storage::Streams::IBuffer & mutualAuthenticationKey) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestStartRegisteringDeviceAsync(get(deviceId), capabilities, get(deviceFriendlyName), get(deviceModelNumber), get(deviceKey), get(mutualAuthenticationKey), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_ISecondaryAuthenticationFactorRegistrationStatics::FindAllRegisteredDeviceInfoAsync(Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorDeviceFindScope queryType) const -{ - Windows::Foundation::IAsyncOperation> deviceInfoList; - check_hresult(static_cast(static_cast(*this))->abi_FindAllRegisteredDeviceInfoAsync(queryType, put(deviceInfoList))); - return deviceInfoList; -} - -template Windows::Foundation::IAsyncAction impl_ISecondaryAuthenticationFactorRegistrationStatics::UnregisterDeviceAsync(hstring_ref deviceId) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_UnregisterDeviceAsync(get(deviceId), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_ISecondaryAuthenticationFactorRegistrationStatics::UpdateDeviceConfigurationDataAsync(hstring_ref deviceId, const Windows::Storage::Streams::IBuffer & deviceConfigurationData) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_UpdateDeviceConfigurationDataAsync(get(deviceId), get(deviceConfigurationData), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_ISecondaryAuthenticationFactorRegistration::FinishRegisteringDeviceAsync(const Windows::Storage::Streams::IBuffer & deviceConfigurationData) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_FinishRegisteringDeviceAsync(get(deviceConfigurationData), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_ISecondaryAuthenticationFactorRegistration::AbortRegisteringDeviceAsync(hstring_ref errorLogMessage) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_AbortRegisteringDeviceAsync(get(errorLogMessage), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_ISecondaryAuthenticationFactorAuthenticationStatics::ShowNotificationMessageAsync(hstring_ref deviceName, Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationMessage message) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_ShowNotificationMessageAsync(get(deviceName), message, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryAuthenticationFactorAuthenticationStatics::StartAuthenticationAsync(hstring_ref deviceId, const Windows::Storage::Streams::IBuffer & serviceAuthenticationNonce) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_StartAuthenticationAsync(get(deviceId), get(serviceAuthenticationNonce), put(operation))); - return operation; -} - -template event_token impl_ISecondaryAuthenticationFactorAuthenticationStatics::AuthenticationStageChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AuthenticationStageChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_ISecondaryAuthenticationFactorAuthenticationStatics::AuthenticationStageChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Security::Authentication::Identity::Provider::ISecondaryAuthenticationFactorAuthenticationStatics::remove_AuthenticationStageChanged, AuthenticationStageChanged(handler)); -} - -template void impl_ISecondaryAuthenticationFactorAuthenticationStatics::AuthenticationStageChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AuthenticationStageChanged(token)); -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryAuthenticationFactorAuthenticationStatics::GetAuthenticationStageInfoAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetAuthenticationStageInfoAsync(put(result))); - return result; -} - -template Windows::Storage::Streams::IBuffer impl_ISecondaryAuthenticationFactorAuthentication::ServiceAuthenticationHmac() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_ServiceAuthenticationHmac(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISecondaryAuthenticationFactorAuthentication::SessionNonce() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_SessionNonce(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISecondaryAuthenticationFactorAuthentication::DeviceNonce() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_DeviceNonce(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISecondaryAuthenticationFactorAuthentication::DeviceConfigurationData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_DeviceConfigurationData(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryAuthenticationFactorAuthentication::FinishAuthenticationAsync(const Windows::Storage::Streams::IBuffer & deviceHmac, const Windows::Storage::Streams::IBuffer & sessionHmac) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FinishAuthenticationAsync(get(deviceHmac), get(sessionHmac), put(result))); - return result; -} - -template Windows::Foundation::IAsyncAction impl_ISecondaryAuthenticationFactorAuthentication::AbortAuthenticationAsync(hstring_ref errorLogMessage) const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_AbortAuthenticationAsync(get(errorLogMessage), put(result))); - return result; -} - -template hstring impl_ISecondaryAuthenticationFactorInfo::DeviceId() const -{ - hstring deviceId; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(deviceId))); - return deviceId; -} - -template hstring impl_ISecondaryAuthenticationFactorInfo::DeviceFriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceFriendlyName(put(value))); - return value; -} - -template hstring impl_ISecondaryAuthenticationFactorInfo::DeviceModelNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceModelNumber(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISecondaryAuthenticationFactorInfo::DeviceConfigurationData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_DeviceConfigurationData(put(value))); - return value; -} - -template Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStage impl_ISecondaryAuthenticationFactorAuthenticationStageInfo::Stage() const -{ - Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStage value {}; - check_hresult(static_cast(static_cast(*this))->get_Stage(&value)); - return value; -} - -template Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationScenario impl_ISecondaryAuthenticationFactorAuthenticationStageInfo::Scenario() const -{ - Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationScenario value {}; - check_hresult(static_cast(static_cast(*this))->get_Scenario(&value)); - return value; -} - -template hstring impl_ISecondaryAuthenticationFactorAuthenticationStageInfo::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStageInfo impl_ISecondaryAuthenticationFactorAuthenticationStageChangedEventArgs::StageInfo() const -{ - Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStageInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StageInfo(put(value))); - return value; -} - -inline Windows::Foundation::IAsyncAction SecondaryAuthenticationFactorAuthentication::ShowNotificationMessageAsync(hstring_ref deviceName, Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationMessage message) -{ - return get_activation_factory().ShowNotificationMessageAsync(deviceName, message); -} - -inline Windows::Foundation::IAsyncOperation SecondaryAuthenticationFactorAuthentication::StartAuthenticationAsync(hstring_ref deviceId, const Windows::Storage::Streams::IBuffer & serviceAuthenticationNonce) -{ - return get_activation_factory().StartAuthenticationAsync(deviceId, serviceAuthenticationNonce); -} - -inline event_token SecondaryAuthenticationFactorAuthentication::AuthenticationStageChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().AuthenticationStageChanged(handler); -} - -inline factory_event_revoker SecondaryAuthenticationFactorAuthentication::AuthenticationStageChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Security::Authentication::Identity::Provider::ISecondaryAuthenticationFactorAuthenticationStatics::remove_AuthenticationStageChanged, factory.AuthenticationStageChanged(handler) }; -} - -inline void SecondaryAuthenticationFactorAuthentication::AuthenticationStageChanged(event_token token) -{ - get_activation_factory().AuthenticationStageChanged(token); -} - -inline Windows::Foundation::IAsyncOperation SecondaryAuthenticationFactorAuthentication::GetAuthenticationStageInfoAsync() -{ - return get_activation_factory().GetAuthenticationStageInfoAsync(); -} - -inline Windows::Foundation::IAsyncOperation SecondaryAuthenticationFactorRegistration::RequestStartRegisteringDeviceAsync(hstring_ref deviceId, Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorDeviceCapabilities capabilities, hstring_ref deviceFriendlyName, hstring_ref deviceModelNumber, const Windows::Storage::Streams::IBuffer & deviceKey, const Windows::Storage::Streams::IBuffer & mutualAuthenticationKey) -{ - return get_activation_factory().RequestStartRegisteringDeviceAsync(deviceId, capabilities, deviceFriendlyName, deviceModelNumber, deviceKey, mutualAuthenticationKey); -} - -inline Windows::Foundation::IAsyncOperation> SecondaryAuthenticationFactorRegistration::FindAllRegisteredDeviceInfoAsync(Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorDeviceFindScope queryType) -{ - return get_activation_factory().FindAllRegisteredDeviceInfoAsync(queryType); -} - -inline Windows::Foundation::IAsyncAction SecondaryAuthenticationFactorRegistration::UnregisterDeviceAsync(hstring_ref deviceId) -{ - return get_activation_factory().UnregisterDeviceAsync(deviceId); -} - -inline Windows::Foundation::IAsyncAction SecondaryAuthenticationFactorRegistration::UpdateDeviceConfigurationDataAsync(hstring_ref deviceId, const Windows::Storage::Streams::IBuffer & deviceConfigurationData) -{ - return get_activation_factory().UpdateDeviceConfigurationDataAsync(deviceId, deviceConfigurationData); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Authentication.Identity.h b/10.0.14393.0/winrt/Windows.Security.Authentication.Identity.h deleted file mode 100644 index ee00cf633..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Authentication.Identity.h +++ /dev/null @@ -1,183 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Security.Authentication.Identity.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TenantId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TenantId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TenantName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TenantName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetRegistrationsAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().GetRegistrationsAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Current(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Current()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Authentication::Identity { - -template hstring impl_IEnterpriseKeyCredentialRegistrationInfo::TenantId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TenantId(put(value))); - return value; -} - -template hstring impl_IEnterpriseKeyCredentialRegistrationInfo::TenantName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TenantName(put(value))); - return value; -} - -template hstring impl_IEnterpriseKeyCredentialRegistrationInfo::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template hstring impl_IEnterpriseKeyCredentialRegistrationInfo::KeyId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KeyId(put(value))); - return value; -} - -template hstring impl_IEnterpriseKeyCredentialRegistrationInfo::KeyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KeyName(put(value))); - return value; -} - -template Windows::Security::Authentication::Identity::EnterpriseKeyCredentialRegistrationManager impl_IEnterpriseKeyCredentialRegistrationManagerStatics::Current() const -{ - Windows::Security::Authentication::Identity::EnterpriseKeyCredentialRegistrationManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Current(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IEnterpriseKeyCredentialRegistrationManager::GetRegistrationsAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_GetRegistrationsAsync(put(value))); - return value; -} - -inline Windows::Security::Authentication::Identity::EnterpriseKeyCredentialRegistrationManager EnterpriseKeyCredentialRegistrationManager::Current() -{ - return get_activation_factory().Current(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Authentication.OnlineId.h b/10.0.14393.0/winrt/Windows.Security.Authentication.OnlineId.h deleted file mode 100644 index 78dac269e..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Authentication.OnlineId.h +++ /dev/null @@ -1,507 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Security.Authentication.OnlineId.3.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AuthenticateUserAsync(abi_arg_in request, abi_arg_out> authenticationOperation) noexcept override - { - try - { - *authenticationOperation = detach(this->shim().AuthenticateUserAsync(*reinterpret_cast(&request))); - return S_OK; - } - catch (...) - { - *authenticationOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AuthenticateUserAsyncAdvanced(abi_arg_in> requests, Windows::Security::Authentication::OnlineId::CredentialPromptType credentialPromptType, abi_arg_out> authenticationOperation) noexcept override - { - try - { - *authenticationOperation = detach(this->shim().AuthenticateUserAsync(*reinterpret_cast *>(&requests), credentialPromptType)); - return S_OK; - } - catch (...) - { - *authenticationOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SignOutUserAsync(abi_arg_out signOutUserOperation) noexcept override - { - try - { - *signOutUserOperation = detach(this->shim().SignOutUserAsync()); - return S_OK; - } - catch (...) - { - *signOutUserOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ApplicationId(GUID value) noexcept override - { - try - { - this->shim().ApplicationId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApplicationId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanSignOut(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanSignOut()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticatedSafeCustomerId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticatedSafeCustomerId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorCode(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Service(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Service()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Policy(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Policy()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateOnlineIdServiceTicketRequest(abi_arg_in service, abi_arg_in policy, abi_arg_out onlineIdServiceTicketRequest) noexcept override - { - try - { - *onlineIdServiceTicketRequest = detach(this->shim().CreateOnlineIdServiceTicketRequest(*reinterpret_cast(&service), *reinterpret_cast(&policy))); - return S_OK; - } - catch (...) - { - *onlineIdServiceTicketRequest = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateOnlineIdServiceTicketRequestAdvanced(abi_arg_in service, abi_arg_out onlineIdServiceTicketRequest) noexcept override - { - try - { - *onlineIdServiceTicketRequest = detach(this->shim().CreateOnlineIdServiceTicketRequestAdvanced(*reinterpret_cast(&service))); - return S_OK; - } - catch (...) - { - *onlineIdServiceTicketRequest = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Tickets(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Tickets()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SafeCustomerId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SafeCustomerId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SignInName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SignInName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsBetaAccount(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBetaAccount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsConfirmedPC(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsConfirmedPC()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Authentication::OnlineId { - -template hstring impl_IOnlineIdServiceTicketRequest::Service() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Service(put(value))); - return value; -} - -template hstring impl_IOnlineIdServiceTicketRequest::Policy() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Policy(put(value))); - return value; -} - -template Windows::Security::Authentication::OnlineId::OnlineIdServiceTicketRequest impl_IOnlineIdServiceTicketRequestFactory::CreateOnlineIdServiceTicketRequest(hstring_ref service, hstring_ref policy) const -{ - Windows::Security::Authentication::OnlineId::OnlineIdServiceTicketRequest onlineIdServiceTicketRequest { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateOnlineIdServiceTicketRequest(get(service), get(policy), put(onlineIdServiceTicketRequest))); - return onlineIdServiceTicketRequest; -} - -template Windows::Security::Authentication::OnlineId::OnlineIdServiceTicketRequest impl_IOnlineIdServiceTicketRequestFactory::CreateOnlineIdServiceTicketRequestAdvanced(hstring_ref service) const -{ - Windows::Security::Authentication::OnlineId::OnlineIdServiceTicketRequest onlineIdServiceTicketRequest { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateOnlineIdServiceTicketRequestAdvanced(get(service), put(onlineIdServiceTicketRequest))); - return onlineIdServiceTicketRequest; -} - -template hstring impl_IOnlineIdServiceTicket::Value() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template Windows::Security::Authentication::OnlineId::OnlineIdServiceTicketRequest impl_IOnlineIdServiceTicket::Request() const -{ - Windows::Security::Authentication::OnlineId::OnlineIdServiceTicketRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template int32_t impl_IOnlineIdServiceTicket::ErrorCode() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IUserIdentity::Tickets() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Tickets(put(value))); - return value; -} - -template hstring impl_IUserIdentity::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IUserIdentity::SafeCustomerId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SafeCustomerId(put(value))); - return value; -} - -template hstring impl_IUserIdentity::SignInName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SignInName(put(value))); - return value; -} - -template hstring impl_IUserIdentity::FirstName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FirstName(put(value))); - return value; -} - -template hstring impl_IUserIdentity::LastName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LastName(put(value))); - return value; -} - -template bool impl_IUserIdentity::IsBetaAccount() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsBetaAccount(&value)); - return value; -} - -template bool impl_IUserIdentity::IsConfirmedPC() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsConfirmedPC(&value)); - return value; -} - -template Windows::Security::Authentication::OnlineId::UserAuthenticationOperation impl_IOnlineIdAuthenticator::AuthenticateUserAsync(const Windows::Security::Authentication::OnlineId::OnlineIdServiceTicketRequest & request) const -{ - Windows::Security::Authentication::OnlineId::UserAuthenticationOperation authenticationOperation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AuthenticateUserAsync(get(request), put(authenticationOperation))); - return authenticationOperation; -} - -template Windows::Security::Authentication::OnlineId::UserAuthenticationOperation impl_IOnlineIdAuthenticator::AuthenticateUserAsync(const Windows::Foundation::Collections::IIterable & requests, Windows::Security::Authentication::OnlineId::CredentialPromptType credentialPromptType) const -{ - Windows::Security::Authentication::OnlineId::UserAuthenticationOperation authenticationOperation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AuthenticateUserAsyncAdvanced(get(requests), credentialPromptType, put(authenticationOperation))); - return authenticationOperation; -} - -template Windows::Security::Authentication::OnlineId::SignOutUserOperation impl_IOnlineIdAuthenticator::SignOutUserAsync() const -{ - Windows::Security::Authentication::OnlineId::SignOutUserOperation signOutUserOperation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SignOutUserAsync(put(signOutUserOperation))); - return signOutUserOperation; -} - -template void impl_IOnlineIdAuthenticator::ApplicationId(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ApplicationId(value)); -} - -template GUID impl_IOnlineIdAuthenticator::ApplicationId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_ApplicationId(&value)); - return value; -} - -template bool impl_IOnlineIdAuthenticator::CanSignOut() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanSignOut(&value)); - return value; -} - -template hstring impl_IOnlineIdAuthenticator::AuthenticatedSafeCustomerId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AuthenticatedSafeCustomerId(put(value))); - return value; -} - -inline OnlineIdAuthenticator::OnlineIdAuthenticator() : - OnlineIdAuthenticator(activate_instance()) -{} - -inline OnlineIdServiceTicketRequest::OnlineIdServiceTicketRequest(hstring_ref service, hstring_ref policy) : - OnlineIdServiceTicketRequest(get_activation_factory().CreateOnlineIdServiceTicketRequest(service, policy)) -{} - -inline OnlineIdServiceTicketRequest::OnlineIdServiceTicketRequest(hstring_ref service) : - OnlineIdServiceTicketRequest(get_activation_factory().CreateOnlineIdServiceTicketRequestAdvanced(service)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Authentication.Web.Core.h b/10.0.14393.0/winrt/Windows.Security.Authentication.Web.Core.h deleted file mode 100644 index 21f3a2d86..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Authentication.Web.Core.h +++ /dev/null @@ -1,1017 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Security.Credentials.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Security.Authentication.Web.Core.3.h" -#include "Windows.Security.Authentication.Web.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Account(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Account()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Updated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Updated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Updated(event_token token) noexcept override - { - try - { - this->shim().Updated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Removed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Removed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Removed(event_token token) noexcept override - { - try - { - this->shim().Removed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DefaultSignInAccountChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DefaultSignInAccountChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DefaultSignInAccountChanged(event_token token) noexcept override - { - try - { - this->shim().DefaultSignInAccountChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetTokenSilentlyAsync(abi_arg_in request, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetTokenSilentlyAsync(*reinterpret_cast(&request))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTokenSilentlyWithWebAccountAsync(abi_arg_in request, abi_arg_in webAccount, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetTokenSilentlyAsync(*reinterpret_cast(&request), *reinterpret_cast(&webAccount))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestTokenAsync(abi_arg_in request, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().RequestTokenAsync(*reinterpret_cast(&request))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestTokenWithWebAccountAsync(abi_arg_in request, abi_arg_in webAccount, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().RequestTokenAsync(*reinterpret_cast(&request), *reinterpret_cast(&webAccount))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAccountAsync(abi_arg_in provider, abi_arg_in webAccountId, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().FindAccountAsync(*reinterpret_cast(&provider), *reinterpret_cast(&webAccountId))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAccountProviderAsync(abi_arg_in webAccountProviderId, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().FindAccountProviderAsync(*reinterpret_cast(&webAccountProviderId))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAccountProviderWithAuthorityAsync(abi_arg_in webAccountProviderId, abi_arg_in authority, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().FindAccountProviderAsync(*reinterpret_cast(&webAccountProviderId), *reinterpret_cast(&authority))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindAccountProviderWithAuthorityForUserAsync(abi_arg_in webAccountProviderId, abi_arg_in authority, abi_arg_in user, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().FindAccountProviderAsync(*reinterpret_cast(&webAccountProviderId), *reinterpret_cast(&authority), *reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWebAccountMonitor(abi_arg_in> webAccounts, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWebAccountMonitor(*reinterpret_cast *>(&webAccounts))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ErrorCode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ErrorMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t errorCode, abi_arg_in errorMessage, abi_arg_out webProviderError) noexcept override - { - try - { - *webProviderError = detach(this->shim().Create(errorCode, *reinterpret_cast(&errorMessage))); - return S_OK; - } - catch (...) - { - *webProviderError = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WebAccountProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WebAccountProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Scope(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Scope()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClientId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClientId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PromptType(Windows::Security::Authentication::Web::Core::WebTokenRequestPromptType * value) noexcept override - { - try - { - *value = detach(this->shim().PromptType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> requestProperties) noexcept override - { - try - { - *requestProperties = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *requestProperties = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppProperties(abi_arg_out> requestProperties) noexcept override - { - try - { - *requestProperties = detach(this->shim().AppProperties()); - return S_OK; - } - catch (...) - { - *requestProperties = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in provider, abi_arg_in scope, abi_arg_in clientId, abi_arg_out webTokenRequest) noexcept override - { - try - { - *webTokenRequest = detach(this->shim().Create(*reinterpret_cast(&provider), *reinterpret_cast(&scope), *reinterpret_cast(&clientId))); - return S_OK; - } - catch (...) - { - *webTokenRequest = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithPromptType(abi_arg_in provider, abi_arg_in scope, abi_arg_in clientId, Windows::Security::Authentication::Web::Core::WebTokenRequestPromptType promptType, abi_arg_out webTokenRequest) noexcept override - { - try - { - *webTokenRequest = detach(this->shim().CreateWithPromptType(*reinterpret_cast(&provider), *reinterpret_cast(&scope), *reinterpret_cast(&clientId), promptType)); - return S_OK; - } - catch (...) - { - *webTokenRequest = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithProvider(abi_arg_in provider, abi_arg_out webTokenRequest) noexcept override - { - try - { - *webTokenRequest = detach(this->shim().CreateWithProvider(*reinterpret_cast(&provider))); - return S_OK; - } - catch (...) - { - *webTokenRequest = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithScope(abi_arg_in provider, abi_arg_in scope, abi_arg_out webTokenRequest) noexcept override - { - try - { - *webTokenRequest = detach(this->shim().CreateWithScope(*reinterpret_cast(&provider), *reinterpret_cast(&scope))); - return S_OK; - } - catch (...) - { - *webTokenRequest = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResponseData(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ResponseData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResponseStatus(Windows::Security::Authentication::Web::Core::WebTokenRequestStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ResponseStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResponseError(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResponseError()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InvalidateCacheAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().InvalidateCacheAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Token(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Token()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProviderError(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProviderError()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WebAccount(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WebAccount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithToken(abi_arg_in token, abi_arg_out webTokenResponse) noexcept override - { - try - { - *webTokenResponse = detach(this->shim().CreateWithToken(*reinterpret_cast(&token))); - return S_OK; - } - catch (...) - { - *webTokenResponse = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithTokenAndAccount(abi_arg_in token, abi_arg_in webAccount, abi_arg_out webTokenResponse) noexcept override - { - try - { - *webTokenResponse = detach(this->shim().CreateWithTokenAndAccount(*reinterpret_cast(&token), *reinterpret_cast(&webAccount))); - return S_OK; - } - catch (...) - { - *webTokenResponse = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithTokenAccountAndError(abi_arg_in token, abi_arg_in webAccount, abi_arg_in error, abi_arg_out webTokenResponse) noexcept override - { - try - { - *webTokenResponse = detach(this->shim().CreateWithTokenAccountAndError(*reinterpret_cast(&token), *reinterpret_cast(&webAccount), *reinterpret_cast(&error))); - return S_OK; - } - catch (...) - { - *webTokenResponse = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Authentication::Web::Core { - -template Windows::Security::Credentials::WebAccountProvider impl_IWebTokenRequest::WebAccountProvider() const -{ - Windows::Security::Credentials::WebAccountProvider value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WebAccountProvider(put(value))); - return value; -} - -template hstring impl_IWebTokenRequest::Scope() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Scope(put(value))); - return value; -} - -template hstring impl_IWebTokenRequest::ClientId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ClientId(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::Core::WebTokenRequestPromptType impl_IWebTokenRequest::PromptType() const -{ - Windows::Security::Authentication::Web::Core::WebTokenRequestPromptType value {}; - check_hresult(static_cast(static_cast(*this))->get_PromptType(&value)); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IWebTokenRequest::Properties() const -{ - Windows::Foundation::Collections::IMap requestProperties; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(requestProperties))); - return requestProperties; -} - -template Windows::Foundation::Collections::IMap impl_IWebTokenRequest2::AppProperties() const -{ - Windows::Foundation::Collections::IMap requestProperties; - check_hresult(static_cast(static_cast(*this))->get_AppProperties(put(requestProperties))); - return requestProperties; -} - -template Windows::Security::Credentials::WebAccount impl_IWebAccountEventArgs::Account() const -{ - Windows::Security::Credentials::WebAccount value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Account(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::Core::WebTokenRequest impl_IWebTokenRequestFactory::Create(const Windows::Security::Credentials::WebAccountProvider & provider, hstring_ref scope, hstring_ref clientId) const -{ - Windows::Security::Authentication::Web::Core::WebTokenRequest webTokenRequest { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(provider), get(scope), get(clientId), put(webTokenRequest))); - return webTokenRequest; -} - -template Windows::Security::Authentication::Web::Core::WebTokenRequest impl_IWebTokenRequestFactory::CreateWithPromptType(const Windows::Security::Credentials::WebAccountProvider & provider, hstring_ref scope, hstring_ref clientId, Windows::Security::Authentication::Web::Core::WebTokenRequestPromptType promptType) const -{ - Windows::Security::Authentication::Web::Core::WebTokenRequest webTokenRequest { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithPromptType(get(provider), get(scope), get(clientId), promptType, put(webTokenRequest))); - return webTokenRequest; -} - -template Windows::Security::Authentication::Web::Core::WebTokenRequest impl_IWebTokenRequestFactory::CreateWithProvider(const Windows::Security::Credentials::WebAccountProvider & provider) const -{ - Windows::Security::Authentication::Web::Core::WebTokenRequest webTokenRequest { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithProvider(get(provider), put(webTokenRequest))); - return webTokenRequest; -} - -template Windows::Security::Authentication::Web::Core::WebTokenRequest impl_IWebTokenRequestFactory::CreateWithScope(const Windows::Security::Credentials::WebAccountProvider & provider, hstring_ref scope) const -{ - Windows::Security::Authentication::Web::Core::WebTokenRequest webTokenRequest { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithScope(get(provider), get(scope), put(webTokenRequest))); - return webTokenRequest; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationCoreManagerStatics::GetTokenSilentlyAsync(const Windows::Security::Authentication::Web::Core::WebTokenRequest & request) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetTokenSilentlyAsync(get(request), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationCoreManagerStatics::GetTokenSilentlyAsync(const Windows::Security::Authentication::Web::Core::WebTokenRequest & request, const Windows::Security::Credentials::WebAccount & webAccount) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetTokenSilentlyWithWebAccountAsync(get(request), get(webAccount), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationCoreManagerStatics::RequestTokenAsync(const Windows::Security::Authentication::Web::Core::WebTokenRequest & request) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_RequestTokenAsync(get(request), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationCoreManagerStatics::RequestTokenAsync(const Windows::Security::Authentication::Web::Core::WebTokenRequest & request, const Windows::Security::Credentials::WebAccount & webAccount) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_RequestTokenWithWebAccountAsync(get(request), get(webAccount), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationCoreManagerStatics::FindAccountAsync(const Windows::Security::Credentials::WebAccountProvider & provider, hstring_ref webAccountId) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_FindAccountAsync(get(provider), get(webAccountId), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationCoreManagerStatics::FindAccountProviderAsync(hstring_ref webAccountProviderId) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_FindAccountProviderAsync(get(webAccountProviderId), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationCoreManagerStatics::FindAccountProviderAsync(hstring_ref webAccountProviderId, hstring_ref authority) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_FindAccountProviderWithAuthorityAsync(get(webAccountProviderId), get(authority), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationCoreManagerStatics2::FindAccountProviderAsync(hstring_ref webAccountProviderId, hstring_ref authority, const Windows::System::User & user) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_FindAccountProviderWithAuthorityForUserAsync(get(webAccountProviderId), get(authority), get(user), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Security::Authentication::Web::Core::WebAccountMonitor impl_IWebAuthenticationCoreManagerStatics3::CreateWebAccountMonitor(const Windows::Foundation::Collections::IIterable & webAccounts) const -{ - Windows::Security::Authentication::Web::Core::WebAccountMonitor result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWebAccountMonitor(get(webAccounts), put(result))); - return result; -} - -template event_token impl_IWebAccountMonitor::Updated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Updated(get(handler), &token)); - return token; -} - -template event_revoker impl_IWebAccountMonitor::Updated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Security::Authentication::Web::Core::IWebAccountMonitor::remove_Updated, Updated(handler)); -} - -template void impl_IWebAccountMonitor::Updated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Updated(token)); -} - -template event_token impl_IWebAccountMonitor::Removed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Removed(get(handler), &token)); - return token; -} - -template event_revoker impl_IWebAccountMonitor::Removed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Security::Authentication::Web::Core::IWebAccountMonitor::remove_Removed, Removed(handler)); -} - -template void impl_IWebAccountMonitor::Removed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Removed(token)); -} - -template event_token impl_IWebAccountMonitor::DefaultSignInAccountChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DefaultSignInAccountChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IWebAccountMonitor::DefaultSignInAccountChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Security::Authentication::Web::Core::IWebAccountMonitor::remove_DefaultSignInAccountChanged, DefaultSignInAccountChanged(handler)); -} - -template void impl_IWebAccountMonitor::DefaultSignInAccountChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DefaultSignInAccountChanged(token)); -} - -template uint32_t impl_IWebProviderError::ErrorCode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template hstring impl_IWebProviderError::ErrorMessage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ErrorMessage(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IWebProviderError::Properties() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::Core::WebProviderError impl_IWebProviderErrorFactory::Create(uint32_t errorCode, hstring_ref errorMessage) const -{ - Windows::Security::Authentication::Web::Core::WebProviderError webProviderError { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(errorCode, get(errorMessage), put(webProviderError))); - return webProviderError; -} - -template Windows::Foundation::Collections::IVectorView impl_IWebTokenRequestResult::ResponseData() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ResponseData(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::Core::WebTokenRequestStatus impl_IWebTokenRequestResult::ResponseStatus() const -{ - Windows::Security::Authentication::Web::Core::WebTokenRequestStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ResponseStatus(&value)); - return value; -} - -template Windows::Security::Authentication::Web::Core::WebProviderError impl_IWebTokenRequestResult::ResponseError() const -{ - Windows::Security::Authentication::Web::Core::WebProviderError value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ResponseError(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IWebTokenRequestResult::InvalidateCacheAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_InvalidateCacheAsync(put(asyncInfo))); - return asyncInfo; -} - -template hstring impl_IWebTokenResponse::Token() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Token(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::Core::WebProviderError impl_IWebTokenResponse::ProviderError() const -{ - Windows::Security::Authentication::Web::Core::WebProviderError value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProviderError(put(value))); - return value; -} - -template Windows::Security::Credentials::WebAccount impl_IWebTokenResponse::WebAccount() const -{ - Windows::Security::Credentials::WebAccount value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WebAccount(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IWebTokenResponse::Properties() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::Core::WebTokenResponse impl_IWebTokenResponseFactory::CreateWithToken(hstring_ref token) const -{ - Windows::Security::Authentication::Web::Core::WebTokenResponse webTokenResponse { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithToken(get(token), put(webTokenResponse))); - return webTokenResponse; -} - -template Windows::Security::Authentication::Web::Core::WebTokenResponse impl_IWebTokenResponseFactory::CreateWithTokenAndAccount(hstring_ref token, const Windows::Security::Credentials::WebAccount & webAccount) const -{ - Windows::Security::Authentication::Web::Core::WebTokenResponse webTokenResponse { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithTokenAndAccount(get(token), get(webAccount), put(webTokenResponse))); - return webTokenResponse; -} - -template Windows::Security::Authentication::Web::Core::WebTokenResponse impl_IWebTokenResponseFactory::CreateWithTokenAccountAndError(hstring_ref token, const Windows::Security::Credentials::WebAccount & webAccount, const Windows::Security::Authentication::Web::Core::WebProviderError & error) const -{ - Windows::Security::Authentication::Web::Core::WebTokenResponse webTokenResponse { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithTokenAccountAndError(get(token), get(webAccount), get(error), put(webTokenResponse))); - return webTokenResponse; -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationCoreManager::GetTokenSilentlyAsync(const Windows::Security::Authentication::Web::Core::WebTokenRequest & request) -{ - return get_activation_factory().GetTokenSilentlyAsync(request); -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationCoreManager::GetTokenSilentlyAsync(const Windows::Security::Authentication::Web::Core::WebTokenRequest & request, const Windows::Security::Credentials::WebAccount & webAccount) -{ - return get_activation_factory().GetTokenSilentlyAsync(request, webAccount); -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationCoreManager::RequestTokenAsync(const Windows::Security::Authentication::Web::Core::WebTokenRequest & request) -{ - return get_activation_factory().RequestTokenAsync(request); -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationCoreManager::RequestTokenAsync(const Windows::Security::Authentication::Web::Core::WebTokenRequest & request, const Windows::Security::Credentials::WebAccount & webAccount) -{ - return get_activation_factory().RequestTokenAsync(request, webAccount); -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationCoreManager::FindAccountAsync(const Windows::Security::Credentials::WebAccountProvider & provider, hstring_ref webAccountId) -{ - return get_activation_factory().FindAccountAsync(provider, webAccountId); -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationCoreManager::FindAccountProviderAsync(hstring_ref webAccountProviderId) -{ - return get_activation_factory().FindAccountProviderAsync(webAccountProviderId); -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationCoreManager::FindAccountProviderAsync(hstring_ref webAccountProviderId, hstring_ref authority) -{ - return get_activation_factory().FindAccountProviderAsync(webAccountProviderId, authority); -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationCoreManager::FindAccountProviderAsync(hstring_ref webAccountProviderId, hstring_ref authority, const Windows::System::User & user) -{ - return get_activation_factory().FindAccountProviderAsync(webAccountProviderId, authority, user); -} - -inline Windows::Security::Authentication::Web::Core::WebAccountMonitor WebAuthenticationCoreManager::CreateWebAccountMonitor(const Windows::Foundation::Collections::IIterable & webAccounts) -{ - return get_activation_factory().CreateWebAccountMonitor(webAccounts); -} - -inline WebProviderError::WebProviderError(uint32_t errorCode, hstring_ref errorMessage) : - WebProviderError(get_activation_factory().Create(errorCode, errorMessage)) -{} - -inline WebTokenRequest::WebTokenRequest(const Windows::Security::Credentials::WebAccountProvider & provider, hstring_ref scope, hstring_ref clientId) : - WebTokenRequest(get_activation_factory().Create(provider, scope, clientId)) -{} - -inline WebTokenRequest::WebTokenRequest(const Windows::Security::Credentials::WebAccountProvider & provider, hstring_ref scope, hstring_ref clientId, Windows::Security::Authentication::Web::Core::WebTokenRequestPromptType promptType) : - WebTokenRequest(get_activation_factory().CreateWithPromptType(provider, scope, clientId, promptType)) -{} - -inline WebTokenRequest::WebTokenRequest(const Windows::Security::Credentials::WebAccountProvider & provider) : - WebTokenRequest(get_activation_factory().CreateWithProvider(provider)) -{} - -inline WebTokenRequest::WebTokenRequest(const Windows::Security::Credentials::WebAccountProvider & provider, hstring_ref scope) : - WebTokenRequest(get_activation_factory().CreateWithScope(provider, scope)) -{} - -inline WebTokenResponse::WebTokenResponse() : - WebTokenResponse(activate_instance()) -{} - -inline WebTokenResponse::WebTokenResponse(hstring_ref token) : - WebTokenResponse(get_activation_factory().CreateWithToken(token)) -{} - -inline WebTokenResponse::WebTokenResponse(hstring_ref token, const Windows::Security::Credentials::WebAccount & webAccount) : - WebTokenResponse(get_activation_factory().CreateWithTokenAndAccount(token, webAccount)) -{} - -inline WebTokenResponse::WebTokenResponse(hstring_ref token, const Windows::Security::Credentials::WebAccount & webAccount, const Windows::Security::Authentication::Web::Core::WebProviderError & error) : - WebTokenResponse(get_activation_factory().CreateWithTokenAccountAndError(token, webAccount, error)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Authentication.Web.Provider.h b/10.0.14393.0/winrt/Windows.Security.Authentication.Web.Provider.h deleted file mode 100644 index 93f9baef8..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Authentication.Web.Provider.h +++ /dev/null @@ -1,1313 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Security.Authentication.Web.Core.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Security.Authentication.Web.3.h" -#include "internal/Windows.Security.Credentials.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Security.Authentication.Web.Provider.3.h" -#include "Windows.Security.Authentication.Web.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ApplicationCallbackUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationCallbackUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::Security::Authentication::Web::Provider::WebAccountClientViewType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccountPairwiseId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccountPairwiseId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::Security::Authentication::Web::Provider::WebAccountClientViewType viewType, abi_arg_in applicationCallbackUri, abi_arg_out view) noexcept override - { - try - { - *view = detach(this->shim().Create(viewType, *reinterpret_cast(&applicationCallbackUri))); - return S_OK; - } - catch (...) - { - *view = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithPairwiseId(Windows::Security::Authentication::Web::Provider::WebAccountClientViewType viewType, abi_arg_in applicationCallbackUri, abi_arg_in accountPairwiseId, abi_arg_out view) noexcept override - { - try - { - *view = detach(this->shim().CreateWithPairwiseId(viewType, *reinterpret_cast(&applicationCallbackUri), *reinterpret_cast(&accountPairwiseId))); - return S_OK; - } - catch (...) - { - *view = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_UpdateWebAccountPropertiesAsync(abi_arg_in webAccount, abi_arg_in webAccountUserName, abi_arg_in> additionalProperties, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().UpdateWebAccountPropertiesAsync(*reinterpret_cast(&webAccount), *reinterpret_cast(&webAccountUserName), *reinterpret_cast *>(&additionalProperties))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddWebAccountAsync(abi_arg_in webAccountId, abi_arg_in webAccountUserName, abi_arg_in> props, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().AddWebAccountAsync(*reinterpret_cast(&webAccountId), *reinterpret_cast(&webAccountUserName), *reinterpret_cast *>(&props))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteWebAccountAsync(abi_arg_in webAccount, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().DeleteWebAccountAsync(*reinterpret_cast(&webAccount))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllProviderWebAccountsAsync(abi_arg_out>> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().FindAllProviderWebAccountsAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PushCookiesAsync(abi_arg_in uri, abi_arg_in> cookies, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().PushCookiesAsync(*reinterpret_cast(&uri), *reinterpret_cast *>(&cookies))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetViewAsync(abi_arg_in webAccount, abi_arg_in view, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetViewAsync(*reinterpret_cast(&webAccount), *reinterpret_cast(&view))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearViewAsync(abi_arg_in webAccount, abi_arg_in applicationCallbackUri, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ClearViewAsync(*reinterpret_cast(&webAccount), *reinterpret_cast(&applicationCallbackUri))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetViewsAsync(abi_arg_in webAccount, abi_arg_out>> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetViewsAsync(*reinterpret_cast(&webAccount))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetWebAccountPictureAsync(abi_arg_in webAccount, abi_arg_in webAccountPicture, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetWebAccountPictureAsync(*reinterpret_cast(&webAccount), *reinterpret_cast(&webAccountPicture))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearWebAccountPictureAsync(abi_arg_in webAccount, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ClearWebAccountPictureAsync(*reinterpret_cast(&webAccount))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_PullCookiesAsync(abi_arg_in uriString, abi_arg_in callerPFN, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().PullCookiesAsync(*reinterpret_cast(&uriString), *reinterpret_cast(&callerPFN))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddWebAccountWithScopeAndMapAsync(abi_arg_in webAccountId, abi_arg_in webAccountUserName, abi_arg_in> props, Windows::Security::Authentication::Web::Provider::WebAccountScope scope, abi_arg_in perUserWebAccountId, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().AddWebAccountAsync(*reinterpret_cast(&webAccountId), *reinterpret_cast(&webAccountUserName), *reinterpret_cast *>(&props), scope, *reinterpret_cast(&perUserWebAccountId))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPerAppToPerUserAccountAsync(abi_arg_in perAppAccount, abi_arg_in perUserWebAccountId, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetPerAppToPerUserAccountAsync(*reinterpret_cast(&perAppAccount), *reinterpret_cast(&perUserWebAccountId))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPerUserFromPerAppAccountAsync(abi_arg_in perAppAccount, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetPerUserFromPerAppAccountAsync(*reinterpret_cast(&perAppAccount))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearPerUserFromPerAppAccountAsync(abi_arg_in perAppAccount, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ClearPerUserFromPerAppAccountAsync(*reinterpret_cast(&perAppAccount))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReportCompleted() noexcept override - { - try - { - this->shim().ReportCompleted(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReportCompleted() noexcept override - { - try - { - this->shim().ReportCompleted(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportError(abi_arg_in value) noexcept override - { - try - { - this->shim().ReportError(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WebAccount(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WebAccount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WebAccount(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WebAccount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportCompleted() noexcept override - { - try - { - this->shim().ReportCompleted(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::Security::Authentication::Web::Provider::WebAccountProviderOperationKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Context(abi_arg_out webCookieRequestContext) noexcept override - { - try - { - *webCookieRequestContext = detach(this->shim().Context()); - return S_OK; - } - catch (...) - { - *webCookieRequestContext = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cookies(abi_arg_out> cookies) noexcept override - { - try - { - *cookies = detach(this->shim().Cookies()); - return S_OK; - } - catch (...) - { - *cookies = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Uri(abi_arg_in uri) noexcept override - { - try - { - this->shim().Uri(*reinterpret_cast(&uri)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Uri(abi_arg_out uri) noexcept override - { - try - { - *uri = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *uri = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApplicationCallbackUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationCallbackUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WebAccount(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WebAccount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApplicationCallbackUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationCallbackUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClientId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClientId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReportUserInteractionRequired() noexcept override - { - try - { - this->shim().ReportUserInteractionRequired(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportUserInteractionRequiredWithError(abi_arg_in value) noexcept override - { - try - { - this->shim().ReportUserInteractionRequired(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Operation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Operation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProviderRequest(abi_arg_out webTokenRequest) noexcept override - { - try - { - *webTokenRequest = detach(this->shim().ProviderRequest()); - return S_OK; - } - catch (...) - { - *webTokenRequest = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProviderResponses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ProviderResponses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CacheExpirationTime(abi_arg_in value) noexcept override - { - try - { - this->shim().CacheExpirationTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CacheExpirationTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CacheExpirationTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReportUserCanceled() noexcept override - { - try - { - this->shim().ReportUserCanceled(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddWebAccountWithScopeAsync(abi_arg_in webAccountId, abi_arg_in webAccountUserName, abi_arg_in> props, Windows::Security::Authentication::Web::Provider::WebAccountScope scope, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().AddWebAccountAsync(*reinterpret_cast(&webAccountId), *reinterpret_cast(&webAccountUserName), *reinterpret_cast *>(&props), scope)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetScopeAsync(abi_arg_in webAccount, Windows::Security::Authentication::Web::Provider::WebAccountScope scope, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SetScopeAsync(*reinterpret_cast(&webAccount), scope)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetScope(abi_arg_in webAccount, Windows::Security::Authentication::Web::Provider::WebAccountScope * scope) noexcept override - { - try - { - *scope = detach(this->shim().GetScope(*reinterpret_cast(&webAccount))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClientRequest(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClientRequest()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WebAccounts(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().WebAccounts()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WebAccountSelectionOptions(Windows::Security::Authentication::Web::Provider::WebAccountSelectionOptions * value) noexcept override - { - try - { - *value = detach(this->shim().WebAccountSelectionOptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApplicationCallbackUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationCallbackUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetApplicationTokenBindingKeyAsync(Windows::Security::Authentication::Web::TokenBindingKeyType keyType, abi_arg_in target, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetApplicationTokenBindingKeyAsync(keyType, *reinterpret_cast(&target))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetApplicationTokenBindingKeyIdAsync(Windows::Security::Authentication::Web::TokenBindingKeyType keyType, abi_arg_in target, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetApplicationTokenBindingKeyIdAsync(keyType, *reinterpret_cast(&target))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClientResponse(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClientResponse()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in webTokenResponse, abi_arg_out webProviderTokenResponse) noexcept override - { - try - { - *webProviderTokenResponse = detach(this->shim().Create(*reinterpret_cast(&webTokenResponse))); - return S_OK; - } - catch (...) - { - *webProviderTokenResponse = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Authentication::Web::Provider { - -template Windows::Security::Authentication::Web::Provider::WebAccountProviderOperationKind impl_IWebAccountProviderOperation::Kind() const -{ - Windows::Security::Authentication::Web::Provider::WebAccountProviderOperationKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::Security::Authentication::Web::Core::WebTokenRequest impl_IWebProviderTokenRequest::ClientRequest() const -{ - Windows::Security::Authentication::Web::Core::WebTokenRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ClientRequest(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IWebProviderTokenRequest::WebAccounts() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_WebAccounts(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::Provider::WebAccountSelectionOptions impl_IWebProviderTokenRequest::WebAccountSelectionOptions() const -{ - Windows::Security::Authentication::Web::Provider::WebAccountSelectionOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_WebAccountSelectionOptions(&value)); - return value; -} - -template Windows::Foundation::Uri impl_IWebProviderTokenRequest::ApplicationCallbackUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ApplicationCallbackUri(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IWebProviderTokenRequest::GetApplicationTokenBindingKeyAsync(Windows::Security::Authentication::Web::TokenBindingKeyType keyType, const Windows::Foundation::Uri & target) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetApplicationTokenBindingKeyAsync(keyType, get(target), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebProviderTokenRequest2::GetApplicationTokenBindingKeyIdAsync(Windows::Security::Authentication::Web::TokenBindingKeyType keyType, const Windows::Foundation::Uri & target) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetApplicationTokenBindingKeyIdAsync(keyType, get(target), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Security::Authentication::Web::Core::WebTokenResponse impl_IWebProviderTokenResponse::ClientResponse() const -{ - Windows::Security::Authentication::Web::Core::WebTokenResponse value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ClientResponse(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::Provider::WebProviderTokenResponse impl_IWebProviderTokenResponseFactory::Create(const Windows::Security::Authentication::Web::Core::WebTokenResponse & webTokenResponse) const -{ - Windows::Security::Authentication::Web::Provider::WebProviderTokenResponse webProviderTokenResponse { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(webTokenResponse), put(webProviderTokenResponse))); - return webProviderTokenResponse; -} - -template Windows::Foundation::Uri impl_IWebAccountClientView::ApplicationCallbackUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ApplicationCallbackUri(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::Provider::WebAccountClientViewType impl_IWebAccountClientView::Type() const -{ - Windows::Security::Authentication::Web::Provider::WebAccountClientViewType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template hstring impl_IWebAccountClientView::AccountPairwiseId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AccountPairwiseId(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::Provider::WebAccountClientView impl_IWebAccountClientViewFactory::Create(Windows::Security::Authentication::Web::Provider::WebAccountClientViewType viewType, const Windows::Foundation::Uri & applicationCallbackUri) const -{ - Windows::Security::Authentication::Web::Provider::WebAccountClientView view { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(viewType, get(applicationCallbackUri), put(view))); - return view; -} - -template Windows::Security::Authentication::Web::Provider::WebAccountClientView impl_IWebAccountClientViewFactory::CreateWithPairwiseId(Windows::Security::Authentication::Web::Provider::WebAccountClientViewType viewType, const Windows::Foundation::Uri & applicationCallbackUri, hstring_ref accountPairwiseId) const -{ - Windows::Security::Authentication::Web::Provider::WebAccountClientView view { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithPairwiseId(viewType, get(applicationCallbackUri), get(accountPairwiseId), put(view))); - return view; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccountManagerStatics::UpdateWebAccountPropertiesAsync(const Windows::Security::Credentials::WebAccount & webAccount, hstring_ref webAccountUserName, const Windows::Foundation::Collections::IMapView & additionalProperties) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_UpdateWebAccountPropertiesAsync(get(webAccount), get(webAccountUserName), get(additionalProperties), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAccountManagerStatics::AddWebAccountAsync(hstring_ref webAccountId, hstring_ref webAccountUserName, const Windows::Foundation::Collections::IMapView & props) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_AddWebAccountAsync(get(webAccountId), get(webAccountUserName), get(props), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccountManagerStatics::DeleteWebAccountAsync(const Windows::Security::Credentials::WebAccount & webAccount) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_DeleteWebAccountAsync(get(webAccount), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation> impl_IWebAccountManagerStatics::FindAllProviderWebAccountsAsync() const -{ - Windows::Foundation::IAsyncOperation> asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_FindAllProviderWebAccountsAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccountManagerStatics::PushCookiesAsync(const Windows::Foundation::Uri & uri, const Windows::Foundation::Collections::IVectorView & cookies) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_PushCookiesAsync(get(uri), get(cookies), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccountManagerStatics::SetViewAsync(const Windows::Security::Credentials::WebAccount & webAccount, const Windows::Security::Authentication::Web::Provider::WebAccountClientView & view) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetViewAsync(get(webAccount), get(view), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccountManagerStatics::ClearViewAsync(const Windows::Security::Credentials::WebAccount & webAccount, const Windows::Foundation::Uri & applicationCallbackUri) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ClearViewAsync(get(webAccount), get(applicationCallbackUri), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation> impl_IWebAccountManagerStatics::GetViewsAsync(const Windows::Security::Credentials::WebAccount & webAccount) const -{ - Windows::Foundation::IAsyncOperation> asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetViewsAsync(get(webAccount), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccountManagerStatics::SetWebAccountPictureAsync(const Windows::Security::Credentials::WebAccount & webAccount, const Windows::Storage::Streams::IRandomAccessStream & webAccountPicture) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetWebAccountPictureAsync(get(webAccount), get(webAccountPicture), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccountManagerStatics::ClearWebAccountPictureAsync(const Windows::Security::Credentials::WebAccount & webAccount) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ClearWebAccountPictureAsync(get(webAccount), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccountManagerStatics2::PullCookiesAsync(hstring_ref uriString, hstring_ref callerPFN) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_PullCookiesAsync(get(uriString), get(callerPFN), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAccountScopeManagerStatics::AddWebAccountAsync(hstring_ref webAccountId, hstring_ref webAccountUserName, const Windows::Foundation::Collections::IMapView & props, Windows::Security::Authentication::Web::Provider::WebAccountScope scope) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_AddWebAccountWithScopeAsync(get(webAccountId), get(webAccountUserName), get(props), scope, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccountScopeManagerStatics::SetScopeAsync(const Windows::Security::Credentials::WebAccount & webAccount, Windows::Security::Authentication::Web::Provider::WebAccountScope scope) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetScopeAsync(get(webAccount), scope, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Security::Authentication::Web::Provider::WebAccountScope impl_IWebAccountScopeManagerStatics::GetScope(const Windows::Security::Credentials::WebAccount & webAccount) const -{ - Windows::Security::Authentication::Web::Provider::WebAccountScope scope {}; - check_hresult(static_cast(static_cast(*this))->abi_GetScope(get(webAccount), &scope)); - return scope; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAccountMapManagerStatics::AddWebAccountAsync(hstring_ref webAccountId, hstring_ref webAccountUserName, const Windows::Foundation::Collections::IMapView & props, Windows::Security::Authentication::Web::Provider::WebAccountScope scope, hstring_ref perUserWebAccountId) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_AddWebAccountWithScopeAndMapAsync(get(webAccountId), get(webAccountUserName), get(props), scope, get(perUserWebAccountId), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccountMapManagerStatics::SetPerAppToPerUserAccountAsync(const Windows::Security::Credentials::WebAccount & perAppAccount, hstring_ref perUserWebAccountId) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SetPerAppToPerUserAccountAsync(get(perAppAccount), get(perUserWebAccountId), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAccountMapManagerStatics::GetPerUserFromPerAppAccountAsync(const Windows::Security::Credentials::WebAccount & perAppAccount) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetPerUserFromPerAppAccountAsync(get(perAppAccount), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccountMapManagerStatics::ClearPerUserFromPerAppAccountAsync(const Windows::Security::Credentials::WebAccount & perAppAccount) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ClearPerUserFromPerAppAccountAsync(get(perAppAccount), put(asyncInfo))); - return asyncInfo; -} - -template void impl_IWebAccountProviderBaseReportOperation::ReportCompleted() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompleted()); -} - -template void impl_IWebAccountProviderBaseReportOperation::ReportError(const Windows::Security::Authentication::Web::Core::WebProviderError & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportError(get(value))); -} - -template void impl_IWebAccountProviderUIReportOperation::ReportUserCanceled() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportUserCanceled()); -} - -template void impl_IWebAccountProviderSilentReportOperation::ReportUserInteractionRequired() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportUserInteractionRequired()); -} - -template void impl_IWebAccountProviderSilentReportOperation::ReportUserInteractionRequired(const Windows::Security::Authentication::Web::Core::WebProviderError & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportUserInteractionRequiredWithError(get(value))); -} - -template Windows::Security::Authentication::Web::Provider::WebProviderTokenRequest impl_IWebAccountProviderTokenOperation::ProviderRequest() const -{ - Windows::Security::Authentication::Web::Provider::WebProviderTokenRequest webTokenRequest { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProviderRequest(put(webTokenRequest))); - return webTokenRequest; -} - -template Windows::Foundation::Collections::IVector impl_IWebAccountProviderTokenOperation::ProviderResponses() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ProviderResponses(put(value))); - return value; -} - -template void impl_IWebAccountProviderTokenOperation::CacheExpirationTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CacheExpirationTime(get(value))); -} - -template Windows::Foundation::DateTime impl_IWebAccountProviderTokenOperation::CacheExpirationTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_CacheExpirationTime(put(value))); - return value; -} - -template void impl_IWebAccountProviderAddAccountOperation::ReportCompleted() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompleted()); -} - -template Windows::Security::Credentials::WebAccount impl_IWebAccountProviderManageAccountOperation::WebAccount() const -{ - Windows::Security::Credentials::WebAccount value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WebAccount(put(value))); - return value; -} - -template void impl_IWebAccountProviderManageAccountOperation::ReportCompleted() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompleted()); -} - -template Windows::Security::Credentials::WebAccount impl_IWebAccountProviderDeleteAccountOperation::WebAccount() const -{ - Windows::Security::Credentials::WebAccount value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WebAccount(put(value))); - return value; -} - -template Windows::Security::Credentials::WebAccount impl_IWebAccountProviderSignOutAccountOperation::WebAccount() const -{ - Windows::Security::Credentials::WebAccount value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WebAccount(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IWebAccountProviderSignOutAccountOperation::ApplicationCallbackUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ApplicationCallbackUri(put(value))); - return value; -} - -template hstring impl_IWebAccountProviderSignOutAccountOperation::ClientId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ClientId(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IWebAccountProviderRetrieveCookiesOperation::Context() const -{ - Windows::Foundation::Uri webCookieRequestContext { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Context(put(webCookieRequestContext))); - return webCookieRequestContext; -} - -template Windows::Foundation::Collections::IVector impl_IWebAccountProviderRetrieveCookiesOperation::Cookies() const -{ - Windows::Foundation::Collections::IVector cookies; - check_hresult(static_cast(static_cast(*this))->get_Cookies(put(cookies))); - return cookies; -} - -template void impl_IWebAccountProviderRetrieveCookiesOperation::Uri(const Windows::Foundation::Uri & uri) const -{ - check_hresult(static_cast(static_cast(*this))->put_Uri(get(uri))); -} - -template Windows::Foundation::Uri impl_IWebAccountProviderRetrieveCookiesOperation::Uri() const -{ - Windows::Foundation::Uri uri { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(uri))); - return uri; -} - -template Windows::Foundation::Uri impl_IWebAccountProviderRetrieveCookiesOperation::ApplicationCallbackUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ApplicationCallbackUri(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::Provider::IWebAccountProviderOperation impl_IWebAccountProviderTokenObjects::Operation() const -{ - Windows::Security::Authentication::Web::Provider::IWebAccountProviderOperation value; - check_hresult(static_cast(static_cast(*this))->get_Operation(put(value))); - return value; -} - -inline WebAccountClientView::WebAccountClientView(Windows::Security::Authentication::Web::Provider::WebAccountClientViewType viewType, const Windows::Foundation::Uri & applicationCallbackUri) : - WebAccountClientView(get_activation_factory().Create(viewType, applicationCallbackUri)) -{} - -inline WebAccountClientView::WebAccountClientView(Windows::Security::Authentication::Web::Provider::WebAccountClientViewType viewType, const Windows::Foundation::Uri & applicationCallbackUri, hstring_ref accountPairwiseId) : - WebAccountClientView(get_activation_factory().CreateWithPairwiseId(viewType, applicationCallbackUri, accountPairwiseId)) -{} - -inline Windows::Foundation::IAsyncAction WebAccountManager::UpdateWebAccountPropertiesAsync(const Windows::Security::Credentials::WebAccount & webAccount, hstring_ref webAccountUserName, const Windows::Foundation::Collections::IMapView & additionalProperties) -{ - return get_activation_factory().UpdateWebAccountPropertiesAsync(webAccount, webAccountUserName, additionalProperties); -} - -inline Windows::Foundation::IAsyncOperation WebAccountManager::AddWebAccountAsync(hstring_ref webAccountId, hstring_ref webAccountUserName, const Windows::Foundation::Collections::IMapView & props) -{ - return get_activation_factory().AddWebAccountAsync(webAccountId, webAccountUserName, props); -} - -inline Windows::Foundation::IAsyncAction WebAccountManager::DeleteWebAccountAsync(const Windows::Security::Credentials::WebAccount & webAccount) -{ - return get_activation_factory().DeleteWebAccountAsync(webAccount); -} - -inline Windows::Foundation::IAsyncOperation> WebAccountManager::FindAllProviderWebAccountsAsync() -{ - return get_activation_factory().FindAllProviderWebAccountsAsync(); -} - -inline Windows::Foundation::IAsyncAction WebAccountManager::PushCookiesAsync(const Windows::Foundation::Uri & uri, const Windows::Foundation::Collections::IVectorView & cookies) -{ - return get_activation_factory().PushCookiesAsync(uri, cookies); -} - -inline Windows::Foundation::IAsyncAction WebAccountManager::SetViewAsync(const Windows::Security::Credentials::WebAccount & webAccount, const Windows::Security::Authentication::Web::Provider::WebAccountClientView & view) -{ - return get_activation_factory().SetViewAsync(webAccount, view); -} - -inline Windows::Foundation::IAsyncAction WebAccountManager::ClearViewAsync(const Windows::Security::Credentials::WebAccount & webAccount, const Windows::Foundation::Uri & applicationCallbackUri) -{ - return get_activation_factory().ClearViewAsync(webAccount, applicationCallbackUri); -} - -inline Windows::Foundation::IAsyncOperation> WebAccountManager::GetViewsAsync(const Windows::Security::Credentials::WebAccount & webAccount) -{ - return get_activation_factory().GetViewsAsync(webAccount); -} - -inline Windows::Foundation::IAsyncAction WebAccountManager::SetWebAccountPictureAsync(const Windows::Security::Credentials::WebAccount & webAccount, const Windows::Storage::Streams::IRandomAccessStream & webAccountPicture) -{ - return get_activation_factory().SetWebAccountPictureAsync(webAccount, webAccountPicture); -} - -inline Windows::Foundation::IAsyncAction WebAccountManager::ClearWebAccountPictureAsync(const Windows::Security::Credentials::WebAccount & webAccount) -{ - return get_activation_factory().ClearWebAccountPictureAsync(webAccount); -} - -inline Windows::Foundation::IAsyncAction WebAccountManager::PullCookiesAsync(hstring_ref uriString, hstring_ref callerPFN) -{ - return get_activation_factory().PullCookiesAsync(uriString, callerPFN); -} - -inline Windows::Foundation::IAsyncOperation WebAccountManager::AddWebAccountAsync(hstring_ref webAccountId, hstring_ref webAccountUserName, const Windows::Foundation::Collections::IMapView & props, Windows::Security::Authentication::Web::Provider::WebAccountScope scope, hstring_ref perUserWebAccountId) -{ - return get_activation_factory().AddWebAccountAsync(webAccountId, webAccountUserName, props, scope, perUserWebAccountId); -} - -inline Windows::Foundation::IAsyncAction WebAccountManager::SetPerAppToPerUserAccountAsync(const Windows::Security::Credentials::WebAccount & perAppAccount, hstring_ref perUserWebAccountId) -{ - return get_activation_factory().SetPerAppToPerUserAccountAsync(perAppAccount, perUserWebAccountId); -} - -inline Windows::Foundation::IAsyncOperation WebAccountManager::GetPerUserFromPerAppAccountAsync(const Windows::Security::Credentials::WebAccount & perAppAccount) -{ - return get_activation_factory().GetPerUserFromPerAppAccountAsync(perAppAccount); -} - -inline Windows::Foundation::IAsyncAction WebAccountManager::ClearPerUserFromPerAppAccountAsync(const Windows::Security::Credentials::WebAccount & perAppAccount) -{ - return get_activation_factory().ClearPerUserFromPerAppAccountAsync(perAppAccount); -} - -inline Windows::Foundation::IAsyncOperation WebAccountManager::AddWebAccountAsync(hstring_ref webAccountId, hstring_ref webAccountUserName, const Windows::Foundation::Collections::IMapView & props, Windows::Security::Authentication::Web::Provider::WebAccountScope scope) -{ - return get_activation_factory().AddWebAccountAsync(webAccountId, webAccountUserName, props, scope); -} - -inline Windows::Foundation::IAsyncAction WebAccountManager::SetScopeAsync(const Windows::Security::Credentials::WebAccount & webAccount, Windows::Security::Authentication::Web::Provider::WebAccountScope scope) -{ - return get_activation_factory().SetScopeAsync(webAccount, scope); -} - -inline Windows::Security::Authentication::Web::Provider::WebAccountScope WebAccountManager::GetScope(const Windows::Security::Credentials::WebAccount & webAccount) -{ - return get_activation_factory().GetScope(webAccount); -} - -inline WebProviderTokenResponse::WebProviderTokenResponse(const Windows::Security::Authentication::Web::Core::WebTokenResponse & webTokenResponse) : - WebProviderTokenResponse(get_activation_factory().Create(webTokenResponse)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Authentication.Web.h b/10.0.14393.0/winrt/Windows.Security.Authentication.Web.h deleted file mode 100644 index 98510860d..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Authentication.Web.h +++ /dev/null @@ -1,292 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Security.Authentication.Web.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AuthenticateWithCallbackUriAsync(Windows::Security::Authentication::Web::WebAuthenticationOptions options, abi_arg_in requestUri, abi_arg_in callbackUri, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().AuthenticateAsync(options, *reinterpret_cast(&requestUri), *reinterpret_cast(&callbackUri))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AuthenticateWithoutCallbackUriAsync(Windows::Security::Authentication::Web::WebAuthenticationOptions options, abi_arg_in requestUri, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().AuthenticateAsync(options, *reinterpret_cast(&requestUri))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentApplicationCallbackUri(abi_arg_out callbackUri) noexcept override - { - try - { - *callbackUri = detach(this->shim().GetCurrentApplicationCallbackUri()); - return S_OK; - } - catch (...) - { - *callbackUri = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AuthenticateAndContinue(abi_arg_in requestUri) noexcept override - { - try - { - this->shim().AuthenticateAndContinue(*reinterpret_cast(&requestUri)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AuthenticateWithCallbackUriAndContinue(abi_arg_in requestUri, abi_arg_in callbackUri) noexcept override - { - try - { - this->shim().AuthenticateAndContinue(*reinterpret_cast(&requestUri), *reinterpret_cast(&callbackUri)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AuthenticateWithCallbackUriContinuationDataAndOptionsAndContinue(abi_arg_in requestUri, abi_arg_in callbackUri, abi_arg_in continuationData, Windows::Security::Authentication::Web::WebAuthenticationOptions options) noexcept override - { - try - { - this->shim().AuthenticateAndContinue(*reinterpret_cast(&requestUri), *reinterpret_cast(&callbackUri), *reinterpret_cast(&continuationData), options); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AuthenticateSilentlyAsync(abi_arg_in requestUri, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().AuthenticateSilentlyAsync(*reinterpret_cast(&requestUri))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AuthenticateSilentlyWithOptionsAsync(abi_arg_in requestUri, Windows::Security::Authentication::Web::WebAuthenticationOptions options, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().AuthenticateSilentlyAsync(*reinterpret_cast(&requestUri), options)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ResponseData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ResponseData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResponseStatus(Windows::Security::Authentication::Web::WebAuthenticationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().ResponseStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ResponseErrorDetail(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ResponseErrorDetail()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Authentication::Web { - -template hstring impl_IWebAuthenticationResult::ResponseData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ResponseData(put(value))); - return value; -} - -template Windows::Security::Authentication::Web::WebAuthenticationStatus impl_IWebAuthenticationResult::ResponseStatus() const -{ - Windows::Security::Authentication::Web::WebAuthenticationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_ResponseStatus(&value)); - return value; -} - -template uint32_t impl_IWebAuthenticationResult::ResponseErrorDetail() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ResponseErrorDetail(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationBrokerStatics::AuthenticateAsync(Windows::Security::Authentication::Web::WebAuthenticationOptions options, const Windows::Foundation::Uri & requestUri, const Windows::Foundation::Uri & callbackUri) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_AuthenticateWithCallbackUriAsync(options, get(requestUri), get(callbackUri), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationBrokerStatics::AuthenticateAsync(Windows::Security::Authentication::Web::WebAuthenticationOptions options, const Windows::Foundation::Uri & requestUri) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_AuthenticateWithoutCallbackUriAsync(options, get(requestUri), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::Uri impl_IWebAuthenticationBrokerStatics::GetCurrentApplicationCallbackUri() const -{ - Windows::Foundation::Uri callbackUri { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentApplicationCallbackUri(put(callbackUri))); - return callbackUri; -} - -template void impl_IWebAuthenticationBrokerStatics2::AuthenticateAndContinue(const Windows::Foundation::Uri & requestUri) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AuthenticateAndContinue(get(requestUri))); -} - -template void impl_IWebAuthenticationBrokerStatics2::AuthenticateAndContinue(const Windows::Foundation::Uri & requestUri, const Windows::Foundation::Uri & callbackUri) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AuthenticateWithCallbackUriAndContinue(get(requestUri), get(callbackUri))); -} - -template void impl_IWebAuthenticationBrokerStatics2::AuthenticateAndContinue(const Windows::Foundation::Uri & requestUri, const Windows::Foundation::Uri & callbackUri, const Windows::Foundation::Collections::ValueSet & continuationData, Windows::Security::Authentication::Web::WebAuthenticationOptions options) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AuthenticateWithCallbackUriContinuationDataAndOptionsAndContinue(get(requestUri), get(callbackUri), get(continuationData), options)); -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationBrokerStatics2::AuthenticateSilentlyAsync(const Windows::Foundation::Uri & requestUri) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_AuthenticateSilentlyAsync(get(requestUri), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAuthenticationBrokerStatics2::AuthenticateSilentlyAsync(const Windows::Foundation::Uri & requestUri, Windows::Security::Authentication::Web::WebAuthenticationOptions options) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_AuthenticateSilentlyWithOptionsAsync(get(requestUri), options, put(asyncInfo))); - return asyncInfo; -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationBroker::AuthenticateAsync(Windows::Security::Authentication::Web::WebAuthenticationOptions options, const Windows::Foundation::Uri & requestUri, const Windows::Foundation::Uri & callbackUri) -{ - return get_activation_factory().AuthenticateAsync(options, requestUri, callbackUri); -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationBroker::AuthenticateAsync(Windows::Security::Authentication::Web::WebAuthenticationOptions options, const Windows::Foundation::Uri & requestUri) -{ - return get_activation_factory().AuthenticateAsync(options, requestUri); -} - -inline Windows::Foundation::Uri WebAuthenticationBroker::GetCurrentApplicationCallbackUri() -{ - return get_activation_factory().GetCurrentApplicationCallbackUri(); -} - -inline void WebAuthenticationBroker::AuthenticateAndContinue(const Windows::Foundation::Uri & requestUri) -{ - get_activation_factory().AuthenticateAndContinue(requestUri); -} - -inline void WebAuthenticationBroker::AuthenticateAndContinue(const Windows::Foundation::Uri & requestUri, const Windows::Foundation::Uri & callbackUri) -{ - get_activation_factory().AuthenticateAndContinue(requestUri, callbackUri); -} - -inline void WebAuthenticationBroker::AuthenticateAndContinue(const Windows::Foundation::Uri & requestUri, const Windows::Foundation::Uri & callbackUri, const Windows::Foundation::Collections::ValueSet & continuationData, Windows::Security::Authentication::Web::WebAuthenticationOptions options) -{ - get_activation_factory().AuthenticateAndContinue(requestUri, callbackUri, continuationData, options); -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationBroker::AuthenticateSilentlyAsync(const Windows::Foundation::Uri & requestUri) -{ - return get_activation_factory().AuthenticateSilentlyAsync(requestUri); -} - -inline Windows::Foundation::IAsyncOperation WebAuthenticationBroker::AuthenticateSilentlyAsync(const Windows::Foundation::Uri & requestUri, Windows::Security::Authentication::Web::WebAuthenticationOptions options) -{ - return get_activation_factory().AuthenticateSilentlyAsync(requestUri, options); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Credentials.UI.h b/10.0.14393.0/winrt/Windows.Security.Credentials.UI.h deleted file mode 100644 index 68652bcd9..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Credentials.UI.h +++ /dev/null @@ -1,700 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Security.Credentials.UI.3.h" -#include "Windows.Security.Credentials.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Caption(abi_arg_in value) noexcept override - { - try - { - this->shim().Caption(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Caption(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Caption()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Message(abi_arg_in value) noexcept override - { - try - { - this->shim().Message(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Message(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Message()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ErrorCode(uint32_t value) noexcept override - { - try - { - this->shim().ErrorCode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ErrorCode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetName(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AuthenticationProtocol(Windows::Security::Credentials::UI::AuthenticationProtocol value) noexcept override - { - try - { - this->shim().AuthenticationProtocol(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationProtocol(Windows::Security::Credentials::UI::AuthenticationProtocol * value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationProtocol()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CustomAuthenticationProtocol(abi_arg_in value) noexcept override - { - try - { - this->shim().CustomAuthenticationProtocol(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomAuthenticationProtocol(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomAuthenticationProtocol()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreviousCredential(abi_arg_in value) noexcept override - { - try - { - this->shim().PreviousCredential(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreviousCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreviousCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AlwaysDisplayDialog(bool value) noexcept override - { - try - { - this->shim().AlwaysDisplayDialog(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlwaysDisplayDialog(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AlwaysDisplayDialog()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CallerSavesCredential(bool value) noexcept override - { - try - { - this->shim().CallerSavesCredential(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CallerSavesCredential(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CallerSavesCredential()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CredentialSaveOption(Windows::Security::Credentials::UI::CredentialSaveOption value) noexcept override - { - try - { - this->shim().CredentialSaveOption(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CredentialSaveOption(Windows::Security::Credentials::UI::CredentialSaveOption * value) noexcept override - { - try - { - *value = detach(this->shim().CredentialSaveOption()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ErrorCode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CredentialSaveOption(Windows::Security::Credentials::UI::CredentialSaveOption * value) noexcept override - { - try - { - *value = detach(this->shim().CredentialSaveOption()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CredentialSaved(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CredentialSaved()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Credential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Credential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CredentialDomainName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CredentialDomainName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CredentialUserName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CredentialUserName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CredentialPassword(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CredentialPassword()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_PickWithOptionsAsync(abi_arg_in options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PickAsync(*reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickWithMessageAsync(abi_arg_in targetName, abi_arg_in message, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PickAsync(*reinterpret_cast(&targetName), *reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickWithCaptionAsync(abi_arg_in targetName, abi_arg_in message, abi_arg_in caption, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PickAsync(*reinterpret_cast(&targetName), *reinterpret_cast(&message), *reinterpret_cast(&caption))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CheckAvailabilityAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CheckAvailabilityAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestVerificationAsync(abi_arg_in message, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestVerificationAsync(*reinterpret_cast(&message))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Credentials::UI { - -template void impl_ICredentialPickerOptions::Caption(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Caption(get(value))); -} - -template hstring impl_ICredentialPickerOptions::Caption() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Caption(put(value))); - return value; -} - -template void impl_ICredentialPickerOptions::Message(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Message(get(value))); -} - -template hstring impl_ICredentialPickerOptions::Message() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Message(put(value))); - return value; -} - -template void impl_ICredentialPickerOptions::ErrorCode(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ErrorCode(value)); -} - -template uint32_t impl_ICredentialPickerOptions::ErrorCode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template void impl_ICredentialPickerOptions::TargetName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetName(get(value))); -} - -template hstring impl_ICredentialPickerOptions::TargetName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TargetName(put(value))); - return value; -} - -template void impl_ICredentialPickerOptions::AuthenticationProtocol(Windows::Security::Credentials::UI::AuthenticationProtocol value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AuthenticationProtocol(value)); -} - -template Windows::Security::Credentials::UI::AuthenticationProtocol impl_ICredentialPickerOptions::AuthenticationProtocol() const -{ - Windows::Security::Credentials::UI::AuthenticationProtocol value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationProtocol(&value)); - return value; -} - -template void impl_ICredentialPickerOptions::CustomAuthenticationProtocol(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CustomAuthenticationProtocol(get(value))); -} - -template hstring impl_ICredentialPickerOptions::CustomAuthenticationProtocol() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CustomAuthenticationProtocol(put(value))); - return value; -} - -template void impl_ICredentialPickerOptions::PreviousCredential(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreviousCredential(get(value))); -} - -template Windows::Storage::Streams::IBuffer impl_ICredentialPickerOptions::PreviousCredential() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_PreviousCredential(put(value))); - return value; -} - -template void impl_ICredentialPickerOptions::AlwaysDisplayDialog(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AlwaysDisplayDialog(value)); -} - -template bool impl_ICredentialPickerOptions::AlwaysDisplayDialog() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AlwaysDisplayDialog(&value)); - return value; -} - -template void impl_ICredentialPickerOptions::CallerSavesCredential(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CallerSavesCredential(value)); -} - -template bool impl_ICredentialPickerOptions::CallerSavesCredential() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CallerSavesCredential(&value)); - return value; -} - -template void impl_ICredentialPickerOptions::CredentialSaveOption(Windows::Security::Credentials::UI::CredentialSaveOption value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CredentialSaveOption(value)); -} - -template Windows::Security::Credentials::UI::CredentialSaveOption impl_ICredentialPickerOptions::CredentialSaveOption() const -{ - Windows::Security::Credentials::UI::CredentialSaveOption value {}; - check_hresult(static_cast(static_cast(*this))->get_CredentialSaveOption(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICredentialPickerStatics::PickAsync(const Windows::Security::Credentials::UI::CredentialPickerOptions & options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PickWithOptionsAsync(get(options), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ICredentialPickerStatics::PickAsync(hstring_ref targetName, hstring_ref message) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PickWithMessageAsync(get(targetName), get(message), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ICredentialPickerStatics::PickAsync(hstring_ref targetName, hstring_ref message, hstring_ref caption) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PickWithCaptionAsync(get(targetName), get(message), get(caption), put(operation))); - return operation; -} - -template uint32_t impl_ICredentialPickerResults::ErrorCode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template Windows::Security::Credentials::UI::CredentialSaveOption impl_ICredentialPickerResults::CredentialSaveOption() const -{ - Windows::Security::Credentials::UI::CredentialSaveOption value {}; - check_hresult(static_cast(static_cast(*this))->get_CredentialSaveOption(&value)); - return value; -} - -template bool impl_ICredentialPickerResults::CredentialSaved() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CredentialSaved(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICredentialPickerResults::Credential() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Credential(put(value))); - return value; -} - -template hstring impl_ICredentialPickerResults::CredentialDomainName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CredentialDomainName(put(value))); - return value; -} - -template hstring impl_ICredentialPickerResults::CredentialUserName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CredentialUserName(put(value))); - return value; -} - -template hstring impl_ICredentialPickerResults::CredentialPassword() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CredentialPassword(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IUserConsentVerifierStatics::CheckAvailabilityAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CheckAvailabilityAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IUserConsentVerifierStatics::RequestVerificationAsync(hstring_ref message) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestVerificationAsync(get(message), put(result))); - return result; -} - -inline Windows::Foundation::IAsyncOperation CredentialPicker::PickAsync(const Windows::Security::Credentials::UI::CredentialPickerOptions & options) -{ - return get_activation_factory().PickAsync(options); -} - -inline Windows::Foundation::IAsyncOperation CredentialPicker::PickAsync(hstring_ref targetName, hstring_ref message) -{ - return get_activation_factory().PickAsync(targetName, message); -} - -inline Windows::Foundation::IAsyncOperation CredentialPicker::PickAsync(hstring_ref targetName, hstring_ref message, hstring_ref caption) -{ - return get_activation_factory().PickAsync(targetName, message, caption); -} - -inline CredentialPickerOptions::CredentialPickerOptions() : - CredentialPickerOptions(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation UserConsentVerifier::CheckAvailabilityAsync() -{ - return get_activation_factory().CheckAvailabilityAsync(); -} - -inline Windows::Foundation::IAsyncOperation UserConsentVerifier::RequestVerificationAsync(hstring_ref message) -{ - return get_activation_factory().RequestVerificationAsync(message); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Credentials.h b/10.0.14393.0/winrt/Windows.Security.Credentials.h deleted file mode 100644 index 60f3d856e..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Credentials.h +++ /dev/null @@ -1,1119 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Security.Cryptography.Core.3.h" -#include "internal/Windows.Security.Credentials.3.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreatePasswordCredential(abi_arg_in resource, abi_arg_in userName, abi_arg_in password, abi_arg_out credential) noexcept override - { - try - { - *credential = detach(this->shim().CreatePasswordCredential(*reinterpret_cast(&resource), *reinterpret_cast(&userName), *reinterpret_cast(&password))); - return S_OK; - } - catch (...) - { - *credential = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetrievePublicKeyWithDefaultBlobType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RetrievePublicKey()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetrievePublicKeyWithBlobType(Windows::Security::Cryptography::Core::CryptographicPublicKeyBlobType blobType, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RetrievePublicKey(blobType)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestSignAsync(abi_arg_in data, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequestSignAsync(*reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAttestationAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetAttestationAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CertificateChainBuffer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CertificateChainBuffer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttestationBuffer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AttestationBuffer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Security::Credentials::KeyCredentialAttestationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsSupportedAsync(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IsSupportedAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RenewAttestationAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().RenewAttestationAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCreateAsync(abi_arg_in name, Windows::Security::Credentials::KeyCredentialCreationOption option, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequestCreateAsync(*reinterpret_cast(&name), option)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenAsync(abi_arg_in name, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().OpenAsync(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_in name, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().DeleteAsync(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Result(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Result()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Security::Credentials::KeyCredentialStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Credential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Credential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Security::Credentials::KeyCredentialStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Resource(abi_arg_out resource) noexcept override - { - try - { - *resource = detach(this->shim().Resource()); - return S_OK; - } - catch (...) - { - *resource = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Resource(abi_arg_in resource) noexcept override - { - try - { - this->shim().Resource(*reinterpret_cast(&resource)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserName(abi_arg_out userName) noexcept override - { - try - { - *userName = detach(this->shim().UserName()); - return S_OK; - } - catch (...) - { - *userName = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UserName(abi_arg_in userName) noexcept override - { - try - { - this->shim().UserName(*reinterpret_cast(&userName)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Password(abi_arg_out password) noexcept override - { - try - { - *password = detach(this->shim().Password()); - return S_OK; - } - catch (...) - { - *password = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Password(abi_arg_in password) noexcept override - { - try - { - this->shim().Password(*reinterpret_cast(&password)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetrievePassword() noexcept override - { - try - { - this->shim().RetrievePassword(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out props) noexcept override - { - try - { - *props = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *props = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Add(abi_arg_in credential) noexcept override - { - try - { - this->shim().Add(*reinterpret_cast(&credential)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Remove(abi_arg_in credential) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&credential)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Retrieve(abi_arg_in resource, abi_arg_in userName, abi_arg_out credential) noexcept override - { - try - { - *credential = detach(this->shim().Retrieve(*reinterpret_cast(&resource), *reinterpret_cast(&userName))); - return S_OK; - } - catch (...) - { - *credential = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllByResource(abi_arg_in resource, abi_arg_out> credentials) noexcept override - { - try - { - *credentials = detach(this->shim().FindAllByResource(*reinterpret_cast(&resource))); - return S_OK; - } - catch (...) - { - *credentials = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllByUserName(abi_arg_in userName, abi_arg_out> credentials) noexcept override - { - try - { - *credentials = detach(this->shim().FindAllByUserName(*reinterpret_cast(&userName))); - return S_OK; - } - catch (...) - { - *credentials = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetrieveAll(abi_arg_out> credentials) noexcept override - { - try - { - *credentials = detach(this->shim().RetrieveAll()); - return S_OK; - } - catch (...) - { - *credentials = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WebAccountProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WebAccountProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(Windows::Security::Credentials::WebAccountState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPictureAsync(Windows::Security::Credentials::WebAccountPictureSize desizedSize, abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().GetPictureAsync(desizedSize)); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SignOutAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SignOutAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SignOutWithClientIdAsync(abi_arg_in clientId, abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().SignOutAsync(*reinterpret_cast(&clientId))); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWebAccount(abi_arg_in webAccountProvider, abi_arg_in userName, Windows::Security::Credentials::WebAccountState state, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateWebAccount(*reinterpret_cast(&webAccountProvider), *reinterpret_cast(&userName), state)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IconUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IconUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayPurpose(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayPurpose()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Authority(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Authority()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_User(abi_arg_out user) noexcept override - { - try - { - *user = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *user = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWebAccountProvider(abi_arg_in id, abi_arg_in displayName, abi_arg_in iconUri, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateWebAccountProvider(*reinterpret_cast(&id), *reinterpret_cast(&displayName), *reinterpret_cast(&iconUri))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Credentials { - -template Windows::Security::Credentials::WebAccount impl_IWebAccountFactory::CreateWebAccount(const Windows::Security::Credentials::WebAccountProvider & webAccountProvider, hstring_ref userName, Windows::Security::Credentials::WebAccountState state) const -{ - Windows::Security::Credentials::WebAccount instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWebAccount(get(webAccountProvider), get(userName), state, put(instance))); - return instance; -} - -template Windows::Security::Credentials::WebAccountProvider impl_IWebAccount::WebAccountProvider() const -{ - Windows::Security::Credentials::WebAccountProvider value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WebAccountProvider(put(value))); - return value; -} - -template hstring impl_IWebAccount::UserName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserName(put(value))); - return value; -} - -template Windows::Security::Credentials::WebAccountState impl_IWebAccount::State() const -{ - Windows::Security::Credentials::WebAccountState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template hstring impl_IWebAccount2::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IWebAccount2::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IWebAccount2::GetPictureAsync(Windows::Security::Credentials::WebAccountPictureSize desizedSize) const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_GetPictureAsync(desizedSize, put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccount2::SignOutAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SignOutAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IWebAccount2::SignOutAsync(hstring_ref clientId) const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_SignOutWithClientIdAsync(get(clientId), put(asyncInfo))); - return asyncInfo; -} - -template Windows::Security::Credentials::WebAccountProvider impl_IWebAccountProviderFactory::CreateWebAccountProvider(hstring_ref id, hstring_ref displayName, const Windows::Foundation::Uri & iconUri) const -{ - Windows::Security::Credentials::WebAccountProvider instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWebAccountProvider(get(id), get(displayName), get(iconUri), put(instance))); - return instance; -} - -template hstring impl_IWebAccountProvider::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IWebAccountProvider::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IWebAccountProvider::IconUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IconUri(put(value))); - return value; -} - -template hstring impl_IWebAccountProvider2::DisplayPurpose() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayPurpose(put(value))); - return value; -} - -template hstring impl_IWebAccountProvider2::Authority() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Authority(put(value))); - return value; -} - -template Windows::System::User impl_IWebAccountProvider3::User() const -{ - Windows::System::User user { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(user))); - return user; -} - -template Windows::Foundation::IAsyncOperation impl_IKeyCredentialManagerStatics::IsSupportedAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_IsSupportedAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IKeyCredentialManagerStatics::RenewAttestationAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_RenewAttestationAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IKeyCredentialManagerStatics::RequestCreateAsync(hstring_ref name, Windows::Security::Credentials::KeyCredentialCreationOption option) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_RequestCreateAsync(get(name), option, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IKeyCredentialManagerStatics::OpenAsync(hstring_ref name) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_OpenAsync(get(name), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IKeyCredentialManagerStatics::DeleteAsync(hstring_ref name) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(get(name), put(operation))); - return operation; -} - -template hstring impl_IKeyCredential::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IKeyCredential::RetrievePublicKey() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_RetrievePublicKeyWithDefaultBlobType(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IKeyCredential::RetrievePublicKey(Windows::Security::Cryptography::Core::CryptographicPublicKeyBlobType blobType) const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_RetrievePublicKeyWithBlobType(blobType, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IKeyCredential::RequestSignAsync(const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_RequestSignAsync(get(data), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IKeyCredential::GetAttestationAsync() const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_GetAttestationAsync(put(value))); - return value; -} - -template Windows::Security::Credentials::KeyCredential impl_IKeyCredentialRetrievalResult::Credential() const -{ - Windows::Security::Credentials::KeyCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Credential(put(value))); - return value; -} - -template Windows::Security::Credentials::KeyCredentialStatus impl_IKeyCredentialRetrievalResult::Status() const -{ - Windows::Security::Credentials::KeyCredentialStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IKeyCredentialOperationResult::Result() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Result(put(value))); - return value; -} - -template Windows::Security::Credentials::KeyCredentialStatus impl_IKeyCredentialOperationResult::Status() const -{ - Windows::Security::Credentials::KeyCredentialStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IKeyCredentialAttestationResult::CertificateChainBuffer() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_CertificateChainBuffer(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IKeyCredentialAttestationResult::AttestationBuffer() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_AttestationBuffer(put(value))); - return value; -} - -template Windows::Security::Credentials::KeyCredentialAttestationStatus impl_IKeyCredentialAttestationResult::Status() const -{ - Windows::Security::Credentials::KeyCredentialAttestationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template hstring impl_IPasswordCredential::Resource() const -{ - hstring resource; - check_hresult(static_cast(static_cast(*this))->get_Resource(put(resource))); - return resource; -} - -template void impl_IPasswordCredential::Resource(hstring_ref resource) const -{ - check_hresult(static_cast(static_cast(*this))->put_Resource(get(resource))); -} - -template hstring impl_IPasswordCredential::UserName() const -{ - hstring userName; - check_hresult(static_cast(static_cast(*this))->get_UserName(put(userName))); - return userName; -} - -template void impl_IPasswordCredential::UserName(hstring_ref userName) const -{ - check_hresult(static_cast(static_cast(*this))->put_UserName(get(userName))); -} - -template hstring impl_IPasswordCredential::Password() const -{ - hstring password; - check_hresult(static_cast(static_cast(*this))->get_Password(put(password))); - return password; -} - -template void impl_IPasswordCredential::Password(hstring_ref password) const -{ - check_hresult(static_cast(static_cast(*this))->put_Password(get(password))); -} - -template void impl_IPasswordCredential::RetrievePassword() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RetrievePassword()); -} - -template Windows::Foundation::Collections::IPropertySet impl_IPasswordCredential::Properties() const -{ - Windows::Foundation::Collections::IPropertySet props; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(props))); - return props; -} - -template Windows::Security::Credentials::PasswordCredential impl_ICredentialFactory::CreatePasswordCredential(hstring_ref resource, hstring_ref userName, hstring_ref password) const -{ - Windows::Security::Credentials::PasswordCredential credential { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePasswordCredential(get(resource), get(userName), get(password), put(credential))); - return credential; -} - -template void impl_IPasswordVault::Add(const Windows::Security::Credentials::PasswordCredential & credential) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Add(get(credential))); -} - -template void impl_IPasswordVault::Remove(const Windows::Security::Credentials::PasswordCredential & credential) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Remove(get(credential))); -} - -template Windows::Security::Credentials::PasswordCredential impl_IPasswordVault::Retrieve(hstring_ref resource, hstring_ref userName) const -{ - Windows::Security::Credentials::PasswordCredential credential { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Retrieve(get(resource), get(userName), put(credential))); - return credential; -} - -template Windows::Foundation::Collections::IVectorView impl_IPasswordVault::FindAllByResource(hstring_ref resource) const -{ - Windows::Foundation::Collections::IVectorView credentials; - check_hresult(static_cast(static_cast(*this))->abi_FindAllByResource(get(resource), put(credentials))); - return credentials; -} - -template Windows::Foundation::Collections::IVectorView impl_IPasswordVault::FindAllByUserName(hstring_ref userName) const -{ - Windows::Foundation::Collections::IVectorView credentials; - check_hresult(static_cast(static_cast(*this))->abi_FindAllByUserName(get(userName), put(credentials))); - return credentials; -} - -template Windows::Foundation::Collections::IVectorView impl_IPasswordVault::RetrieveAll() const -{ - Windows::Foundation::Collections::IVectorView credentials; - check_hresult(static_cast(static_cast(*this))->abi_RetrieveAll(put(credentials))); - return credentials; -} - -inline Windows::Foundation::IAsyncOperation KeyCredentialManager::IsSupportedAsync() -{ - return get_activation_factory().IsSupportedAsync(); -} - -inline Windows::Foundation::IAsyncAction KeyCredentialManager::RenewAttestationAsync() -{ - return get_activation_factory().RenewAttestationAsync(); -} - -inline Windows::Foundation::IAsyncOperation KeyCredentialManager::RequestCreateAsync(hstring_ref name, Windows::Security::Credentials::KeyCredentialCreationOption option) -{ - return get_activation_factory().RequestCreateAsync(name, option); -} - -inline Windows::Foundation::IAsyncOperation KeyCredentialManager::OpenAsync(hstring_ref name) -{ - return get_activation_factory().OpenAsync(name); -} - -inline Windows::Foundation::IAsyncAction KeyCredentialManager::DeleteAsync(hstring_ref name) -{ - return get_activation_factory().DeleteAsync(name); -} - -inline PasswordCredential::PasswordCredential() : - PasswordCredential(activate_instance()) -{} - -inline PasswordCredential::PasswordCredential(hstring_ref resource, hstring_ref userName, hstring_ref password) : - PasswordCredential(get_activation_factory().CreatePasswordCredential(resource, userName, password)) -{} - -inline PasswordCredentialPropertyStore::PasswordCredentialPropertyStore() : - PasswordCredentialPropertyStore(activate_instance()) -{} - -inline PasswordVault::PasswordVault() : - PasswordVault(activate_instance()) -{} - -inline WebAccount::WebAccount(const Windows::Security::Credentials::WebAccountProvider & webAccountProvider, hstring_ref userName, Windows::Security::Credentials::WebAccountState state) : - WebAccount(get_activation_factory().CreateWebAccount(webAccountProvider, userName, state)) -{} - -inline WebAccountProvider::WebAccountProvider(hstring_ref id, hstring_ref displayName, const Windows::Foundation::Uri & iconUri) : - WebAccountProvider(get_activation_factory().CreateWebAccountProvider(id, displayName, iconUri)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Cryptography.Certificates.h b/10.0.14393.0/winrt/Windows.Security.Cryptography.Certificates.h deleted file mode 100644 index bedcab010..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Cryptography.Certificates.h +++ /dev/null @@ -1,4226 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Networking.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Security.Cryptography.Certificates.3.h" -#include "Windows.Security.Cryptography.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_BuildChainAsync(abi_arg_in> certificates, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BuildChainAsync(*reinterpret_cast *>(&certificates))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BuildChainWithParametersAsync(abi_arg_in> certificates, abi_arg_in parameters, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BuildChainAsync(*reinterpret_cast *>(&certificates), *reinterpret_cast(¶meters))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SerialNumber(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().SerialNumber()); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHashValue(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().GetHashValue()); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHashValueWithAlgorithm(abi_arg_in hashAlgorithmName, uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().GetHashValue(*reinterpret_cast(&hashAlgorithmName))); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCertificateBlob(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCertificateBlob()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Issuer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Issuer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasPrivateKey(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasPrivateKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStronglyProtected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStronglyProtected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ValidFrom(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ValidFrom()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ValidTo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ValidTo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EnhancedKeyUsages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EnhancedKeyUsages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FriendlyName(abi_arg_in value) noexcept override - { - try - { - this->shim().FriendlyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSecurityDeviceBound(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSecurityDeviceBound()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyUsages(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyUsages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyAlgorithmName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyAlgorithmName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SignatureAlgorithmName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SignatureAlgorithmName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SignatureHashAlgorithmName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SignatureHashAlgorithmName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubjectAlternativeName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SubjectAlternativeName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsPerUser(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPerUser()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StoreName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StoreName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyStorageProviderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyStorageProviderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Validate(Windows::Security::Cryptography::Certificates::ChainValidationResult * status) noexcept override - { - try - { - *status = detach(this->shim().Validate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ValidateWithParameters(abi_arg_in parameter, Windows::Security::Cryptography::Certificates::ChainValidationResult * status) noexcept override - { - try - { - *status = detach(this->shim().Validate(*reinterpret_cast(¶meter))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCertificates(bool includeRoot, abi_arg_out> certificates) noexcept override - { - try - { - *certificates = detach(this->shim().GetCertificates(includeRoot)); - return S_OK; - } - catch (...) - { - *certificates = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateRequestAsync(abi_arg_in request, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateRequestAsync(*reinterpret_cast(&request))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InstallCertificateAsync(abi_arg_in certificate, Windows::Security::Cryptography::Certificates::InstallOptions installOption, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InstallCertificateAsync(*reinterpret_cast(&certificate), installOption)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportPfxDataAsync(abi_arg_in pfxData, abi_arg_in password, Windows::Security::Cryptography::Certificates::ExportOption exportable, Windows::Security::Cryptography::Certificates::KeyProtectionLevel keyProtectionLevel, Windows::Security::Cryptography::Certificates::InstallOptions installOption, abi_arg_in friendlyName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImportPfxDataAsync(*reinterpret_cast(&pfxData), *reinterpret_cast(&password), exportable, keyProtectionLevel, installOption, *reinterpret_cast(&friendlyName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UserCertificateEnrollmentManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserCertificateEnrollmentManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportPfxDataToKspAsync(abi_arg_in pfxData, abi_arg_in password, Windows::Security::Cryptography::Certificates::ExportOption exportable, Windows::Security::Cryptography::Certificates::KeyProtectionLevel keyProtectionLevel, Windows::Security::Cryptography::Certificates::InstallOptions installOption, abi_arg_in friendlyName, abi_arg_in keyStorageProvider, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImportPfxDataAsync(*reinterpret_cast(&pfxData), *reinterpret_cast(&password), exportable, keyProtectionLevel, installOption, *reinterpret_cast(&friendlyName), *reinterpret_cast(&keyStorageProvider))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ImportPfxDataToKspWithParametersAsync(abi_arg_in pfxData, abi_arg_in password, abi_arg_in pfxImportParameters, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImportPfxDataAsync(*reinterpret_cast(&pfxData), *reinterpret_cast(&password), *reinterpret_cast(&pfxImportParameters))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCertificate(abi_arg_in certBlob, abi_arg_out certificate) noexcept override - { - try - { - *certificate = detach(this->shim().CreateCertificate(*reinterpret_cast(&certBlob))); - return S_OK; - } - catch (...) - { - *certificate = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EncipherOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().EncipherOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EncipherOnly(bool value) noexcept override - { - try - { - this->shim().EncipherOnly(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CrlSign(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CrlSign()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CrlSign(bool value) noexcept override - { - try - { - this->shim().CrlSign(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyCertificateSign(bool * value) noexcept override - { - try - { - *value = detach(this->shim().KeyCertificateSign()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeyCertificateSign(bool value) noexcept override - { - try - { - this->shim().KeyCertificateSign(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyAgreement(bool * value) noexcept override - { - try - { - *value = detach(this->shim().KeyAgreement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeyAgreement(bool value) noexcept override - { - try - { - this->shim().KeyAgreement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataEncipherment(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DataEncipherment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataEncipherment(bool value) noexcept override - { - try - { - this->shim().DataEncipherment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyEncipherment(bool * value) noexcept override - { - try - { - *value = detach(this->shim().KeyEncipherment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeyEncipherment(bool value) noexcept override - { - try - { - this->shim().KeyEncipherment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NonRepudiation(bool * value) noexcept override - { - try - { - *value = detach(this->shim().NonRepudiation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NonRepudiation(bool value) noexcept override - { - try - { - this->shim().NonRepudiation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DigitalSignature(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DigitalSignature()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DigitalSignature(bool value) noexcept override - { - try - { - this->shim().DigitalSignature(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnhancedKeyUsages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EnhancedKeyUsages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IssuerName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IssuerName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IssuerName(abi_arg_in value) noexcept override - { - try - { - this->shim().IssuerName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FriendlyName(abi_arg_in value) noexcept override - { - try - { - this->shim().FriendlyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbprint(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().Thumbprint()); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Thumbprint(uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().Thumbprint(array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HardwareOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HardwareOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HardwareOnly(bool value) noexcept override - { - try - { - this->shim().HardwareOnly(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IncludeDuplicates(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeDuplicates()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncludeDuplicates(bool value) noexcept override - { - try - { - this->shim().IncludeDuplicates(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncludeExpiredCertificates(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IncludeExpiredCertificates()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncludeExpiredCertificates(bool value) noexcept override - { - try - { - this->shim().IncludeExpiredCertificates(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StoreName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StoreName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StoreName(abi_arg_in value) noexcept override - { - try - { - this->shim().StoreName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Subject(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subject()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Subject(abi_arg_in value) noexcept override - { - try - { - this->shim().Subject(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyAlgorithmName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyAlgorithmName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeyAlgorithmName(abi_arg_in value) noexcept override - { - try - { - this->shim().KeyAlgorithmName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeySize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().KeySize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeySize(uint32_t value) noexcept override - { - try - { - this->shim().KeySize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FriendlyName(abi_arg_in value) noexcept override - { - try - { - this->shim().FriendlyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HashAlgorithmName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HashAlgorithmName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HashAlgorithmName(abi_arg_in value) noexcept override - { - try - { - this->shim().HashAlgorithmName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Exportable(Windows::Security::Cryptography::Certificates::ExportOption * value) noexcept override - { - try - { - *value = detach(this->shim().Exportable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Exportable(Windows::Security::Cryptography::Certificates::ExportOption value) noexcept override - { - try - { - this->shim().Exportable(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyUsages(Windows::Security::Cryptography::Certificates::EnrollKeyUsages * value) noexcept override - { - try - { - *value = detach(this->shim().KeyUsages()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeyUsages(Windows::Security::Cryptography::Certificates::EnrollKeyUsages value) noexcept override - { - try - { - this->shim().KeyUsages(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyProtectionLevel(Windows::Security::Cryptography::Certificates::KeyProtectionLevel * value) noexcept override - { - try - { - *value = detach(this->shim().KeyProtectionLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeyProtectionLevel(Windows::Security::Cryptography::Certificates::KeyProtectionLevel value) noexcept override - { - try - { - this->shim().KeyProtectionLevel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyStorageProviderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyStorageProviderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeyStorageProviderName(abi_arg_in value) noexcept override - { - try - { - this->shim().KeyStorageProviderName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SmartcardReaderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmartcardReaderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SmartcardReaderName(abi_arg_in value) noexcept override - { - try - { - this->shim().SmartcardReaderName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SigningCertificate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SigningCertificate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SigningCertificate(abi_arg_in value) noexcept override - { - try - { - this->shim().SigningCertificate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttestationCredentialCertificate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AttestationCredentialCertificate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AttestationCredentialCertificate(abi_arg_in value) noexcept override - { - try - { - this->shim().AttestationCredentialCertificate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurveName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurveName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CurveName(abi_arg_in value) noexcept override - { - try - { - this->shim().CurveName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurveParameters(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().CurveParameters()); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CurveParameters(uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().CurveParameters(array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContainerNamePrefix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContainerNamePrefix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContainerNamePrefix(abi_arg_in value) noexcept override - { - try - { - this->shim().ContainerNamePrefix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContainerName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContainerName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContainerName(abi_arg_in value) noexcept override - { - try - { - this->shim().ContainerName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UseExistingKey(bool * value) noexcept override - { - try - { - *value = detach(this->shim().UseExistingKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UseExistingKey(bool value) noexcept override - { - try - { - this->shim().UseExistingKey(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Add(abi_arg_in certificate) noexcept override - { - try - { - this->shim().Add(*reinterpret_cast(&certificate)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Delete(abi_arg_in certificate) noexcept override - { - try - { - this->shim().Delete(*reinterpret_cast(&certificate)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindAllAsync(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().FindAllAsync()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllWithQueryAsync(abi_arg_in query, abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().FindAllAsync(*reinterpret_cast(&query))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrustedRootCertificationAuthorities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrustedRootCertificationAuthorities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IntermediateCertificationAuthorities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IntermediateCertificationAuthorities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStoreByName(abi_arg_in storeName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetStoreByName(*reinterpret_cast(&storeName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetUserStoreByName(abi_arg_in storeName, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetUserStoreByName(*reinterpret_cast(&storeName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnhancedKeyUsages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EnhancedKeyUsages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ValidationTimestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ValidationTimestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ValidationTimestamp(abi_arg_in value) noexcept override - { - try - { - this->shim().ValidationTimestamp(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RevocationCheckEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RevocationCheckEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RevocationCheckEnabled(bool value) noexcept override - { - try - { - this->shim().RevocationCheckEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NetworkRetrievalEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().NetworkRetrievalEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NetworkRetrievalEnabled(bool value) noexcept override - { - try - { - this->shim().NetworkRetrievalEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthorityInformationAccessEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AuthorityInformationAccessEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AuthorityInformationAccessEnabled(bool value) noexcept override - { - try - { - this->shim().AuthorityInformationAccessEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentTimeValidationEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentTimeValidationEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CurrentTimeValidationEnabled(bool value) noexcept override - { - try - { - this->shim().CurrentTimeValidationEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExclusiveTrustRoots(abi_arg_out> certificates) noexcept override - { - try - { - *certificates = detach(this->shim().ExclusiveTrustRoots()); - return S_OK; - } - catch (...) - { - *certificates = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CertificateChainPolicy(Windows::Security::Cryptography::Certificates::CertificateChainPolicy * value) noexcept override - { - try - { - *value = detach(this->shim().CertificateChainPolicy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CertificateChainPolicy(Windows::Security::Cryptography::Certificates::CertificateChainPolicy value) noexcept override - { - try - { - this->shim().CertificateChainPolicy(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServerDnsName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServerDnsName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ServerDnsName(abi_arg_in value) noexcept override - { - try - { - this->shim().ServerDnsName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Certificates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Certificates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Content(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Signers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Signers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_VerifySignature(Windows::Security::Cryptography::Certificates::SignatureValidationResult * value) noexcept override - { - try - { - *value = detach(this->shim().VerifySignature()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCmsAttachedSignature(abi_arg_in inputBlob, abi_arg_out cmsSignedData) noexcept override - { - try - { - *cmsSignedData = detach(this->shim().CreateCmsAttachedSignature(*reinterpret_cast(&inputBlob))); - return S_OK; - } - catch (...) - { - *cmsSignedData = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GenerateSignatureAsync(abi_arg_in data, abi_arg_in> signers, abi_arg_in> certificates, abi_arg_out> outputBlob) noexcept override - { - try - { - *outputBlob = detach(this->shim().GenerateSignatureAsync(*reinterpret_cast(&data), *reinterpret_cast *>(&signers), *reinterpret_cast *>(&certificates))); - return S_OK; - } - catch (...) - { - *outputBlob = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Certificates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Certificates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Signers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Signers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_VerifySignatureAsync(abi_arg_in data, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().VerifySignatureAsync(*reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCmsDetachedSignature(abi_arg_in inputBlob, abi_arg_out cmsSignedData) noexcept override - { - try - { - *cmsSignedData = detach(this->shim().CreateCmsDetachedSignature(*reinterpret_cast(&inputBlob))); - return S_OK; - } - catch (...) - { - *cmsSignedData = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GenerateSignatureAsync(abi_arg_in data, abi_arg_in> signers, abi_arg_in> certificates, abi_arg_out> outputBlob) noexcept override - { - try - { - *outputBlob = detach(this->shim().GenerateSignatureAsync(*reinterpret_cast(&data), *reinterpret_cast *>(&signers), *reinterpret_cast *>(&certificates))); - return S_OK; - } - catch (...) - { - *outputBlob = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Certificate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Certificate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Certificate(abi_arg_in value) noexcept override - { - try - { - this->shim().Certificate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HashAlgorithmName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HashAlgorithmName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HashAlgorithmName(abi_arg_in value) noexcept override - { - try - { - this->shim().HashAlgorithmName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimestampInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimestampInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SigningCertificate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SigningCertificate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Certificates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Certificates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Rsa(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Rsa()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Dsa(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Dsa()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ecdh256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ecdh256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ecdh384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ecdh384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ecdh521(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ecdh521()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ecdsa256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ecdsa256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ecdsa384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ecdsa384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ecdsa521(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ecdsa521()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Ecdsa(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ecdsa()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ecdh(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ecdh()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_DecryptTpmAttestationCredentialAsync(abi_arg_in credential, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DecryptTpmAttestationCredentialAsync(*reinterpret_cast(&credential))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTpmAttestationCredentialId(abi_arg_in credential, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetTpmAttestationCredentialId(*reinterpret_cast(&credential))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_DecryptTpmAttestationCredentialWithContainerNameAsync(abi_arg_in credential, abi_arg_in containerName, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DecryptTpmAttestationCredentialAsync(*reinterpret_cast(&credential), *reinterpret_cast(&containerName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SoftwareKeyStorageProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SoftwareKeyStorageProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmartcardKeyStorageProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmartcardKeyStorageProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlatformKeyStorageProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlatformKeyStorageProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PassportKeyStorageProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PassportKeyStorageProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Exportable(Windows::Security::Cryptography::Certificates::ExportOption * value) noexcept override - { - try - { - *value = detach(this->shim().Exportable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Exportable(Windows::Security::Cryptography::Certificates::ExportOption value) noexcept override - { - try - { - this->shim().Exportable(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyProtectionLevel(Windows::Security::Cryptography::Certificates::KeyProtectionLevel * value) noexcept override - { - try - { - *value = detach(this->shim().KeyProtectionLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeyProtectionLevel(Windows::Security::Cryptography::Certificates::KeyProtectionLevel value) noexcept override - { - try - { - this->shim().KeyProtectionLevel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstallOptions(Windows::Security::Cryptography::Certificates::InstallOptions * value) noexcept override - { - try - { - *value = detach(this->shim().InstallOptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InstallOptions(Windows::Security::Cryptography::Certificates::InstallOptions value) noexcept override - { - try - { - this->shim().InstallOptions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FriendlyName(abi_arg_in value) noexcept override - { - try - { - this->shim().FriendlyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyStorageProviderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyStorageProviderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeyStorageProviderName(abi_arg_in value) noexcept override - { - try - { - this->shim().KeyStorageProviderName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContainerNamePrefix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContainerNamePrefix()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContainerNamePrefix(abi_arg_in value) noexcept override - { - try - { - this->shim().ContainerNamePrefix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReaderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReaderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReaderName(abi_arg_in value) noexcept override - { - try - { - this->shim().ReaderName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Personal(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Personal()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrustedRootCertificationAuthorities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrustedRootCertificationAuthorities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IntermediateCertificationAuthorities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IntermediateCertificationAuthorities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EmailName(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().EmailName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IPAddress(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IPAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Url(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Url()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DnsName(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DnsName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DistinguishedName(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DistinguishedName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrincipalName(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PrincipalName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateRequestAsync(abi_arg_in request, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CreateRequestAsync(*reinterpret_cast(&request))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InstallCertificateAsync(abi_arg_in certificate, Windows::Security::Cryptography::Certificates::InstallOptions installOption, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InstallCertificateAsync(*reinterpret_cast(&certificate), installOption)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportPfxDataAsync(abi_arg_in pfxData, abi_arg_in password, Windows::Security::Cryptography::Certificates::ExportOption exportable, Windows::Security::Cryptography::Certificates::KeyProtectionLevel keyProtectionLevel, Windows::Security::Cryptography::Certificates::InstallOptions installOption, abi_arg_in friendlyName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImportPfxDataAsync(*reinterpret_cast(&pfxData), *reinterpret_cast(&password), exportable, keyProtectionLevel, installOption, *reinterpret_cast(&friendlyName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportPfxDataToKspAsync(abi_arg_in pfxData, abi_arg_in password, Windows::Security::Cryptography::Certificates::ExportOption exportable, Windows::Security::Cryptography::Certificates::KeyProtectionLevel keyProtectionLevel, Windows::Security::Cryptography::Certificates::InstallOptions installOption, abi_arg_in friendlyName, abi_arg_in keyStorageProvider, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImportPfxDataAsync(*reinterpret_cast(&pfxData), *reinterpret_cast(&password), exportable, keyProtectionLevel, installOption, *reinterpret_cast(&friendlyName), *reinterpret_cast(&keyStorageProvider))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ImportPfxDataToKspWithParametersAsync(abi_arg_in pfxData, abi_arg_in password, abi_arg_in pfxImportParameters, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImportPfxDataAsync(*reinterpret_cast(&pfxData), *reinterpret_cast(&password), *reinterpret_cast(&pfxImportParameters))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAddAsync(abi_arg_in certificate, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAddAsync(*reinterpret_cast(&certificate))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestDeleteAsync(abi_arg_in certificate, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestDeleteAsync(*reinterpret_cast(&certificate))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Cryptography::Certificates { - -template hstring impl_ICertificateRequestProperties::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template void impl_ICertificateRequestProperties::Subject(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Subject(get(value))); -} - -template hstring impl_ICertificateRequestProperties::KeyAlgorithmName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KeyAlgorithmName(put(value))); - return value; -} - -template void impl_ICertificateRequestProperties::KeyAlgorithmName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeyAlgorithmName(get(value))); -} - -template uint32_t impl_ICertificateRequestProperties::KeySize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_KeySize(&value)); - return value; -} - -template void impl_ICertificateRequestProperties::KeySize(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeySize(value)); -} - -template hstring impl_ICertificateRequestProperties::FriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FriendlyName(put(value))); - return value; -} - -template void impl_ICertificateRequestProperties::FriendlyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FriendlyName(get(value))); -} - -template hstring impl_ICertificateRequestProperties::HashAlgorithmName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HashAlgorithmName(put(value))); - return value; -} - -template void impl_ICertificateRequestProperties::HashAlgorithmName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HashAlgorithmName(get(value))); -} - -template Windows::Security::Cryptography::Certificates::ExportOption impl_ICertificateRequestProperties::Exportable() const -{ - Windows::Security::Cryptography::Certificates::ExportOption value {}; - check_hresult(static_cast(static_cast(*this))->get_Exportable(&value)); - return value; -} - -template void impl_ICertificateRequestProperties::Exportable(Windows::Security::Cryptography::Certificates::ExportOption value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Exportable(value)); -} - -template Windows::Security::Cryptography::Certificates::EnrollKeyUsages impl_ICertificateRequestProperties::KeyUsages() const -{ - Windows::Security::Cryptography::Certificates::EnrollKeyUsages value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyUsages(&value)); - return value; -} - -template void impl_ICertificateRequestProperties::KeyUsages(Windows::Security::Cryptography::Certificates::EnrollKeyUsages value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeyUsages(value)); -} - -template Windows::Security::Cryptography::Certificates::KeyProtectionLevel impl_ICertificateRequestProperties::KeyProtectionLevel() const -{ - Windows::Security::Cryptography::Certificates::KeyProtectionLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyProtectionLevel(&value)); - return value; -} - -template void impl_ICertificateRequestProperties::KeyProtectionLevel(Windows::Security::Cryptography::Certificates::KeyProtectionLevel value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeyProtectionLevel(value)); -} - -template hstring impl_ICertificateRequestProperties::KeyStorageProviderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KeyStorageProviderName(put(value))); - return value; -} - -template void impl_ICertificateRequestProperties::KeyStorageProviderName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeyStorageProviderName(get(value))); -} - -template hstring impl_ICertificateRequestProperties2::SmartcardReaderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SmartcardReaderName(put(value))); - return value; -} - -template void impl_ICertificateRequestProperties2::SmartcardReaderName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SmartcardReaderName(get(value))); -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_ICertificateRequestProperties2::SigningCertificate() const -{ - Windows::Security::Cryptography::Certificates::Certificate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SigningCertificate(put(value))); - return value; -} - -template void impl_ICertificateRequestProperties2::SigningCertificate(const Windows::Security::Cryptography::Certificates::Certificate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SigningCertificate(get(value))); -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_ICertificateRequestProperties2::AttestationCredentialCertificate() const -{ - Windows::Security::Cryptography::Certificates::Certificate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AttestationCredentialCertificate(put(value))); - return value; -} - -template void impl_ICertificateRequestProperties2::AttestationCredentialCertificate(const Windows::Security::Cryptography::Certificates::Certificate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AttestationCredentialCertificate(get(value))); -} - -template hstring impl_ICertificateRequestProperties3::CurveName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CurveName(put(value))); - return value; -} - -template void impl_ICertificateRequestProperties3::CurveName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CurveName(get(value))); -} - -template com_array impl_ICertificateRequestProperties3::CurveParameters() const -{ - com_array value {}; - check_hresult(static_cast(static_cast(*this))->get_CurveParameters(put_size(value), put(value))); - return value; -} - -template void impl_ICertificateRequestProperties3::CurveParameters(array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CurveParameters(value.size(), get(value))); -} - -template hstring impl_ICertificateRequestProperties3::ContainerNamePrefix() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContainerNamePrefix(put(value))); - return value; -} - -template void impl_ICertificateRequestProperties3::ContainerNamePrefix(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContainerNamePrefix(get(value))); -} - -template hstring impl_ICertificateRequestProperties3::ContainerName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContainerName(put(value))); - return value; -} - -template void impl_ICertificateRequestProperties3::ContainerName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContainerName(get(value))); -} - -template bool impl_ICertificateRequestProperties3::UseExistingKey() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_UseExistingKey(&value)); - return value; -} - -template void impl_ICertificateRequestProperties3::UseExistingKey(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UseExistingKey(value)); -} - -template Windows::Foundation::IAsyncOperation impl_ICertificateEnrollmentManagerStatics::CreateRequestAsync(const Windows::Security::Cryptography::Certificates::CertificateRequestProperties & request) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateRequestAsync(get(request), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ICertificateEnrollmentManagerStatics::InstallCertificateAsync(hstring_ref certificate, Windows::Security::Cryptography::Certificates::InstallOptions installOption) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_InstallCertificateAsync(get(certificate), installOption, put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ICertificateEnrollmentManagerStatics::ImportPfxDataAsync(hstring_ref pfxData, hstring_ref password, Windows::Security::Cryptography::Certificates::ExportOption exportable, Windows::Security::Cryptography::Certificates::KeyProtectionLevel keyProtectionLevel, Windows::Security::Cryptography::Certificates::InstallOptions installOption, hstring_ref friendlyName) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_ImportPfxDataAsync(get(pfxData), get(password), exportable, keyProtectionLevel, installOption, get(friendlyName), put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::UserCertificateEnrollmentManager impl_ICertificateEnrollmentManagerStatics2::UserCertificateEnrollmentManager() const -{ - Windows::Security::Cryptography::Certificates::UserCertificateEnrollmentManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UserCertificateEnrollmentManager(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ICertificateEnrollmentManagerStatics2::ImportPfxDataAsync(hstring_ref pfxData, hstring_ref password, Windows::Security::Cryptography::Certificates::ExportOption exportable, Windows::Security::Cryptography::Certificates::KeyProtectionLevel keyProtectionLevel, Windows::Security::Cryptography::Certificates::InstallOptions installOption, hstring_ref friendlyName, hstring_ref keyStorageProvider) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_ImportPfxDataToKspAsync(get(pfxData), get(password), exportable, keyProtectionLevel, installOption, get(friendlyName), get(keyStorageProvider), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ICertificateEnrollmentManagerStatics3::ImportPfxDataAsync(hstring_ref pfxData, hstring_ref password, const Windows::Security::Cryptography::Certificates::PfxImportParameters & pfxImportParameters) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_ImportPfxDataToKspWithParametersAsync(get(pfxData), get(password), get(pfxImportParameters), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IKeyAttestationHelperStatics::DecryptTpmAttestationCredentialAsync(hstring_ref credential) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_DecryptTpmAttestationCredentialAsync(get(credential), put(value))); - return value; -} - -template hstring impl_IKeyAttestationHelperStatics::GetTpmAttestationCredentialId(hstring_ref credential) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetTpmAttestationCredentialId(get(credential), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IKeyAttestationHelperStatics2::DecryptTpmAttestationCredentialAsync(hstring_ref credential, hstring_ref containerName) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_DecryptTpmAttestationCredentialWithContainerNameAsync(get(credential), get(containerName), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_ICertificateStoresStatics::FindAllAsync() const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsync(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_ICertificateStoresStatics::FindAllAsync(const Windows::Security::Cryptography::Certificates::CertificateQuery & query) const -{ - Windows::Foundation::IAsyncOperation> value; - check_hresult(static_cast(static_cast(*this))->abi_FindAllWithQueryAsync(get(query), put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::CertificateStore impl_ICertificateStoresStatics::TrustedRootCertificationAuthorities() const -{ - Windows::Security::Cryptography::Certificates::CertificateStore value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TrustedRootCertificationAuthorities(put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::CertificateStore impl_ICertificateStoresStatics::IntermediateCertificationAuthorities() const -{ - Windows::Security::Cryptography::Certificates::CertificateStore value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IntermediateCertificationAuthorities(put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::CertificateStore impl_ICertificateStoresStatics::GetStoreByName(hstring_ref storeName) const -{ - Windows::Security::Cryptography::Certificates::CertificateStore value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetStoreByName(get(storeName), put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::UserCertificateStore impl_ICertificateStoresStatics2::GetUserStoreByName(hstring_ref storeName) const -{ - Windows::Security::Cryptography::Certificates::UserCertificateStore result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetUserStoreByName(get(storeName), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IUserCertificateEnrollmentManager::CreateRequestAsync(const Windows::Security::Cryptography::Certificates::CertificateRequestProperties & request) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_CreateRequestAsync(get(request), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IUserCertificateEnrollmentManager::InstallCertificateAsync(hstring_ref certificate, Windows::Security::Cryptography::Certificates::InstallOptions installOption) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_InstallCertificateAsync(get(certificate), installOption, put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IUserCertificateEnrollmentManager::ImportPfxDataAsync(hstring_ref pfxData, hstring_ref password, Windows::Security::Cryptography::Certificates::ExportOption exportable, Windows::Security::Cryptography::Certificates::KeyProtectionLevel keyProtectionLevel, Windows::Security::Cryptography::Certificates::InstallOptions installOption, hstring_ref friendlyName) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_ImportPfxDataAsync(get(pfxData), get(password), exportable, keyProtectionLevel, installOption, get(friendlyName), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IUserCertificateEnrollmentManager::ImportPfxDataAsync(hstring_ref pfxData, hstring_ref password, Windows::Security::Cryptography::Certificates::ExportOption exportable, Windows::Security::Cryptography::Certificates::KeyProtectionLevel keyProtectionLevel, Windows::Security::Cryptography::Certificates::InstallOptions installOption, hstring_ref friendlyName, hstring_ref keyStorageProvider) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_ImportPfxDataToKspAsync(get(pfxData), get(password), exportable, keyProtectionLevel, installOption, get(friendlyName), get(keyStorageProvider), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IUserCertificateEnrollmentManager2::ImportPfxDataAsync(hstring_ref pfxData, hstring_ref password, const Windows::Security::Cryptography::Certificates::PfxImportParameters & pfxImportParameters) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_ImportPfxDataToKspWithParametersAsync(get(pfxData), get(password), get(pfxImportParameters), put(value))); - return value; -} - -template void impl_ICertificateStore::Add(const Windows::Security::Cryptography::Certificates::Certificate & certificate) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Add(get(certificate))); -} - -template void impl_ICertificateStore::Delete(const Windows::Security::Cryptography::Certificates::Certificate & certificate) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Delete(get(certificate))); -} - -template hstring impl_ICertificateStore2::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IUserCertificateStore::RequestAddAsync(const Windows::Security::Cryptography::Certificates::Certificate & certificate) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAddAsync(get(certificate), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IUserCertificateStore::RequestDeleteAsync(const Windows::Security::Cryptography::Certificates::Certificate & certificate) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestDeleteAsync(get(certificate), put(result))); - return result; -} - -template hstring impl_IUserCertificateStore::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template hstring impl_IStandardCertificateStoreNamesStatics::Personal() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Personal(put(value))); - return value; -} - -template hstring impl_IStandardCertificateStoreNamesStatics::TrustedRootCertificationAuthorities() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TrustedRootCertificationAuthorities(put(value))); - return value; -} - -template hstring impl_IStandardCertificateStoreNamesStatics::IntermediateCertificationAuthorities() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IntermediateCertificationAuthorities(put(value))); - return value; -} - -template hstring impl_IKeyAlgorithmNamesStatics::Rsa() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Rsa(put(value))); - return value; -} - -template hstring impl_IKeyAlgorithmNamesStatics::Dsa() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Dsa(put(value))); - return value; -} - -template hstring impl_IKeyAlgorithmNamesStatics::Ecdh256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ecdh256(put(value))); - return value; -} - -template hstring impl_IKeyAlgorithmNamesStatics::Ecdh384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ecdh384(put(value))); - return value; -} - -template hstring impl_IKeyAlgorithmNamesStatics::Ecdh521() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ecdh521(put(value))); - return value; -} - -template hstring impl_IKeyAlgorithmNamesStatics::Ecdsa256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ecdsa256(put(value))); - return value; -} - -template hstring impl_IKeyAlgorithmNamesStatics::Ecdsa384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ecdsa384(put(value))); - return value; -} - -template hstring impl_IKeyAlgorithmNamesStatics::Ecdsa521() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ecdsa521(put(value))); - return value; -} - -template hstring impl_IKeyAlgorithmNamesStatics2::Ecdsa() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ecdsa(put(value))); - return value; -} - -template hstring impl_IKeyAlgorithmNamesStatics2::Ecdh() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ecdh(put(value))); - return value; -} - -template hstring impl_IKeyStorageProviderNamesStatics::SoftwareKeyStorageProvider() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SoftwareKeyStorageProvider(put(value))); - return value; -} - -template hstring impl_IKeyStorageProviderNamesStatics::SmartcardKeyStorageProvider() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SmartcardKeyStorageProvider(put(value))); - return value; -} - -template hstring impl_IKeyStorageProviderNamesStatics::PlatformKeyStorageProvider() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PlatformKeyStorageProvider(put(value))); - return value; -} - -template hstring impl_IKeyStorageProviderNamesStatics2::PassportKeyStorageProvider() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PassportKeyStorageProvider(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IChainBuildingParameters::EnhancedKeyUsages() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_EnhancedKeyUsages(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IChainBuildingParameters::ValidationTimestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ValidationTimestamp(put(value))); - return value; -} - -template void impl_IChainBuildingParameters::ValidationTimestamp(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ValidationTimestamp(get(value))); -} - -template bool impl_IChainBuildingParameters::RevocationCheckEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RevocationCheckEnabled(&value)); - return value; -} - -template void impl_IChainBuildingParameters::RevocationCheckEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RevocationCheckEnabled(value)); -} - -template bool impl_IChainBuildingParameters::NetworkRetrievalEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_NetworkRetrievalEnabled(&value)); - return value; -} - -template void impl_IChainBuildingParameters::NetworkRetrievalEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NetworkRetrievalEnabled(value)); -} - -template bool impl_IChainBuildingParameters::AuthorityInformationAccessEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthorityInformationAccessEnabled(&value)); - return value; -} - -template void impl_IChainBuildingParameters::AuthorityInformationAccessEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AuthorityInformationAccessEnabled(value)); -} - -template bool impl_IChainBuildingParameters::CurrentTimeValidationEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentTimeValidationEnabled(&value)); - return value; -} - -template void impl_IChainBuildingParameters::CurrentTimeValidationEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CurrentTimeValidationEnabled(value)); -} - -template Windows::Foundation::Collections::IVector impl_IChainBuildingParameters::ExclusiveTrustRoots() const -{ - Windows::Foundation::Collections::IVector certificates; - check_hresult(static_cast(static_cast(*this))->get_ExclusiveTrustRoots(put(certificates))); - return certificates; -} - -template Windows::Security::Cryptography::Certificates::CertificateChainPolicy impl_IChainValidationParameters::CertificateChainPolicy() const -{ - Windows::Security::Cryptography::Certificates::CertificateChainPolicy value {}; - check_hresult(static_cast(static_cast(*this))->get_CertificateChainPolicy(&value)); - return value; -} - -template void impl_IChainValidationParameters::CertificateChainPolicy(Windows::Security::Cryptography::Certificates::CertificateChainPolicy value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CertificateChainPolicy(value)); -} - -template Windows::Networking::HostName impl_IChainValidationParameters::ServerDnsName() const -{ - Windows::Networking::HostName value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ServerDnsName(put(value))); - return value; -} - -template void impl_IChainValidationParameters::ServerDnsName(const Windows::Networking::HostName & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ServerDnsName(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_ICertificateQuery::EnhancedKeyUsages() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_EnhancedKeyUsages(put(value))); - return value; -} - -template hstring impl_ICertificateQuery::IssuerName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IssuerName(put(value))); - return value; -} - -template void impl_ICertificateQuery::IssuerName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IssuerName(get(value))); -} - -template hstring impl_ICertificateQuery::FriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FriendlyName(put(value))); - return value; -} - -template void impl_ICertificateQuery::FriendlyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FriendlyName(get(value))); -} - -template com_array impl_ICertificateQuery::Thumbprint() const -{ - com_array value {}; - check_hresult(static_cast(static_cast(*this))->get_Thumbprint(put_size(value), put(value))); - return value; -} - -template void impl_ICertificateQuery::Thumbprint(array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Thumbprint(value.size(), get(value))); -} - -template bool impl_ICertificateQuery::HardwareOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HardwareOnly(&value)); - return value; -} - -template void impl_ICertificateQuery::HardwareOnly(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HardwareOnly(value)); -} - -template bool impl_ICertificateQuery2::IncludeDuplicates() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeDuplicates(&value)); - return value; -} - -template void impl_ICertificateQuery2::IncludeDuplicates(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncludeDuplicates(value)); -} - -template bool impl_ICertificateQuery2::IncludeExpiredCertificates() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IncludeExpiredCertificates(&value)); - return value; -} - -template void impl_ICertificateQuery2::IncludeExpiredCertificates(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncludeExpiredCertificates(value)); -} - -template hstring impl_ICertificateQuery2::StoreName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StoreName(put(value))); - return value; -} - -template void impl_ICertificateQuery2::StoreName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StoreName(get(value))); -} - -template Windows::Security::Cryptography::Certificates::ChainValidationResult impl_ICertificateChain::Validate() const -{ - Windows::Security::Cryptography::Certificates::ChainValidationResult status {}; - check_hresult(static_cast(static_cast(*this))->abi_Validate(&status)); - return status; -} - -template Windows::Security::Cryptography::Certificates::ChainValidationResult impl_ICertificateChain::Validate(const Windows::Security::Cryptography::Certificates::ChainValidationParameters & parameter) const -{ - Windows::Security::Cryptography::Certificates::ChainValidationResult status {}; - check_hresult(static_cast(static_cast(*this))->abi_ValidateWithParameters(get(parameter), &status)); - return status; -} - -template Windows::Foundation::Collections::IVectorView impl_ICertificateChain::GetCertificates(bool includeRoot) const -{ - Windows::Foundation::Collections::IVectorView certificates; - check_hresult(static_cast(static_cast(*this))->abi_GetCertificates(includeRoot, put(certificates))); - return certificates; -} - -template Windows::Foundation::IAsyncOperation impl_ICertificate::BuildChainAsync(const Windows::Foundation::Collections::IIterable & certificates) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_BuildChainAsync(get(certificates), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICertificate::BuildChainAsync(const Windows::Foundation::Collections::IIterable & certificates, const Windows::Security::Cryptography::Certificates::ChainBuildingParameters & parameters) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_BuildChainWithParametersAsync(get(certificates), get(parameters), put(value))); - return value; -} - -template com_array impl_ICertificate::SerialNumber() const -{ - com_array value {}; - check_hresult(static_cast(static_cast(*this))->get_SerialNumber(put_size(value), put(value))); - return value; -} - -template com_array impl_ICertificate::GetHashValue() const -{ - com_array value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetHashValue(put_size(value), put(value))); - return value; -} - -template com_array impl_ICertificate::GetHashValue(hstring_ref hashAlgorithmName) const -{ - com_array value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetHashValueWithAlgorithm(get(hashAlgorithmName), put_size(value), put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICertificate::GetCertificateBlob() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_GetCertificateBlob(put(value))); - return value; -} - -template hstring impl_ICertificate::Subject() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subject(put(value))); - return value; -} - -template hstring impl_ICertificate::Issuer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Issuer(put(value))); - return value; -} - -template bool impl_ICertificate::HasPrivateKey() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasPrivateKey(&value)); - return value; -} - -template bool impl_ICertificate::IsStronglyProtected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStronglyProtected(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_ICertificate::ValidFrom() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ValidFrom(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ICertificate::ValidTo() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ValidTo(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ICertificate::EnhancedKeyUsages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_EnhancedKeyUsages(put(value))); - return value; -} - -template void impl_ICertificate::FriendlyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FriendlyName(get(value))); -} - -template hstring impl_ICertificate::FriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FriendlyName(put(value))); - return value; -} - -template bool impl_ICertificate2::IsSecurityDeviceBound() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSecurityDeviceBound(&value)); - return value; -} - -template Windows::Security::Cryptography::Certificates::CertificateKeyUsages impl_ICertificate2::KeyUsages() const -{ - Windows::Security::Cryptography::Certificates::CertificateKeyUsages value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_KeyUsages(put(value))); - return value; -} - -template hstring impl_ICertificate2::KeyAlgorithmName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KeyAlgorithmName(put(value))); - return value; -} - -template hstring impl_ICertificate2::SignatureAlgorithmName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SignatureAlgorithmName(put(value))); - return value; -} - -template hstring impl_ICertificate2::SignatureHashAlgorithmName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SignatureHashAlgorithmName(put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::SubjectAlternativeNameInfo impl_ICertificate2::SubjectAlternativeName() const -{ - Windows::Security::Cryptography::Certificates::SubjectAlternativeNameInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SubjectAlternativeName(put(value))); - return value; -} - -template bool impl_ICertificate3::IsPerUser() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPerUser(&value)); - return value; -} - -template hstring impl_ICertificate3::StoreName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StoreName(put(value))); - return value; -} - -template hstring impl_ICertificate3::KeyStorageProviderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KeyStorageProviderName(put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_ICertificateFactory::CreateCertificate(const Windows::Storage::Streams::IBuffer & certBlob) const -{ - Windows::Security::Cryptography::Certificates::Certificate certificate { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCertificate(get(certBlob), put(certificate))); - return certificate; -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_ICmsTimestampInfo::SigningCertificate() const -{ - Windows::Security::Cryptography::Certificates::Certificate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SigningCertificate(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ICmsTimestampInfo::Certificates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Certificates(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_ICmsTimestampInfo::Timestamp() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::Certificate impl_ICmsSignerInfo::Certificate() const -{ - Windows::Security::Cryptography::Certificates::Certificate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Certificate(put(value))); - return value; -} - -template void impl_ICmsSignerInfo::Certificate(const Windows::Security::Cryptography::Certificates::Certificate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Certificate(get(value))); -} - -template hstring impl_ICmsSignerInfo::HashAlgorithmName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HashAlgorithmName(put(value))); - return value; -} - -template void impl_ICmsSignerInfo::HashAlgorithmName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HashAlgorithmName(get(value))); -} - -template Windows::Security::Cryptography::Certificates::CmsTimestampInfo impl_ICmsSignerInfo::TimestampInfo() const -{ - Windows::Security::Cryptography::Certificates::CmsTimestampInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TimestampInfo(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISubjectAlternativeNameInfo::EmailName() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_EmailName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISubjectAlternativeNameInfo::IPAddress() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_IPAddress(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISubjectAlternativeNameInfo::Url() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Url(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISubjectAlternativeNameInfo::DnsName() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_DnsName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISubjectAlternativeNameInfo::DistinguishedName() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_DistinguishedName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ISubjectAlternativeNameInfo::PrincipalName() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_PrincipalName(put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::ExportOption impl_IPfxImportParameters::Exportable() const -{ - Windows::Security::Cryptography::Certificates::ExportOption value {}; - check_hresult(static_cast(static_cast(*this))->get_Exportable(&value)); - return value; -} - -template void impl_IPfxImportParameters::Exportable(Windows::Security::Cryptography::Certificates::ExportOption value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Exportable(value)); -} - -template Windows::Security::Cryptography::Certificates::KeyProtectionLevel impl_IPfxImportParameters::KeyProtectionLevel() const -{ - Windows::Security::Cryptography::Certificates::KeyProtectionLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyProtectionLevel(&value)); - return value; -} - -template void impl_IPfxImportParameters::KeyProtectionLevel(Windows::Security::Cryptography::Certificates::KeyProtectionLevel value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeyProtectionLevel(value)); -} - -template Windows::Security::Cryptography::Certificates::InstallOptions impl_IPfxImportParameters::InstallOptions() const -{ - Windows::Security::Cryptography::Certificates::InstallOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_InstallOptions(&value)); - return value; -} - -template void impl_IPfxImportParameters::InstallOptions(Windows::Security::Cryptography::Certificates::InstallOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InstallOptions(value)); -} - -template hstring impl_IPfxImportParameters::FriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FriendlyName(put(value))); - return value; -} - -template void impl_IPfxImportParameters::FriendlyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FriendlyName(get(value))); -} - -template hstring impl_IPfxImportParameters::KeyStorageProviderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_KeyStorageProviderName(put(value))); - return value; -} - -template void impl_IPfxImportParameters::KeyStorageProviderName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeyStorageProviderName(get(value))); -} - -template hstring impl_IPfxImportParameters::ContainerNamePrefix() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContainerNamePrefix(put(value))); - return value; -} - -template void impl_IPfxImportParameters::ContainerNamePrefix(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContainerNamePrefix(get(value))); -} - -template hstring impl_IPfxImportParameters::ReaderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ReaderName(put(value))); - return value; -} - -template void impl_IPfxImportParameters::ReaderName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReaderName(get(value))); -} - -template bool impl_ICertificateKeyUsages::EncipherOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_EncipherOnly(&value)); - return value; -} - -template void impl_ICertificateKeyUsages::EncipherOnly(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EncipherOnly(value)); -} - -template bool impl_ICertificateKeyUsages::CrlSign() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CrlSign(&value)); - return value; -} - -template void impl_ICertificateKeyUsages::CrlSign(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CrlSign(value)); -} - -template bool impl_ICertificateKeyUsages::KeyCertificateSign() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyCertificateSign(&value)); - return value; -} - -template void impl_ICertificateKeyUsages::KeyCertificateSign(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeyCertificateSign(value)); -} - -template bool impl_ICertificateKeyUsages::KeyAgreement() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyAgreement(&value)); - return value; -} - -template void impl_ICertificateKeyUsages::KeyAgreement(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeyAgreement(value)); -} - -template bool impl_ICertificateKeyUsages::DataEncipherment() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DataEncipherment(&value)); - return value; -} - -template void impl_ICertificateKeyUsages::DataEncipherment(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataEncipherment(value)); -} - -template bool impl_ICertificateKeyUsages::KeyEncipherment() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyEncipherment(&value)); - return value; -} - -template void impl_ICertificateKeyUsages::KeyEncipherment(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeyEncipherment(value)); -} - -template bool impl_ICertificateKeyUsages::NonRepudiation() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_NonRepudiation(&value)); - return value; -} - -template void impl_ICertificateKeyUsages::NonRepudiation(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NonRepudiation(value)); -} - -template bool impl_ICertificateKeyUsages::DigitalSignature() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DigitalSignature(&value)); - return value; -} - -template void impl_ICertificateKeyUsages::DigitalSignature(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DigitalSignature(value)); -} - -template Windows::Foundation::Collections::IVectorView impl_ICmsAttachedSignature::Certificates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Certificates(put(value))); - return value; -} - -template com_array impl_ICmsAttachedSignature::Content() const -{ - com_array value {}; - check_hresult(static_cast(static_cast(*this))->get_Content(put_size(value), put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ICmsAttachedSignature::Signers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Signers(put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::SignatureValidationResult impl_ICmsAttachedSignature::VerifySignature() const -{ - Windows::Security::Cryptography::Certificates::SignatureValidationResult value {}; - check_hresult(static_cast(static_cast(*this))->abi_VerifySignature(&value)); - return value; -} - -template Windows::Security::Cryptography::Certificates::CmsAttachedSignature impl_ICmsAttachedSignatureFactory::CreateCmsAttachedSignature(const Windows::Storage::Streams::IBuffer & inputBlob) const -{ - Windows::Security::Cryptography::Certificates::CmsAttachedSignature cmsSignedData { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCmsAttachedSignature(get(inputBlob), put(cmsSignedData))); - return cmsSignedData; -} - -template Windows::Foundation::IAsyncOperation impl_ICmsAttachedSignatureStatics::GenerateSignatureAsync(const Windows::Storage::Streams::IBuffer & data, const Windows::Foundation::Collections::IIterable & signers, const Windows::Foundation::Collections::IIterable & certificates) const -{ - Windows::Foundation::IAsyncOperation outputBlob; - check_hresult(static_cast(static_cast(*this))->abi_GenerateSignatureAsync(get(data), get(signers), get(certificates), put(outputBlob))); - return outputBlob; -} - -template Windows::Foundation::Collections::IVectorView impl_ICmsDetachedSignature::Certificates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Certificates(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ICmsDetachedSignature::Signers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Signers(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICmsDetachedSignature::VerifySignatureAsync(const Windows::Storage::Streams::IInputStream & data) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_VerifySignatureAsync(get(data), put(value))); - return value; -} - -template Windows::Security::Cryptography::Certificates::CmsDetachedSignature impl_ICmsDetachedSignatureFactory::CreateCmsDetachedSignature(const Windows::Storage::Streams::IBuffer & inputBlob) const -{ - Windows::Security::Cryptography::Certificates::CmsDetachedSignature cmsSignedData { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCmsDetachedSignature(get(inputBlob), put(cmsSignedData))); - return cmsSignedData; -} - -template Windows::Foundation::IAsyncOperation impl_ICmsDetachedSignatureStatics::GenerateSignatureAsync(const Windows::Storage::Streams::IInputStream & data, const Windows::Foundation::Collections::IIterable & signers, const Windows::Foundation::Collections::IIterable & certificates) const -{ - Windows::Foundation::IAsyncOperation outputBlob; - check_hresult(static_cast(static_cast(*this))->abi_GenerateSignatureAsync(get(data), get(signers), get(certificates), put(outputBlob))); - return outputBlob; -} - -inline Certificate::Certificate(const Windows::Storage::Streams::IBuffer & certBlob) : - Certificate(get_activation_factory().CreateCertificate(certBlob)) -{} - -inline Windows::Foundation::IAsyncOperation CertificateEnrollmentManager::CreateRequestAsync(const Windows::Security::Cryptography::Certificates::CertificateRequestProperties & request) -{ - return get_activation_factory().CreateRequestAsync(request); -} - -inline Windows::Foundation::IAsyncAction CertificateEnrollmentManager::InstallCertificateAsync(hstring_ref certificate, Windows::Security::Cryptography::Certificates::InstallOptions installOption) -{ - return get_activation_factory().InstallCertificateAsync(certificate, installOption); -} - -inline Windows::Foundation::IAsyncAction CertificateEnrollmentManager::ImportPfxDataAsync(hstring_ref pfxData, hstring_ref password, Windows::Security::Cryptography::Certificates::ExportOption exportable, Windows::Security::Cryptography::Certificates::KeyProtectionLevel keyProtectionLevel, Windows::Security::Cryptography::Certificates::InstallOptions installOption, hstring_ref friendlyName) -{ - return get_activation_factory().ImportPfxDataAsync(pfxData, password, exportable, keyProtectionLevel, installOption, friendlyName); -} - -inline Windows::Security::Cryptography::Certificates::UserCertificateEnrollmentManager CertificateEnrollmentManager::UserCertificateEnrollmentManager() -{ - return get_activation_factory().UserCertificateEnrollmentManager(); -} - -inline Windows::Foundation::IAsyncAction CertificateEnrollmentManager::ImportPfxDataAsync(hstring_ref pfxData, hstring_ref password, Windows::Security::Cryptography::Certificates::ExportOption exportable, Windows::Security::Cryptography::Certificates::KeyProtectionLevel keyProtectionLevel, Windows::Security::Cryptography::Certificates::InstallOptions installOption, hstring_ref friendlyName, hstring_ref keyStorageProvider) -{ - return get_activation_factory().ImportPfxDataAsync(pfxData, password, exportable, keyProtectionLevel, installOption, friendlyName, keyStorageProvider); -} - -inline Windows::Foundation::IAsyncAction CertificateEnrollmentManager::ImportPfxDataAsync(hstring_ref pfxData, hstring_ref password, const Windows::Security::Cryptography::Certificates::PfxImportParameters & pfxImportParameters) -{ - return get_activation_factory().ImportPfxDataAsync(pfxData, password, pfxImportParameters); -} - -inline CertificateKeyUsages::CertificateKeyUsages() : - CertificateKeyUsages(activate_instance()) -{} - -inline CertificateQuery::CertificateQuery() : - CertificateQuery(activate_instance()) -{} - -inline CertificateRequestProperties::CertificateRequestProperties() : - CertificateRequestProperties(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation> CertificateStores::FindAllAsync() -{ - return get_activation_factory().FindAllAsync(); -} - -inline Windows::Foundation::IAsyncOperation> CertificateStores::FindAllAsync(const Windows::Security::Cryptography::Certificates::CertificateQuery & query) -{ - return get_activation_factory().FindAllAsync(query); -} - -inline Windows::Security::Cryptography::Certificates::CertificateStore CertificateStores::TrustedRootCertificationAuthorities() -{ - return get_activation_factory().TrustedRootCertificationAuthorities(); -} - -inline Windows::Security::Cryptography::Certificates::CertificateStore CertificateStores::IntermediateCertificationAuthorities() -{ - return get_activation_factory().IntermediateCertificationAuthorities(); -} - -inline Windows::Security::Cryptography::Certificates::CertificateStore CertificateStores::GetStoreByName(hstring_ref storeName) -{ - return get_activation_factory().GetStoreByName(storeName); -} - -inline Windows::Security::Cryptography::Certificates::UserCertificateStore CertificateStores::GetUserStoreByName(hstring_ref storeName) -{ - return get_activation_factory().GetUserStoreByName(storeName); -} - -inline ChainBuildingParameters::ChainBuildingParameters() : - ChainBuildingParameters(activate_instance()) -{} - -inline ChainValidationParameters::ChainValidationParameters() : - ChainValidationParameters(activate_instance()) -{} - -inline CmsAttachedSignature::CmsAttachedSignature(const Windows::Storage::Streams::IBuffer & inputBlob) : - CmsAttachedSignature(get_activation_factory().CreateCmsAttachedSignature(inputBlob)) -{} - -inline Windows::Foundation::IAsyncOperation CmsAttachedSignature::GenerateSignatureAsync(const Windows::Storage::Streams::IBuffer & data, const Windows::Foundation::Collections::IIterable & signers, const Windows::Foundation::Collections::IIterable & certificates) -{ - return get_activation_factory().GenerateSignatureAsync(data, signers, certificates); -} - -inline CmsDetachedSignature::CmsDetachedSignature(const Windows::Storage::Streams::IBuffer & inputBlob) : - CmsDetachedSignature(get_activation_factory().CreateCmsDetachedSignature(inputBlob)) -{} - -inline Windows::Foundation::IAsyncOperation CmsDetachedSignature::GenerateSignatureAsync(const Windows::Storage::Streams::IInputStream & data, const Windows::Foundation::Collections::IIterable & signers, const Windows::Foundation::Collections::IIterable & certificates) -{ - return get_activation_factory().GenerateSignatureAsync(data, signers, certificates); -} - -inline CmsSignerInfo::CmsSignerInfo() : - CmsSignerInfo(activate_instance()) -{} - -inline hstring KeyAlgorithmNames::Rsa() -{ - return get_activation_factory().Rsa(); -} - -inline hstring KeyAlgorithmNames::Dsa() -{ - return get_activation_factory().Dsa(); -} - -inline hstring KeyAlgorithmNames::Ecdh256() -{ - return get_activation_factory().Ecdh256(); -} - -inline hstring KeyAlgorithmNames::Ecdh384() -{ - return get_activation_factory().Ecdh384(); -} - -inline hstring KeyAlgorithmNames::Ecdh521() -{ - return get_activation_factory().Ecdh521(); -} - -inline hstring KeyAlgorithmNames::Ecdsa256() -{ - return get_activation_factory().Ecdsa256(); -} - -inline hstring KeyAlgorithmNames::Ecdsa384() -{ - return get_activation_factory().Ecdsa384(); -} - -inline hstring KeyAlgorithmNames::Ecdsa521() -{ - return get_activation_factory().Ecdsa521(); -} - -inline hstring KeyAlgorithmNames::Ecdsa() -{ - return get_activation_factory().Ecdsa(); -} - -inline hstring KeyAlgorithmNames::Ecdh() -{ - return get_activation_factory().Ecdh(); -} - -inline Windows::Foundation::IAsyncOperation KeyAttestationHelper::DecryptTpmAttestationCredentialAsync(hstring_ref credential) -{ - return get_activation_factory().DecryptTpmAttestationCredentialAsync(credential); -} - -inline hstring KeyAttestationHelper::GetTpmAttestationCredentialId(hstring_ref credential) -{ - return get_activation_factory().GetTpmAttestationCredentialId(credential); -} - -inline Windows::Foundation::IAsyncOperation KeyAttestationHelper::DecryptTpmAttestationCredentialAsync(hstring_ref credential, hstring_ref containerName) -{ - return get_activation_factory().DecryptTpmAttestationCredentialAsync(credential, containerName); -} - -inline hstring KeyStorageProviderNames::SoftwareKeyStorageProvider() -{ - return get_activation_factory().SoftwareKeyStorageProvider(); -} - -inline hstring KeyStorageProviderNames::SmartcardKeyStorageProvider() -{ - return get_activation_factory().SmartcardKeyStorageProvider(); -} - -inline hstring KeyStorageProviderNames::PlatformKeyStorageProvider() -{ - return get_activation_factory().PlatformKeyStorageProvider(); -} - -inline hstring KeyStorageProviderNames::PassportKeyStorageProvider() -{ - return get_activation_factory().PassportKeyStorageProvider(); -} - -inline PfxImportParameters::PfxImportParameters() : - PfxImportParameters(activate_instance()) -{} - -inline hstring StandardCertificateStoreNames::Personal() -{ - return get_activation_factory().Personal(); -} - -inline hstring StandardCertificateStoreNames::TrustedRootCertificationAuthorities() -{ - return get_activation_factory().TrustedRootCertificationAuthorities(); -} - -inline hstring StandardCertificateStoreNames::IntermediateCertificationAuthorities() -{ - return get_activation_factory().IntermediateCertificationAuthorities(); -} - -inline SubjectAlternativeNameInfo::SubjectAlternativeNameInfo() : - SubjectAlternativeNameInfo(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Cryptography.Core.h b/10.0.14393.0/winrt/Windows.Security.Cryptography.Core.h deleted file mode 100644 index 78bffac4a..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Cryptography.Core.h +++ /dev/null @@ -1,4501 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Security.Cryptography.Certificates.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Security.Cryptography.Core.3.h" -#include "Windows.Security.Cryptography.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RsaPkcs1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaPkcs1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaOaepSha1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaOaepSha1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaOaepSha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaOaepSha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaOaepSha384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaOaepSha384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaOaepSha512(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaOaepSha512()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EcdsaP256Sha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EcdsaP256Sha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EcdsaP384Sha384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EcdsaP384Sha384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EcdsaP521Sha512(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EcdsaP521Sha512()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DsaSha1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DsaSha1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DsaSha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DsaSha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaSignPkcs1Sha1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaSignPkcs1Sha1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaSignPkcs1Sha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaSignPkcs1Sha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaSignPkcs1Sha384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaSignPkcs1Sha384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaSignPkcs1Sha512(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaSignPkcs1Sha512()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaSignPssSha1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaSignPssSha1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaSignPssSha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaSignPssSha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaSignPssSha384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaSignPssSha384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RsaSignPssSha512(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RsaSignPssSha512()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EcdsaSha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EcdsaSha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EcdsaSha384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EcdsaSha384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EcdsaSha512(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EcdsaSha512()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlgorithmName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlgorithmName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateKeyPair(uint32_t keySize, abi_arg_out key) noexcept override - { - try - { - *key = detach(this->shim().CreateKeyPair(keySize)); - return S_OK; - } - catch (...) - { - *key = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportDefaultPrivateKeyBlob(abi_arg_in keyBlob, abi_arg_out key) noexcept override - { - try - { - *key = detach(this->shim().ImportKeyPair(*reinterpret_cast(&keyBlob))); - return S_OK; - } - catch (...) - { - *key = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportKeyPairWithBlobType(abi_arg_in keyBlob, Windows::Security::Cryptography::Core::CryptographicPrivateKeyBlobType BlobType, abi_arg_out key) noexcept override - { - try - { - *key = detach(this->shim().ImportKeyPair(*reinterpret_cast(&keyBlob), BlobType)); - return S_OK; - } - catch (...) - { - *key = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportDefaultPublicKeyBlob(abi_arg_in keyBlob, abi_arg_out key) noexcept override - { - try - { - *key = detach(this->shim().ImportPublicKey(*reinterpret_cast(&keyBlob))); - return S_OK; - } - catch (...) - { - *key = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ImportPublicKeyWithBlobType(abi_arg_in keyBlob, Windows::Security::Cryptography::Core::CryptographicPublicKeyBlobType BlobType, abi_arg_out key) noexcept override - { - try - { - *key = detach(this->shim().ImportPublicKey(*reinterpret_cast(&keyBlob), BlobType)); - return S_OK; - } - catch (...) - { - *key = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateKeyPairWithCurveName(abi_arg_in curveName, abi_arg_out key) noexcept override - { - try - { - *key = detach(this->shim().CreateKeyPairWithCurveName(*reinterpret_cast(&curveName))); - return S_OK; - } - catch (...) - { - *key = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateKeyPairWithCurveParameters(uint32_t __parametersSize, abi_arg_in * parameters, abi_arg_out key) noexcept override - { - try - { - *key = detach(this->shim().CreateKeyPairWithCurveParameters(array_ref(parameters, parameters + __parametersSize))); - return S_OK; - } - catch (...) - { - *key = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OpenAlgorithm(abi_arg_in algorithm, abi_arg_out provider) noexcept override - { - try - { - *provider = detach(this->shim().OpenAlgorithm(*reinterpret_cast(&algorithm))); - return S_OK; - } - catch (...) - { - *provider = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Encrypt(abi_arg_in key, abi_arg_in data, abi_arg_in iv, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Encrypt(*reinterpret_cast(&key), *reinterpret_cast(&data), *reinterpret_cast(&iv))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Decrypt(abi_arg_in key, abi_arg_in data, abi_arg_in iv, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Decrypt(*reinterpret_cast(&key), *reinterpret_cast(&data), *reinterpret_cast(&iv))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EncryptAndAuthenticate(abi_arg_in key, abi_arg_in data, abi_arg_in nonce, abi_arg_in authenticatedData, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EncryptAndAuthenticate(*reinterpret_cast(&key), *reinterpret_cast(&data), *reinterpret_cast(&nonce), *reinterpret_cast(&authenticatedData))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DecryptAndAuthenticate(abi_arg_in key, abi_arg_in data, abi_arg_in nonce, abi_arg_in authenticationTag, abi_arg_in authenticatedData, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DecryptAndAuthenticate(*reinterpret_cast(&key), *reinterpret_cast(&data), *reinterpret_cast(&nonce), *reinterpret_cast(&authenticationTag), *reinterpret_cast(&authenticatedData))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Sign(abi_arg_in key, abi_arg_in data, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sign(*reinterpret_cast(&key), *reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_VerifySignature(abi_arg_in key, abi_arg_in data, abi_arg_in signature, bool * isAuthenticated) noexcept override - { - try - { - *isAuthenticated = detach(this->shim().VerifySignature(*reinterpret_cast(&key), *reinterpret_cast(&data), *reinterpret_cast(&signature))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeriveKeyMaterial(abi_arg_in key, abi_arg_in parameters, uint32_t desiredKeySize, abi_arg_out keyMaterial) noexcept override - { - try - { - *keyMaterial = detach(this->shim().DeriveKeyMaterial(*reinterpret_cast(&key), *reinterpret_cast(¶meters), desiredKeySize)); - return S_OK; - } - catch (...) - { - *keyMaterial = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SignHashedData(abi_arg_in key, abi_arg_in data, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SignHashedData(*reinterpret_cast(&key), *reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_VerifySignatureWithHashInput(abi_arg_in key, abi_arg_in data, abi_arg_in signature, bool * isAuthenticated) noexcept override - { - try - { - *isAuthenticated = detach(this->shim().VerifySignatureWithHashInput(*reinterpret_cast(&key), *reinterpret_cast(&data), *reinterpret_cast(&signature))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DecryptAsync(abi_arg_in key, abi_arg_in data, abi_arg_in iv, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DecryptAsync(*reinterpret_cast(&key), *reinterpret_cast(&data), *reinterpret_cast(&iv))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SignAsync(abi_arg_in key, abi_arg_in data, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SignAsync(*reinterpret_cast(&key), *reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SignHashedDataAsync(abi_arg_in key, abi_arg_in data, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SignHashedDataAsync(*reinterpret_cast(&key), *reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_KeySize(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().KeySize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ExportDefaultPrivateKeyBlobType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Export()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ExportPrivateKeyWithBlobType(Windows::Security::Cryptography::Core::CryptographicPrivateKeyBlobType BlobType, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Export(BlobType)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ExportDefaultPublicKeyBlobType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExportPublicKey()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ExportPublicKeyWithBlobType(Windows::Security::Cryptography::Core::CryptographicPublicKeyBlobType BlobType, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExportPublicKey(BlobType)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BrainpoolP160r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP160r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP160t1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP160t1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP192r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP192r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP192t1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP192t1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP224r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP224r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP224t1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP224t1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP256r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP256r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP256t1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP256t1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP320r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP320r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP320t1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP320t1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP384r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP384r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP384t1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP384t1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP512r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP512r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BrainpoolP512t1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BrainpoolP512t1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Curve25519(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Curve25519()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Ec192wapi(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ec192wapi()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NistP192(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NistP192()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NistP224(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NistP224()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NistP256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NistP256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NistP384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NistP384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NistP521(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NistP521()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumsP256t1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NumsP256t1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumsP384t1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NumsP384t1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumsP512t1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NumsP512t1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecP160k1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecP160k1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecP160r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecP160r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecP160r2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecP160r2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecP192k1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecP192k1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecP192r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecP192r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecP224k1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecP224k1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecP224r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecP224r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecP256k1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecP256k1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecP256r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecP256r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecP384r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecP384r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecP521r1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecP521r1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Wtls7(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Wtls7()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Wtls9(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Wtls9()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Wtls12(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Wtls12()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_X962P192v1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().X962P192v1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_X962P192v2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().X962P192v2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_X962P192v3(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().X962P192v3()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_X962P239v1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().X962P239v1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_X962P239v2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().X962P239v2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_X962P239v3(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().X962P239v3()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_X962P256v1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().X962P256v1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllEccCurveNames(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AllEccCurveNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EncryptedData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EncryptedData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationTag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationTag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Md5(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Md5()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sha1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sha1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sha384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sha384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sha512(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sha512()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlgorithmName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlgorithmName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HashLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().HashLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HashData(abi_arg_in data, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HashData(*reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateHash(abi_arg_out Value) noexcept override - { - try - { - *Value = detach(this->shim().CreateHash()); - return S_OK; - } - catch (...) - { - *Value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OpenAlgorithm(abi_arg_in algorithm, abi_arg_out provider) noexcept override - { - try - { - *provider = detach(this->shim().OpenAlgorithm(*reinterpret_cast(&algorithm))); - return S_OK; - } - catch (...) - { - *provider = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Append(abi_arg_in data) noexcept override - { - try - { - this->shim().Append(*reinterpret_cast(&data)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetValueAndReset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetValueAndReset()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Pbkdf2Md5(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pbkdf2Md5()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pbkdf2Sha1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pbkdf2Sha1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pbkdf2Sha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pbkdf2Sha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pbkdf2Sha384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pbkdf2Sha384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pbkdf2Sha512(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pbkdf2Sha512()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sp800108CtrHmacMd5(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sp800108CtrHmacMd5()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sp800108CtrHmacSha1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sp800108CtrHmacSha1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sp800108CtrHmacSha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sp800108CtrHmacSha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sp800108CtrHmacSha384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sp800108CtrHmacSha384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sp800108CtrHmacSha512(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sp800108CtrHmacSha512()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sp80056aConcatMd5(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sp80056aConcatMd5()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sp80056aConcatSha1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sp80056aConcatSha1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sp80056aConcatSha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sp80056aConcatSha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sp80056aConcatSha384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sp80056aConcatSha384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sp80056aConcatSha512(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Sp80056aConcatSha512()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CapiKdfMd5(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CapiKdfMd5()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CapiKdfSha1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CapiKdfSha1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CapiKdfSha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CapiKdfSha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CapiKdfSha384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CapiKdfSha384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CapiKdfSha512(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CapiKdfSha512()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlgorithmName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlgorithmName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateKey(abi_arg_in keyMaterial, abi_arg_out key) noexcept override - { - try - { - *key = detach(this->shim().CreateKey(*reinterpret_cast(&keyMaterial))); - return S_OK; - } - catch (...) - { - *key = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OpenAlgorithm(abi_arg_in algorithm, abi_arg_out provider) noexcept override - { - try - { - *provider = detach(this->shim().OpenAlgorithm(*reinterpret_cast(&algorithm))); - return S_OK; - } - catch (...) - { - *provider = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_KdfGenericBinary(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KdfGenericBinary()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KdfGenericBinary(abi_arg_in value) noexcept override - { - try - { - this->shim().KdfGenericBinary(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IterationCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IterationCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Capi1KdfTargetAlgorithm(Windows::Security::Cryptography::Core::Capi1KdfTargetAlgorithm * value) noexcept override - { - try - { - *value = detach(this->shim().Capi1KdfTargetAlgorithm()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Capi1KdfTargetAlgorithm(Windows::Security::Cryptography::Core::Capi1KdfTargetAlgorithm value) noexcept override - { - try - { - this->shim().Capi1KdfTargetAlgorithm(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_BuildForPbkdf2(abi_arg_in pbkdf2Salt, uint32_t iterationCount, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BuildForPbkdf2(*reinterpret_cast(&pbkdf2Salt), iterationCount)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BuildForSP800108(abi_arg_in label, abi_arg_in context, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BuildForSP800108(*reinterpret_cast(&label), *reinterpret_cast(&context))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BuildForSP80056a(abi_arg_in algorithmId, abi_arg_in partyUInfo, abi_arg_in partyVInfo, abi_arg_in suppPubInfo, abi_arg_in suppPrivInfo, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BuildForSP80056a(*reinterpret_cast(&algorithmId), *reinterpret_cast(&partyUInfo), *reinterpret_cast(&partyVInfo), *reinterpret_cast(&suppPubInfo), *reinterpret_cast(&suppPrivInfo))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_BuildForCapi1Kdf(Windows::Security::Cryptography::Core::Capi1KdfTargetAlgorithm capi1KdfTargetAlgorithm, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BuildForCapi1Kdf(capi1KdfTargetAlgorithm)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HmacMd5(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HmacMd5()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HmacSha1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HmacSha1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HmacSha256(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HmacSha256()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HmacSha384(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HmacSha384()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HmacSha512(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HmacSha512()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AesCmac(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AesCmac()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlgorithmName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlgorithmName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MacLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MacLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateKey(abi_arg_in keyMaterial, abi_arg_out macKey) noexcept override - { - try - { - *macKey = detach(this->shim().CreateKey(*reinterpret_cast(&keyMaterial))); - return S_OK; - } - catch (...) - { - *macKey = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateHash(abi_arg_in keyMaterial, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateHash(*reinterpret_cast(&keyMaterial))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OpenAlgorithm(abi_arg_in algorithm, abi_arg_out provider) noexcept override - { - try - { - *provider = detach(this->shim().OpenAlgorithm(*reinterpret_cast(&algorithm))); - return S_OK; - } - catch (...) - { - *provider = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OpenKeyPairFromCertificateAsync(abi_arg_in certificate, abi_arg_in hashAlgorithmName, Windows::Security::Cryptography::Core::CryptographicPadding padding, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().OpenKeyPairFromCertificateAsync(*reinterpret_cast(&certificate), *reinterpret_cast(&hashAlgorithmName), padding)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenPublicKeyFromCertificate(abi_arg_in certificate, abi_arg_in hashAlgorithmName, Windows::Security::Cryptography::Core::CryptographicPadding padding, abi_arg_out key) noexcept override - { - try - { - *key = detach(this->shim().OpenPublicKeyFromCertificate(*reinterpret_cast(&certificate), *reinterpret_cast(&hashAlgorithmName), padding)); - return S_OK; - } - catch (...) - { - *key = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DesCbc(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DesCbc()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesEcb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DesEcb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TripleDesCbc(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TripleDesCbc()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TripleDesEcb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TripleDesEcb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rc2Cbc(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Rc2Cbc()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rc2Ecb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Rc2Ecb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AesCbc(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AesCbc()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AesEcb(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AesEcb()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AesGcm(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AesGcm()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AesCcm(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AesCcm()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AesCbcPkcs7(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AesCbcPkcs7()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AesEcbPkcs7(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AesEcbPkcs7()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesCbcPkcs7(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DesCbcPkcs7()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesEcbPkcs7(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DesEcbPkcs7()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TripleDesCbcPkcs7(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TripleDesCbcPkcs7()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TripleDesEcbPkcs7(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TripleDesEcbPkcs7()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rc2CbcPkcs7(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Rc2CbcPkcs7()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rc2EcbPkcs7(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Rc2EcbPkcs7()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rc4(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Rc4()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlgorithmName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlgorithmName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BlockLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BlockLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSymmetricKey(abi_arg_in keyMaterial, abi_arg_out key) noexcept override - { - try - { - *key = detach(this->shim().CreateSymmetricKey(*reinterpret_cast(&keyMaterial))); - return S_OK; - } - catch (...) - { - *key = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OpenAlgorithm(abi_arg_in algorithm, abi_arg_out provider) noexcept override - { - try - { - *provider = detach(this->shim().OpenAlgorithm(*reinterpret_cast(&algorithm))); - return S_OK; - } - catch (...) - { - *provider = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Cryptography::Core { - -template Windows::Storage::Streams::IBuffer impl_IKeyDerivationParameters::KdfGenericBinary() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_KdfGenericBinary(put(value))); - return value; -} - -template void impl_IKeyDerivationParameters::KdfGenericBinary(const Windows::Storage::Streams::IBuffer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KdfGenericBinary(get(value))); -} - -template uint32_t impl_IKeyDerivationParameters::IterationCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IterationCount(&value)); - return value; -} - -template Windows::Security::Cryptography::Core::Capi1KdfTargetAlgorithm impl_IKeyDerivationParameters2::Capi1KdfTargetAlgorithm() const -{ - Windows::Security::Cryptography::Core::Capi1KdfTargetAlgorithm value {}; - check_hresult(static_cast(static_cast(*this))->get_Capi1KdfTargetAlgorithm(&value)); - return value; -} - -template void impl_IKeyDerivationParameters2::Capi1KdfTargetAlgorithm(Windows::Security::Cryptography::Core::Capi1KdfTargetAlgorithm value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Capi1KdfTargetAlgorithm(value)); -} - -template Windows::Security::Cryptography::Core::KeyDerivationParameters impl_IKeyDerivationParametersStatics::BuildForPbkdf2(const Windows::Storage::Streams::IBuffer & pbkdf2Salt, uint32_t iterationCount) const -{ - Windows::Security::Cryptography::Core::KeyDerivationParameters value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_BuildForPbkdf2(get(pbkdf2Salt), iterationCount, put(value))); - return value; -} - -template Windows::Security::Cryptography::Core::KeyDerivationParameters impl_IKeyDerivationParametersStatics::BuildForSP800108(const Windows::Storage::Streams::IBuffer & label, const Windows::Storage::Streams::IBuffer & context) const -{ - Windows::Security::Cryptography::Core::KeyDerivationParameters value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_BuildForSP800108(get(label), get(context), put(value))); - return value; -} - -template Windows::Security::Cryptography::Core::KeyDerivationParameters impl_IKeyDerivationParametersStatics::BuildForSP80056a(const Windows::Storage::Streams::IBuffer & algorithmId, const Windows::Storage::Streams::IBuffer & partyUInfo, const Windows::Storage::Streams::IBuffer & partyVInfo, const Windows::Storage::Streams::IBuffer & suppPubInfo, const Windows::Storage::Streams::IBuffer & suppPrivInfo) const -{ - Windows::Security::Cryptography::Core::KeyDerivationParameters value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_BuildForSP80056a(get(algorithmId), get(partyUInfo), get(partyVInfo), get(suppPubInfo), get(suppPrivInfo), put(value))); - return value; -} - -template Windows::Security::Cryptography::Core::KeyDerivationParameters impl_IKeyDerivationParametersStatics2::BuildForCapi1Kdf(Windows::Security::Cryptography::Core::Capi1KdfTargetAlgorithm capi1KdfTargetAlgorithm) const -{ - Windows::Security::Cryptography::Core::KeyDerivationParameters value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_BuildForCapi1Kdf(capi1KdfTargetAlgorithm, put(value))); - return value; -} - -template uint32_t impl_ICryptographicKey::KeySize() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_KeySize(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicKey::Export() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_ExportDefaultPrivateKeyBlobType(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicKey::Export(Windows::Security::Cryptography::Core::CryptographicPrivateKeyBlobType BlobType) const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_ExportPrivateKeyWithBlobType(BlobType, put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicKey::ExportPublicKey() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_ExportDefaultPublicKeyBlobType(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicKey::ExportPublicKey(Windows::Security::Cryptography::Core::CryptographicPublicKeyBlobType BlobType) const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_ExportPublicKeyWithBlobType(BlobType, put(value))); - return value; -} - -template void impl_IHashComputation::Append(const Windows::Storage::Streams::IBuffer & data) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Append(get(data))); -} - -template Windows::Storage::Streams::IBuffer impl_IHashComputation::GetValueAndReset() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_GetValueAndReset(put(value))); - return value; -} - -template hstring impl_IHashAlgorithmProvider::AlgorithmName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlgorithmName(put(value))); - return value; -} - -template uint32_t impl_IHashAlgorithmProvider::HashLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HashLength(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IHashAlgorithmProvider::HashData(const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_HashData(get(data), put(value))); - return value; -} - -template Windows::Security::Cryptography::Core::CryptographicHash impl_IHashAlgorithmProvider::CreateHash() const -{ - Windows::Security::Cryptography::Core::CryptographicHash Value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateHash(put(Value))); - return Value; -} - -template hstring impl_IMacAlgorithmProvider::AlgorithmName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlgorithmName(put(value))); - return value; -} - -template uint32_t impl_IMacAlgorithmProvider::MacLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MacLength(&value)); - return value; -} - -template Windows::Security::Cryptography::Core::CryptographicKey impl_IMacAlgorithmProvider::CreateKey(const Windows::Storage::Streams::IBuffer & keyMaterial) const -{ - Windows::Security::Cryptography::Core::CryptographicKey macKey { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateKey(get(keyMaterial), put(macKey))); - return macKey; -} - -template Windows::Security::Cryptography::Core::CryptographicHash impl_IMacAlgorithmProvider2::CreateHash(const Windows::Storage::Streams::IBuffer & keyMaterial) const -{ - Windows::Security::Cryptography::Core::CryptographicHash value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateHash(get(keyMaterial), put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmProvider::AlgorithmName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlgorithmName(put(value))); - return value; -} - -template Windows::Security::Cryptography::Core::CryptographicKey impl_IKeyDerivationAlgorithmProvider::CreateKey(const Windows::Storage::Streams::IBuffer & keyMaterial) const -{ - Windows::Security::Cryptography::Core::CryptographicKey key { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateKey(get(keyMaterial), put(key))); - return key; -} - -template hstring impl_ISymmetricKeyAlgorithmProvider::AlgorithmName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlgorithmName(put(value))); - return value; -} - -template uint32_t impl_ISymmetricKeyAlgorithmProvider::BlockLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BlockLength(&value)); - return value; -} - -template Windows::Security::Cryptography::Core::CryptographicKey impl_ISymmetricKeyAlgorithmProvider::CreateSymmetricKey(const Windows::Storage::Streams::IBuffer & keyMaterial) const -{ - Windows::Security::Cryptography::Core::CryptographicKey key { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateSymmetricKey(get(keyMaterial), put(key))); - return key; -} - -template hstring impl_IAsymmetricKeyAlgorithmProvider::AlgorithmName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlgorithmName(put(value))); - return value; -} - -template Windows::Security::Cryptography::Core::CryptographicKey impl_IAsymmetricKeyAlgorithmProvider::CreateKeyPair(uint32_t keySize) const -{ - Windows::Security::Cryptography::Core::CryptographicKey key { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateKeyPair(keySize, put(key))); - return key; -} - -template Windows::Security::Cryptography::Core::CryptographicKey impl_IAsymmetricKeyAlgorithmProvider::ImportKeyPair(const Windows::Storage::Streams::IBuffer & keyBlob) const -{ - Windows::Security::Cryptography::Core::CryptographicKey key { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ImportDefaultPrivateKeyBlob(get(keyBlob), put(key))); - return key; -} - -template Windows::Security::Cryptography::Core::CryptographicKey impl_IAsymmetricKeyAlgorithmProvider::ImportKeyPair(const Windows::Storage::Streams::IBuffer & keyBlob, Windows::Security::Cryptography::Core::CryptographicPrivateKeyBlobType BlobType) const -{ - Windows::Security::Cryptography::Core::CryptographicKey key { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ImportKeyPairWithBlobType(get(keyBlob), BlobType, put(key))); - return key; -} - -template Windows::Security::Cryptography::Core::CryptographicKey impl_IAsymmetricKeyAlgorithmProvider::ImportPublicKey(const Windows::Storage::Streams::IBuffer & keyBlob) const -{ - Windows::Security::Cryptography::Core::CryptographicKey key { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ImportDefaultPublicKeyBlob(get(keyBlob), put(key))); - return key; -} - -template Windows::Security::Cryptography::Core::CryptographicKey impl_IAsymmetricKeyAlgorithmProvider::ImportPublicKey(const Windows::Storage::Streams::IBuffer & keyBlob, Windows::Security::Cryptography::Core::CryptographicPublicKeyBlobType BlobType) const -{ - Windows::Security::Cryptography::Core::CryptographicKey key { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ImportPublicKeyWithBlobType(get(keyBlob), BlobType, put(key))); - return key; -} - -template Windows::Security::Cryptography::Core::CryptographicKey impl_IAsymmetricKeyAlgorithmProvider2::CreateKeyPairWithCurveName(hstring_ref curveName) const -{ - Windows::Security::Cryptography::Core::CryptographicKey key { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateKeyPairWithCurveName(get(curveName), put(key))); - return key; -} - -template Windows::Security::Cryptography::Core::CryptographicKey impl_IAsymmetricKeyAlgorithmProvider2::CreateKeyPairWithCurveParameters(array_ref parameters) const -{ - Windows::Security::Cryptography::Core::CryptographicKey key { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateKeyPairWithCurveParameters(parameters.size(), get(parameters), put(key))); - return key; -} - -template Windows::Foundation::IAsyncOperation impl_IPersistedKeyProviderStatics::OpenKeyPairFromCertificateAsync(const Windows::Security::Cryptography::Certificates::Certificate & certificate, hstring_ref hashAlgorithmName, Windows::Security::Cryptography::Core::CryptographicPadding padding) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_OpenKeyPairFromCertificateAsync(get(certificate), get(hashAlgorithmName), padding, put(operation))); - return operation; -} - -template Windows::Security::Cryptography::Core::CryptographicKey impl_IPersistedKeyProviderStatics::OpenPublicKeyFromCertificate(const Windows::Security::Cryptography::Certificates::Certificate & certificate, hstring_ref hashAlgorithmName, Windows::Security::Cryptography::Core::CryptographicPadding padding) const -{ - Windows::Security::Cryptography::Core::CryptographicKey key { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenPublicKeyFromCertificate(get(certificate), get(hashAlgorithmName), padding, put(key))); - return key; -} - -template Windows::Storage::Streams::IBuffer impl_IEncryptedAndAuthenticatedData::EncryptedData() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_EncryptedData(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IEncryptedAndAuthenticatedData::AuthenticationTag() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationTag(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicEngineStatics::Encrypt(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & iv) const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_Encrypt(get(key), get(data), get(iv), put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicEngineStatics::Decrypt(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & iv) const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_Decrypt(get(key), get(data), get(iv), put(value))); - return value; -} - -template Windows::Security::Cryptography::Core::EncryptedAndAuthenticatedData impl_ICryptographicEngineStatics::EncryptAndAuthenticate(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & nonce, const Windows::Storage::Streams::IBuffer & authenticatedData) const -{ - Windows::Security::Cryptography::Core::EncryptedAndAuthenticatedData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_EncryptAndAuthenticate(get(key), get(data), get(nonce), get(authenticatedData), put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicEngineStatics::DecryptAndAuthenticate(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & nonce, const Windows::Storage::Streams::IBuffer & authenticationTag, const Windows::Storage::Streams::IBuffer & authenticatedData) const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_DecryptAndAuthenticate(get(key), get(data), get(nonce), get(authenticationTag), get(authenticatedData), put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicEngineStatics::Sign(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_Sign(get(key), get(data), put(value))); - return value; -} - -template bool impl_ICryptographicEngineStatics::VerifySignature(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & signature) const -{ - bool isAuthenticated {}; - check_hresult(static_cast(static_cast(*this))->abi_VerifySignature(get(key), get(data), get(signature), &isAuthenticated)); - return isAuthenticated; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicEngineStatics::DeriveKeyMaterial(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Security::Cryptography::Core::KeyDerivationParameters & parameters, uint32_t desiredKeySize) const -{ - Windows::Storage::Streams::IBuffer keyMaterial; - check_hresult(static_cast(static_cast(*this))->abi_DeriveKeyMaterial(get(key), get(parameters), desiredKeySize, put(keyMaterial))); - return keyMaterial; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicEngineStatics2::SignHashedData(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->abi_SignHashedData(get(key), get(data), put(value))); - return value; -} - -template bool impl_ICryptographicEngineStatics2::VerifySignatureWithHashInput(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & signature) const -{ - bool isAuthenticated {}; - check_hresult(static_cast(static_cast(*this))->abi_VerifySignatureWithHashInput(get(key), get(data), get(signature), &isAuthenticated)); - return isAuthenticated; -} - -template Windows::Foundation::IAsyncOperation impl_ICryptographicEngineStatics2::DecryptAsync(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & iv) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_DecryptAsync(get(key), get(data), get(iv), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICryptographicEngineStatics2::SignAsync(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_SignAsync(get(key), get(data), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ICryptographicEngineStatics2::SignHashedDataAsync(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_SignHashedDataAsync(get(key), get(data), put(value))); - return value; -} - -template Windows::Security::Cryptography::Core::HashAlgorithmProvider impl_IHashAlgorithmProviderStatics::OpenAlgorithm(hstring_ref algorithm) const -{ - Windows::Security::Cryptography::Core::HashAlgorithmProvider provider { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenAlgorithm(get(algorithm), put(provider))); - return provider; -} - -template Windows::Security::Cryptography::Core::MacAlgorithmProvider impl_IMacAlgorithmProviderStatics::OpenAlgorithm(hstring_ref algorithm) const -{ - Windows::Security::Cryptography::Core::MacAlgorithmProvider provider { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenAlgorithm(get(algorithm), put(provider))); - return provider; -} - -template Windows::Security::Cryptography::Core::KeyDerivationAlgorithmProvider impl_IKeyDerivationAlgorithmProviderStatics::OpenAlgorithm(hstring_ref algorithm) const -{ - Windows::Security::Cryptography::Core::KeyDerivationAlgorithmProvider provider { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenAlgorithm(get(algorithm), put(provider))); - return provider; -} - -template Windows::Security::Cryptography::Core::SymmetricKeyAlgorithmProvider impl_ISymmetricKeyAlgorithmProviderStatics::OpenAlgorithm(hstring_ref algorithm) const -{ - Windows::Security::Cryptography::Core::SymmetricKeyAlgorithmProvider provider { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenAlgorithm(get(algorithm), put(provider))); - return provider; -} - -template Windows::Security::Cryptography::Core::AsymmetricKeyAlgorithmProvider impl_IAsymmetricKeyAlgorithmProviderStatics::OpenAlgorithm(hstring_ref algorithm) const -{ - Windows::Security::Cryptography::Core::AsymmetricKeyAlgorithmProvider provider { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OpenAlgorithm(get(algorithm), put(provider))); - return provider; -} - -template hstring impl_IHashAlgorithmNamesStatics::Md5() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Md5(put(value))); - return value; -} - -template hstring impl_IHashAlgorithmNamesStatics::Sha1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sha1(put(value))); - return value; -} - -template hstring impl_IHashAlgorithmNamesStatics::Sha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sha256(put(value))); - return value; -} - -template hstring impl_IHashAlgorithmNamesStatics::Sha384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sha384(put(value))); - return value; -} - -template hstring impl_IHashAlgorithmNamesStatics::Sha512() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sha512(put(value))); - return value; -} - -template hstring impl_IMacAlgorithmNamesStatics::HmacMd5() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HmacMd5(put(value))); - return value; -} - -template hstring impl_IMacAlgorithmNamesStatics::HmacSha1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HmacSha1(put(value))); - return value; -} - -template hstring impl_IMacAlgorithmNamesStatics::HmacSha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HmacSha256(put(value))); - return value; -} - -template hstring impl_IMacAlgorithmNamesStatics::HmacSha384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HmacSha384(put(value))); - return value; -} - -template hstring impl_IMacAlgorithmNamesStatics::HmacSha512() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HmacSha512(put(value))); - return value; -} - -template hstring impl_IMacAlgorithmNamesStatics::AesCmac() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AesCmac(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::DesCbc() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DesCbc(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::DesEcb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DesEcb(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::TripleDesCbc() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TripleDesCbc(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::TripleDesEcb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TripleDesEcb(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::Rc2Cbc() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Rc2Cbc(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::Rc2Ecb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Rc2Ecb(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::AesCbc() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AesCbc(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::AesEcb() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AesEcb(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::AesGcm() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AesGcm(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::AesCcm() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AesCcm(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::AesCbcPkcs7() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AesCbcPkcs7(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::AesEcbPkcs7() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AesEcbPkcs7(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::DesCbcPkcs7() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DesCbcPkcs7(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::DesEcbPkcs7() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DesEcbPkcs7(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::TripleDesCbcPkcs7() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TripleDesCbcPkcs7(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::TripleDesEcbPkcs7() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TripleDesEcbPkcs7(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::Rc2CbcPkcs7() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Rc2CbcPkcs7(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::Rc2EcbPkcs7() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Rc2EcbPkcs7(put(value))); - return value; -} - -template hstring impl_ISymmetricAlgorithmNamesStatics::Rc4() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Rc4(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaPkcs1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaPkcs1(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaOaepSha1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaOaepSha1(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaOaepSha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaOaepSha256(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaOaepSha384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaOaepSha384(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaOaepSha512() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaOaepSha512(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::EcdsaP256Sha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EcdsaP256Sha256(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::EcdsaP384Sha384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EcdsaP384Sha384(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::EcdsaP521Sha512() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EcdsaP521Sha512(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::DsaSha1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DsaSha1(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::DsaSha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DsaSha256(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaSignPkcs1Sha1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaSignPkcs1Sha1(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaSignPkcs1Sha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaSignPkcs1Sha256(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaSignPkcs1Sha384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaSignPkcs1Sha384(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaSignPkcs1Sha512() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaSignPkcs1Sha512(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaSignPssSha1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaSignPssSha1(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaSignPssSha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaSignPssSha256(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaSignPssSha384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaSignPssSha384(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics::RsaSignPssSha512() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RsaSignPssSha512(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics2::EcdsaSha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EcdsaSha256(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics2::EcdsaSha384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EcdsaSha384(put(value))); - return value; -} - -template hstring impl_IAsymmetricAlgorithmNamesStatics2::EcdsaSha512() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EcdsaSha512(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP160r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP160r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP160t1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP160t1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP192r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP192r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP192t1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP192t1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP224r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP224r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP224t1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP224t1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP256r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP256r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP256t1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP256t1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP320r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP320r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP320t1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP320t1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP384r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP384r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP384t1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP384t1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP512r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP512r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::BrainpoolP512t1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BrainpoolP512t1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::Curve25519() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Curve25519(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::Ec192wapi() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Ec192wapi(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::NistP192() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NistP192(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::NistP224() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NistP224(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::NistP256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NistP256(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::NistP384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NistP384(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::NistP521() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NistP521(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::NumsP256t1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NumsP256t1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::NumsP384t1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NumsP384t1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::NumsP512t1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NumsP512t1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::SecP160k1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecP160k1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::SecP160r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecP160r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::SecP160r2() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecP160r2(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::SecP192k1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecP192k1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::SecP192r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecP192r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::SecP224k1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecP224k1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::SecP224r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecP224r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::SecP256k1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecP256k1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::SecP256r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecP256r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::SecP384r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecP384r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::SecP521r1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecP521r1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::Wtls7() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Wtls7(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::Wtls9() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Wtls9(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::Wtls12() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Wtls12(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::X962P192v1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_X962P192v1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::X962P192v2() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_X962P192v2(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::X962P192v3() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_X962P192v3(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::X962P239v1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_X962P239v1(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::X962P239v2() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_X962P239v2(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::X962P239v3() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_X962P239v3(put(value))); - return value; -} - -template hstring impl_IEccCurveNamesStatics::X962P256v1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_X962P256v1(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IEccCurveNamesStatics::AllEccCurveNames() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AllEccCurveNames(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Pbkdf2Md5() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Pbkdf2Md5(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Pbkdf2Sha1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Pbkdf2Sha1(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Pbkdf2Sha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Pbkdf2Sha256(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Pbkdf2Sha384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Pbkdf2Sha384(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Pbkdf2Sha512() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Pbkdf2Sha512(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Sp800108CtrHmacMd5() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sp800108CtrHmacMd5(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Sp800108CtrHmacSha1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sp800108CtrHmacSha1(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Sp800108CtrHmacSha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sp800108CtrHmacSha256(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Sp800108CtrHmacSha384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sp800108CtrHmacSha384(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Sp800108CtrHmacSha512() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sp800108CtrHmacSha512(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Sp80056aConcatMd5() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sp80056aConcatMd5(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Sp80056aConcatSha1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sp80056aConcatSha1(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Sp80056aConcatSha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sp80056aConcatSha256(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Sp80056aConcatSha384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sp80056aConcatSha384(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics::Sp80056aConcatSha512() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Sp80056aConcatSha512(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics2::CapiKdfMd5() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CapiKdfMd5(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics2::CapiKdfSha1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CapiKdfSha1(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics2::CapiKdfSha256() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CapiKdfSha256(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics2::CapiKdfSha384() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CapiKdfSha384(put(value))); - return value; -} - -template hstring impl_IKeyDerivationAlgorithmNamesStatics2::CapiKdfSha512() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CapiKdfSha512(put(value))); - return value; -} - -inline hstring AsymmetricAlgorithmNames::RsaPkcs1() -{ - return get_activation_factory().RsaPkcs1(); -} - -inline hstring AsymmetricAlgorithmNames::RsaOaepSha1() -{ - return get_activation_factory().RsaOaepSha1(); -} - -inline hstring AsymmetricAlgorithmNames::RsaOaepSha256() -{ - return get_activation_factory().RsaOaepSha256(); -} - -inline hstring AsymmetricAlgorithmNames::RsaOaepSha384() -{ - return get_activation_factory().RsaOaepSha384(); -} - -inline hstring AsymmetricAlgorithmNames::RsaOaepSha512() -{ - return get_activation_factory().RsaOaepSha512(); -} - -inline hstring AsymmetricAlgorithmNames::EcdsaP256Sha256() -{ - return get_activation_factory().EcdsaP256Sha256(); -} - -inline hstring AsymmetricAlgorithmNames::EcdsaP384Sha384() -{ - return get_activation_factory().EcdsaP384Sha384(); -} - -inline hstring AsymmetricAlgorithmNames::EcdsaP521Sha512() -{ - return get_activation_factory().EcdsaP521Sha512(); -} - -inline hstring AsymmetricAlgorithmNames::DsaSha1() -{ - return get_activation_factory().DsaSha1(); -} - -inline hstring AsymmetricAlgorithmNames::DsaSha256() -{ - return get_activation_factory().DsaSha256(); -} - -inline hstring AsymmetricAlgorithmNames::RsaSignPkcs1Sha1() -{ - return get_activation_factory().RsaSignPkcs1Sha1(); -} - -inline hstring AsymmetricAlgorithmNames::RsaSignPkcs1Sha256() -{ - return get_activation_factory().RsaSignPkcs1Sha256(); -} - -inline hstring AsymmetricAlgorithmNames::RsaSignPkcs1Sha384() -{ - return get_activation_factory().RsaSignPkcs1Sha384(); -} - -inline hstring AsymmetricAlgorithmNames::RsaSignPkcs1Sha512() -{ - return get_activation_factory().RsaSignPkcs1Sha512(); -} - -inline hstring AsymmetricAlgorithmNames::RsaSignPssSha1() -{ - return get_activation_factory().RsaSignPssSha1(); -} - -inline hstring AsymmetricAlgorithmNames::RsaSignPssSha256() -{ - return get_activation_factory().RsaSignPssSha256(); -} - -inline hstring AsymmetricAlgorithmNames::RsaSignPssSha384() -{ - return get_activation_factory().RsaSignPssSha384(); -} - -inline hstring AsymmetricAlgorithmNames::RsaSignPssSha512() -{ - return get_activation_factory().RsaSignPssSha512(); -} - -inline hstring AsymmetricAlgorithmNames::EcdsaSha256() -{ - return get_activation_factory().EcdsaSha256(); -} - -inline hstring AsymmetricAlgorithmNames::EcdsaSha384() -{ - return get_activation_factory().EcdsaSha384(); -} - -inline hstring AsymmetricAlgorithmNames::EcdsaSha512() -{ - return get_activation_factory().EcdsaSha512(); -} - -inline Windows::Security::Cryptography::Core::AsymmetricKeyAlgorithmProvider AsymmetricKeyAlgorithmProvider::OpenAlgorithm(hstring_ref algorithm) -{ - return get_activation_factory().OpenAlgorithm(algorithm); -} - -inline Windows::Storage::Streams::IBuffer CryptographicEngine::Encrypt(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & iv) -{ - return get_activation_factory().Encrypt(key, data, iv); -} - -inline Windows::Storage::Streams::IBuffer CryptographicEngine::Decrypt(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & iv) -{ - return get_activation_factory().Decrypt(key, data, iv); -} - -inline Windows::Security::Cryptography::Core::EncryptedAndAuthenticatedData CryptographicEngine::EncryptAndAuthenticate(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & nonce, const Windows::Storage::Streams::IBuffer & authenticatedData) -{ - return get_activation_factory().EncryptAndAuthenticate(key, data, nonce, authenticatedData); -} - -inline Windows::Storage::Streams::IBuffer CryptographicEngine::DecryptAndAuthenticate(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & nonce, const Windows::Storage::Streams::IBuffer & authenticationTag, const Windows::Storage::Streams::IBuffer & authenticatedData) -{ - return get_activation_factory().DecryptAndAuthenticate(key, data, nonce, authenticationTag, authenticatedData); -} - -inline Windows::Storage::Streams::IBuffer CryptographicEngine::Sign(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data) -{ - return get_activation_factory().Sign(key, data); -} - -inline bool CryptographicEngine::VerifySignature(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & signature) -{ - return get_activation_factory().VerifySignature(key, data, signature); -} - -inline Windows::Storage::Streams::IBuffer CryptographicEngine::DeriveKeyMaterial(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Security::Cryptography::Core::KeyDerivationParameters & parameters, uint32_t desiredKeySize) -{ - return get_activation_factory().DeriveKeyMaterial(key, parameters, desiredKeySize); -} - -inline Windows::Storage::Streams::IBuffer CryptographicEngine::SignHashedData(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data) -{ - return get_activation_factory().SignHashedData(key, data); -} - -inline bool CryptographicEngine::VerifySignatureWithHashInput(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & signature) -{ - return get_activation_factory().VerifySignatureWithHashInput(key, data, signature); -} - -inline Windows::Foundation::IAsyncOperation CryptographicEngine::DecryptAsync(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data, const Windows::Storage::Streams::IBuffer & iv) -{ - return get_activation_factory().DecryptAsync(key, data, iv); -} - -inline Windows::Foundation::IAsyncOperation CryptographicEngine::SignAsync(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data) -{ - return get_activation_factory().SignAsync(key, data); -} - -inline Windows::Foundation::IAsyncOperation CryptographicEngine::SignHashedDataAsync(const Windows::Security::Cryptography::Core::CryptographicKey & key, const Windows::Storage::Streams::IBuffer & data) -{ - return get_activation_factory().SignHashedDataAsync(key, data); -} - -inline hstring EccCurveNames::BrainpoolP160r1() -{ - return get_activation_factory().BrainpoolP160r1(); -} - -inline hstring EccCurveNames::BrainpoolP160t1() -{ - return get_activation_factory().BrainpoolP160t1(); -} - -inline hstring EccCurveNames::BrainpoolP192r1() -{ - return get_activation_factory().BrainpoolP192r1(); -} - -inline hstring EccCurveNames::BrainpoolP192t1() -{ - return get_activation_factory().BrainpoolP192t1(); -} - -inline hstring EccCurveNames::BrainpoolP224r1() -{ - return get_activation_factory().BrainpoolP224r1(); -} - -inline hstring EccCurveNames::BrainpoolP224t1() -{ - return get_activation_factory().BrainpoolP224t1(); -} - -inline hstring EccCurveNames::BrainpoolP256r1() -{ - return get_activation_factory().BrainpoolP256r1(); -} - -inline hstring EccCurveNames::BrainpoolP256t1() -{ - return get_activation_factory().BrainpoolP256t1(); -} - -inline hstring EccCurveNames::BrainpoolP320r1() -{ - return get_activation_factory().BrainpoolP320r1(); -} - -inline hstring EccCurveNames::BrainpoolP320t1() -{ - return get_activation_factory().BrainpoolP320t1(); -} - -inline hstring EccCurveNames::BrainpoolP384r1() -{ - return get_activation_factory().BrainpoolP384r1(); -} - -inline hstring EccCurveNames::BrainpoolP384t1() -{ - return get_activation_factory().BrainpoolP384t1(); -} - -inline hstring EccCurveNames::BrainpoolP512r1() -{ - return get_activation_factory().BrainpoolP512r1(); -} - -inline hstring EccCurveNames::BrainpoolP512t1() -{ - return get_activation_factory().BrainpoolP512t1(); -} - -inline hstring EccCurveNames::Curve25519() -{ - return get_activation_factory().Curve25519(); -} - -inline hstring EccCurveNames::Ec192wapi() -{ - return get_activation_factory().Ec192wapi(); -} - -inline hstring EccCurveNames::NistP192() -{ - return get_activation_factory().NistP192(); -} - -inline hstring EccCurveNames::NistP224() -{ - return get_activation_factory().NistP224(); -} - -inline hstring EccCurveNames::NistP256() -{ - return get_activation_factory().NistP256(); -} - -inline hstring EccCurveNames::NistP384() -{ - return get_activation_factory().NistP384(); -} - -inline hstring EccCurveNames::NistP521() -{ - return get_activation_factory().NistP521(); -} - -inline hstring EccCurveNames::NumsP256t1() -{ - return get_activation_factory().NumsP256t1(); -} - -inline hstring EccCurveNames::NumsP384t1() -{ - return get_activation_factory().NumsP384t1(); -} - -inline hstring EccCurveNames::NumsP512t1() -{ - return get_activation_factory().NumsP512t1(); -} - -inline hstring EccCurveNames::SecP160k1() -{ - return get_activation_factory().SecP160k1(); -} - -inline hstring EccCurveNames::SecP160r1() -{ - return get_activation_factory().SecP160r1(); -} - -inline hstring EccCurveNames::SecP160r2() -{ - return get_activation_factory().SecP160r2(); -} - -inline hstring EccCurveNames::SecP192k1() -{ - return get_activation_factory().SecP192k1(); -} - -inline hstring EccCurveNames::SecP192r1() -{ - return get_activation_factory().SecP192r1(); -} - -inline hstring EccCurveNames::SecP224k1() -{ - return get_activation_factory().SecP224k1(); -} - -inline hstring EccCurveNames::SecP224r1() -{ - return get_activation_factory().SecP224r1(); -} - -inline hstring EccCurveNames::SecP256k1() -{ - return get_activation_factory().SecP256k1(); -} - -inline hstring EccCurveNames::SecP256r1() -{ - return get_activation_factory().SecP256r1(); -} - -inline hstring EccCurveNames::SecP384r1() -{ - return get_activation_factory().SecP384r1(); -} - -inline hstring EccCurveNames::SecP521r1() -{ - return get_activation_factory().SecP521r1(); -} - -inline hstring EccCurveNames::Wtls7() -{ - return get_activation_factory().Wtls7(); -} - -inline hstring EccCurveNames::Wtls9() -{ - return get_activation_factory().Wtls9(); -} - -inline hstring EccCurveNames::Wtls12() -{ - return get_activation_factory().Wtls12(); -} - -inline hstring EccCurveNames::X962P192v1() -{ - return get_activation_factory().X962P192v1(); -} - -inline hstring EccCurveNames::X962P192v2() -{ - return get_activation_factory().X962P192v2(); -} - -inline hstring EccCurveNames::X962P192v3() -{ - return get_activation_factory().X962P192v3(); -} - -inline hstring EccCurveNames::X962P239v1() -{ - return get_activation_factory().X962P239v1(); -} - -inline hstring EccCurveNames::X962P239v2() -{ - return get_activation_factory().X962P239v2(); -} - -inline hstring EccCurveNames::X962P239v3() -{ - return get_activation_factory().X962P239v3(); -} - -inline hstring EccCurveNames::X962P256v1() -{ - return get_activation_factory().X962P256v1(); -} - -inline Windows::Foundation::Collections::IVectorView EccCurveNames::AllEccCurveNames() -{ - return get_activation_factory().AllEccCurveNames(); -} - -inline hstring HashAlgorithmNames::Md5() -{ - return get_activation_factory().Md5(); -} - -inline hstring HashAlgorithmNames::Sha1() -{ - return get_activation_factory().Sha1(); -} - -inline hstring HashAlgorithmNames::Sha256() -{ - return get_activation_factory().Sha256(); -} - -inline hstring HashAlgorithmNames::Sha384() -{ - return get_activation_factory().Sha384(); -} - -inline hstring HashAlgorithmNames::Sha512() -{ - return get_activation_factory().Sha512(); -} - -inline Windows::Security::Cryptography::Core::HashAlgorithmProvider HashAlgorithmProvider::OpenAlgorithm(hstring_ref algorithm) -{ - return get_activation_factory().OpenAlgorithm(algorithm); -} - -inline hstring KeyDerivationAlgorithmNames::Pbkdf2Md5() -{ - return get_activation_factory().Pbkdf2Md5(); -} - -inline hstring KeyDerivationAlgorithmNames::Pbkdf2Sha1() -{ - return get_activation_factory().Pbkdf2Sha1(); -} - -inline hstring KeyDerivationAlgorithmNames::Pbkdf2Sha256() -{ - return get_activation_factory().Pbkdf2Sha256(); -} - -inline hstring KeyDerivationAlgorithmNames::Pbkdf2Sha384() -{ - return get_activation_factory().Pbkdf2Sha384(); -} - -inline hstring KeyDerivationAlgorithmNames::Pbkdf2Sha512() -{ - return get_activation_factory().Pbkdf2Sha512(); -} - -inline hstring KeyDerivationAlgorithmNames::Sp800108CtrHmacMd5() -{ - return get_activation_factory().Sp800108CtrHmacMd5(); -} - -inline hstring KeyDerivationAlgorithmNames::Sp800108CtrHmacSha1() -{ - return get_activation_factory().Sp800108CtrHmacSha1(); -} - -inline hstring KeyDerivationAlgorithmNames::Sp800108CtrHmacSha256() -{ - return get_activation_factory().Sp800108CtrHmacSha256(); -} - -inline hstring KeyDerivationAlgorithmNames::Sp800108CtrHmacSha384() -{ - return get_activation_factory().Sp800108CtrHmacSha384(); -} - -inline hstring KeyDerivationAlgorithmNames::Sp800108CtrHmacSha512() -{ - return get_activation_factory().Sp800108CtrHmacSha512(); -} - -inline hstring KeyDerivationAlgorithmNames::Sp80056aConcatMd5() -{ - return get_activation_factory().Sp80056aConcatMd5(); -} - -inline hstring KeyDerivationAlgorithmNames::Sp80056aConcatSha1() -{ - return get_activation_factory().Sp80056aConcatSha1(); -} - -inline hstring KeyDerivationAlgorithmNames::Sp80056aConcatSha256() -{ - return get_activation_factory().Sp80056aConcatSha256(); -} - -inline hstring KeyDerivationAlgorithmNames::Sp80056aConcatSha384() -{ - return get_activation_factory().Sp80056aConcatSha384(); -} - -inline hstring KeyDerivationAlgorithmNames::Sp80056aConcatSha512() -{ - return get_activation_factory().Sp80056aConcatSha512(); -} - -inline hstring KeyDerivationAlgorithmNames::CapiKdfMd5() -{ - return get_activation_factory().CapiKdfMd5(); -} - -inline hstring KeyDerivationAlgorithmNames::CapiKdfSha1() -{ - return get_activation_factory().CapiKdfSha1(); -} - -inline hstring KeyDerivationAlgorithmNames::CapiKdfSha256() -{ - return get_activation_factory().CapiKdfSha256(); -} - -inline hstring KeyDerivationAlgorithmNames::CapiKdfSha384() -{ - return get_activation_factory().CapiKdfSha384(); -} - -inline hstring KeyDerivationAlgorithmNames::CapiKdfSha512() -{ - return get_activation_factory().CapiKdfSha512(); -} - -inline Windows::Security::Cryptography::Core::KeyDerivationAlgorithmProvider KeyDerivationAlgorithmProvider::OpenAlgorithm(hstring_ref algorithm) -{ - return get_activation_factory().OpenAlgorithm(algorithm); -} - -inline Windows::Security::Cryptography::Core::KeyDerivationParameters KeyDerivationParameters::BuildForPbkdf2(const Windows::Storage::Streams::IBuffer & pbkdf2Salt, uint32_t iterationCount) -{ - return get_activation_factory().BuildForPbkdf2(pbkdf2Salt, iterationCount); -} - -inline Windows::Security::Cryptography::Core::KeyDerivationParameters KeyDerivationParameters::BuildForSP800108(const Windows::Storage::Streams::IBuffer & label, const Windows::Storage::Streams::IBuffer & context) -{ - return get_activation_factory().BuildForSP800108(label, context); -} - -inline Windows::Security::Cryptography::Core::KeyDerivationParameters KeyDerivationParameters::BuildForSP80056a(const Windows::Storage::Streams::IBuffer & algorithmId, const Windows::Storage::Streams::IBuffer & partyUInfo, const Windows::Storage::Streams::IBuffer & partyVInfo, const Windows::Storage::Streams::IBuffer & suppPubInfo, const Windows::Storage::Streams::IBuffer & suppPrivInfo) -{ - return get_activation_factory().BuildForSP80056a(algorithmId, partyUInfo, partyVInfo, suppPubInfo, suppPrivInfo); -} - -inline Windows::Security::Cryptography::Core::KeyDerivationParameters KeyDerivationParameters::BuildForCapi1Kdf(Windows::Security::Cryptography::Core::Capi1KdfTargetAlgorithm capi1KdfTargetAlgorithm) -{ - return get_activation_factory().BuildForCapi1Kdf(capi1KdfTargetAlgorithm); -} - -inline hstring MacAlgorithmNames::HmacMd5() -{ - return get_activation_factory().HmacMd5(); -} - -inline hstring MacAlgorithmNames::HmacSha1() -{ - return get_activation_factory().HmacSha1(); -} - -inline hstring MacAlgorithmNames::HmacSha256() -{ - return get_activation_factory().HmacSha256(); -} - -inline hstring MacAlgorithmNames::HmacSha384() -{ - return get_activation_factory().HmacSha384(); -} - -inline hstring MacAlgorithmNames::HmacSha512() -{ - return get_activation_factory().HmacSha512(); -} - -inline hstring MacAlgorithmNames::AesCmac() -{ - return get_activation_factory().AesCmac(); -} - -inline Windows::Security::Cryptography::Core::MacAlgorithmProvider MacAlgorithmProvider::OpenAlgorithm(hstring_ref algorithm) -{ - return get_activation_factory().OpenAlgorithm(algorithm); -} - -inline Windows::Foundation::IAsyncOperation PersistedKeyProvider::OpenKeyPairFromCertificateAsync(const Windows::Security::Cryptography::Certificates::Certificate & certificate, hstring_ref hashAlgorithmName, Windows::Security::Cryptography::Core::CryptographicPadding padding) -{ - return get_activation_factory().OpenKeyPairFromCertificateAsync(certificate, hashAlgorithmName, padding); -} - -inline Windows::Security::Cryptography::Core::CryptographicKey PersistedKeyProvider::OpenPublicKeyFromCertificate(const Windows::Security::Cryptography::Certificates::Certificate & certificate, hstring_ref hashAlgorithmName, Windows::Security::Cryptography::Core::CryptographicPadding padding) -{ - return get_activation_factory().OpenPublicKeyFromCertificate(certificate, hashAlgorithmName, padding); -} - -inline hstring SymmetricAlgorithmNames::DesCbc() -{ - return get_activation_factory().DesCbc(); -} - -inline hstring SymmetricAlgorithmNames::DesEcb() -{ - return get_activation_factory().DesEcb(); -} - -inline hstring SymmetricAlgorithmNames::TripleDesCbc() -{ - return get_activation_factory().TripleDesCbc(); -} - -inline hstring SymmetricAlgorithmNames::TripleDesEcb() -{ - return get_activation_factory().TripleDesEcb(); -} - -inline hstring SymmetricAlgorithmNames::Rc2Cbc() -{ - return get_activation_factory().Rc2Cbc(); -} - -inline hstring SymmetricAlgorithmNames::Rc2Ecb() -{ - return get_activation_factory().Rc2Ecb(); -} - -inline hstring SymmetricAlgorithmNames::AesCbc() -{ - return get_activation_factory().AesCbc(); -} - -inline hstring SymmetricAlgorithmNames::AesEcb() -{ - return get_activation_factory().AesEcb(); -} - -inline hstring SymmetricAlgorithmNames::AesGcm() -{ - return get_activation_factory().AesGcm(); -} - -inline hstring SymmetricAlgorithmNames::AesCcm() -{ - return get_activation_factory().AesCcm(); -} - -inline hstring SymmetricAlgorithmNames::AesCbcPkcs7() -{ - return get_activation_factory().AesCbcPkcs7(); -} - -inline hstring SymmetricAlgorithmNames::AesEcbPkcs7() -{ - return get_activation_factory().AesEcbPkcs7(); -} - -inline hstring SymmetricAlgorithmNames::DesCbcPkcs7() -{ - return get_activation_factory().DesCbcPkcs7(); -} - -inline hstring SymmetricAlgorithmNames::DesEcbPkcs7() -{ - return get_activation_factory().DesEcbPkcs7(); -} - -inline hstring SymmetricAlgorithmNames::TripleDesCbcPkcs7() -{ - return get_activation_factory().TripleDesCbcPkcs7(); -} - -inline hstring SymmetricAlgorithmNames::TripleDesEcbPkcs7() -{ - return get_activation_factory().TripleDesEcbPkcs7(); -} - -inline hstring SymmetricAlgorithmNames::Rc2CbcPkcs7() -{ - return get_activation_factory().Rc2CbcPkcs7(); -} - -inline hstring SymmetricAlgorithmNames::Rc2EcbPkcs7() -{ - return get_activation_factory().Rc2EcbPkcs7(); -} - -inline hstring SymmetricAlgorithmNames::Rc4() -{ - return get_activation_factory().Rc4(); -} - -inline Windows::Security::Cryptography::Core::SymmetricKeyAlgorithmProvider SymmetricKeyAlgorithmProvider::OpenAlgorithm(hstring_ref algorithm) -{ - return get_activation_factory().OpenAlgorithm(algorithm); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Cryptography.DataProtection.h b/10.0.14393.0/winrt/Windows.Security.Cryptography.DataProtection.h deleted file mode 100644 index 96cdd1260..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Cryptography.DataProtection.h +++ /dev/null @@ -1,142 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Security.Cryptography.DataProtection.3.h" -#include "Windows.Security.Cryptography.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ProtectAsync(abi_arg_in data, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ProtectAsync(*reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnprotectAsync(abi_arg_in data, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().UnprotectAsync(*reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProtectStreamAsync(abi_arg_in src, abi_arg_in dest, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProtectStreamAsync(*reinterpret_cast(&src), *reinterpret_cast(&dest))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnprotectStreamAsync(abi_arg_in src, abi_arg_in dest, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UnprotectStreamAsync(*reinterpret_cast(&src), *reinterpret_cast(&dest))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateOverloadExplicit(abi_arg_in protectionDescriptor, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateOverloadExplicit(*reinterpret_cast(&protectionDescriptor))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Cryptography::DataProtection { - -template Windows::Foundation::IAsyncOperation impl_IDataProtectionProvider::ProtectAsync(const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_ProtectAsync(get(data), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDataProtectionProvider::UnprotectAsync(const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_UnprotectAsync(get(data), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IDataProtectionProvider::ProtectStreamAsync(const Windows::Storage::Streams::IInputStream & src, const Windows::Storage::Streams::IOutputStream & dest) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_ProtectStreamAsync(get(src), get(dest), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IDataProtectionProvider::UnprotectStreamAsync(const Windows::Storage::Streams::IInputStream & src, const Windows::Storage::Streams::IOutputStream & dest) const -{ - Windows::Foundation::IAsyncAction value; - check_hresult(static_cast(static_cast(*this))->abi_UnprotectStreamAsync(get(src), get(dest), put(value))); - return value; -} - -template Windows::Security::Cryptography::DataProtection::DataProtectionProvider impl_IDataProtectionProviderFactory::CreateOverloadExplicit(hstring_ref protectionDescriptor) const -{ - Windows::Security::Cryptography::DataProtection::DataProtectionProvider value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateOverloadExplicit(get(protectionDescriptor), put(value))); - return value; -} - -inline DataProtectionProvider::DataProtectionProvider() : - DataProtectionProvider(activate_instance()) -{} - -inline DataProtectionProvider::DataProtectionProvider(hstring_ref protectionDescriptor) : - DataProtectionProvider(get_activation_factory().CreateOverloadExplicit(protectionDescriptor)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.Cryptography.h b/10.0.14393.0/winrt/Windows.Security.Cryptography.h deleted file mode 100644 index 2b02da256..000000000 --- a/10.0.14393.0/winrt/Windows.Security.Cryptography.h +++ /dev/null @@ -1,306 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Security.Cryptography.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Compare(abi_arg_in object1, abi_arg_in object2, bool * isEqual) noexcept override - { - try - { - *isEqual = detach(this->shim().Compare(*reinterpret_cast(&object1), *reinterpret_cast(&object2))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GenerateRandom(uint32_t length, abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().GenerateRandom(length)); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GenerateRandomNumber(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GenerateRandomNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromByteArray(uint32_t __valueSize, abi_arg_in * value, abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().CreateFromByteArray(array_ref(value, value + __valueSize))); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyToByteArray(abi_arg_in buffer, uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - this->shim().CopyToByteArray(*reinterpret_cast(&buffer), detach(__valueSize, value)); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DecodeFromHexString(abi_arg_in value, abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().DecodeFromHexString(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EncodeToHexString(abi_arg_in buffer, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EncodeToHexString(*reinterpret_cast(&buffer))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DecodeFromBase64String(abi_arg_in value, abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().DecodeFromBase64String(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EncodeToBase64String(abi_arg_in buffer, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EncodeToBase64String(*reinterpret_cast(&buffer))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertStringToBinary(abi_arg_in value, Windows::Security::Cryptography::BinaryStringEncoding encoding, abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().ConvertStringToBinary(*reinterpret_cast(&value), encoding)); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertBinaryToString(Windows::Security::Cryptography::BinaryStringEncoding encoding, abi_arg_in buffer, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConvertBinaryToString(encoding, *reinterpret_cast(&buffer))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::Cryptography { - -template bool impl_ICryptographicBufferStatics::Compare(const Windows::Storage::Streams::IBuffer & object1, const Windows::Storage::Streams::IBuffer & object2) const -{ - bool isEqual {}; - check_hresult(static_cast(static_cast(*this))->abi_Compare(get(object1), get(object2), &isEqual)); - return isEqual; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicBufferStatics::GenerateRandom(uint32_t length) const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_GenerateRandom(length, put(buffer))); - return buffer; -} - -template uint32_t impl_ICryptographicBufferStatics::GenerateRandomNumber() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GenerateRandomNumber(&value)); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicBufferStatics::CreateFromByteArray(array_ref value) const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromByteArray(value.size(), get(value), put(buffer))); - return buffer; -} - -template void impl_ICryptographicBufferStatics::CopyToByteArray(const Windows::Storage::Streams::IBuffer & buffer, com_array & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CopyToByteArray(get(buffer), put_size(value), put(value))); -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicBufferStatics::DecodeFromHexString(hstring_ref value) const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_DecodeFromHexString(get(value), put(buffer))); - return buffer; -} - -template hstring impl_ICryptographicBufferStatics::EncodeToHexString(const Windows::Storage::Streams::IBuffer & buffer) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_EncodeToHexString(get(buffer), put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicBufferStatics::DecodeFromBase64String(hstring_ref value) const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_DecodeFromBase64String(get(value), put(buffer))); - return buffer; -} - -template hstring impl_ICryptographicBufferStatics::EncodeToBase64String(const Windows::Storage::Streams::IBuffer & buffer) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_EncodeToBase64String(get(buffer), put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ICryptographicBufferStatics::ConvertStringToBinary(hstring_ref value, Windows::Security::Cryptography::BinaryStringEncoding encoding) const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_ConvertStringToBinary(get(value), encoding, put(buffer))); - return buffer; -} - -template hstring impl_ICryptographicBufferStatics::ConvertBinaryToString(Windows::Security::Cryptography::BinaryStringEncoding encoding, const Windows::Storage::Streams::IBuffer & buffer) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_ConvertBinaryToString(encoding, get(buffer), put(value))); - return value; -} - -inline bool CryptographicBuffer::Compare(const Windows::Storage::Streams::IBuffer & object1, const Windows::Storage::Streams::IBuffer & object2) -{ - return get_activation_factory().Compare(object1, object2); -} - -inline Windows::Storage::Streams::IBuffer CryptographicBuffer::GenerateRandom(uint32_t length) -{ - return get_activation_factory().GenerateRandom(length); -} - -inline uint32_t CryptographicBuffer::GenerateRandomNumber() -{ - return get_activation_factory().GenerateRandomNumber(); -} - -inline Windows::Storage::Streams::IBuffer CryptographicBuffer::CreateFromByteArray(array_ref value) -{ - return get_activation_factory().CreateFromByteArray(value); -} - -inline void CryptographicBuffer::CopyToByteArray(const Windows::Storage::Streams::IBuffer & buffer, com_array & value) -{ - get_activation_factory().CopyToByteArray(buffer, value); -} - -inline Windows::Storage::Streams::IBuffer CryptographicBuffer::DecodeFromHexString(hstring_ref value) -{ - return get_activation_factory().DecodeFromHexString(value); -} - -inline hstring CryptographicBuffer::EncodeToHexString(const Windows::Storage::Streams::IBuffer & buffer) -{ - return get_activation_factory().EncodeToHexString(buffer); -} - -inline Windows::Storage::Streams::IBuffer CryptographicBuffer::DecodeFromBase64String(hstring_ref value) -{ - return get_activation_factory().DecodeFromBase64String(value); -} - -inline hstring CryptographicBuffer::EncodeToBase64String(const Windows::Storage::Streams::IBuffer & buffer) -{ - return get_activation_factory().EncodeToBase64String(buffer); -} - -inline Windows::Storage::Streams::IBuffer CryptographicBuffer::ConvertStringToBinary(hstring_ref value, Windows::Security::Cryptography::BinaryStringEncoding encoding) -{ - return get_activation_factory().ConvertStringToBinary(value, encoding); -} - -inline hstring CryptographicBuffer::ConvertBinaryToString(Windows::Security::Cryptography::BinaryStringEncoding encoding, const Windows::Storage::Streams::IBuffer & buffer) -{ - return get_activation_factory().ConvertBinaryToString(encoding, buffer); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.EnterpriseData.h b/10.0.14393.0/winrt/Windows.Security.EnterpriseData.h deleted file mode 100644 index f6c1377ee..000000000 --- a/10.0.14393.0/winrt/Windows.Security.EnterpriseData.h +++ /dev/null @@ -1,2064 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Networking.3.h" -#include "internal/Windows.Security.EnterpriseData.3.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Buffer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Buffer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtectionInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Security::EnterpriseData::DataProtectionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Identity(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Identity()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ProtectAsync(abi_arg_in data, abi_arg_in identity, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ProtectAsync(*reinterpret_cast(&data), *reinterpret_cast(&identity))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnprotectAsync(abi_arg_in data, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().UnprotectAsync(*reinterpret_cast(&data))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProtectStreamAsync(abi_arg_in unprotectedStream, abi_arg_in identity, abi_arg_in protectedStream, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ProtectStreamAsync(*reinterpret_cast(&unprotectedStream), *reinterpret_cast(&identity), *reinterpret_cast(&protectedStream))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UnprotectStreamAsync(abi_arg_in protectedStream, abi_arg_in unprotectedStream, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().UnprotectStreamAsync(*reinterpret_cast(&protectedStream), *reinterpret_cast(&unprotectedStream))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetProtectionInfoAsync(abi_arg_in protectedData, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetProtectionInfoAsync(*reinterpret_cast(&protectedData))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStreamProtectionInfoAsync(abi_arg_in protectedStream, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetStreamProtectionInfoAsync(*reinterpret_cast(&protectedStream))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Security::EnterpriseData::FileProtectionStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRoamable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRoamable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Identity(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Identity()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ProtectAsync(abi_arg_in target, abi_arg_in identity, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ProtectAsync(*reinterpret_cast(&target), *reinterpret_cast(&identity))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyProtectionAsync(abi_arg_in source, abi_arg_in target, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CopyProtectionAsync(*reinterpret_cast(&source), *reinterpret_cast(&target))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetProtectionInfoAsync(abi_arg_in source, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetProtectionInfoAsync(*reinterpret_cast(&source))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveFileAsContainerAsync(abi_arg_in protectedFile, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SaveFileAsContainerAsync(*reinterpret_cast(&protectedFile))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadFileFromContainerAsync(abi_arg_in containerFile, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().LoadFileFromContainerAsync(*reinterpret_cast(&containerFile))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadFileFromContainerWithTargetAsync(abi_arg_in containerFile, abi_arg_in target, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().LoadFileFromContainerAsync(*reinterpret_cast(&containerFile), *reinterpret_cast(&target))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateProtectedAndOpenAsync(abi_arg_in parentFolder, abi_arg_in desiredName, abi_arg_in identity, Windows::Storage::CreationCollisionOption collisionOption, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CreateProtectedAndOpenAsync(*reinterpret_cast(&parentFolder), *reinterpret_cast(&desiredName), *reinterpret_cast(&identity), collisionOption)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsContainerAsync(abi_arg_in file, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().IsContainerAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadFileFromContainerWithTargetAndNameCollisionOptionAsync(abi_arg_in containerFile, abi_arg_in target, Windows::Storage::NameCollisionOption collisionOption, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().LoadFileFromContainerAsync(*reinterpret_cast(&containerFile), *reinterpret_cast(&target), collisionOption)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveFileAsContainerWithSharingAsync(abi_arg_in protectedFile, abi_arg_in> sharedWithIdentities, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().SaveFileAsContainerAsync(*reinterpret_cast(&protectedFile), *reinterpret_cast *>(&sharedWithIdentities))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ProtectAsync(abi_arg_in storageItem, abi_arg_in enterpriseIdentity, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().ProtectAsync(*reinterpret_cast(&storageItem), *reinterpret_cast(&enterpriseIdentity))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyProtectionAsync(abi_arg_in sourceStorageItem, abi_arg_in targetStorageItem, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().CopyProtectionAsync(*reinterpret_cast(&sourceStorageItem), *reinterpret_cast(&targetStorageItem))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Revoke(abi_arg_in enterpriseIdentity) noexcept override - { - try - { - this->shim().Revoke(*reinterpret_cast(&enterpriseIdentity)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStatusAsync(abi_arg_in storageItem, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetStatusAsync(*reinterpret_cast(&storageItem))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Identities(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Identities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Identities(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Identities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Security::EnterpriseData::ProtectedImportExportStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_File(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().File()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Security::EnterpriseData::ProtectedImportExportStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_File(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().File()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Identities(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Identities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_File(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().File()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Stream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtectionInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Action(Windows::Security::EnterpriseData::ProtectionPolicyAuditAction value) noexcept override - { - try - { - this->shim().Action(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Action(Windows::Security::EnterpriseData::ProtectionPolicyAuditAction * value) noexcept override - { - try - { - *value = detach(this->shim().Action()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().DataDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SourceDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().SourceDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetDescription(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetDescription(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::Security::EnterpriseData::ProtectionPolicyAuditAction action, abi_arg_in dataDescription, abi_arg_in sourceDescription, abi_arg_in targetDescription, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(action, *reinterpret_cast(&dataDescription), *reinterpret_cast(&sourceDescription), *reinterpret_cast(&targetDescription))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithActionAndDataDescription(Windows::Security::EnterpriseData::ProtectionPolicyAuditAction action, abi_arg_in dataDescription, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithActionAndDataDescription(action, *reinterpret_cast(&dataDescription))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Identity(abi_arg_in value) noexcept override - { - try - { - this->shim().Identity(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Identity(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Identity()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ShowEnterpriseIndicator(bool value) noexcept override - { - try - { - this->shim().ShowEnterpriseIndicator(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowEnterpriseIndicator(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowEnterpriseIndicator()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsIdentityManaged(abi_arg_in identity, bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsIdentityManaged(*reinterpret_cast(&identity))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryApplyProcessUIPolicy(abi_arg_in identity, bool * result) noexcept override - { - try - { - *result = detach(this->shim().TryApplyProcessUIPolicy(*reinterpret_cast(&identity))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearProcessUIPolicy() noexcept override - { - try - { - this->shim().ClearProcessUIPolicy(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCurrentThreadNetworkContext(abi_arg_in identity, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateCurrentThreadNetworkContext(*reinterpret_cast(&identity))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPrimaryManagedIdentityForNetworkEndpointAsync(abi_arg_in endpointHost, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetPrimaryManagedIdentityForNetworkEndpointAsync(*reinterpret_cast(&endpointHost))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RevokeContent(abi_arg_in identity) noexcept override - { - try - { - this->shim().RevokeContent(*reinterpret_cast(&identity)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ProtectedAccessSuspending(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ProtectedAccessSuspending(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ProtectedAccessSuspending(event_token token) noexcept override - { - try - { - this->shim().ProtectedAccessSuspending(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ProtectedAccessResumed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ProtectedAccessResumed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ProtectedAccessResumed(event_token token) noexcept override - { - try - { - this->shim().ProtectedAccessResumed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ProtectedContentRevoked(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ProtectedContentRevoked(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ProtectedContentRevoked(event_token token) noexcept override - { - try - { - this->shim().ProtectedContentRevoked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckAccess(abi_arg_in sourceIdentity, abi_arg_in targetIdentity, Windows::Security::EnterpriseData::ProtectionPolicyEvaluationResult * result) noexcept override - { - try - { - *result = detach(this->shim().CheckAccess(*reinterpret_cast(&sourceIdentity), *reinterpret_cast(&targetIdentity))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_in sourceIdentity, abi_arg_in targetIdentity, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessAsync(*reinterpret_cast(&sourceIdentity), *reinterpret_cast(&targetIdentity))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_HasContentBeenRevokedSince(abi_arg_in identity, abi_arg_in since, bool * result) noexcept override - { - try - { - *result = detach(this->shim().HasContentBeenRevokedSince(*reinterpret_cast(&identity), *reinterpret_cast(&since))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckAccessForApp(abi_arg_in sourceIdentity, abi_arg_in appPackageFamilyName, Windows::Security::EnterpriseData::ProtectionPolicyEvaluationResult * result) noexcept override - { - try - { - *result = detach(this->shim().CheckAccessForApp(*reinterpret_cast(&sourceIdentity), *reinterpret_cast(&appPackageFamilyName))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessForAppAsync(abi_arg_in sourceIdentity, abi_arg_in appPackageFamilyName, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessForAppAsync(*reinterpret_cast(&sourceIdentity), *reinterpret_cast(&appPackageFamilyName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEnforcementLevel(abi_arg_in identity, Windows::Security::EnterpriseData::EnforcementLevel * value) noexcept override - { - try - { - *value = detach(this->shim().GetEnforcementLevel(*reinterpret_cast(&identity))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsUserDecryptionAllowed(abi_arg_in identity, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsUserDecryptionAllowed(*reinterpret_cast(&identity))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsProtectionUnderLockRequired(abi_arg_in identity, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsProtectionUnderLockRequired(*reinterpret_cast(&identity))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PolicyChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PolicyChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PolicyChanged(event_token token) noexcept override - { - try - { - this->shim().PolicyChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsProtectionEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsProtectionEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAccessWithAuditingInfoAsync(abi_arg_in sourceIdentity, abi_arg_in targetIdentity, abi_arg_in auditInfo, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessAsync(*reinterpret_cast(&sourceIdentity), *reinterpret_cast(&targetIdentity), *reinterpret_cast(&auditInfo))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessWithMessageAsync(abi_arg_in sourceIdentity, abi_arg_in targetIdentity, abi_arg_in auditInfo, abi_arg_in messageFromApp, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessAsync(*reinterpret_cast(&sourceIdentity), *reinterpret_cast(&targetIdentity), *reinterpret_cast(&auditInfo), *reinterpret_cast(&messageFromApp))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessForAppWithAuditingInfoAsync(abi_arg_in sourceIdentity, abi_arg_in appPackageFamilyName, abi_arg_in auditInfo, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessForAppAsync(*reinterpret_cast(&sourceIdentity), *reinterpret_cast(&appPackageFamilyName), *reinterpret_cast(&auditInfo))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessForAppWithMessageAsync(abi_arg_in sourceIdentity, abi_arg_in appPackageFamilyName, abi_arg_in auditInfo, abi_arg_in messageFromApp, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessForAppAsync(*reinterpret_cast(&sourceIdentity), *reinterpret_cast(&appPackageFamilyName), *reinterpret_cast(&auditInfo), *reinterpret_cast(&messageFromApp))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LogAuditEvent(abi_arg_in sourceIdentity, abi_arg_in targetIdentity, abi_arg_in auditInfo) noexcept override - { - try - { - this->shim().LogAuditEvent(*reinterpret_cast(&sourceIdentity), *reinterpret_cast(&targetIdentity), *reinterpret_cast(&auditInfo)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -} - -namespace Windows::Security::EnterpriseData { - -template Windows::Foundation::IAsyncOperation impl_IFileRevocationManagerStatics::ProtectAsync(const Windows::Storage::IStorageItem & storageItem, hstring_ref enterpriseIdentity) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ProtectAsync(get(storageItem), get(enterpriseIdentity), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IFileRevocationManagerStatics::CopyProtectionAsync(const Windows::Storage::IStorageItem & sourceStorageItem, const Windows::Storage::IStorageItem & targetStorageItem) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CopyProtectionAsync(get(sourceStorageItem), get(targetStorageItem), put(result))); - return result; -} - -template void impl_IFileRevocationManagerStatics::Revoke(hstring_ref enterpriseIdentity) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Revoke(get(enterpriseIdentity))); -} - -template Windows::Foundation::IAsyncOperation impl_IFileRevocationManagerStatics::GetStatusAsync(const Windows::Storage::IStorageItem & storageItem) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetStatusAsync(get(storageItem), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IFileProtectionManagerStatics::ProtectAsync(const Windows::Storage::IStorageItem & target, hstring_ref identity) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ProtectAsync(get(target), get(identity), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IFileProtectionManagerStatics::CopyProtectionAsync(const Windows::Storage::IStorageItem & source, const Windows::Storage::IStorageItem & target) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CopyProtectionAsync(get(source), get(target), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IFileProtectionManagerStatics::GetProtectionInfoAsync(const Windows::Storage::IStorageItem & source) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetProtectionInfoAsync(get(source), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IFileProtectionManagerStatics::SaveFileAsContainerAsync(const Windows::Storage::IStorageFile & protectedFile) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_SaveFileAsContainerAsync(get(protectedFile), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IFileProtectionManagerStatics::LoadFileFromContainerAsync(const Windows::Storage::IStorageFile & containerFile) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_LoadFileFromContainerAsync(get(containerFile), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IFileProtectionManagerStatics::LoadFileFromContainerAsync(const Windows::Storage::IStorageFile & containerFile, const Windows::Storage::IStorageItem & target) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_LoadFileFromContainerWithTargetAsync(get(containerFile), get(target), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IFileProtectionManagerStatics::CreateProtectedAndOpenAsync(const Windows::Storage::IStorageFolder & parentFolder, hstring_ref desiredName, hstring_ref identity, Windows::Storage::CreationCollisionOption collisionOption) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_CreateProtectedAndOpenAsync(get(parentFolder), get(desiredName), get(identity), collisionOption, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IFileProtectionManagerStatics2::IsContainerAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_IsContainerAsync(get(file), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IFileProtectionManagerStatics2::LoadFileFromContainerAsync(const Windows::Storage::IStorageFile & containerFile, const Windows::Storage::IStorageItem & target, Windows::Storage::NameCollisionOption collisionOption) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_LoadFileFromContainerWithTargetAndNameCollisionOptionAsync(get(containerFile), get(target), collisionOption, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IFileProtectionManagerStatics2::SaveFileAsContainerAsync(const Windows::Storage::IStorageFile & protectedFile, const Windows::Foundation::Collections::IIterable & sharedWithIdentities) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_SaveFileAsContainerWithSharingAsync(get(protectedFile), get(sharedWithIdentities), put(result))); - return result; -} - -template Windows::Storage::StorageFile impl_IProtectedFileCreateResult::File() const -{ - Windows::Storage::StorageFile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_File(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStream impl_IProtectedFileCreateResult::Stream() const -{ - Windows::Storage::Streams::IRandomAccessStream value; - check_hresult(static_cast(static_cast(*this))->get_Stream(put(value))); - return value; -} - -template Windows::Security::EnterpriseData::FileProtectionInfo impl_IProtectedFileCreateResult::ProtectionInfo() const -{ - Windows::Security::EnterpriseData::FileProtectionInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProtectionInfo(put(value))); - return value; -} - -template Windows::Security::EnterpriseData::FileProtectionStatus impl_IFileProtectionInfo::Status() const -{ - Windows::Security::EnterpriseData::FileProtectionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template bool impl_IFileProtectionInfo::IsRoamable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRoamable(&value)); - return value; -} - -template hstring impl_IFileProtectionInfo::Identity() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Identity(put(value))); - return value; -} - -template Windows::Security::EnterpriseData::ProtectedImportExportStatus impl_IProtectedContainerExportResult::Status() const -{ - Windows::Security::EnterpriseData::ProtectedImportExportStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Storage::StorageFile impl_IProtectedContainerExportResult::File() const -{ - Windows::Storage::StorageFile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_File(put(value))); - return value; -} - -template Windows::Security::EnterpriseData::ProtectedImportExportStatus impl_IProtectedContainerImportResult::Status() const -{ - Windows::Security::EnterpriseData::ProtectedImportExportStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Storage::StorageFile impl_IProtectedContainerImportResult::File() const -{ - Windows::Storage::StorageFile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_File(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDataProtectionManagerStatics::ProtectAsync(const Windows::Storage::Streams::IBuffer & data, hstring_ref identity) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ProtectAsync(get(data), get(identity), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDataProtectionManagerStatics::UnprotectAsync(const Windows::Storage::Streams::IBuffer & data) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_UnprotectAsync(get(data), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDataProtectionManagerStatics::ProtectStreamAsync(const Windows::Storage::Streams::IInputStream & unprotectedStream, hstring_ref identity, const Windows::Storage::Streams::IOutputStream & protectedStream) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_ProtectStreamAsync(get(unprotectedStream), get(identity), get(protectedStream), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDataProtectionManagerStatics::UnprotectStreamAsync(const Windows::Storage::Streams::IInputStream & protectedStream, const Windows::Storage::Streams::IOutputStream & unprotectedStream) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_UnprotectStreamAsync(get(protectedStream), get(unprotectedStream), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDataProtectionManagerStatics::GetProtectionInfoAsync(const Windows::Storage::Streams::IBuffer & protectedData) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetProtectionInfoAsync(get(protectedData), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IDataProtectionManagerStatics::GetStreamProtectionInfoAsync(const Windows::Storage::Streams::IInputStream & protectedStream) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetStreamProtectionInfoAsync(get(protectedStream), put(result))); - return result; -} - -template Windows::Security::EnterpriseData::DataProtectionStatus impl_IDataProtectionInfo::Status() const -{ - Windows::Security::EnterpriseData::DataProtectionStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template hstring impl_IDataProtectionInfo::Identity() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Identity(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IBufferProtectUnprotectResult::Buffer() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Buffer(put(value))); - return value; -} - -template Windows::Security::EnterpriseData::DataProtectionInfo impl_IBufferProtectUnprotectResult::ProtectionInfo() const -{ - Windows::Security::EnterpriseData::DataProtectionInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProtectionInfo(put(value))); - return value; -} - -template Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo impl_IProtectionPolicyAuditInfoFactory::Create(Windows::Security::EnterpriseData::ProtectionPolicyAuditAction action, hstring_ref dataDescription, hstring_ref sourceDescription, hstring_ref targetDescription) const -{ - Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(action, get(dataDescription), get(sourceDescription), get(targetDescription), put(result))); - return result; -} - -template Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo impl_IProtectionPolicyAuditInfoFactory::CreateWithActionAndDataDescription(Windows::Security::EnterpriseData::ProtectionPolicyAuditAction action, hstring_ref dataDescription) const -{ - Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithActionAndDataDescription(action, get(dataDescription), put(result))); - return result; -} - -template void impl_IProtectionPolicyAuditInfo::Action(Windows::Security::EnterpriseData::ProtectionPolicyAuditAction value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Action(value)); -} - -template Windows::Security::EnterpriseData::ProtectionPolicyAuditAction impl_IProtectionPolicyAuditInfo::Action() const -{ - Windows::Security::EnterpriseData::ProtectionPolicyAuditAction value {}; - check_hresult(static_cast(static_cast(*this))->get_Action(&value)); - return value; -} - -template void impl_IProtectionPolicyAuditInfo::DataDescription(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataDescription(get(value))); -} - -template hstring impl_IProtectionPolicyAuditInfo::DataDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DataDescription(put(value))); - return value; -} - -template void impl_IProtectionPolicyAuditInfo::SourceDescription(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SourceDescription(get(value))); -} - -template hstring impl_IProtectionPolicyAuditInfo::SourceDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SourceDescription(put(value))); - return value; -} - -template void impl_IProtectionPolicyAuditInfo::TargetDescription(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetDescription(get(value))); -} - -template hstring impl_IProtectionPolicyAuditInfo::TargetDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TargetDescription(put(value))); - return value; -} - -template void impl_IProtectionPolicyManager::Identity(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Identity(get(value))); -} - -template hstring impl_IProtectionPolicyManager::Identity() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Identity(put(value))); - return value; -} - -template void impl_IProtectionPolicyManager2::ShowEnterpriseIndicator(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShowEnterpriseIndicator(value)); -} - -template bool impl_IProtectionPolicyManager2::ShowEnterpriseIndicator() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShowEnterpriseIndicator(&value)); - return value; -} - -template bool impl_IProtectionPolicyManagerStatics::IsIdentityManaged(hstring_ref identity) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsIdentityManaged(get(identity), &result)); - return result; -} - -template bool impl_IProtectionPolicyManagerStatics::TryApplyProcessUIPolicy(hstring_ref identity) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryApplyProcessUIPolicy(get(identity), &result)); - return result; -} - -template void impl_IProtectionPolicyManagerStatics::ClearProcessUIPolicy() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearProcessUIPolicy()); -} - -template Windows::Security::EnterpriseData::ThreadNetworkContext impl_IProtectionPolicyManagerStatics::CreateCurrentThreadNetworkContext(hstring_ref identity) const -{ - Windows::Security::EnterpriseData::ThreadNetworkContext result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCurrentThreadNetworkContext(get(identity), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IProtectionPolicyManagerStatics::GetPrimaryManagedIdentityForNetworkEndpointAsync(const Windows::Networking::HostName & endpointHost) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetPrimaryManagedIdentityForNetworkEndpointAsync(get(endpointHost), put(result))); - return result; -} - -template void impl_IProtectionPolicyManagerStatics::RevokeContent(hstring_ref identity) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RevokeContent(get(identity))); -} - -template Windows::Security::EnterpriseData::ProtectionPolicyManager impl_IProtectionPolicyManagerStatics::GetForCurrentView() const -{ - Windows::Security::EnterpriseData::ProtectionPolicyManager result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(result))); - return result; -} - -template event_token impl_IProtectionPolicyManagerStatics::ProtectedAccessSuspending(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ProtectedAccessSuspending(get(handler), &token)); - return token; -} - -template event_revoker impl_IProtectionPolicyManagerStatics::ProtectedAccessSuspending(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Security::EnterpriseData::IProtectionPolicyManagerStatics::remove_ProtectedAccessSuspending, ProtectedAccessSuspending(handler)); -} - -template void impl_IProtectionPolicyManagerStatics::ProtectedAccessSuspending(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ProtectedAccessSuspending(token)); -} - -template event_token impl_IProtectionPolicyManagerStatics::ProtectedAccessResumed(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ProtectedAccessResumed(get(handler), &token)); - return token; -} - -template event_revoker impl_IProtectionPolicyManagerStatics::ProtectedAccessResumed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Security::EnterpriseData::IProtectionPolicyManagerStatics::remove_ProtectedAccessResumed, ProtectedAccessResumed(handler)); -} - -template void impl_IProtectionPolicyManagerStatics::ProtectedAccessResumed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ProtectedAccessResumed(token)); -} - -template event_token impl_IProtectionPolicyManagerStatics::ProtectedContentRevoked(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ProtectedContentRevoked(get(handler), &token)); - return token; -} - -template event_revoker impl_IProtectionPolicyManagerStatics::ProtectedContentRevoked(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Security::EnterpriseData::IProtectionPolicyManagerStatics::remove_ProtectedContentRevoked, ProtectedContentRevoked(handler)); -} - -template void impl_IProtectionPolicyManagerStatics::ProtectedContentRevoked(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ProtectedContentRevoked(token)); -} - -template Windows::Security::EnterpriseData::ProtectionPolicyEvaluationResult impl_IProtectionPolicyManagerStatics::CheckAccess(hstring_ref sourceIdentity, hstring_ref targetIdentity) const -{ - Windows::Security::EnterpriseData::ProtectionPolicyEvaluationResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_CheckAccess(get(sourceIdentity), get(targetIdentity), &result)); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IProtectionPolicyManagerStatics::RequestAccessAsync(hstring_ref sourceIdentity, hstring_ref targetIdentity) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(get(sourceIdentity), get(targetIdentity), put(result))); - return result; -} - -template bool impl_IProtectionPolicyManagerStatics2::HasContentBeenRevokedSince(hstring_ref identity, const Windows::Foundation::DateTime & since) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_HasContentBeenRevokedSince(get(identity), get(since), &result)); - return result; -} - -template Windows::Security::EnterpriseData::ProtectionPolicyEvaluationResult impl_IProtectionPolicyManagerStatics2::CheckAccessForApp(hstring_ref sourceIdentity, hstring_ref appPackageFamilyName) const -{ - Windows::Security::EnterpriseData::ProtectionPolicyEvaluationResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_CheckAccessForApp(get(sourceIdentity), get(appPackageFamilyName), &result)); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IProtectionPolicyManagerStatics2::RequestAccessForAppAsync(hstring_ref sourceIdentity, hstring_ref appPackageFamilyName) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessForAppAsync(get(sourceIdentity), get(appPackageFamilyName), put(result))); - return result; -} - -template Windows::Security::EnterpriseData::EnforcementLevel impl_IProtectionPolicyManagerStatics2::GetEnforcementLevel(hstring_ref identity) const -{ - Windows::Security::EnterpriseData::EnforcementLevel value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetEnforcementLevel(get(identity), &value)); - return value; -} - -template bool impl_IProtectionPolicyManagerStatics2::IsUserDecryptionAllowed(hstring_ref identity) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsUserDecryptionAllowed(get(identity), &value)); - return value; -} - -template bool impl_IProtectionPolicyManagerStatics2::IsProtectionUnderLockRequired(hstring_ref identity) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsProtectionUnderLockRequired(get(identity), &value)); - return value; -} - -template event_token impl_IProtectionPolicyManagerStatics2::PolicyChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PolicyChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IProtectionPolicyManagerStatics2::PolicyChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Security::EnterpriseData::IProtectionPolicyManagerStatics2::remove_PolicyChanged, PolicyChanged(handler)); -} - -template void impl_IProtectionPolicyManagerStatics2::PolicyChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PolicyChanged(token)); -} - -template bool impl_IProtectionPolicyManagerStatics2::IsProtectionEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsProtectionEnabled(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IProtectionPolicyManagerStatics3::RequestAccessAsync(hstring_ref sourceIdentity, hstring_ref targetIdentity, const Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo & auditInfo) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessWithAuditingInfoAsync(get(sourceIdentity), get(targetIdentity), get(auditInfo), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IProtectionPolicyManagerStatics3::RequestAccessAsync(hstring_ref sourceIdentity, hstring_ref targetIdentity, const Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo & auditInfo, hstring_ref messageFromApp) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessWithMessageAsync(get(sourceIdentity), get(targetIdentity), get(auditInfo), get(messageFromApp), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IProtectionPolicyManagerStatics3::RequestAccessForAppAsync(hstring_ref sourceIdentity, hstring_ref appPackageFamilyName, const Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo & auditInfo) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessForAppWithAuditingInfoAsync(get(sourceIdentity), get(appPackageFamilyName), get(auditInfo), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IProtectionPolicyManagerStatics3::RequestAccessForAppAsync(hstring_ref sourceIdentity, hstring_ref appPackageFamilyName, const Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo & auditInfo, hstring_ref messageFromApp) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessForAppWithMessageAsync(get(sourceIdentity), get(appPackageFamilyName), get(auditInfo), get(messageFromApp), put(result))); - return result; -} - -template void impl_IProtectionPolicyManagerStatics3::LogAuditEvent(hstring_ref sourceIdentity, hstring_ref targetIdentity, const Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo & auditInfo) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LogAuditEvent(get(sourceIdentity), get(targetIdentity), get(auditInfo))); -} - -template Windows::Foundation::Collections::IVectorView impl_IProtectedAccessSuspendingEventArgs::Identities() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Identities(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IProtectedAccessSuspendingEventArgs::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_IProtectedAccessSuspendingEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_IProtectedAccessResumedEventArgs::Identities() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Identities(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IProtectedContentRevokedEventArgs::Identities() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Identities(put(value))); - return value; -} - -inline Windows::Foundation::IAsyncOperation DataProtectionManager::ProtectAsync(const Windows::Storage::Streams::IBuffer & data, hstring_ref identity) -{ - return get_activation_factory().ProtectAsync(data, identity); -} - -inline Windows::Foundation::IAsyncOperation DataProtectionManager::UnprotectAsync(const Windows::Storage::Streams::IBuffer & data) -{ - return get_activation_factory().UnprotectAsync(data); -} - -inline Windows::Foundation::IAsyncOperation DataProtectionManager::ProtectStreamAsync(const Windows::Storage::Streams::IInputStream & unprotectedStream, hstring_ref identity, const Windows::Storage::Streams::IOutputStream & protectedStream) -{ - return get_activation_factory().ProtectStreamAsync(unprotectedStream, identity, protectedStream); -} - -inline Windows::Foundation::IAsyncOperation DataProtectionManager::UnprotectStreamAsync(const Windows::Storage::Streams::IInputStream & protectedStream, const Windows::Storage::Streams::IOutputStream & unprotectedStream) -{ - return get_activation_factory().UnprotectStreamAsync(protectedStream, unprotectedStream); -} - -inline Windows::Foundation::IAsyncOperation DataProtectionManager::GetProtectionInfoAsync(const Windows::Storage::Streams::IBuffer & protectedData) -{ - return get_activation_factory().GetProtectionInfoAsync(protectedData); -} - -inline Windows::Foundation::IAsyncOperation DataProtectionManager::GetStreamProtectionInfoAsync(const Windows::Storage::Streams::IInputStream & protectedStream) -{ - return get_activation_factory().GetStreamProtectionInfoAsync(protectedStream); -} - -inline Windows::Foundation::IAsyncOperation FileProtectionManager::ProtectAsync(const Windows::Storage::IStorageItem & target, hstring_ref identity) -{ - return get_activation_factory().ProtectAsync(target, identity); -} - -inline Windows::Foundation::IAsyncOperation FileProtectionManager::CopyProtectionAsync(const Windows::Storage::IStorageItem & source, const Windows::Storage::IStorageItem & target) -{ - return get_activation_factory().CopyProtectionAsync(source, target); -} - -inline Windows::Foundation::IAsyncOperation FileProtectionManager::GetProtectionInfoAsync(const Windows::Storage::IStorageItem & source) -{ - return get_activation_factory().GetProtectionInfoAsync(source); -} - -inline Windows::Foundation::IAsyncOperation FileProtectionManager::SaveFileAsContainerAsync(const Windows::Storage::IStorageFile & protectedFile) -{ - return get_activation_factory().SaveFileAsContainerAsync(protectedFile); -} - -inline Windows::Foundation::IAsyncOperation FileProtectionManager::LoadFileFromContainerAsync(const Windows::Storage::IStorageFile & containerFile) -{ - return get_activation_factory().LoadFileFromContainerAsync(containerFile); -} - -inline Windows::Foundation::IAsyncOperation FileProtectionManager::LoadFileFromContainerAsync(const Windows::Storage::IStorageFile & containerFile, const Windows::Storage::IStorageItem & target) -{ - return get_activation_factory().LoadFileFromContainerAsync(containerFile, target); -} - -inline Windows::Foundation::IAsyncOperation FileProtectionManager::CreateProtectedAndOpenAsync(const Windows::Storage::IStorageFolder & parentFolder, hstring_ref desiredName, hstring_ref identity, Windows::Storage::CreationCollisionOption collisionOption) -{ - return get_activation_factory().CreateProtectedAndOpenAsync(parentFolder, desiredName, identity, collisionOption); -} - -inline Windows::Foundation::IAsyncOperation FileProtectionManager::IsContainerAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().IsContainerAsync(file); -} - -inline Windows::Foundation::IAsyncOperation FileProtectionManager::LoadFileFromContainerAsync(const Windows::Storage::IStorageFile & containerFile, const Windows::Storage::IStorageItem & target, Windows::Storage::NameCollisionOption collisionOption) -{ - return get_activation_factory().LoadFileFromContainerAsync(containerFile, target, collisionOption); -} - -inline Windows::Foundation::IAsyncOperation FileProtectionManager::SaveFileAsContainerAsync(const Windows::Storage::IStorageFile & protectedFile, const Windows::Foundation::Collections::IIterable & sharedWithIdentities) -{ - return get_activation_factory().SaveFileAsContainerAsync(protectedFile, sharedWithIdentities); -} - -inline Windows::Foundation::IAsyncOperation FileRevocationManager::ProtectAsync(const Windows::Storage::IStorageItem & storageItem, hstring_ref enterpriseIdentity) -{ - return get_activation_factory().ProtectAsync(storageItem, enterpriseIdentity); -} - -inline Windows::Foundation::IAsyncOperation FileRevocationManager::CopyProtectionAsync(const Windows::Storage::IStorageItem & sourceStorageItem, const Windows::Storage::IStorageItem & targetStorageItem) -{ - return get_activation_factory().CopyProtectionAsync(sourceStorageItem, targetStorageItem); -} - -inline void FileRevocationManager::Revoke(hstring_ref enterpriseIdentity) -{ - get_activation_factory().Revoke(enterpriseIdentity); -} - -inline Windows::Foundation::IAsyncOperation FileRevocationManager::GetStatusAsync(const Windows::Storage::IStorageItem & storageItem) -{ - return get_activation_factory().GetStatusAsync(storageItem); -} - -inline ProtectionPolicyAuditInfo::ProtectionPolicyAuditInfo(Windows::Security::EnterpriseData::ProtectionPolicyAuditAction action, hstring_ref dataDescription, hstring_ref sourceDescription, hstring_ref targetDescription) : - ProtectionPolicyAuditInfo(get_activation_factory().Create(action, dataDescription, sourceDescription, targetDescription)) -{} - -inline ProtectionPolicyAuditInfo::ProtectionPolicyAuditInfo(Windows::Security::EnterpriseData::ProtectionPolicyAuditAction action, hstring_ref dataDescription) : - ProtectionPolicyAuditInfo(get_activation_factory().CreateWithActionAndDataDescription(action, dataDescription)) -{} - -inline bool ProtectionPolicyManager::IsIdentityManaged(hstring_ref identity) -{ - return get_activation_factory().IsIdentityManaged(identity); -} - -inline bool ProtectionPolicyManager::TryApplyProcessUIPolicy(hstring_ref identity) -{ - return get_activation_factory().TryApplyProcessUIPolicy(identity); -} - -inline void ProtectionPolicyManager::ClearProcessUIPolicy() -{ - get_activation_factory().ClearProcessUIPolicy(); -} - -inline Windows::Security::EnterpriseData::ThreadNetworkContext ProtectionPolicyManager::CreateCurrentThreadNetworkContext(hstring_ref identity) -{ - return get_activation_factory().CreateCurrentThreadNetworkContext(identity); -} - -inline Windows::Foundation::IAsyncOperation ProtectionPolicyManager::GetPrimaryManagedIdentityForNetworkEndpointAsync(const Windows::Networking::HostName & endpointHost) -{ - return get_activation_factory().GetPrimaryManagedIdentityForNetworkEndpointAsync(endpointHost); -} - -inline void ProtectionPolicyManager::RevokeContent(hstring_ref identity) -{ - get_activation_factory().RevokeContent(identity); -} - -inline Windows::Security::EnterpriseData::ProtectionPolicyManager ProtectionPolicyManager::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline event_token ProtectionPolicyManager::ProtectedAccessSuspending(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().ProtectedAccessSuspending(handler); -} - -inline factory_event_revoker ProtectionPolicyManager::ProtectedAccessSuspending(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Security::EnterpriseData::IProtectionPolicyManagerStatics::remove_ProtectedAccessSuspending, factory.ProtectedAccessSuspending(handler) }; -} - -inline void ProtectionPolicyManager::ProtectedAccessSuspending(event_token token) -{ - get_activation_factory().ProtectedAccessSuspending(token); -} - -inline event_token ProtectionPolicyManager::ProtectedAccessResumed(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().ProtectedAccessResumed(handler); -} - -inline factory_event_revoker ProtectionPolicyManager::ProtectedAccessResumed(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Security::EnterpriseData::IProtectionPolicyManagerStatics::remove_ProtectedAccessResumed, factory.ProtectedAccessResumed(handler) }; -} - -inline void ProtectionPolicyManager::ProtectedAccessResumed(event_token token) -{ - get_activation_factory().ProtectedAccessResumed(token); -} - -inline event_token ProtectionPolicyManager::ProtectedContentRevoked(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().ProtectedContentRevoked(handler); -} - -inline factory_event_revoker ProtectionPolicyManager::ProtectedContentRevoked(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Security::EnterpriseData::IProtectionPolicyManagerStatics::remove_ProtectedContentRevoked, factory.ProtectedContentRevoked(handler) }; -} - -inline void ProtectionPolicyManager::ProtectedContentRevoked(event_token token) -{ - get_activation_factory().ProtectedContentRevoked(token); -} - -inline Windows::Security::EnterpriseData::ProtectionPolicyEvaluationResult ProtectionPolicyManager::CheckAccess(hstring_ref sourceIdentity, hstring_ref targetIdentity) -{ - return get_activation_factory().CheckAccess(sourceIdentity, targetIdentity); -} - -inline Windows::Foundation::IAsyncOperation ProtectionPolicyManager::RequestAccessAsync(hstring_ref sourceIdentity, hstring_ref targetIdentity) -{ - return get_activation_factory().RequestAccessAsync(sourceIdentity, targetIdentity); -} - -inline bool ProtectionPolicyManager::HasContentBeenRevokedSince(hstring_ref identity, const Windows::Foundation::DateTime & since) -{ - return get_activation_factory().HasContentBeenRevokedSince(identity, since); -} - -inline Windows::Security::EnterpriseData::ProtectionPolicyEvaluationResult ProtectionPolicyManager::CheckAccessForApp(hstring_ref sourceIdentity, hstring_ref appPackageFamilyName) -{ - return get_activation_factory().CheckAccessForApp(sourceIdentity, appPackageFamilyName); -} - -inline Windows::Foundation::IAsyncOperation ProtectionPolicyManager::RequestAccessForAppAsync(hstring_ref sourceIdentity, hstring_ref appPackageFamilyName) -{ - return get_activation_factory().RequestAccessForAppAsync(sourceIdentity, appPackageFamilyName); -} - -inline Windows::Security::EnterpriseData::EnforcementLevel ProtectionPolicyManager::GetEnforcementLevel(hstring_ref identity) -{ - return get_activation_factory().GetEnforcementLevel(identity); -} - -inline bool ProtectionPolicyManager::IsUserDecryptionAllowed(hstring_ref identity) -{ - return get_activation_factory().IsUserDecryptionAllowed(identity); -} - -inline bool ProtectionPolicyManager::IsProtectionUnderLockRequired(hstring_ref identity) -{ - return get_activation_factory().IsProtectionUnderLockRequired(identity); -} - -inline event_token ProtectionPolicyManager::PolicyChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().PolicyChanged(handler); -} - -inline factory_event_revoker ProtectionPolicyManager::PolicyChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::Security::EnterpriseData::IProtectionPolicyManagerStatics2::remove_PolicyChanged, factory.PolicyChanged(handler) }; -} - -inline void ProtectionPolicyManager::PolicyChanged(event_token token) -{ - get_activation_factory().PolicyChanged(token); -} - -inline bool ProtectionPolicyManager::IsProtectionEnabled() -{ - return get_activation_factory().IsProtectionEnabled(); -} - -inline Windows::Foundation::IAsyncOperation ProtectionPolicyManager::RequestAccessAsync(hstring_ref sourceIdentity, hstring_ref targetIdentity, const Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo & auditInfo) -{ - return get_activation_factory().RequestAccessAsync(sourceIdentity, targetIdentity, auditInfo); -} - -inline Windows::Foundation::IAsyncOperation ProtectionPolicyManager::RequestAccessAsync(hstring_ref sourceIdentity, hstring_ref targetIdentity, const Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo & auditInfo, hstring_ref messageFromApp) -{ - return get_activation_factory().RequestAccessAsync(sourceIdentity, targetIdentity, auditInfo, messageFromApp); -} - -inline Windows::Foundation::IAsyncOperation ProtectionPolicyManager::RequestAccessForAppAsync(hstring_ref sourceIdentity, hstring_ref appPackageFamilyName, const Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo & auditInfo) -{ - return get_activation_factory().RequestAccessForAppAsync(sourceIdentity, appPackageFamilyName, auditInfo); -} - -inline Windows::Foundation::IAsyncOperation ProtectionPolicyManager::RequestAccessForAppAsync(hstring_ref sourceIdentity, hstring_ref appPackageFamilyName, const Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo & auditInfo, hstring_ref messageFromApp) -{ - return get_activation_factory().RequestAccessForAppAsync(sourceIdentity, appPackageFamilyName, auditInfo, messageFromApp); -} - -inline void ProtectionPolicyManager::LogAuditEvent(hstring_ref sourceIdentity, hstring_ref targetIdentity, const Windows::Security::EnterpriseData::ProtectionPolicyAuditInfo & auditInfo) -{ - get_activation_factory().LogAuditEvent(sourceIdentity, targetIdentity, auditInfo); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Security.ExchangeActiveSyncProvisioning.h b/10.0.14393.0/winrt/Windows.Security.ExchangeActiveSyncProvisioning.h deleted file mode 100644 index ef8cdd5c3..000000000 --- a/10.0.14393.0/winrt/Windows.Security.ExchangeActiveSyncProvisioning.h +++ /dev/null @@ -1,760 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Security.ExchangeActiveSyncProvisioning.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OperatingSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OperatingSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FriendlyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FriendlyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemManufacturer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SystemManufacturer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemProductName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SystemProductName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemSku(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SystemSku()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SystemHardwareVersion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SystemHardwareVersion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemFirmwareVersion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SystemFirmwareVersion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequireEncryption(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RequireEncryption()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RequireEncryption(bool value) noexcept override - { - try - { - this->shim().RequireEncryption(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinPasswordLength(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinPasswordLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinPasswordLength(uint8_t value) noexcept override - { - try - { - this->shim().MinPasswordLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisallowConvenienceLogon(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DisallowConvenienceLogon()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisallowConvenienceLogon(bool value) noexcept override - { - try - { - this->shim().DisallowConvenienceLogon(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinPasswordComplexCharacters(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinPasswordComplexCharacters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinPasswordComplexCharacters(uint8_t value) noexcept override - { - try - { - this->shim().MinPasswordComplexCharacters(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PasswordExpiration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PasswordExpiration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PasswordExpiration(abi_arg_in value) noexcept override - { - try - { - this->shim().PasswordExpiration(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PasswordHistory(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PasswordHistory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PasswordHistory(uint32_t value) noexcept override - { - try - { - this->shim().PasswordHistory(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPasswordFailedAttempts(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPasswordFailedAttempts()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxPasswordFailedAttempts(uint8_t value) noexcept override - { - try - { - this->shim().MaxPasswordFailedAttempts(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxInactivityTimeLock(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxInactivityTimeLock()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxInactivityTimeLock(abi_arg_in value) noexcept override - { - try - { - this->shim().MaxInactivityTimeLock(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckCompliance(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CheckCompliance()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ApplyAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ApplyAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Compliant(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Compliant()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequireEncryptionResult(Windows::Security::ExchangeActiveSyncProvisioning::EasRequireEncryptionResult * value) noexcept override - { - try - { - *value = detach(this->shim().RequireEncryptionResult()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinPasswordLengthResult(Windows::Security::ExchangeActiveSyncProvisioning::EasMinPasswordLengthResult * value) noexcept override - { - try - { - *value = detach(this->shim().MinPasswordLengthResult()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisallowConvenienceLogonResult(Windows::Security::ExchangeActiveSyncProvisioning::EasDisallowConvenienceLogonResult * value) noexcept override - { - try - { - *value = detach(this->shim().DisallowConvenienceLogonResult()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinPasswordComplexCharactersResult(Windows::Security::ExchangeActiveSyncProvisioning::EasMinPasswordComplexCharactersResult * value) noexcept override - { - try - { - *value = detach(this->shim().MinPasswordComplexCharactersResult()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PasswordExpirationResult(Windows::Security::ExchangeActiveSyncProvisioning::EasPasswordExpirationResult * value) noexcept override - { - try - { - *value = detach(this->shim().PasswordExpirationResult()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PasswordHistoryResult(Windows::Security::ExchangeActiveSyncProvisioning::EasPasswordHistoryResult * value) noexcept override - { - try - { - *value = detach(this->shim().PasswordHistoryResult()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPasswordFailedAttemptsResult(Windows::Security::ExchangeActiveSyncProvisioning::EasMaxPasswordFailedAttemptsResult * value) noexcept override - { - try - { - *value = detach(this->shim().MaxPasswordFailedAttemptsResult()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxInactivityTimeLockResult(Windows::Security::ExchangeActiveSyncProvisioning::EasMaxInactivityTimeLockResult * value) noexcept override - { - try - { - *value = detach(this->shim().MaxInactivityTimeLockResult()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EncryptionProviderType(Windows::Security::ExchangeActiveSyncProvisioning::EasEncryptionProviderType * value) noexcept override - { - try - { - *value = detach(this->shim().EncryptionProviderType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Security::ExchangeActiveSyncProvisioning { - -template GUID impl_IEasClientDeviceInformation::Id() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template hstring impl_IEasClientDeviceInformation::OperatingSystem() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_OperatingSystem(put(value))); - return value; -} - -template hstring impl_IEasClientDeviceInformation::FriendlyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FriendlyName(put(value))); - return value; -} - -template hstring impl_IEasClientDeviceInformation::SystemManufacturer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SystemManufacturer(put(value))); - return value; -} - -template hstring impl_IEasClientDeviceInformation::SystemProductName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SystemProductName(put(value))); - return value; -} - -template hstring impl_IEasClientDeviceInformation::SystemSku() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SystemSku(put(value))); - return value; -} - -template hstring impl_IEasClientDeviceInformation2::SystemHardwareVersion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SystemHardwareVersion(put(value))); - return value; -} - -template hstring impl_IEasClientDeviceInformation2::SystemFirmwareVersion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SystemFirmwareVersion(put(value))); - return value; -} - -template bool impl_IEasClientSecurityPolicy::RequireEncryption() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RequireEncryption(&value)); - return value; -} - -template void impl_IEasClientSecurityPolicy::RequireEncryption(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RequireEncryption(value)); -} - -template uint8_t impl_IEasClientSecurityPolicy::MinPasswordLength() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinPasswordLength(&value)); - return value; -} - -template void impl_IEasClientSecurityPolicy::MinPasswordLength(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinPasswordLength(value)); -} - -template bool impl_IEasClientSecurityPolicy::DisallowConvenienceLogon() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DisallowConvenienceLogon(&value)); - return value; -} - -template void impl_IEasClientSecurityPolicy::DisallowConvenienceLogon(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisallowConvenienceLogon(value)); -} - -template uint8_t impl_IEasClientSecurityPolicy::MinPasswordComplexCharacters() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinPasswordComplexCharacters(&value)); - return value; -} - -template void impl_IEasClientSecurityPolicy::MinPasswordComplexCharacters(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinPasswordComplexCharacters(value)); -} - -template Windows::Foundation::TimeSpan impl_IEasClientSecurityPolicy::PasswordExpiration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_PasswordExpiration(put(value))); - return value; -} - -template void impl_IEasClientSecurityPolicy::PasswordExpiration(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PasswordExpiration(get(value))); -} - -template uint32_t impl_IEasClientSecurityPolicy::PasswordHistory() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PasswordHistory(&value)); - return value; -} - -template void impl_IEasClientSecurityPolicy::PasswordHistory(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PasswordHistory(value)); -} - -template uint8_t impl_IEasClientSecurityPolicy::MaxPasswordFailedAttempts() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPasswordFailedAttempts(&value)); - return value; -} - -template void impl_IEasClientSecurityPolicy::MaxPasswordFailedAttempts(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxPasswordFailedAttempts(value)); -} - -template Windows::Foundation::TimeSpan impl_IEasClientSecurityPolicy::MaxInactivityTimeLock() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxInactivityTimeLock(put(value))); - return value; -} - -template void impl_IEasClientSecurityPolicy::MaxInactivityTimeLock(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxInactivityTimeLock(get(value))); -} - -template Windows::Security::ExchangeActiveSyncProvisioning::EasComplianceResults impl_IEasClientSecurityPolicy::CheckCompliance() const -{ - Windows::Security::ExchangeActiveSyncProvisioning::EasComplianceResults result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CheckCompliance(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IEasClientSecurityPolicy::ApplyAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ApplyAsync(put(operation))); - return operation; -} - -template bool impl_IEasComplianceResults::Compliant() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Compliant(&value)); - return value; -} - -template Windows::Security::ExchangeActiveSyncProvisioning::EasRequireEncryptionResult impl_IEasComplianceResults::RequireEncryptionResult() const -{ - Windows::Security::ExchangeActiveSyncProvisioning::EasRequireEncryptionResult value {}; - check_hresult(static_cast(static_cast(*this))->get_RequireEncryptionResult(&value)); - return value; -} - -template Windows::Security::ExchangeActiveSyncProvisioning::EasMinPasswordLengthResult impl_IEasComplianceResults::MinPasswordLengthResult() const -{ - Windows::Security::ExchangeActiveSyncProvisioning::EasMinPasswordLengthResult value {}; - check_hresult(static_cast(static_cast(*this))->get_MinPasswordLengthResult(&value)); - return value; -} - -template Windows::Security::ExchangeActiveSyncProvisioning::EasDisallowConvenienceLogonResult impl_IEasComplianceResults::DisallowConvenienceLogonResult() const -{ - Windows::Security::ExchangeActiveSyncProvisioning::EasDisallowConvenienceLogonResult value {}; - check_hresult(static_cast(static_cast(*this))->get_DisallowConvenienceLogonResult(&value)); - return value; -} - -template Windows::Security::ExchangeActiveSyncProvisioning::EasMinPasswordComplexCharactersResult impl_IEasComplianceResults::MinPasswordComplexCharactersResult() const -{ - Windows::Security::ExchangeActiveSyncProvisioning::EasMinPasswordComplexCharactersResult value {}; - check_hresult(static_cast(static_cast(*this))->get_MinPasswordComplexCharactersResult(&value)); - return value; -} - -template Windows::Security::ExchangeActiveSyncProvisioning::EasPasswordExpirationResult impl_IEasComplianceResults::PasswordExpirationResult() const -{ - Windows::Security::ExchangeActiveSyncProvisioning::EasPasswordExpirationResult value {}; - check_hresult(static_cast(static_cast(*this))->get_PasswordExpirationResult(&value)); - return value; -} - -template Windows::Security::ExchangeActiveSyncProvisioning::EasPasswordHistoryResult impl_IEasComplianceResults::PasswordHistoryResult() const -{ - Windows::Security::ExchangeActiveSyncProvisioning::EasPasswordHistoryResult value {}; - check_hresult(static_cast(static_cast(*this))->get_PasswordHistoryResult(&value)); - return value; -} - -template Windows::Security::ExchangeActiveSyncProvisioning::EasMaxPasswordFailedAttemptsResult impl_IEasComplianceResults::MaxPasswordFailedAttemptsResult() const -{ - Windows::Security::ExchangeActiveSyncProvisioning::EasMaxPasswordFailedAttemptsResult value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPasswordFailedAttemptsResult(&value)); - return value; -} - -template Windows::Security::ExchangeActiveSyncProvisioning::EasMaxInactivityTimeLockResult impl_IEasComplianceResults::MaxInactivityTimeLockResult() const -{ - Windows::Security::ExchangeActiveSyncProvisioning::EasMaxInactivityTimeLockResult value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxInactivityTimeLockResult(&value)); - return value; -} - -template Windows::Security::ExchangeActiveSyncProvisioning::EasEncryptionProviderType impl_IEasComplianceResults2::EncryptionProviderType() const -{ - Windows::Security::ExchangeActiveSyncProvisioning::EasEncryptionProviderType value {}; - check_hresult(static_cast(static_cast(*this))->get_EncryptionProviderType(&value)); - return value; -} - -inline EasClientDeviceInformation::EasClientDeviceInformation() : - EasClientDeviceInformation(activate_instance()) -{} - -inline EasClientSecurityPolicy::EasClientSecurityPolicy() : - EasClientSecurityPolicy(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Services.Maps.Guidance.h b/10.0.14393.0/winrt/Windows.Services.Maps.Guidance.h deleted file mode 100644 index bbcae2fc1..000000000 --- a/10.0.14393.0/winrt/Windows.Services.Maps.Guidance.h +++ /dev/null @@ -1,2176 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Devices.Geolocation.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Services.Maps.3.h" -#include "internal/Windows.Services.Maps.Guidance.3.h" -#include "Windows.Services.Maps.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AudioNotification(Windows::Services::Maps::Guidance::GuidanceAudioNotificationKind * value) noexcept override - { - try - { - *value = detach(this->shim().AudioNotification()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioFilePaths(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AudioFilePaths()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LaneMarkers(Windows::Services::Maps::Guidance::GuidanceLaneMarkers * value) noexcept override - { - try - { - *value = detach(this->shim().LaneMarkers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOnRoute(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOnRoute()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartLocation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartLocation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DistanceFromRouteStart(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DistanceFromRouteStart()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DistanceFromPreviousManeuver(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DistanceFromPreviousManeuver()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DepartureRoadName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DepartureRoadName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NextRoadName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NextRoadName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DepartureShortRoadName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DepartureShortRoadName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NextShortRoadName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NextShortRoadName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::Services::Maps::Guidance::GuidanceManeuverKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartAngle(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StartAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndAngle(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().EndAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoadSignpost(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RoadSignpost()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstructionText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InstructionText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentHeading(double * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentHeading()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentSpeed(double * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentSpeed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOnStreet(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOnStreet()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Road(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Road()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartNavigating(abi_arg_in route) noexcept override - { - try - { - this->shim().StartNavigating(*reinterpret_cast(&route)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartSimulating(abi_arg_in route, int32_t speedInMetersPerSecond) noexcept override - { - try - { - this->shim().StartSimulating(*reinterpret_cast(&route), speedInMetersPerSecond); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartTracking() noexcept override - { - try - { - this->shim().StartTracking(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Pause() noexcept override - { - try - { - this->shim().Pause(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Resume() noexcept override - { - try - { - this->shim().Resume(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RepeatLastAudioNotification() noexcept override - { - try - { - this->shim().RepeatLastAudioNotification(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioMeasurementSystem(Windows::Services::Maps::Guidance::GuidanceAudioMeasurementSystem * value) noexcept override - { - try - { - *value = detach(this->shim().AudioMeasurementSystem()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioMeasurementSystem(Windows::Services::Maps::Guidance::GuidanceAudioMeasurementSystem value) noexcept override - { - try - { - this->shim().AudioMeasurementSystem(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioNotifications(Windows::Services::Maps::Guidance::GuidanceAudioNotifications * value) noexcept override - { - try - { - *value = detach(this->shim().AudioNotifications()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioNotifications(Windows::Services::Maps::Guidance::GuidanceAudioNotifications value) noexcept override - { - try - { - this->shim().AudioNotifications(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_GuidanceUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().GuidanceUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_GuidanceUpdated(event_token token) noexcept override - { - try - { - this->shim().GuidanceUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DestinationReached(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DestinationReached(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DestinationReached(event_token token) noexcept override - { - try - { - this->shim().DestinationReached(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Rerouting(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Rerouting(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Rerouting(event_token token) noexcept override - { - try - { - this->shim().Rerouting(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Rerouted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Rerouted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Rerouted(event_token token) noexcept override - { - try - { - this->shim().Rerouted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RerouteFailed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RerouteFailed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RerouteFailed(event_token token) noexcept override - { - try - { - this->shim().RerouteFailed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UserLocationLost(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UserLocationLost(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UserLocationLost(event_token token) noexcept override - { - try - { - this->shim().UserLocationLost(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UserLocationRestored(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UserLocationRestored(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UserLocationRestored(event_token token) noexcept override - { - try - { - this->shim().UserLocationRestored(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetGuidanceVoice(int32_t voiceId, abi_arg_in voiceFolder) noexcept override - { - try - { - this->shim().SetGuidanceVoice(voiceId, *reinterpret_cast(&voiceFolder)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateUserLocation(abi_arg_in userLocation) noexcept override - { - try - { - this->shim().UpdateUserLocation(*reinterpret_cast(&userLocation)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateUserLocationWithPositionOverride(abi_arg_in userLocation, abi_arg_in positionOverride) noexcept override - { - try - { - this->shim().UpdateUserLocation(*reinterpret_cast(&userLocation), *reinterpret_cast(&positionOverride)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_AudioNotificationRequested(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AudioNotificationRequested(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AudioNotificationRequested(event_token token) noexcept override - { - try - { - this->shim().AudioNotificationRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGuidanceAudioMuted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGuidanceAudioMuted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsGuidanceAudioMuted(bool value) noexcept override - { - try - { - this->shim().IsGuidanceAudioMuted(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrent(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetCurrent()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UseAppProvidedVoice(bool * value) noexcept override - { - try - { - *value = detach(this->shim().UseAppProvidedVoice()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Route(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Route()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RoadName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RoadName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShortRoadName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShortRoadName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpeedLimit(double * value) noexcept override - { - try - { - *value = detach(this->shim().SpeedLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TravelTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TravelTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Path(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Path()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHighway(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHighway()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTunnel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTunnel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTollRoad(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTollRoad()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExitNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExitNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Exit(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Exit()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExitDirections(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExitDirections()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Distance(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Distance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Maneuvers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Maneuvers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BoundingBox(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BoundingBox()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Path(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Path()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoadSegments(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RoadSegments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConvertToMapRoute(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().ConvertToMapRoute()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CanCreateFromMapRoute(abi_arg_in mapRoute, bool * result) noexcept override - { - try - { - *result = detach(this->shim().CanCreateFromMapRoute(*reinterpret_cast(&mapRoute))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryCreateFromMapRoute(abi_arg_in mapRoute, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().TryCreateFromMapRoute(*reinterpret_cast(&mapRoute))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Enabled(bool value) noexcept override - { - try - { - this->shim().Enabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearLocalData() noexcept override - { - try - { - this->shim().ClearLocalData(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpeedTrigger(double * value) noexcept override - { - try - { - *value = detach(this->shim().SpeedTrigger()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SpeedTrigger(double value) noexcept override - { - try - { - this->shim().SpeedTrigger(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UploadFrequency(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UploadFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UploadFrequency(int32_t value) noexcept override - { - try - { - this->shim().UploadFrequency(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrent(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetCurrent()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Mode(Windows::Services::Maps::Guidance::GuidanceMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NextManeuver(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NextManeuver()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NextManeuverDistance(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NextManeuverDistance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AfterNextManeuver(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AfterNextManeuver()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AfterNextManeuverDistance(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AfterNextManeuverDistance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DistanceToDestination(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DistanceToDestination()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ElapsedDistance(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ElapsedDistance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ElapsedTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ElapsedTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeToDestination(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimeToDestination()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoadName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RoadName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Route(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Route()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentLocation(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CurrentLocation()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsNewManeuver(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsNewManeuver()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LaneInfo(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LaneInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Services::Maps::Guidance { - -template hstring impl_IGuidanceRoadSignpost::ExitNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExitNumber(put(value))); - return value; -} - -template hstring impl_IGuidanceRoadSignpost::Exit() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Exit(put(value))); - return value; -} - -template Windows::UI::Color impl_IGuidanceRoadSignpost::BackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(put(value))); - return value; -} - -template Windows::UI::Color impl_IGuidanceRoadSignpost::ForegroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_ForegroundColor(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGuidanceRoadSignpost::ExitDirections() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_ExitDirections(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IGuidanceManeuver::StartLocation() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StartLocation(put(value))); - return value; -} - -template int32_t impl_IGuidanceManeuver::DistanceFromRouteStart() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DistanceFromRouteStart(&value)); - return value; -} - -template int32_t impl_IGuidanceManeuver::DistanceFromPreviousManeuver() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DistanceFromPreviousManeuver(&value)); - return value; -} - -template hstring impl_IGuidanceManeuver::DepartureRoadName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DepartureRoadName(put(value))); - return value; -} - -template hstring impl_IGuidanceManeuver::NextRoadName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NextRoadName(put(value))); - return value; -} - -template hstring impl_IGuidanceManeuver::DepartureShortRoadName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DepartureShortRoadName(put(value))); - return value; -} - -template hstring impl_IGuidanceManeuver::NextShortRoadName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NextShortRoadName(put(value))); - return value; -} - -template Windows::Services::Maps::Guidance::GuidanceManeuverKind impl_IGuidanceManeuver::Kind() const -{ - Windows::Services::Maps::Guidance::GuidanceManeuverKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template int32_t impl_IGuidanceManeuver::StartAngle() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StartAngle(&value)); - return value; -} - -template int32_t impl_IGuidanceManeuver::EndAngle() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EndAngle(&value)); - return value; -} - -template Windows::Services::Maps::Guidance::GuidanceRoadSignpost impl_IGuidanceManeuver::RoadSignpost() const -{ - Windows::Services::Maps::Guidance::GuidanceRoadSignpost value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RoadSignpost(put(value))); - return value; -} - -template hstring impl_IGuidanceManeuver::InstructionText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InstructionText(put(value))); - return value; -} - -template Windows::Services::Maps::Guidance::GuidanceMode impl_IGuidanceUpdatedEventArgs::Mode() const -{ - Windows::Services::Maps::Guidance::GuidanceMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template Windows::Services::Maps::Guidance::GuidanceManeuver impl_IGuidanceUpdatedEventArgs::NextManeuver() const -{ - Windows::Services::Maps::Guidance::GuidanceManeuver value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NextManeuver(put(value))); - return value; -} - -template int32_t impl_IGuidanceUpdatedEventArgs::NextManeuverDistance() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NextManeuverDistance(&value)); - return value; -} - -template Windows::Services::Maps::Guidance::GuidanceManeuver impl_IGuidanceUpdatedEventArgs::AfterNextManeuver() const -{ - Windows::Services::Maps::Guidance::GuidanceManeuver value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AfterNextManeuver(put(value))); - return value; -} - -template int32_t impl_IGuidanceUpdatedEventArgs::AfterNextManeuverDistance() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AfterNextManeuverDistance(&value)); - return value; -} - -template int32_t impl_IGuidanceUpdatedEventArgs::DistanceToDestination() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DistanceToDestination(&value)); - return value; -} - -template int32_t impl_IGuidanceUpdatedEventArgs::ElapsedDistance() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ElapsedDistance(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IGuidanceUpdatedEventArgs::ElapsedTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_ElapsedTime(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IGuidanceUpdatedEventArgs::TimeToDestination() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeToDestination(put(value))); - return value; -} - -template hstring impl_IGuidanceUpdatedEventArgs::RoadName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RoadName(put(value))); - return value; -} - -template Windows::Services::Maps::Guidance::GuidanceRoute impl_IGuidanceUpdatedEventArgs::Route() const -{ - Windows::Services::Maps::Guidance::GuidanceRoute result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Route(put(result))); - return result; -} - -template Windows::Services::Maps::Guidance::GuidanceMapMatchedCoordinate impl_IGuidanceUpdatedEventArgs::CurrentLocation() const -{ - Windows::Services::Maps::Guidance::GuidanceMapMatchedCoordinate result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentLocation(put(result))); - return result; -} - -template bool impl_IGuidanceUpdatedEventArgs::IsNewManeuver() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsNewManeuver(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGuidanceUpdatedEventArgs::LaneInfo() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_LaneInfo(put(value))); - return value; -} - -template Windows::Services::Maps::Guidance::GuidanceRoute impl_IGuidanceReroutedEventArgs::Route() const -{ - Windows::Services::Maps::Guidance::GuidanceRoute result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Route(put(result))); - return result; -} - -template Windows::Services::Maps::Guidance::GuidanceAudioNotificationKind impl_IGuidanceAudioNotificationRequestedEventArgs::AudioNotification() const -{ - Windows::Services::Maps::Guidance::GuidanceAudioNotificationKind value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioNotification(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGuidanceAudioNotificationRequestedEventArgs::AudioFilePaths() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AudioFilePaths(put(value))); - return value; -} - -template hstring impl_IGuidanceAudioNotificationRequestedEventArgs::AudioText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AudioText(put(value))); - return value; -} - -template void impl_IGuidanceNavigator::StartNavigating(const Windows::Services::Maps::Guidance::GuidanceRoute & route) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartNavigating(get(route))); -} - -template void impl_IGuidanceNavigator::StartSimulating(const Windows::Services::Maps::Guidance::GuidanceRoute & route, int32_t speedInMetersPerSecond) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartSimulating(get(route), speedInMetersPerSecond)); -} - -template void impl_IGuidanceNavigator::StartTracking() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartTracking()); -} - -template void impl_IGuidanceNavigator::Pause() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Pause()); -} - -template void impl_IGuidanceNavigator::Resume() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Resume()); -} - -template void impl_IGuidanceNavigator::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template void impl_IGuidanceNavigator::RepeatLastAudioNotification() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RepeatLastAudioNotification()); -} - -template Windows::Services::Maps::Guidance::GuidanceAudioMeasurementSystem impl_IGuidanceNavigator::AudioMeasurementSystem() const -{ - Windows::Services::Maps::Guidance::GuidanceAudioMeasurementSystem value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioMeasurementSystem(&value)); - return value; -} - -template void impl_IGuidanceNavigator::AudioMeasurementSystem(Windows::Services::Maps::Guidance::GuidanceAudioMeasurementSystem value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioMeasurementSystem(value)); -} - -template Windows::Services::Maps::Guidance::GuidanceAudioNotifications impl_IGuidanceNavigator::AudioNotifications() const -{ - Windows::Services::Maps::Guidance::GuidanceAudioNotifications value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioNotifications(&value)); - return value; -} - -template void impl_IGuidanceNavigator::AudioNotifications(Windows::Services::Maps::Guidance::GuidanceAudioNotifications value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioNotifications(value)); -} - -template event_token impl_IGuidanceNavigator::GuidanceUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_GuidanceUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_IGuidanceNavigator::GuidanceUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Services::Maps::Guidance::IGuidanceNavigator::remove_GuidanceUpdated, GuidanceUpdated(handler)); -} - -template void impl_IGuidanceNavigator::GuidanceUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_GuidanceUpdated(token)); -} - -template event_token impl_IGuidanceNavigator::DestinationReached(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DestinationReached(get(handler), &token)); - return token; -} - -template event_revoker impl_IGuidanceNavigator::DestinationReached(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Services::Maps::Guidance::IGuidanceNavigator::remove_DestinationReached, DestinationReached(handler)); -} - -template void impl_IGuidanceNavigator::DestinationReached(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DestinationReached(token)); -} - -template event_token impl_IGuidanceNavigator::Rerouting(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Rerouting(get(handler), &token)); - return token; -} - -template event_revoker impl_IGuidanceNavigator::Rerouting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Services::Maps::Guidance::IGuidanceNavigator::remove_Rerouting, Rerouting(handler)); -} - -template void impl_IGuidanceNavigator::Rerouting(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Rerouting(token)); -} - -template event_token impl_IGuidanceNavigator::Rerouted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Rerouted(get(handler), &token)); - return token; -} - -template event_revoker impl_IGuidanceNavigator::Rerouted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Services::Maps::Guidance::IGuidanceNavigator::remove_Rerouted, Rerouted(handler)); -} - -template void impl_IGuidanceNavigator::Rerouted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Rerouted(token)); -} - -template event_token impl_IGuidanceNavigator::RerouteFailed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RerouteFailed(get(handler), &token)); - return token; -} - -template event_revoker impl_IGuidanceNavigator::RerouteFailed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Services::Maps::Guidance::IGuidanceNavigator::remove_RerouteFailed, RerouteFailed(handler)); -} - -template void impl_IGuidanceNavigator::RerouteFailed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RerouteFailed(token)); -} - -template event_token impl_IGuidanceNavigator::UserLocationLost(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UserLocationLost(get(handler), &token)); - return token; -} - -template event_revoker impl_IGuidanceNavigator::UserLocationLost(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Services::Maps::Guidance::IGuidanceNavigator::remove_UserLocationLost, UserLocationLost(handler)); -} - -template void impl_IGuidanceNavigator::UserLocationLost(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UserLocationLost(token)); -} - -template event_token impl_IGuidanceNavigator::UserLocationRestored(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UserLocationRestored(get(handler), &token)); - return token; -} - -template event_revoker impl_IGuidanceNavigator::UserLocationRestored(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Services::Maps::Guidance::IGuidanceNavigator::remove_UserLocationRestored, UserLocationRestored(handler)); -} - -template void impl_IGuidanceNavigator::UserLocationRestored(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UserLocationRestored(token)); -} - -template void impl_IGuidanceNavigator::SetGuidanceVoice(int32_t voiceId, hstring_ref voiceFolder) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetGuidanceVoice(voiceId, get(voiceFolder))); -} - -template void impl_IGuidanceNavigator::UpdateUserLocation(const Windows::Devices::Geolocation::Geocoordinate & userLocation) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateUserLocation(get(userLocation))); -} - -template void impl_IGuidanceNavigator::UpdateUserLocation(const Windows::Devices::Geolocation::Geocoordinate & userLocation, const Windows::Devices::Geolocation::BasicGeoposition & positionOverride) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateUserLocationWithPositionOverride(get(userLocation), get(positionOverride))); -} - -template event_token impl_IGuidanceNavigator2::AudioNotificationRequested(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AudioNotificationRequested(get(value), &token)); - return token; -} - -template event_revoker impl_IGuidanceNavigator2::AudioNotificationRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Services::Maps::Guidance::IGuidanceNavigator2::remove_AudioNotificationRequested, AudioNotificationRequested(value)); -} - -template void impl_IGuidanceNavigator2::AudioNotificationRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AudioNotificationRequested(token)); -} - -template bool impl_IGuidanceNavigator2::IsGuidanceAudioMuted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsGuidanceAudioMuted(&value)); - return value; -} - -template void impl_IGuidanceNavigator2::IsGuidanceAudioMuted(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsGuidanceAudioMuted(value)); -} - -template Windows::Services::Maps::Guidance::GuidanceNavigator impl_IGuidanceNavigatorStatics::GetCurrent() const -{ - Windows::Services::Maps::Guidance::GuidanceNavigator result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrent(put(result))); - return result; -} - -template bool impl_IGuidanceNavigatorStatics2::UseAppProvidedVoice() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_UseAppProvidedVoice(&value)); - return value; -} - -template hstring impl_IGuidanceRoadSegment::RoadName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RoadName(put(value))); - return value; -} - -template hstring impl_IGuidanceRoadSegment::ShortRoadName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ShortRoadName(put(value))); - return value; -} - -template double impl_IGuidanceRoadSegment::SpeedLimit() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_SpeedLimit(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IGuidanceRoadSegment::TravelTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TravelTime(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopath impl_IGuidanceRoadSegment::Path() const -{ - Windows::Devices::Geolocation::Geopath value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Path(put(value))); - return value; -} - -template hstring impl_IGuidanceRoadSegment::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template bool impl_IGuidanceRoadSegment::IsHighway() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsHighway(&value)); - return value; -} - -template bool impl_IGuidanceRoadSegment::IsTunnel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTunnel(&value)); - return value; -} - -template bool impl_IGuidanceRoadSegment::IsTollRoad() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTollRoad(&value)); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IGuidanceMapMatchedCoordinate::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template double impl_IGuidanceMapMatchedCoordinate::CurrentHeading() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentHeading(&value)); - return value; -} - -template double impl_IGuidanceMapMatchedCoordinate::CurrentSpeed() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentSpeed(&value)); - return value; -} - -template bool impl_IGuidanceMapMatchedCoordinate::IsOnStreet() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOnStreet(&value)); - return value; -} - -template Windows::Services::Maps::Guidance::GuidanceRoadSegment impl_IGuidanceMapMatchedCoordinate::Road() const -{ - Windows::Services::Maps::Guidance::GuidanceRoadSegment value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Road(put(value))); - return value; -} - -template Windows::Services::Maps::Guidance::GuidanceTelemetryCollector impl_IGuidanceTelemetryCollectorStatics::GetCurrent() const -{ - Windows::Services::Maps::Guidance::GuidanceTelemetryCollector result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrent(put(result))); - return result; -} - -template bool impl_IGuidanceTelemetryCollector::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template void impl_IGuidanceTelemetryCollector::Enabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(value)); -} - -template void impl_IGuidanceTelemetryCollector::ClearLocalData() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearLocalData()); -} - -template double impl_IGuidanceTelemetryCollector::SpeedTrigger() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_SpeedTrigger(&value)); - return value; -} - -template void impl_IGuidanceTelemetryCollector::SpeedTrigger(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SpeedTrigger(value)); -} - -template int32_t impl_IGuidanceTelemetryCollector::UploadFrequency() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UploadFrequency(&value)); - return value; -} - -template void impl_IGuidanceTelemetryCollector::UploadFrequency(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UploadFrequency(value)); -} - -template bool impl_IGuidanceRouteStatics::CanCreateFromMapRoute(const Windows::Services::Maps::MapRoute & mapRoute) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_CanCreateFromMapRoute(get(mapRoute), &result)); - return result; -} - -template Windows::Services::Maps::Guidance::GuidanceRoute impl_IGuidanceRouteStatics::TryCreateFromMapRoute(const Windows::Services::Maps::MapRoute & mapRoute) const -{ - Windows::Services::Maps::Guidance::GuidanceRoute result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryCreateFromMapRoute(get(mapRoute), put(result))); - return result; -} - -template Windows::Foundation::TimeSpan impl_IGuidanceRoute::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template int32_t impl_IGuidanceRoute::Distance() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Distance(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGuidanceRoute::Maneuvers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Maneuvers(put(value))); - return value; -} - -template Windows::Devices::Geolocation::GeoboundingBox impl_IGuidanceRoute::BoundingBox() const -{ - Windows::Devices::Geolocation::GeoboundingBox value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BoundingBox(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopath impl_IGuidanceRoute::Path() const -{ - Windows::Devices::Geolocation::Geopath value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Path(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGuidanceRoute::RoadSegments() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_RoadSegments(put(value))); - return value; -} - -template Windows::Services::Maps::MapRoute impl_IGuidanceRoute::ConvertToMapRoute() const -{ - Windows::Services::Maps::MapRoute result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ConvertToMapRoute(put(result))); - return result; -} - -template Windows::Services::Maps::Guidance::GuidanceLaneMarkers impl_IGuidanceLaneInfo::LaneMarkers() const -{ - Windows::Services::Maps::Guidance::GuidanceLaneMarkers value {}; - check_hresult(static_cast(static_cast(*this))->get_LaneMarkers(&value)); - return value; -} - -template bool impl_IGuidanceLaneInfo::IsOnRoute() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOnRoute(&value)); - return value; -} - -inline Windows::Services::Maps::Guidance::GuidanceNavigator GuidanceNavigator::GetCurrent() -{ - return get_activation_factory().GetCurrent(); -} - -inline bool GuidanceNavigator::UseAppProvidedVoice() -{ - return get_activation_factory().UseAppProvidedVoice(); -} - -inline bool GuidanceRoute::CanCreateFromMapRoute(const Windows::Services::Maps::MapRoute & mapRoute) -{ - return get_activation_factory().CanCreateFromMapRoute(mapRoute); -} - -inline Windows::Services::Maps::Guidance::GuidanceRoute GuidanceRoute::TryCreateFromMapRoute(const Windows::Services::Maps::MapRoute & mapRoute) -{ - return get_activation_factory().TryCreateFromMapRoute(mapRoute); -} - -inline Windows::Services::Maps::Guidance::GuidanceTelemetryCollector GuidanceTelemetryCollector::GetCurrent() -{ - return get_activation_factory().GetCurrent(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Services.Maps.LocalSearch.h b/10.0.14393.0/winrt/Windows.Services.Maps.LocalSearch.h deleted file mode 100644 index 2ccd7b6b3..000000000 --- a/10.0.14393.0/winrt/Windows.Services.Maps.LocalSearch.h +++ /dev/null @@ -1,660 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Services.Maps.3.h" -#include "internal/Windows.Devices.Geolocation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Globalization.3.h" -#include "internal/Windows.Services.Maps.LocalSearch.3.h" -#include "Windows.Services.Maps.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BankAndCreditUnions(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BankAndCreditUnions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EatDrink(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EatDrink()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Hospitals(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Hospitals()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HotelsAndMotels(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HotelsAndMotels()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_All(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().All()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Parking(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Parking()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SeeDo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SeeDo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Shop(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Shop()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Address(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Address()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Identifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Identifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Point(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Point()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhoneNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataAttribution(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataAttribution()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Category(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Category()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RatingInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RatingInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HoursOfOperation(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().HoursOfOperation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalLocations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LocalLocations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Services::Maps::LocalSearch::LocalLocationFinderStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindLocalLocationsAsync(abi_arg_in searchTerm, abi_arg_in searchArea, abi_arg_in localCategory, uint32_t maxResults, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FindLocalLocationsAsync(*reinterpret_cast(&searchTerm), *reinterpret_cast(&searchArea), *reinterpret_cast(&localCategory), maxResults)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Day(Windows::Globalization::DayOfWeek * value) noexcept override - { - try - { - *value = detach(this->shim().Day()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Start(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Start()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Span(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Span()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AggregateRating(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AggregateRating()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RatingCount(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RatingCount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProviderIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProviderIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Services::Maps::LocalSearch { - -template Windows::Services::Maps::MapAddress impl_ILocalLocation::Address() const -{ - Windows::Services::Maps::MapAddress value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Address(put(value))); - return value; -} - -template hstring impl_ILocalLocation::Identifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Identifier(put(value))); - return value; -} - -template hstring impl_ILocalLocation::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template hstring impl_ILocalLocation::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_ILocalLocation::Point() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Point(put(value))); - return value; -} - -template hstring impl_ILocalLocation::PhoneNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PhoneNumber(put(value))); - return value; -} - -template hstring impl_ILocalLocation::DataAttribution() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DataAttribution(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ILocalLocationFinderResult::LocalLocations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_LocalLocations(put(value))); - return value; -} - -template Windows::Services::Maps::LocalSearch::LocalLocationFinderStatus impl_ILocalLocationFinderResult::Status() const -{ - Windows::Services::Maps::LocalSearch::LocalLocationFinderStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ILocalLocationFinderStatics::FindLocalLocationsAsync(hstring_ref searchTerm, const Windows::Devices::Geolocation::Geocircle & searchArea, hstring_ref localCategory, uint32_t maxResults) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FindLocalLocationsAsync(get(searchTerm), get(searchArea), get(localCategory), maxResults, put(result))); - return result; -} - -template hstring impl_ILocalCategoriesStatics::BankAndCreditUnions() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BankAndCreditUnions(put(value))); - return value; -} - -template hstring impl_ILocalCategoriesStatics::EatDrink() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EatDrink(put(value))); - return value; -} - -template hstring impl_ILocalCategoriesStatics::Hospitals() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Hospitals(put(value))); - return value; -} - -template hstring impl_ILocalCategoriesStatics::HotelsAndMotels() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HotelsAndMotels(put(value))); - return value; -} - -template hstring impl_ILocalCategoriesStatics::All() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_All(put(value))); - return value; -} - -template hstring impl_ILocalCategoriesStatics::Parking() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Parking(put(value))); - return value; -} - -template hstring impl_ILocalCategoriesStatics::SeeDo() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SeeDo(put(value))); - return value; -} - -template hstring impl_ILocalCategoriesStatics::Shop() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Shop(put(value))); - return value; -} - -template Windows::Globalization::DayOfWeek impl_ILocalLocationHoursOfOperationItem::Day() const -{ - Windows::Globalization::DayOfWeek value {}; - check_hresult(static_cast(static_cast(*this))->get_Day(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_ILocalLocationHoursOfOperationItem::Start() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Start(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_ILocalLocationHoursOfOperationItem::Span() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Span(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ILocalLocationRatingInfo::AggregateRating() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_AggregateRating(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ILocalLocationRatingInfo::RatingCount() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_RatingCount(put(value))); - return value; -} - -template hstring impl_ILocalLocationRatingInfo::ProviderIdentifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProviderIdentifier(put(value))); - return value; -} - -template hstring impl_ILocalLocation2::Category() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Category(put(value))); - return value; -} - -template Windows::Services::Maps::LocalSearch::LocalLocationRatingInfo impl_ILocalLocation2::RatingInfo() const -{ - Windows::Services::Maps::LocalSearch::LocalLocationRatingInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RatingInfo(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ILocalLocation2::HoursOfOperation() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_HoursOfOperation(put(value))); - return value; -} - -inline hstring LocalCategories::BankAndCreditUnions() -{ - return get_activation_factory().BankAndCreditUnions(); -} - -inline hstring LocalCategories::EatDrink() -{ - return get_activation_factory().EatDrink(); -} - -inline hstring LocalCategories::Hospitals() -{ - return get_activation_factory().Hospitals(); -} - -inline hstring LocalCategories::HotelsAndMotels() -{ - return get_activation_factory().HotelsAndMotels(); -} - -inline hstring LocalCategories::All() -{ - return get_activation_factory().All(); -} - -inline hstring LocalCategories::Parking() -{ - return get_activation_factory().Parking(); -} - -inline hstring LocalCategories::SeeDo() -{ - return get_activation_factory().SeeDo(); -} - -inline hstring LocalCategories::Shop() -{ - return get_activation_factory().Shop(); -} - -inline Windows::Foundation::IAsyncOperation LocalLocationFinder::FindLocalLocationsAsync(hstring_ref searchTerm, const Windows::Devices::Geolocation::Geocircle & searchArea, hstring_ref localCategory, uint32_t maxResults) -{ - return get_activation_factory().FindLocalLocationsAsync(searchTerm, searchArea, localCategory, maxResults); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Services.Maps.h b/10.0.14393.0/winrt/Windows.Services.Maps.h deleted file mode 100644 index d797da5cb..000000000 --- a/10.0.14393.0/winrt/Windows.Services.Maps.h +++ /dev/null @@ -1,1768 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Geolocation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Services.Maps.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BuildingName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BuildingName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BuildingFloor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BuildingFloor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BuildingRoom(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BuildingRoom()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BuildingWing(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BuildingWing()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StreetNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StreetNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Street(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Street()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Neighborhood(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Neighborhood()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_District(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().District()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Town(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Town()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Region(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Region()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RegionCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RegionCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Country(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Country()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CountryCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CountryCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PostCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PostCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Continent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Continent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FormattedAddress(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormattedAddress()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Point(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Point()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Address(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Address()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Locations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Locations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Services::Maps::MapLocationFinderStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindLocationsAtAsync(abi_arg_in queryPoint, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FindLocationsAtAsync(*reinterpret_cast(&queryPoint))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindLocationsAsync(abi_arg_in searchText, abi_arg_in referencePoint, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FindLocationsAsync(*reinterpret_cast(&searchText), *reinterpret_cast(&referencePoint))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindLocationsWithMaxCountAsync(abi_arg_in searchText, abi_arg_in referencePoint, uint32_t maxCount, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FindLocationsAsync(*reinterpret_cast(&searchText), *reinterpret_cast(&referencePoint), maxCount)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindLocationsAtWithAccuracyAsync(abi_arg_in queryPoint, Windows::Services::Maps::MapLocationDesiredAccuracy accuracy, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().FindLocationsAtAsync(*reinterpret_cast(&queryPoint), accuracy)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowDownloadedMapsUI() noexcept override - { - try - { - this->shim().ShowDownloadedMapsUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowMapsUpdateUI() noexcept override - { - try - { - this->shim().ShowMapsUpdateUI(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BoundingBox(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BoundingBox()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LengthInMeters(double * value) noexcept override - { - try - { - *value = detach(this->shim().LengthInMeters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EstimatedDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EstimatedDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Path(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Path()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Legs(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Legs()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTrafficBased(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTrafficBased()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ViolatedRestrictions(Windows::Services::Maps::MapRouteRestrictions * value) noexcept override - { - try - { - *value = detach(this->shim().ViolatedRestrictions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasBlockedRoads(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasBlockedRoads()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxAlternateRouteCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxAlternateRouteCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxAlternateRouteCount(uint32_t value) noexcept override - { - try - { - this->shim().MaxAlternateRouteCount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InitialHeading(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InitialHeading()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InitialHeading(abi_arg_in> value) noexcept override - { - try - { - this->shim().InitialHeading(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RouteOptimization(Windows::Services::Maps::MapRouteOptimization * value) noexcept override - { - try - { - *value = detach(this->shim().RouteOptimization()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RouteOptimization(Windows::Services::Maps::MapRouteOptimization value) noexcept override - { - try - { - this->shim().RouteOptimization(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RouteRestrictions(Windows::Services::Maps::MapRouteRestrictions * value) noexcept override - { - try - { - *value = detach(this->shim().RouteRestrictions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RouteRestrictions(Windows::Services::Maps::MapRouteRestrictions value) noexcept override - { - try - { - this->shim().RouteRestrictions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Route(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Route()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Services::Maps::MapRouteFinderStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlternateRoutes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AlternateRoutes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDrivingRouteAsync(abi_arg_in startPoint, abi_arg_in endPoint, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDrivingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDrivingRouteWithOptimizationAsync(abi_arg_in startPoint, abi_arg_in endPoint, Windows::Services::Maps::MapRouteOptimization optimization, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDrivingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint), optimization)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDrivingRouteWithOptimizationAndRestrictionsAsync(abi_arg_in startPoint, abi_arg_in endPoint, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDrivingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint), optimization, restrictions)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync(abi_arg_in startPoint, abi_arg_in endPoint, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions, double headingInDegrees, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDrivingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint), optimization, restrictions, headingInDegrees)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDrivingRouteFromWaypointsAsync(abi_arg_in> wayPoints, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDrivingRouteFromWaypointsAsync(*reinterpret_cast *>(&wayPoints))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDrivingRouteFromWaypointsAndOptimizationAsync(abi_arg_in> wayPoints, Windows::Services::Maps::MapRouteOptimization optimization, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDrivingRouteFromWaypointsAsync(*reinterpret_cast *>(&wayPoints), optimization)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync(abi_arg_in> wayPoints, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDrivingRouteFromWaypointsAsync(*reinterpret_cast *>(&wayPoints), optimization, restrictions)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync(abi_arg_in> wayPoints, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions, double headingInDegrees, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDrivingRouteFromWaypointsAsync(*reinterpret_cast *>(&wayPoints), optimization, restrictions, headingInDegrees)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetWalkingRouteAsync(abi_arg_in startPoint, abi_arg_in endPoint, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetWalkingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetWalkingRouteFromWaypointsAsync(abi_arg_in> wayPoints, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetWalkingRouteFromWaypointsAsync(*reinterpret_cast *>(&wayPoints))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDrivingRouteWithOptionsAsync(abi_arg_in startPoint, abi_arg_in endPoint, abi_arg_in options, abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetDrivingRouteAsync(*reinterpret_cast(&startPoint), *reinterpret_cast(&endPoint), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BoundingBox(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BoundingBox()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Path(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Path()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LengthInMeters(double * value) noexcept override - { - try - { - *value = detach(this->shim().LengthInMeters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EstimatedDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EstimatedDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Maneuvers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Maneuvers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartingPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartingPoint()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LengthInMeters(double * value) noexcept override - { - try - { - *value = detach(this->shim().LengthInMeters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InstructionText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InstructionText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::Services::Maps::MapRouteManeuverKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExitNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExitNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ManeuverNotices(Windows::Services::Maps::MapManeuverNotices * value) noexcept override - { - try - { - *value = detach(this->shim().ManeuverNotices()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartHeading(double * value) noexcept override - { - try - { - *value = detach(this->shim().StartHeading()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndHeading(double * value) noexcept override - { - try - { - *value = detach(this->shim().EndHeading()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StreetName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StreetName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ServiceToken(abi_arg_in value) noexcept override - { - try - { - this->shim().ServiceToken(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ServiceToken(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ServiceToken()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WorldViewRegionCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WorldViewRegionCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DataAttributions(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataAttributions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Services::Maps { - -template uint32_t impl_IMapRouteDrivingOptions::MaxAlternateRouteCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxAlternateRouteCount(&value)); - return value; -} - -template void impl_IMapRouteDrivingOptions::MaxAlternateRouteCount(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxAlternateRouteCount(value)); -} - -template Windows::Foundation::IReference impl_IMapRouteDrivingOptions::InitialHeading() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InitialHeading(put(value))); - return value; -} - -template void impl_IMapRouteDrivingOptions::InitialHeading(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InitialHeading(get(value))); -} - -template Windows::Services::Maps::MapRouteOptimization impl_IMapRouteDrivingOptions::RouteOptimization() const -{ - Windows::Services::Maps::MapRouteOptimization value {}; - check_hresult(static_cast(static_cast(*this))->get_RouteOptimization(&value)); - return value; -} - -template void impl_IMapRouteDrivingOptions::RouteOptimization(Windows::Services::Maps::MapRouteOptimization value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RouteOptimization(value)); -} - -template Windows::Services::Maps::MapRouteRestrictions impl_IMapRouteDrivingOptions::RouteRestrictions() const -{ - Windows::Services::Maps::MapRouteRestrictions value {}; - check_hresult(static_cast(static_cast(*this))->get_RouteRestrictions(&value)); - return value; -} - -template void impl_IMapRouteDrivingOptions::RouteRestrictions(Windows::Services::Maps::MapRouteRestrictions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RouteRestrictions(value)); -} - -template hstring impl_IMapAddress::BuildingName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BuildingName(put(value))); - return value; -} - -template hstring impl_IMapAddress::BuildingFloor() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BuildingFloor(put(value))); - return value; -} - -template hstring impl_IMapAddress::BuildingRoom() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BuildingRoom(put(value))); - return value; -} - -template hstring impl_IMapAddress::BuildingWing() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BuildingWing(put(value))); - return value; -} - -template hstring impl_IMapAddress::StreetNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StreetNumber(put(value))); - return value; -} - -template hstring impl_IMapAddress::Street() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Street(put(value))); - return value; -} - -template hstring impl_IMapAddress::Neighborhood() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Neighborhood(put(value))); - return value; -} - -template hstring impl_IMapAddress::District() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_District(put(value))); - return value; -} - -template hstring impl_IMapAddress::Town() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Town(put(value))); - return value; -} - -template hstring impl_IMapAddress::Region() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Region(put(value))); - return value; -} - -template hstring impl_IMapAddress::RegionCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RegionCode(put(value))); - return value; -} - -template hstring impl_IMapAddress::Country() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Country(put(value))); - return value; -} - -template hstring impl_IMapAddress::CountryCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CountryCode(put(value))); - return value; -} - -template hstring impl_IMapAddress::PostCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PostCode(put(value))); - return value; -} - -template hstring impl_IMapAddress::Continent() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Continent(put(value))); - return value; -} - -template hstring impl_IMapAddress2::FormattedAddress() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FormattedAddress(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapLocation::Point() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Point(put(value))); - return value; -} - -template hstring impl_IMapLocation::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IMapLocation::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template Windows::Services::Maps::MapAddress impl_IMapLocation::Address() const -{ - Windows::Services::Maps::MapAddress value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Address(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMapLocationFinderResult::Locations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Locations(put(value))); - return value; -} - -template Windows::Services::Maps::MapLocationFinderStatus impl_IMapLocationFinderResult::Status() const -{ - Windows::Services::Maps::MapLocationFinderStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapRouteManeuver::StartingPoint() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StartingPoint(put(value))); - return value; -} - -template double impl_IMapRouteManeuver::LengthInMeters() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_LengthInMeters(&value)); - return value; -} - -template hstring impl_IMapRouteManeuver::InstructionText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InstructionText(put(value))); - return value; -} - -template Windows::Services::Maps::MapRouteManeuverKind impl_IMapRouteManeuver::Kind() const -{ - Windows::Services::Maps::MapRouteManeuverKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template hstring impl_IMapRouteManeuver::ExitNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExitNumber(put(value))); - return value; -} - -template Windows::Services::Maps::MapManeuverNotices impl_IMapRouteManeuver::ManeuverNotices() const -{ - Windows::Services::Maps::MapManeuverNotices value {}; - check_hresult(static_cast(static_cast(*this))->get_ManeuverNotices(&value)); - return value; -} - -template double impl_IMapRouteManeuver2::StartHeading() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_StartHeading(&value)); - return value; -} - -template double impl_IMapRouteManeuver2::EndHeading() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_EndHeading(&value)); - return value; -} - -template hstring impl_IMapRouteManeuver2::StreetName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StreetName(put(value))); - return value; -} - -template Windows::Devices::Geolocation::GeoboundingBox impl_IMapRouteLeg::BoundingBox() const -{ - Windows::Devices::Geolocation::GeoboundingBox value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BoundingBox(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopath impl_IMapRouteLeg::Path() const -{ - Windows::Devices::Geolocation::Geopath value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Path(put(value))); - return value; -} - -template double impl_IMapRouteLeg::LengthInMeters() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_LengthInMeters(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMapRouteLeg::EstimatedDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_EstimatedDuration(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMapRouteLeg::Maneuvers() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Maneuvers(put(value))); - return value; -} - -template Windows::Devices::Geolocation::GeoboundingBox impl_IMapRoute::BoundingBox() const -{ - Windows::Devices::Geolocation::GeoboundingBox value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BoundingBox(put(value))); - return value; -} - -template double impl_IMapRoute::LengthInMeters() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_LengthInMeters(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMapRoute::EstimatedDuration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_EstimatedDuration(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopath impl_IMapRoute::Path() const -{ - Windows::Devices::Geolocation::Geopath value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Path(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMapRoute::Legs() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Legs(put(value))); - return value; -} - -template bool impl_IMapRoute::IsTrafficBased() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTrafficBased(&value)); - return value; -} - -template Windows::Services::Maps::MapRouteRestrictions impl_IMapRoute2::ViolatedRestrictions() const -{ - Windows::Services::Maps::MapRouteRestrictions value {}; - check_hresult(static_cast(static_cast(*this))->get_ViolatedRestrictions(&value)); - return value; -} - -template bool impl_IMapRoute2::HasBlockedRoads() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasBlockedRoads(&value)); - return value; -} - -template Windows::Services::Maps::MapRoute impl_IMapRouteFinderResult::Route() const -{ - Windows::Services::Maps::MapRoute value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Route(put(value))); - return value; -} - -template Windows::Services::Maps::MapRouteFinderStatus impl_IMapRouteFinderResult::Status() const -{ - Windows::Services::Maps::MapRouteFinderStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMapRouteFinderResult2::AlternateRoutes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AlternateRoutes(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IMapLocationFinderStatics::FindLocationsAtAsync(const Windows::Devices::Geolocation::Geopoint & queryPoint) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FindLocationsAtAsync(get(queryPoint), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapLocationFinderStatics::FindLocationsAsync(hstring_ref searchText, const Windows::Devices::Geolocation::Geopoint & referencePoint) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FindLocationsAsync(get(searchText), get(referencePoint), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapLocationFinderStatics::FindLocationsAsync(hstring_ref searchText, const Windows::Devices::Geolocation::Geopoint & referencePoint, uint32_t maxCount) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FindLocationsWithMaxCountAsync(get(searchText), get(referencePoint), maxCount, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapLocationFinderStatics2::FindLocationsAtAsync(const Windows::Devices::Geolocation::Geopoint & queryPoint, Windows::Services::Maps::MapLocationDesiredAccuracy accuracy) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_FindLocationsAtWithAccuracyAsync(get(queryPoint), accuracy, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapRouteFinderStatics::GetDrivingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDrivingRouteAsync(get(startPoint), get(endPoint), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapRouteFinderStatics::GetDrivingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint, Windows::Services::Maps::MapRouteOptimization optimization) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDrivingRouteWithOptimizationAsync(get(startPoint), get(endPoint), optimization, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapRouteFinderStatics::GetDrivingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDrivingRouteWithOptimizationAndRestrictionsAsync(get(startPoint), get(endPoint), optimization, restrictions, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapRouteFinderStatics::GetDrivingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions, double headingInDegrees) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync(get(startPoint), get(endPoint), optimization, restrictions, headingInDegrees, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapRouteFinderStatics::GetDrivingRouteFromWaypointsAsync(const Windows::Foundation::Collections::IIterable & wayPoints) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDrivingRouteFromWaypointsAsync(get(wayPoints), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapRouteFinderStatics::GetDrivingRouteFromWaypointsAsync(const Windows::Foundation::Collections::IIterable & wayPoints, Windows::Services::Maps::MapRouteOptimization optimization) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDrivingRouteFromWaypointsAndOptimizationAsync(get(wayPoints), optimization, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapRouteFinderStatics::GetDrivingRouteFromWaypointsAsync(const Windows::Foundation::Collections::IIterable & wayPoints, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync(get(wayPoints), optimization, restrictions, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapRouteFinderStatics::GetDrivingRouteFromWaypointsAsync(const Windows::Foundation::Collections::IIterable & wayPoints, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions, double headingInDegrees) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync(get(wayPoints), optimization, restrictions, headingInDegrees, put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapRouteFinderStatics::GetWalkingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetWalkingRouteAsync(get(startPoint), get(endPoint), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapRouteFinderStatics::GetWalkingRouteFromWaypointsAsync(const Windows::Foundation::Collections::IIterable & wayPoints) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetWalkingRouteFromWaypointsAsync(get(wayPoints), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IMapRouteFinderStatics2::GetDrivingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint, const Windows::Services::Maps::MapRouteDrivingOptions & options) const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_GetDrivingRouteWithOptionsAsync(get(startPoint), get(endPoint), get(options), put(result))); - return result; -} - -template void impl_IMapServiceStatics::ServiceToken(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ServiceToken(get(value))); -} - -template hstring impl_IMapServiceStatics::ServiceToken() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ServiceToken(put(value))); - return value; -} - -template void impl_IMapManagerStatics::ShowDownloadedMapsUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowDownloadedMapsUI()); -} - -template void impl_IMapManagerStatics::ShowMapsUpdateUI() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowMapsUpdateUI()); -} - -template hstring impl_IMapServiceStatics2::WorldViewRegionCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WorldViewRegionCode(put(value))); - return value; -} - -template hstring impl_IMapServiceStatics3::DataAttributions() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DataAttributions(put(value))); - return value; -} - -inline Windows::Foundation::IAsyncOperation MapLocationFinder::FindLocationsAtAsync(const Windows::Devices::Geolocation::Geopoint & queryPoint) -{ - return get_activation_factory().FindLocationsAtAsync(queryPoint); -} - -inline Windows::Foundation::IAsyncOperation MapLocationFinder::FindLocationsAsync(hstring_ref searchText, const Windows::Devices::Geolocation::Geopoint & referencePoint) -{ - return get_activation_factory().FindLocationsAsync(searchText, referencePoint); -} - -inline Windows::Foundation::IAsyncOperation MapLocationFinder::FindLocationsAsync(hstring_ref searchText, const Windows::Devices::Geolocation::Geopoint & referencePoint, uint32_t maxCount) -{ - return get_activation_factory().FindLocationsAsync(searchText, referencePoint, maxCount); -} - -inline Windows::Foundation::IAsyncOperation MapLocationFinder::FindLocationsAtAsync(const Windows::Devices::Geolocation::Geopoint & queryPoint, Windows::Services::Maps::MapLocationDesiredAccuracy accuracy) -{ - return get_activation_factory().FindLocationsAtAsync(queryPoint, accuracy); -} - -inline void MapManager::ShowDownloadedMapsUI() -{ - get_activation_factory().ShowDownloadedMapsUI(); -} - -inline void MapManager::ShowMapsUpdateUI() -{ - get_activation_factory().ShowMapsUpdateUI(); -} - -inline MapRouteDrivingOptions::MapRouteDrivingOptions() : - MapRouteDrivingOptions(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation MapRouteFinder::GetDrivingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint) -{ - return get_activation_factory().GetDrivingRouteAsync(startPoint, endPoint); -} - -inline Windows::Foundation::IAsyncOperation MapRouteFinder::GetDrivingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint, Windows::Services::Maps::MapRouteOptimization optimization) -{ - return get_activation_factory().GetDrivingRouteAsync(startPoint, endPoint, optimization); -} - -inline Windows::Foundation::IAsyncOperation MapRouteFinder::GetDrivingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions) -{ - return get_activation_factory().GetDrivingRouteAsync(startPoint, endPoint, optimization, restrictions); -} - -inline Windows::Foundation::IAsyncOperation MapRouteFinder::GetDrivingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions, double headingInDegrees) -{ - return get_activation_factory().GetDrivingRouteAsync(startPoint, endPoint, optimization, restrictions, headingInDegrees); -} - -inline Windows::Foundation::IAsyncOperation MapRouteFinder::GetDrivingRouteFromWaypointsAsync(const Windows::Foundation::Collections::IIterable & wayPoints) -{ - return get_activation_factory().GetDrivingRouteFromWaypointsAsync(wayPoints); -} - -inline Windows::Foundation::IAsyncOperation MapRouteFinder::GetDrivingRouteFromWaypointsAsync(const Windows::Foundation::Collections::IIterable & wayPoints, Windows::Services::Maps::MapRouteOptimization optimization) -{ - return get_activation_factory().GetDrivingRouteFromWaypointsAsync(wayPoints, optimization); -} - -inline Windows::Foundation::IAsyncOperation MapRouteFinder::GetDrivingRouteFromWaypointsAsync(const Windows::Foundation::Collections::IIterable & wayPoints, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions) -{ - return get_activation_factory().GetDrivingRouteFromWaypointsAsync(wayPoints, optimization, restrictions); -} - -inline Windows::Foundation::IAsyncOperation MapRouteFinder::GetDrivingRouteFromWaypointsAsync(const Windows::Foundation::Collections::IIterable & wayPoints, Windows::Services::Maps::MapRouteOptimization optimization, Windows::Services::Maps::MapRouteRestrictions restrictions, double headingInDegrees) -{ - return get_activation_factory().GetDrivingRouteFromWaypointsAsync(wayPoints, optimization, restrictions, headingInDegrees); -} - -inline Windows::Foundation::IAsyncOperation MapRouteFinder::GetWalkingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint) -{ - return get_activation_factory().GetWalkingRouteAsync(startPoint, endPoint); -} - -inline Windows::Foundation::IAsyncOperation MapRouteFinder::GetWalkingRouteFromWaypointsAsync(const Windows::Foundation::Collections::IIterable & wayPoints) -{ - return get_activation_factory().GetWalkingRouteFromWaypointsAsync(wayPoints); -} - -inline Windows::Foundation::IAsyncOperation MapRouteFinder::GetDrivingRouteAsync(const Windows::Devices::Geolocation::Geopoint & startPoint, const Windows::Devices::Geolocation::Geopoint & endPoint, const Windows::Services::Maps::MapRouteDrivingOptions & options) -{ - return get_activation_factory().GetDrivingRouteAsync(startPoint, endPoint, options); -} - -inline void MapService::ServiceToken(hstring_ref value) -{ - get_activation_factory().ServiceToken(value); -} - -inline hstring MapService::ServiceToken() -{ - return get_activation_factory().ServiceToken(); -} - -inline hstring MapService::WorldViewRegionCode() -{ - return get_activation_factory().WorldViewRegionCode(); -} - -inline hstring MapService::DataAttributions() -{ - return get_activation_factory().DataAttributions(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Services.Store.h b/10.0.14393.0/winrt/Windows.Services.Store.h deleted file mode 100644 index d2700d394..000000000 --- a/10.0.14393.0/winrt/Windows.Services.Store.h +++ /dev/null @@ -1,3098 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.ApplicationModel.3.h" -#include "internal/Windows.Services.Store.3.h" -#include "Windows.Foundation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StorePackageLicense(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StorePackageLicense()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SkuStoreId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SkuStoreId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTrial(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTrial()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedJsonData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedJsonData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AddOnLicenses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AddOnLicenses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrialTimeRemaining(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrialTimeRemaining()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTrialOwnedByThisUser(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTrialOwnedByThisUser()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrialUniqueId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrialUniqueId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StoreId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StoreId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EndDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Price(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Price()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedJsonData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedJsonData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestPurchaseAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestPurchaseAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestPurchaseWithPurchasePropertiesAsync(abi_arg_in storePurchaseProperties, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestPurchaseAsync(*reinterpret_cast(&storePurchaseProperties))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTrial(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTrial()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CampaignId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CampaignId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeveloperOfferId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeveloperOfferId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AcquiredDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AcquiredDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StartDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EndDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrialTimeRemaining(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrialTimeRemaining()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedJsonData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedJsonData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Services::Store::StoreConsumableStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrackingId(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().TrackingId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BalanceRemaining(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BalanceRemaining()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_OfflineLicensesChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().OfflineLicensesChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_OfflineLicensesChanged(event_token token) noexcept override - { - try - { - this->shim().OfflineLicensesChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCustomerPurchaseIdAsync(abi_arg_in serviceTicket, abi_arg_in publisherUserId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCustomerPurchaseIdAsync(*reinterpret_cast(&serviceTicket), *reinterpret_cast(&publisherUserId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCustomerCollectionsIdAsync(abi_arg_in serviceTicket, abi_arg_in publisherUserId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCustomerCollectionsIdAsync(*reinterpret_cast(&serviceTicket), *reinterpret_cast(&publisherUserId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppLicenseAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAppLicenseAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStoreProductForCurrentAppAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetStoreProductForCurrentAppAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStoreProductsAsync(abi_arg_in> productKinds, abi_arg_in> storeIds, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetStoreProductsAsync(*reinterpret_cast *>(&productKinds), *reinterpret_cast *>(&storeIds))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAssociatedStoreProductsAsync(abi_arg_in> productKinds, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAssociatedStoreProductsAsync(*reinterpret_cast *>(&productKinds))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAssociatedStoreProductsWithPagingAsync(abi_arg_in> productKinds, uint32_t maxItemsToRetrievePerPage, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAssociatedStoreProductsWithPagingAsync(*reinterpret_cast *>(&productKinds), maxItemsToRetrievePerPage)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUserCollectionAsync(abi_arg_in> productKinds, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetUserCollectionAsync(*reinterpret_cast *>(&productKinds))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUserCollectionWithPagingAsync(abi_arg_in> productKinds, uint32_t maxItemsToRetrievePerPage, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetUserCollectionWithPagingAsync(*reinterpret_cast *>(&productKinds), maxItemsToRetrievePerPage)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReportConsumableFulfillmentAsync(abi_arg_in productStoreId, uint32_t quantity, GUID trackingId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ReportConsumableFulfillmentAsync(*reinterpret_cast(&productStoreId), quantity, trackingId)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConsumableBalanceRemainingAsync(abi_arg_in productStoreId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetConsumableBalanceRemainingAsync(*reinterpret_cast(&productStoreId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcquireStoreLicenseForOptionalPackageAsync(abi_arg_in optionalPackage, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().AcquireStoreLicenseForOptionalPackageAsync(*reinterpret_cast(&optionalPackage))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestPurchaseAsync(abi_arg_in storeId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestPurchaseAsync(*reinterpret_cast(&storeId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestPurchaseWithPurchasePropertiesAsync(abi_arg_in storeId, abi_arg_in storePurchaseProperties, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestPurchaseAsync(*reinterpret_cast(&storeId), *reinterpret_cast(&storePurchaseProperties))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAppAndOptionalStorePackageUpdatesAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAppAndOptionalStorePackageUpdatesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestDownloadStorePackageUpdatesAsync(abi_arg_in> storePackageUpdates, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestDownloadStorePackageUpdatesAsync(*reinterpret_cast *>(&storePackageUpdates))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestDownloadAndInstallStorePackageUpdatesAsync(abi_arg_in> storePackageUpdates, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestDownloadAndInstallStorePackageUpdatesAsync(*reinterpret_cast *>(&storePackageUpdates))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestDownloadAndInstallStorePackagesAsync(abi_arg_in> storeIds, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestDownloadAndInstallStorePackagesAsync(*reinterpret_cast *>(&storeIds))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetForUser(abi_arg_in user, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImagePurposeTag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImagePurposeTag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Width(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Caption(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Caption()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SkuStoreId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SkuStoreId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedJsonData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedJsonData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InAppOfferToken(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InAppOfferToken()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_LicenseLost(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LicenseLost(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LicenseLost(event_token token) noexcept override - { - try - { - this->shim().LicenseLost(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsValid(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsValid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReleaseLicense() noexcept override - { - try - { - this->shim().ReleaseLicense(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Package(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Package()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mandatory(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Mandatory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OverallState(Windows::Services::Store::StorePackageUpdateState * value) noexcept override - { - try - { - *value = detach(this->shim().OverallState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StorePackageUpdateStatuses(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().StorePackageUpdateStatuses()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FormattedBasePrice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormattedBasePrice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FormattedPrice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormattedPrice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOnSale(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOnSale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SaleEndDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SaleEndDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrencyCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrencyCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FormattedRecurrencePrice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormattedRecurrencePrice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StoreId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StoreId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProductKind(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProductKind()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasDigitalDownload(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasDigitalDownload()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Keywords(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Keywords()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Images(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Images()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Videos(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Videos()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Skus(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Skus()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInUserCollection(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInUserCollection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Price(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Price()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedJsonData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedJsonData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinkUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LinkUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsAnySkuInstalledAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetIsAnySkuInstalledAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestPurchaseAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestPurchaseAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestPurchaseWithPurchasePropertiesAsync(abi_arg_in storePurchaseProperties, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestPurchaseAsync(*reinterpret_cast(&storePurchaseProperties))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InAppOfferToken(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InAppOfferToken()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Products(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Products()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasMoreResults(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasMoreResults()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNextAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetNextAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Products(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Products()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Product(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Product()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedJsonData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedJsonData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExtendedJsonData(abi_arg_in value) noexcept override - { - try - { - this->shim().ExtendedJsonData(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in name, abi_arg_out storePurchaseProperties) noexcept override - { - try - { - *storePurchaseProperties = detach(this->shim().Create(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *storePurchaseProperties = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::Services::Store::StorePurchaseStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SendRequestAsync(abi_arg_in context, uint32_t requestKind, abi_arg_in parametersAsJson, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SendRequestAsync(*reinterpret_cast(&context), requestKind, *reinterpret_cast(¶metersAsJson))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Response(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Response()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StoreId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StoreId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTrial(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTrial()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomDeveloperData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomDeveloperData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Images(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Images()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Videos(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Videos()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Availabilities(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Availabilities()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Price(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Price()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedJsonData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedJsonData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInUserCollection(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInUserCollection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BundledSkus(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BundledSkus()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CollectionData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CollectionData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsInstalledAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetIsInstalledAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestPurchaseAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestPurchaseAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestPurchaseWithPurchasePropertiesAsync(abi_arg_in storePurchaseProperties, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestPurchaseAsync(*reinterpret_cast(&storePurchaseProperties))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSubscription(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSubscription()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubscriptionInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SubscriptionInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BillingPeriod(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BillingPeriod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BillingPeriodUnit(Windows::Services::Store::StoreDurationUnit * value) noexcept override - { - try - { - *value = detach(this->shim().BillingPeriodUnit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasTrialPeriod(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasTrialPeriod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrialPeriod(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TrialPeriod()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrialPeriodUnit(Windows::Services::Store::StoreDurationUnit * value) noexcept override - { - try - { - *value = detach(this->shim().TrialPeriodUnit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoPurposeTag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoPurposeTag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Width(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Caption(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Caption()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreviewImage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreviewImage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Services::Store { - -template Windows::Foundation::Collections::IMapView impl_IStoreProductPagedQueryResult::Products() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Products(put(value))); - return value; -} - -template bool impl_IStoreProductPagedQueryResult::HasMoreResults() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasMoreResults(&value)); - return value; -} - -template HRESULT impl_IStoreProductPagedQueryResult::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreProductPagedQueryResult::GetNextAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetNextAsync(put(operation))); - return operation; -} - -template Windows::Foundation::Collections::IMapView impl_IStoreProductQueryResult::Products() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Products(put(value))); - return value; -} - -template HRESULT impl_IStoreProductQueryResult::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template Windows::Services::Store::StoreProduct impl_IStoreProductResult::Product() const -{ - Windows::Services::Store::StoreProduct value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Product(put(value))); - return value; -} - -template HRESULT impl_IStoreProductResult::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template hstring impl_IStorePurchaseProperties::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IStorePurchaseProperties::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template hstring impl_IStorePurchaseProperties::ExtendedJsonData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedJsonData(put(value))); - return value; -} - -template void impl_IStorePurchaseProperties::ExtendedJsonData(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExtendedJsonData(get(value))); -} - -template Windows::Services::Store::StorePurchaseProperties impl_IStorePurchasePropertiesFactory::Create(hstring_ref name) const -{ - Windows::Services::Store::StorePurchaseProperties storePurchaseProperties { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(name), put(storePurchaseProperties))); - return storePurchaseProperties; -} - -template bool impl_IStoreCollectionData::IsTrial() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTrial(&value)); - return value; -} - -template hstring impl_IStoreCollectionData::CampaignId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CampaignId(put(value))); - return value; -} - -template hstring impl_IStoreCollectionData::DeveloperOfferId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeveloperOfferId(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IStoreCollectionData::AcquiredDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_AcquiredDate(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IStoreCollectionData::StartDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_StartDate(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IStoreCollectionData::EndDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_EndDate(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IStoreCollectionData::TrialTimeRemaining() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TrialTimeRemaining(put(value))); - return value; -} - -template hstring impl_IStoreCollectionData::ExtendedJsonData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedJsonData(put(value))); - return value; -} - -template hstring impl_IStoreLicense::SkuStoreId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SkuStoreId(put(value))); - return value; -} - -template bool impl_IStoreLicense::IsActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActive(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IStoreLicense::ExpirationDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ExpirationDate(put(value))); - return value; -} - -template hstring impl_IStoreLicense::ExtendedJsonData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedJsonData(put(value))); - return value; -} - -template hstring impl_IStoreLicense::InAppOfferToken() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InAppOfferToken(put(value))); - return value; -} - -template hstring impl_IStoreAppLicense::SkuStoreId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SkuStoreId(put(value))); - return value; -} - -template bool impl_IStoreAppLicense::IsActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActive(&value)); - return value; -} - -template bool impl_IStoreAppLicense::IsTrial() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTrial(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IStoreAppLicense::ExpirationDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ExpirationDate(put(value))); - return value; -} - -template hstring impl_IStoreAppLicense::ExtendedJsonData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedJsonData(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IStoreAppLicense::AddOnLicenses() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_AddOnLicenses(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IStoreAppLicense::TrialTimeRemaining() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_TrialTimeRemaining(put(value))); - return value; -} - -template bool impl_IStoreAppLicense::IsTrialOwnedByThisUser() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTrialOwnedByThisUser(&value)); - return value; -} - -template hstring impl_IStoreAppLicense::TrialUniqueId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TrialUniqueId(put(value))); - return value; -} - -template hstring impl_IStoreSendRequestResult::Response() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Response(put(value))); - return value; -} - -template HRESULT impl_IStoreSendRequestResult::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template hstring impl_IStoreProduct::StoreId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StoreId(put(value))); - return value; -} - -template hstring impl_IStoreProduct::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template hstring impl_IStoreProduct::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template hstring impl_IStoreProduct::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template hstring impl_IStoreProduct::ProductKind() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProductKind(put(value))); - return value; -} - -template bool impl_IStoreProduct::HasDigitalDownload() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasDigitalDownload(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStoreProduct::Keywords() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Keywords(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStoreProduct::Images() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Images(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStoreProduct::Videos() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Videos(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStoreProduct::Skus() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Skus(put(value))); - return value; -} - -template bool impl_IStoreProduct::IsInUserCollection() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInUserCollection(&value)); - return value; -} - -template Windows::Services::Store::StorePrice impl_IStoreProduct::Price() const -{ - Windows::Services::Store::StorePrice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Price(put(value))); - return value; -} - -template hstring impl_IStoreProduct::ExtendedJsonData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedJsonData(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IStoreProduct::LinkUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LinkUri(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreProduct::GetIsAnySkuInstalledAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetIsAnySkuInstalledAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreProduct::RequestPurchaseAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestPurchaseAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreProduct::RequestPurchaseAsync(const Windows::Services::Store::StorePurchaseProperties & storePurchaseProperties) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestPurchaseWithPurchasePropertiesAsync(get(storePurchaseProperties), put(operation))); - return operation; -} - -template hstring impl_IStoreProduct::InAppOfferToken() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_InAppOfferToken(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IStoreImage::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template hstring impl_IStoreImage::ImagePurposeTag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ImagePurposeTag(put(value))); - return value; -} - -template uint32_t impl_IStoreImage::Width() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(&value)); - return value; -} - -template uint32_t impl_IStoreImage::Height() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(&value)); - return value; -} - -template hstring impl_IStoreImage::Caption() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Caption(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IStoreVideo::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template hstring impl_IStoreVideo::VideoPurposeTag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VideoPurposeTag(put(value))); - return value; -} - -template uint32_t impl_IStoreVideo::Width() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(&value)); - return value; -} - -template uint32_t impl_IStoreVideo::Height() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(&value)); - return value; -} - -template hstring impl_IStoreVideo::Caption() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Caption(put(value))); - return value; -} - -template Windows::Services::Store::StoreImage impl_IStoreVideo::PreviewImage() const -{ - Windows::Services::Store::StoreImage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PreviewImage(put(value))); - return value; -} - -template hstring impl_IStoreSku::StoreId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StoreId(put(value))); - return value; -} - -template hstring impl_IStoreSku::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template hstring impl_IStoreSku::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template hstring impl_IStoreSku::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template bool impl_IStoreSku::IsTrial() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTrial(&value)); - return value; -} - -template hstring impl_IStoreSku::CustomDeveloperData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CustomDeveloperData(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStoreSku::Images() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Images(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStoreSku::Videos() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Videos(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStoreSku::Availabilities() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Availabilities(put(value))); - return value; -} - -template Windows::Services::Store::StorePrice impl_IStoreSku::Price() const -{ - Windows::Services::Store::StorePrice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Price(put(value))); - return value; -} - -template hstring impl_IStoreSku::ExtendedJsonData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedJsonData(put(value))); - return value; -} - -template bool impl_IStoreSku::IsInUserCollection() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInUserCollection(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStoreSku::BundledSkus() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_BundledSkus(put(value))); - return value; -} - -template Windows::Services::Store::StoreCollectionData impl_IStoreSku::CollectionData() const -{ - Windows::Services::Store::StoreCollectionData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CollectionData(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreSku::GetIsInstalledAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetIsInstalledAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreSku::RequestPurchaseAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestPurchaseAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreSku::RequestPurchaseAsync(const Windows::Services::Store::StorePurchaseProperties & storePurchaseProperties) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestPurchaseWithPurchasePropertiesAsync(get(storePurchaseProperties), put(operation))); - return operation; -} - -template bool impl_IStoreSku::IsSubscription() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSubscription(&value)); - return value; -} - -template Windows::Services::Store::StoreSubscriptionInfo impl_IStoreSku::SubscriptionInfo() const -{ - Windows::Services::Store::StoreSubscriptionInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SubscriptionInfo(put(value))); - return value; -} - -template hstring impl_IStoreAvailability::StoreId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StoreId(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IStoreAvailability::EndDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_EndDate(put(value))); - return value; -} - -template Windows::Services::Store::StorePrice impl_IStoreAvailability::Price() const -{ - Windows::Services::Store::StorePrice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Price(put(value))); - return value; -} - -template hstring impl_IStoreAvailability::ExtendedJsonData() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedJsonData(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreAvailability::RequestPurchaseAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestPurchaseAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreAvailability::RequestPurchaseAsync(const Windows::Services::Store::StorePurchaseProperties & storePurchaseProperties) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestPurchaseWithPurchasePropertiesAsync(get(storePurchaseProperties), put(operation))); - return operation; -} - -template hstring impl_IStorePrice::FormattedBasePrice() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FormattedBasePrice(put(value))); - return value; -} - -template hstring impl_IStorePrice::FormattedPrice() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FormattedPrice(put(value))); - return value; -} - -template bool impl_IStorePrice::IsOnSale() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOnSale(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IStorePrice::SaleEndDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_SaleEndDate(put(value))); - return value; -} - -template hstring impl_IStorePrice::CurrencyCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CurrencyCode(put(value))); - return value; -} - -template hstring impl_IStorePrice::FormattedRecurrencePrice() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FormattedRecurrencePrice(put(value))); - return value; -} - -template uint32_t impl_IStoreSubscriptionInfo::BillingPeriod() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BillingPeriod(&value)); - return value; -} - -template Windows::Services::Store::StoreDurationUnit impl_IStoreSubscriptionInfo::BillingPeriodUnit() const -{ - Windows::Services::Store::StoreDurationUnit value {}; - check_hresult(static_cast(static_cast(*this))->get_BillingPeriodUnit(&value)); - return value; -} - -template bool impl_IStoreSubscriptionInfo::HasTrialPeriod() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasTrialPeriod(&value)); - return value; -} - -template uint32_t impl_IStoreSubscriptionInfo::TrialPeriod() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TrialPeriod(&value)); - return value; -} - -template Windows::Services::Store::StoreDurationUnit impl_IStoreSubscriptionInfo::TrialPeriodUnit() const -{ - Windows::Services::Store::StoreDurationUnit value {}; - check_hresult(static_cast(static_cast(*this))->get_TrialPeriodUnit(&value)); - return value; -} - -template Windows::Services::Store::StoreConsumableStatus impl_IStoreConsumableResult::Status() const -{ - Windows::Services::Store::StoreConsumableStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template GUID impl_IStoreConsumableResult::TrackingId() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->get_TrackingId(&value)); - return value; -} - -template uint32_t impl_IStoreConsumableResult::BalanceRemaining() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BalanceRemaining(&value)); - return value; -} - -template HRESULT impl_IStoreConsumableResult::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template Windows::Services::Store::StorePurchaseStatus impl_IStorePurchaseResult::Status() const -{ - Windows::Services::Store::StorePurchaseStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template HRESULT impl_IStorePurchaseResult::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template Windows::Services::Store::StoreContext impl_IStoreContextStatics::GetDefault() const -{ - Windows::Services::Store::StoreContext value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(value))); - return value; -} - -template Windows::Services::Store::StoreContext impl_IStoreContextStatics::GetForUser(const Windows::System::User & user) const -{ - Windows::Services::Store::StoreContext value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForUser(get(user), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreRequestHelperStatics::SendRequestAsync(const Windows::Services::Store::StoreContext & context, uint32_t requestKind, hstring_ref parametersAsJson) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SendRequestAsync(get(context), requestKind, get(parametersAsJson), put(operation))); - return operation; -} - -template Windows::System::User impl_IStoreContext::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template event_token impl_IStoreContext::OfflineLicensesChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_OfflineLicensesChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IStoreContext::OfflineLicensesChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Services::Store::IStoreContext::remove_OfflineLicensesChanged, OfflineLicensesChanged(handler)); -} - -template void impl_IStoreContext::OfflineLicensesChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_OfflineLicensesChanged(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::GetCustomerPurchaseIdAsync(hstring_ref serviceTicket, hstring_ref publisherUserId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCustomerPurchaseIdAsync(get(serviceTicket), get(publisherUserId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::GetCustomerCollectionsIdAsync(hstring_ref serviceTicket, hstring_ref publisherUserId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCustomerCollectionsIdAsync(get(serviceTicket), get(publisherUserId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::GetAppLicenseAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAppLicenseAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::GetStoreProductForCurrentAppAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetStoreProductForCurrentAppAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::GetStoreProductsAsync(const Windows::Foundation::Collections::IIterable & productKinds, const Windows::Foundation::Collections::IIterable & storeIds) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetStoreProductsAsync(get(productKinds), get(storeIds), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::GetAssociatedStoreProductsAsync(const Windows::Foundation::Collections::IIterable & productKinds) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAssociatedStoreProductsAsync(get(productKinds), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::GetAssociatedStoreProductsWithPagingAsync(const Windows::Foundation::Collections::IIterable & productKinds, uint32_t maxItemsToRetrievePerPage) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAssociatedStoreProductsWithPagingAsync(get(productKinds), maxItemsToRetrievePerPage, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::GetUserCollectionAsync(const Windows::Foundation::Collections::IIterable & productKinds) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetUserCollectionAsync(get(productKinds), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::GetUserCollectionWithPagingAsync(const Windows::Foundation::Collections::IIterable & productKinds, uint32_t maxItemsToRetrievePerPage) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetUserCollectionWithPagingAsync(get(productKinds), maxItemsToRetrievePerPage, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::ReportConsumableFulfillmentAsync(hstring_ref productStoreId, uint32_t quantity, GUID trackingId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ReportConsumableFulfillmentAsync(get(productStoreId), quantity, trackingId, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::GetConsumableBalanceRemainingAsync(hstring_ref productStoreId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetConsumableBalanceRemainingAsync(get(productStoreId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::AcquireStoreLicenseForOptionalPackageAsync(const Windows::ApplicationModel::Package & optionalPackage) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_AcquireStoreLicenseForOptionalPackageAsync(get(optionalPackage), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::RequestPurchaseAsync(hstring_ref storeId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestPurchaseAsync(get(storeId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStoreContext::RequestPurchaseAsync(hstring_ref storeId, const Windows::Services::Store::StorePurchaseProperties & storePurchaseProperties) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestPurchaseWithPurchasePropertiesAsync(get(storeId), get(storePurchaseProperties), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStoreContext::GetAppAndOptionalStorePackageUpdatesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAppAndOptionalStorePackageUpdatesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IStoreContext::RequestDownloadStorePackageUpdatesAsync(const Windows::Foundation::Collections::IIterable & storePackageUpdates) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestDownloadStorePackageUpdatesAsync(get(storePackageUpdates), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IStoreContext::RequestDownloadAndInstallStorePackageUpdatesAsync(const Windows::Foundation::Collections::IIterable & storePackageUpdates) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestDownloadAndInstallStorePackageUpdatesAsync(get(storePackageUpdates), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IStoreContext::RequestDownloadAndInstallStorePackagesAsync(const Windows::Foundation::Collections::IIterable & storeIds) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestDownloadAndInstallStorePackagesAsync(get(storeIds), put(operation))); - return operation; -} - -template Windows::ApplicationModel::Package impl_IStorePackageUpdate::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -template bool impl_IStorePackageUpdate::Mandatory() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Mandatory(&value)); - return value; -} - -template Windows::Services::Store::StorePackageUpdateState impl_IStorePackageUpdateResult::OverallState() const -{ - Windows::Services::Store::StorePackageUpdateState value {}; - check_hresult(static_cast(static_cast(*this))->get_OverallState(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IStorePackageUpdateResult::StorePackageUpdateStatuses() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_StorePackageUpdateStatuses(put(value))); - return value; -} - -template Windows::Services::Store::StorePackageLicense impl_IStoreAcquireLicenseResult::StorePackageLicense() const -{ - Windows::Services::Store::StorePackageLicense value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StorePackageLicense(put(value))); - return value; -} - -template HRESULT impl_IStoreAcquireLicenseResult::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template event_token impl_IStorePackageLicense::LicenseLost(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LicenseLost(get(handler), &token)); - return token; -} - -template event_revoker impl_IStorePackageLicense::LicenseLost(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Services::Store::IStorePackageLicense::remove_LicenseLost, LicenseLost(handler)); -} - -template void impl_IStorePackageLicense::LicenseLost(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LicenseLost(token)); -} - -template Windows::ApplicationModel::Package impl_IStorePackageLicense::Package() const -{ - Windows::ApplicationModel::Package value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Package(put(value))); - return value; -} - -template bool impl_IStorePackageLicense::IsValid() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsValid(&value)); - return value; -} - -template void impl_IStorePackageLicense::ReleaseLicense() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReleaseLicense()); -} - -inline Windows::Services::Store::StoreContext StoreContext::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Services::Store::StoreContext StoreContext::GetForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetForUser(user); -} - -inline StorePurchaseProperties::StorePurchaseProperties() : - StorePurchaseProperties(activate_instance()) -{} - -inline StorePurchaseProperties::StorePurchaseProperties(hstring_ref name) : - StorePurchaseProperties(get_activation_factory().Create(name)) -{} - -inline Windows::Foundation::IAsyncOperation StoreRequestHelper::SendRequestAsync(const Windows::Services::Store::StoreContext & context, uint32_t requestKind, hstring_ref parametersAsJson) -{ - return get_activation_factory().SendRequestAsync(context, requestKind, parametersAsJson); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Storage.AccessCache.h b/10.0.14393.0/winrt/Windows.Storage.AccessCache.h deleted file mode 100644 index 29e0c8276..000000000 --- a/10.0.14393.0/winrt/Windows.Storage.AccessCache.h +++ /dev/null @@ -1,518 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.AccessCache.3.h" -#include "Windows.Storage.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemovedEntry(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemovedEntry()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FutureAccessList(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FutureAccessList()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MostRecentlyUsedList(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MostRecentlyUsedList()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddOverloadDefaultMetadata(abi_arg_in file, abi_arg_out token) noexcept override - { - try - { - *token = detach(this->shim().Add(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *token = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Add(abi_arg_in file, abi_arg_in metadata, abi_arg_out token) noexcept override - { - try - { - *token = detach(this->shim().Add(*reinterpret_cast(&file), *reinterpret_cast(&metadata))); - return S_OK; - } - catch (...) - { - *token = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddOrReplaceOverloadDefaultMetadata(abi_arg_in token, abi_arg_in file) noexcept override - { - try - { - this->shim().AddOrReplace(*reinterpret_cast(&token), *reinterpret_cast(&file)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddOrReplace(abi_arg_in token, abi_arg_in file, abi_arg_in metadata) noexcept override - { - try - { - this->shim().AddOrReplace(*reinterpret_cast(&token), *reinterpret_cast(&file), *reinterpret_cast(&metadata)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemAsync(abi_arg_in token, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemAsync(*reinterpret_cast(&token))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFileAsync(abi_arg_in token, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFileAsync(*reinterpret_cast(&token))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFolderAsync(abi_arg_in token, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFolderAsync(*reinterpret_cast(&token))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemWithOptionsAsync(abi_arg_in token, Windows::Storage::AccessCache::AccessCacheOptions options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemAsync(*reinterpret_cast(&token), options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFileWithOptionsAsync(abi_arg_in token, Windows::Storage::AccessCache::AccessCacheOptions options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFileAsync(*reinterpret_cast(&token), options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFolderWithOptionsAsync(abi_arg_in token, Windows::Storage::AccessCache::AccessCacheOptions options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFolderAsync(*reinterpret_cast(&token), options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Remove(abi_arg_in token) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&token)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ContainsItem(abi_arg_in token, bool * value) noexcept override - { - try - { - *value = detach(this->shim().ContainsItem(*reinterpret_cast(&token))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckAccess(abi_arg_in file, bool * value) noexcept override - { - try - { - *value = detach(this->shim().CheckAccess(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Entries(abi_arg_out> entries) noexcept override - { - try - { - *entries = detach(this->shim().Entries()); - return S_OK; - } - catch (...) - { - *entries = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaximumItemsAllowed(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaximumItemsAllowed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ItemRemoved(abi_arg_in> handler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().ItemRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemRemoved(event_token eventCookie) noexcept override - { - try - { - this->shim().ItemRemoved(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddWithMetadataAndVisibility(abi_arg_in file, abi_arg_in metadata, Windows::Storage::AccessCache::RecentStorageItemVisibility visibility, abi_arg_out token) noexcept override - { - try - { - *token = detach(this->shim().Add(*reinterpret_cast(&file), *reinterpret_cast(&metadata), visibility)); - return S_OK; - } - catch (...) - { - *token = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddOrReplaceWithMetadataAndVisibility(abi_arg_in token, abi_arg_in file, abi_arg_in metadata, Windows::Storage::AccessCache::RecentStorageItemVisibility visibility) noexcept override - { - try - { - this->shim().AddOrReplace(*reinterpret_cast(&token), *reinterpret_cast(&file), *reinterpret_cast(&metadata), visibility); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Storage::AccessCache { - -template Windows::Storage::AccessCache::AccessListEntry impl_IItemRemovedEventArgs::RemovedEntry() const -{ - Windows::Storage::AccessCache::AccessListEntry value {}; - check_hresult(static_cast(static_cast(*this))->get_RemovedEntry(put(value))); - return value; -} - -template hstring impl_IStorageItemAccessList::Add(const Windows::Storage::IStorageItem & file) const -{ - hstring token; - check_hresult(static_cast(static_cast(*this))->abi_AddOverloadDefaultMetadata(get(file), put(token))); - return token; -} - -template hstring impl_IStorageItemAccessList::Add(const Windows::Storage::IStorageItem & file, hstring_ref metadata) const -{ - hstring token; - check_hresult(static_cast(static_cast(*this))->abi_Add(get(file), get(metadata), put(token))); - return token; -} - -template void impl_IStorageItemAccessList::AddOrReplace(hstring_ref token, const Windows::Storage::IStorageItem & file) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddOrReplaceOverloadDefaultMetadata(get(token), get(file))); -} - -template void impl_IStorageItemAccessList::AddOrReplace(hstring_ref token, const Windows::Storage::IStorageItem & file, hstring_ref metadata) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddOrReplace(get(token), get(file), get(metadata))); -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemAccessList::GetItemAsync(hstring_ref token) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemAsync(get(token), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemAccessList::GetFileAsync(hstring_ref token) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFileAsync(get(token), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemAccessList::GetFolderAsync(hstring_ref token) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFolderAsync(get(token), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemAccessList::GetItemAsync(hstring_ref token, Windows::Storage::AccessCache::AccessCacheOptions options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemWithOptionsAsync(get(token), options, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemAccessList::GetFileAsync(hstring_ref token, Windows::Storage::AccessCache::AccessCacheOptions options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFileWithOptionsAsync(get(token), options, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemAccessList::GetFolderAsync(hstring_ref token, Windows::Storage::AccessCache::AccessCacheOptions options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFolderWithOptionsAsync(get(token), options, put(operation))); - return operation; -} - -template void impl_IStorageItemAccessList::Remove(hstring_ref token) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Remove(get(token))); -} - -template bool impl_IStorageItemAccessList::ContainsItem(hstring_ref token) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_ContainsItem(get(token), &value)); - return value; -} - -template void impl_IStorageItemAccessList::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template bool impl_IStorageItemAccessList::CheckAccess(const Windows::Storage::IStorageItem & file) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_CheckAccess(get(file), &value)); - return value; -} - -template Windows::Storage::AccessCache::AccessListEntryView impl_IStorageItemAccessList::Entries() const -{ - Windows::Storage::AccessCache::AccessListEntryView entries { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Entries(put(entries))); - return entries; -} - -template uint32_t impl_IStorageItemAccessList::MaximumItemsAllowed() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaximumItemsAllowed(&value)); - return value; -} - -template event_token impl_IStorageItemMostRecentlyUsedList::ItemRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ItemRemoved(get(handler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IStorageItemMostRecentlyUsedList::ItemRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::AccessCache::IStorageItemMostRecentlyUsedList::remove_ItemRemoved, ItemRemoved(handler)); -} - -template void impl_IStorageItemMostRecentlyUsedList::ItemRemoved(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemRemoved(eventCookie)); -} - -template hstring impl_IStorageItemMostRecentlyUsedList2::Add(const Windows::Storage::IStorageItem & file, hstring_ref metadata, Windows::Storage::AccessCache::RecentStorageItemVisibility visibility) const -{ - hstring token; - check_hresult(static_cast(static_cast(*this))->abi_AddWithMetadataAndVisibility(get(file), get(metadata), visibility, put(token))); - return token; -} - -template void impl_IStorageItemMostRecentlyUsedList2::AddOrReplace(hstring_ref token, const Windows::Storage::IStorageItem & file, hstring_ref metadata, Windows::Storage::AccessCache::RecentStorageItemVisibility visibility) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddOrReplaceWithMetadataAndVisibility(get(token), get(file), get(metadata), visibility)); -} - -template Windows::Storage::AccessCache::StorageItemAccessList impl_IStorageApplicationPermissionsStatics::FutureAccessList() const -{ - Windows::Storage::AccessCache::StorageItemAccessList value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FutureAccessList(put(value))); - return value; -} - -template Windows::Storage::AccessCache::StorageItemMostRecentlyUsedList impl_IStorageApplicationPermissionsStatics::MostRecentlyUsedList() const -{ - Windows::Storage::AccessCache::StorageItemMostRecentlyUsedList value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MostRecentlyUsedList(put(value))); - return value; -} - -inline Windows::Storage::AccessCache::StorageItemAccessList StorageApplicationPermissions::FutureAccessList() -{ - return get_activation_factory().FutureAccessList(); -} - -inline Windows::Storage::AccessCache::StorageItemMostRecentlyUsedList StorageApplicationPermissions::MostRecentlyUsedList() -{ - return get_activation_factory().MostRecentlyUsedList(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Storage.BulkAccess.h b/10.0.14393.0/winrt/Windows.Storage.BulkAccess.h deleted file mode 100644 index 617da64ac..000000000 --- a/10.0.14393.0/winrt/Windows.Storage.BulkAccess.h +++ /dev/null @@ -1,538 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.FileProperties.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Search.3.h" -#include "internal/Windows.Storage.BulkAccess.3.h" -#include "Windows.Storage.h" -#include "Windows.Storage.Search.h" -#include "Windows.Storage.Streams.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetItemsAsync(uint32_t startIndex, uint32_t maxItemsToRetrieve, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemsAsync(startIndex, maxItemsToRetrieve)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemsAsyncDefaultStartAndCount(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFilesAsync(uint32_t startIndex, uint32_t maxItemsToRetrieve, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFilesAsync(startIndex, maxItemsToRetrieve)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFilesAsyncDefaultStartAndCount(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFilesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFoldersAsync(uint32_t startIndex, uint32_t maxItemsToRetrieve, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFoldersAsync(startIndex, maxItemsToRetrieve)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFoldersAsyncDefaultStartAndCount(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFoldersAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVirtualizedItemsVector(abi_arg_out vector) noexcept override - { - try - { - *vector = detach(this->shim().GetVirtualizedItemsVector()); - return S_OK; - } - catch (...) - { - *vector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVirtualizedFilesVector(abi_arg_out vector) noexcept override - { - try - { - *vector = detach(this->shim().GetVirtualizedFilesVector()); - return S_OK; - } - catch (...) - { - *vector = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVirtualizedFoldersVector(abi_arg_out vector) noexcept override - { - try - { - *vector = detach(this->shim().GetVirtualizedFoldersVector()); - return S_OK; - } - catch (...) - { - *vector = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithMode(abi_arg_in queryResult, Windows::Storage::FileProperties::ThumbnailMode mode, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithMode(*reinterpret_cast(&queryResult), mode)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithModeAndSize(abi_arg_in queryResult, Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedThumbnailSize, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithModeAndSize(*reinterpret_cast(&queryResult), mode, requestedThumbnailSize)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithModeAndSizeAndOptions(abi_arg_in queryResult, Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedThumbnailSize, Windows::Storage::FileProperties::ThumbnailOptions thumbnailOptions, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithModeAndSizeAndOptions(*reinterpret_cast(&queryResult), mode, requestedThumbnailSize, thumbnailOptions)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithModeAndSizeAndOptionsAndFlags(abi_arg_in queryResult, Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedThumbnailSize, Windows::Storage::FileProperties::ThumbnailOptions thumbnailOptions, bool delayLoad, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithModeAndSizeAndOptionsAndFlags(*reinterpret_cast(&queryResult), mode, requestedThumbnailSize, thumbnailOptions, delayLoad)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MusicProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MusicProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideoProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideoProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImageProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImageProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DocumentProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DocumentProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BasicProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BasicProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thumbnail(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thumbnail()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ThumbnailUpdated(abi_arg_in> changedHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().ThumbnailUpdated(*reinterpret_cast *>(&changedHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ThumbnailUpdated(event_token eventCookie) noexcept override - { - try - { - this->shim().ThumbnailUpdated(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PropertiesUpdated(abi_arg_in> changedHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().PropertiesUpdated(*reinterpret_cast *>(&changedHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PropertiesUpdated(event_token eventCookie) noexcept override - { - try - { - this->shim().PropertiesUpdated(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Storage::BulkAccess { - -template Windows::Storage::FileProperties::MusicProperties impl_IStorageItemInformation::MusicProperties() const -{ - Windows::Storage::FileProperties::MusicProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MusicProperties(put(value))); - return value; -} - -template Windows::Storage::FileProperties::VideoProperties impl_IStorageItemInformation::VideoProperties() const -{ - Windows::Storage::FileProperties::VideoProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideoProperties(put(value))); - return value; -} - -template Windows::Storage::FileProperties::ImageProperties impl_IStorageItemInformation::ImageProperties() const -{ - Windows::Storage::FileProperties::ImageProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ImageProperties(put(value))); - return value; -} - -template Windows::Storage::FileProperties::DocumentProperties impl_IStorageItemInformation::DocumentProperties() const -{ - Windows::Storage::FileProperties::DocumentProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DocumentProperties(put(value))); - return value; -} - -template Windows::Storage::FileProperties::BasicProperties impl_IStorageItemInformation::BasicProperties() const -{ - Windows::Storage::FileProperties::BasicProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BasicProperties(put(value))); - return value; -} - -template Windows::Storage::FileProperties::StorageItemThumbnail impl_IStorageItemInformation::Thumbnail() const -{ - Windows::Storage::FileProperties::StorageItemThumbnail value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Thumbnail(put(value))); - return value; -} - -template event_token impl_IStorageItemInformation::ThumbnailUpdated(const Windows::Foundation::TypedEventHandler & changedHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ThumbnailUpdated(get(changedHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IStorageItemInformation::ThumbnailUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & changedHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::BulkAccess::IStorageItemInformation::remove_ThumbnailUpdated, ThumbnailUpdated(changedHandler)); -} - -template void impl_IStorageItemInformation::ThumbnailUpdated(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ThumbnailUpdated(eventCookie)); -} - -template event_token impl_IStorageItemInformation::PropertiesUpdated(const Windows::Foundation::TypedEventHandler & changedHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_PropertiesUpdated(get(changedHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IStorageItemInformation::PropertiesUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & changedHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::BulkAccess::IStorageItemInformation::remove_PropertiesUpdated, PropertiesUpdated(changedHandler)); -} - -template void impl_IStorageItemInformation::PropertiesUpdated(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PropertiesUpdated(eventCookie)); -} - -template Windows::Storage::BulkAccess::FileInformationFactory impl_IFileInformationFactoryFactory::CreateWithMode(const Windows::Storage::Search::IStorageQueryResultBase & queryResult, Windows::Storage::FileProperties::ThumbnailMode mode) const -{ - Windows::Storage::BulkAccess::FileInformationFactory value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithMode(get(queryResult), mode, put(value))); - return value; -} - -template Windows::Storage::BulkAccess::FileInformationFactory impl_IFileInformationFactoryFactory::CreateWithModeAndSize(const Windows::Storage::Search::IStorageQueryResultBase & queryResult, Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedThumbnailSize) const -{ - Windows::Storage::BulkAccess::FileInformationFactory value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithModeAndSize(get(queryResult), mode, requestedThumbnailSize, put(value))); - return value; -} - -template Windows::Storage::BulkAccess::FileInformationFactory impl_IFileInformationFactoryFactory::CreateWithModeAndSizeAndOptions(const Windows::Storage::Search::IStorageQueryResultBase & queryResult, Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedThumbnailSize, Windows::Storage::FileProperties::ThumbnailOptions thumbnailOptions) const -{ - Windows::Storage::BulkAccess::FileInformationFactory value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithModeAndSizeAndOptions(get(queryResult), mode, requestedThumbnailSize, thumbnailOptions, put(value))); - return value; -} - -template Windows::Storage::BulkAccess::FileInformationFactory impl_IFileInformationFactoryFactory::CreateWithModeAndSizeAndOptionsAndFlags(const Windows::Storage::Search::IStorageQueryResultBase & queryResult, Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedThumbnailSize, Windows::Storage::FileProperties::ThumbnailOptions thumbnailOptions, bool delayLoad) const -{ - Windows::Storage::BulkAccess::FileInformationFactory value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithModeAndSizeAndOptionsAndFlags(get(queryResult), mode, requestedThumbnailSize, thumbnailOptions, delayLoad, put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IFileInformationFactory::GetItemsAsync(uint32_t startIndex, uint32_t maxItemsToRetrieve) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemsAsync(startIndex, maxItemsToRetrieve, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IFileInformationFactory::GetItemsAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemsAsyncDefaultStartAndCount(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IFileInformationFactory::GetFilesAsync(uint32_t startIndex, uint32_t maxItemsToRetrieve) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFilesAsync(startIndex, maxItemsToRetrieve, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IFileInformationFactory::GetFilesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFilesAsyncDefaultStartAndCount(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IFileInformationFactory::GetFoldersAsync(uint32_t startIndex, uint32_t maxItemsToRetrieve) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFoldersAsync(startIndex, maxItemsToRetrieve, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IFileInformationFactory::GetFoldersAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFoldersAsyncDefaultStartAndCount(put(operation))); - return operation; -} - -template Windows::IInspectable impl_IFileInformationFactory::GetVirtualizedItemsVector() const -{ - Windows::IInspectable vector; - check_hresult(static_cast(static_cast(*this))->abi_GetVirtualizedItemsVector(put(vector))); - return vector; -} - -template Windows::IInspectable impl_IFileInformationFactory::GetVirtualizedFilesVector() const -{ - Windows::IInspectable vector; - check_hresult(static_cast(static_cast(*this))->abi_GetVirtualizedFilesVector(put(vector))); - return vector; -} - -template Windows::IInspectable impl_IFileInformationFactory::GetVirtualizedFoldersVector() const -{ - Windows::IInspectable vector; - check_hresult(static_cast(static_cast(*this))->abi_GetVirtualizedFoldersVector(put(vector))); - return vector; -} - -inline FileInformationFactory::FileInformationFactory(const Windows::Storage::Search::IStorageQueryResultBase & queryResult, Windows::Storage::FileProperties::ThumbnailMode mode) : - FileInformationFactory(get_activation_factory().CreateWithMode(queryResult, mode)) -{} - -inline FileInformationFactory::FileInformationFactory(const Windows::Storage::Search::IStorageQueryResultBase & queryResult, Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedThumbnailSize) : - FileInformationFactory(get_activation_factory().CreateWithModeAndSize(queryResult, mode, requestedThumbnailSize)) -{} - -inline FileInformationFactory::FileInformationFactory(const Windows::Storage::Search::IStorageQueryResultBase & queryResult, Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedThumbnailSize, Windows::Storage::FileProperties::ThumbnailOptions thumbnailOptions) : - FileInformationFactory(get_activation_factory().CreateWithModeAndSizeAndOptions(queryResult, mode, requestedThumbnailSize, thumbnailOptions)) -{} - -inline FileInformationFactory::FileInformationFactory(const Windows::Storage::Search::IStorageQueryResultBase & queryResult, Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedThumbnailSize, Windows::Storage::FileProperties::ThumbnailOptions thumbnailOptions, bool delayLoad) : - FileInformationFactory(get_activation_factory().CreateWithModeAndSizeAndOptionsAndFlags(queryResult, mode, requestedThumbnailSize, thumbnailOptions, delayLoad)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Storage.Compression.h b/10.0.14393.0/winrt/Windows.Storage.Compression.h deleted file mode 100644 index cdc93bd6b..000000000 --- a/10.0.14393.0/winrt/Windows.Storage.Compression.h +++ /dev/null @@ -1,177 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Storage.Compression.3.h" -#include "Windows.Storage.h" -#include "Windows.Foundation.h" -#include "Windows.Storage.Streams.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FinishAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FinishAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DetachStream(abi_arg_out stream) noexcept override - { - try - { - *stream = detach(this->shim().DetachStream()); - return S_OK; - } - catch (...) - { - *stream = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCompressor(abi_arg_in underlyingStream, abi_arg_out createdCompressor) noexcept override - { - try - { - *createdCompressor = detach(this->shim().CreateCompressor(*reinterpret_cast(&underlyingStream))); - return S_OK; - } - catch (...) - { - *createdCompressor = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCompressorEx(abi_arg_in underlyingStream, Windows::Storage::Compression::CompressAlgorithm algorithm, uint32_t blockSize, abi_arg_out createdCompressor) noexcept override - { - try - { - *createdCompressor = detach(this->shim().CreateCompressorEx(*reinterpret_cast(&underlyingStream), algorithm, blockSize)); - return S_OK; - } - catch (...) - { - *createdCompressor = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_DetachStream(abi_arg_out stream) noexcept override - { - try - { - *stream = detach(this->shim().DetachStream()); - return S_OK; - } - catch (...) - { - *stream = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateDecompressor(abi_arg_in underlyingStream, abi_arg_out createdDecompressor) noexcept override - { - try - { - *createdDecompressor = detach(this->shim().CreateDecompressor(*reinterpret_cast(&underlyingStream))); - return S_OK; - } - catch (...) - { - *createdDecompressor = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Storage::Compression { - -template Windows::Foundation::IAsyncOperation impl_ICompressor::FinishAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FinishAsync(put(operation))); - return operation; -} - -template Windows::Storage::Streams::IOutputStream impl_ICompressor::DetachStream() const -{ - Windows::Storage::Streams::IOutputStream stream; - check_hresult(static_cast(static_cast(*this))->abi_DetachStream(put(stream))); - return stream; -} - -template Windows::Storage::Streams::IInputStream impl_IDecompressor::DetachStream() const -{ - Windows::Storage::Streams::IInputStream stream; - check_hresult(static_cast(static_cast(*this))->abi_DetachStream(put(stream))); - return stream; -} - -template Windows::Storage::Compression::Compressor impl_ICompressorFactory::CreateCompressor(const Windows::Storage::Streams::IOutputStream & underlyingStream) const -{ - Windows::Storage::Compression::Compressor createdCompressor { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCompressor(get(underlyingStream), put(createdCompressor))); - return createdCompressor; -} - -template Windows::Storage::Compression::Compressor impl_ICompressorFactory::CreateCompressorEx(const Windows::Storage::Streams::IOutputStream & underlyingStream, Windows::Storage::Compression::CompressAlgorithm algorithm, uint32_t blockSize) const -{ - Windows::Storage::Compression::Compressor createdCompressor { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCompressorEx(get(underlyingStream), algorithm, blockSize, put(createdCompressor))); - return createdCompressor; -} - -template Windows::Storage::Compression::Decompressor impl_IDecompressorFactory::CreateDecompressor(const Windows::Storage::Streams::IInputStream & underlyingStream) const -{ - Windows::Storage::Compression::Decompressor createdDecompressor { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDecompressor(get(underlyingStream), put(createdDecompressor))); - return createdDecompressor; -} - -inline Compressor::Compressor(const Windows::Storage::Streams::IOutputStream & underlyingStream) : - Compressor(get_activation_factory().CreateCompressor(underlyingStream)) -{} - -inline Compressor::Compressor(const Windows::Storage::Streams::IOutputStream & underlyingStream, Windows::Storage::Compression::CompressAlgorithm algorithm, uint32_t blockSize) : - Compressor(get_activation_factory().CreateCompressorEx(underlyingStream, algorithm, blockSize)) -{} - -inline Decompressor::Decompressor(const Windows::Storage::Streams::IInputStream & underlyingStream) : - Decompressor(get_activation_factory().CreateDecompressor(underlyingStream)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Storage.FileProperties.h b/10.0.14393.0/winrt/Windows.Storage.FileProperties.h deleted file mode 100644 index cf7147f72..000000000 --- a/10.0.14393.0/winrt/Windows.Storage.FileProperties.h +++ /dev/null @@ -1,1795 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Geolocation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.FileProperties.3.h" -#include "Windows.Storage.h" -#include "Windows.Foundation.h" -#include "Windows.Storage.Streams.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Size(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateModified(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateModified()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Author(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Author()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Keywords(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Keywords()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Comment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Comment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Comment(abi_arg_in value) noexcept override - { - try - { - this->shim().Comment(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetGeotagAsync(abi_arg_in file, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetGeotagAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetGeotagFromGeolocatorAsync(abi_arg_in file, abi_arg_in geolocator, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SetGeotagFromGeolocatorAsync(*reinterpret_cast(&file), *reinterpret_cast(&geolocator))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetGeotagAsync(abi_arg_in file, abi_arg_in geopoint, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SetGeotagAsync(*reinterpret_cast(&file), *reinterpret_cast(&geopoint))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Rating(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Rating()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Rating(uint32_t value) noexcept override - { - try - { - this->shim().Rating(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Keywords(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Keywords()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateTaken(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateTaken()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DateTaken(abi_arg_in value) noexcept override - { - try - { - this->shim().DateTaken(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Width(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Latitude(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Latitude()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Longitude(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Longitude()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CameraManufacturer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CameraManufacturer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CameraManufacturer(abi_arg_in value) noexcept override - { - try - { - this->shim().CameraManufacturer(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CameraModel(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CameraModel()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CameraModel(abi_arg_in value) noexcept override - { - try - { - this->shim().CameraModel(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::Storage::FileProperties::PhotoOrientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeopleNames(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PeopleNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Album(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Album()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Album(abi_arg_in value) noexcept override - { - try - { - this->shim().Album(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Artist(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Artist()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Artist(abi_arg_in value) noexcept override - { - try - { - this->shim().Artist(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Genre(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Genre()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrackNumber(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TrackNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TrackNumber(uint32_t value) noexcept override - { - try - { - this->shim().TrackNumber(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rating(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Rating()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Rating(uint32_t value) noexcept override - { - try - { - this->shim().Rating(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bitrate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Bitrate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlbumArtist(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlbumArtist()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AlbumArtist(abi_arg_in value) noexcept override - { - try - { - this->shim().AlbumArtist(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Composers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Composers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Conductors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Conductors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subtitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subtitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Subtitle(abi_arg_in value) noexcept override - { - try - { - this->shim().Subtitle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Producers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Producers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Publisher(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Publisher()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Publisher(abi_arg_in value) noexcept override - { - try - { - this->shim().Publisher(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Writers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Writers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Year(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Year()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Year(uint32_t value) noexcept override - { - try - { - this->shim().Year(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetMusicPropertiesAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetMusicPropertiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVideoPropertiesAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetVideoPropertiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetImagePropertiesAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetImagePropertiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDocumentPropertiesAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDocumentPropertiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RetrievePropertiesAsync(abi_arg_in> propertiesToRetrieve, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().RetrievePropertiesAsync(*reinterpret_cast *>(&propertiesToRetrieve))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SavePropertiesAsync(abi_arg_in>> propertiesToSave, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SavePropertiesAsync(*reinterpret_cast> *>(&propertiesToSave))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SavePropertiesAsyncOverloadDefault(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SavePropertiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OriginalWidth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OriginalWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OriginalHeight(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().OriginalHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReturnedSmallerCachedSize(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ReturnedSmallerCachedSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::Storage::FileProperties::ThumbnailType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Rating(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Rating()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Rating(uint32_t value) noexcept override - { - try - { - this->shim().Rating(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Keywords(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Keywords()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Width(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Height(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Latitude(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Latitude()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Longitude(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Longitude()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subtitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subtitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Subtitle(abi_arg_in value) noexcept override - { - try - { - this->shim().Subtitle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Producers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Producers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Publisher(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Publisher()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Publisher(abi_arg_in value) noexcept override - { - try - { - this->shim().Publisher(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Writers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Writers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Year(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Year()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Year(uint32_t value) noexcept override - { - try - { - this->shim().Year(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bitrate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Bitrate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Directors(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Directors()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::Storage::FileProperties::VideoOrientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Storage::FileProperties { - -template Windows::Foundation::IAsyncOperation impl_IGeotagHelperStatics::GetGeotagAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetGeotagAsync(get(file), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IGeotagHelperStatics::SetGeotagFromGeolocatorAsync(const Windows::Storage::IStorageFile & file, const Windows::Devices::Geolocation::Geolocator & geolocator) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SetGeotagFromGeolocatorAsync(get(file), get(geolocator), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IGeotagHelperStatics::SetGeotagAsync(const Windows::Storage::IStorageFile & file, const Windows::Devices::Geolocation::Geopoint & geopoint) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SetGeotagAsync(get(file), get(geopoint), put(operation))); - return operation; -} - -template uint32_t impl_IThumbnailProperties::OriginalWidth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OriginalWidth(&value)); - return value; -} - -template uint32_t impl_IThumbnailProperties::OriginalHeight() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OriginalHeight(&value)); - return value; -} - -template bool impl_IThumbnailProperties::ReturnedSmallerCachedSize() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ReturnedSmallerCachedSize(&value)); - return value; -} - -template Windows::Storage::FileProperties::ThumbnailType impl_IThumbnailProperties::Type() const -{ - Windows::Storage::FileProperties::ThumbnailType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageItemExtraProperties::RetrievePropertiesAsync(const Windows::Foundation::Collections::IIterable & propertiesToRetrieve) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_RetrievePropertiesAsync(get(propertiesToRetrieve), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageItemExtraProperties::SavePropertiesAsync(const Windows::Foundation::Collections::IIterable> & propertiesToSave) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SavePropertiesAsync(get(propertiesToSave), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageItemExtraProperties::SavePropertiesAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SavePropertiesAsyncOverloadDefault(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemContentProperties::GetMusicPropertiesAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetMusicPropertiesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemContentProperties::GetVideoPropertiesAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetVideoPropertiesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemContentProperties::GetImagePropertiesAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetImagePropertiesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemContentProperties::GetDocumentPropertiesAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDocumentPropertiesAsync(put(operation))); - return operation; -} - -template hstring impl_IMusicProperties::Album() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Album(put(value))); - return value; -} - -template void impl_IMusicProperties::Album(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Album(get(value))); -} - -template hstring impl_IMusicProperties::Artist() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Artist(put(value))); - return value; -} - -template void impl_IMusicProperties::Artist(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Artist(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IMusicProperties::Genre() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Genre(put(value))); - return value; -} - -template uint32_t impl_IMusicProperties::TrackNumber() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TrackNumber(&value)); - return value; -} - -template void impl_IMusicProperties::TrackNumber(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TrackNumber(value)); -} - -template hstring impl_IMusicProperties::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IMusicProperties::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template uint32_t impl_IMusicProperties::Rating() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Rating(&value)); - return value; -} - -template void impl_IMusicProperties::Rating(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Rating(value)); -} - -template Windows::Foundation::TimeSpan impl_IMusicProperties::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template uint32_t impl_IMusicProperties::Bitrate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Bitrate(&value)); - return value; -} - -template hstring impl_IMusicProperties::AlbumArtist() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlbumArtist(put(value))); - return value; -} - -template void impl_IMusicProperties::AlbumArtist(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AlbumArtist(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IMusicProperties::Composers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Composers(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IMusicProperties::Conductors() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Conductors(put(value))); - return value; -} - -template hstring impl_IMusicProperties::Subtitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subtitle(put(value))); - return value; -} - -template void impl_IMusicProperties::Subtitle(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Subtitle(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IMusicProperties::Producers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Producers(put(value))); - return value; -} - -template hstring impl_IMusicProperties::Publisher() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Publisher(put(value))); - return value; -} - -template void impl_IMusicProperties::Publisher(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Publisher(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IMusicProperties::Writers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Writers(put(value))); - return value; -} - -template uint32_t impl_IMusicProperties::Year() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Year(&value)); - return value; -} - -template void impl_IMusicProperties::Year(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Year(value)); -} - -template uint32_t impl_IImageProperties::Rating() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Rating(&value)); - return value; -} - -template void impl_IImageProperties::Rating(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Rating(value)); -} - -template Windows::Foundation::Collections::IVector impl_IImageProperties::Keywords() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Keywords(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IImageProperties::DateTaken() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_DateTaken(put(value))); - return value; -} - -template void impl_IImageProperties::DateTaken(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DateTaken(get(value))); -} - -template uint32_t impl_IImageProperties::Width() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(&value)); - return value; -} - -template uint32_t impl_IImageProperties::Height() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(&value)); - return value; -} - -template hstring impl_IImageProperties::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IImageProperties::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template Windows::Foundation::IReference impl_IImageProperties::Latitude() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Latitude(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IImageProperties::Longitude() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Longitude(put(value))); - return value; -} - -template hstring impl_IImageProperties::CameraManufacturer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CameraManufacturer(put(value))); - return value; -} - -template void impl_IImageProperties::CameraManufacturer(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CameraManufacturer(get(value))); -} - -template hstring impl_IImageProperties::CameraModel() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CameraModel(put(value))); - return value; -} - -template void impl_IImageProperties::CameraModel(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CameraModel(get(value))); -} - -template Windows::Storage::FileProperties::PhotoOrientation impl_IImageProperties::Orientation() const -{ - Windows::Storage::FileProperties::PhotoOrientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IImageProperties::PeopleNames() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_PeopleNames(put(value))); - return value; -} - -template uint32_t impl_IVideoProperties::Rating() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Rating(&value)); - return value; -} - -template void impl_IVideoProperties::Rating(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Rating(value)); -} - -template Windows::Foundation::Collections::IVector impl_IVideoProperties::Keywords() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Keywords(put(value))); - return value; -} - -template uint32_t impl_IVideoProperties::Width() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(&value)); - return value; -} - -template uint32_t impl_IVideoProperties::Height() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IVideoProperties::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IVideoProperties::Latitude() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Latitude(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IVideoProperties::Longitude() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Longitude(put(value))); - return value; -} - -template hstring impl_IVideoProperties::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IVideoProperties::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template hstring impl_IVideoProperties::Subtitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subtitle(put(value))); - return value; -} - -template void impl_IVideoProperties::Subtitle(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Subtitle(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IVideoProperties::Producers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Producers(put(value))); - return value; -} - -template hstring impl_IVideoProperties::Publisher() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Publisher(put(value))); - return value; -} - -template void impl_IVideoProperties::Publisher(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Publisher(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IVideoProperties::Writers() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Writers(put(value))); - return value; -} - -template uint32_t impl_IVideoProperties::Year() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Year(&value)); - return value; -} - -template void impl_IVideoProperties::Year(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Year(value)); -} - -template uint32_t impl_IVideoProperties::Bitrate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Bitrate(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IVideoProperties::Directors() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Directors(put(value))); - return value; -} - -template Windows::Storage::FileProperties::VideoOrientation impl_IVideoProperties::Orientation() const -{ - Windows::Storage::FileProperties::VideoOrientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IDocumentProperties::Author() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Author(put(value))); - return value; -} - -template hstring impl_IDocumentProperties::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IDocumentProperties::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IDocumentProperties::Keywords() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Keywords(put(value))); - return value; -} - -template hstring impl_IDocumentProperties::Comment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Comment(put(value))); - return value; -} - -template void impl_IDocumentProperties::Comment(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Comment(get(value))); -} - -template uint64_t impl_IBasicProperties::Size() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IBasicProperties::DateModified() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_DateModified(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IBasicProperties::ItemDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemDate(put(value))); - return value; -} - -inline Windows::Foundation::IAsyncOperation GeotagHelper::GetGeotagAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().GetGeotagAsync(file); -} - -inline Windows::Foundation::IAsyncAction GeotagHelper::SetGeotagFromGeolocatorAsync(const Windows::Storage::IStorageFile & file, const Windows::Devices::Geolocation::Geolocator & geolocator) -{ - return get_activation_factory().SetGeotagFromGeolocatorAsync(file, geolocator); -} - -inline Windows::Foundation::IAsyncAction GeotagHelper::SetGeotagAsync(const Windows::Storage::IStorageFile & file, const Windows::Devices::Geolocation::Geopoint & geopoint) -{ - return get_activation_factory().SetGeotagAsync(file, geopoint); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Storage.Pickers.Provider.h b/10.0.14393.0/winrt/Windows.Storage.Pickers.Provider.h deleted file mode 100644 index d4da825e9..000000000 --- a/10.0.14393.0/winrt/Windows.Storage.Pickers.Provider.h +++ /dev/null @@ -1,751 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Pickers.Provider.3.h" -#include "Windows.Storage.Pickers.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddFile(abi_arg_in id, abi_arg_in file, Windows::Storage::Pickers::Provider::AddFileResult * addResult) noexcept override - { - try - { - *addResult = detach(this->shim().AddFile(*reinterpret_cast(&id), *reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveFile(abi_arg_in id) noexcept override - { - try - { - this->shim().RemoveFile(*reinterpret_cast(&id)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ContainsFile(abi_arg_in id, bool * isContained) noexcept override - { - try - { - *isContained = detach(this->shim().ContainsFile(*reinterpret_cast(&id))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanAddFile(abi_arg_in file, bool * canAdd) noexcept override - { - try - { - *canAdd = detach(this->shim().CanAddFile(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowedFileTypes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AllowedFileTypes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionMode(Windows::Storage::Pickers::Provider::FileSelectionMode * value) noexcept override - { - try - { - *value = detach(this->shim().SelectionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SettingsIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SettingsIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FileRemoved(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FileRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FileRemoved(event_token token) noexcept override - { - try - { - this->shim().FileRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closing(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closing(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closing(event_token token) noexcept override - { - try - { - this->shim().Closing(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowedFileTypes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AllowedFileTypes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SettingsIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SettingsIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FileName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FileName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetFileName(abi_arg_in value, Windows::Storage::Pickers::Provider::SetFileNameResult * result) noexcept override - { - try - { - *result = detach(this->shim().TrySetFileName(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FileNameChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FileNameChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FileNameChanged(event_token token) noexcept override - { - try - { - this->shim().FileNameChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TargetFileRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TargetFileRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TargetFileRequested(event_token token) noexcept override - { - try - { - this->shim().TargetFileRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClosingOperation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClosingOperation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TargetFile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetFile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetFile(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetFile(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Storage::Pickers::Provider { - -template hstring impl_IFileRemovedEventArgs::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Storage::Pickers::Provider::AddFileResult impl_IFileOpenPickerUI::AddFile(hstring_ref id, const Windows::Storage::IStorageFile & file) const -{ - Windows::Storage::Pickers::Provider::AddFileResult addResult {}; - check_hresult(static_cast(static_cast(*this))->abi_AddFile(get(id), get(file), &addResult)); - return addResult; -} - -template void impl_IFileOpenPickerUI::RemoveFile(hstring_ref id) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveFile(get(id))); -} - -template bool impl_IFileOpenPickerUI::ContainsFile(hstring_ref id) const -{ - bool isContained {}; - check_hresult(static_cast(static_cast(*this))->abi_ContainsFile(get(id), &isContained)); - return isContained; -} - -template bool impl_IFileOpenPickerUI::CanAddFile(const Windows::Storage::IStorageFile & file) const -{ - bool canAdd {}; - check_hresult(static_cast(static_cast(*this))->abi_CanAddFile(get(file), &canAdd)); - return canAdd; -} - -template Windows::Foundation::Collections::IVectorView impl_IFileOpenPickerUI::AllowedFileTypes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AllowedFileTypes(put(value))); - return value; -} - -template Windows::Storage::Pickers::Provider::FileSelectionMode impl_IFileOpenPickerUI::SelectionMode() const -{ - Windows::Storage::Pickers::Provider::FileSelectionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectionMode(&value)); - return value; -} - -template hstring impl_IFileOpenPickerUI::SettingsIdentifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SettingsIdentifier(put(value))); - return value; -} - -template hstring impl_IFileOpenPickerUI::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IFileOpenPickerUI::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template event_token impl_IFileOpenPickerUI::FileRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FileRemoved(get(handler), &token)); - return token; -} - -template event_revoker impl_IFileOpenPickerUI::FileRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::Pickers::Provider::IFileOpenPickerUI::remove_FileRemoved, FileRemoved(handler)); -} - -template void impl_IFileOpenPickerUI::FileRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FileRemoved(token)); -} - -template event_token impl_IFileOpenPickerUI::Closing(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closing(get(handler), &token)); - return token; -} - -template event_revoker impl_IFileOpenPickerUI::Closing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::Pickers::Provider::IFileOpenPickerUI::remove_Closing, Closing(handler)); -} - -template void impl_IFileOpenPickerUI::Closing(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closing(token)); -} - -template Windows::Storage::Pickers::Provider::PickerClosingOperation impl_IPickerClosingEventArgs::ClosingOperation() const -{ - Windows::Storage::Pickers::Provider::PickerClosingOperation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ClosingOperation(put(value))); - return value; -} - -template bool impl_IPickerClosingEventArgs::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template Windows::Storage::Pickers::Provider::PickerClosingDeferral impl_IPickerClosingOperation::GetDeferral() const -{ - Windows::Storage::Pickers::Provider::PickerClosingDeferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IPickerClosingOperation::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template void impl_IPickerClosingDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template hstring impl_IFileSavePickerUI::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IFileSavePickerUI::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template Windows::Foundation::Collections::IVectorView impl_IFileSavePickerUI::AllowedFileTypes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AllowedFileTypes(put(value))); - return value; -} - -template hstring impl_IFileSavePickerUI::SettingsIdentifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SettingsIdentifier(put(value))); - return value; -} - -template hstring impl_IFileSavePickerUI::FileName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FileName(put(value))); - return value; -} - -template Windows::Storage::Pickers::Provider::SetFileNameResult impl_IFileSavePickerUI::TrySetFileName(hstring_ref value) const -{ - Windows::Storage::Pickers::Provider::SetFileNameResult result {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetFileName(get(value), &result)); - return result; -} - -template event_token impl_IFileSavePickerUI::FileNameChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FileNameChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IFileSavePickerUI::FileNameChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::Pickers::Provider::IFileSavePickerUI::remove_FileNameChanged, FileNameChanged(handler)); -} - -template void impl_IFileSavePickerUI::FileNameChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FileNameChanged(token)); -} - -template event_token impl_IFileSavePickerUI::TargetFileRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TargetFileRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_IFileSavePickerUI::TargetFileRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::Pickers::Provider::IFileSavePickerUI::remove_TargetFileRequested, TargetFileRequested(handler)); -} - -template void impl_IFileSavePickerUI::TargetFileRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TargetFileRequested(token)); -} - -template Windows::Storage::Pickers::Provider::TargetFileRequest impl_ITargetFileRequestedEventArgs::Request() const -{ - Windows::Storage::Pickers::Provider::TargetFileRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Storage::IStorageFile impl_ITargetFileRequest::TargetFile() const -{ - Windows::Storage::IStorageFile value; - check_hresult(static_cast(static_cast(*this))->get_TargetFile(put(value))); - return value; -} - -template void impl_ITargetFileRequest::TargetFile(const Windows::Storage::IStorageFile & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetFile(get(value))); -} - -template Windows::Storage::Pickers::Provider::TargetFileRequestDeferral impl_ITargetFileRequest::GetDeferral() const -{ - Windows::Storage::Pickers::Provider::TargetFileRequestDeferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template void impl_ITargetFileRequestDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Storage.Pickers.h b/10.0.14393.0/winrt/Windows.Storage.Pickers.h deleted file mode 100644 index 606289a35..000000000 --- a/10.0.14393.0/winrt/Windows.Storage.Pickers.h +++ /dev/null @@ -1,980 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Storage.Pickers.3.h" -#include "Windows.Storage.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ViewMode(Windows::Storage::Pickers::PickerViewMode * value) noexcept override - { - try - { - *value = detach(this->shim().ViewMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ViewMode(Windows::Storage::Pickers::PickerViewMode value) noexcept override - { - try - { - this->shim().ViewMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SettingsIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SettingsIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SettingsIdentifier(abi_arg_in value) noexcept override - { - try - { - this->shim().SettingsIdentifier(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuggestedStartLocation(Windows::Storage::Pickers::PickerLocationId * value) noexcept override - { - try - { - *value = detach(this->shim().SuggestedStartLocation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuggestedStartLocation(Windows::Storage::Pickers::PickerLocationId value) noexcept override - { - try - { - this->shim().SuggestedStartLocation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommitButtonText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommitButtonText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CommitButtonText(abi_arg_in value) noexcept override - { - try - { - this->shim().CommitButtonText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FileTypeFilter(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FileTypeFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickSingleFileAsync(abi_arg_out> pickSingleFileOperation) noexcept override - { - try - { - *pickSingleFileOperation = detach(this->shim().PickSingleFileAsync()); - return S_OK; - } - catch (...) - { - *pickSingleFileOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickMultipleFilesAsync(abi_arg_out>> pickMultipleFilesOperation) noexcept override - { - try - { - *pickMultipleFilesOperation = detach(this->shim().PickMultipleFilesAsync()); - return S_OK; - } - catch (...) - { - *pickMultipleFilesOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContinuationData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContinuationData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickSingleFileAndContinue() noexcept override - { - try - { - this->shim().PickSingleFileAndContinue(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickMultipleFilesAndContinue() noexcept override - { - try - { - this->shim().PickMultipleFilesAndContinue(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ResumePickSingleFileAsync(abi_arg_out> pickSingleFileOperation) noexcept override - { - try - { - *pickSingleFileOperation = detach(this->shim().ResumePickSingleFileAsync()); - return S_OK; - } - catch (...) - { - *pickSingleFileOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_PickSingleFileAsync(abi_arg_in pickerOperationId, abi_arg_out> pickSingleFileOperation) noexcept override - { - try - { - *pickSingleFileOperation = detach(this->shim().PickSingleFileAsync(*reinterpret_cast(&pickerOperationId))); - return S_OK; - } - catch (...) - { - *pickSingleFileOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SettingsIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SettingsIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SettingsIdentifier(abi_arg_in value) noexcept override - { - try - { - this->shim().SettingsIdentifier(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuggestedStartLocation(Windows::Storage::Pickers::PickerLocationId * value) noexcept override - { - try - { - *value = detach(this->shim().SuggestedStartLocation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuggestedStartLocation(Windows::Storage::Pickers::PickerLocationId value) noexcept override - { - try - { - this->shim().SuggestedStartLocation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommitButtonText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommitButtonText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CommitButtonText(abi_arg_in value) noexcept override - { - try - { - this->shim().CommitButtonText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FileTypeChoices(abi_arg_out>> value) noexcept override - { - try - { - *value = detach(this->shim().FileTypeChoices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultFileExtension(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultFileExtension()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultFileExtension(abi_arg_in value) noexcept override - { - try - { - this->shim().DefaultFileExtension(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuggestedSaveFile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SuggestedSaveFile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuggestedSaveFile(abi_arg_in value) noexcept override - { - try - { - this->shim().SuggestedSaveFile(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuggestedFileName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SuggestedFileName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuggestedFileName(abi_arg_in value) noexcept override - { - try - { - this->shim().SuggestedFileName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickSaveFileAsync(abi_arg_out> pickSaveFileOperation) noexcept override - { - try - { - *pickSaveFileOperation = detach(this->shim().PickSaveFileAsync()); - return S_OK; - } - catch (...) - { - *pickSaveFileOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContinuationData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContinuationData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickSaveFileAndContinue() noexcept override - { - try - { - this->shim().PickSaveFileAndContinue(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnterpriseId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EnterpriseId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EnterpriseId(abi_arg_in value) noexcept override - { - try - { - this->shim().EnterpriseId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ViewMode(Windows::Storage::Pickers::PickerViewMode * value) noexcept override - { - try - { - *value = detach(this->shim().ViewMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ViewMode(Windows::Storage::Pickers::PickerViewMode value) noexcept override - { - try - { - this->shim().ViewMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SettingsIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SettingsIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SettingsIdentifier(abi_arg_in value) noexcept override - { - try - { - this->shim().SettingsIdentifier(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuggestedStartLocation(Windows::Storage::Pickers::PickerLocationId * value) noexcept override - { - try - { - *value = detach(this->shim().SuggestedStartLocation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuggestedStartLocation(Windows::Storage::Pickers::PickerLocationId value) noexcept override - { - try - { - this->shim().SuggestedStartLocation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommitButtonText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommitButtonText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CommitButtonText(abi_arg_in value) noexcept override - { - try - { - this->shim().CommitButtonText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FileTypeFilter(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FileTypeFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickSingleFolderAsync(abi_arg_out> pickSingleFolderOperation) noexcept override - { - try - { - *pickSingleFolderOperation = detach(this->shim().PickSingleFolderAsync()); - return S_OK; - } - catch (...) - { - *pickSingleFolderOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContinuationData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContinuationData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickFolderAndContinue() noexcept override - { - try - { - this->shim().PickFolderAndContinue(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Storage::Pickers { - -template Windows::Storage::Pickers::PickerViewMode impl_IFileOpenPicker::ViewMode() const -{ - Windows::Storage::Pickers::PickerViewMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewMode(&value)); - return value; -} - -template void impl_IFileOpenPicker::ViewMode(Windows::Storage::Pickers::PickerViewMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ViewMode(value)); -} - -template hstring impl_IFileOpenPicker::SettingsIdentifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SettingsIdentifier(put(value))); - return value; -} - -template void impl_IFileOpenPicker::SettingsIdentifier(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SettingsIdentifier(get(value))); -} - -template Windows::Storage::Pickers::PickerLocationId impl_IFileOpenPicker::SuggestedStartLocation() const -{ - Windows::Storage::Pickers::PickerLocationId value {}; - check_hresult(static_cast(static_cast(*this))->get_SuggestedStartLocation(&value)); - return value; -} - -template void impl_IFileOpenPicker::SuggestedStartLocation(Windows::Storage::Pickers::PickerLocationId value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuggestedStartLocation(value)); -} - -template hstring impl_IFileOpenPicker::CommitButtonText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CommitButtonText(put(value))); - return value; -} - -template void impl_IFileOpenPicker::CommitButtonText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CommitButtonText(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IFileOpenPicker::FileTypeFilter() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_FileTypeFilter(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IFileOpenPicker::PickSingleFileAsync() const -{ - Windows::Foundation::IAsyncOperation pickSingleFileOperation; - check_hresult(static_cast(static_cast(*this))->abi_PickSingleFileAsync(put(pickSingleFileOperation))); - return pickSingleFileOperation; -} - -template Windows::Foundation::IAsyncOperation> impl_IFileOpenPicker::PickMultipleFilesAsync() const -{ - Windows::Foundation::IAsyncOperation> pickMultipleFilesOperation; - check_hresult(static_cast(static_cast(*this))->abi_PickMultipleFilesAsync(put(pickMultipleFilesOperation))); - return pickMultipleFilesOperation; -} - -template Windows::Foundation::Collections::ValueSet impl_IFileOpenPicker2::ContinuationData() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContinuationData(put(value))); - return value; -} - -template void impl_IFileOpenPicker2::PickSingleFileAndContinue() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PickSingleFileAndContinue()); -} - -template void impl_IFileOpenPicker2::PickMultipleFilesAndContinue() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PickMultipleFilesAndContinue()); -} - -template Windows::Foundation::IAsyncOperation impl_IFileOpenPickerWithOperationId::PickSingleFileAsync(hstring_ref pickerOperationId) const -{ - Windows::Foundation::IAsyncOperation pickSingleFileOperation; - check_hresult(static_cast(static_cast(*this))->abi_PickSingleFileAsync(get(pickerOperationId), put(pickSingleFileOperation))); - return pickSingleFileOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IFileOpenPickerStatics::ResumePickSingleFileAsync() const -{ - Windows::Foundation::IAsyncOperation pickSingleFileOperation; - check_hresult(static_cast(static_cast(*this))->abi_ResumePickSingleFileAsync(put(pickSingleFileOperation))); - return pickSingleFileOperation; -} - -template hstring impl_IFileSavePicker::SettingsIdentifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SettingsIdentifier(put(value))); - return value; -} - -template void impl_IFileSavePicker::SettingsIdentifier(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SettingsIdentifier(get(value))); -} - -template Windows::Storage::Pickers::PickerLocationId impl_IFileSavePicker::SuggestedStartLocation() const -{ - Windows::Storage::Pickers::PickerLocationId value {}; - check_hresult(static_cast(static_cast(*this))->get_SuggestedStartLocation(&value)); - return value; -} - -template void impl_IFileSavePicker::SuggestedStartLocation(Windows::Storage::Pickers::PickerLocationId value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuggestedStartLocation(value)); -} - -template hstring impl_IFileSavePicker::CommitButtonText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CommitButtonText(put(value))); - return value; -} - -template void impl_IFileSavePicker::CommitButtonText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CommitButtonText(get(value))); -} - -template Windows::Foundation::Collections::IMap> impl_IFileSavePicker::FileTypeChoices() const -{ - Windows::Foundation::Collections::IMap> value; - check_hresult(static_cast(static_cast(*this))->get_FileTypeChoices(put(value))); - return value; -} - -template hstring impl_IFileSavePicker::DefaultFileExtension() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DefaultFileExtension(put(value))); - return value; -} - -template void impl_IFileSavePicker::DefaultFileExtension(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultFileExtension(get(value))); -} - -template Windows::Storage::StorageFile impl_IFileSavePicker::SuggestedSaveFile() const -{ - Windows::Storage::StorageFile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SuggestedSaveFile(put(value))); - return value; -} - -template void impl_IFileSavePicker::SuggestedSaveFile(const Windows::Storage::StorageFile & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuggestedSaveFile(get(value))); -} - -template hstring impl_IFileSavePicker::SuggestedFileName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SuggestedFileName(put(value))); - return value; -} - -template void impl_IFileSavePicker::SuggestedFileName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuggestedFileName(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_IFileSavePicker::PickSaveFileAsync() const -{ - Windows::Foundation::IAsyncOperation pickSaveFileOperation; - check_hresult(static_cast(static_cast(*this))->abi_PickSaveFileAsync(put(pickSaveFileOperation))); - return pickSaveFileOperation; -} - -template Windows::Foundation::Collections::ValueSet impl_IFileSavePicker2::ContinuationData() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContinuationData(put(value))); - return value; -} - -template void impl_IFileSavePicker2::PickSaveFileAndContinue() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PickSaveFileAndContinue()); -} - -template hstring impl_IFileSavePicker3::EnterpriseId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EnterpriseId(put(value))); - return value; -} - -template void impl_IFileSavePicker3::EnterpriseId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EnterpriseId(get(value))); -} - -template Windows::Storage::Pickers::PickerViewMode impl_IFolderPicker::ViewMode() const -{ - Windows::Storage::Pickers::PickerViewMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewMode(&value)); - return value; -} - -template void impl_IFolderPicker::ViewMode(Windows::Storage::Pickers::PickerViewMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ViewMode(value)); -} - -template hstring impl_IFolderPicker::SettingsIdentifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SettingsIdentifier(put(value))); - return value; -} - -template void impl_IFolderPicker::SettingsIdentifier(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SettingsIdentifier(get(value))); -} - -template Windows::Storage::Pickers::PickerLocationId impl_IFolderPicker::SuggestedStartLocation() const -{ - Windows::Storage::Pickers::PickerLocationId value {}; - check_hresult(static_cast(static_cast(*this))->get_SuggestedStartLocation(&value)); - return value; -} - -template void impl_IFolderPicker::SuggestedStartLocation(Windows::Storage::Pickers::PickerLocationId value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuggestedStartLocation(value)); -} - -template hstring impl_IFolderPicker::CommitButtonText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CommitButtonText(put(value))); - return value; -} - -template void impl_IFolderPicker::CommitButtonText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CommitButtonText(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IFolderPicker::FileTypeFilter() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_FileTypeFilter(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IFolderPicker::PickSingleFolderAsync() const -{ - Windows::Foundation::IAsyncOperation pickSingleFolderOperation; - check_hresult(static_cast(static_cast(*this))->abi_PickSingleFolderAsync(put(pickSingleFolderOperation))); - return pickSingleFolderOperation; -} - -template Windows::Foundation::Collections::ValueSet impl_IFolderPicker2::ContinuationData() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContinuationData(put(value))); - return value; -} - -template void impl_IFolderPicker2::PickFolderAndContinue() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PickFolderAndContinue()); -} - -inline FileOpenPicker::FileOpenPicker() : - FileOpenPicker(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation FileOpenPicker::ResumePickSingleFileAsync() -{ - return get_activation_factory().ResumePickSingleFileAsync(); -} - -inline FileSavePicker::FileSavePicker() : - FileSavePicker(activate_instance()) -{} - -inline FolderPicker::FolderPicker() : - FolderPicker(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Storage.Provider.h b/10.0.14393.0/winrt/Windows.Storage.Provider.h deleted file mode 100644 index c890ed877..000000000 --- a/10.0.14393.0/winrt/Windows.Storage.Provider.h +++ /dev/null @@ -1,476 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Storage.Provider.3.h" -#include "Windows.Storage.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetUpdateInformation(abi_arg_in file, abi_arg_in contentId, Windows::Storage::Provider::ReadActivationMode readMode, Windows::Storage::Provider::WriteActivationMode writeMode, Windows::Storage::Provider::CachedFileOptions options) noexcept override - { - try - { - this->shim().SetUpdateInformation(*reinterpret_cast(&file), *reinterpret_cast(&contentId), readMode, writeMode, options); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpdateTarget(Windows::Storage::Provider::CachedFileTarget * value) noexcept override - { - try - { - *value = detach(this->shim().UpdateTarget()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FileUpdateRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FileUpdateRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FileUpdateRequested(event_token token) noexcept override - { - try - { - this->shim().FileUpdateRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UIRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UIRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UIRequested(event_token token) noexcept override - { - try - { - this->shim().UIRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UIStatus(Windows::Storage::Provider::UIStatus * value) noexcept override - { - try - { - *value = detach(this->shim().UIStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UpdateRequest(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UpdateRequest()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_File(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().File()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::Storage::Provider::FileUpdateStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Status(Windows::Storage::Provider::FileUpdateStatus value) noexcept override - { - try - { - this->shim().Status(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateLocalFile(abi_arg_in value) noexcept override - { - try - { - this->shim().UpdateLocalFile(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UserInputNeededMessage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserInputNeededMessage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UserInputNeededMessage(abi_arg_in value) noexcept override - { - try - { - this->shim().UserInputNeededMessage(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Storage::Provider { - -template hstring impl_ICachedFileUpdaterUI::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_ICachedFileUpdaterUI::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template Windows::Storage::Provider::CachedFileTarget impl_ICachedFileUpdaterUI::UpdateTarget() const -{ - Windows::Storage::Provider::CachedFileTarget value {}; - check_hresult(static_cast(static_cast(*this))->get_UpdateTarget(&value)); - return value; -} - -template event_token impl_ICachedFileUpdaterUI::FileUpdateRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FileUpdateRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ICachedFileUpdaterUI::FileUpdateRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::Provider::ICachedFileUpdaterUI::remove_FileUpdateRequested, FileUpdateRequested(handler)); -} - -template void impl_ICachedFileUpdaterUI::FileUpdateRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FileUpdateRequested(token)); -} - -template event_token impl_ICachedFileUpdaterUI::UIRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UIRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ICachedFileUpdaterUI::UIRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::Provider::ICachedFileUpdaterUI::remove_UIRequested, UIRequested(handler)); -} - -template void impl_ICachedFileUpdaterUI::UIRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UIRequested(token)); -} - -template Windows::Storage::Provider::UIStatus impl_ICachedFileUpdaterUI::UIStatus() const -{ - Windows::Storage::Provider::UIStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_UIStatus(&value)); - return value; -} - -template Windows::Storage::Provider::FileUpdateRequest impl_IFileUpdateRequestedEventArgs::Request() const -{ - Windows::Storage::Provider::FileUpdateRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template hstring impl_IFileUpdateRequest::ContentId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContentId(put(value))); - return value; -} - -template Windows::Storage::StorageFile impl_IFileUpdateRequest::File() const -{ - Windows::Storage::StorageFile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_File(put(value))); - return value; -} - -template Windows::Storage::Provider::FileUpdateStatus impl_IFileUpdateRequest::Status() const -{ - Windows::Storage::Provider::FileUpdateStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template void impl_IFileUpdateRequest::Status(Windows::Storage::Provider::FileUpdateStatus value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Status(value)); -} - -template Windows::Storage::Provider::FileUpdateRequestDeferral impl_IFileUpdateRequest::GetDeferral() const -{ - Windows::Storage::Provider::FileUpdateRequestDeferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template void impl_IFileUpdateRequest::UpdateLocalFile(const Windows::Storage::IStorageFile & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateLocalFile(get(value))); -} - -template void impl_IFileUpdateRequestDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::Storage::Provider::FileUpdateRequest impl_ICachedFileUpdaterUI2::UpdateRequest() const -{ - Windows::Storage::Provider::FileUpdateRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UpdateRequest(put(value))); - return value; -} - -template Windows::Storage::Provider::FileUpdateRequestDeferral impl_ICachedFileUpdaterUI2::GetDeferral() const -{ - Windows::Storage::Provider::FileUpdateRequestDeferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template hstring impl_IFileUpdateRequest2::UserInputNeededMessage() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserInputNeededMessage(put(value))); - return value; -} - -template void impl_IFileUpdateRequest2::UserInputNeededMessage(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UserInputNeededMessage(get(value))); -} - -template void impl_ICachedFileUpdaterStatics::SetUpdateInformation(const Windows::Storage::IStorageFile & file, hstring_ref contentId, Windows::Storage::Provider::ReadActivationMode readMode, Windows::Storage::Provider::WriteActivationMode writeMode, Windows::Storage::Provider::CachedFileOptions options) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetUpdateInformation(get(file), get(contentId), readMode, writeMode, options)); -} - -inline void CachedFileUpdater::SetUpdateInformation(const Windows::Storage::IStorageFile & file, hstring_ref contentId, Windows::Storage::Provider::ReadActivationMode readMode, Windows::Storage::Provider::WriteActivationMode writeMode, Windows::Storage::Provider::CachedFileOptions options) -{ - get_activation_factory().SetUpdateInformation(file, contentId, readMode, writeMode, options); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Storage.Search.h b/10.0.14393.0/winrt/Windows.Storage.Search.h deleted file mode 100644 index 5d799cb61..000000000 --- a/10.0.14393.0/winrt/Windows.Storage.Search.h +++ /dev/null @@ -1,1857 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Storage.FileProperties.3.h" -#include "internal/Windows.Storage.Search.3.h" -#include "Windows.Storage.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddAsync(abi_arg_in indexableContent, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().AddAsync(*reinterpret_cast(&indexableContent))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateAsync(abi_arg_in indexableContent, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().UpdateAsync(*reinterpret_cast(&indexableContent))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(abi_arg_in contentId, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().DeleteAsync(*reinterpret_cast(&contentId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteMultipleAsync(abi_arg_in> contentIds, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().DeleteMultipleAsync(*reinterpret_cast *>(&contentIds))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAllAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().DeleteAllAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RetrievePropertiesAsync(abi_arg_in contentId, abi_arg_in> propertiesToRetrieve, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().RetrievePropertiesAsync(*reinterpret_cast(&contentId), *reinterpret_cast *>(&propertiesToRetrieve))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Revision(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().Revision()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCountAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetCountAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPropertiesAsync(abi_arg_out>>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPropertiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPropertiesRangeAsync(uint32_t startIndex, uint32_t maxItems, abi_arg_out>>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPropertiesAsync(startIndex, maxItems)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRangeAsync(uint32_t startIndex, uint32_t maxItems, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetAsync(startIndex, maxItems)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QueryFolder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryFolder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateQueryWithSortOrderAndLanguage(abi_arg_in searchFilter, abi_arg_in> propertiesToRetrieve, abi_arg_in> sortOrder, abi_arg_in searchFilterLanguage, abi_arg_out query) noexcept override - { - try - { - *query = detach(this->shim().CreateQuery(*reinterpret_cast(&searchFilter), *reinterpret_cast *>(&propertiesToRetrieve), *reinterpret_cast *>(&sortOrder), *reinterpret_cast(&searchFilterLanguage))); - return S_OK; - } - catch (...) - { - *query = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateQueryWithSortOrder(abi_arg_in searchFilter, abi_arg_in> propertiesToRetrieve, abi_arg_in> sortOrder, abi_arg_out query) noexcept override - { - try - { - *query = detach(this->shim().CreateQuery(*reinterpret_cast(&searchFilter), *reinterpret_cast *>(&propertiesToRetrieve), *reinterpret_cast *>(&sortOrder))); - return S_OK; - } - catch (...) - { - *query = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateQuery(abi_arg_in searchFilter, abi_arg_in> propertiesToRetrieve, abi_arg_out query) noexcept override - { - try - { - *query = detach(this->shim().CreateQuery(*reinterpret_cast(&searchFilter), *reinterpret_cast *>(&propertiesToRetrieve))); - return S_OK; - } - catch (...) - { - *query = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetIndexerWithName(abi_arg_in indexName, abi_arg_out index) noexcept override - { - try - { - *index = detach(this->shim().GetIndexer(*reinterpret_cast(&indexName))); - return S_OK; - } - catch (...) - { - *index = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIndexer(abi_arg_out index) noexcept override - { - try - { - *index = detach(this->shim().GetIndexer()); - return S_OK; - } - catch (...) - { - *index = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Id(abi_arg_in value) noexcept override - { - try - { - this->shim().Id(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Stream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Stream(abi_arg_in value) noexcept override - { - try - { - this->shim().Stream(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StreamContentType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StreamContentType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StreamContentType(abi_arg_in value) noexcept override - { - try - { - this->shim().StreamContentType(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FileTypeFilter(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FileTypeFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FolderDepth(Windows::Storage::Search::FolderDepth * value) noexcept override - { - try - { - *value = detach(this->shim().FolderDepth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FolderDepth(Windows::Storage::Search::FolderDepth value) noexcept override - { - try - { - this->shim().FolderDepth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ApplicationSearchFilter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationSearchFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ApplicationSearchFilter(abi_arg_in value) noexcept override - { - try - { - this->shim().ApplicationSearchFilter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserSearchFilter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserSearchFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UserSearchFilter(abi_arg_in value) noexcept override - { - try - { - this->shim().UserSearchFilter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Language(abi_arg_in value) noexcept override - { - try - { - this->shim().Language(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IndexerOption(Windows::Storage::Search::IndexerOption * value) noexcept override - { - try - { - *value = detach(this->shim().IndexerOption()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IndexerOption(Windows::Storage::Search::IndexerOption value) noexcept override - { - try - { - this->shim().IndexerOption(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SortOrder(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SortOrder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GroupPropertyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupPropertyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateStackOption(Windows::Storage::Search::DateStackOption * value) noexcept override - { - try - { - *value = detach(this->shim().DateStackOption()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveToString(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SaveToString()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadFromString(abi_arg_in value) noexcept override - { - try - { - this->shim().LoadFromString(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetThumbnailPrefetch(Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedSize, Windows::Storage::FileProperties::ThumbnailOptions options) noexcept override - { - try - { - this->shim().SetThumbnailPrefetch(mode, requestedSize, options); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPropertyPrefetch(Windows::Storage::FileProperties::PropertyPrefetchOptions options, abi_arg_in> propertiesToRetrieve) noexcept override - { - try - { - this->shim().SetPropertyPrefetch(options, *reinterpret_cast *>(&propertiesToRetrieve)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCommonFileQuery(Windows::Storage::Search::CommonFileQuery query, abi_arg_in> fileTypeFilter, abi_arg_out queryOptions) noexcept override - { - try - { - *queryOptions = detach(this->shim().CreateCommonFileQuery(query, *reinterpret_cast *>(&fileTypeFilter))); - return S_OK; - } - catch (...) - { - *queryOptions = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCommonFolderQuery(Windows::Storage::Search::CommonFolderQuery query, abi_arg_out queryOptions) noexcept override - { - try - { - *queryOptions = detach(this->shim().CreateCommonFolderQuery(query)); - return S_OK; - } - catch (...) - { - *queryOptions = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StorageProviderIdFilter(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().StorageProviderIdFilter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetFilesAsync(uint32_t startIndex, uint32_t maxNumberOfItems, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFilesAsync(startIndex, maxNumberOfItems)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFilesAsyncDefaultStartAndCount(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFilesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetMatchingPropertiesWithRanges(abi_arg_in file, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetMatchingPropertiesWithRanges(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetIndexedStateAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetIndexedStateAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFileQueryOverloadDefault(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFileQuery()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFileQuery(Windows::Storage::Search::CommonFileQuery query, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFileQuery(query)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFileQueryWithOptions(abi_arg_in queryOptions, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFileQueryWithOptions(*reinterpret_cast(&queryOptions))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFolderQueryOverloadDefault(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFolderQuery()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFolderQuery(Windows::Storage::Search::CommonFolderQuery query, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFolderQuery(query)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFolderQueryWithOptions(abi_arg_in queryOptions, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateFolderQueryWithOptions(*reinterpret_cast(&queryOptions))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateItemQuery(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateItemQuery()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateItemQueryWithOptions(abi_arg_in queryOptions, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateItemQueryWithOptions(*reinterpret_cast(&queryOptions))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFilesAsync(Windows::Storage::Search::CommonFileQuery query, uint32_t startIndex, uint32_t maxItemsToRetrieve, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFilesAsync(query, startIndex, maxItemsToRetrieve)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFilesAsyncOverloadDefaultStartAndCount(Windows::Storage::Search::CommonFileQuery query, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFilesAsync(query)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFoldersAsync(Windows::Storage::Search::CommonFolderQuery query, uint32_t startIndex, uint32_t maxItemsToRetrieve, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFoldersAsync(query, startIndex, maxItemsToRetrieve)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFoldersAsyncOverloadDefaultStartAndCount(Windows::Storage::Search::CommonFolderQuery query, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFoldersAsync(query)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemsAsync(uint32_t startIndex, uint32_t maxItemsToRetrieve, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemsAsync(startIndex, maxItemsToRetrieve)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AreQueryOptionsSupported(abi_arg_in queryOptions, bool * value) noexcept override - { - try - { - *value = detach(this->shim().AreQueryOptionsSupported(*reinterpret_cast(&queryOptions))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsCommonFolderQuerySupported(Windows::Storage::Search::CommonFolderQuery query, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCommonFolderQuerySupported(query)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsCommonFileQuerySupported(Windows::Storage::Search::CommonFileQuery query, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCommonFileQuerySupported(query)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetFoldersAsync(uint32_t startIndex, uint32_t maxNumberOfItems, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFoldersAsync(startIndex, maxNumberOfItems)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFoldersAsyncDefaultStartAndCount(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFoldersAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetItemsAsync(uint32_t startIndex, uint32_t maxNumberOfItems, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemsAsync(startIndex, maxNumberOfItems)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemsAsyncDefaultStartAndCount(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Folder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Folder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateModifiedSinceQuery(abi_arg_in lastQueryTime, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateModifiedSinceQuery(*reinterpret_cast(&lastQueryTime))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetItemCountAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemCountAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Folder(abi_arg_out container) noexcept override - { - try - { - *container = detach(this->shim().Folder()); - return S_OK; - } - catch (...) - { - *container = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContentsChanged(abi_arg_in> handler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().ContentsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContentsChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().ContentsChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_OptionsChanged(abi_arg_in> changedHandler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().OptionsChanged(*reinterpret_cast *>(&changedHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_OptionsChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().OptionsChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindStartIndexAsync(abi_arg_in value, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindStartIndexAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentQueryOptions(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentQueryOptions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ApplyNewQueryOptions(abi_arg_in newQueryOptions) noexcept override - { - try - { - this->shim().ApplyNewQueryOptions(*reinterpret_cast(&newQueryOptions)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Language(abi_arg_in value) noexcept override - { - try - { - this->shim().Language(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(abi_arg_in value) noexcept override - { - try - { - this->shim().Value(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Storage::Search { - -template Windows::Storage::Search::ContentIndexer impl_IContentIndexerStatics::GetIndexer(hstring_ref indexName) const -{ - Windows::Storage::Search::ContentIndexer index { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetIndexerWithName(get(indexName), put(index))); - return index; -} - -template Windows::Storage::Search::ContentIndexer impl_IContentIndexerStatics::GetIndexer() const -{ - Windows::Storage::Search::ContentIndexer index { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetIndexer(put(index))); - return index; -} - -template hstring impl_IIndexableContent::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template void impl_IIndexableContent::Id(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Id(get(value))); -} - -template Windows::Foundation::Collections::IMap impl_IIndexableContent::Properties() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStream impl_IIndexableContent::Stream() const -{ - Windows::Storage::Streams::IRandomAccessStream value; - check_hresult(static_cast(static_cast(*this))->get_Stream(put(value))); - return value; -} - -template void impl_IIndexableContent::Stream(const Windows::Storage::Streams::IRandomAccessStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Stream(get(value))); -} - -template hstring impl_IIndexableContent::StreamContentType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StreamContentType(put(value))); - return value; -} - -template void impl_IIndexableContent::StreamContentType(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StreamContentType(get(value))); -} - -template Windows::Foundation::IAsyncAction impl_IContentIndexer::AddAsync(const Windows::Storage::Search::IIndexableContent & indexableContent) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_AddAsync(get(indexableContent), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IContentIndexer::UpdateAsync(const Windows::Storage::Search::IIndexableContent & indexableContent) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateAsync(get(indexableContent), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IContentIndexer::DeleteAsync(hstring_ref contentId) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(get(contentId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IContentIndexer::DeleteMultipleAsync(const Windows::Foundation::Collections::IIterable & contentIds) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_DeleteMultipleAsync(get(contentIds), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IContentIndexer::DeleteAllAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAllAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IContentIndexer::RetrievePropertiesAsync(hstring_ref contentId, const Windows::Foundation::Collections::IIterable & propertiesToRetrieve) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_RetrievePropertiesAsync(get(contentId), get(propertiesToRetrieve), put(operation))); - return operation; -} - -template uint64_t impl_IContentIndexer::Revision() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Revision(&value)); - return value; -} - -template hstring impl_IValueAndLanguage::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template void impl_IValueAndLanguage::Language(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Language(get(value))); -} - -template Windows::IInspectable impl_IValueAndLanguage::Value() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template void impl_IValueAndLanguage::Value(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(get(value))); -} - -template Windows::Storage::Search::ContentIndexerQuery impl_IContentIndexerQueryOperations::CreateQuery(hstring_ref searchFilter, const Windows::Foundation::Collections::IIterable & propertiesToRetrieve, const Windows::Foundation::Collections::IIterable & sortOrder, hstring_ref searchFilterLanguage) const -{ - Windows::Storage::Search::ContentIndexerQuery query { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateQueryWithSortOrderAndLanguage(get(searchFilter), get(propertiesToRetrieve), get(sortOrder), get(searchFilterLanguage), put(query))); - return query; -} - -template Windows::Storage::Search::ContentIndexerQuery impl_IContentIndexerQueryOperations::CreateQuery(hstring_ref searchFilter, const Windows::Foundation::Collections::IIterable & propertiesToRetrieve, const Windows::Foundation::Collections::IIterable & sortOrder) const -{ - Windows::Storage::Search::ContentIndexerQuery query { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateQueryWithSortOrder(get(searchFilter), get(propertiesToRetrieve), get(sortOrder), put(query))); - return query; -} - -template Windows::Storage::Search::ContentIndexerQuery impl_IContentIndexerQueryOperations::CreateQuery(hstring_ref searchFilter, const Windows::Foundation::Collections::IIterable & propertiesToRetrieve) const -{ - Windows::Storage::Search::ContentIndexerQuery query { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateQuery(get(searchFilter), get(propertiesToRetrieve), put(query))); - return query; -} - -template Windows::Foundation::IAsyncOperation impl_IContentIndexerQuery::GetCountAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetCountAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation>> impl_IContentIndexerQuery::GetPropertiesAsync() const -{ - Windows::Foundation::IAsyncOperation>> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPropertiesAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation>> impl_IContentIndexerQuery::GetPropertiesAsync(uint32_t startIndex, uint32_t maxItems) const -{ - Windows::Foundation::IAsyncOperation>> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPropertiesRangeAsync(startIndex, maxItems, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IContentIndexerQuery::GetAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IContentIndexerQuery::GetAsync(uint32_t startIndex, uint32_t maxItems) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetRangeAsync(startIndex, maxItems, put(operation))); - return operation; -} - -template Windows::Storage::StorageFolder impl_IContentIndexerQuery::QueryFolder() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_QueryFolder(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IQueryOptions::FileTypeFilter() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_FileTypeFilter(put(value))); - return value; -} - -template Windows::Storage::Search::FolderDepth impl_IQueryOptions::FolderDepth() const -{ - Windows::Storage::Search::FolderDepth value {}; - check_hresult(static_cast(static_cast(*this))->get_FolderDepth(&value)); - return value; -} - -template void impl_IQueryOptions::FolderDepth(Windows::Storage::Search::FolderDepth value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FolderDepth(value)); -} - -template hstring impl_IQueryOptions::ApplicationSearchFilter() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ApplicationSearchFilter(put(value))); - return value; -} - -template void impl_IQueryOptions::ApplicationSearchFilter(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ApplicationSearchFilter(get(value))); -} - -template hstring impl_IQueryOptions::UserSearchFilter() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UserSearchFilter(put(value))); - return value; -} - -template void impl_IQueryOptions::UserSearchFilter(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UserSearchFilter(get(value))); -} - -template hstring impl_IQueryOptions::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template void impl_IQueryOptions::Language(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Language(get(value))); -} - -template Windows::Storage::Search::IndexerOption impl_IQueryOptions::IndexerOption() const -{ - Windows::Storage::Search::IndexerOption value {}; - check_hresult(static_cast(static_cast(*this))->get_IndexerOption(&value)); - return value; -} - -template void impl_IQueryOptions::IndexerOption(Windows::Storage::Search::IndexerOption value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IndexerOption(value)); -} - -template Windows::Foundation::Collections::IVector impl_IQueryOptions::SortOrder() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SortOrder(put(value))); - return value; -} - -template hstring impl_IQueryOptions::GroupPropertyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GroupPropertyName(put(value))); - return value; -} - -template Windows::Storage::Search::DateStackOption impl_IQueryOptions::DateStackOption() const -{ - Windows::Storage::Search::DateStackOption value {}; - check_hresult(static_cast(static_cast(*this))->get_DateStackOption(&value)); - return value; -} - -template hstring impl_IQueryOptions::SaveToString() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_SaveToString(put(value))); - return value; -} - -template void impl_IQueryOptions::LoadFromString(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LoadFromString(get(value))); -} - -template void impl_IQueryOptions::SetThumbnailPrefetch(Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedSize, Windows::Storage::FileProperties::ThumbnailOptions options) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetThumbnailPrefetch(mode, requestedSize, options)); -} - -template void impl_IQueryOptions::SetPropertyPrefetch(Windows::Storage::FileProperties::PropertyPrefetchOptions options, const Windows::Foundation::Collections::IIterable & propertiesToRetrieve) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPropertyPrefetch(options, get(propertiesToRetrieve))); -} - -template Windows::Foundation::Collections::IVector impl_IQueryOptionsWithProviderFilter::StorageProviderIdFilter() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_StorageProviderIdFilter(put(value))); - return value; -} - -template Windows::Storage::Search::QueryOptions impl_IQueryOptionsFactory::CreateCommonFileQuery(Windows::Storage::Search::CommonFileQuery query, const Windows::Foundation::Collections::IIterable & fileTypeFilter) const -{ - Windows::Storage::Search::QueryOptions queryOptions { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCommonFileQuery(query, get(fileTypeFilter), put(queryOptions))); - return queryOptions; -} - -template Windows::Storage::Search::QueryOptions impl_IQueryOptionsFactory::CreateCommonFolderQuery(Windows::Storage::Search::CommonFolderQuery query) const -{ - Windows::Storage::Search::QueryOptions queryOptions { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCommonFolderQuery(query, put(queryOptions))); - return queryOptions; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageQueryResultBase::GetItemCountAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemCountAsync(put(operation))); - return operation; -} - -template Windows::Storage::StorageFolder impl_IStorageQueryResultBase::Folder() const -{ - Windows::Storage::StorageFolder container { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Folder(put(container))); - return container; -} - -template event_token impl_IStorageQueryResultBase::ContentsChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ContentsChanged(get(handler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IStorageQueryResultBase::ContentsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::Search::IStorageQueryResultBase::remove_ContentsChanged, ContentsChanged(handler)); -} - -template void impl_IStorageQueryResultBase::ContentsChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContentsChanged(eventCookie)); -} - -template event_token impl_IStorageQueryResultBase::OptionsChanged(const Windows::Foundation::TypedEventHandler & changedHandler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_OptionsChanged(get(changedHandler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IStorageQueryResultBase::OptionsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & changedHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::Search::IStorageQueryResultBase::remove_OptionsChanged, OptionsChanged(changedHandler)); -} - -template void impl_IStorageQueryResultBase::OptionsChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_OptionsChanged(eventCookie)); -} - -template Windows::Foundation::IAsyncOperation impl_IStorageQueryResultBase::FindStartIndexAsync(const Windows::IInspectable & value) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FindStartIndexAsync(get(value), put(operation))); - return operation; -} - -template Windows::Storage::Search::QueryOptions impl_IStorageQueryResultBase::GetCurrentQueryOptions() const -{ - Windows::Storage::Search::QueryOptions value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentQueryOptions(put(value))); - return value; -} - -template void impl_IStorageQueryResultBase::ApplyNewQueryOptions(const Windows::Storage::Search::QueryOptions & newQueryOptions) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ApplyNewQueryOptions(get(newQueryOptions))); -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFileQueryResult::GetFilesAsync(uint32_t startIndex, uint32_t maxNumberOfItems) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFilesAsync(startIndex, maxNumberOfItems, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFileQueryResult::GetFilesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFilesAsyncDefaultStartAndCount(put(operation))); - return operation; -} - -template Windows::Foundation::Collections::IMap> impl_IStorageFileQueryResult2::GetMatchingPropertiesWithRanges(const Windows::Storage::StorageFile & file) const -{ - Windows::Foundation::Collections::IMap> result; - check_hresult(static_cast(static_cast(*this))->abi_GetMatchingPropertiesWithRanges(get(file), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFolderQueryResult::GetFoldersAsync(uint32_t startIndex, uint32_t maxNumberOfItems) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFoldersAsync(startIndex, maxNumberOfItems, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFolderQueryResult::GetFoldersAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFoldersAsyncDefaultStartAndCount(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageItemQueryResult::GetItemsAsync(uint32_t startIndex, uint32_t maxNumberOfItems) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemsAsync(startIndex, maxNumberOfItems, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageItemQueryResult::GetItemsAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemsAsyncDefaultStartAndCount(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFolderQueryOperations::GetIndexedStateAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetIndexedStateAsync(put(operation))); - return operation; -} - -template Windows::Storage::Search::StorageFileQueryResult impl_IStorageFolderQueryOperations::CreateFileQuery() const -{ - Windows::Storage::Search::StorageFileQueryResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileQueryOverloadDefault(put(value))); - return value; -} - -template Windows::Storage::Search::StorageFileQueryResult impl_IStorageFolderQueryOperations::CreateFileQuery(Windows::Storage::Search::CommonFileQuery query) const -{ - Windows::Storage::Search::StorageFileQueryResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileQuery(query, put(value))); - return value; -} - -template Windows::Storage::Search::StorageFileQueryResult impl_IStorageFolderQueryOperations::CreateFileQueryWithOptions(const Windows::Storage::Search::QueryOptions & queryOptions) const -{ - Windows::Storage::Search::StorageFileQueryResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileQueryWithOptions(get(queryOptions), put(value))); - return value; -} - -template Windows::Storage::Search::StorageFolderQueryResult impl_IStorageFolderQueryOperations::CreateFolderQuery() const -{ - Windows::Storage::Search::StorageFolderQueryResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFolderQueryOverloadDefault(put(value))); - return value; -} - -template Windows::Storage::Search::StorageFolderQueryResult impl_IStorageFolderQueryOperations::CreateFolderQuery(Windows::Storage::Search::CommonFolderQuery query) const -{ - Windows::Storage::Search::StorageFolderQueryResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFolderQuery(query, put(value))); - return value; -} - -template Windows::Storage::Search::StorageFolderQueryResult impl_IStorageFolderQueryOperations::CreateFolderQueryWithOptions(const Windows::Storage::Search::QueryOptions & queryOptions) const -{ - Windows::Storage::Search::StorageFolderQueryResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFolderQueryWithOptions(get(queryOptions), put(value))); - return value; -} - -template Windows::Storage::Search::StorageItemQueryResult impl_IStorageFolderQueryOperations::CreateItemQuery() const -{ - Windows::Storage::Search::StorageItemQueryResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateItemQuery(put(value))); - return value; -} - -template Windows::Storage::Search::StorageItemQueryResult impl_IStorageFolderQueryOperations::CreateItemQueryWithOptions(const Windows::Storage::Search::QueryOptions & queryOptions) const -{ - Windows::Storage::Search::StorageItemQueryResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateItemQueryWithOptions(get(queryOptions), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFolderQueryOperations::GetFilesAsync(Windows::Storage::Search::CommonFileQuery query, uint32_t startIndex, uint32_t maxItemsToRetrieve) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFilesAsync(query, startIndex, maxItemsToRetrieve, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFolderQueryOperations::GetFilesAsync(Windows::Storage::Search::CommonFileQuery query) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFilesAsyncOverloadDefaultStartAndCount(query, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFolderQueryOperations::GetFoldersAsync(Windows::Storage::Search::CommonFolderQuery query, uint32_t startIndex, uint32_t maxItemsToRetrieve) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFoldersAsync(query, startIndex, maxItemsToRetrieve, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFolderQueryOperations::GetFoldersAsync(Windows::Storage::Search::CommonFolderQuery query) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFoldersAsyncOverloadDefaultStartAndCount(query, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFolderQueryOperations::GetItemsAsync(uint32_t startIndex, uint32_t maxItemsToRetrieve) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemsAsync(startIndex, maxItemsToRetrieve, put(operation))); - return operation; -} - -template bool impl_IStorageFolderQueryOperations::AreQueryOptionsSupported(const Windows::Storage::Search::QueryOptions & queryOptions) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_AreQueryOptionsSupported(get(queryOptions), &value)); - return value; -} - -template bool impl_IStorageFolderQueryOperations::IsCommonFolderQuerySupported(Windows::Storage::Search::CommonFolderQuery query) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsCommonFolderQuerySupported(query, &value)); - return value; -} - -template bool impl_IStorageFolderQueryOperations::IsCommonFileQuerySupported(Windows::Storage::Search::CommonFileQuery query) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsCommonFileQuerySupported(query, &value)); - return value; -} - -template Windows::Storage::StorageFolder impl_IStorageLibraryContentChangedTriggerDetails::Folder() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Folder(put(value))); - return value; -} - -template Windows::Storage::Search::StorageItemQueryResult impl_IStorageLibraryContentChangedTriggerDetails::CreateModifiedSinceQuery(const Windows::Foundation::DateTime & lastQueryTime) const -{ - Windows::Storage::Search::StorageItemQueryResult result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateModifiedSinceQuery(get(lastQueryTime), put(result))); - return result; -} - -inline Windows::Storage::Search::ContentIndexer ContentIndexer::GetIndexer(hstring_ref indexName) -{ - return get_activation_factory().GetIndexer(indexName); -} - -inline Windows::Storage::Search::ContentIndexer ContentIndexer::GetIndexer() -{ - return get_activation_factory().GetIndexer(); -} - -inline IndexableContent::IndexableContent() : - IndexableContent(activate_instance()) -{} - -inline QueryOptions::QueryOptions() : - QueryOptions(activate_instance()) -{} - -inline QueryOptions::QueryOptions(Windows::Storage::Search::CommonFileQuery query, const Windows::Foundation::Collections::IIterable & fileTypeFilter) : - QueryOptions(get_activation_factory().CreateCommonFileQuery(query, fileTypeFilter)) -{} - -inline QueryOptions::QueryOptions(Windows::Storage::Search::CommonFolderQuery query) : - QueryOptions(get_activation_factory().CreateCommonFolderQuery(query)) -{} - -inline ValueAndLanguage::ValueAndLanguage() : - ValueAndLanguage(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Storage.Streams.h b/10.0.14393.0/winrt/Windows.Storage.Streams.h deleted file mode 100644 index b6810e369..000000000 --- a/10.0.14393.0/winrt/Windows.Storage.Streams.h +++ /dev/null @@ -1,1796 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "Windows.Storage.h" -#include "Windows.Foundation.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Capacity(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Capacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Length(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Length(uint32_t value) noexcept override - { - try - { - this->shim().Length(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(uint32_t capacity, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(capacity)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCopyFromMemoryBuffer(abi_arg_in input, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateCopyFromMemoryBuffer(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateMemoryBufferOverIBuffer(abi_arg_in input, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMemoryBufferOverIBuffer(*reinterpret_cast(&input))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UnconsumedBufferLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UnconsumedBufferLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UnicodeEncoding(Windows::Storage::Streams::UnicodeEncoding * value) noexcept override - { - try - { - *value = detach(this->shim().UnicodeEncoding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UnicodeEncoding(Windows::Storage::Streams::UnicodeEncoding value) noexcept override - { - try - { - this->shim().UnicodeEncoding(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ByteOrder(Windows::Storage::Streams::ByteOrder * value) noexcept override - { - try - { - *value = detach(this->shim().ByteOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ByteOrder(Windows::Storage::Streams::ByteOrder value) noexcept override - { - try - { - this->shim().ByteOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputStreamOptions(Windows::Storage::Streams::InputStreamOptions * value) noexcept override - { - try - { - *value = detach(this->shim().InputStreamOptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InputStreamOptions(Windows::Storage::Streams::InputStreamOptions value) noexcept override - { - try - { - this->shim().InputStreamOptions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadByte(uint8_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReadByte()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadBytes(uint32_t __valueSize, abi_arg_out value) noexcept override - { - try - { - this->shim().ReadBytes(*value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadBuffer(uint32_t length, abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().ReadBuffer(length)); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadBoolean(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ReadBoolean()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadGuid(GUID * value) noexcept override - { - try - { - *value = detach(this->shim().ReadGuid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadInt16(int16_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReadInt16()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadInt32(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReadInt32()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadInt64(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReadInt64()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadUInt16(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReadUInt16()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadUInt32(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReadUInt32()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadUInt64(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReadUInt64()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadSingle(float * value) noexcept override - { - try - { - *value = detach(this->shim().ReadSingle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadDouble(double * value) noexcept override - { - try - { - *value = detach(this->shim().ReadDouble()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadString(uint32_t codeUnitCount, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReadString(codeUnitCount)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadDateTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReadDateTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadTimeSpan(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReadTimeSpan()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadAsync(uint32_t count, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LoadAsync(count)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DetachBuffer(abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().DetachBuffer()); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DetachStream(abi_arg_out stream) noexcept override - { - try - { - *stream = detach(this->shim().DetachStream()); - return S_OK; - } - catch (...) - { - *stream = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateDataReader(abi_arg_in inputStream, abi_arg_out dataReader) noexcept override - { - try - { - *dataReader = detach(this->shim().CreateDataReader(*reinterpret_cast(&inputStream))); - return S_OK; - } - catch (...) - { - *dataReader = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromBuffer(abi_arg_in buffer, abi_arg_out dataReader) noexcept override - { - try - { - *dataReader = detach(this->shim().FromBuffer(*reinterpret_cast(&buffer))); - return S_OK; - } - catch (...) - { - *dataReader = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UnstoredBufferLength(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UnstoredBufferLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UnicodeEncoding(Windows::Storage::Streams::UnicodeEncoding * value) noexcept override - { - try - { - *value = detach(this->shim().UnicodeEncoding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UnicodeEncoding(Windows::Storage::Streams::UnicodeEncoding value) noexcept override - { - try - { - this->shim().UnicodeEncoding(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ByteOrder(Windows::Storage::Streams::ByteOrder * value) noexcept override - { - try - { - *value = detach(this->shim().ByteOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ByteOrder(Windows::Storage::Streams::ByteOrder value) noexcept override - { - try - { - this->shim().ByteOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteByte(uint8_t value) noexcept override - { - try - { - this->shim().WriteByte(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteBytes(uint32_t __valueSize, abi_arg_in * value) noexcept override - { - try - { - this->shim().WriteBytes(array_ref(value, value + __valueSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteBuffer(abi_arg_in buffer) noexcept override - { - try - { - this->shim().WriteBuffer(*reinterpret_cast(&buffer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteBufferRange(abi_arg_in buffer, uint32_t start, uint32_t count) noexcept override - { - try - { - this->shim().WriteBuffer(*reinterpret_cast(&buffer), start, count); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteBoolean(bool value) noexcept override - { - try - { - this->shim().WriteBoolean(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteGuid(GUID value) noexcept override - { - try - { - this->shim().WriteGuid(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteInt16(int16_t value) noexcept override - { - try - { - this->shim().WriteInt16(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteInt32(int32_t value) noexcept override - { - try - { - this->shim().WriteInt32(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteInt64(int64_t value) noexcept override - { - try - { - this->shim().WriteInt64(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteUInt16(uint16_t value) noexcept override - { - try - { - this->shim().WriteUInt16(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteUInt32(uint32_t value) noexcept override - { - try - { - this->shim().WriteUInt32(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteUInt64(uint64_t value) noexcept override - { - try - { - this->shim().WriteUInt64(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteSingle(float value) noexcept override - { - try - { - this->shim().WriteSingle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteDouble(double value) noexcept override - { - try - { - this->shim().WriteDouble(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteDateTime(abi_arg_in value) noexcept override - { - try - { - this->shim().WriteDateTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteTimeSpan(abi_arg_in value) noexcept override - { - try - { - this->shim().WriteTimeSpan(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteString(abi_arg_in value, uint32_t * codeUnitCount) noexcept override - { - try - { - *codeUnitCount = detach(this->shim().WriteString(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MeasureString(abi_arg_in value, uint32_t * codeUnitCount) noexcept override - { - try - { - *codeUnitCount = detach(this->shim().MeasureString(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StoreAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().StoreAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FlushAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FlushAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DetachBuffer(abi_arg_out buffer) noexcept override - { - try - { - *buffer = detach(this->shim().DetachBuffer()); - return S_OK; - } - catch (...) - { - *buffer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DetachStream(abi_arg_out outputStream) noexcept override - { - try - { - *outputStream = detach(this->shim().DetachStream()); - return S_OK; - } - catch (...) - { - *outputStream = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateDataWriter(abi_arg_in outputStream, abi_arg_out dataWriter) noexcept override - { - try - { - *dataWriter = detach(this->shim().CreateDataWriter(*reinterpret_cast(&outputStream))); - return S_OK; - } - catch (...) - { - *dataWriter = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadAsync(abi_arg_in buffer, uint32_t count, Windows::Storage::Streams::InputStreamOptions options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ReadAsync(*reinterpret_cast(&buffer), count, options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OpenSequentialReadAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().OpenSequentialReadAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_WriteAsync(abi_arg_in buffer, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().WriteAsync(*reinterpret_cast(&buffer))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FlushAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FlushAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Size(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Size(uint64_t value) noexcept override - { - try - { - this->shim().Size(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInputStreamAt(uint64_t position, abi_arg_out stream) noexcept override - { - try - { - *stream = detach(this->shim().GetInputStreamAt(position)); - return S_OK; - } - catch (...) - { - *stream = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetOutputStreamAt(uint64_t position, abi_arg_out stream) noexcept override - { - try - { - *stream = detach(this->shim().GetOutputStreamAt(position)); - return S_OK; - } - catch (...) - { - *stream = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Seek(uint64_t position) noexcept override - { - try - { - this->shim().Seek(position); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CloneStream(abi_arg_out stream) noexcept override - { - try - { - *stream = detach(this->shim().CloneStream()); - return S_OK; - } - catch (...) - { - *stream = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanRead(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanRead()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanWrite(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanWrite()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OpenReadAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().OpenReadAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromFile(abi_arg_in file, abi_arg_out streamReference) noexcept override - { - try - { - *streamReference = detach(this->shim().CreateFromFile(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *streamReference = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromUri(abi_arg_in uri, abi_arg_out streamReference) noexcept override - { - try - { - *streamReference = detach(this->shim().CreateFromUri(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *streamReference = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromStream(abi_arg_in stream, abi_arg_out streamReference) noexcept override - { - try - { - *streamReference = detach(this->shim().CreateFromStream(*reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *streamReference = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CopyAsync(abi_arg_in source, abi_arg_in destination, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CopyAsync(*reinterpret_cast(&source), *reinterpret_cast(&destination))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopySizeAsync(abi_arg_in source, abi_arg_in destination, uint64_t bytesToCopy, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CopyAsync(*reinterpret_cast(&source), *reinterpret_cast(&destination), bytesToCopy)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyAndCloseAsync(abi_arg_in source, abi_arg_in destination, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CopyAndCloseAsync(*reinterpret_cast(&source), *reinterpret_cast(&destination))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -} - -namespace Windows::Storage::Streams { - -template uint32_t impl_IDataReader::UnconsumedBufferLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UnconsumedBufferLength(&value)); - return value; -} - -template Windows::Storage::Streams::UnicodeEncoding impl_IDataReader::UnicodeEncoding() const -{ - Windows::Storage::Streams::UnicodeEncoding value {}; - check_hresult(static_cast(static_cast(*this))->get_UnicodeEncoding(&value)); - return value; -} - -template void impl_IDataReader::UnicodeEncoding(Windows::Storage::Streams::UnicodeEncoding value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UnicodeEncoding(value)); -} - -template Windows::Storage::Streams::ByteOrder impl_IDataReader::ByteOrder() const -{ - Windows::Storage::Streams::ByteOrder value {}; - check_hresult(static_cast(static_cast(*this))->get_ByteOrder(&value)); - return value; -} - -template void impl_IDataReader::ByteOrder(Windows::Storage::Streams::ByteOrder value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ByteOrder(value)); -} - -template Windows::Storage::Streams::InputStreamOptions impl_IDataReader::InputStreamOptions() const -{ - Windows::Storage::Streams::InputStreamOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_InputStreamOptions(&value)); - return value; -} - -template void impl_IDataReader::InputStreamOptions(Windows::Storage::Streams::InputStreamOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InputStreamOptions(value)); -} - -template uint8_t impl_IDataReader::ReadByte() const -{ - uint8_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadByte(&value)); - return value; -} - -template void impl_IDataReader::ReadBytes(array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReadBytes(value.size(), get(value))); -} - -template Windows::Storage::Streams::IBuffer impl_IDataReader::ReadBuffer(uint32_t length) const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_ReadBuffer(length, put(buffer))); - return buffer; -} - -template bool impl_IDataReader::ReadBoolean() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadBoolean(&value)); - return value; -} - -template GUID impl_IDataReader::ReadGuid() const -{ - GUID value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadGuid(&value)); - return value; -} - -template int16_t impl_IDataReader::ReadInt16() const -{ - int16_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadInt16(&value)); - return value; -} - -template int32_t impl_IDataReader::ReadInt32() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadInt32(&value)); - return value; -} - -template int64_t impl_IDataReader::ReadInt64() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadInt64(&value)); - return value; -} - -template uint16_t impl_IDataReader::ReadUInt16() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadUInt16(&value)); - return value; -} - -template uint32_t impl_IDataReader::ReadUInt32() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadUInt32(&value)); - return value; -} - -template uint64_t impl_IDataReader::ReadUInt64() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadUInt64(&value)); - return value; -} - -template float impl_IDataReader::ReadSingle() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadSingle(&value)); - return value; -} - -template double impl_IDataReader::ReadDouble() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadDouble(&value)); - return value; -} - -template hstring impl_IDataReader::ReadString(uint32_t codeUnitCount) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_ReadString(codeUnitCount, put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IDataReader::ReadDateTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadDateTime(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IDataReader::ReadTimeSpan() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->abi_ReadTimeSpan(put(value))); - return value; -} - -template Windows::Storage::Streams::DataReaderLoadOperation impl_IDataReader::LoadAsync(uint32_t count) const -{ - Windows::Storage::Streams::DataReaderLoadOperation operation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_LoadAsync(count, put(operation))); - return operation; -} - -template Windows::Storage::Streams::IBuffer impl_IDataReader::DetachBuffer() const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_DetachBuffer(put(buffer))); - return buffer; -} - -template Windows::Storage::Streams::IInputStream impl_IDataReader::DetachStream() const -{ - Windows::Storage::Streams::IInputStream stream; - check_hresult(static_cast(static_cast(*this))->abi_DetachStream(put(stream))); - return stream; -} - -template Windows::Storage::Streams::DataReader impl_IDataReaderFactory::CreateDataReader(const Windows::Storage::Streams::IInputStream & inputStream) const -{ - Windows::Storage::Streams::DataReader dataReader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDataReader(get(inputStream), put(dataReader))); - return dataReader; -} - -template Windows::Storage::Streams::DataReader impl_IDataReaderStatics::FromBuffer(const Windows::Storage::Streams::IBuffer & buffer) const -{ - Windows::Storage::Streams::DataReader dataReader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromBuffer(get(buffer), put(dataReader))); - return dataReader; -} - -template uint32_t impl_IDataWriter::UnstoredBufferLength() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UnstoredBufferLength(&value)); - return value; -} - -template Windows::Storage::Streams::UnicodeEncoding impl_IDataWriter::UnicodeEncoding() const -{ - Windows::Storage::Streams::UnicodeEncoding value {}; - check_hresult(static_cast(static_cast(*this))->get_UnicodeEncoding(&value)); - return value; -} - -template void impl_IDataWriter::UnicodeEncoding(Windows::Storage::Streams::UnicodeEncoding value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UnicodeEncoding(value)); -} - -template Windows::Storage::Streams::ByteOrder impl_IDataWriter::ByteOrder() const -{ - Windows::Storage::Streams::ByteOrder value {}; - check_hresult(static_cast(static_cast(*this))->get_ByteOrder(&value)); - return value; -} - -template void impl_IDataWriter::ByteOrder(Windows::Storage::Streams::ByteOrder value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ByteOrder(value)); -} - -template void impl_IDataWriter::WriteByte(uint8_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteByte(value)); -} - -template void impl_IDataWriter::WriteBytes(array_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteBytes(value.size(), get(value))); -} - -template void impl_IDataWriter::WriteBuffer(const Windows::Storage::Streams::IBuffer & buffer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteBuffer(get(buffer))); -} - -template void impl_IDataWriter::WriteBuffer(const Windows::Storage::Streams::IBuffer & buffer, uint32_t start, uint32_t count) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteBufferRange(get(buffer), start, count)); -} - -template void impl_IDataWriter::WriteBoolean(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteBoolean(value)); -} - -template void impl_IDataWriter::WriteGuid(GUID value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteGuid(value)); -} - -template void impl_IDataWriter::WriteInt16(int16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteInt16(value)); -} - -template void impl_IDataWriter::WriteInt32(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteInt32(value)); -} - -template void impl_IDataWriter::WriteInt64(int64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteInt64(value)); -} - -template void impl_IDataWriter::WriteUInt16(uint16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteUInt16(value)); -} - -template void impl_IDataWriter::WriteUInt32(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteUInt32(value)); -} - -template void impl_IDataWriter::WriteUInt64(uint64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteUInt64(value)); -} - -template void impl_IDataWriter::WriteSingle(float value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteSingle(value)); -} - -template void impl_IDataWriter::WriteDouble(double value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteDouble(value)); -} - -template void impl_IDataWriter::WriteDateTime(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteDateTime(get(value))); -} - -template void impl_IDataWriter::WriteTimeSpan(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_WriteTimeSpan(get(value))); -} - -template uint32_t impl_IDataWriter::WriteString(hstring_ref value) const -{ - uint32_t codeUnitCount {}; - check_hresult(static_cast(static_cast(*this))->abi_WriteString(get(value), &codeUnitCount)); - return codeUnitCount; -} - -template uint32_t impl_IDataWriter::MeasureString(hstring_ref value) const -{ - uint32_t codeUnitCount {}; - check_hresult(static_cast(static_cast(*this))->abi_MeasureString(get(value), &codeUnitCount)); - return codeUnitCount; -} - -template Windows::Storage::Streams::DataWriterStoreOperation impl_IDataWriter::StoreAsync() const -{ - Windows::Storage::Streams::DataWriterStoreOperation operation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_StoreAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDataWriter::FlushAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FlushAsync(put(operation))); - return operation; -} - -template Windows::Storage::Streams::IBuffer impl_IDataWriter::DetachBuffer() const -{ - Windows::Storage::Streams::IBuffer buffer; - check_hresult(static_cast(static_cast(*this))->abi_DetachBuffer(put(buffer))); - return buffer; -} - -template Windows::Storage::Streams::IOutputStream impl_IDataWriter::DetachStream() const -{ - Windows::Storage::Streams::IOutputStream outputStream; - check_hresult(static_cast(static_cast(*this))->abi_DetachStream(put(outputStream))); - return outputStream; -} - -template Windows::Storage::Streams::DataWriter impl_IDataWriterFactory::CreateDataWriter(const Windows::Storage::Streams::IOutputStream & outputStream) const -{ - Windows::Storage::Streams::DataWriter dataWriter { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDataWriter(get(outputStream), put(dataWriter))); - return dataWriter; -} - -template Windows::Foundation::IAsyncOperation impl_IRandomAccessStreamReference::OpenReadAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_OpenReadAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IRandomAccessStreamStatics::CopyAsync(const Windows::Storage::Streams::IInputStream & source, const Windows::Storage::Streams::IOutputStream & destination) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_CopyAsync(get(source), get(destination), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IRandomAccessStreamStatics::CopyAsync(const Windows::Storage::Streams::IInputStream & source, const Windows::Storage::Streams::IOutputStream & destination, uint64_t bytesToCopy) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_CopySizeAsync(get(source), get(destination), bytesToCopy, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IRandomAccessStreamStatics::CopyAndCloseAsync(const Windows::Storage::Streams::IInputStream & source, const Windows::Storage::Streams::IOutputStream & destination) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_CopyAndCloseAsync(get(source), get(destination), put(operation))); - return operation; -} - -template Windows::Storage::Streams::Buffer impl_IBufferFactory::Create(uint32_t capacity) const -{ - Windows::Storage::Streams::Buffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(capacity, put(value))); - return value; -} - -template uint32_t impl_IBuffer::Capacity() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Capacity(&value)); - return value; -} - -template uint32_t impl_IBuffer::Length() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template void impl_IBuffer::Length(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Length(value)); -} - -template Windows::Storage::Streams::Buffer impl_IBufferStatics::CreateCopyFromMemoryBuffer(const Windows::Foundation::IMemoryBuffer & input) const -{ - Windows::Storage::Streams::Buffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCopyFromMemoryBuffer(get(input), put(value))); - return value; -} - -template Windows::Foundation::MemoryBuffer impl_IBufferStatics::CreateMemoryBufferOverIBuffer(const Windows::Storage::Streams::IBuffer & input) const -{ - Windows::Foundation::MemoryBuffer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMemoryBufferOverIBuffer(get(input), put(value))); - return value; -} - -template hstring impl_IContentTypeProvider::ContentType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContentType(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IInputStreamReference::OpenSequentialReadAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_OpenSequentialReadAsync(put(operation))); - return operation; -} - -template Windows::Storage::Streams::RandomAccessStreamReference impl_IRandomAccessStreamReferenceStatics::CreateFromFile(const Windows::Storage::IStorageFile & file) const -{ - Windows::Storage::Streams::RandomAccessStreamReference streamReference { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromFile(get(file), put(streamReference))); - return streamReference; -} - -template Windows::Storage::Streams::RandomAccessStreamReference impl_IRandomAccessStreamReferenceStatics::CreateFromUri(const Windows::Foundation::Uri & uri) const -{ - Windows::Storage::Streams::RandomAccessStreamReference streamReference { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromUri(get(uri), put(streamReference))); - return streamReference; -} - -template Windows::Storage::Streams::RandomAccessStreamReference impl_IRandomAccessStreamReferenceStatics::CreateFromStream(const Windows::Storage::Streams::IRandomAccessStream & stream) const -{ - Windows::Storage::Streams::RandomAccessStreamReference streamReference { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromStream(get(stream), put(streamReference))); - return streamReference; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IInputStream::ReadAsync(const Windows::Storage::Streams::IBuffer & buffer, uint32_t count, Windows::Storage::Streams::InputStreamOptions options) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_ReadAsync(get(buffer), count, options, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IOutputStream::WriteAsync(const Windows::Storage::Streams::IBuffer & buffer) const -{ - Windows::Foundation::IAsyncOperationWithProgress operation; - check_hresult(static_cast(static_cast(*this))->abi_WriteAsync(get(buffer), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IOutputStream::FlushAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FlushAsync(put(operation))); - return operation; -} - -template uint64_t impl_IRandomAccessStream::Size() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(&value)); - return value; -} - -template void impl_IRandomAccessStream::Size(uint64_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Size(value)); -} - -template Windows::Storage::Streams::IInputStream impl_IRandomAccessStream::GetInputStreamAt(uint64_t position) const -{ - Windows::Storage::Streams::IInputStream stream; - check_hresult(static_cast(static_cast(*this))->abi_GetInputStreamAt(position, put(stream))); - return stream; -} - -template Windows::Storage::Streams::IOutputStream impl_IRandomAccessStream::GetOutputStreamAt(uint64_t position) const -{ - Windows::Storage::Streams::IOutputStream stream; - check_hresult(static_cast(static_cast(*this))->abi_GetOutputStreamAt(position, put(stream))); - return stream; -} - -template uint64_t impl_IRandomAccessStream::Position() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(&value)); - return value; -} - -template void impl_IRandomAccessStream::Seek(uint64_t position) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Seek(position)); -} - -template Windows::Storage::Streams::IRandomAccessStream impl_IRandomAccessStream::CloneStream() const -{ - Windows::Storage::Streams::IRandomAccessStream stream; - check_hresult(static_cast(static_cast(*this))->abi_CloneStream(put(stream))); - return stream; -} - -template bool impl_IRandomAccessStream::CanRead() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanRead(&value)); - return value; -} - -template bool impl_IRandomAccessStream::CanWrite() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanWrite(&value)); - return value; -} - -inline Buffer::Buffer(uint32_t capacity) : - Buffer(get_activation_factory().Create(capacity)) -{} - -inline Windows::Storage::Streams::Buffer Buffer::CreateCopyFromMemoryBuffer(const Windows::Foundation::IMemoryBuffer & input) -{ - return get_activation_factory().CreateCopyFromMemoryBuffer(input); -} - -inline Windows::Foundation::MemoryBuffer Buffer::CreateMemoryBufferOverIBuffer(const Windows::Storage::Streams::IBuffer & input) -{ - return get_activation_factory().CreateMemoryBufferOverIBuffer(input); -} - -inline DataReader::DataReader(const Windows::Storage::Streams::IInputStream & inputStream) : - DataReader(get_activation_factory().CreateDataReader(inputStream)) -{} - -inline Windows::Storage::Streams::DataReader DataReader::FromBuffer(const Windows::Storage::Streams::IBuffer & buffer) -{ - return get_activation_factory().FromBuffer(buffer); -} - -inline DataWriter::DataWriter() : - DataWriter(activate_instance()) -{} - -inline DataWriter::DataWriter(const Windows::Storage::Streams::IOutputStream & outputStream) : - DataWriter(get_activation_factory().CreateDataWriter(outputStream)) -{} - -inline InMemoryRandomAccessStream::InMemoryRandomAccessStream() : - InMemoryRandomAccessStream(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperationWithProgress RandomAccessStream::CopyAsync(const Windows::Storage::Streams::IInputStream & source, const Windows::Storage::Streams::IOutputStream & destination) -{ - return get_activation_factory().CopyAsync(source, destination); -} - -inline Windows::Foundation::IAsyncOperationWithProgress RandomAccessStream::CopyAsync(const Windows::Storage::Streams::IInputStream & source, const Windows::Storage::Streams::IOutputStream & destination, uint64_t bytesToCopy) -{ - return get_activation_factory().CopyAsync(source, destination, bytesToCopy); -} - -inline Windows::Foundation::IAsyncOperationWithProgress RandomAccessStream::CopyAndCloseAsync(const Windows::Storage::Streams::IInputStream & source, const Windows::Storage::Streams::IOutputStream & destination) -{ - return get_activation_factory().CopyAndCloseAsync(source, destination); -} - -inline Windows::Storage::Streams::RandomAccessStreamReference RandomAccessStreamReference::CreateFromFile(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().CreateFromFile(file); -} - -inline Windows::Storage::Streams::RandomAccessStreamReference RandomAccessStreamReference::CreateFromUri(const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().CreateFromUri(uri); -} - -inline Windows::Storage::Streams::RandomAccessStreamReference RandomAccessStreamReference::CreateFromStream(const Windows::Storage::Streams::IRandomAccessStream & stream) -{ - return get_activation_factory().CreateFromStream(stream); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.Storage.h b/10.0.14393.0/winrt/Windows.Storage.h deleted file mode 100644 index 22ca57e6e..000000000 --- a/10.0.14393.0/winrt/Windows.Storage.h +++ /dev/null @@ -1,4929 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Storage.FileProperties.3.h" -#include "internal/Windows.Storage.3.h" -#include "Windows.Foundation.h" -#include "Windows.Foundation.Collections.h" -#include "Windows.Storage.Search.h" -#include "Windows.Storage.Streams.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::Storage { - -template ApplicationDataSetVersionHandler::ApplicationDataSetVersionHandler(L lambda) : - ApplicationDataSetVersionHandler(impl::make_delegate, ApplicationDataSetVersionHandler>(std::forward(lambda))) -{} - -template ApplicationDataSetVersionHandler::ApplicationDataSetVersionHandler(F * function) : - ApplicationDataSetVersionHandler([=](auto && ... args) { function(args ...); }) -{} - -template ApplicationDataSetVersionHandler::ApplicationDataSetVersionHandler(O * object, M method) : - ApplicationDataSetVersionHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void ApplicationDataSetVersionHandler::operator()(const Windows::Storage::SetVersionRequest & setVersionRequest) const -{ - check_hresult((*this)->abi_Invoke(get(setVersionRequest))); -} - -template StreamedFileDataRequestedHandler::StreamedFileDataRequestedHandler(L lambda) : - StreamedFileDataRequestedHandler(impl::make_delegate, StreamedFileDataRequestedHandler>(std::forward(lambda))) -{} - -template StreamedFileDataRequestedHandler::StreamedFileDataRequestedHandler(F * function) : - StreamedFileDataRequestedHandler([=](auto && ... args) { function(args ...); }) -{} - -template StreamedFileDataRequestedHandler::StreamedFileDataRequestedHandler(O * object, M method) : - StreamedFileDataRequestedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void StreamedFileDataRequestedHandler::operator()(const Windows::Storage::StreamedFileDataRequest & stream) const -{ - check_hresult((*this)->abi_Invoke(get(stream))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Version(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Version()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetVersionAsync(uint32_t desiredVersion, abi_arg_in handler, abi_arg_out setVersionOperation) noexcept override - { - try - { - *setVersionOperation = detach(this->shim().SetVersionAsync(desiredVersion, *reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - *setVersionOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearAllAsync(abi_arg_out clearOperation) noexcept override - { - try - { - *clearOperation = detach(this->shim().ClearAsync()); - return S_OK; - } - catch (...) - { - *clearOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearAsync(Windows::Storage::ApplicationDataLocality locality, abi_arg_out clearOperation) noexcept override - { - try - { - *clearOperation = detach(this->shim().ClearAsync(locality)); - return S_OK; - } - catch (...) - { - *clearOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoamingSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RoamingSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalFolder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalFolder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoamingFolder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RoamingFolder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemporaryFolder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemporaryFolder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DataChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DataChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DataChanged(event_token token) noexcept override - { - try - { - this->shim().DataChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SignalDataChanged() noexcept override - { - try - { - this->shim().SignalDataChanged(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoamingStorageQuota(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().RoamingStorageQuota()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalCacheFolder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalCacheFolder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPublisherCacheFolder(abi_arg_in folderName, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetPublisherCacheFolder(*reinterpret_cast(&folderName))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearPublisherCacheFolderAsync(abi_arg_in folderName, abi_arg_out clearOperation) noexcept override - { - try - { - *clearOperation = detach(this->shim().ClearPublisherCacheFolderAsync(*reinterpret_cast(&folderName))); - return S_OK; - } - catch (...) - { - *clearOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SharedLocalFolder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SharedLocalFolder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Locality(Windows::Storage::ApplicationDataLocality * value) noexcept override - { - try - { - *value = detach(this->shim().Locality()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Values(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Values()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Containers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Containers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateContainer(abi_arg_in name, Windows::Storage::ApplicationDataCreateDisposition disposition, abi_arg_out container) noexcept override - { - try - { - *container = detach(this->shim().CreateContainer(*reinterpret_cast(&name), disposition)); - return S_OK; - } - catch (...) - { - *container = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteContainer(abi_arg_in name) noexcept override - { - try - { - this->shim().DeleteContainer(*reinterpret_cast(&name)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Current(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Current()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForUserAsync(abi_arg_in user, abi_arg_out> getForUserOperation) noexcept override - { - try - { - *getForUserOperation = detach(this->shim().GetForUserAsync(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *getForUserOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_DeferUpdates(abi_arg_in file) noexcept override - { - try - { - this->shim().DeferUpdates(*reinterpret_cast(&file)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CompleteUpdatesAsync(abi_arg_in file, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CompleteUpdatesAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFileAsync(abi_arg_in desiredName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFileAsync(*reinterpret_cast(&desiredName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFolderAsync(abi_arg_in desiredName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFolderAsync(*reinterpret_cast(&desiredName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFileWithCollisionOptionAsync(abi_arg_in desiredName, Windows::Storage::CreationCollisionOption option, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFileAsync(*reinterpret_cast(&desiredName), option)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFolderWithCollisionOptionAsync(abi_arg_in desiredName, Windows::Storage::CreationCollisionOption option, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFolderAsync(*reinterpret_cast(&desiredName), option)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFileForUserAsync(abi_arg_in user, abi_arg_in desiredName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFileForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&desiredName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFolderForUserAsync(abi_arg_in user, abi_arg_in desiredName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFolderForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&desiredName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFileForUserWithCollisionOptionAsync(abi_arg_in user, abi_arg_in desiredName, Windows::Storage::CreationCollisionOption option, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFileForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&desiredName), option)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFolderForUserWithCollisionOptionAsync(abi_arg_in user, abi_arg_in desiredName, Windows::Storage::CreationCollisionOption option, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFolderForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&desiredName), option)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadTextAsync(abi_arg_in file, abi_arg_out> textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().ReadTextAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadTextWithEncodingAsync(abi_arg_in file, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out> textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().ReadTextAsync(*reinterpret_cast(&file), encoding)); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteTextAsync(abi_arg_in file, abi_arg_in contents, abi_arg_out textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().WriteTextAsync(*reinterpret_cast(&file), *reinterpret_cast(&contents))); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteTextWithEncodingAsync(abi_arg_in file, abi_arg_in contents, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().WriteTextAsync(*reinterpret_cast(&file), *reinterpret_cast(&contents), encoding)); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendTextAsync(abi_arg_in file, abi_arg_in contents, abi_arg_out textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().AppendTextAsync(*reinterpret_cast(&file), *reinterpret_cast(&contents))); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendTextWithEncodingAsync(abi_arg_in file, abi_arg_in contents, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().AppendTextAsync(*reinterpret_cast(&file), *reinterpret_cast(&contents), encoding)); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadLinesAsync(abi_arg_in file, abi_arg_out>> linesOperation) noexcept override - { - try - { - *linesOperation = detach(this->shim().ReadLinesAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *linesOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadLinesWithEncodingAsync(abi_arg_in file, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out>> linesOperation) noexcept override - { - try - { - *linesOperation = detach(this->shim().ReadLinesAsync(*reinterpret_cast(&file), encoding)); - return S_OK; - } - catch (...) - { - *linesOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteLinesAsync(abi_arg_in file, abi_arg_in> lines, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().WriteLinesAsync(*reinterpret_cast(&file), *reinterpret_cast *>(&lines))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteLinesWithEncodingAsync(abi_arg_in file, abi_arg_in> lines, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().WriteLinesAsync(*reinterpret_cast(&file), *reinterpret_cast *>(&lines), encoding)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendLinesAsync(abi_arg_in file, abi_arg_in> lines, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().AppendLinesAsync(*reinterpret_cast(&file), *reinterpret_cast *>(&lines))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendLinesWithEncodingAsync(abi_arg_in file, abi_arg_in> lines, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().AppendLinesAsync(*reinterpret_cast(&file), *reinterpret_cast *>(&lines), encoding)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadBufferAsync(abi_arg_in file, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ReadBufferAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteBufferAsync(abi_arg_in file, abi_arg_in buffer, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().WriteBufferAsync(*reinterpret_cast(&file), *reinterpret_cast(&buffer))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteBytesAsync(abi_arg_in file, uint32_t __bufferSize, abi_arg_in * buffer, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().WriteBytesAsync(*reinterpret_cast(&file), array_ref(buffer, buffer + __bufferSize))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CameraRoll(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CameraRoll()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Playlists(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Playlists()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SavedPictures(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SavedPictures()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MusicLibrary(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MusicLibrary()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PicturesLibrary(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PicturesLibrary()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VideosLibrary(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VideosLibrary()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DocumentsLibrary(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DocumentsLibrary()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HomeGroup(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HomeGroup()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemovableDevices(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemovableDevices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaServerDevices(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaServerDevices()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Objects3D(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Objects3D()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppCaptures(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppCaptures()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecordedCalls(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RecordedCalls()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetFolderForUserAsync(abi_arg_in user, Windows::Storage::KnownFolderId folderId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFolderForUserAsync(*reinterpret_cast(&user), folderId)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadTextAsync(abi_arg_in absolutePath, abi_arg_out> textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().ReadTextAsync(*reinterpret_cast(&absolutePath))); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadTextWithEncodingAsync(abi_arg_in absolutePath, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out> textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().ReadTextAsync(*reinterpret_cast(&absolutePath), encoding)); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteTextAsync(abi_arg_in absolutePath, abi_arg_in contents, abi_arg_out textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().WriteTextAsync(*reinterpret_cast(&absolutePath), *reinterpret_cast(&contents))); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteTextWithEncodingAsync(abi_arg_in absolutePath, abi_arg_in contents, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().WriteTextAsync(*reinterpret_cast(&absolutePath), *reinterpret_cast(&contents), encoding)); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendTextAsync(abi_arg_in absolutePath, abi_arg_in contents, abi_arg_out textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().AppendTextAsync(*reinterpret_cast(&absolutePath), *reinterpret_cast(&contents))); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendTextWithEncodingAsync(abi_arg_in absolutePath, abi_arg_in contents, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out textOperation) noexcept override - { - try - { - *textOperation = detach(this->shim().AppendTextAsync(*reinterpret_cast(&absolutePath), *reinterpret_cast(&contents), encoding)); - return S_OK; - } - catch (...) - { - *textOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadLinesAsync(abi_arg_in absolutePath, abi_arg_out>> linesOperation) noexcept override - { - try - { - *linesOperation = detach(this->shim().ReadLinesAsync(*reinterpret_cast(&absolutePath))); - return S_OK; - } - catch (...) - { - *linesOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadLinesWithEncodingAsync(abi_arg_in absolutePath, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out>> linesOperation) noexcept override - { - try - { - *linesOperation = detach(this->shim().ReadLinesAsync(*reinterpret_cast(&absolutePath), encoding)); - return S_OK; - } - catch (...) - { - *linesOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteLinesAsync(abi_arg_in absolutePath, abi_arg_in> lines, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().WriteLinesAsync(*reinterpret_cast(&absolutePath), *reinterpret_cast *>(&lines))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteLinesWithEncodingAsync(abi_arg_in absolutePath, abi_arg_in> lines, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().WriteLinesAsync(*reinterpret_cast(&absolutePath), *reinterpret_cast *>(&lines), encoding)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendLinesAsync(abi_arg_in absolutePath, abi_arg_in> lines, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().AppendLinesAsync(*reinterpret_cast(&absolutePath), *reinterpret_cast *>(&lines))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendLinesWithEncodingAsync(abi_arg_in absolutePath, abi_arg_in> lines, Windows::Storage::Streams::UnicodeEncoding encoding, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().AppendLinesAsync(*reinterpret_cast(&absolutePath), *reinterpret_cast *>(&lines), encoding)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReadBufferAsync(abi_arg_in absolutePath, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ReadBufferAsync(*reinterpret_cast(&absolutePath))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteBufferAsync(abi_arg_in absolutePath, abi_arg_in buffer, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().WriteBufferAsync(*reinterpret_cast(&absolutePath), *reinterpret_cast(&buffer))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WriteBytesAsync(abi_arg_in absolutePath, uint32_t __bufferSize, abi_arg_in * buffer, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().WriteBytesAsync(*reinterpret_cast(&absolutePath), array_ref(buffer, buffer + __bufferSize))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentVersion(uint32_t * currentVersion) noexcept override - { - try - { - *currentVersion = detach(this->shim().CurrentVersion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredVersion(uint32_t * desiredVersion) noexcept override - { - try - { - *desiredVersion = detach(this->shim().DesiredVersion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FileType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FileType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenAsync(Windows::Storage::FileAccessMode accessMode, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().OpenAsync(accessMode)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenTransactedWriteAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().OpenTransactedWriteAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyOverloadDefaultNameAndOptions(abi_arg_in destinationFolder, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CopyAsync(*reinterpret_cast(&destinationFolder))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyOverloadDefaultOptions(abi_arg_in destinationFolder, abi_arg_in desiredNewName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CopyAsync(*reinterpret_cast(&destinationFolder), *reinterpret_cast(&desiredNewName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyOverload(abi_arg_in destinationFolder, abi_arg_in desiredNewName, Windows::Storage::NameCollisionOption option, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CopyAsync(*reinterpret_cast(&destinationFolder), *reinterpret_cast(&desiredNewName), option)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyAndReplaceAsync(abi_arg_in fileToReplace, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().CopyAndReplaceAsync(*reinterpret_cast(&fileToReplace))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveOverloadDefaultNameAndOptions(abi_arg_in destinationFolder, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().MoveAsync(*reinterpret_cast(&destinationFolder))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveOverloadDefaultOptions(abi_arg_in destinationFolder, abi_arg_in desiredNewName, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().MoveAsync(*reinterpret_cast(&destinationFolder), *reinterpret_cast(&desiredNewName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveOverload(abi_arg_in destinationFolder, abi_arg_in desiredNewName, Windows::Storage::NameCollisionOption option, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().MoveAsync(*reinterpret_cast(&destinationFolder), *reinterpret_cast(&desiredNewName), option)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveAndReplaceAsync(abi_arg_in fileToReplace, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().MoveAndReplaceAsync(*reinterpret_cast(&fileToReplace))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OpenWithOptionsAsync(Windows::Storage::FileAccessMode accessMode, Windows::Storage::StorageOpenOptions options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().OpenAsync(accessMode, options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OpenTransactedWriteWithOptionsAsync(Windows::Storage::StorageOpenOptions options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().OpenTransactedWriteAsync(options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsAvailable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAvailable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetFileFromPathAsync(abi_arg_in path, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFileFromPathAsync(*reinterpret_cast(&path))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFileFromApplicationUriAsync(abi_arg_in uri, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFileFromApplicationUriAsync(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStreamedFileAsync(abi_arg_in displayNameWithExtension, abi_arg_in dataRequested, abi_arg_in thumbnail, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateStreamedFileAsync(*reinterpret_cast(&displayNameWithExtension), *reinterpret_cast(&dataRequested), *reinterpret_cast(&thumbnail))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReplaceWithStreamedFileAsync(abi_arg_in fileToReplace, abi_arg_in dataRequested, abi_arg_in thumbnail, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ReplaceWithStreamedFileAsync(*reinterpret_cast(&fileToReplace), *reinterpret_cast(&dataRequested), *reinterpret_cast(&thumbnail))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStreamedFileFromUriAsync(abi_arg_in displayNameWithExtension, abi_arg_in uri, abi_arg_in thumbnail, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateStreamedFileFromUriAsync(*reinterpret_cast(&displayNameWithExtension), *reinterpret_cast(&uri), *reinterpret_cast(&thumbnail))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReplaceWithStreamedFileFromUriAsync(abi_arg_in fileToReplace, abi_arg_in uri, abi_arg_in thumbnail, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().ReplaceWithStreamedFileFromUriAsync(*reinterpret_cast(&fileToReplace), *reinterpret_cast(&uri), *reinterpret_cast(&thumbnail))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFileAsyncOverloadDefaultOptions(abi_arg_in desiredName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFileAsync(*reinterpret_cast(&desiredName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFileAsync(abi_arg_in desiredName, Windows::Storage::CreationCollisionOption options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFileAsync(*reinterpret_cast(&desiredName), options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFolderAsyncOverloadDefaultOptions(abi_arg_in desiredName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFolderAsync(*reinterpret_cast(&desiredName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFolderAsync(abi_arg_in desiredName, Windows::Storage::CreationCollisionOption options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().CreateFolderAsync(*reinterpret_cast(&desiredName), options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFileAsync(abi_arg_in name, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFileAsync(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFolderAsync(abi_arg_in name, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFolderAsync(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemAsync(abi_arg_in name, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemAsync(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFilesAsyncOverloadDefaultOptionsStartAndCount(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFilesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFoldersAsyncOverloadDefaultOptionsStartAndCount(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFoldersAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemsAsyncOverloadDefaultStartAndCount(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetItemsAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryGetItemAsync(abi_arg_in name, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TryGetItemAsync(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetFolderFromPathAsync(abi_arg_in path, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFolderFromPathAsync(*reinterpret_cast(&path))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RenameAsyncOverloadDefaultOptions(abi_arg_in desiredName, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().RenameAsync(*reinterpret_cast(&desiredName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RenameAsync(abi_arg_in desiredName, Windows::Storage::NameCollisionOption option, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().RenameAsync(*reinterpret_cast(&desiredName), option)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsyncOverloadDefaultOptions(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().DeleteAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteAsync(Windows::Storage::StorageDeleteOption option, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().DeleteAsync(option)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBasicPropertiesAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetBasicPropertiesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Path(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Path()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Attributes(Windows::Storage::FileAttributes * value) noexcept override - { - try - { - *value = detach(this->shim().Attributes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateCreated(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateCreated()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsOfType(Windows::Storage::StorageItemTypes type, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOfType(type)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetParentAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetParentAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEqual(abi_arg_in item, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEqual(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(Windows::Storage::FileProperties::ThumbnailMode mode, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetThumbnailAsync(mode)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetThumbnailAsyncOverloadDefaultOptions(Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedSize, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetThumbnailAsync(mode, requestedSize)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetThumbnailAsync(Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedSize, Windows::Storage::FileProperties::ThumbnailOptions options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetThumbnailAsync(mode, requestedSize, options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FolderRelativeId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FolderRelativeId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions(Windows::Storage::FileProperties::ThumbnailMode mode, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetScaledImageAsThumbnailAsync(mode)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetScaledImageAsThumbnailAsyncOverloadDefaultOptions(Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedSize, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetScaledImageAsThumbnailAsync(mode, requestedSize)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetScaledImageAsThumbnailAsync(Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedSize, Windows::Storage::FileProperties::ThumbnailOptions options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetScaledImageAsThumbnailAsync(mode, requestedSize, options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Provider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Provider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAddFolderAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestAddFolderAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestRemoveFolderAsync(abi_arg_in folder, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestRemoveFolderAsync(*reinterpret_cast(&folder))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Folders(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Folders()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SaveFolder(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SaveFolder()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DefinitionChanged(abi_arg_in> handler, event_token * eventCookie) noexcept override - { - try - { - *eventCookie = detach(this->shim().DefinitionChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DefinitionChanged(event_token eventCookie) noexcept override - { - try - { - this->shim().DefinitionChanged(eventCookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeTracker(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChangeTracker()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeType(Windows::Storage::StorageLibraryChangeType * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Path(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Path()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreviousPath(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreviousPath()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsOfType(Windows::Storage::StorageItemTypes type, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOfType(type)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStorageItemAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetStorageItemAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReadBatchAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().ReadBatchAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AcceptChangesAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().AcceptChangesAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetChangeReader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetChangeReader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Enable() noexcept override - { - try - { - this->shim().Enable(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Reset() noexcept override - { - try - { - this->shim().Reset(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetLibraryAsync(Windows::Storage::KnownLibraryId libraryId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetLibraryAsync(libraryId)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetLibraryForUserAsync(abi_arg_in user, Windows::Storage::KnownLibraryId libraryId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetLibraryForUserAsync(*reinterpret_cast(&user), libraryId)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Stream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Stream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CommitAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().CommitAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FailAndClose(Windows::Storage::StreamedFileFailureMode failureMode) noexcept override - { - try - { - this->shim().FailAndClose(failureMode); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EncodingBitrate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EncodingBitrate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LatitudeDecimal(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LatitudeDecimal()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LongitudeDecimal(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LongitudeDecimal()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HorizontalSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalSize()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalSize()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Producer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Producer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Publisher(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Publisher()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubTitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SubTitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Writer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Writer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Year(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Year()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlbumArtist(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlbumArtist()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlbumTitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlbumTitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Artist(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Artist()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Composer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Composer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Conductor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Conductor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayArtist(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayArtist()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Genre(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Genre()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrackNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrackNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CameraManufacturer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CameraManufacturer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CameraModel(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CameraModel()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateTaken(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateTaken()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeopleNames(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PeopleNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Author(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Author()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Comment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Comment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemNameDisplay(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemNameDisplay()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Keywords(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Keywords()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rating(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Rating()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Audio(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Audio()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GPS(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GPS()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Media(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Media()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Music(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Music()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Photo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Photo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Video(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Video()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Image(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Image()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Director(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Director()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameHeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameHeight()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameWidth(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameWidth()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TotalBitrate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TotalBitrate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::Storage { - -template Windows::Foundation::IAsyncOperation impl_IStorageLibraryStatics::GetLibraryAsync(Windows::Storage::KnownLibraryId libraryId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetLibraryAsync(libraryId, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageLibraryStatics2::GetLibraryForUserAsync(const Windows::System::User & user, Windows::Storage::KnownLibraryId libraryId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetLibraryForUserAsync(get(user), libraryId, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageLibrary::RequestAddFolderAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestAddFolderAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageLibrary::RequestRemoveFolderAsync(const Windows::Storage::StorageFolder & folder) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestRemoveFolderAsync(get(folder), put(operation))); - return operation; -} - -template Windows::Foundation::Collections::IObservableVector impl_IStorageLibrary::Folders() const -{ - Windows::Foundation::Collections::IObservableVector value; - check_hresult(static_cast(static_cast(*this))->get_Folders(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IStorageLibrary::SaveFolder() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SaveFolder(put(value))); - return value; -} - -template event_token impl_IStorageLibrary::DefinitionChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token eventCookie {}; - check_hresult(static_cast(static_cast(*this))->add_DefinitionChanged(get(handler), &eventCookie)); - return eventCookie; -} - -template event_revoker impl_IStorageLibrary::DefinitionChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::IStorageLibrary::remove_DefinitionChanged, DefinitionChanged(handler)); -} - -template void impl_IStorageLibrary::DefinitionChanged(event_token eventCookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DefinitionChanged(eventCookie)); -} - -template Windows::Storage::StorageLibraryChangeTracker impl_IStorageLibrary2::ChangeTracker() const -{ - Windows::Storage::StorageLibraryChangeTracker value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChangeTracker(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersStatics::MusicLibrary() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MusicLibrary(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersStatics::PicturesLibrary() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PicturesLibrary(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersStatics::VideosLibrary() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VideosLibrary(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersStatics::DocumentsLibrary() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DocumentsLibrary(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersStatics::HomeGroup() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HomeGroup(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersStatics::RemovableDevices() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemovableDevices(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersStatics::MediaServerDevices() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaServerDevices(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersStatics2::Objects3D() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Objects3D(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersStatics2::AppCaptures() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppCaptures(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersStatics2::RecordedCalls() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RecordedCalls(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IKnownFoldersStatics3::GetFolderForUserAsync(const Windows::System::User & user, Windows::Storage::KnownFolderId folderId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFolderForUserAsync(get(user), folderId, put(operation))); - return operation; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersPlaylistsStatics::Playlists() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Playlists(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersCameraRollStatics::CameraRoll() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CameraRoll(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IKnownFoldersSavedPicturesStatics::SavedPictures() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SavedPictures(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IDownloadsFolderStatics::CreateFileAsync(hstring_ref desiredName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileAsync(get(desiredName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDownloadsFolderStatics::CreateFolderAsync(hstring_ref desiredName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFolderAsync(get(desiredName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDownloadsFolderStatics::CreateFileAsync(hstring_ref desiredName, Windows::Storage::CreationCollisionOption option) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileWithCollisionOptionAsync(get(desiredName), option, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDownloadsFolderStatics::CreateFolderAsync(hstring_ref desiredName, Windows::Storage::CreationCollisionOption option) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFolderWithCollisionOptionAsync(get(desiredName), option, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDownloadsFolderStatics2::CreateFileForUserAsync(const Windows::System::User & user, hstring_ref desiredName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileForUserAsync(get(user), get(desiredName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDownloadsFolderStatics2::CreateFolderForUserAsync(const Windows::System::User & user, hstring_ref desiredName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFolderForUserAsync(get(user), get(desiredName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDownloadsFolderStatics2::CreateFileForUserAsync(const Windows::System::User & user, hstring_ref desiredName, Windows::Storage::CreationCollisionOption option) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileForUserWithCollisionOptionAsync(get(user), get(desiredName), option, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IDownloadsFolderStatics2::CreateFolderForUserAsync(const Windows::System::User & user, hstring_ref desiredName, Windows::Storage::CreationCollisionOption option) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFolderForUserWithCollisionOptionAsync(get(user), get(desiredName), option, put(operation))); - return operation; -} - -template Windows::Storage::StorageLibraryChangeType impl_IStorageLibraryChange::ChangeType() const -{ - Windows::Storage::StorageLibraryChangeType value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeType(&value)); - return value; -} - -template hstring impl_IStorageLibraryChange::Path() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Path(put(value))); - return value; -} - -template hstring impl_IStorageLibraryChange::PreviousPath() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PreviousPath(put(value))); - return value; -} - -template bool impl_IStorageLibraryChange::IsOfType(Windows::Storage::StorageItemTypes type) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsOfType(type, &value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageLibraryChange::GetStorageItemAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetStorageItemAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageItem::RenameAsync(hstring_ref desiredName) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_RenameAsyncOverloadDefaultOptions(get(desiredName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageItem::RenameAsync(hstring_ref desiredName, Windows::Storage::NameCollisionOption option) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_RenameAsync(get(desiredName), option, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageItem::DeleteAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsyncOverloadDefaultOptions(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageItem::DeleteAsync(Windows::Storage::StorageDeleteOption option) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_DeleteAsync(option, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItem::GetBasicPropertiesAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetBasicPropertiesAsync(put(operation))); - return operation; -} - -template hstring impl_IStorageItem::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template hstring impl_IStorageItem::Path() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Path(put(value))); - return value; -} - -template Windows::Storage::FileAttributes impl_IStorageItem::Attributes() const -{ - Windows::Storage::FileAttributes value {}; - check_hresult(static_cast(static_cast(*this))->get_Attributes(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IStorageItem::DateCreated() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_DateCreated(put(value))); - return value; -} - -template bool impl_IStorageItem::IsOfType(Windows::Storage::StorageItemTypes type) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsOfType(type, &value)); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageLibraryChangeReader::ReadBatchAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_ReadBatchAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageLibraryChangeReader::AcceptChangesAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_AcceptChangesAsync(put(operation))); - return operation; -} - -template Windows::Storage::StorageLibraryChangeReader impl_IStorageLibraryChangeTracker::GetChangeReader() const -{ - Windows::Storage::StorageLibraryChangeReader value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetChangeReader(put(value))); - return value; -} - -template void impl_IStorageLibraryChangeTracker::Enable() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Enable()); -} - -template void impl_IStorageLibraryChangeTracker::Reset() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Reset()); -} - -template void impl_IStreamedFileDataRequest::FailAndClose(Windows::Storage::StreamedFileFailureMode failureMode) const -{ - check_hresult(static_cast(static_cast(*this))->abi_FailAndClose(failureMode)); -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFileStatics::GetFileFromPathAsync(hstring_ref path) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFileFromPathAsync(get(path), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFileStatics::GetFileFromApplicationUriAsync(const Windows::Foundation::Uri & uri) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFileFromApplicationUriAsync(get(uri), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFileStatics::CreateStreamedFileAsync(hstring_ref displayNameWithExtension, const Windows::Storage::StreamedFileDataRequestedHandler & dataRequested, const Windows::Storage::Streams::IRandomAccessStreamReference & thumbnail) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateStreamedFileAsync(get(displayNameWithExtension), get(dataRequested), get(thumbnail), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFileStatics::ReplaceWithStreamedFileAsync(const Windows::Storage::IStorageFile & fileToReplace, const Windows::Storage::StreamedFileDataRequestedHandler & dataRequested, const Windows::Storage::Streams::IRandomAccessStreamReference & thumbnail) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ReplaceWithStreamedFileAsync(get(fileToReplace), get(dataRequested), get(thumbnail), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFileStatics::CreateStreamedFileFromUriAsync(hstring_ref displayNameWithExtension, const Windows::Foundation::Uri & uri, const Windows::Storage::Streams::IRandomAccessStreamReference & thumbnail) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateStreamedFileFromUriAsync(get(displayNameWithExtension), get(uri), get(thumbnail), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFileStatics::ReplaceWithStreamedFileFromUriAsync(const Windows::Storage::IStorageFile & fileToReplace, const Windows::Foundation::Uri & uri, const Windows::Storage::Streams::IRandomAccessStreamReference & thumbnail) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ReplaceWithStreamedFileFromUriAsync(get(fileToReplace), get(uri), get(thumbnail), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFolder::CreateFileAsync(hstring_ref desiredName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileAsyncOverloadDefaultOptions(get(desiredName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFolder::CreateFileAsync(hstring_ref desiredName, Windows::Storage::CreationCollisionOption options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFileAsync(get(desiredName), options, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFolder::CreateFolderAsync(hstring_ref desiredName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFolderAsyncOverloadDefaultOptions(get(desiredName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFolder::CreateFolderAsync(hstring_ref desiredName, Windows::Storage::CreationCollisionOption options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CreateFolderAsync(get(desiredName), options, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFolder::GetFileAsync(hstring_ref name) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFileAsync(get(name), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFolder::GetFolderAsync(hstring_ref name) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFolderAsync(get(name), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFolder::GetItemAsync(hstring_ref name) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemAsync(get(name), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFolder::GetFilesAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFilesAsyncOverloadDefaultOptionsStartAndCount(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFolder::GetFoldersAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFoldersAsyncOverloadDefaultOptionsStartAndCount(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IStorageFolder::GetItemsAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_GetItemsAsyncOverloadDefaultStartAndCount(put(operation))); - return operation; -} - -template hstring impl_IStorageFile::FileType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FileType(put(value))); - return value; -} - -template hstring impl_IStorageFile::ContentType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContentType(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFile::OpenAsync(Windows::Storage::FileAccessMode accessMode) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_OpenAsync(accessMode, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFile::OpenTransactedWriteAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_OpenTransactedWriteAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFile::CopyAsync(const Windows::Storage::IStorageFolder & destinationFolder) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CopyOverloadDefaultNameAndOptions(get(destinationFolder), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFile::CopyAsync(const Windows::Storage::IStorageFolder & destinationFolder, hstring_ref desiredNewName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CopyOverloadDefaultOptions(get(destinationFolder), get(desiredNewName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFile::CopyAsync(const Windows::Storage::IStorageFolder & destinationFolder, hstring_ref desiredNewName, Windows::Storage::NameCollisionOption option) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CopyOverload(get(destinationFolder), get(desiredNewName), option, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageFile::CopyAndReplaceAsync(const Windows::Storage::IStorageFile & fileToReplace) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_CopyAndReplaceAsync(get(fileToReplace), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageFile::MoveAsync(const Windows::Storage::IStorageFolder & destinationFolder) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_MoveOverloadDefaultNameAndOptions(get(destinationFolder), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageFile::MoveAsync(const Windows::Storage::IStorageFolder & destinationFolder, hstring_ref desiredNewName) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_MoveOverloadDefaultOptions(get(destinationFolder), get(desiredNewName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageFile::MoveAsync(const Windows::Storage::IStorageFolder & destinationFolder, hstring_ref desiredNewName, Windows::Storage::NameCollisionOption option) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_MoveOverload(get(destinationFolder), get(desiredNewName), option, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IStorageFile::MoveAndReplaceAsync(const Windows::Storage::IStorageFile & fileToReplace) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_MoveAndReplaceAsync(get(fileToReplace), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFolderStatics::GetFolderFromPathAsync(hstring_ref path) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFolderFromPathAsync(get(path), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItem2::GetParentAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetParentAsync(put(operation))); - return operation; -} - -template bool impl_IStorageItem2::IsEqual(const Windows::Storage::IStorageItem & item) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEqual(get(item), &value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemProperties::GetThumbnailAsync(Windows::Storage::FileProperties::ThumbnailMode mode) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(mode, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemProperties::GetThumbnailAsync(Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedSize) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetThumbnailAsyncOverloadDefaultOptions(mode, requestedSize, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemProperties::GetThumbnailAsync(Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedSize, Windows::Storage::FileProperties::ThumbnailOptions options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetThumbnailAsync(mode, requestedSize, options, put(operation))); - return operation; -} - -template hstring impl_IStorageItemProperties::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IStorageItemProperties::DisplayType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayType(put(value))); - return value; -} - -template hstring impl_IStorageItemProperties::FolderRelativeId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FolderRelativeId(put(value))); - return value; -} - -template Windows::Storage::FileProperties::StorageItemContentProperties impl_IStorageItemProperties::Properties() const -{ - Windows::Storage::FileProperties::StorageItemContentProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemProperties2::GetScaledImageAsThumbnailAsync(Windows::Storage::FileProperties::ThumbnailMode mode) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions(mode, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemProperties2::GetScaledImageAsThumbnailAsync(Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedSize) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetScaledImageAsThumbnailAsyncOverloadDefaultOptions(mode, requestedSize, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageItemProperties2::GetScaledImageAsThumbnailAsync(Windows::Storage::FileProperties::ThumbnailMode mode, uint32_t requestedSize, Windows::Storage::FileProperties::ThumbnailOptions options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetScaledImageAsThumbnailAsync(mode, requestedSize, options, put(operation))); - return operation; -} - -template Windows::Storage::StorageProvider impl_IStorageItemPropertiesWithProvider::Provider() const -{ - Windows::Storage::StorageProvider value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Provider(put(value))); - return value; -} - -template bool impl_IStorageFilePropertiesWithAvailability::IsAvailable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAvailable(&value)); - return value; -} - -template hstring impl_IStorageProvider::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IStorageProvider::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFolder2::TryGetItemAsync(hstring_ref name) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_TryGetItemAsync(get(name), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFile2::OpenAsync(Windows::Storage::FileAccessMode accessMode, Windows::Storage::StorageOpenOptions options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_OpenWithOptionsAsync(accessMode, options, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IStorageFile2::OpenTransactedWriteAsync(Windows::Storage::StorageOpenOptions options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_OpenTransactedWriteWithOptionsAsync(options, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IFileIOStatics::ReadTextAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation textOperation; - check_hresult(static_cast(static_cast(*this))->abi_ReadTextAsync(get(file), put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IFileIOStatics::ReadTextAsync(const Windows::Storage::IStorageFile & file, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncOperation textOperation; - check_hresult(static_cast(static_cast(*this))->abi_ReadTextWithEncodingAsync(get(file), encoding, put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncAction impl_IFileIOStatics::WriteTextAsync(const Windows::Storage::IStorageFile & file, hstring_ref contents) const -{ - Windows::Foundation::IAsyncAction textOperation; - check_hresult(static_cast(static_cast(*this))->abi_WriteTextAsync(get(file), get(contents), put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncAction impl_IFileIOStatics::WriteTextAsync(const Windows::Storage::IStorageFile & file, hstring_ref contents, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncAction textOperation; - check_hresult(static_cast(static_cast(*this))->abi_WriteTextWithEncodingAsync(get(file), get(contents), encoding, put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncAction impl_IFileIOStatics::AppendTextAsync(const Windows::Storage::IStorageFile & file, hstring_ref contents) const -{ - Windows::Foundation::IAsyncAction textOperation; - check_hresult(static_cast(static_cast(*this))->abi_AppendTextAsync(get(file), get(contents), put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncAction impl_IFileIOStatics::AppendTextAsync(const Windows::Storage::IStorageFile & file, hstring_ref contents, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncAction textOperation; - check_hresult(static_cast(static_cast(*this))->abi_AppendTextWithEncodingAsync(get(file), get(contents), encoding, put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncOperation> impl_IFileIOStatics::ReadLinesAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation> linesOperation; - check_hresult(static_cast(static_cast(*this))->abi_ReadLinesAsync(get(file), put(linesOperation))); - return linesOperation; -} - -template Windows::Foundation::IAsyncOperation> impl_IFileIOStatics::ReadLinesAsync(const Windows::Storage::IStorageFile & file, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncOperation> linesOperation; - check_hresult(static_cast(static_cast(*this))->abi_ReadLinesWithEncodingAsync(get(file), encoding, put(linesOperation))); - return linesOperation; -} - -template Windows::Foundation::IAsyncAction impl_IFileIOStatics::WriteLinesAsync(const Windows::Storage::IStorageFile & file, const Windows::Foundation::Collections::IIterable & lines) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_WriteLinesAsync(get(file), get(lines), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IFileIOStatics::WriteLinesAsync(const Windows::Storage::IStorageFile & file, const Windows::Foundation::Collections::IIterable & lines, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_WriteLinesWithEncodingAsync(get(file), get(lines), encoding, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IFileIOStatics::AppendLinesAsync(const Windows::Storage::IStorageFile & file, const Windows::Foundation::Collections::IIterable & lines) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_AppendLinesAsync(get(file), get(lines), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IFileIOStatics::AppendLinesAsync(const Windows::Storage::IStorageFile & file, const Windows::Foundation::Collections::IIterable & lines, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_AppendLinesWithEncodingAsync(get(file), get(lines), encoding, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IFileIOStatics::ReadBufferAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ReadBufferAsync(get(file), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IFileIOStatics::WriteBufferAsync(const Windows::Storage::IStorageFile & file, const Windows::Storage::Streams::IBuffer & buffer) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_WriteBufferAsync(get(file), get(buffer), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IFileIOStatics::WriteBytesAsync(const Windows::Storage::IStorageFile & file, array_ref buffer) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_WriteBytesAsync(get(file), buffer.size(), get(buffer), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPathIOStatics::ReadTextAsync(hstring_ref absolutePath) const -{ - Windows::Foundation::IAsyncOperation textOperation; - check_hresult(static_cast(static_cast(*this))->abi_ReadTextAsync(get(absolutePath), put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IPathIOStatics::ReadTextAsync(hstring_ref absolutePath, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncOperation textOperation; - check_hresult(static_cast(static_cast(*this))->abi_ReadTextWithEncodingAsync(get(absolutePath), encoding, put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncAction impl_IPathIOStatics::WriteTextAsync(hstring_ref absolutePath, hstring_ref contents) const -{ - Windows::Foundation::IAsyncAction textOperation; - check_hresult(static_cast(static_cast(*this))->abi_WriteTextAsync(get(absolutePath), get(contents), put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncAction impl_IPathIOStatics::WriteTextAsync(hstring_ref absolutePath, hstring_ref contents, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncAction textOperation; - check_hresult(static_cast(static_cast(*this))->abi_WriteTextWithEncodingAsync(get(absolutePath), get(contents), encoding, put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncAction impl_IPathIOStatics::AppendTextAsync(hstring_ref absolutePath, hstring_ref contents) const -{ - Windows::Foundation::IAsyncAction textOperation; - check_hresult(static_cast(static_cast(*this))->abi_AppendTextAsync(get(absolutePath), get(contents), put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncAction impl_IPathIOStatics::AppendTextAsync(hstring_ref absolutePath, hstring_ref contents, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncAction textOperation; - check_hresult(static_cast(static_cast(*this))->abi_AppendTextWithEncodingAsync(get(absolutePath), get(contents), encoding, put(textOperation))); - return textOperation; -} - -template Windows::Foundation::IAsyncOperation> impl_IPathIOStatics::ReadLinesAsync(hstring_ref absolutePath) const -{ - Windows::Foundation::IAsyncOperation> linesOperation; - check_hresult(static_cast(static_cast(*this))->abi_ReadLinesAsync(get(absolutePath), put(linesOperation))); - return linesOperation; -} - -template Windows::Foundation::IAsyncOperation> impl_IPathIOStatics::ReadLinesAsync(hstring_ref absolutePath, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncOperation> linesOperation; - check_hresult(static_cast(static_cast(*this))->abi_ReadLinesWithEncodingAsync(get(absolutePath), encoding, put(linesOperation))); - return linesOperation; -} - -template Windows::Foundation::IAsyncAction impl_IPathIOStatics::WriteLinesAsync(hstring_ref absolutePath, const Windows::Foundation::Collections::IIterable & lines) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_WriteLinesAsync(get(absolutePath), get(lines), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IPathIOStatics::WriteLinesAsync(hstring_ref absolutePath, const Windows::Foundation::Collections::IIterable & lines, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_WriteLinesWithEncodingAsync(get(absolutePath), get(lines), encoding, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IPathIOStatics::AppendLinesAsync(hstring_ref absolutePath, const Windows::Foundation::Collections::IIterable & lines) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_AppendLinesAsync(get(absolutePath), get(lines), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IPathIOStatics::AppendLinesAsync(hstring_ref absolutePath, const Windows::Foundation::Collections::IIterable & lines, Windows::Storage::Streams::UnicodeEncoding encoding) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_AppendLinesWithEncodingAsync(get(absolutePath), get(lines), encoding, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IPathIOStatics::ReadBufferAsync(hstring_ref absolutePath) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_ReadBufferAsync(get(absolutePath), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IPathIOStatics::WriteBufferAsync(hstring_ref absolutePath, const Windows::Storage::Streams::IBuffer & buffer) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_WriteBufferAsync(get(absolutePath), get(buffer), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IPathIOStatics::WriteBytesAsync(hstring_ref absolutePath, array_ref buffer) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_WriteBytesAsync(get(absolutePath), buffer.size(), get(buffer), put(operation))); - return operation; -} - -template void impl_ICachedFileManagerStatics::DeferUpdates(const Windows::Storage::IStorageFile & file) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DeferUpdates(get(file))); -} - -template Windows::Foundation::IAsyncOperation impl_ICachedFileManagerStatics::CompleteUpdatesAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_CompleteUpdatesAsync(get(file), put(operation))); - return operation; -} - -template hstring impl_ISystemAudioProperties::EncodingBitrate() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_EncodingBitrate(put(value))); - return value; -} - -template hstring impl_ISystemGPSProperties::LatitudeDecimal() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LatitudeDecimal(put(value))); - return value; -} - -template hstring impl_ISystemGPSProperties::LongitudeDecimal() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LongitudeDecimal(put(value))); - return value; -} - -template hstring impl_ISystemImageProperties::HorizontalSize() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HorizontalSize(put(value))); - return value; -} - -template hstring impl_ISystemImageProperties::VerticalSize() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_VerticalSize(put(value))); - return value; -} - -template hstring impl_ISystemMediaProperties::Duration() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template hstring impl_ISystemMediaProperties::Producer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Producer(put(value))); - return value; -} - -template hstring impl_ISystemMediaProperties::Publisher() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Publisher(put(value))); - return value; -} - -template hstring impl_ISystemMediaProperties::SubTitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SubTitle(put(value))); - return value; -} - -template hstring impl_ISystemMediaProperties::Writer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Writer(put(value))); - return value; -} - -template hstring impl_ISystemMediaProperties::Year() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Year(put(value))); - return value; -} - -template hstring impl_ISystemMusicProperties::AlbumArtist() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlbumArtist(put(value))); - return value; -} - -template hstring impl_ISystemMusicProperties::AlbumTitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AlbumTitle(put(value))); - return value; -} - -template hstring impl_ISystemMusicProperties::Artist() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Artist(put(value))); - return value; -} - -template hstring impl_ISystemMusicProperties::Composer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Composer(put(value))); - return value; -} - -template hstring impl_ISystemMusicProperties::Conductor() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Conductor(put(value))); - return value; -} - -template hstring impl_ISystemMusicProperties::DisplayArtist() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayArtist(put(value))); - return value; -} - -template hstring impl_ISystemMusicProperties::Genre() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Genre(put(value))); - return value; -} - -template hstring impl_ISystemMusicProperties::TrackNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TrackNumber(put(value))); - return value; -} - -template hstring impl_ISystemPhotoProperties::CameraManufacturer() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CameraManufacturer(put(value))); - return value; -} - -template hstring impl_ISystemPhotoProperties::CameraModel() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CameraModel(put(value))); - return value; -} - -template hstring impl_ISystemPhotoProperties::DateTaken() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DateTaken(put(value))); - return value; -} - -template hstring impl_ISystemPhotoProperties::Orientation() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Orientation(put(value))); - return value; -} - -template hstring impl_ISystemPhotoProperties::PeopleNames() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PeopleNames(put(value))); - return value; -} - -template hstring impl_ISystemVideoProperties::Director() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Director(put(value))); - return value; -} - -template hstring impl_ISystemVideoProperties::FrameHeight() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FrameHeight(put(value))); - return value; -} - -template hstring impl_ISystemVideoProperties::FrameWidth() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FrameWidth(put(value))); - return value; -} - -template hstring impl_ISystemVideoProperties::Orientation() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Orientation(put(value))); - return value; -} - -template hstring impl_ISystemVideoProperties::TotalBitrate() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TotalBitrate(put(value))); - return value; -} - -template hstring impl_ISystemProperties::Author() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Author(put(value))); - return value; -} - -template hstring impl_ISystemProperties::Comment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Comment(put(value))); - return value; -} - -template hstring impl_ISystemProperties::ItemNameDisplay() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ItemNameDisplay(put(value))); - return value; -} - -template hstring impl_ISystemProperties::Keywords() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Keywords(put(value))); - return value; -} - -template hstring impl_ISystemProperties::Rating() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Rating(put(value))); - return value; -} - -template hstring impl_ISystemProperties::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template Windows::Storage::SystemAudioProperties impl_ISystemProperties::Audio() const -{ - Windows::Storage::SystemAudioProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Audio(put(value))); - return value; -} - -template Windows::Storage::SystemGPSProperties impl_ISystemProperties::GPS() const -{ - Windows::Storage::SystemGPSProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GPS(put(value))); - return value; -} - -template Windows::Storage::SystemMediaProperties impl_ISystemProperties::Media() const -{ - Windows::Storage::SystemMediaProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Media(put(value))); - return value; -} - -template Windows::Storage::SystemMusicProperties impl_ISystemProperties::Music() const -{ - Windows::Storage::SystemMusicProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Music(put(value))); - return value; -} - -template Windows::Storage::SystemPhotoProperties impl_ISystemProperties::Photo() const -{ - Windows::Storage::SystemPhotoProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Photo(put(value))); - return value; -} - -template Windows::Storage::SystemVideoProperties impl_ISystemProperties::Video() const -{ - Windows::Storage::SystemVideoProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Video(put(value))); - return value; -} - -template Windows::Storage::SystemImageProperties impl_ISystemProperties::Image() const -{ - Windows::Storage::SystemImageProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Image(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStream impl_IStorageStreamTransaction::Stream() const -{ - Windows::Storage::Streams::IRandomAccessStream value; - check_hresult(static_cast(static_cast(*this))->get_Stream(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IStorageStreamTransaction::CommitAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_CommitAsync(put(operation))); - return operation; -} - -template Windows::Storage::ApplicationData impl_IApplicationDataStatics::Current() const -{ - Windows::Storage::ApplicationData value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Current(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IApplicationDataStatics2::GetForUserAsync(const Windows::System::User & user) const -{ - Windows::Foundation::IAsyncOperation getForUserOperation; - check_hresult(static_cast(static_cast(*this))->abi_GetForUserAsync(get(user), put(getForUserOperation))); - return getForUserOperation; -} - -template uint32_t impl_IApplicationData::Version() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Version(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IApplicationData::SetVersionAsync(uint32_t desiredVersion, const Windows::Storage::ApplicationDataSetVersionHandler & handler) const -{ - Windows::Foundation::IAsyncAction setVersionOperation; - check_hresult(static_cast(static_cast(*this))->abi_SetVersionAsync(desiredVersion, get(handler), put(setVersionOperation))); - return setVersionOperation; -} - -template Windows::Foundation::IAsyncAction impl_IApplicationData::ClearAsync() const -{ - Windows::Foundation::IAsyncAction clearOperation; - check_hresult(static_cast(static_cast(*this))->abi_ClearAllAsync(put(clearOperation))); - return clearOperation; -} - -template Windows::Foundation::IAsyncAction impl_IApplicationData::ClearAsync(Windows::Storage::ApplicationDataLocality locality) const -{ - Windows::Foundation::IAsyncAction clearOperation; - check_hresult(static_cast(static_cast(*this))->abi_ClearAsync(locality, put(clearOperation))); - return clearOperation; -} - -template Windows::Storage::ApplicationDataContainer impl_IApplicationData::LocalSettings() const -{ - Windows::Storage::ApplicationDataContainer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalSettings(put(value))); - return value; -} - -template Windows::Storage::ApplicationDataContainer impl_IApplicationData::RoamingSettings() const -{ - Windows::Storage::ApplicationDataContainer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RoamingSettings(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IApplicationData::LocalFolder() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalFolder(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IApplicationData::RoamingFolder() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RoamingFolder(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IApplicationData::TemporaryFolder() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemporaryFolder(put(value))); - return value; -} - -template event_token impl_IApplicationData::DataChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DataChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IApplicationData::DataChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::Storage::IApplicationData::remove_DataChanged, DataChanged(handler)); -} - -template void impl_IApplicationData::DataChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DataChanged(token)); -} - -template void impl_IApplicationData::SignalDataChanged() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SignalDataChanged()); -} - -template uint64_t impl_IApplicationData::RoamingStorageQuota() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RoamingStorageQuota(&value)); - return value; -} - -template Windows::Storage::StorageFolder impl_IApplicationData2::LocalCacheFolder() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalCacheFolder(put(value))); - return value; -} - -template Windows::Storage::StorageFolder impl_IApplicationData3::GetPublisherCacheFolder(hstring_ref folderName) const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetPublisherCacheFolder(get(folderName), put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IApplicationData3::ClearPublisherCacheFolderAsync(hstring_ref folderName) const -{ - Windows::Foundation::IAsyncAction clearOperation; - check_hresult(static_cast(static_cast(*this))->abi_ClearPublisherCacheFolderAsync(get(folderName), put(clearOperation))); - return clearOperation; -} - -template Windows::Storage::StorageFolder impl_IApplicationData3::SharedLocalFolder() const -{ - Windows::Storage::StorageFolder value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SharedLocalFolder(put(value))); - return value; -} - -template uint32_t impl_ISetVersionRequest::CurrentVersion() const -{ - uint32_t currentVersion {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentVersion(¤tVersion)); - return currentVersion; -} - -template uint32_t impl_ISetVersionRequest::DesiredVersion() const -{ - uint32_t desiredVersion {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredVersion(&desiredVersion)); - return desiredVersion; -} - -template Windows::Storage::SetVersionDeferral impl_ISetVersionRequest::GetDeferral() const -{ - Windows::Storage::SetVersionDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template void impl_ISetVersionDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template hstring impl_IApplicationDataContainer::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::Storage::ApplicationDataLocality impl_IApplicationDataContainer::Locality() const -{ - Windows::Storage::ApplicationDataLocality value {}; - check_hresult(static_cast(static_cast(*this))->get_Locality(&value)); - return value; -} - -template Windows::Foundation::Collections::IPropertySet impl_IApplicationDataContainer::Values() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_Values(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IApplicationDataContainer::Containers() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Containers(put(value))); - return value; -} - -template Windows::Storage::ApplicationDataContainer impl_IApplicationDataContainer::CreateContainer(hstring_ref name, Windows::Storage::ApplicationDataCreateDisposition disposition) const -{ - Windows::Storage::ApplicationDataContainer container { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateContainer(get(name), disposition, put(container))); - return container; -} - -template void impl_IApplicationDataContainer::DeleteContainer(hstring_ref name) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DeleteContainer(get(name))); -} - -inline Windows::Storage::ApplicationData ApplicationData::Current() -{ - return get_activation_factory().Current(); -} - -inline Windows::Foundation::IAsyncOperation ApplicationData::GetForUserAsync(const Windows::System::User & user) -{ - return get_activation_factory().GetForUserAsync(user); -} - -inline ApplicationDataCompositeValue::ApplicationDataCompositeValue() : - ApplicationDataCompositeValue(activate_instance()) -{} - -inline void CachedFileManager::DeferUpdates(const Windows::Storage::IStorageFile & file) -{ - get_activation_factory().DeferUpdates(file); -} - -inline Windows::Foundation::IAsyncOperation CachedFileManager::CompleteUpdatesAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().CompleteUpdatesAsync(file); -} - -inline Windows::Foundation::IAsyncOperation DownloadsFolder::CreateFileAsync(hstring_ref desiredName) -{ - return get_activation_factory().CreateFileAsync(desiredName); -} - -inline Windows::Foundation::IAsyncOperation DownloadsFolder::CreateFolderAsync(hstring_ref desiredName) -{ - return get_activation_factory().CreateFolderAsync(desiredName); -} - -inline Windows::Foundation::IAsyncOperation DownloadsFolder::CreateFileAsync(hstring_ref desiredName, Windows::Storage::CreationCollisionOption option) -{ - return get_activation_factory().CreateFileAsync(desiredName, option); -} - -inline Windows::Foundation::IAsyncOperation DownloadsFolder::CreateFolderAsync(hstring_ref desiredName, Windows::Storage::CreationCollisionOption option) -{ - return get_activation_factory().CreateFolderAsync(desiredName, option); -} - -inline Windows::Foundation::IAsyncOperation DownloadsFolder::CreateFileForUserAsync(const Windows::System::User & user, hstring_ref desiredName) -{ - return get_activation_factory().CreateFileForUserAsync(user, desiredName); -} - -inline Windows::Foundation::IAsyncOperation DownloadsFolder::CreateFolderForUserAsync(const Windows::System::User & user, hstring_ref desiredName) -{ - return get_activation_factory().CreateFolderForUserAsync(user, desiredName); -} - -inline Windows::Foundation::IAsyncOperation DownloadsFolder::CreateFileForUserAsync(const Windows::System::User & user, hstring_ref desiredName, Windows::Storage::CreationCollisionOption option) -{ - return get_activation_factory().CreateFileForUserAsync(user, desiredName, option); -} - -inline Windows::Foundation::IAsyncOperation DownloadsFolder::CreateFolderForUserAsync(const Windows::System::User & user, hstring_ref desiredName, Windows::Storage::CreationCollisionOption option) -{ - return get_activation_factory().CreateFolderForUserAsync(user, desiredName, option); -} - -inline Windows::Foundation::IAsyncOperation FileIO::ReadTextAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().ReadTextAsync(file); -} - -inline Windows::Foundation::IAsyncOperation FileIO::ReadTextAsync(const Windows::Storage::IStorageFile & file, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().ReadTextAsync(file, encoding); -} - -inline Windows::Foundation::IAsyncAction FileIO::WriteTextAsync(const Windows::Storage::IStorageFile & file, hstring_ref contents) -{ - return get_activation_factory().WriteTextAsync(file, contents); -} - -inline Windows::Foundation::IAsyncAction FileIO::WriteTextAsync(const Windows::Storage::IStorageFile & file, hstring_ref contents, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().WriteTextAsync(file, contents, encoding); -} - -inline Windows::Foundation::IAsyncAction FileIO::AppendTextAsync(const Windows::Storage::IStorageFile & file, hstring_ref contents) -{ - return get_activation_factory().AppendTextAsync(file, contents); -} - -inline Windows::Foundation::IAsyncAction FileIO::AppendTextAsync(const Windows::Storage::IStorageFile & file, hstring_ref contents, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().AppendTextAsync(file, contents, encoding); -} - -inline Windows::Foundation::IAsyncOperation> FileIO::ReadLinesAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().ReadLinesAsync(file); -} - -inline Windows::Foundation::IAsyncOperation> FileIO::ReadLinesAsync(const Windows::Storage::IStorageFile & file, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().ReadLinesAsync(file, encoding); -} - -inline Windows::Foundation::IAsyncAction FileIO::WriteLinesAsync(const Windows::Storage::IStorageFile & file, const Windows::Foundation::Collections::IIterable & lines) -{ - return get_activation_factory().WriteLinesAsync(file, lines); -} - -inline Windows::Foundation::IAsyncAction FileIO::WriteLinesAsync(const Windows::Storage::IStorageFile & file, const Windows::Foundation::Collections::IIterable & lines, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().WriteLinesAsync(file, lines, encoding); -} - -inline Windows::Foundation::IAsyncAction FileIO::AppendLinesAsync(const Windows::Storage::IStorageFile & file, const Windows::Foundation::Collections::IIterable & lines) -{ - return get_activation_factory().AppendLinesAsync(file, lines); -} - -inline Windows::Foundation::IAsyncAction FileIO::AppendLinesAsync(const Windows::Storage::IStorageFile & file, const Windows::Foundation::Collections::IIterable & lines, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().AppendLinesAsync(file, lines, encoding); -} - -inline Windows::Foundation::IAsyncOperation FileIO::ReadBufferAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().ReadBufferAsync(file); -} - -inline Windows::Foundation::IAsyncAction FileIO::WriteBufferAsync(const Windows::Storage::IStorageFile & file, const Windows::Storage::Streams::IBuffer & buffer) -{ - return get_activation_factory().WriteBufferAsync(file, buffer); -} - -inline Windows::Foundation::IAsyncAction FileIO::WriteBytesAsync(const Windows::Storage::IStorageFile & file, array_ref buffer) -{ - return get_activation_factory().WriteBytesAsync(file, buffer); -} - -inline Windows::Storage::StorageFolder KnownFolders::CameraRoll() -{ - return get_activation_factory().CameraRoll(); -} - -inline Windows::Storage::StorageFolder KnownFolders::Playlists() -{ - return get_activation_factory().Playlists(); -} - -inline Windows::Storage::StorageFolder KnownFolders::SavedPictures() -{ - return get_activation_factory().SavedPictures(); -} - -inline Windows::Storage::StorageFolder KnownFolders::MusicLibrary() -{ - return get_activation_factory().MusicLibrary(); -} - -inline Windows::Storage::StorageFolder KnownFolders::PicturesLibrary() -{ - return get_activation_factory().PicturesLibrary(); -} - -inline Windows::Storage::StorageFolder KnownFolders::VideosLibrary() -{ - return get_activation_factory().VideosLibrary(); -} - -inline Windows::Storage::StorageFolder KnownFolders::DocumentsLibrary() -{ - return get_activation_factory().DocumentsLibrary(); -} - -inline Windows::Storage::StorageFolder KnownFolders::HomeGroup() -{ - return get_activation_factory().HomeGroup(); -} - -inline Windows::Storage::StorageFolder KnownFolders::RemovableDevices() -{ - return get_activation_factory().RemovableDevices(); -} - -inline Windows::Storage::StorageFolder KnownFolders::MediaServerDevices() -{ - return get_activation_factory().MediaServerDevices(); -} - -inline Windows::Storage::StorageFolder KnownFolders::Objects3D() -{ - return get_activation_factory().Objects3D(); -} - -inline Windows::Storage::StorageFolder KnownFolders::AppCaptures() -{ - return get_activation_factory().AppCaptures(); -} - -inline Windows::Storage::StorageFolder KnownFolders::RecordedCalls() -{ - return get_activation_factory().RecordedCalls(); -} - -inline Windows::Foundation::IAsyncOperation KnownFolders::GetFolderForUserAsync(const Windows::System::User & user, Windows::Storage::KnownFolderId folderId) -{ - return get_activation_factory().GetFolderForUserAsync(user, folderId); -} - -inline Windows::Foundation::IAsyncOperation PathIO::ReadTextAsync(hstring_ref absolutePath) -{ - return get_activation_factory().ReadTextAsync(absolutePath); -} - -inline Windows::Foundation::IAsyncOperation PathIO::ReadTextAsync(hstring_ref absolutePath, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().ReadTextAsync(absolutePath, encoding); -} - -inline Windows::Foundation::IAsyncAction PathIO::WriteTextAsync(hstring_ref absolutePath, hstring_ref contents) -{ - return get_activation_factory().WriteTextAsync(absolutePath, contents); -} - -inline Windows::Foundation::IAsyncAction PathIO::WriteTextAsync(hstring_ref absolutePath, hstring_ref contents, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().WriteTextAsync(absolutePath, contents, encoding); -} - -inline Windows::Foundation::IAsyncAction PathIO::AppendTextAsync(hstring_ref absolutePath, hstring_ref contents) -{ - return get_activation_factory().AppendTextAsync(absolutePath, contents); -} - -inline Windows::Foundation::IAsyncAction PathIO::AppendTextAsync(hstring_ref absolutePath, hstring_ref contents, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().AppendTextAsync(absolutePath, contents, encoding); -} - -inline Windows::Foundation::IAsyncOperation> PathIO::ReadLinesAsync(hstring_ref absolutePath) -{ - return get_activation_factory().ReadLinesAsync(absolutePath); -} - -inline Windows::Foundation::IAsyncOperation> PathIO::ReadLinesAsync(hstring_ref absolutePath, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().ReadLinesAsync(absolutePath, encoding); -} - -inline Windows::Foundation::IAsyncAction PathIO::WriteLinesAsync(hstring_ref absolutePath, const Windows::Foundation::Collections::IIterable & lines) -{ - return get_activation_factory().WriteLinesAsync(absolutePath, lines); -} - -inline Windows::Foundation::IAsyncAction PathIO::WriteLinesAsync(hstring_ref absolutePath, const Windows::Foundation::Collections::IIterable & lines, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().WriteLinesAsync(absolutePath, lines, encoding); -} - -inline Windows::Foundation::IAsyncAction PathIO::AppendLinesAsync(hstring_ref absolutePath, const Windows::Foundation::Collections::IIterable & lines) -{ - return get_activation_factory().AppendLinesAsync(absolutePath, lines); -} - -inline Windows::Foundation::IAsyncAction PathIO::AppendLinesAsync(hstring_ref absolutePath, const Windows::Foundation::Collections::IIterable & lines, Windows::Storage::Streams::UnicodeEncoding encoding) -{ - return get_activation_factory().AppendLinesAsync(absolutePath, lines, encoding); -} - -inline Windows::Foundation::IAsyncOperation PathIO::ReadBufferAsync(hstring_ref absolutePath) -{ - return get_activation_factory().ReadBufferAsync(absolutePath); -} - -inline Windows::Foundation::IAsyncAction PathIO::WriteBufferAsync(hstring_ref absolutePath, const Windows::Storage::Streams::IBuffer & buffer) -{ - return get_activation_factory().WriteBufferAsync(absolutePath, buffer); -} - -inline Windows::Foundation::IAsyncAction PathIO::WriteBytesAsync(hstring_ref absolutePath, array_ref buffer) -{ - return get_activation_factory().WriteBytesAsync(absolutePath, buffer); -} - -inline Windows::Foundation::IAsyncOperation StorageFile::GetFileFromPathAsync(hstring_ref path) -{ - return get_activation_factory().GetFileFromPathAsync(path); -} - -inline Windows::Foundation::IAsyncOperation StorageFile::GetFileFromApplicationUriAsync(const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().GetFileFromApplicationUriAsync(uri); -} - -inline Windows::Foundation::IAsyncOperation StorageFile::CreateStreamedFileAsync(hstring_ref displayNameWithExtension, const Windows::Storage::StreamedFileDataRequestedHandler & dataRequested, const Windows::Storage::Streams::IRandomAccessStreamReference & thumbnail) -{ - return get_activation_factory().CreateStreamedFileAsync(displayNameWithExtension, dataRequested, thumbnail); -} - -inline Windows::Foundation::IAsyncOperation StorageFile::ReplaceWithStreamedFileAsync(const Windows::Storage::IStorageFile & fileToReplace, const Windows::Storage::StreamedFileDataRequestedHandler & dataRequested, const Windows::Storage::Streams::IRandomAccessStreamReference & thumbnail) -{ - return get_activation_factory().ReplaceWithStreamedFileAsync(fileToReplace, dataRequested, thumbnail); -} - -inline Windows::Foundation::IAsyncOperation StorageFile::CreateStreamedFileFromUriAsync(hstring_ref displayNameWithExtension, const Windows::Foundation::Uri & uri, const Windows::Storage::Streams::IRandomAccessStreamReference & thumbnail) -{ - return get_activation_factory().CreateStreamedFileFromUriAsync(displayNameWithExtension, uri, thumbnail); -} - -inline Windows::Foundation::IAsyncOperation StorageFile::ReplaceWithStreamedFileFromUriAsync(const Windows::Storage::IStorageFile & fileToReplace, const Windows::Foundation::Uri & uri, const Windows::Storage::Streams::IRandomAccessStreamReference & thumbnail) -{ - return get_activation_factory().ReplaceWithStreamedFileFromUriAsync(fileToReplace, uri, thumbnail); -} - -inline Windows::Foundation::IAsyncOperation StorageFolder::GetFolderFromPathAsync(hstring_ref path) -{ - return get_activation_factory().GetFolderFromPathAsync(path); -} - -inline Windows::Foundation::IAsyncOperation StorageLibrary::GetLibraryAsync(Windows::Storage::KnownLibraryId libraryId) -{ - return get_activation_factory().GetLibraryAsync(libraryId); -} - -inline Windows::Foundation::IAsyncOperation StorageLibrary::GetLibraryForUserAsync(const Windows::System::User & user, Windows::Storage::KnownLibraryId libraryId) -{ - return get_activation_factory().GetLibraryForUserAsync(user, libraryId); -} - -inline hstring SystemProperties::Author() -{ - return get_activation_factory().Author(); -} - -inline hstring SystemProperties::Comment() -{ - return get_activation_factory().Comment(); -} - -inline hstring SystemProperties::ItemNameDisplay() -{ - return get_activation_factory().ItemNameDisplay(); -} - -inline hstring SystemProperties::Keywords() -{ - return get_activation_factory().Keywords(); -} - -inline hstring SystemProperties::Rating() -{ - return get_activation_factory().Rating(); -} - -inline hstring SystemProperties::Title() -{ - return get_activation_factory().Title(); -} - -inline Windows::Storage::SystemAudioProperties SystemProperties::Audio() -{ - return get_activation_factory().Audio(); -} - -inline Windows::Storage::SystemGPSProperties SystemProperties::GPS() -{ - return get_activation_factory().GPS(); -} - -inline Windows::Storage::SystemMediaProperties SystemProperties::Media() -{ - return get_activation_factory().Media(); -} - -inline Windows::Storage::SystemMusicProperties SystemProperties::Music() -{ - return get_activation_factory().Music(); -} - -inline Windows::Storage::SystemPhotoProperties SystemProperties::Photo() -{ - return get_activation_factory().Photo(); -} - -inline Windows::Storage::SystemVideoProperties SystemProperties::Video() -{ - return get_activation_factory().Video(); -} - -inline Windows::Storage::SystemImageProperties SystemProperties::Image() -{ - return get_activation_factory().Image(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.Diagnostics.h b/10.0.14393.0/winrt/Windows.System.Diagnostics.h deleted file mode 100644 index 14cf18946..000000000 --- a/10.0.14393.0/winrt/Windows.System.Diagnostics.h +++ /dev/null @@ -1,713 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.System.Diagnostics.3.h" -#include "Windows.System.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetReport(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetReport()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_KernelTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KernelTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UserTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProcessId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ProcessId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExecutableFileName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExecutableFileName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Parent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Parent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProcessStartTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProcessStartTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DiskUsage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DiskUsage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MemoryUsage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MemoryUsage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CpuUsage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CpuUsage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForProcesses(abi_arg_out> processes) noexcept override - { - try - { - *processes = detach(this->shim().GetForProcesses()); - return S_OK; - } - catch (...) - { - *processes = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetForCurrentProcess(abi_arg_out processes) noexcept override - { - try - { - *processes = detach(this->shim().GetForCurrentProcess()); - return S_OK; - } - catch (...) - { - *processes = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetReport(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetReport()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ReadOperationCount(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().ReadOperationCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WriteOperationCount(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().WriteOperationCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherOperationCount(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().OtherOperationCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BytesReadCount(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BytesReadCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BytesWrittenCount(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().BytesWrittenCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OtherBytesCount(int64_t * value) noexcept override - { - try - { - *value = detach(this->shim().OtherBytesCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetReport(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetReport()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NonPagedPoolSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().NonPagedPoolSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageFaultCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PageFaultCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageFileSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PageFileSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PagedPoolSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PagedPoolSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeakNonPagedPoolSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PeakNonPagedPoolSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeakPageFileSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PeakPageFileSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeakPagedPoolSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PeakPagedPoolSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeakVirtualMemorySizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PeakVirtualMemorySizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeakWorkingSetSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PeakWorkingSetSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrivatePageCount(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PrivatePageCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VirtualMemorySizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().VirtualMemorySizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WorkingSetSizeInBytes(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().WorkingSetSizeInBytes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System::Diagnostics { - -template uint32_t impl_IProcessDiagnosticInfo::ProcessId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ProcessId(&value)); - return value; -} - -template hstring impl_IProcessDiagnosticInfo::ExecutableFileName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExecutableFileName(put(value))); - return value; -} - -template Windows::System::Diagnostics::ProcessDiagnosticInfo impl_IProcessDiagnosticInfo::Parent() const -{ - Windows::System::Diagnostics::ProcessDiagnosticInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Parent(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IProcessDiagnosticInfo::ProcessStartTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_ProcessStartTime(put(value))); - return value; -} - -template Windows::System::Diagnostics::ProcessDiskUsage impl_IProcessDiagnosticInfo::DiskUsage() const -{ - Windows::System::Diagnostics::ProcessDiskUsage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DiskUsage(put(value))); - return value; -} - -template Windows::System::Diagnostics::ProcessMemoryUsage impl_IProcessDiagnosticInfo::MemoryUsage() const -{ - Windows::System::Diagnostics::ProcessMemoryUsage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MemoryUsage(put(value))); - return value; -} - -template Windows::System::Diagnostics::ProcessCpuUsage impl_IProcessDiagnosticInfo::CpuUsage() const -{ - Windows::System::Diagnostics::ProcessCpuUsage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CpuUsage(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IProcessDiagnosticInfoStatics::GetForProcesses() const -{ - Windows::Foundation::Collections::IVectorView processes; - check_hresult(static_cast(static_cast(*this))->abi_GetForProcesses(put(processes))); - return processes; -} - -template Windows::System::Diagnostics::ProcessDiagnosticInfo impl_IProcessDiagnosticInfoStatics::GetForCurrentProcess() const -{ - Windows::System::Diagnostics::ProcessDiagnosticInfo processes { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentProcess(put(processes))); - return processes; -} - -template Windows::System::Diagnostics::ProcessMemoryUsageReport impl_IProcessMemoryUsage::GetReport() const -{ - Windows::System::Diagnostics::ProcessMemoryUsageReport value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetReport(put(value))); - return value; -} - -template uint64_t impl_IProcessMemoryUsageReport::NonPagedPoolSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NonPagedPoolSizeInBytes(&value)); - return value; -} - -template uint32_t impl_IProcessMemoryUsageReport::PageFaultCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PageFaultCount(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryUsageReport::PageFileSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PageFileSizeInBytes(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryUsageReport::PagedPoolSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PagedPoolSizeInBytes(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryUsageReport::PeakNonPagedPoolSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PeakNonPagedPoolSizeInBytes(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryUsageReport::PeakPageFileSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PeakPageFileSizeInBytes(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryUsageReport::PeakPagedPoolSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PeakPagedPoolSizeInBytes(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryUsageReport::PeakVirtualMemorySizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PeakVirtualMemorySizeInBytes(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryUsageReport::PeakWorkingSetSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PeakWorkingSetSizeInBytes(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryUsageReport::PrivatePageCount() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PrivatePageCount(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryUsageReport::VirtualMemorySizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VirtualMemorySizeInBytes(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryUsageReport::WorkingSetSizeInBytes() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_WorkingSetSizeInBytes(&value)); - return value; -} - -template Windows::System::Diagnostics::ProcessDiskUsageReport impl_IProcessDiskUsage::GetReport() const -{ - Windows::System::Diagnostics::ProcessDiskUsageReport value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetReport(put(value))); - return value; -} - -template int64_t impl_IProcessDiskUsageReport::ReadOperationCount() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ReadOperationCount(&value)); - return value; -} - -template int64_t impl_IProcessDiskUsageReport::WriteOperationCount() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_WriteOperationCount(&value)); - return value; -} - -template int64_t impl_IProcessDiskUsageReport::OtherOperationCount() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OtherOperationCount(&value)); - return value; -} - -template int64_t impl_IProcessDiskUsageReport::BytesReadCount() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BytesReadCount(&value)); - return value; -} - -template int64_t impl_IProcessDiskUsageReport::BytesWrittenCount() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BytesWrittenCount(&value)); - return value; -} - -template int64_t impl_IProcessDiskUsageReport::OtherBytesCount() const -{ - int64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OtherBytesCount(&value)); - return value; -} - -template Windows::System::Diagnostics::ProcessCpuUsageReport impl_IProcessCpuUsage::GetReport() const -{ - Windows::System::Diagnostics::ProcessCpuUsageReport value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetReport(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IProcessCpuUsageReport::KernelTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_KernelTime(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IProcessCpuUsageReport::UserTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_UserTime(put(value))); - return value; -} - -inline Windows::Foundation::Collections::IVectorView ProcessDiagnosticInfo::GetForProcesses() -{ - return get_activation_factory().GetForProcesses(); -} - -inline Windows::System::Diagnostics::ProcessDiagnosticInfo ProcessDiagnosticInfo::GetForCurrentProcess() -{ - return get_activation_factory().GetForCurrentProcess(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.Display.h b/10.0.14393.0/winrt/Windows.System.Display.h deleted file mode 100644 index 895453cf8..000000000 --- a/10.0.14393.0/winrt/Windows.System.Display.h +++ /dev/null @@ -1,63 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.System.Display.3.h" -#include "Windows.System.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestActive() noexcept override - { - try - { - this->shim().RequestActive(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestRelease() noexcept override - { - try - { - this->shim().RequestRelease(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System::Display { - -template void impl_IDisplayRequest::RequestActive() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RequestActive()); -} - -template void impl_IDisplayRequest::RequestRelease() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RequestRelease()); -} - -inline DisplayRequest::DisplayRequest() : - DisplayRequest(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.Power.Diagnostics.h b/10.0.14393.0/winrt/Windows.System.Power.Diagnostics.h deleted file mode 100644 index 47b4360d5..000000000 --- a/10.0.14393.0/winrt/Windows.System.Power.Diagnostics.h +++ /dev/null @@ -1,173 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.System.Power.Diagnostics.3.h" -#include "Windows.System.Power.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceSpecificConversionFactor(double * value) noexcept override - { - try - { - *value = detach(this->shim().DeviceSpecificConversionFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ComputeTotalEnergyUsage(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().ComputeTotalEnergyUsage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetTotalEnergyUsage() noexcept override - { - try - { - this->shim().ResetTotalEnergyUsage(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceSpecificConversionFactor(double * value) noexcept override - { - try - { - *value = detach(this->shim().DeviceSpecificConversionFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ComputeTotalEnergyUsage(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().ComputeTotalEnergyUsage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetTotalEnergyUsage() noexcept override - { - try - { - this->shim().ResetTotalEnergyUsage(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System::Power::Diagnostics { - -template double impl_IBackgroundEnergyDiagnosticsStatics::DeviceSpecificConversionFactor() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DeviceSpecificConversionFactor(&value)); - return value; -} - -template uint64_t impl_IBackgroundEnergyDiagnosticsStatics::ComputeTotalEnergyUsage() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_ComputeTotalEnergyUsage(&value)); - return value; -} - -template void impl_IBackgroundEnergyDiagnosticsStatics::ResetTotalEnergyUsage() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ResetTotalEnergyUsage()); -} - -template double impl_IForegroundEnergyDiagnosticsStatics::DeviceSpecificConversionFactor() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DeviceSpecificConversionFactor(&value)); - return value; -} - -template uint64_t impl_IForegroundEnergyDiagnosticsStatics::ComputeTotalEnergyUsage() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_ComputeTotalEnergyUsage(&value)); - return value; -} - -template void impl_IForegroundEnergyDiagnosticsStatics::ResetTotalEnergyUsage() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ResetTotalEnergyUsage()); -} - -inline double BackgroundEnergyDiagnostics::DeviceSpecificConversionFactor() -{ - return get_activation_factory().DeviceSpecificConversionFactor(); -} - -inline uint64_t BackgroundEnergyDiagnostics::ComputeTotalEnergyUsage() -{ - return get_activation_factory().ComputeTotalEnergyUsage(); -} - -inline void BackgroundEnergyDiagnostics::ResetTotalEnergyUsage() -{ - get_activation_factory().ResetTotalEnergyUsage(); -} - -inline double ForegroundEnergyDiagnostics::DeviceSpecificConversionFactor() -{ - return get_activation_factory().DeviceSpecificConversionFactor(); -} - -inline uint64_t ForegroundEnergyDiagnostics::ComputeTotalEnergyUsage() -{ - return get_activation_factory().ComputeTotalEnergyUsage(); -} - -inline void ForegroundEnergyDiagnostics::ResetTotalEnergyUsage() -{ - get_activation_factory().ResetTotalEnergyUsage(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.Power.h b/10.0.14393.0/winrt/Windows.System.Power.h deleted file mode 100644 index 8321a6070..000000000 --- a/10.0.14393.0/winrt/Windows.System.Power.h +++ /dev/null @@ -1,1038 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.Power.3.h" -#include "Windows.System.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LowUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LowUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NearMaxAcceptableUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NearMaxAcceptableUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxAcceptableUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxAcceptableUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExcessiveUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExcessiveUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NearTerminationUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NearTerminationUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TerminationUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TerminationUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecentEnergyUsage(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RecentEnergyUsage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecentEnergyUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RecentEnergyUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RecentEnergyUsageIncreased(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RecentEnergyUsageIncreased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RecentEnergyUsageIncreased(event_token token) noexcept override - { - try - { - this->shim().RecentEnergyUsageIncreased(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RecentEnergyUsageReturnedToLow(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RecentEnergyUsageReturnedToLow(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RecentEnergyUsageReturnedToLow(event_token token) noexcept override - { - try - { - this->shim().RecentEnergyUsageReturnedToLow(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LowUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LowUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NearMaxAcceptableUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NearMaxAcceptableUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxAcceptableUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxAcceptableUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExcessiveUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExcessiveUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecentEnergyUsage(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RecentEnergyUsage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RecentEnergyUsageLevel(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RecentEnergyUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RecentEnergyUsageIncreased(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RecentEnergyUsageIncreased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RecentEnergyUsageIncreased(event_token token) noexcept override - { - try - { - this->shim().RecentEnergyUsageIncreased(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RecentEnergyUsageReturnedToLow(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RecentEnergyUsageReturnedToLow(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RecentEnergyUsageReturnedToLow(event_token token) noexcept override - { - try - { - this->shim().RecentEnergyUsageReturnedToLow(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnergySaverStatus(Windows::System::Power::EnergySaverStatus * value) noexcept override - { - try - { - *value = detach(this->shim().EnergySaverStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnergySaverStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnergySaverStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnergySaverStatusChanged(event_token token) noexcept override - { - try - { - this->shim().EnergySaverStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BatteryStatus(Windows::System::Power::BatteryStatus * value) noexcept override - { - try - { - *value = detach(this->shim().BatteryStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BatteryStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BatteryStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BatteryStatusChanged(event_token token) noexcept override - { - try - { - this->shim().BatteryStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PowerSupplyStatus(Windows::System::Power::PowerSupplyStatus * value) noexcept override - { - try - { - *value = detach(this->shim().PowerSupplyStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PowerSupplyStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PowerSupplyStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PowerSupplyStatusChanged(event_token token) noexcept override - { - try - { - this->shim().PowerSupplyStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemainingChargePercent(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RemainingChargePercent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RemainingChargePercentChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RemainingChargePercentChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RemainingChargePercentChanged(event_token token) noexcept override - { - try - { - this->shim().RemainingChargePercentChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemainingDischargeTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemainingDischargeTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RemainingDischargeTimeChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RemainingDischargeTimeChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RemainingDischargeTimeChanged(event_token token) noexcept override - { - try - { - this->shim().RemainingDischargeTimeChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System::Power { - -template Windows::System::Power::EnergySaverStatus impl_IPowerManagerStatics::EnergySaverStatus() const -{ - Windows::System::Power::EnergySaverStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_EnergySaverStatus(&value)); - return value; -} - -template event_token impl_IPowerManagerStatics::EnergySaverStatusChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnergySaverStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPowerManagerStatics::EnergySaverStatusChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::Power::IPowerManagerStatics::remove_EnergySaverStatusChanged, EnergySaverStatusChanged(handler)); -} - -template void impl_IPowerManagerStatics::EnergySaverStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnergySaverStatusChanged(token)); -} - -template Windows::System::Power::BatteryStatus impl_IPowerManagerStatics::BatteryStatus() const -{ - Windows::System::Power::BatteryStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_BatteryStatus(&value)); - return value; -} - -template event_token impl_IPowerManagerStatics::BatteryStatusChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BatteryStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPowerManagerStatics::BatteryStatusChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::Power::IPowerManagerStatics::remove_BatteryStatusChanged, BatteryStatusChanged(handler)); -} - -template void impl_IPowerManagerStatics::BatteryStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BatteryStatusChanged(token)); -} - -template Windows::System::Power::PowerSupplyStatus impl_IPowerManagerStatics::PowerSupplyStatus() const -{ - Windows::System::Power::PowerSupplyStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_PowerSupplyStatus(&value)); - return value; -} - -template event_token impl_IPowerManagerStatics::PowerSupplyStatusChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PowerSupplyStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPowerManagerStatics::PowerSupplyStatusChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::Power::IPowerManagerStatics::remove_PowerSupplyStatusChanged, PowerSupplyStatusChanged(handler)); -} - -template void impl_IPowerManagerStatics::PowerSupplyStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PowerSupplyStatusChanged(token)); -} - -template int32_t impl_IPowerManagerStatics::RemainingChargePercent() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RemainingChargePercent(&value)); - return value; -} - -template event_token impl_IPowerManagerStatics::RemainingChargePercentChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RemainingChargePercentChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPowerManagerStatics::RemainingChargePercentChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::Power::IPowerManagerStatics::remove_RemainingChargePercentChanged, RemainingChargePercentChanged(handler)); -} - -template void impl_IPowerManagerStatics::RemainingChargePercentChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RemainingChargePercentChanged(token)); -} - -template Windows::Foundation::TimeSpan impl_IPowerManagerStatics::RemainingDischargeTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_RemainingDischargeTime(put(value))); - return value; -} - -template event_token impl_IPowerManagerStatics::RemainingDischargeTimeChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RemainingDischargeTimeChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPowerManagerStatics::RemainingDischargeTimeChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::Power::IPowerManagerStatics::remove_RemainingDischargeTimeChanged, RemainingDischargeTimeChanged(handler)); -} - -template void impl_IPowerManagerStatics::RemainingDischargeTimeChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RemainingDischargeTimeChanged(token)); -} - -template uint32_t impl_IBackgroundEnergyManagerStatics::LowUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LowUsageLevel(&value)); - return value; -} - -template uint32_t impl_IBackgroundEnergyManagerStatics::NearMaxAcceptableUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NearMaxAcceptableUsageLevel(&value)); - return value; -} - -template uint32_t impl_IBackgroundEnergyManagerStatics::MaxAcceptableUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxAcceptableUsageLevel(&value)); - return value; -} - -template uint32_t impl_IBackgroundEnergyManagerStatics::ExcessiveUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExcessiveUsageLevel(&value)); - return value; -} - -template uint32_t impl_IBackgroundEnergyManagerStatics::NearTerminationUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NearTerminationUsageLevel(&value)); - return value; -} - -template uint32_t impl_IBackgroundEnergyManagerStatics::TerminationUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TerminationUsageLevel(&value)); - return value; -} - -template uint32_t impl_IBackgroundEnergyManagerStatics::RecentEnergyUsage() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RecentEnergyUsage(&value)); - return value; -} - -template uint32_t impl_IBackgroundEnergyManagerStatics::RecentEnergyUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RecentEnergyUsageLevel(&value)); - return value; -} - -template event_token impl_IBackgroundEnergyManagerStatics::RecentEnergyUsageIncreased(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RecentEnergyUsageIncreased(get(handler), &token)); - return token; -} - -template event_revoker impl_IBackgroundEnergyManagerStatics::RecentEnergyUsageIncreased(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::Power::IBackgroundEnergyManagerStatics::remove_RecentEnergyUsageIncreased, RecentEnergyUsageIncreased(handler)); -} - -template void impl_IBackgroundEnergyManagerStatics::RecentEnergyUsageIncreased(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RecentEnergyUsageIncreased(token)); -} - -template event_token impl_IBackgroundEnergyManagerStatics::RecentEnergyUsageReturnedToLow(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RecentEnergyUsageReturnedToLow(get(handler), &token)); - return token; -} - -template event_revoker impl_IBackgroundEnergyManagerStatics::RecentEnergyUsageReturnedToLow(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::Power::IBackgroundEnergyManagerStatics::remove_RecentEnergyUsageReturnedToLow, RecentEnergyUsageReturnedToLow(handler)); -} - -template void impl_IBackgroundEnergyManagerStatics::RecentEnergyUsageReturnedToLow(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RecentEnergyUsageReturnedToLow(token)); -} - -template uint32_t impl_IForegroundEnergyManagerStatics::LowUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LowUsageLevel(&value)); - return value; -} - -template uint32_t impl_IForegroundEnergyManagerStatics::NearMaxAcceptableUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NearMaxAcceptableUsageLevel(&value)); - return value; -} - -template uint32_t impl_IForegroundEnergyManagerStatics::MaxAcceptableUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxAcceptableUsageLevel(&value)); - return value; -} - -template uint32_t impl_IForegroundEnergyManagerStatics::ExcessiveUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExcessiveUsageLevel(&value)); - return value; -} - -template uint32_t impl_IForegroundEnergyManagerStatics::RecentEnergyUsage() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RecentEnergyUsage(&value)); - return value; -} - -template uint32_t impl_IForegroundEnergyManagerStatics::RecentEnergyUsageLevel() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RecentEnergyUsageLevel(&value)); - return value; -} - -template event_token impl_IForegroundEnergyManagerStatics::RecentEnergyUsageIncreased(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RecentEnergyUsageIncreased(get(handler), &token)); - return token; -} - -template event_revoker impl_IForegroundEnergyManagerStatics::RecentEnergyUsageIncreased(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::Power::IForegroundEnergyManagerStatics::remove_RecentEnergyUsageIncreased, RecentEnergyUsageIncreased(handler)); -} - -template void impl_IForegroundEnergyManagerStatics::RecentEnergyUsageIncreased(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RecentEnergyUsageIncreased(token)); -} - -template event_token impl_IForegroundEnergyManagerStatics::RecentEnergyUsageReturnedToLow(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RecentEnergyUsageReturnedToLow(get(handler), &token)); - return token; -} - -template event_revoker impl_IForegroundEnergyManagerStatics::RecentEnergyUsageReturnedToLow(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::Power::IForegroundEnergyManagerStatics::remove_RecentEnergyUsageReturnedToLow, RecentEnergyUsageReturnedToLow(handler)); -} - -template void impl_IForegroundEnergyManagerStatics::RecentEnergyUsageReturnedToLow(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RecentEnergyUsageReturnedToLow(token)); -} - -inline uint32_t BackgroundEnergyManager::LowUsageLevel() -{ - return get_activation_factory().LowUsageLevel(); -} - -inline uint32_t BackgroundEnergyManager::NearMaxAcceptableUsageLevel() -{ - return get_activation_factory().NearMaxAcceptableUsageLevel(); -} - -inline uint32_t BackgroundEnergyManager::MaxAcceptableUsageLevel() -{ - return get_activation_factory().MaxAcceptableUsageLevel(); -} - -inline uint32_t BackgroundEnergyManager::ExcessiveUsageLevel() -{ - return get_activation_factory().ExcessiveUsageLevel(); -} - -inline uint32_t BackgroundEnergyManager::NearTerminationUsageLevel() -{ - return get_activation_factory().NearTerminationUsageLevel(); -} - -inline uint32_t BackgroundEnergyManager::TerminationUsageLevel() -{ - return get_activation_factory().TerminationUsageLevel(); -} - -inline uint32_t BackgroundEnergyManager::RecentEnergyUsage() -{ - return get_activation_factory().RecentEnergyUsage(); -} - -inline uint32_t BackgroundEnergyManager::RecentEnergyUsageLevel() -{ - return get_activation_factory().RecentEnergyUsageLevel(); -} - -inline event_token BackgroundEnergyManager::RecentEnergyUsageIncreased(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().RecentEnergyUsageIncreased(handler); -} - -inline factory_event_revoker BackgroundEnergyManager::RecentEnergyUsageIncreased(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::Power::IBackgroundEnergyManagerStatics::remove_RecentEnergyUsageIncreased, factory.RecentEnergyUsageIncreased(handler) }; -} - -inline void BackgroundEnergyManager::RecentEnergyUsageIncreased(event_token token) -{ - get_activation_factory().RecentEnergyUsageIncreased(token); -} - -inline event_token BackgroundEnergyManager::RecentEnergyUsageReturnedToLow(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().RecentEnergyUsageReturnedToLow(handler); -} - -inline factory_event_revoker BackgroundEnergyManager::RecentEnergyUsageReturnedToLow(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::Power::IBackgroundEnergyManagerStatics::remove_RecentEnergyUsageReturnedToLow, factory.RecentEnergyUsageReturnedToLow(handler) }; -} - -inline void BackgroundEnergyManager::RecentEnergyUsageReturnedToLow(event_token token) -{ - get_activation_factory().RecentEnergyUsageReturnedToLow(token); -} - -inline uint32_t ForegroundEnergyManager::LowUsageLevel() -{ - return get_activation_factory().LowUsageLevel(); -} - -inline uint32_t ForegroundEnergyManager::NearMaxAcceptableUsageLevel() -{ - return get_activation_factory().NearMaxAcceptableUsageLevel(); -} - -inline uint32_t ForegroundEnergyManager::MaxAcceptableUsageLevel() -{ - return get_activation_factory().MaxAcceptableUsageLevel(); -} - -inline uint32_t ForegroundEnergyManager::ExcessiveUsageLevel() -{ - return get_activation_factory().ExcessiveUsageLevel(); -} - -inline uint32_t ForegroundEnergyManager::RecentEnergyUsage() -{ - return get_activation_factory().RecentEnergyUsage(); -} - -inline uint32_t ForegroundEnergyManager::RecentEnergyUsageLevel() -{ - return get_activation_factory().RecentEnergyUsageLevel(); -} - -inline event_token ForegroundEnergyManager::RecentEnergyUsageIncreased(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().RecentEnergyUsageIncreased(handler); -} - -inline factory_event_revoker ForegroundEnergyManager::RecentEnergyUsageIncreased(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::Power::IForegroundEnergyManagerStatics::remove_RecentEnergyUsageIncreased, factory.RecentEnergyUsageIncreased(handler) }; -} - -inline void ForegroundEnergyManager::RecentEnergyUsageIncreased(event_token token) -{ - get_activation_factory().RecentEnergyUsageIncreased(token); -} - -inline event_token ForegroundEnergyManager::RecentEnergyUsageReturnedToLow(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().RecentEnergyUsageReturnedToLow(handler); -} - -inline factory_event_revoker ForegroundEnergyManager::RecentEnergyUsageReturnedToLow(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::Power::IForegroundEnergyManagerStatics::remove_RecentEnergyUsageReturnedToLow, factory.RecentEnergyUsageReturnedToLow(handler) }; -} - -inline void ForegroundEnergyManager::RecentEnergyUsageReturnedToLow(event_token token) -{ - get_activation_factory().RecentEnergyUsageReturnedToLow(token); -} - -inline Windows::System::Power::EnergySaverStatus PowerManager::EnergySaverStatus() -{ - return get_activation_factory().EnergySaverStatus(); -} - -inline event_token PowerManager::EnergySaverStatusChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().EnergySaverStatusChanged(handler); -} - -inline factory_event_revoker PowerManager::EnergySaverStatusChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::Power::IPowerManagerStatics::remove_EnergySaverStatusChanged, factory.EnergySaverStatusChanged(handler) }; -} - -inline void PowerManager::EnergySaverStatusChanged(event_token token) -{ - get_activation_factory().EnergySaverStatusChanged(token); -} - -inline Windows::System::Power::BatteryStatus PowerManager::BatteryStatus() -{ - return get_activation_factory().BatteryStatus(); -} - -inline event_token PowerManager::BatteryStatusChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().BatteryStatusChanged(handler); -} - -inline factory_event_revoker PowerManager::BatteryStatusChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::Power::IPowerManagerStatics::remove_BatteryStatusChanged, factory.BatteryStatusChanged(handler) }; -} - -inline void PowerManager::BatteryStatusChanged(event_token token) -{ - get_activation_factory().BatteryStatusChanged(token); -} - -inline Windows::System::Power::PowerSupplyStatus PowerManager::PowerSupplyStatus() -{ - return get_activation_factory().PowerSupplyStatus(); -} - -inline event_token PowerManager::PowerSupplyStatusChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().PowerSupplyStatusChanged(handler); -} - -inline factory_event_revoker PowerManager::PowerSupplyStatusChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::Power::IPowerManagerStatics::remove_PowerSupplyStatusChanged, factory.PowerSupplyStatusChanged(handler) }; -} - -inline void PowerManager::PowerSupplyStatusChanged(event_token token) -{ - get_activation_factory().PowerSupplyStatusChanged(token); -} - -inline int32_t PowerManager::RemainingChargePercent() -{ - return get_activation_factory().RemainingChargePercent(); -} - -inline event_token PowerManager::RemainingChargePercentChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().RemainingChargePercentChanged(handler); -} - -inline factory_event_revoker PowerManager::RemainingChargePercentChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::Power::IPowerManagerStatics::remove_RemainingChargePercentChanged, factory.RemainingChargePercentChanged(handler) }; -} - -inline void PowerManager::RemainingChargePercentChanged(event_token token) -{ - get_activation_factory().RemainingChargePercentChanged(token); -} - -inline Windows::Foundation::TimeSpan PowerManager::RemainingDischargeTime() -{ - return get_activation_factory().RemainingDischargeTime(); -} - -inline event_token PowerManager::RemainingDischargeTimeChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().RemainingDischargeTimeChanged(handler); -} - -inline factory_event_revoker PowerManager::RemainingDischargeTimeChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::Power::IPowerManagerStatics::remove_RemainingDischargeTimeChanged, factory.RemainingDischargeTimeChanged(handler) }; -} - -inline void PowerManager::RemainingDischargeTimeChanged(event_token token) -{ - get_activation_factory().RemainingDischargeTimeChanged(token); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.Profile.SystemManufacturers.h b/10.0.14393.0/winrt/Windows.System.Profile.SystemManufacturers.h deleted file mode 100644 index 0238636a7..000000000 --- a/10.0.14393.0/winrt/Windows.System.Profile.SystemManufacturers.h +++ /dev/null @@ -1,49 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.System.Profile.SystemManufacturers.3.h" -#include "Windows.System.Profile.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SerialNumber(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SerialNumber()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System::Profile::SystemManufacturers { - -template hstring impl_ISmbiosInformationStatics::SerialNumber() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SerialNumber(put(value))); - return value; -} - -inline hstring SmbiosInformation::SerialNumber() -{ - return get_activation_factory().SerialNumber(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.Profile.h b/10.0.14393.0/winrt/Windows.System.Profile.h deleted file mode 100644 index 54ad26dc2..000000000 --- a/10.0.14393.0/winrt/Windows.System.Profile.h +++ /dev/null @@ -1,1096 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.System.Profile.3.h" -#include "Windows.System.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VersionInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VersionInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceForm(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceForm()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeviceFamilyVersion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceFamilyVersion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPackageSpecificToken(abi_arg_in nonce, abi_arg_out packageSpecificHardwareToken) noexcept override - { - try - { - *packageSpecificHardwareToken = detach(this->shim().GetPackageSpecificToken(*reinterpret_cast(&nonce))); - return S_OK; - } - catch (...) - { - *packageSpecificHardwareToken = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Signature(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Signature()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Certificate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Certificate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RetailAccessCode(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RetailAccessCode()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ManufacturerName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ManufacturerName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModelName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ModelName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayModelName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayModelName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Price(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Price()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFeatured(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFeatured()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FormFactor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormFactor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScreenSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScreenSize()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Weight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Weight()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BatteryLifeDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BatteryLifeDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProcessorDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProcessorDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Memory(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Memory()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StorageDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StorageDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GraphicsDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GraphicsDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrontCameraDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrontCameraDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RearCameraDescription(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RearCameraDescription()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasNfc(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HasNfc()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasSdSlot(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HasSdSlot()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasOpticalDrive(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HasOpticalDrive()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOfficeInstalled(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsOfficeInstalled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WindowsEdition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WindowsEdition()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CollectionLevel(Windows::System::Profile::PlatformDataCollectionLevel * value) noexcept override - { - try - { - *value = detach(this->shim().CollectionLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CollectionLevelChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CollectionLevelChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CollectionLevelChanged(event_token token) noexcept override - { - try - { - this->shim().CollectionLevelChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanCollectDiagnostics(Windows::System::Profile::PlatformDataCollectionLevel level, bool * result) noexcept override - { - try - { - *result = detach(this->shim().CanCollectDiagnostics(level)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsDemoModeEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDemoModeEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(Windows::System::Profile::SystemIdentificationSource * value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetSystemIdForPublisher(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetSystemIdForPublisher()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSystemIdForUser(abi_arg_in user, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetSystemIdForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System::Profile { - -template Windows::System::Profile::AnalyticsVersionInfo impl_IAnalyticsInfoStatics::VersionInfo() const -{ - Windows::System::Profile::AnalyticsVersionInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VersionInfo(put(value))); - return value; -} - -template hstring impl_IAnalyticsInfoStatics::DeviceForm() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceForm(put(value))); - return value; -} - -template hstring impl_IAnalyticsVersionInfo::DeviceFamily() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceFamily(put(value))); - return value; -} - -template hstring impl_IAnalyticsVersionInfo::DeviceFamilyVersion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceFamilyVersion(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_ISystemIdentificationInfo::Id() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::System::Profile::SystemIdentificationSource impl_ISystemIdentificationInfo::Source() const -{ - Windows::System::Profile::SystemIdentificationSource value {}; - check_hresult(static_cast(static_cast(*this))->get_Source(&value)); - return value; -} - -template Windows::System::Profile::SystemIdentificationInfo impl_ISystemIdentificationStatics::GetSystemIdForPublisher() const -{ - Windows::System::Profile::SystemIdentificationInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetSystemIdForPublisher(put(result))); - return result; -} - -template Windows::System::Profile::SystemIdentificationInfo impl_ISystemIdentificationStatics::GetSystemIdForUser(const Windows::System::User & user) const -{ - Windows::System::Profile::SystemIdentificationInfo result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetSystemIdForUser(get(user), put(result))); - return result; -} - -template Windows::System::Profile::PlatformDataCollectionLevel impl_IPlatformDiagnosticsAndUsageDataSettingsStatics::CollectionLevel() const -{ - Windows::System::Profile::PlatformDataCollectionLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_CollectionLevel(&value)); - return value; -} - -template event_token impl_IPlatformDiagnosticsAndUsageDataSettingsStatics::CollectionLevelChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CollectionLevelChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IPlatformDiagnosticsAndUsageDataSettingsStatics::CollectionLevelChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::Profile::IPlatformDiagnosticsAndUsageDataSettingsStatics::remove_CollectionLevelChanged, CollectionLevelChanged(handler)); -} - -template void impl_IPlatformDiagnosticsAndUsageDataSettingsStatics::CollectionLevelChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CollectionLevelChanged(token)); -} - -template bool impl_IPlatformDiagnosticsAndUsageDataSettingsStatics::CanCollectDiagnostics(Windows::System::Profile::PlatformDataCollectionLevel level) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_CanCollectDiagnostics(level, &result)); - return result; -} - -template Windows::Storage::Streams::IBuffer impl_IHardwareToken::Id() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IHardwareToken::Signature() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Signature(put(value))); - return value; -} - -template Windows::Storage::Streams::IBuffer impl_IHardwareToken::Certificate() const -{ - Windows::Storage::Streams::IBuffer value; - check_hresult(static_cast(static_cast(*this))->get_Certificate(put(value))); - return value; -} - -template Windows::System::Profile::HardwareToken impl_IHardwareIdentificationStatics::GetPackageSpecificToken(const Windows::Storage::Streams::IBuffer & nonce) const -{ - Windows::System::Profile::HardwareToken packageSpecificHardwareToken { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetPackageSpecificToken(get(nonce), put(packageSpecificHardwareToken))); - return packageSpecificHardwareToken; -} - -template bool impl_ISharedModeSettingsStatics::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template bool impl_IRetailInfoStatics::IsDemoModeEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDemoModeEnabled(&value)); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IRetailInfoStatics::Properties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::RetailAccessCode() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RetailAccessCode(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::ManufacturerName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ManufacturerName(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::ModelName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ModelName(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::DisplayModelName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayModelName(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::Price() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Price(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::IsFeatured() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IsFeatured(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::FormFactor() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FormFactor(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::ScreenSize() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ScreenSize(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::Weight() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Weight(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::DisplayDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayDescription(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::BatteryLifeDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BatteryLifeDescription(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::ProcessorDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProcessorDescription(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::Memory() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Memory(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::StorageDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StorageDescription(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::GraphicsDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GraphicsDescription(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::FrontCameraDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FrontCameraDescription(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::RearCameraDescription() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RearCameraDescription(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::HasNfc() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HasNfc(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::HasSdSlot() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HasSdSlot(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::HasOpticalDrive() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HasOpticalDrive(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::IsOfficeInstalled() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_IsOfficeInstalled(put(value))); - return value; -} - -template hstring impl_IKnownRetailInfoPropertiesStatics::WindowsEdition() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WindowsEdition(put(value))); - return value; -} - -inline Windows::System::Profile::AnalyticsVersionInfo AnalyticsInfo::VersionInfo() -{ - return get_activation_factory().VersionInfo(); -} - -inline hstring AnalyticsInfo::DeviceForm() -{ - return get_activation_factory().DeviceForm(); -} - -inline Windows::System::Profile::HardwareToken HardwareIdentification::GetPackageSpecificToken(const Windows::Storage::Streams::IBuffer & nonce) -{ - return get_activation_factory().GetPackageSpecificToken(nonce); -} - -inline hstring KnownRetailInfoProperties::RetailAccessCode() -{ - return get_activation_factory().RetailAccessCode(); -} - -inline hstring KnownRetailInfoProperties::ManufacturerName() -{ - return get_activation_factory().ManufacturerName(); -} - -inline hstring KnownRetailInfoProperties::ModelName() -{ - return get_activation_factory().ModelName(); -} - -inline hstring KnownRetailInfoProperties::DisplayModelName() -{ - return get_activation_factory().DisplayModelName(); -} - -inline hstring KnownRetailInfoProperties::Price() -{ - return get_activation_factory().Price(); -} - -inline hstring KnownRetailInfoProperties::IsFeatured() -{ - return get_activation_factory().IsFeatured(); -} - -inline hstring KnownRetailInfoProperties::FormFactor() -{ - return get_activation_factory().FormFactor(); -} - -inline hstring KnownRetailInfoProperties::ScreenSize() -{ - return get_activation_factory().ScreenSize(); -} - -inline hstring KnownRetailInfoProperties::Weight() -{ - return get_activation_factory().Weight(); -} - -inline hstring KnownRetailInfoProperties::DisplayDescription() -{ - return get_activation_factory().DisplayDescription(); -} - -inline hstring KnownRetailInfoProperties::BatteryLifeDescription() -{ - return get_activation_factory().BatteryLifeDescription(); -} - -inline hstring KnownRetailInfoProperties::ProcessorDescription() -{ - return get_activation_factory().ProcessorDescription(); -} - -inline hstring KnownRetailInfoProperties::Memory() -{ - return get_activation_factory().Memory(); -} - -inline hstring KnownRetailInfoProperties::StorageDescription() -{ - return get_activation_factory().StorageDescription(); -} - -inline hstring KnownRetailInfoProperties::GraphicsDescription() -{ - return get_activation_factory().GraphicsDescription(); -} - -inline hstring KnownRetailInfoProperties::FrontCameraDescription() -{ - return get_activation_factory().FrontCameraDescription(); -} - -inline hstring KnownRetailInfoProperties::RearCameraDescription() -{ - return get_activation_factory().RearCameraDescription(); -} - -inline hstring KnownRetailInfoProperties::HasNfc() -{ - return get_activation_factory().HasNfc(); -} - -inline hstring KnownRetailInfoProperties::HasSdSlot() -{ - return get_activation_factory().HasSdSlot(); -} - -inline hstring KnownRetailInfoProperties::HasOpticalDrive() -{ - return get_activation_factory().HasOpticalDrive(); -} - -inline hstring KnownRetailInfoProperties::IsOfficeInstalled() -{ - return get_activation_factory().IsOfficeInstalled(); -} - -inline hstring KnownRetailInfoProperties::WindowsEdition() -{ - return get_activation_factory().WindowsEdition(); -} - -inline Windows::System::Profile::PlatformDataCollectionLevel PlatformDiagnosticsAndUsageDataSettings::CollectionLevel() -{ - return get_activation_factory().CollectionLevel(); -} - -inline event_token PlatformDiagnosticsAndUsageDataSettings::CollectionLevelChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().CollectionLevelChanged(handler); -} - -inline factory_event_revoker PlatformDiagnosticsAndUsageDataSettings::CollectionLevelChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::Profile::IPlatformDiagnosticsAndUsageDataSettingsStatics::remove_CollectionLevelChanged, factory.CollectionLevelChanged(handler) }; -} - -inline void PlatformDiagnosticsAndUsageDataSettings::CollectionLevelChanged(event_token token) -{ - get_activation_factory().CollectionLevelChanged(token); -} - -inline bool PlatformDiagnosticsAndUsageDataSettings::CanCollectDiagnostics(Windows::System::Profile::PlatformDataCollectionLevel level) -{ - return get_activation_factory().CanCollectDiagnostics(level); -} - -inline bool RetailInfo::IsDemoModeEnabled() -{ - return get_activation_factory().IsDemoModeEnabled(); -} - -inline Windows::Foundation::Collections::IMapView RetailInfo::Properties() -{ - return get_activation_factory().Properties(); -} - -inline bool SharedModeSettings::IsEnabled() -{ - return get_activation_factory().IsEnabled(); -} - -inline Windows::System::Profile::SystemIdentificationInfo SystemIdentification::GetSystemIdForPublisher() -{ - return get_activation_factory().GetSystemIdForPublisher(); -} - -inline Windows::System::Profile::SystemIdentificationInfo SystemIdentification::GetSystemIdForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetSystemIdForUser(user); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.RemoteDesktop.h b/10.0.14393.0/winrt/Windows.System.RemoteDesktop.h deleted file mode 100644 index 23856f584..000000000 --- a/10.0.14393.0/winrt/Windows.System.RemoteDesktop.h +++ /dev/null @@ -1,48 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.System.RemoteDesktop.3.h" -#include "Windows.System.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsRemote(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRemote()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System::RemoteDesktop { - -template bool impl_IInteractiveSessionStatics::IsRemote() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRemote(&value)); - return value; -} - -inline bool InteractiveSession::IsRemote() -{ - return get_activation_factory().IsRemote(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.RemoteSystems.h b/10.0.14393.0/winrt/Windows.System.RemoteSystems.h deleted file mode 100644 index 973597458..000000000 --- a/10.0.14393.0/winrt/Windows.System.RemoteSystems.h +++ /dev/null @@ -1,833 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Networking.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.System.RemoteSystems.3.h" -#include "Windows.System.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Status(Windows::System::RemoteSystems::RemoteSystemStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAvailableByProximity(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAvailableByProximity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoteSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoteSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in remoteSystem, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&remoteSystem))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoteSystemDiscoveryType(Windows::System::RemoteSystems::RemoteSystemDiscoveryType * value) noexcept override - { - try - { - *value = detach(this->shim().RemoteSystemDiscoveryType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::System::RemoteSystems::RemoteSystemDiscoveryType discoveryType, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(discoveryType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoteSystemKinds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RemoteSystemKinds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in> remoteSystemKinds, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast *>(&remoteSystemKinds))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Phone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Phone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Hub(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Hub()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Holographic(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Holographic()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Desktop(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Desktop()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Xbox(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Xbox()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoteSystemId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteSystemId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindByHostNameAsync(abi_arg_in hostName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindByHostNameAsync(*reinterpret_cast(&hostName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWatcher(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWatcher()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWatcherWithFilters(abi_arg_in> filters, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWatcher(*reinterpret_cast *>(&filters))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoteSystemStatusType(Windows::System::RemoteSystems::RemoteSystemStatusType * value) noexcept override - { - try - { - *value = detach(this->shim().RemoteSystemStatusType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::System::RemoteSystems::RemoteSystemStatusType remoteSystemStatusType, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(remoteSystemStatusType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RemoteSystem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteSystem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RemoteSystemAdded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RemoteSystemAdded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RemoteSystemAdded(event_token token) noexcept override - { - try - { - this->shim().RemoteSystemAdded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RemoteSystemUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RemoteSystemUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RemoteSystemUpdated(event_token token) noexcept override - { - try - { - this->shim().RemoteSystemUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RemoteSystemRemoved(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RemoteSystemRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RemoteSystemRemoved(event_token token) noexcept override - { - try - { - this->shim().RemoteSystemRemoved(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System::RemoteSystems { - -template Windows::Foundation::IAsyncOperation impl_IRemoteSystemStatics::FindByHostNameAsync(const Windows::Networking::HostName & hostName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_FindByHostNameAsync(get(hostName), put(operation))); - return operation; -} - -template Windows::System::RemoteSystems::RemoteSystemWatcher impl_IRemoteSystemStatics::CreateWatcher() const -{ - Windows::System::RemoteSystems::RemoteSystemWatcher result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcher(put(result))); - return result; -} - -template Windows::System::RemoteSystems::RemoteSystemWatcher impl_IRemoteSystemStatics::CreateWatcher(const Windows::Foundation::Collections::IIterable & filters) const -{ - Windows::System::RemoteSystems::RemoteSystemWatcher result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcherWithFilters(get(filters), put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IRemoteSystemStatics::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(operation))); - return operation; -} - -template hstring impl_IRemoteSystem::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IRemoteSystem::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template hstring impl_IRemoteSystem::Kind() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Kind(put(value))); - return value; -} - -template Windows::System::RemoteSystems::RemoteSystemStatus impl_IRemoteSystem::Status() const -{ - Windows::System::RemoteSystems::RemoteSystemStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template bool impl_IRemoteSystem::IsAvailableByProximity() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAvailableByProximity(&value)); - return value; -} - -template void impl_IRemoteSystemWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IRemoteSystemWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template event_token impl_IRemoteSystemWatcher::RemoteSystemAdded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RemoteSystemAdded(get(handler), &token)); - return token; -} - -template event_revoker impl_IRemoteSystemWatcher::RemoteSystemAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::RemoteSystems::IRemoteSystemWatcher::remove_RemoteSystemAdded, RemoteSystemAdded(handler)); -} - -template void impl_IRemoteSystemWatcher::RemoteSystemAdded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RemoteSystemAdded(token)); -} - -template event_token impl_IRemoteSystemWatcher::RemoteSystemUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RemoteSystemUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_IRemoteSystemWatcher::RemoteSystemUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::RemoteSystems::IRemoteSystemWatcher::remove_RemoteSystemUpdated, RemoteSystemUpdated(handler)); -} - -template void impl_IRemoteSystemWatcher::RemoteSystemUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RemoteSystemUpdated(token)); -} - -template event_token impl_IRemoteSystemWatcher::RemoteSystemRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RemoteSystemRemoved(get(handler), &token)); - return token; -} - -template event_revoker impl_IRemoteSystemWatcher::RemoteSystemRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::RemoteSystems::IRemoteSystemWatcher::remove_RemoteSystemRemoved, RemoteSystemRemoved(handler)); -} - -template void impl_IRemoteSystemWatcher::RemoteSystemRemoved(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RemoteSystemRemoved(token)); -} - -template Windows::System::RemoteSystems::RemoteSystem impl_IRemoteSystemAddedEventArgs::RemoteSystem() const -{ - Windows::System::RemoteSystems::RemoteSystem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoteSystem(put(value))); - return value; -} - -template Windows::System::RemoteSystems::RemoteSystem impl_IRemoteSystemUpdatedEventArgs::RemoteSystem() const -{ - Windows::System::RemoteSystems::RemoteSystem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoteSystem(put(value))); - return value; -} - -template hstring impl_IRemoteSystemRemovedEventArgs::RemoteSystemId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteSystemId(put(value))); - return value; -} - -template Windows::System::RemoteSystems::RemoteSystemConnectionRequest impl_IRemoteSystemConnectionRequestFactory::Create(const Windows::System::RemoteSystems::RemoteSystem & remoteSystem) const -{ - Windows::System::RemoteSystems::RemoteSystemConnectionRequest result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(remoteSystem), put(result))); - return result; -} - -template Windows::System::RemoteSystems::RemoteSystem impl_IRemoteSystemConnectionRequest::RemoteSystem() const -{ - Windows::System::RemoteSystems::RemoteSystem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RemoteSystem(put(value))); - return value; -} - -template hstring impl_IRemoteSystemKindStatics::Phone() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Phone(put(value))); - return value; -} - -template hstring impl_IRemoteSystemKindStatics::Hub() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Hub(put(value))); - return value; -} - -template hstring impl_IRemoteSystemKindStatics::Holographic() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Holographic(put(value))); - return value; -} - -template hstring impl_IRemoteSystemKindStatics::Desktop() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Desktop(put(value))); - return value; -} - -template hstring impl_IRemoteSystemKindStatics::Xbox() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Xbox(put(value))); - return value; -} - -template Windows::System::RemoteSystems::RemoteSystemKindFilter impl_IRemoteSystemKindFilterFactory::Create(const Windows::Foundation::Collections::IIterable & remoteSystemKinds) const -{ - Windows::System::RemoteSystems::RemoteSystemKindFilter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(remoteSystemKinds), put(result))); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_IRemoteSystemKindFilter::RemoteSystemKinds() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_RemoteSystemKinds(put(value))); - return value; -} - -template Windows::System::RemoteSystems::RemoteSystemDiscoveryTypeFilter impl_IRemoteSystemDiscoveryTypeFilterFactory::Create(Windows::System::RemoteSystems::RemoteSystemDiscoveryType discoveryType) const -{ - Windows::System::RemoteSystems::RemoteSystemDiscoveryTypeFilter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(discoveryType, put(result))); - return result; -} - -template Windows::System::RemoteSystems::RemoteSystemDiscoveryType impl_IRemoteSystemDiscoveryTypeFilter::RemoteSystemDiscoveryType() const -{ - Windows::System::RemoteSystems::RemoteSystemDiscoveryType value {}; - check_hresult(static_cast(static_cast(*this))->get_RemoteSystemDiscoveryType(&value)); - return value; -} - -template Windows::System::RemoteSystems::RemoteSystemStatusTypeFilter impl_IRemoteSystemStatusTypeFilterFactory::Create(Windows::System::RemoteSystems::RemoteSystemStatusType remoteSystemStatusType) const -{ - Windows::System::RemoteSystems::RemoteSystemStatusTypeFilter result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(remoteSystemStatusType, put(result))); - return result; -} - -template Windows::System::RemoteSystems::RemoteSystemStatusType impl_IRemoteSystemStatusTypeFilter::RemoteSystemStatusType() const -{ - Windows::System::RemoteSystems::RemoteSystemStatusType value {}; - check_hresult(static_cast(static_cast(*this))->get_RemoteSystemStatusType(&value)); - return value; -} - -inline Windows::Foundation::IAsyncOperation RemoteSystem::FindByHostNameAsync(const Windows::Networking::HostName & hostName) -{ - return get_activation_factory().FindByHostNameAsync(hostName); -} - -inline Windows::System::RemoteSystems::RemoteSystemWatcher RemoteSystem::CreateWatcher() -{ - return get_activation_factory().CreateWatcher(); -} - -inline Windows::System::RemoteSystems::RemoteSystemWatcher RemoteSystem::CreateWatcher(const Windows::Foundation::Collections::IIterable & filters) -{ - return get_activation_factory().CreateWatcher(filters); -} - -inline Windows::Foundation::IAsyncOperation RemoteSystem::RequestAccessAsync() -{ - return get_activation_factory().RequestAccessAsync(); -} - -inline RemoteSystemConnectionRequest::RemoteSystemConnectionRequest(const Windows::System::RemoteSystems::RemoteSystem & remoteSystem) : - RemoteSystemConnectionRequest(get_activation_factory().Create(remoteSystem)) -{} - -inline RemoteSystemDiscoveryTypeFilter::RemoteSystemDiscoveryTypeFilter(Windows::System::RemoteSystems::RemoteSystemDiscoveryType discoveryType) : - RemoteSystemDiscoveryTypeFilter(get_activation_factory().Create(discoveryType)) -{} - -inline RemoteSystemKindFilter::RemoteSystemKindFilter(const Windows::Foundation::Collections::IIterable & remoteSystemKinds) : - RemoteSystemKindFilter(get_activation_factory().Create(remoteSystemKinds)) -{} - -inline hstring RemoteSystemKinds::Phone() -{ - return get_activation_factory().Phone(); -} - -inline hstring RemoteSystemKinds::Hub() -{ - return get_activation_factory().Hub(); -} - -inline hstring RemoteSystemKinds::Holographic() -{ - return get_activation_factory().Holographic(); -} - -inline hstring RemoteSystemKinds::Desktop() -{ - return get_activation_factory().Desktop(); -} - -inline hstring RemoteSystemKinds::Xbox() -{ - return get_activation_factory().Xbox(); -} - -inline RemoteSystemStatusTypeFilter::RemoteSystemStatusTypeFilter(Windows::System::RemoteSystems::RemoteSystemStatusType remoteSystemStatusType) : - RemoteSystemStatusTypeFilter(get_activation_factory().Create(remoteSystemStatusType)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.Threading.Core.h b/10.0.14393.0/winrt/Windows.System.Threading.Core.h deleted file mode 100644 index 0cb1a9b1e..000000000 --- a/10.0.14393.0/winrt/Windows.System.Threading.Core.h +++ /dev/null @@ -1,294 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.Threading.3.h" -#include "internal/Windows.System.Threading.Core.3.h" -#include "Windows.System.Threading.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::System::Threading::Core { - -template SignalHandler::SignalHandler(L lambda) : - SignalHandler(impl::make_delegate, SignalHandler>(std::forward(lambda))) -{} - -template SignalHandler::SignalHandler(F * function) : - SignalHandler([=](auto && ... args) { function(args ...); }) -{} - -template SignalHandler::SignalHandler(O * object, M method) : - SignalHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void SignalHandler::operator()(const Windows::System::Threading::Core::SignalNotifier & signalNotifier, bool timedOut) const -{ - check_hresult((*this)->abi_Invoke(get(signalNotifier), timedOut)); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RunAsync(abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().RunAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWorkItem(abi_arg_in handler, abi_arg_out workItem) noexcept override - { - try - { - *workItem = detach(this->shim().CreateWorkItem(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - *workItem = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWorkItemWithPriority(abi_arg_in handler, Windows::System::Threading::WorkItemPriority priority, abi_arg_out WorkItem) noexcept override - { - try - { - *WorkItem = detach(this->shim().CreateWorkItemWithPriority(*reinterpret_cast(&handler), priority)); - return S_OK; - } - catch (...) - { - *WorkItem = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWorkItemWithPriorityAndOptions(abi_arg_in handler, Windows::System::Threading::WorkItemPriority priority, Windows::System::Threading::WorkItemOptions options, abi_arg_out WorkItem) noexcept override - { - try - { - *WorkItem = detach(this->shim().CreateWorkItemWithPriorityAndOptions(*reinterpret_cast(&handler), priority, options)); - return S_OK; - } - catch (...) - { - *WorkItem = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Enable() noexcept override - { - try - { - this->shim().Enable(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Terminate() noexcept override - { - try - { - this->shim().Terminate(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AttachToEvent(abi_arg_in name, abi_arg_in handler, abi_arg_out signalNotifier) noexcept override - { - try - { - *signalNotifier = detach(this->shim().AttachToEvent(*reinterpret_cast(&name), *reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - *signalNotifier = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AttachToEventWithTimeout(abi_arg_in name, abi_arg_in handler, abi_arg_in timeout, abi_arg_out signalNotifier) noexcept override - { - try - { - *signalNotifier = detach(this->shim().AttachToEvent(*reinterpret_cast(&name), *reinterpret_cast(&handler), *reinterpret_cast(&timeout))); - return S_OK; - } - catch (...) - { - *signalNotifier = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AttachToSemaphore(abi_arg_in name, abi_arg_in handler, abi_arg_out signalNotifier) noexcept override - { - try - { - *signalNotifier = detach(this->shim().AttachToSemaphore(*reinterpret_cast(&name), *reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - *signalNotifier = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AttachToSemaphoreWithTimeout(abi_arg_in name, abi_arg_in handler, abi_arg_in timeout, abi_arg_out signalNotifier) noexcept override - { - try - { - *signalNotifier = detach(this->shim().AttachToSemaphore(*reinterpret_cast(&name), *reinterpret_cast(&handler), *reinterpret_cast(&timeout))); - return S_OK; - } - catch (...) - { - *signalNotifier = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System::Threading::Core { - -template Windows::System::Threading::Core::SignalNotifier impl_ISignalNotifierStatics::AttachToEvent(hstring_ref name, const Windows::System::Threading::Core::SignalHandler & handler) const -{ - Windows::System::Threading::Core::SignalNotifier signalNotifier { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AttachToEvent(get(name), get(handler), put(signalNotifier))); - return signalNotifier; -} - -template Windows::System::Threading::Core::SignalNotifier impl_ISignalNotifierStatics::AttachToEvent(hstring_ref name, const Windows::System::Threading::Core::SignalHandler & handler, const Windows::Foundation::TimeSpan & timeout) const -{ - Windows::System::Threading::Core::SignalNotifier signalNotifier { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AttachToEventWithTimeout(get(name), get(handler), get(timeout), put(signalNotifier))); - return signalNotifier; -} - -template Windows::System::Threading::Core::SignalNotifier impl_ISignalNotifierStatics::AttachToSemaphore(hstring_ref name, const Windows::System::Threading::Core::SignalHandler & handler) const -{ - Windows::System::Threading::Core::SignalNotifier signalNotifier { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AttachToSemaphore(get(name), get(handler), put(signalNotifier))); - return signalNotifier; -} - -template Windows::System::Threading::Core::SignalNotifier impl_ISignalNotifierStatics::AttachToSemaphore(hstring_ref name, const Windows::System::Threading::Core::SignalHandler & handler, const Windows::Foundation::TimeSpan & timeout) const -{ - Windows::System::Threading::Core::SignalNotifier signalNotifier { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AttachToSemaphoreWithTimeout(get(name), get(handler), get(timeout), put(signalNotifier))); - return signalNotifier; -} - -template Windows::System::Threading::Core::PreallocatedWorkItem impl_IPreallocatedWorkItemFactory::CreateWorkItem(const Windows::System::Threading::WorkItemHandler & handler) const -{ - Windows::System::Threading::Core::PreallocatedWorkItem workItem { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWorkItem(get(handler), put(workItem))); - return workItem; -} - -template Windows::System::Threading::Core::PreallocatedWorkItem impl_IPreallocatedWorkItemFactory::CreateWorkItemWithPriority(const Windows::System::Threading::WorkItemHandler & handler, Windows::System::Threading::WorkItemPriority priority) const -{ - Windows::System::Threading::Core::PreallocatedWorkItem WorkItem { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWorkItemWithPriority(get(handler), priority, put(WorkItem))); - return WorkItem; -} - -template Windows::System::Threading::Core::PreallocatedWorkItem impl_IPreallocatedWorkItemFactory::CreateWorkItemWithPriorityAndOptions(const Windows::System::Threading::WorkItemHandler & handler, Windows::System::Threading::WorkItemPriority priority, Windows::System::Threading::WorkItemOptions options) const -{ - Windows::System::Threading::Core::PreallocatedWorkItem WorkItem { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWorkItemWithPriorityAndOptions(get(handler), priority, options, put(WorkItem))); - return WorkItem; -} - -template Windows::Foundation::IAsyncAction impl_IPreallocatedWorkItem::RunAsync() const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_RunAsync(put(operation))); - return operation; -} - -template void impl_ISignalNotifier::Enable() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Enable()); -} - -template void impl_ISignalNotifier::Terminate() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Terminate()); -} - -inline PreallocatedWorkItem::PreallocatedWorkItem(const Windows::System::Threading::WorkItemHandler & handler) : - PreallocatedWorkItem(get_activation_factory().CreateWorkItem(handler)) -{} - -inline PreallocatedWorkItem::PreallocatedWorkItem(const Windows::System::Threading::WorkItemHandler & handler, Windows::System::Threading::WorkItemPriority priority) : - PreallocatedWorkItem(get_activation_factory().CreateWorkItemWithPriority(handler, priority)) -{} - -inline PreallocatedWorkItem::PreallocatedWorkItem(const Windows::System::Threading::WorkItemHandler & handler, Windows::System::Threading::WorkItemPriority priority, Windows::System::Threading::WorkItemOptions options) : - PreallocatedWorkItem(get_activation_factory().CreateWorkItemWithPriorityAndOptions(handler, priority, options)) -{} - -inline Windows::System::Threading::Core::SignalNotifier SignalNotifier::AttachToEvent(hstring_ref name, const Windows::System::Threading::Core::SignalHandler & handler) -{ - return get_activation_factory().AttachToEvent(name, handler); -} - -inline Windows::System::Threading::Core::SignalNotifier SignalNotifier::AttachToEvent(hstring_ref name, const Windows::System::Threading::Core::SignalHandler & handler, const Windows::Foundation::TimeSpan & timeout) -{ - return get_activation_factory().AttachToEvent(name, handler, timeout); -} - -inline Windows::System::Threading::Core::SignalNotifier SignalNotifier::AttachToSemaphore(hstring_ref name, const Windows::System::Threading::Core::SignalHandler & handler) -{ - return get_activation_factory().AttachToSemaphore(name, handler); -} - -inline Windows::System::Threading::Core::SignalNotifier SignalNotifier::AttachToSemaphore(hstring_ref name, const Windows::System::Threading::Core::SignalHandler & handler, const Windows::Foundation::TimeSpan & timeout) -{ - return get_activation_factory().AttachToSemaphore(name, handler, timeout); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.Threading.h b/10.0.14393.0/winrt/Windows.System.Threading.h deleted file mode 100644 index d5f9dd5d0..000000000 --- a/10.0.14393.0/winrt/Windows.System.Threading.h +++ /dev/null @@ -1,327 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.System.Threading.3.h" -#include "Windows.System.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::System::Threading { - -template TimerDestroyedHandler::TimerDestroyedHandler(L lambda) : - TimerDestroyedHandler(impl::make_delegate, TimerDestroyedHandler>(std::forward(lambda))) -{} - -template TimerDestroyedHandler::TimerDestroyedHandler(F * function) : - TimerDestroyedHandler([=](auto && ... args) { function(args ...); }) -{} - -template TimerDestroyedHandler::TimerDestroyedHandler(O * object, M method) : - TimerDestroyedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void TimerDestroyedHandler::operator()(const Windows::System::Threading::ThreadPoolTimer & timer) const -{ - check_hresult((*this)->abi_Invoke(get(timer))); -} - -template TimerElapsedHandler::TimerElapsedHandler(L lambda) : - TimerElapsedHandler(impl::make_delegate, TimerElapsedHandler>(std::forward(lambda))) -{} - -template TimerElapsedHandler::TimerElapsedHandler(F * function) : - TimerElapsedHandler([=](auto && ... args) { function(args ...); }) -{} - -template TimerElapsedHandler::TimerElapsedHandler(O * object, M method) : - TimerElapsedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void TimerElapsedHandler::operator()(const Windows::System::Threading::ThreadPoolTimer & timer) const -{ - check_hresult((*this)->abi_Invoke(get(timer))); -} - -template WorkItemHandler::WorkItemHandler(L lambda) : - WorkItemHandler(impl::make_delegate, WorkItemHandler>(std::forward(lambda))) -{} - -template WorkItemHandler::WorkItemHandler(F * function) : - WorkItemHandler([=](auto && ... args) { function(args ...); }) -{} - -template WorkItemHandler::WorkItemHandler(O * object, M method) : - WorkItemHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void WorkItemHandler::operator()(const Windows::Foundation::IAsyncAction & operation) const -{ - check_hresult((*this)->abi_Invoke(get(operation))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RunAsync(abi_arg_in handler, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().RunAsync(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RunWithPriorityAsync(abi_arg_in handler, Windows::System::Threading::WorkItemPriority priority, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().RunAsync(*reinterpret_cast(&handler), priority)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RunWithPriorityAndOptionsAsync(abi_arg_in handler, Windows::System::Threading::WorkItemPriority priority, Windows::System::Threading::WorkItemOptions options, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().RunAsync(*reinterpret_cast(&handler), priority, options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Period(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Period()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Delay(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Delay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Cancel() noexcept override - { - try - { - this->shim().Cancel(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreatePeriodicTimer(abi_arg_in handler, abi_arg_in period, abi_arg_out timer) noexcept override - { - try - { - *timer = detach(this->shim().CreatePeriodicTimer(*reinterpret_cast(&handler), *reinterpret_cast(&period))); - return S_OK; - } - catch (...) - { - *timer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTimer(abi_arg_in handler, abi_arg_in delay, abi_arg_out timer) noexcept override - { - try - { - *timer = detach(this->shim().CreateTimer(*reinterpret_cast(&handler), *reinterpret_cast(&delay))); - return S_OK; - } - catch (...) - { - *timer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePeriodicTimerWithCompletion(abi_arg_in handler, abi_arg_in period, abi_arg_in destroyed, abi_arg_out timer) noexcept override - { - try - { - *timer = detach(this->shim().CreatePeriodicTimer(*reinterpret_cast(&handler), *reinterpret_cast(&period), *reinterpret_cast(&destroyed))); - return S_OK; - } - catch (...) - { - *timer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTimerWithCompletion(abi_arg_in handler, abi_arg_in delay, abi_arg_in destroyed, abi_arg_out timer) noexcept override - { - try - { - *timer = detach(this->shim().CreateTimer(*reinterpret_cast(&handler), *reinterpret_cast(&delay), *reinterpret_cast(&destroyed))); - return S_OK; - } - catch (...) - { - *timer = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System::Threading { - -template Windows::Foundation::IAsyncAction impl_IThreadPoolStatics::RunAsync(const Windows::System::Threading::WorkItemHandler & handler) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_RunAsync(get(handler), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IThreadPoolStatics::RunAsync(const Windows::System::Threading::WorkItemHandler & handler, Windows::System::Threading::WorkItemPriority priority) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_RunWithPriorityAsync(get(handler), priority, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IThreadPoolStatics::RunAsync(const Windows::System::Threading::WorkItemHandler & handler, Windows::System::Threading::WorkItemPriority priority, Windows::System::Threading::WorkItemOptions options) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_RunWithPriorityAndOptionsAsync(get(handler), priority, options, put(operation))); - return operation; -} - -template Windows::Foundation::TimeSpan impl_IThreadPoolTimer::Period() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Period(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IThreadPoolTimer::Delay() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Delay(put(value))); - return value; -} - -template void impl_IThreadPoolTimer::Cancel() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Cancel()); -} - -template Windows::System::Threading::ThreadPoolTimer impl_IThreadPoolTimerStatics::CreatePeriodicTimer(const Windows::System::Threading::TimerElapsedHandler & handler, const Windows::Foundation::TimeSpan & period) const -{ - Windows::System::Threading::ThreadPoolTimer timer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePeriodicTimer(get(handler), get(period), put(timer))); - return timer; -} - -template Windows::System::Threading::ThreadPoolTimer impl_IThreadPoolTimerStatics::CreateTimer(const Windows::System::Threading::TimerElapsedHandler & handler, const Windows::Foundation::TimeSpan & delay) const -{ - Windows::System::Threading::ThreadPoolTimer timer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTimer(get(handler), get(delay), put(timer))); - return timer; -} - -template Windows::System::Threading::ThreadPoolTimer impl_IThreadPoolTimerStatics::CreatePeriodicTimer(const Windows::System::Threading::TimerElapsedHandler & handler, const Windows::Foundation::TimeSpan & period, const Windows::System::Threading::TimerDestroyedHandler & destroyed) const -{ - Windows::System::Threading::ThreadPoolTimer timer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePeriodicTimerWithCompletion(get(handler), get(period), get(destroyed), put(timer))); - return timer; -} - -template Windows::System::Threading::ThreadPoolTimer impl_IThreadPoolTimerStatics::CreateTimer(const Windows::System::Threading::TimerElapsedHandler & handler, const Windows::Foundation::TimeSpan & delay, const Windows::System::Threading::TimerDestroyedHandler & destroyed) const -{ - Windows::System::Threading::ThreadPoolTimer timer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTimerWithCompletion(get(handler), get(delay), get(destroyed), put(timer))); - return timer; -} - -inline Windows::Foundation::IAsyncAction ThreadPool::RunAsync(const Windows::System::Threading::WorkItemHandler & handler) -{ - return get_activation_factory().RunAsync(handler); -} - -inline Windows::Foundation::IAsyncAction ThreadPool::RunAsync(const Windows::System::Threading::WorkItemHandler & handler, Windows::System::Threading::WorkItemPriority priority) -{ - return get_activation_factory().RunAsync(handler, priority); -} - -inline Windows::Foundation::IAsyncAction ThreadPool::RunAsync(const Windows::System::Threading::WorkItemHandler & handler, Windows::System::Threading::WorkItemPriority priority, Windows::System::Threading::WorkItemOptions options) -{ - return get_activation_factory().RunAsync(handler, priority, options); -} - -inline Windows::System::Threading::ThreadPoolTimer ThreadPoolTimer::CreatePeriodicTimer(const Windows::System::Threading::TimerElapsedHandler & handler, const Windows::Foundation::TimeSpan & period) -{ - return get_activation_factory().CreatePeriodicTimer(handler, period); -} - -inline Windows::System::Threading::ThreadPoolTimer ThreadPoolTimer::CreateTimer(const Windows::System::Threading::TimerElapsedHandler & handler, const Windows::Foundation::TimeSpan & delay) -{ - return get_activation_factory().CreateTimer(handler, delay); -} - -inline Windows::System::Threading::ThreadPoolTimer ThreadPoolTimer::CreatePeriodicTimer(const Windows::System::Threading::TimerElapsedHandler & handler, const Windows::Foundation::TimeSpan & period, const Windows::System::Threading::TimerDestroyedHandler & destroyed) -{ - return get_activation_factory().CreatePeriodicTimer(handler, period, destroyed); -} - -inline Windows::System::Threading::ThreadPoolTimer ThreadPoolTimer::CreateTimer(const Windows::System::Threading::TimerElapsedHandler & handler, const Windows::Foundation::TimeSpan & delay, const Windows::System::Threading::TimerDestroyedHandler & destroyed) -{ - return get_activation_factory().CreateTimer(handler, delay, destroyed); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.UserProfile.h b/10.0.14393.0/winrt/Windows.System.UserProfile.h deleted file mode 100644 index c88205136..000000000 --- a/10.0.14393.0/winrt/Windows.System.UserProfile.h +++ /dev/null @@ -1,988 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.System.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Globalization.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.System.UserProfile.3.h" -#include "Windows.System.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AdvertisingId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdvertisingId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AdvertisingId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AdvertisingId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForUser(abi_arg_in user, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDefault(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetDefault()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Calendars(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Calendars()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Clocks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Clocks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Currencies(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Currencies()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Languages(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Languages()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HomeGeographicRegion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HomeGeographicRegion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WeekStartsOn(Windows::Globalization::DayOfWeek * value) noexcept override - { - try - { - *value = detach(this->shim().WeekStartsOn()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestSetImageFeedAsync(abi_arg_in syndicationFeedUri, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RequestSetImageFeedAsync(*reinterpret_cast(&syndicationFeedUri))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryRemoveImageFeed(bool * result) noexcept override - { - try - { - *result = detach(this->shim().TryRemoveImageFeed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OriginalImageFile(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OriginalImageFile()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetImageStream(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetImageStream()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetImageFileAsync(abi_arg_in value, abi_arg_out Operation) noexcept override - { - try - { - *Operation = detach(this->shim().SetImageFileAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *Operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetImageStreamAsync(abi_arg_in value, abi_arg_out Operation) noexcept override - { - try - { - *Operation = detach(this->shim().SetImageStreamAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *Operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AccountPictureChangeEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AccountPictureChangeEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NameAccessAllowed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().NameAccessAllowed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAccountPicture(Windows::System::UserProfile::AccountPictureKind kind, abi_arg_out storageFile) noexcept override - { - try - { - *storageFile = detach(this->shim().GetAccountPicture(kind)); - return S_OK; - } - catch (...) - { - *storageFile = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAccountPictureAsync(abi_arg_in image, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SetAccountPictureAsync(*reinterpret_cast(&image))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAccountPicturesAsync(abi_arg_in smallImage, abi_arg_in largeImage, abi_arg_in video, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SetAccountPicturesAsync(*reinterpret_cast(&smallImage), *reinterpret_cast(&largeImage), *reinterpret_cast(&video))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAccountPictureFromStreamAsync(abi_arg_in image, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SetAccountPictureFromStreamAsync(*reinterpret_cast(&image))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAccountPicturesFromStreamsAsync(abi_arg_in smallImage, abi_arg_in largeImage, abi_arg_in video, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().SetAccountPicturesFromStreamsAsync(*reinterpret_cast(&smallImage), *reinterpret_cast(&largeImage), *reinterpret_cast(&video))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AccountPictureChanged(abi_arg_in> changeHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AccountPictureChanged(*reinterpret_cast *>(&changeHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AccountPictureChanged(event_token token) noexcept override - { - try - { - this->shim().AccountPictureChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDisplayNameAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDisplayNameAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFirstNameAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetFirstNameAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLastNameAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetLastNameAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPrincipalNameAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPrincipalNameAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSessionInitiationProtocolUriAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetSessionInitiationProtocolUriAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDomainNameAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetDomainNameAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TrySetLockScreenImageAsync(abi_arg_in imageFile, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TrySetLockScreenImageAsync(*reinterpret_cast(&imageFile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetWallpaperImageAsync(abi_arg_in imageFile, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TrySetWallpaperImageAsync(*reinterpret_cast(&imageFile))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Current(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Current()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsSupported(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System::UserProfile { - -template hstring impl_IAdvertisingManagerStatics::AdvertisingId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AdvertisingId(put(value))); - return value; -} - -template hstring impl_IAdvertisingManagerForUser::AdvertisingId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AdvertisingId(put(value))); - return value; -} - -template Windows::System::User impl_IAdvertisingManagerForUser::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template Windows::System::UserProfile::AdvertisingManagerForUser impl_IAdvertisingManagerStatics2::GetForUser(const Windows::System::User & user) const -{ - Windows::System::UserProfile::AdvertisingManagerForUser value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForUser(get(user), put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IUserProfilePersonalizationSettings::TrySetLockScreenImageAsync(const Windows::Storage::StorageFile & imageFile) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_TrySetLockScreenImageAsync(get(imageFile), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUserProfilePersonalizationSettings::TrySetWallpaperImageAsync(const Windows::Storage::StorageFile & imageFile) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_TrySetWallpaperImageAsync(get(imageFile), put(operation))); - return operation; -} - -template Windows::System::UserProfile::UserProfilePersonalizationSettings impl_IUserProfilePersonalizationSettingsStatics::Current() const -{ - Windows::System::UserProfile::UserProfilePersonalizationSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Current(put(value))); - return value; -} - -template bool impl_IUserProfilePersonalizationSettingsStatics::IsSupported() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsSupported(&result)); - return result; -} - -template Windows::Foundation::Collections::IVectorView impl_IGlobalizationPreferencesStatics::Calendars() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Calendars(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGlobalizationPreferencesStatics::Clocks() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Clocks(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGlobalizationPreferencesStatics::Currencies() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Currencies(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IGlobalizationPreferencesStatics::Languages() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Languages(put(value))); - return value; -} - -template hstring impl_IGlobalizationPreferencesStatics::HomeGeographicRegion() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HomeGeographicRegion(put(value))); - return value; -} - -template Windows::Globalization::DayOfWeek impl_IGlobalizationPreferencesStatics::WeekStartsOn() const -{ - Windows::Globalization::DayOfWeek value {}; - check_hresult(static_cast(static_cast(*this))->get_WeekStartsOn(&value)); - return value; -} - -template Windows::System::UserProfile::FirstSignInSettings impl_IFirstSignInSettingsStatics::GetDefault() const -{ - Windows::System::UserProfile::FirstSignInSettings result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDefault(put(result))); - return result; -} - -template bool impl_IUserInformationStatics::AccountPictureChangeEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AccountPictureChangeEnabled(&value)); - return value; -} - -template bool impl_IUserInformationStatics::NameAccessAllowed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_NameAccessAllowed(&value)); - return value; -} - -template Windows::Storage::IStorageFile impl_IUserInformationStatics::GetAccountPicture(Windows::System::UserProfile::AccountPictureKind kind) const -{ - Windows::Storage::IStorageFile storageFile; - check_hresult(static_cast(static_cast(*this))->abi_GetAccountPicture(kind, put(storageFile))); - return storageFile; -} - -template Windows::Foundation::IAsyncOperation impl_IUserInformationStatics::SetAccountPictureAsync(const Windows::Storage::IStorageFile & image) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SetAccountPictureAsync(get(image), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUserInformationStatics::SetAccountPicturesAsync(const Windows::Storage::IStorageFile & smallImage, const Windows::Storage::IStorageFile & largeImage, const Windows::Storage::IStorageFile & video) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SetAccountPicturesAsync(get(smallImage), get(largeImage), get(video), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUserInformationStatics::SetAccountPictureFromStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & image) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SetAccountPictureFromStreamAsync(get(image), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUserInformationStatics::SetAccountPicturesFromStreamsAsync(const Windows::Storage::Streams::IRandomAccessStream & smallImage, const Windows::Storage::Streams::IRandomAccessStream & largeImage, const Windows::Storage::Streams::IRandomAccessStream & video) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_SetAccountPicturesFromStreamsAsync(get(smallImage), get(largeImage), get(video), put(operation))); - return operation; -} - -template event_token impl_IUserInformationStatics::AccountPictureChanged(const Windows::Foundation::EventHandler & changeHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AccountPictureChanged(get(changeHandler), &token)); - return token; -} - -template event_revoker impl_IUserInformationStatics::AccountPictureChanged(auto_revoke_t, const Windows::Foundation::EventHandler & changeHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::UserProfile::IUserInformationStatics::remove_AccountPictureChanged, AccountPictureChanged(changeHandler)); -} - -template void impl_IUserInformationStatics::AccountPictureChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AccountPictureChanged(token)); -} - -template Windows::Foundation::IAsyncOperation impl_IUserInformationStatics::GetDisplayNameAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDisplayNameAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUserInformationStatics::GetFirstNameAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetFirstNameAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUserInformationStatics::GetLastNameAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetLastNameAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUserInformationStatics::GetPrincipalNameAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPrincipalNameAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUserInformationStatics::GetSessionInitiationProtocolUriAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetSessionInitiationProtocolUriAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUserInformationStatics::GetDomainNameAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetDomainNameAsync(put(operation))); - return operation; -} - -template Windows::Foundation::Uri impl_ILockScreenStatics::OriginalImageFile() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OriginalImageFile(put(value))); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStream impl_ILockScreenStatics::GetImageStream() const -{ - Windows::Storage::Streams::IRandomAccessStream value; - check_hresult(static_cast(static_cast(*this))->abi_GetImageStream(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_ILockScreenStatics::SetImageFileAsync(const Windows::Storage::IStorageFile & value) const -{ - Windows::Foundation::IAsyncAction Operation; - check_hresult(static_cast(static_cast(*this))->abi_SetImageFileAsync(get(value), put(Operation))); - return Operation; -} - -template Windows::Foundation::IAsyncAction impl_ILockScreenStatics::SetImageStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & value) const -{ - Windows::Foundation::IAsyncAction Operation; - check_hresult(static_cast(static_cast(*this))->abi_SetImageStreamAsync(get(value), put(Operation))); - return Operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILockScreenImageFeedStatics::RequestSetImageFeedAsync(const Windows::Foundation::Uri & syndicationFeedUri) const -{ - Windows::Foundation::IAsyncOperation value; - check_hresult(static_cast(static_cast(*this))->abi_RequestSetImageFeedAsync(get(syndicationFeedUri), put(value))); - return value; -} - -template bool impl_ILockScreenImageFeedStatics::TryRemoveImageFeed() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryRemoveImageFeed(&result)); - return result; -} - -inline hstring AdvertisingManager::AdvertisingId() -{ - return get_activation_factory().AdvertisingId(); -} - -inline Windows::System::UserProfile::AdvertisingManagerForUser AdvertisingManager::GetForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetForUser(user); -} - -inline Windows::System::UserProfile::FirstSignInSettings FirstSignInSettings::GetDefault() -{ - return get_activation_factory().GetDefault(); -} - -inline Windows::Foundation::Collections::IVectorView GlobalizationPreferences::Calendars() -{ - return get_activation_factory().Calendars(); -} - -inline Windows::Foundation::Collections::IVectorView GlobalizationPreferences::Clocks() -{ - return get_activation_factory().Clocks(); -} - -inline Windows::Foundation::Collections::IVectorView GlobalizationPreferences::Currencies() -{ - return get_activation_factory().Currencies(); -} - -inline Windows::Foundation::Collections::IVectorView GlobalizationPreferences::Languages() -{ - return get_activation_factory().Languages(); -} - -inline hstring GlobalizationPreferences::HomeGeographicRegion() -{ - return get_activation_factory().HomeGeographicRegion(); -} - -inline Windows::Globalization::DayOfWeek GlobalizationPreferences::WeekStartsOn() -{ - return get_activation_factory().WeekStartsOn(); -} - -inline Windows::Foundation::IAsyncOperation LockScreen::RequestSetImageFeedAsync(const Windows::Foundation::Uri & syndicationFeedUri) -{ - return get_activation_factory().RequestSetImageFeedAsync(syndicationFeedUri); -} - -inline bool LockScreen::TryRemoveImageFeed() -{ - return get_activation_factory().TryRemoveImageFeed(); -} - -inline Windows::Foundation::Uri LockScreen::OriginalImageFile() -{ - return get_activation_factory().OriginalImageFile(); -} - -inline Windows::Storage::Streams::IRandomAccessStream LockScreen::GetImageStream() -{ - return get_activation_factory().GetImageStream(); -} - -inline Windows::Foundation::IAsyncAction LockScreen::SetImageFileAsync(const Windows::Storage::IStorageFile & value) -{ - return get_activation_factory().SetImageFileAsync(value); -} - -inline Windows::Foundation::IAsyncAction LockScreen::SetImageStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & value) -{ - return get_activation_factory().SetImageStreamAsync(value); -} - -inline bool UserInformation::AccountPictureChangeEnabled() -{ - return get_activation_factory().AccountPictureChangeEnabled(); -} - -inline bool UserInformation::NameAccessAllowed() -{ - return get_activation_factory().NameAccessAllowed(); -} - -inline Windows::Storage::IStorageFile UserInformation::GetAccountPicture(Windows::System::UserProfile::AccountPictureKind kind) -{ - return get_activation_factory().GetAccountPicture(kind); -} - -inline Windows::Foundation::IAsyncOperation UserInformation::SetAccountPictureAsync(const Windows::Storage::IStorageFile & image) -{ - return get_activation_factory().SetAccountPictureAsync(image); -} - -inline Windows::Foundation::IAsyncOperation UserInformation::SetAccountPicturesAsync(const Windows::Storage::IStorageFile & smallImage, const Windows::Storage::IStorageFile & largeImage, const Windows::Storage::IStorageFile & video) -{ - return get_activation_factory().SetAccountPicturesAsync(smallImage, largeImage, video); -} - -inline Windows::Foundation::IAsyncOperation UserInformation::SetAccountPictureFromStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & image) -{ - return get_activation_factory().SetAccountPictureFromStreamAsync(image); -} - -inline Windows::Foundation::IAsyncOperation UserInformation::SetAccountPicturesFromStreamsAsync(const Windows::Storage::Streams::IRandomAccessStream & smallImage, const Windows::Storage::Streams::IRandomAccessStream & largeImage, const Windows::Storage::Streams::IRandomAccessStream & video) -{ - return get_activation_factory().SetAccountPicturesFromStreamsAsync(smallImage, largeImage, video); -} - -inline event_token UserInformation::AccountPictureChanged(const Windows::Foundation::EventHandler & changeHandler) -{ - return get_activation_factory().AccountPictureChanged(changeHandler); -} - -inline factory_event_revoker UserInformation::AccountPictureChanged(auto_revoke_t, const Windows::Foundation::EventHandler & changeHandler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::UserProfile::IUserInformationStatics::remove_AccountPictureChanged, factory.AccountPictureChanged(changeHandler) }; -} - -inline void UserInformation::AccountPictureChanged(event_token token) -{ - get_activation_factory().AccountPictureChanged(token); -} - -inline Windows::Foundation::IAsyncOperation UserInformation::GetDisplayNameAsync() -{ - return get_activation_factory().GetDisplayNameAsync(); -} - -inline Windows::Foundation::IAsyncOperation UserInformation::GetFirstNameAsync() -{ - return get_activation_factory().GetFirstNameAsync(); -} - -inline Windows::Foundation::IAsyncOperation UserInformation::GetLastNameAsync() -{ - return get_activation_factory().GetLastNameAsync(); -} - -inline Windows::Foundation::IAsyncOperation UserInformation::GetPrincipalNameAsync() -{ - return get_activation_factory().GetPrincipalNameAsync(); -} - -inline Windows::Foundation::IAsyncOperation UserInformation::GetSessionInitiationProtocolUriAsync() -{ - return get_activation_factory().GetSessionInitiationProtocolUriAsync(); -} - -inline Windows::Foundation::IAsyncOperation UserInformation::GetDomainNameAsync() -{ - return get_activation_factory().GetDomainNameAsync(); -} - -inline Windows::System::UserProfile::UserProfilePersonalizationSettings UserProfilePersonalizationSettings::Current() -{ - return get_activation_factory().Current(); -} - -inline bool UserProfilePersonalizationSettings::IsSupported() -{ - return get_activation_factory().IsSupported(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.System.h b/10.0.14393.0/winrt/Windows.System.h deleted file mode 100644 index 0a5850f26..000000000 --- a/10.0.14393.0/winrt/Windows.System.h +++ /dev/null @@ -1,3655 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Popups.3.h" -#include "internal/Windows.Storage.Search.3.h" -#include "internal/Windows.UI.ViewManagement.3.h" -#include "internal/Windows.Storage.3.h" -#include "internal/Windows.System.RemoteSystems.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.System.3.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrivateCommitUsage(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PrivateCommitUsage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeakPrivateCommitUsage(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PeakPrivateCommitUsage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TotalCommitUsage(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().TotalCommitUsage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TotalCommitLimit(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().TotalCommitLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OldLimit(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().OldLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewLimit(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().NewLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemsToSelect(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ItemsToSelect()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LastName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProviderName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProviderName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccountName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccountName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GuestHost(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GuestHost()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrincipalName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrincipalName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DomainName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DomainName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SessionInitiationProtocolUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SessionInitiationProtocolUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::System::LaunchUriStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Result(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Result()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TreatAsUntrusted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().TreatAsUntrusted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TreatAsUntrusted(bool value) noexcept override - { - try - { - this->shim().TreatAsUntrusted(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayApplicationPicker(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DisplayApplicationPicker()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayApplicationPicker(bool value) noexcept override - { - try - { - this->shim().DisplayApplicationPicker(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UI(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UI()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreferredApplicationPackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreferredApplicationPackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreferredApplicationPackageFamilyName(abi_arg_in value) noexcept override - { - try - { - this->shim().PreferredApplicationPackageFamilyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreferredApplicationDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreferredApplicationDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreferredApplicationDisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().PreferredApplicationDisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FallbackUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FallbackUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FallbackUri(abi_arg_in value) noexcept override - { - try - { - this->shim().FallbackUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentType(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentType(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TargetApplicationPackageFamilyName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetApplicationPackageFamilyName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetApplicationPackageFamilyName(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetApplicationPackageFamilyName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NeighboringFilesQuery(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NeighboringFilesQuery()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NeighboringFilesQuery(abi_arg_in value) noexcept override - { - try - { - this->shim().NeighboringFilesQuery(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IgnoreAppUriHandlers(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IgnoreAppUriHandlers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IgnoreAppUriHandlers(bool value) noexcept override - { - try - { - this->shim().IgnoreAppUriHandlers(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LaunchFileAsync(abi_arg_in file, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchFileAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchFileWithOptionsAsync(abi_arg_in file, abi_arg_in options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchFileAsync(*reinterpret_cast(&file), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchUriAsync(abi_arg_in uri, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriAsync(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchUriWithOptionsAsync(abi_arg_in uri, abi_arg_in options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriAsync(*reinterpret_cast(&uri), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LaunchUriForResultsAsync(abi_arg_in uri, abi_arg_in options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriForResultsAsync(*reinterpret_cast(&uri), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchUriForResultsWithDataAsync(abi_arg_in uri, abi_arg_in options, abi_arg_in inputData, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriForResultsAsync(*reinterpret_cast(&uri), *reinterpret_cast(&options), *reinterpret_cast(&inputData))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchUriWithDataAsync(abi_arg_in uri, abi_arg_in options, abi_arg_in inputData, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriAsync(*reinterpret_cast(&uri), *reinterpret_cast(&options), *reinterpret_cast(&inputData))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_QueryUriSupportAsync(abi_arg_in uri, Windows::System::LaunchQuerySupportType launchQuerySupportType, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().QueryUriSupportAsync(*reinterpret_cast(&uri), launchQuerySupportType)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_QueryUriSupportWithPackageFamilyNameAsync(abi_arg_in uri, Windows::System::LaunchQuerySupportType launchQuerySupportType, abi_arg_in packageFamilyName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().QueryUriSupportAsync(*reinterpret_cast(&uri), launchQuerySupportType, *reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_QueryFileSupportAsync(abi_arg_in file, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().QueryFileSupportAsync(*reinterpret_cast(&file))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_QueryFileSupportWithPackageFamilyNameAsync(abi_arg_in file, abi_arg_in packageFamilyName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().QueryFileSupportAsync(*reinterpret_cast(&file), *reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindUriSchemeHandlersAsync(abi_arg_in scheme, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindUriSchemeHandlersAsync(*reinterpret_cast(&scheme))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindUriSchemeHandlersWithLaunchUriTypeAsync(abi_arg_in scheme, Windows::System::LaunchQuerySupportType launchQuerySupportType, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindUriSchemeHandlersAsync(*reinterpret_cast(&scheme), launchQuerySupportType)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindFileHandlersAsync(abi_arg_in extension, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindFileHandlersAsync(*reinterpret_cast(&extension))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LaunchFolderAsync(abi_arg_in folder, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchFolderAsync(*reinterpret_cast(&folder))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchFolderWithOptionsAsync(abi_arg_in folder, abi_arg_in options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchFolderAsync(*reinterpret_cast(&folder), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_QueryAppUriSupportAsync(abi_arg_in uri, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().QueryAppUriSupportAsync(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_QueryAppUriSupportWithPackageFamilyNameAsync(abi_arg_in uri, abi_arg_in packageFamilyName, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().QueryAppUriSupportAsync(*reinterpret_cast(&uri), *reinterpret_cast(&packageFamilyName))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAppUriHandlersAsync(abi_arg_in uri, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAppUriHandlersAsync(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchUriForUserAsync(abi_arg_in user, abi_arg_in uri, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchUriWithOptionsForUserAsync(abi_arg_in user, abi_arg_in uri, abi_arg_in options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&uri), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchUriWithDataForUserAsync(abi_arg_in user, abi_arg_in uri, abi_arg_in options, abi_arg_in inputData, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&uri), *reinterpret_cast(&options), *reinterpret_cast(&inputData))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchUriForResultsForUserAsync(abi_arg_in user, abi_arg_in uri, abi_arg_in options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriForResultsForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&uri), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchUriForResultsWithDataForUserAsync(abi_arg_in user, abi_arg_in uri, abi_arg_in options, abi_arg_in inputData, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriForResultsForUserAsync(*reinterpret_cast(&user), *reinterpret_cast(&uri), *reinterpret_cast(&options), *reinterpret_cast(&inputData))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InvocationPoint(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InvocationPoint()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InvocationPoint(abi_arg_in> value) noexcept override - { - try - { - this->shim().InvocationPoint(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionRect(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SelectionRect()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionRect(abi_arg_in> value) noexcept override - { - try - { - this->shim().SelectionRect(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreferredPlacement(Windows::UI::Popups::Placement * value) noexcept override - { - try - { - *value = detach(this->shim().PreferredPlacement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreferredPlacement(Windows::UI::Popups::Placement value) noexcept override - { - try - { - this->shim().PreferredPlacement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DesiredRemainingView(Windows::UI::ViewManagement::ViewSizePreference * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredRemainingView()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredRemainingView(Windows::UI::ViewManagement::ViewSizePreference value) noexcept override - { - try - { - this->shim().DesiredRemainingView(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppMemoryUsage(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().AppMemoryUsage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppMemoryUsageLimit(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().AppMemoryUsageLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppMemoryUsageLevel(Windows::System::AppMemoryUsageLevel * value) noexcept override - { - try - { - *value = detach(this->shim().AppMemoryUsageLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AppMemoryUsageIncreased(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AppMemoryUsageIncreased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AppMemoryUsageIncreased(event_token token) noexcept override - { - try - { - this->shim().AppMemoryUsageIncreased(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AppMemoryUsageDecreased(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AppMemoryUsageDecreased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AppMemoryUsageDecreased(event_token token) noexcept override - { - try - { - this->shim().AppMemoryUsageDecreased(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AppMemoryUsageLimitChanging(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AppMemoryUsageLimitChanging(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AppMemoryUsageLimitChanging(event_token token) noexcept override - { - try - { - this->shim().AppMemoryUsageLimitChanging(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAppMemoryReport(abi_arg_out memoryReport) noexcept override - { - try - { - *memoryReport = detach(this->shim().GetAppMemoryReport()); - return S_OK; - } - catch (...) - { - *memoryReport = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetProcessMemoryReport(abi_arg_out memoryReport) noexcept override - { - try - { - *memoryReport = detach(this->shim().GetProcessMemoryReport()); - return S_OK; - } - catch (...) - { - *memoryReport = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TrySetAppMemoryUsageLimit(uint64_t value, bool * result) noexcept override - { - try - { - *result = detach(this->shim().TrySetAppMemoryUsageLimit(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StandardInput(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StandardInput()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StandardInput(abi_arg_in value) noexcept override - { - try - { - this->shim().StandardInput(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StandardOutput(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StandardOutput()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StandardOutput(abi_arg_in value) noexcept override - { - try - { - this->shim().StandardOutput(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StandardError(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StandardError()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StandardError(abi_arg_in value) noexcept override - { - try - { - this->shim().StandardError(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WorkingDirectory(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WorkingDirectory()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WorkingDirectory(abi_arg_in value) noexcept override - { - try - { - this->shim().WorkingDirectory(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExitCode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ExitCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RunToCompletionAsync(abi_arg_in fileName, abi_arg_in args, abi_arg_out> asyncOperationResult) noexcept override - { - try - { - *asyncOperationResult = detach(this->shim().RunToCompletionAsync(*reinterpret_cast(&fileName), *reinterpret_cast(&args))); - return S_OK; - } - catch (...) - { - *asyncOperationResult = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RunToCompletionAsyncWithOptions(abi_arg_in fileName, abi_arg_in args, abi_arg_in options, abi_arg_out> asyncOperationResult) noexcept override - { - try - { - *asyncOperationResult = detach(this->shim().RunToCompletionAsync(*reinterpret_cast(&fileName), *reinterpret_cast(&args), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *asyncOperationResult = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrivateWorkingSetUsage(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().PrivateWorkingSetUsage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TotalWorkingSetUsage(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().TotalWorkingSetUsage()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReportCompleted(abi_arg_in data) noexcept override - { - try - { - this->shim().ReportCompleted(*reinterpret_cast(&data)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FallbackUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FallbackUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FallbackUri(abi_arg_in value) noexcept override - { - try - { - this->shim().FallbackUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreferredAppIds(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PreferredAppIds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LaunchUriAsync(abi_arg_in remoteSystemConnectionRequest, abi_arg_in uri, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriAsync(*reinterpret_cast(&remoteSystemConnectionRequest), *reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchUriWithOptionsAsync(abi_arg_in remoteSystemConnectionRequest, abi_arg_in uri, abi_arg_in options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriAsync(*reinterpret_cast(&remoteSystemConnectionRequest), *reinterpret_cast(&uri), *reinterpret_cast(&options))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LaunchUriWithDataAsync(abi_arg_in remoteSystemConnectionRequest, abi_arg_in uri, abi_arg_in options, abi_arg_in inputData, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().LaunchUriAsync(*reinterpret_cast(&remoteSystemConnectionRequest), *reinterpret_cast(&uri), *reinterpret_cast(&options), *reinterpret_cast(&inputData))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_BeginShutdown(Windows::System::ShutdownKind shutdownKind, abi_arg_in timeout) noexcept override - { - try - { - this->shim().BeginShutdown(shutdownKind, *reinterpret_cast(&timeout)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CancelShutdown() noexcept override - { - try - { - this->shim().CancelShutdown(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentTimeZoneDisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentTimeZoneDisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedTimeZoneDisplayNames(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SupportedTimeZoneDisplayNames()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanChangeTimeZone(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanChangeTimeZone()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ChangeTimeZoneByDisplayName(abi_arg_in timeZoneDisplayName) noexcept override - { - try - { - this->shim().ChangeTimeZoneByDisplayName(*reinterpret_cast(&timeZoneDisplayName)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NonRoamableId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NonRoamableId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthenticationStatus(Windows::System::UserAuthenticationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().AuthenticationStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::System::UserType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPropertyAsync(abi_arg_in value, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPropertyAsync(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPropertiesAsync(abi_arg_in> values, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPropertiesAsync(*reinterpret_cast *>(&values))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPictureAsync(Windows::System::UserPictureSize desiredSize, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().GetPictureAsync(desiredSize)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewStatus(Windows::System::UserAuthenticationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().NewStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentStatus(Windows::System::UserAuthenticationStatus * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewUser(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewUser()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OldUser(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldUser()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindUserFromDeviceId(abi_arg_in deviceId, abi_arg_out user) noexcept override - { - try - { - *user = detach(this->shim().FindUserFromDeviceId(*reinterpret_cast(&deviceId))); - return S_OK; - } - catch (...) - { - *user = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UserDeviceAssociationChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UserDeviceAssociationChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UserDeviceAssociationChanged(event_token token) noexcept override - { - try - { - this->shim().UserDeviceAssociationChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllowGuestAccounts(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowGuestAccounts()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowGuestAccounts(bool value) noexcept override - { - try - { - this->shim().AllowGuestAccounts(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuggestedSelectedUser(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SuggestedSelectedUser()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuggestedSelectedUser(abi_arg_in value) noexcept override - { - try - { - this->shim().SuggestedSelectedUser(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PickSingleUserAsync(abi_arg_out> pickSingleUserOperation) noexcept override - { - try - { - *pickSingleUserOperation = detach(this->shim().PickSingleUserAsync()); - return S_OK; - } - catch (...) - { - *pickSingleUserOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWatcher(abi_arg_out watcher) noexcept override - { - try - { - *watcher = detach(this->shim().CreateWatcher()); - return S_OK; - } - catch (...) - { - *watcher = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAllAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsyncByType(Windows::System::UserType type, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAllAsync(type)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsyncByTypeAndStatus(Windows::System::UserType type, Windows::System::UserAuthenticationStatus status, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAllAsync(type, status)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFromId(abi_arg_in nonRoamableId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetFromId(*reinterpret_cast(&nonRoamableId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Status(Windows::System::UserWatcherStatus * value) noexcept override - { - try - { - *value = detach(this->shim().Status()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Start() noexcept override - { - try - { - this->shim().Start(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Added(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Added(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Added(event_token token) noexcept override - { - try - { - this->shim().Added(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Removed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Removed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Removed(event_token token) noexcept override - { - try - { - this->shim().Removed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Updated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Updated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Updated(event_token token) noexcept override - { - try - { - this->shim().Updated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AuthenticationStatusChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AuthenticationStatusChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AuthenticationStatusChanged(event_token token) noexcept override - { - try - { - this->shim().AuthenticationStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AuthenticationStatusChanging(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().AuthenticationStatusChanging(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AuthenticationStatusChanging(event_token token) noexcept override - { - try - { - this->shim().AuthenticationStatusChanging(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnumerationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnumerationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnumerationCompleted(event_token token) noexcept override - { - try - { - this->shim().EnumerationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Stopped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Stopped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Stopped(event_token token) noexcept override - { - try - { - this->shim().Stopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::System { - -template uint64_t impl_IAppMemoryReport::PrivateCommitUsage() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PrivateCommitUsage(&value)); - return value; -} - -template uint64_t impl_IAppMemoryReport::PeakPrivateCommitUsage() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PeakPrivateCommitUsage(&value)); - return value; -} - -template uint64_t impl_IAppMemoryReport::TotalCommitUsage() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TotalCommitUsage(&value)); - return value; -} - -template uint64_t impl_IAppMemoryReport::TotalCommitLimit() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TotalCommitLimit(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryReport::PrivateWorkingSetUsage() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PrivateWorkingSetUsage(&value)); - return value; -} - -template uint64_t impl_IProcessMemoryReport::TotalWorkingSetUsage() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TotalWorkingSetUsage(&value)); - return value; -} - -template uint64_t impl_IAppMemoryUsageLimitChangingEventArgs::OldLimit() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_OldLimit(&value)); - return value; -} - -template uint64_t impl_IAppMemoryUsageLimitChangingEventArgs::NewLimit() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NewLimit(&value)); - return value; -} - -template uint64_t impl_IMemoryManagerStatics::AppMemoryUsage() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AppMemoryUsage(&value)); - return value; -} - -template uint64_t impl_IMemoryManagerStatics::AppMemoryUsageLimit() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AppMemoryUsageLimit(&value)); - return value; -} - -template Windows::System::AppMemoryUsageLevel impl_IMemoryManagerStatics::AppMemoryUsageLevel() const -{ - Windows::System::AppMemoryUsageLevel value {}; - check_hresult(static_cast(static_cast(*this))->get_AppMemoryUsageLevel(&value)); - return value; -} - -template event_token impl_IMemoryManagerStatics::AppMemoryUsageIncreased(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AppMemoryUsageIncreased(get(handler), &token)); - return token; -} - -template event_revoker impl_IMemoryManagerStatics::AppMemoryUsageIncreased(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::IMemoryManagerStatics::remove_AppMemoryUsageIncreased, AppMemoryUsageIncreased(handler)); -} - -template void impl_IMemoryManagerStatics::AppMemoryUsageIncreased(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AppMemoryUsageIncreased(token)); -} - -template event_token impl_IMemoryManagerStatics::AppMemoryUsageDecreased(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AppMemoryUsageDecreased(get(handler), &token)); - return token; -} - -template event_revoker impl_IMemoryManagerStatics::AppMemoryUsageDecreased(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::IMemoryManagerStatics::remove_AppMemoryUsageDecreased, AppMemoryUsageDecreased(handler)); -} - -template void impl_IMemoryManagerStatics::AppMemoryUsageDecreased(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AppMemoryUsageDecreased(token)); -} - -template event_token impl_IMemoryManagerStatics::AppMemoryUsageLimitChanging(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AppMemoryUsageLimitChanging(get(handler), &token)); - return token; -} - -template event_revoker impl_IMemoryManagerStatics::AppMemoryUsageLimitChanging(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::IMemoryManagerStatics::remove_AppMemoryUsageLimitChanging, AppMemoryUsageLimitChanging(handler)); -} - -template void impl_IMemoryManagerStatics::AppMemoryUsageLimitChanging(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AppMemoryUsageLimitChanging(token)); -} - -template Windows::System::AppMemoryReport impl_IMemoryManagerStatics2::GetAppMemoryReport() const -{ - Windows::System::AppMemoryReport memoryReport { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAppMemoryReport(put(memoryReport))); - return memoryReport; -} - -template Windows::System::ProcessMemoryReport impl_IMemoryManagerStatics2::GetProcessMemoryReport() const -{ - Windows::System::ProcessMemoryReport memoryReport { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetProcessMemoryReport(put(memoryReport))); - return memoryReport; -} - -template bool impl_IMemoryManagerStatics3::TrySetAppMemoryUsageLimit(uint64_t value) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetAppMemoryUsageLimit(value, &result)); - return result; -} - -template void impl_IProtocolForResultsOperation::ReportCompleted(const Windows::Foundation::Collections::ValueSet & data) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReportCompleted(get(data))); -} - -template hstring impl_IUser::NonRoamableId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_NonRoamableId(put(value))); - return value; -} - -template Windows::System::UserAuthenticationStatus impl_IUser::AuthenticationStatus() const -{ - Windows::System::UserAuthenticationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_AuthenticationStatus(&value)); - return value; -} - -template Windows::System::UserType impl_IUser::Type() const -{ - Windows::System::UserType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IUser::GetPropertyAsync(hstring_ref value) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPropertyAsync(get(value), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUser::GetPropertiesAsync(const Windows::Foundation::Collections::IVectorView & values) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPropertiesAsync(get(values), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IUser::GetPictureAsync(Windows::System::UserPictureSize desiredSize) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_GetPictureAsync(desiredSize, put(operation))); - return operation; -} - -template Windows::System::UserWatcher impl_IUserStatics::CreateWatcher() const -{ - Windows::System::UserWatcher watcher { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWatcher(put(watcher))); - return watcher; -} - -template Windows::Foundation::IAsyncOperation> impl_IUserStatics::FindAllAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IUserStatics::FindAllAsync(Windows::System::UserType type) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsyncByType(type, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_IUserStatics::FindAllAsync(Windows::System::UserType type, Windows::System::UserAuthenticationStatus status) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsyncByTypeAndStatus(type, status, put(operation))); - return operation; -} - -template Windows::System::User impl_IUserStatics::GetFromId(hstring_ref nonRoamableId) const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetFromId(get(nonRoamableId), put(value))); - return value; -} - -template Windows::System::UserWatcherStatus impl_IUserWatcher::Status() const -{ - Windows::System::UserWatcherStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template void impl_IUserWatcher::Start() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Start()); -} - -template void impl_IUserWatcher::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template event_token impl_IUserWatcher::Added(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Added(get(handler), &token)); - return token; -} - -template event_revoker impl_IUserWatcher::Added(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::IUserWatcher::remove_Added, Added(handler)); -} - -template void impl_IUserWatcher::Added(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Added(token)); -} - -template event_token impl_IUserWatcher::Removed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Removed(get(handler), &token)); - return token; -} - -template event_revoker impl_IUserWatcher::Removed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::IUserWatcher::remove_Removed, Removed(handler)); -} - -template void impl_IUserWatcher::Removed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Removed(token)); -} - -template event_token impl_IUserWatcher::Updated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Updated(get(handler), &token)); - return token; -} - -template event_revoker impl_IUserWatcher::Updated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::IUserWatcher::remove_Updated, Updated(handler)); -} - -template void impl_IUserWatcher::Updated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Updated(token)); -} - -template event_token impl_IUserWatcher::AuthenticationStatusChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AuthenticationStatusChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IUserWatcher::AuthenticationStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::IUserWatcher::remove_AuthenticationStatusChanged, AuthenticationStatusChanged(handler)); -} - -template void impl_IUserWatcher::AuthenticationStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AuthenticationStatusChanged(token)); -} - -template event_token impl_IUserWatcher::AuthenticationStatusChanging(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_AuthenticationStatusChanging(get(handler), &token)); - return token; -} - -template event_revoker impl_IUserWatcher::AuthenticationStatusChanging(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::IUserWatcher::remove_AuthenticationStatusChanging, AuthenticationStatusChanging(handler)); -} - -template void impl_IUserWatcher::AuthenticationStatusChanging(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AuthenticationStatusChanging(token)); -} - -template event_token impl_IUserWatcher::EnumerationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnumerationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_IUserWatcher::EnumerationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::IUserWatcher::remove_EnumerationCompleted, EnumerationCompleted(handler)); -} - -template void impl_IUserWatcher::EnumerationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnumerationCompleted(token)); -} - -template event_token impl_IUserWatcher::Stopped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Stopped(get(handler), &token)); - return token; -} - -template event_revoker impl_IUserWatcher::Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::IUserWatcher::remove_Stopped, Stopped(handler)); -} - -template void impl_IUserWatcher::Stopped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Stopped(token)); -} - -template Windows::System::User impl_IUserChangedEventArgs::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template void impl_IUserAuthenticationStatusChangeDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::System::UserAuthenticationStatusChangeDeferral impl_IUserAuthenticationStatusChangingEventArgs::GetDeferral() const -{ - Windows::System::UserAuthenticationStatusChangeDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template Windows::System::User impl_IUserAuthenticationStatusChangingEventArgs::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template Windows::System::UserAuthenticationStatus impl_IUserAuthenticationStatusChangingEventArgs::NewStatus() const -{ - Windows::System::UserAuthenticationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_NewStatus(&value)); - return value; -} - -template Windows::System::UserAuthenticationStatus impl_IUserAuthenticationStatusChangingEventArgs::CurrentStatus() const -{ - Windows::System::UserAuthenticationStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentStatus(&value)); - return value; -} - -template hstring impl_IKnownUserPropertiesStatics::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template hstring impl_IKnownUserPropertiesStatics::FirstName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FirstName(put(value))); - return value; -} - -template hstring impl_IKnownUserPropertiesStatics::LastName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LastName(put(value))); - return value; -} - -template hstring impl_IKnownUserPropertiesStatics::ProviderName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ProviderName(put(value))); - return value; -} - -template hstring impl_IKnownUserPropertiesStatics::AccountName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AccountName(put(value))); - return value; -} - -template hstring impl_IKnownUserPropertiesStatics::GuestHost() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GuestHost(put(value))); - return value; -} - -template hstring impl_IKnownUserPropertiesStatics::PrincipalName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PrincipalName(put(value))); - return value; -} - -template hstring impl_IKnownUserPropertiesStatics::DomainName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DomainName(put(value))); - return value; -} - -template hstring impl_IKnownUserPropertiesStatics::SessionInitiationProtocolUri() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SessionInitiationProtocolUri(put(value))); - return value; -} - -template bool impl_IUserPickerStatics::IsSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsSupported(&value)); - return value; -} - -template bool impl_IUserPicker::AllowGuestAccounts() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowGuestAccounts(&value)); - return value; -} - -template void impl_IUserPicker::AllowGuestAccounts(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowGuestAccounts(value)); -} - -template Windows::System::User impl_IUserPicker::SuggestedSelectedUser() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SuggestedSelectedUser(put(value))); - return value; -} - -template void impl_IUserPicker::SuggestedSelectedUser(const Windows::System::User & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuggestedSelectedUser(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_IUserPicker::PickSingleUserAsync() const -{ - Windows::Foundation::IAsyncOperation pickSingleUserOperation; - check_hresult(static_cast(static_cast(*this))->abi_PickSingleUserAsync(put(pickSingleUserOperation))); - return pickSingleUserOperation; -} - -template hstring impl_IUserDeviceAssociationChangedEventArgs::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::System::User impl_IUserDeviceAssociationChangedEventArgs::NewUser() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NewUser(put(value))); - return value; -} - -template Windows::System::User impl_IUserDeviceAssociationChangedEventArgs::OldUser() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OldUser(put(value))); - return value; -} - -template Windows::System::User impl_IUserDeviceAssociationStatics::FindUserFromDeviceId(hstring_ref deviceId) const -{ - Windows::System::User user { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FindUserFromDeviceId(get(deviceId), put(user))); - return user; -} - -template event_token impl_IUserDeviceAssociationStatics::UserDeviceAssociationChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UserDeviceAssociationChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IUserDeviceAssociationStatics::UserDeviceAssociationChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::System::IUserDeviceAssociationStatics::remove_UserDeviceAssociationChanged, UserDeviceAssociationChanged(handler)); -} - -template void impl_IUserDeviceAssociationStatics::UserDeviceAssociationChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UserDeviceAssociationChanged(token)); -} - -template Windows::System::LaunchUriStatus impl_ILaunchUriResult::Status() const -{ - Windows::System::LaunchUriStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_Status(&value)); - return value; -} - -template Windows::Foundation::Collections::ValueSet impl_ILaunchUriResult::Result() const -{ - Windows::Foundation::Collections::ValueSet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Result(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ILauncherUIOptions::InvocationPoint() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InvocationPoint(put(value))); - return value; -} - -template void impl_ILauncherUIOptions::InvocationPoint(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InvocationPoint(get(value))); -} - -template Windows::Foundation::IReference impl_ILauncherUIOptions::SelectionRect() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_SelectionRect(put(value))); - return value; -} - -template void impl_ILauncherUIOptions::SelectionRect(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionRect(get(value))); -} - -template Windows::UI::Popups::Placement impl_ILauncherUIOptions::PreferredPlacement() const -{ - Windows::UI::Popups::Placement value {}; - check_hresult(static_cast(static_cast(*this))->get_PreferredPlacement(&value)); - return value; -} - -template void impl_ILauncherUIOptions::PreferredPlacement(Windows::UI::Popups::Placement value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreferredPlacement(value)); -} - -template bool impl_ILauncherOptions::TreatAsUntrusted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_TreatAsUntrusted(&value)); - return value; -} - -template void impl_ILauncherOptions::TreatAsUntrusted(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TreatAsUntrusted(value)); -} - -template bool impl_ILauncherOptions::DisplayApplicationPicker() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DisplayApplicationPicker(&value)); - return value; -} - -template void impl_ILauncherOptions::DisplayApplicationPicker(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayApplicationPicker(value)); -} - -template Windows::System::LauncherUIOptions impl_ILauncherOptions::UI() const -{ - Windows::System::LauncherUIOptions value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UI(put(value))); - return value; -} - -template hstring impl_ILauncherOptions::PreferredApplicationPackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PreferredApplicationPackageFamilyName(put(value))); - return value; -} - -template void impl_ILauncherOptions::PreferredApplicationPackageFamilyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreferredApplicationPackageFamilyName(get(value))); -} - -template hstring impl_ILauncherOptions::PreferredApplicationDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PreferredApplicationDisplayName(put(value))); - return value; -} - -template void impl_ILauncherOptions::PreferredApplicationDisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreferredApplicationDisplayName(get(value))); -} - -template Windows::Foundation::Uri impl_ILauncherOptions::FallbackUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FallbackUri(put(value))); - return value; -} - -template void impl_ILauncherOptions::FallbackUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FallbackUri(get(value))); -} - -template hstring impl_ILauncherOptions::ContentType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ContentType(put(value))); - return value; -} - -template void impl_ILauncherOptions::ContentType(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentType(get(value))); -} - -template hstring impl_ILauncherOptions2::TargetApplicationPackageFamilyName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TargetApplicationPackageFamilyName(put(value))); - return value; -} - -template void impl_ILauncherOptions2::TargetApplicationPackageFamilyName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TargetApplicationPackageFamilyName(get(value))); -} - -template Windows::Storage::Search::StorageFileQueryResult impl_ILauncherOptions2::NeighboringFilesQuery() const -{ - Windows::Storage::Search::StorageFileQueryResult value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NeighboringFilesQuery(put(value))); - return value; -} - -template void impl_ILauncherOptions2::NeighboringFilesQuery(const Windows::Storage::Search::StorageFileQueryResult & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NeighboringFilesQuery(get(value))); -} - -template bool impl_ILauncherOptions3::IgnoreAppUriHandlers() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IgnoreAppUriHandlers(&value)); - return value; -} - -template void impl_ILauncherOptions3::IgnoreAppUriHandlers(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IgnoreAppUriHandlers(value)); -} - -template Windows::UI::ViewManagement::ViewSizePreference impl_ILauncherViewOptions::DesiredRemainingView() const -{ - Windows::UI::ViewManagement::ViewSizePreference value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredRemainingView(&value)); - return value; -} - -template void impl_ILauncherViewOptions::DesiredRemainingView(Windows::UI::ViewManagement::ViewSizePreference value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredRemainingView(value)); -} - -template Windows::Foundation::Uri impl_IRemoteLauncherOptions::FallbackUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FallbackUri(put(value))); - return value; -} - -template void impl_IRemoteLauncherOptions::FallbackUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FallbackUri(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IRemoteLauncherOptions::PreferredAppIds() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_PreferredAppIds(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IFolderLauncherOptions::ItemsToSelect() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ItemsToSelect(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics::LaunchFileAsync(const Windows::Storage::IStorageFile & file) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchFileAsync(get(file), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics::LaunchFileAsync(const Windows::Storage::IStorageFile & file, const Windows::System::LauncherOptions & options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchFileWithOptionsAsync(get(file), get(options), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics::LaunchUriAsync(const Windows::Foundation::Uri & uri) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriAsync(get(uri), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics::LaunchUriAsync(const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriWithOptionsAsync(get(uri), get(options), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics2::LaunchUriForResultsAsync(const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriForResultsAsync(get(uri), get(options), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics2::LaunchUriForResultsAsync(const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options, const Windows::Foundation::Collections::ValueSet & inputData) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriForResultsWithDataAsync(get(uri), get(options), get(inputData), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics2::LaunchUriAsync(const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options, const Windows::Foundation::Collections::ValueSet & inputData) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriWithDataAsync(get(uri), get(options), get(inputData), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics2::QueryUriSupportAsync(const Windows::Foundation::Uri & uri, Windows::System::LaunchQuerySupportType launchQuerySupportType) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_QueryUriSupportAsync(get(uri), launchQuerySupportType, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics2::QueryUriSupportAsync(const Windows::Foundation::Uri & uri, Windows::System::LaunchQuerySupportType launchQuerySupportType, hstring_ref packageFamilyName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_QueryUriSupportWithPackageFamilyNameAsync(get(uri), launchQuerySupportType, get(packageFamilyName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics2::QueryFileSupportAsync(const Windows::Storage::StorageFile & file) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_QueryFileSupportAsync(get(file), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics2::QueryFileSupportAsync(const Windows::Storage::StorageFile & file, hstring_ref packageFamilyName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_QueryFileSupportWithPackageFamilyNameAsync(get(file), get(packageFamilyName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_ILauncherStatics2::FindUriSchemeHandlersAsync(hstring_ref scheme) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindUriSchemeHandlersAsync(get(scheme), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_ILauncherStatics2::FindUriSchemeHandlersAsync(hstring_ref scheme, Windows::System::LaunchQuerySupportType launchQuerySupportType) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindUriSchemeHandlersWithLaunchUriTypeAsync(get(scheme), launchQuerySupportType, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_ILauncherStatics2::FindFileHandlersAsync(hstring_ref extension) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindFileHandlersAsync(get(extension), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics3::LaunchFolderAsync(const Windows::Storage::IStorageFolder & folder) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchFolderAsync(get(folder), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics3::LaunchFolderAsync(const Windows::Storage::IStorageFolder & folder, const Windows::System::FolderLauncherOptions & options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchFolderWithOptionsAsync(get(folder), get(options), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics4::QueryAppUriSupportAsync(const Windows::Foundation::Uri & uri) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_QueryAppUriSupportAsync(get(uri), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics4::QueryAppUriSupportAsync(const Windows::Foundation::Uri & uri, hstring_ref packageFamilyName) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_QueryAppUriSupportWithPackageFamilyNameAsync(get(uri), get(packageFamilyName), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_ILauncherStatics4::FindAppUriHandlersAsync(const Windows::Foundation::Uri & uri) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAppUriHandlersAsync(get(uri), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics4::LaunchUriForUserAsync(const Windows::System::User & user, const Windows::Foundation::Uri & uri) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriForUserAsync(get(user), get(uri), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics4::LaunchUriForUserAsync(const Windows::System::User & user, const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriWithOptionsForUserAsync(get(user), get(uri), get(options), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics4::LaunchUriForUserAsync(const Windows::System::User & user, const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options, const Windows::Foundation::Collections::ValueSet & inputData) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriWithDataForUserAsync(get(user), get(uri), get(options), get(inputData), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics4::LaunchUriForResultsForUserAsync(const Windows::System::User & user, const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriForResultsForUserAsync(get(user), get(uri), get(options), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ILauncherStatics4::LaunchUriForResultsForUserAsync(const Windows::System::User & user, const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options, const Windows::Foundation::Collections::ValueSet & inputData) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriForResultsWithDataForUserAsync(get(user), get(uri), get(options), get(inputData), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IRemoteLauncherStatics::LaunchUriAsync(const Windows::System::RemoteSystems::RemoteSystemConnectionRequest & remoteSystemConnectionRequest, const Windows::Foundation::Uri & uri) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriAsync(get(remoteSystemConnectionRequest), get(uri), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IRemoteLauncherStatics::LaunchUriAsync(const Windows::System::RemoteSystems::RemoteSystemConnectionRequest & remoteSystemConnectionRequest, const Windows::Foundation::Uri & uri, const Windows::System::RemoteLauncherOptions & options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriWithOptionsAsync(get(remoteSystemConnectionRequest), get(uri), get(options), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IRemoteLauncherStatics::LaunchUriAsync(const Windows::System::RemoteSystems::RemoteSystemConnectionRequest & remoteSystemConnectionRequest, const Windows::Foundation::Uri & uri, const Windows::System::RemoteLauncherOptions & options, const Windows::Foundation::Collections::ValueSet & inputData) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_LaunchUriWithDataAsync(get(remoteSystemConnectionRequest), get(uri), get(options), get(inputData), put(operation))); - return operation; -} - -template Windows::Storage::Streams::IInputStream impl_IProcessLauncherOptions::StandardInput() const -{ - Windows::Storage::Streams::IInputStream value; - check_hresult(static_cast(static_cast(*this))->get_StandardInput(put(value))); - return value; -} - -template void impl_IProcessLauncherOptions::StandardInput(const Windows::Storage::Streams::IInputStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StandardInput(get(value))); -} - -template Windows::Storage::Streams::IOutputStream impl_IProcessLauncherOptions::StandardOutput() const -{ - Windows::Storage::Streams::IOutputStream value; - check_hresult(static_cast(static_cast(*this))->get_StandardOutput(put(value))); - return value; -} - -template void impl_IProcessLauncherOptions::StandardOutput(const Windows::Storage::Streams::IOutputStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StandardOutput(get(value))); -} - -template Windows::Storage::Streams::IOutputStream impl_IProcessLauncherOptions::StandardError() const -{ - Windows::Storage::Streams::IOutputStream value; - check_hresult(static_cast(static_cast(*this))->get_StandardError(put(value))); - return value; -} - -template void impl_IProcessLauncherOptions::StandardError(const Windows::Storage::Streams::IOutputStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StandardError(get(value))); -} - -template hstring impl_IProcessLauncherOptions::WorkingDirectory() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WorkingDirectory(put(value))); - return value; -} - -template void impl_IProcessLauncherOptions::WorkingDirectory(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WorkingDirectory(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_IProcessLauncherStatics::RunToCompletionAsync(hstring_ref fileName, hstring_ref args) const -{ - Windows::Foundation::IAsyncOperation asyncOperationResult; - check_hresult(static_cast(static_cast(*this))->abi_RunToCompletionAsync(get(fileName), get(args), put(asyncOperationResult))); - return asyncOperationResult; -} - -template Windows::Foundation::IAsyncOperation impl_IProcessLauncherStatics::RunToCompletionAsync(hstring_ref fileName, hstring_ref args, const Windows::System::ProcessLauncherOptions & options) const -{ - Windows::Foundation::IAsyncOperation asyncOperationResult; - check_hresult(static_cast(static_cast(*this))->abi_RunToCompletionAsyncWithOptions(get(fileName), get(args), get(options), put(asyncOperationResult))); - return asyncOperationResult; -} - -template uint32_t impl_IProcessLauncherResult::ExitCode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ExitCode(&value)); - return value; -} - -template void impl_IShutdownManagerStatics::BeginShutdown(Windows::System::ShutdownKind shutdownKind, const Windows::Foundation::TimeSpan & timeout) const -{ - check_hresult(static_cast(static_cast(*this))->abi_BeginShutdown(shutdownKind, get(timeout))); -} - -template void impl_IShutdownManagerStatics::CancelShutdown() const -{ - check_hresult(static_cast(static_cast(*this))->abi_CancelShutdown()); -} - -template hstring impl_ITimeZoneSettingsStatics::CurrentTimeZoneDisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CurrentTimeZoneDisplayName(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ITimeZoneSettingsStatics::SupportedTimeZoneDisplayNames() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SupportedTimeZoneDisplayNames(put(value))); - return value; -} - -template bool impl_ITimeZoneSettingsStatics::CanChangeTimeZone() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanChangeTimeZone(&value)); - return value; -} - -template void impl_ITimeZoneSettingsStatics::ChangeTimeZoneByDisplayName(hstring_ref timeZoneDisplayName) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ChangeTimeZoneByDisplayName(get(timeZoneDisplayName))); -} - -inline FolderLauncherOptions::FolderLauncherOptions() : - FolderLauncherOptions(activate_instance()) -{} - -inline hstring KnownUserProperties::DisplayName() -{ - return get_activation_factory().DisplayName(); -} - -inline hstring KnownUserProperties::FirstName() -{ - return get_activation_factory().FirstName(); -} - -inline hstring KnownUserProperties::LastName() -{ - return get_activation_factory().LastName(); -} - -inline hstring KnownUserProperties::ProviderName() -{ - return get_activation_factory().ProviderName(); -} - -inline hstring KnownUserProperties::AccountName() -{ - return get_activation_factory().AccountName(); -} - -inline hstring KnownUserProperties::GuestHost() -{ - return get_activation_factory().GuestHost(); -} - -inline hstring KnownUserProperties::PrincipalName() -{ - return get_activation_factory().PrincipalName(); -} - -inline hstring KnownUserProperties::DomainName() -{ - return get_activation_factory().DomainName(); -} - -inline hstring KnownUserProperties::SessionInitiationProtocolUri() -{ - return get_activation_factory().SessionInitiationProtocolUri(); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchFileAsync(const Windows::Storage::IStorageFile & file) -{ - return get_activation_factory().LaunchFileAsync(file); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchFileAsync(const Windows::Storage::IStorageFile & file, const Windows::System::LauncherOptions & options) -{ - return get_activation_factory().LaunchFileAsync(file, options); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchUriAsync(const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().LaunchUriAsync(uri); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchUriAsync(const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options) -{ - return get_activation_factory().LaunchUriAsync(uri, options); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchUriForResultsAsync(const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options) -{ - return get_activation_factory().LaunchUriForResultsAsync(uri, options); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchUriForResultsAsync(const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options, const Windows::Foundation::Collections::ValueSet & inputData) -{ - return get_activation_factory().LaunchUriForResultsAsync(uri, options, inputData); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchUriAsync(const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options, const Windows::Foundation::Collections::ValueSet & inputData) -{ - return get_activation_factory().LaunchUriAsync(uri, options, inputData); -} - -inline Windows::Foundation::IAsyncOperation Launcher::QueryUriSupportAsync(const Windows::Foundation::Uri & uri, Windows::System::LaunchQuerySupportType launchQuerySupportType) -{ - return get_activation_factory().QueryUriSupportAsync(uri, launchQuerySupportType); -} - -inline Windows::Foundation::IAsyncOperation Launcher::QueryUriSupportAsync(const Windows::Foundation::Uri & uri, Windows::System::LaunchQuerySupportType launchQuerySupportType, hstring_ref packageFamilyName) -{ - return get_activation_factory().QueryUriSupportAsync(uri, launchQuerySupportType, packageFamilyName); -} - -inline Windows::Foundation::IAsyncOperation Launcher::QueryFileSupportAsync(const Windows::Storage::StorageFile & file) -{ - return get_activation_factory().QueryFileSupportAsync(file); -} - -inline Windows::Foundation::IAsyncOperation Launcher::QueryFileSupportAsync(const Windows::Storage::StorageFile & file, hstring_ref packageFamilyName) -{ - return get_activation_factory().QueryFileSupportAsync(file, packageFamilyName); -} - -inline Windows::Foundation::IAsyncOperation> Launcher::FindUriSchemeHandlersAsync(hstring_ref scheme) -{ - return get_activation_factory().FindUriSchemeHandlersAsync(scheme); -} - -inline Windows::Foundation::IAsyncOperation> Launcher::FindUriSchemeHandlersAsync(hstring_ref scheme, Windows::System::LaunchQuerySupportType launchQuerySupportType) -{ - return get_activation_factory().FindUriSchemeHandlersAsync(scheme, launchQuerySupportType); -} - -inline Windows::Foundation::IAsyncOperation> Launcher::FindFileHandlersAsync(hstring_ref extension) -{ - return get_activation_factory().FindFileHandlersAsync(extension); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchFolderAsync(const Windows::Storage::IStorageFolder & folder) -{ - return get_activation_factory().LaunchFolderAsync(folder); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchFolderAsync(const Windows::Storage::IStorageFolder & folder, const Windows::System::FolderLauncherOptions & options) -{ - return get_activation_factory().LaunchFolderAsync(folder, options); -} - -inline Windows::Foundation::IAsyncOperation Launcher::QueryAppUriSupportAsync(const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().QueryAppUriSupportAsync(uri); -} - -inline Windows::Foundation::IAsyncOperation Launcher::QueryAppUriSupportAsync(const Windows::Foundation::Uri & uri, hstring_ref packageFamilyName) -{ - return get_activation_factory().QueryAppUriSupportAsync(uri, packageFamilyName); -} - -inline Windows::Foundation::IAsyncOperation> Launcher::FindAppUriHandlersAsync(const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().FindAppUriHandlersAsync(uri); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchUriForUserAsync(const Windows::System::User & user, const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().LaunchUriForUserAsync(user, uri); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchUriForUserAsync(const Windows::System::User & user, const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options) -{ - return get_activation_factory().LaunchUriForUserAsync(user, uri, options); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchUriForUserAsync(const Windows::System::User & user, const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options, const Windows::Foundation::Collections::ValueSet & inputData) -{ - return get_activation_factory().LaunchUriForUserAsync(user, uri, options, inputData); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchUriForResultsForUserAsync(const Windows::System::User & user, const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options) -{ - return get_activation_factory().LaunchUriForResultsForUserAsync(user, uri, options); -} - -inline Windows::Foundation::IAsyncOperation Launcher::LaunchUriForResultsForUserAsync(const Windows::System::User & user, const Windows::Foundation::Uri & uri, const Windows::System::LauncherOptions & options, const Windows::Foundation::Collections::ValueSet & inputData) -{ - return get_activation_factory().LaunchUriForResultsForUserAsync(user, uri, options, inputData); -} - -inline LauncherOptions::LauncherOptions() : - LauncherOptions(activate_instance()) -{} - -inline uint64_t MemoryManager::AppMemoryUsage() -{ - return get_activation_factory().AppMemoryUsage(); -} - -inline uint64_t MemoryManager::AppMemoryUsageLimit() -{ - return get_activation_factory().AppMemoryUsageLimit(); -} - -inline Windows::System::AppMemoryUsageLevel MemoryManager::AppMemoryUsageLevel() -{ - return get_activation_factory().AppMemoryUsageLevel(); -} - -inline event_token MemoryManager::AppMemoryUsageIncreased(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().AppMemoryUsageIncreased(handler); -} - -inline factory_event_revoker MemoryManager::AppMemoryUsageIncreased(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::IMemoryManagerStatics::remove_AppMemoryUsageIncreased, factory.AppMemoryUsageIncreased(handler) }; -} - -inline void MemoryManager::AppMemoryUsageIncreased(event_token token) -{ - get_activation_factory().AppMemoryUsageIncreased(token); -} - -inline event_token MemoryManager::AppMemoryUsageDecreased(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().AppMemoryUsageDecreased(handler); -} - -inline factory_event_revoker MemoryManager::AppMemoryUsageDecreased(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::IMemoryManagerStatics::remove_AppMemoryUsageDecreased, factory.AppMemoryUsageDecreased(handler) }; -} - -inline void MemoryManager::AppMemoryUsageDecreased(event_token token) -{ - get_activation_factory().AppMemoryUsageDecreased(token); -} - -inline event_token MemoryManager::AppMemoryUsageLimitChanging(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().AppMemoryUsageLimitChanging(handler); -} - -inline factory_event_revoker MemoryManager::AppMemoryUsageLimitChanging(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::IMemoryManagerStatics::remove_AppMemoryUsageLimitChanging, factory.AppMemoryUsageLimitChanging(handler) }; -} - -inline void MemoryManager::AppMemoryUsageLimitChanging(event_token token) -{ - get_activation_factory().AppMemoryUsageLimitChanging(token); -} - -inline Windows::System::AppMemoryReport MemoryManager::GetAppMemoryReport() -{ - return get_activation_factory().GetAppMemoryReport(); -} - -inline Windows::System::ProcessMemoryReport MemoryManager::GetProcessMemoryReport() -{ - return get_activation_factory().GetProcessMemoryReport(); -} - -inline bool MemoryManager::TrySetAppMemoryUsageLimit(uint64_t value) -{ - return get_activation_factory().TrySetAppMemoryUsageLimit(value); -} - -inline Windows::Foundation::IAsyncOperation ProcessLauncher::RunToCompletionAsync(hstring_ref fileName, hstring_ref args) -{ - return get_activation_factory().RunToCompletionAsync(fileName, args); -} - -inline Windows::Foundation::IAsyncOperation ProcessLauncher::RunToCompletionAsync(hstring_ref fileName, hstring_ref args, const Windows::System::ProcessLauncherOptions & options) -{ - return get_activation_factory().RunToCompletionAsync(fileName, args, options); -} - -inline ProcessLauncherOptions::ProcessLauncherOptions() : - ProcessLauncherOptions(activate_instance()) -{} - -inline Windows::Foundation::IAsyncOperation RemoteLauncher::LaunchUriAsync(const Windows::System::RemoteSystems::RemoteSystemConnectionRequest & remoteSystemConnectionRequest, const Windows::Foundation::Uri & uri) -{ - return get_activation_factory().LaunchUriAsync(remoteSystemConnectionRequest, uri); -} - -inline Windows::Foundation::IAsyncOperation RemoteLauncher::LaunchUriAsync(const Windows::System::RemoteSystems::RemoteSystemConnectionRequest & remoteSystemConnectionRequest, const Windows::Foundation::Uri & uri, const Windows::System::RemoteLauncherOptions & options) -{ - return get_activation_factory().LaunchUriAsync(remoteSystemConnectionRequest, uri, options); -} - -inline Windows::Foundation::IAsyncOperation RemoteLauncher::LaunchUriAsync(const Windows::System::RemoteSystems::RemoteSystemConnectionRequest & remoteSystemConnectionRequest, const Windows::Foundation::Uri & uri, const Windows::System::RemoteLauncherOptions & options, const Windows::Foundation::Collections::ValueSet & inputData) -{ - return get_activation_factory().LaunchUriAsync(remoteSystemConnectionRequest, uri, options, inputData); -} - -inline RemoteLauncherOptions::RemoteLauncherOptions() : - RemoteLauncherOptions(activate_instance()) -{} - -inline void ShutdownManager::BeginShutdown(Windows::System::ShutdownKind shutdownKind, const Windows::Foundation::TimeSpan & timeout) -{ - get_activation_factory().BeginShutdown(shutdownKind, timeout); -} - -inline void ShutdownManager::CancelShutdown() -{ - get_activation_factory().CancelShutdown(); -} - -inline hstring TimeZoneSettings::CurrentTimeZoneDisplayName() -{ - return get_activation_factory().CurrentTimeZoneDisplayName(); -} - -inline Windows::Foundation::Collections::IVectorView TimeZoneSettings::SupportedTimeZoneDisplayNames() -{ - return get_activation_factory().SupportedTimeZoneDisplayNames(); -} - -inline bool TimeZoneSettings::CanChangeTimeZone() -{ - return get_activation_factory().CanChangeTimeZone(); -} - -inline void TimeZoneSettings::ChangeTimeZoneByDisplayName(hstring_ref timeZoneDisplayName) -{ - get_activation_factory().ChangeTimeZoneByDisplayName(timeZoneDisplayName); -} - -inline Windows::System::UserWatcher User::CreateWatcher() -{ - return get_activation_factory().CreateWatcher(); -} - -inline Windows::Foundation::IAsyncOperation> User::FindAllAsync() -{ - return get_activation_factory().FindAllAsync(); -} - -inline Windows::Foundation::IAsyncOperation> User::FindAllAsync(Windows::System::UserType type) -{ - return get_activation_factory().FindAllAsync(type); -} - -inline Windows::Foundation::IAsyncOperation> User::FindAllAsync(Windows::System::UserType type, Windows::System::UserAuthenticationStatus status) -{ - return get_activation_factory().FindAllAsync(type, status); -} - -inline Windows::System::User User::GetFromId(hstring_ref nonRoamableId) -{ - return get_activation_factory().GetFromId(nonRoamableId); -} - -inline Windows::System::User UserDeviceAssociation::FindUserFromDeviceId(hstring_ref deviceId) -{ - return get_activation_factory().FindUserFromDeviceId(deviceId); -} - -inline event_token UserDeviceAssociation::UserDeviceAssociationChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().UserDeviceAssociationChanged(handler); -} - -inline factory_event_revoker UserDeviceAssociation::UserDeviceAssociationChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::System::IUserDeviceAssociationStatics::remove_UserDeviceAssociationChanged, factory.UserDeviceAssociationChanged(handler) }; -} - -inline void UserDeviceAssociation::UserDeviceAssociationChanged(event_token token) -{ - get_activation_factory().UserDeviceAssociationChanged(token); -} - -inline UserPicker::UserPicker() : - UserPicker(activate_instance()) -{} - -inline bool UserPicker::IsSupported() -{ - return get_activation_factory().IsSupported(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.ApplicationSettings.h b/10.0.14393.0/winrt/Windows.UI.ApplicationSettings.h deleted file mode 100644 index 0d26802ff..000000000 --- a/10.0.14393.0/winrt/Windows.UI.ApplicationSettings.h +++ /dev/null @@ -1,933 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.Popups.3.h" -#include "internal/Windows.Security.Credentials.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.ApplicationSettings.3.h" -#include "Windows.UI.h" -#include "Windows.UI.Popups.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::UI::ApplicationSettings { - -template CredentialCommandCredentialDeletedHandler::CredentialCommandCredentialDeletedHandler(L lambda) : - CredentialCommandCredentialDeletedHandler(impl::make_delegate, CredentialCommandCredentialDeletedHandler>(std::forward(lambda))) -{} - -template CredentialCommandCredentialDeletedHandler::CredentialCommandCredentialDeletedHandler(F * function) : - CredentialCommandCredentialDeletedHandler([=](auto && ... args) { function(args ...); }) -{} - -template CredentialCommandCredentialDeletedHandler::CredentialCommandCredentialDeletedHandler(O * object, M method) : - CredentialCommandCredentialDeletedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void CredentialCommandCredentialDeletedHandler::operator()(const Windows::UI::ApplicationSettings::CredentialCommand & command) const -{ - check_hresult((*this)->abi_Invoke(get(command))); -} - -template WebAccountCommandInvokedHandler::WebAccountCommandInvokedHandler(L lambda) : - WebAccountCommandInvokedHandler(impl::make_delegate, WebAccountCommandInvokedHandler>(std::forward(lambda))) -{} - -template WebAccountCommandInvokedHandler::WebAccountCommandInvokedHandler(F * function) : - WebAccountCommandInvokedHandler([=](auto && ... args) { function(args ...); }) -{} - -template WebAccountCommandInvokedHandler::WebAccountCommandInvokedHandler(O * object, M method) : - WebAccountCommandInvokedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void WebAccountCommandInvokedHandler::operator()(const Windows::UI::ApplicationSettings::WebAccountCommand & command, const Windows::UI::ApplicationSettings::WebAccountInvokedArgs & args) const -{ - check_hresult((*this)->abi_Invoke(get(command), get(args))); -} - -template WebAccountProviderCommandInvokedHandler::WebAccountProviderCommandInvokedHandler(L lambda) : - WebAccountProviderCommandInvokedHandler(impl::make_delegate, WebAccountProviderCommandInvokedHandler>(std::forward(lambda))) -{} - -template WebAccountProviderCommandInvokedHandler::WebAccountProviderCommandInvokedHandler(F * function) : - WebAccountProviderCommandInvokedHandler([=](auto && ... args) { function(args ...); }) -{} - -template WebAccountProviderCommandInvokedHandler::WebAccountProviderCommandInvokedHandler(O * object, M method) : - WebAccountProviderCommandInvokedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void WebAccountProviderCommandInvokedHandler::operator()(const Windows::UI::ApplicationSettings::WebAccountProviderCommand & command) const -{ - check_hresult((*this)->abi_Invoke(get(command))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall add_AccountCommandsRequested(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().AccountCommandsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AccountCommandsRequested(event_token cookie) noexcept override - { - try - { - this->shim().AccountCommandsRequested(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WebAccountProviderCommands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().WebAccountProviderCommands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WebAccountCommands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().WebAccountCommands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CredentialCommands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CredentialCommands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Commands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Commands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderText(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out current) noexcept override - { - try - { - *current = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *current = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Show() noexcept override - { - try - { - this->shim().Show(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowManageAccountsAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ShowManageAccountsAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAddAccountAsync(abi_arg_out asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ShowAddAccountAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PasswordCredential(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PasswordCredential()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CredentialDeleted(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CredentialDeleted()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCredentialCommand(abi_arg_in passwordCredential, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateCredentialCommand(*reinterpret_cast(&passwordCredential))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCredentialCommandWithHandler(abi_arg_in passwordCredential, abi_arg_in deleted, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateCredentialCommandWithHandler(*reinterpret_cast(&passwordCredential), *reinterpret_cast(&deleted))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateSettingsCommand(abi_arg_in settingsCommandId, abi_arg_in label, abi_arg_in handler, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateSettingsCommand(*reinterpret_cast(&settingsCommandId), *reinterpret_cast(&label), *reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AccountsCommand(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccountsCommand()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_CommandsRequested(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().CommandsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CommandsRequested(event_token cookie) noexcept override - { - try - { - this->shim().CommandsRequested(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ApplicationCommands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ApplicationCommands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out request) noexcept override - { - try - { - *request = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *request = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out current) noexcept override - { - try - { - *current = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *current = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Show() noexcept override - { - try - { - this->shim().Show(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Edge(Windows::UI::ApplicationSettings::SettingsEdgeLocation * value) noexcept override - { - try - { - *value = detach(this->shim().Edge()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WebAccount(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WebAccount()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Invoked(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Invoked()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Actions(Windows::UI::ApplicationSettings::SupportedWebAccountActions * value) noexcept override - { - try - { - *value = detach(this->shim().Actions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWebAccountCommand(abi_arg_in webAccount, abi_arg_in invoked, Windows::UI::ApplicationSettings::SupportedWebAccountActions actions, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateWebAccountCommand(*reinterpret_cast(&webAccount), *reinterpret_cast(&invoked), actions)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Action(Windows::UI::ApplicationSettings::WebAccountAction * action) noexcept override - { - try - { - *action = detach(this->shim().Action()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WebAccountProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WebAccountProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Invoked(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Invoked()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWebAccountProviderCommand(abi_arg_in webAccountProvider, abi_arg_in invoked, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateWebAccountProviderCommand(*reinterpret_cast(&webAccountProvider), *reinterpret_cast(&invoked))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::ApplicationSettings { - -template Windows::UI::ApplicationSettings::SettingsCommand impl_ISettingsCommandFactory::CreateSettingsCommand(const Windows::IInspectable & settingsCommandId, hstring_ref label, const Windows::UI::Popups::UICommandInvokedHandler & handler) const -{ - Windows::UI::ApplicationSettings::SettingsCommand instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateSettingsCommand(get(settingsCommandId), get(label), get(handler), put(instance))); - return instance; -} - -template Windows::UI::ApplicationSettings::SettingsCommand impl_ISettingsCommandStatics::AccountsCommand() const -{ - Windows::UI::ApplicationSettings::SettingsCommand value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AccountsCommand(put(value))); - return value; -} - -template Windows::UI::ApplicationSettings::WebAccountProviderCommand impl_IWebAccountProviderCommandFactory::CreateWebAccountProviderCommand(const Windows::Security::Credentials::WebAccountProvider & webAccountProvider, const Windows::UI::ApplicationSettings::WebAccountProviderCommandInvokedHandler & invoked) const -{ - Windows::UI::ApplicationSettings::WebAccountProviderCommand instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWebAccountProviderCommand(get(webAccountProvider), get(invoked), put(instance))); - return instance; -} - -template Windows::Security::Credentials::WebAccountProvider impl_IWebAccountProviderCommand::WebAccountProvider() const -{ - Windows::Security::Credentials::WebAccountProvider value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WebAccountProvider(put(value))); - return value; -} - -template Windows::UI::ApplicationSettings::WebAccountProviderCommandInvokedHandler impl_IWebAccountProviderCommand::Invoked() const -{ - Windows::UI::ApplicationSettings::WebAccountProviderCommandInvokedHandler value {}; - check_hresult(static_cast(static_cast(*this))->get_Invoked(put(value))); - return value; -} - -template Windows::UI::ApplicationSettings::WebAccountAction impl_IWebAccountInvokedArgs::Action() const -{ - Windows::UI::ApplicationSettings::WebAccountAction action {}; - check_hresult(static_cast(static_cast(*this))->get_Action(&action)); - return action; -} - -template Windows::UI::ApplicationSettings::WebAccountCommand impl_IWebAccountCommandFactory::CreateWebAccountCommand(const Windows::Security::Credentials::WebAccount & webAccount, const Windows::UI::ApplicationSettings::WebAccountCommandInvokedHandler & invoked, Windows::UI::ApplicationSettings::SupportedWebAccountActions actions) const -{ - Windows::UI::ApplicationSettings::WebAccountCommand instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWebAccountCommand(get(webAccount), get(invoked), actions, put(instance))); - return instance; -} - -template Windows::Security::Credentials::WebAccount impl_IWebAccountCommand::WebAccount() const -{ - Windows::Security::Credentials::WebAccount value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WebAccount(put(value))); - return value; -} - -template Windows::UI::ApplicationSettings::WebAccountCommandInvokedHandler impl_IWebAccountCommand::Invoked() const -{ - Windows::UI::ApplicationSettings::WebAccountCommandInvokedHandler value {}; - check_hresult(static_cast(static_cast(*this))->get_Invoked(put(value))); - return value; -} - -template Windows::UI::ApplicationSettings::SupportedWebAccountActions impl_IWebAccountCommand::Actions() const -{ - Windows::UI::ApplicationSettings::SupportedWebAccountActions value {}; - check_hresult(static_cast(static_cast(*this))->get_Actions(&value)); - return value; -} - -template Windows::UI::ApplicationSettings::CredentialCommand impl_ICredentialCommandFactory::CreateCredentialCommand(const Windows::Security::Credentials::PasswordCredential & passwordCredential) const -{ - Windows::UI::ApplicationSettings::CredentialCommand instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCredentialCommand(get(passwordCredential), put(instance))); - return instance; -} - -template Windows::UI::ApplicationSettings::CredentialCommand impl_ICredentialCommandFactory::CreateCredentialCommandWithHandler(const Windows::Security::Credentials::PasswordCredential & passwordCredential, const Windows::UI::ApplicationSettings::CredentialCommandCredentialDeletedHandler & deleted) const -{ - Windows::UI::ApplicationSettings::CredentialCommand instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCredentialCommandWithHandler(get(passwordCredential), get(deleted), put(instance))); - return instance; -} - -template Windows::Security::Credentials::PasswordCredential impl_ICredentialCommand::PasswordCredential() const -{ - Windows::Security::Credentials::PasswordCredential value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PasswordCredential(put(value))); - return value; -} - -template Windows::UI::ApplicationSettings::CredentialCommandCredentialDeletedHandler impl_ICredentialCommand::CredentialDeleted() const -{ - Windows::UI::ApplicationSettings::CredentialCommandCredentialDeletedHandler value {}; - check_hresult(static_cast(static_cast(*this))->get_CredentialDeleted(put(value))); - return value; -} - -template void impl_IAccountsSettingsPaneEventDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::Foundation::Collections::IVector impl_IAccountsSettingsPaneCommandsRequestedEventArgs::WebAccountProviderCommands() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_WebAccountProviderCommands(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IAccountsSettingsPaneCommandsRequestedEventArgs::WebAccountCommands() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_WebAccountCommands(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IAccountsSettingsPaneCommandsRequestedEventArgs::CredentialCommands() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_CredentialCommands(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IAccountsSettingsPaneCommandsRequestedEventArgs::Commands() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Commands(put(value))); - return value; -} - -template hstring impl_IAccountsSettingsPaneCommandsRequestedEventArgs::HeaderText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HeaderText(put(value))); - return value; -} - -template void impl_IAccountsSettingsPaneCommandsRequestedEventArgs::HeaderText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderText(get(value))); -} - -template Windows::UI::ApplicationSettings::AccountsSettingsPaneEventDeferral impl_IAccountsSettingsPaneCommandsRequestedEventArgs::GetDeferral() const -{ - Windows::UI::ApplicationSettings::AccountsSettingsPaneEventDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template Windows::UI::ApplicationSettings::AccountsSettingsPane impl_IAccountsSettingsPaneStatics::GetForCurrentView() const -{ - Windows::UI::ApplicationSettings::AccountsSettingsPane current { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(current))); - return current; -} - -template void impl_IAccountsSettingsPaneStatics::Show() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Show()); -} - -template Windows::Foundation::IAsyncAction impl_IAccountsSettingsPaneStatics2::ShowManageAccountsAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ShowManageAccountsAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::Foundation::IAsyncAction impl_IAccountsSettingsPaneStatics2::ShowAddAccountAsync() const -{ - Windows::Foundation::IAsyncAction asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ShowAddAccountAsync(put(asyncInfo))); - return asyncInfo; -} - -template event_token impl_IAccountsSettingsPane::AccountCommandsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_AccountCommandsRequested(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IAccountsSettingsPane::AccountCommandsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ApplicationSettings::IAccountsSettingsPane::remove_AccountCommandsRequested, AccountCommandsRequested(handler)); -} - -template void impl_IAccountsSettingsPane::AccountCommandsRequested(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AccountCommandsRequested(cookie)); -} - -template Windows::Foundation::Collections::IVector impl_ISettingsPaneCommandsRequest::ApplicationCommands() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_ApplicationCommands(put(value))); - return value; -} - -template Windows::UI::ApplicationSettings::SettingsPaneCommandsRequest impl_ISettingsPaneCommandsRequestedEventArgs::Request() const -{ - Windows::UI::ApplicationSettings::SettingsPaneCommandsRequest request { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(request))); - return request; -} - -template Windows::UI::ApplicationSettings::SettingsPane impl_ISettingsPaneStatics::GetForCurrentView() const -{ - Windows::UI::ApplicationSettings::SettingsPane current { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(current))); - return current; -} - -template void impl_ISettingsPaneStatics::Show() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Show()); -} - -template Windows::UI::ApplicationSettings::SettingsEdgeLocation impl_ISettingsPaneStatics::Edge() const -{ - Windows::UI::ApplicationSettings::SettingsEdgeLocation value {}; - check_hresult(static_cast(static_cast(*this))->get_Edge(&value)); - return value; -} - -template event_token impl_ISettingsPane::CommandsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_CommandsRequested(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ISettingsPane::CommandsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ApplicationSettings::ISettingsPane::remove_CommandsRequested, CommandsRequested(handler)); -} - -template void impl_ISettingsPane::CommandsRequested(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CommandsRequested(cookie)); -} - -inline Windows::UI::ApplicationSettings::AccountsSettingsPane AccountsSettingsPane::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline void AccountsSettingsPane::Show() -{ - get_activation_factory().Show(); -} - -inline Windows::Foundation::IAsyncAction AccountsSettingsPane::ShowManageAccountsAsync() -{ - return get_activation_factory().ShowManageAccountsAsync(); -} - -inline Windows::Foundation::IAsyncAction AccountsSettingsPane::ShowAddAccountAsync() -{ - return get_activation_factory().ShowAddAccountAsync(); -} - -inline CredentialCommand::CredentialCommand(const Windows::Security::Credentials::PasswordCredential & passwordCredential) : - CredentialCommand(get_activation_factory().CreateCredentialCommand(passwordCredential)) -{} - -inline CredentialCommand::CredentialCommand(const Windows::Security::Credentials::PasswordCredential & passwordCredential, const Windows::UI::ApplicationSettings::CredentialCommandCredentialDeletedHandler & deleted) : - CredentialCommand(get_activation_factory().CreateCredentialCommandWithHandler(passwordCredential, deleted)) -{} - -inline SettingsCommand::SettingsCommand(const Windows::IInspectable & settingsCommandId, hstring_ref label, const Windows::UI::Popups::UICommandInvokedHandler & handler) : - SettingsCommand(get_activation_factory().CreateSettingsCommand(settingsCommandId, label, handler)) -{} - -inline Windows::UI::ApplicationSettings::SettingsCommand SettingsCommand::AccountsCommand() -{ - return get_activation_factory().AccountsCommand(); -} - -inline Windows::UI::ApplicationSettings::SettingsPane SettingsPane::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline void SettingsPane::Show() -{ - get_activation_factory().Show(); -} - -inline Windows::UI::ApplicationSettings::SettingsEdgeLocation SettingsPane::Edge() -{ - return get_activation_factory().Edge(); -} - -inline WebAccountCommand::WebAccountCommand(const Windows::Security::Credentials::WebAccount & webAccount, const Windows::UI::ApplicationSettings::WebAccountCommandInvokedHandler & invoked, Windows::UI::ApplicationSettings::SupportedWebAccountActions actions) : - WebAccountCommand(get_activation_factory().CreateWebAccountCommand(webAccount, invoked, actions)) -{} - -inline WebAccountProviderCommand::WebAccountProviderCommand(const Windows::Security::Credentials::WebAccountProvider & webAccountProvider, const Windows::UI::ApplicationSettings::WebAccountProviderCommandInvokedHandler & invoked) : - WebAccountProviderCommand(get_activation_factory().CreateWebAccountProviderCommand(webAccountProvider, invoked)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Composition.Effects.h b/10.0.14393.0/winrt/Windows.UI.Composition.Effects.h deleted file mode 100644 index 15841ef6e..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Composition.Effects.h +++ /dev/null @@ -1,220 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Graphics.Effects.3.h" -#include "internal/Windows.UI.Composition.Effects.3.h" -#include "Windows.UI.Composition.h" -#include "Windows.Graphics.Effects.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AmbientAmount(float * value) noexcept override - { - try - { - *value = detach(this->shim().AmbientAmount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AmbientAmount(float value) noexcept override - { - try - { - this->shim().AmbientAmount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DiffuseAmount(float * value) noexcept override - { - try - { - *value = detach(this->shim().DiffuseAmount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DiffuseAmount(float value) noexcept override - { - try - { - this->shim().DiffuseAmount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NormalMapSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NormalMapSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NormalMapSource(abi_arg_in value) noexcept override - { - try - { - this->shim().NormalMapSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpecularAmount(float * value) noexcept override - { - try - { - *value = detach(this->shim().SpecularAmount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SpecularAmount(float value) noexcept override - { - try - { - this->shim().SpecularAmount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpecularShine(float * value) noexcept override - { - try - { - *value = detach(this->shim().SpecularShine()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SpecularShine(float value) noexcept override - { - try - { - this->shim().SpecularShine(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Composition::Effects { - -template float impl_ISceneLightingEffect::AmbientAmount() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_AmbientAmount(&value)); - return value; -} - -template void impl_ISceneLightingEffect::AmbientAmount(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AmbientAmount(value)); -} - -template float impl_ISceneLightingEffect::DiffuseAmount() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_DiffuseAmount(&value)); - return value; -} - -template void impl_ISceneLightingEffect::DiffuseAmount(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DiffuseAmount(value)); -} - -template Windows::Graphics::Effects::IGraphicsEffectSource impl_ISceneLightingEffect::NormalMapSource() const -{ - Windows::Graphics::Effects::IGraphicsEffectSource value; - check_hresult(static_cast(static_cast(*this))->get_NormalMapSource(put(value))); - return value; -} - -template void impl_ISceneLightingEffect::NormalMapSource(const Windows::Graphics::Effects::IGraphicsEffectSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NormalMapSource(get(value))); -} - -template float impl_ISceneLightingEffect::SpecularAmount() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_SpecularAmount(&value)); - return value; -} - -template void impl_ISceneLightingEffect::SpecularAmount(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SpecularAmount(value)); -} - -template float impl_ISceneLightingEffect::SpecularShine() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_SpecularShine(&value)); - return value; -} - -template void impl_ISceneLightingEffect::SpecularShine(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SpecularShine(value)); -} - -inline SceneLightingEffect::SceneLightingEffect() : - SceneLightingEffect(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Composition.Interactions.h b/10.0.14393.0/winrt/Windows.UI.Composition.Interactions.h deleted file mode 100644 index 2d6509a98..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Composition.Interactions.h +++ /dev/null @@ -1,1874 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.Composition.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Input.3.h" -#include "internal/Windows.UI.Composition.Interactions.3.h" -#include "Windows.UI.Composition.h" -#include "Windows.Foundation.h" -#include "Windows.Foundation.Collections.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Count(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Count()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Add(abi_arg_in value) noexcept override - { - try - { - this->shim().Add(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Remove(abi_arg_in value) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAll() noexcept override - { - try - { - this->shim().RemoveAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSources(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSources()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPositionRoundingSuggested(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPositionRoundingSuggested()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxPosition(abi_arg_in value) noexcept override - { - try - { - this->shim().MaxPosition(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxScale(float * value) noexcept override - { - try - { - *value = detach(this->shim().MaxScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxScale(float value) noexcept override - { - try - { - this->shim().MaxScale(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinPosition(abi_arg_in value) noexcept override - { - try - { - this->shim().MinPosition(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinScale(float * value) noexcept override - { - try - { - *value = detach(this->shim().MinScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinScale(float value) noexcept override - { - try - { - this->shim().MinScale(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalRestingPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NaturalRestingPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalRestingScale(float * value) noexcept override - { - try - { - *value = detach(this->shim().NaturalRestingScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Owner(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Owner()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionInertiaDecayRate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PositionInertiaDecayRate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PositionInertiaDecayRate(abi_arg_in> value) noexcept override - { - try - { - this->shim().PositionInertiaDecayRate(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionVelocityInPixelsPerSecond(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PositionVelocityInPixelsPerSecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Scale(float * value) noexcept override - { - try - { - *value = detach(this->shim().Scale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScaleInertiaDecayRate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ScaleInertiaDecayRate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScaleInertiaDecayRate(abi_arg_in> value) noexcept override - { - try - { - this->shim().ScaleInertiaDecayRate(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScaleVelocityInPercentPerSecond(float * value) noexcept override - { - try - { - *value = detach(this->shim().ScaleVelocityInPercentPerSecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AdjustPositionXIfGreaterThanThreshold(float adjustment, float positionThreshold) noexcept override - { - try - { - this->shim().AdjustPositionXIfGreaterThanThreshold(adjustment, positionThreshold); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AdjustPositionYIfGreaterThanThreshold(float adjustment, float positionThreshold) noexcept override - { - try - { - this->shim().AdjustPositionYIfGreaterThanThreshold(adjustment, positionThreshold); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConfigurePositionXInertiaModifiers(abi_arg_in> modifiers) noexcept override - { - try - { - this->shim().ConfigurePositionXInertiaModifiers(*reinterpret_cast *>(&modifiers)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConfigurePositionYInertiaModifiers(abi_arg_in> modifiers) noexcept override - { - try - { - this->shim().ConfigurePositionYInertiaModifiers(*reinterpret_cast *>(&modifiers)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConfigureScaleInertiaModifiers(abi_arg_in> modifiers) noexcept override - { - try - { - this->shim().ConfigureScaleInertiaModifiers(*reinterpret_cast *>(&modifiers)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryUpdatePosition(abi_arg_in value, int32_t * requestId) noexcept override - { - try - { - *requestId = detach(this->shim().TryUpdatePosition(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryUpdatePositionBy(abi_arg_in amount, int32_t * requestId) noexcept override - { - try - { - *requestId = detach(this->shim().TryUpdatePositionBy(*reinterpret_cast(&amount))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryUpdatePositionWithAnimation(abi_arg_in animation, int32_t * requestId) noexcept override - { - try - { - *requestId = detach(this->shim().TryUpdatePositionWithAnimation(*reinterpret_cast(&animation))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryUpdatePositionWithAdditionalVelocity(abi_arg_in velocityInPixelsPerSecond, int32_t * requestId) noexcept override - { - try - { - *requestId = detach(this->shim().TryUpdatePositionWithAdditionalVelocity(*reinterpret_cast(&velocityInPixelsPerSecond))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryUpdateScale(float value, abi_arg_in centerPoint, int32_t * requestId) noexcept override - { - try - { - *requestId = detach(this->shim().TryUpdateScale(value, *reinterpret_cast(¢erPoint))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryUpdateScaleWithAnimation(abi_arg_in animation, abi_arg_in centerPoint, int32_t * requestId) noexcept override - { - try - { - *requestId = detach(this->shim().TryUpdateScaleWithAnimation(*reinterpret_cast(&animation), *reinterpret_cast(¢erPoint))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryUpdateScaleWithAdditionalVelocity(float velocityInPercentPerSecond, abi_arg_in centerPoint, int32_t * requestId) noexcept override - { - try - { - *requestId = detach(this->shim().TryUpdateScaleWithAdditionalVelocity(velocityInPercentPerSecond, *reinterpret_cast(¢erPoint))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequestId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RequestId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequestId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RequestId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Condition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Condition()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Condition(abi_arg_in value) noexcept override - { - try - { - this->shim().Condition(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Motion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Motion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Motion(abi_arg_in value) noexcept override - { - try - { - this->shim().Motion(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in compositor, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&compositor))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Condition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Condition()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Condition(abi_arg_in value) noexcept override - { - try - { - this->shim().Condition(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RestingValue(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RestingValue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RestingValue(abi_arg_in value) noexcept override - { - try - { - this->shim().RestingValue(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in compositor, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&compositor))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ModifiedRestingPosition(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ModifiedRestingPosition()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ModifiedRestingScale(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ModifiedRestingScale()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalRestingPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NaturalRestingPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalRestingScale(float * value) noexcept override - { - try - { - *value = detach(this->shim().NaturalRestingScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionVelocityInPixelsPerSecond(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PositionVelocityInPixelsPerSecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequestId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RequestId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScaleVelocityInPercentPerSecond(float * value) noexcept override - { - try - { - *value = detach(this->shim().ScaleVelocityInPercentPerSecond()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequestId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RequestId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CustomAnimationStateEntered(abi_arg_in sender, abi_arg_in args) noexcept override - { - try - { - this->shim().CustomAnimationStateEntered(*reinterpret_cast(&sender), *reinterpret_cast(&args)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IdleStateEntered(abi_arg_in sender, abi_arg_in args) noexcept override - { - try - { - this->shim().IdleStateEntered(*reinterpret_cast(&sender), *reinterpret_cast(&args)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InertiaStateEntered(abi_arg_in sender, abi_arg_in args) noexcept override - { - try - { - this->shim().InertiaStateEntered(*reinterpret_cast(&sender), *reinterpret_cast(&args)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InteractingStateEntered(abi_arg_in sender, abi_arg_in args) noexcept override - { - try - { - this->shim().InteractingStateEntered(*reinterpret_cast(&sender), *reinterpret_cast(&args)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestIgnored(abi_arg_in sender, abi_arg_in args) noexcept override - { - try - { - this->shim().RequestIgnored(*reinterpret_cast(&sender), *reinterpret_cast(&args)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ValuesChanged(abi_arg_in sender, abi_arg_in args) noexcept override - { - try - { - this->shim().ValuesChanged(*reinterpret_cast(&sender), *reinterpret_cast(&args)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RequestId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RequestId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in compositor, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&compositor))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithOwner(abi_arg_in compositor, abi_arg_in owner, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithOwner(*reinterpret_cast(&compositor), *reinterpret_cast(&owner))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequestId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RequestId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Scale(float * value) noexcept override - { - try - { - *value = detach(this->shim().Scale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsPositionXRailsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPositionXRailsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPositionXRailsEnabled(bool value) noexcept override - { - try - { - this->shim().IsPositionXRailsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPositionYRailsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPositionYRailsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPositionYRailsEnabled(bool value) noexcept override - { - try - { - this->shim().IsPositionYRailsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ManipulationRedirectionMode(Windows::UI::Composition::Interactions::VisualInteractionSourceRedirectionMode * value) noexcept override - { - try - { - *value = detach(this->shim().ManipulationRedirectionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ManipulationRedirectionMode(Windows::UI::Composition::Interactions::VisualInteractionSourceRedirectionMode value) noexcept override - { - try - { - this->shim().ManipulationRedirectionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionXChainingMode(Windows::UI::Composition::Interactions::InteractionChainingMode * value) noexcept override - { - try - { - *value = detach(this->shim().PositionXChainingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PositionXChainingMode(Windows::UI::Composition::Interactions::InteractionChainingMode value) noexcept override - { - try - { - this->shim().PositionXChainingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionXSourceMode(Windows::UI::Composition::Interactions::InteractionSourceMode * value) noexcept override - { - try - { - *value = detach(this->shim().PositionXSourceMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PositionXSourceMode(Windows::UI::Composition::Interactions::InteractionSourceMode value) noexcept override - { - try - { - this->shim().PositionXSourceMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionYChainingMode(Windows::UI::Composition::Interactions::InteractionChainingMode * value) noexcept override - { - try - { - *value = detach(this->shim().PositionYChainingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PositionYChainingMode(Windows::UI::Composition::Interactions::InteractionChainingMode value) noexcept override - { - try - { - this->shim().PositionYChainingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionYSourceMode(Windows::UI::Composition::Interactions::InteractionSourceMode * value) noexcept override - { - try - { - *value = detach(this->shim().PositionYSourceMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PositionYSourceMode(Windows::UI::Composition::Interactions::InteractionSourceMode value) noexcept override - { - try - { - this->shim().PositionYSourceMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScaleChainingMode(Windows::UI::Composition::Interactions::InteractionChainingMode * value) noexcept override - { - try - { - *value = detach(this->shim().ScaleChainingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScaleChainingMode(Windows::UI::Composition::Interactions::InteractionChainingMode value) noexcept override - { - try - { - this->shim().ScaleChainingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScaleSourceMode(Windows::UI::Composition::Interactions::InteractionSourceMode * value) noexcept override - { - try - { - *value = detach(this->shim().ScaleSourceMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScaleSourceMode(Windows::UI::Composition::Interactions::InteractionSourceMode value) noexcept override - { - try - { - this->shim().ScaleSourceMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryRedirectForManipulation(abi_arg_in pointerPoint) noexcept override - { - try - { - this->shim().TryRedirectForManipulation(*reinterpret_cast(&pointerPoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in source, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Create(*reinterpret_cast(&source))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Composition::Interactions { - -template int32_t impl_ICompositionInteractionSourceCollection::Count() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Count(&value)); - return value; -} - -template void impl_ICompositionInteractionSourceCollection::Add(const Windows::UI::Composition::Interactions::ICompositionInteractionSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Add(get(value))); -} - -template void impl_ICompositionInteractionSourceCollection::Remove(const Windows::UI::Composition::Interactions::ICompositionInteractionSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Remove(get(value))); -} - -template void impl_ICompositionInteractionSourceCollection::RemoveAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveAll()); -} - -template Windows::UI::Composition::Interactions::InteractionTracker impl_IInteractionTrackerStatics::Create(const Windows::UI::Composition::Compositor & compositor) const -{ - Windows::UI::Composition::Interactions::InteractionTracker result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(compositor), put(result))); - return result; -} - -template Windows::UI::Composition::Interactions::InteractionTracker impl_IInteractionTrackerStatics::CreateWithOwner(const Windows::UI::Composition::Compositor & compositor, const Windows::UI::Composition::Interactions::IInteractionTrackerOwner & owner) const -{ - Windows::UI::Composition::Interactions::InteractionTracker result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithOwner(get(compositor), get(owner), put(result))); - return result; -} - -template void impl_IInteractionTrackerOwner::CustomAnimationStateEntered(const Windows::UI::Composition::Interactions::InteractionTracker & sender, const Windows::UI::Composition::Interactions::InteractionTrackerCustomAnimationStateEnteredArgs & args) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CustomAnimationStateEntered(get(sender), get(args))); -} - -template void impl_IInteractionTrackerOwner::IdleStateEntered(const Windows::UI::Composition::Interactions::InteractionTracker & sender, const Windows::UI::Composition::Interactions::InteractionTrackerIdleStateEnteredArgs & args) const -{ - check_hresult(static_cast(static_cast(*this))->abi_IdleStateEntered(get(sender), get(args))); -} - -template void impl_IInteractionTrackerOwner::InertiaStateEntered(const Windows::UI::Composition::Interactions::InteractionTracker & sender, const Windows::UI::Composition::Interactions::InteractionTrackerInertiaStateEnteredArgs & args) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InertiaStateEntered(get(sender), get(args))); -} - -template void impl_IInteractionTrackerOwner::InteractingStateEntered(const Windows::UI::Composition::Interactions::InteractionTracker & sender, const Windows::UI::Composition::Interactions::InteractionTrackerInteractingStateEnteredArgs & args) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InteractingStateEntered(get(sender), get(args))); -} - -template void impl_IInteractionTrackerOwner::RequestIgnored(const Windows::UI::Composition::Interactions::InteractionTracker & sender, const Windows::UI::Composition::Interactions::InteractionTrackerRequestIgnoredArgs & args) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RequestIgnored(get(sender), get(args))); -} - -template void impl_IInteractionTrackerOwner::ValuesChanged(const Windows::UI::Composition::Interactions::InteractionTracker & sender, const Windows::UI::Composition::Interactions::InteractionTrackerValuesChangedArgs & args) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ValuesChanged(get(sender), get(args))); -} - -template Windows::UI::Composition::Interactions::CompositionInteractionSourceCollection impl_IInteractionTracker::InteractionSources() const -{ - Windows::UI::Composition::Interactions::CompositionInteractionSourceCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InteractionSources(put(value))); - return value; -} - -template bool impl_IInteractionTracker::IsPositionRoundingSuggested() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPositionRoundingSuggested(&value)); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_IInteractionTracker::MaxPosition() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxPosition(put(value))); - return value; -} - -template void impl_IInteractionTracker::MaxPosition(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxPosition(get(value))); -} - -template float impl_IInteractionTracker::MaxScale() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxScale(&value)); - return value; -} - -template void impl_IInteractionTracker::MaxScale(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxScale(value)); -} - -template Windows::Foundation::Numerics::float3 impl_IInteractionTracker::MinPosition() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_MinPosition(put(value))); - return value; -} - -template void impl_IInteractionTracker::MinPosition(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinPosition(get(value))); -} - -template float impl_IInteractionTracker::MinScale() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_MinScale(&value)); - return value; -} - -template void impl_IInteractionTracker::MinScale(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinScale(value)); -} - -template Windows::Foundation::Numerics::float3 impl_IInteractionTracker::NaturalRestingPosition() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_NaturalRestingPosition(put(value))); - return value; -} - -template float impl_IInteractionTracker::NaturalRestingScale() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_NaturalRestingScale(&value)); - return value; -} - -template Windows::UI::Composition::Interactions::IInteractionTrackerOwner impl_IInteractionTracker::Owner() const -{ - Windows::UI::Composition::Interactions::IInteractionTrackerOwner value; - check_hresult(static_cast(static_cast(*this))->get_Owner(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_IInteractionTracker::Position() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IInteractionTracker::PositionInertiaDecayRate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_PositionInertiaDecayRate(put(value))); - return value; -} - -template void impl_IInteractionTracker::PositionInertiaDecayRate(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PositionInertiaDecayRate(get(value))); -} - -template Windows::Foundation::Numerics::float3 impl_IInteractionTracker::PositionVelocityInPixelsPerSecond() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_PositionVelocityInPixelsPerSecond(put(value))); - return value; -} - -template float impl_IInteractionTracker::Scale() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Scale(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IInteractionTracker::ScaleInertiaDecayRate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ScaleInertiaDecayRate(put(value))); - return value; -} - -template void impl_IInteractionTracker::ScaleInertiaDecayRate(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScaleInertiaDecayRate(get(value))); -} - -template float impl_IInteractionTracker::ScaleVelocityInPercentPerSecond() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_ScaleVelocityInPercentPerSecond(&value)); - return value; -} - -template void impl_IInteractionTracker::AdjustPositionXIfGreaterThanThreshold(float adjustment, float positionThreshold) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AdjustPositionXIfGreaterThanThreshold(adjustment, positionThreshold)); -} - -template void impl_IInteractionTracker::AdjustPositionYIfGreaterThanThreshold(float adjustment, float positionThreshold) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AdjustPositionYIfGreaterThanThreshold(adjustment, positionThreshold)); -} - -template void impl_IInteractionTracker::ConfigurePositionXInertiaModifiers(const Windows::Foundation::Collections::IIterable & modifiers) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ConfigurePositionXInertiaModifiers(get(modifiers))); -} - -template void impl_IInteractionTracker::ConfigurePositionYInertiaModifiers(const Windows::Foundation::Collections::IIterable & modifiers) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ConfigurePositionYInertiaModifiers(get(modifiers))); -} - -template void impl_IInteractionTracker::ConfigureScaleInertiaModifiers(const Windows::Foundation::Collections::IIterable & modifiers) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ConfigureScaleInertiaModifiers(get(modifiers))); -} - -template int32_t impl_IInteractionTracker::TryUpdatePosition(const Windows::Foundation::Numerics::float3 & value) const -{ - int32_t requestId {}; - check_hresult(static_cast(static_cast(*this))->abi_TryUpdatePosition(get(value), &requestId)); - return requestId; -} - -template int32_t impl_IInteractionTracker::TryUpdatePositionBy(const Windows::Foundation::Numerics::float3 & amount) const -{ - int32_t requestId {}; - check_hresult(static_cast(static_cast(*this))->abi_TryUpdatePositionBy(get(amount), &requestId)); - return requestId; -} - -template int32_t impl_IInteractionTracker::TryUpdatePositionWithAnimation(const Windows::UI::Composition::CompositionAnimation & animation) const -{ - int32_t requestId {}; - check_hresult(static_cast(static_cast(*this))->abi_TryUpdatePositionWithAnimation(get(animation), &requestId)); - return requestId; -} - -template int32_t impl_IInteractionTracker::TryUpdatePositionWithAdditionalVelocity(const Windows::Foundation::Numerics::float3 & velocityInPixelsPerSecond) const -{ - int32_t requestId {}; - check_hresult(static_cast(static_cast(*this))->abi_TryUpdatePositionWithAdditionalVelocity(get(velocityInPixelsPerSecond), &requestId)); - return requestId; -} - -template int32_t impl_IInteractionTracker::TryUpdateScale(float value, const Windows::Foundation::Numerics::float3 & centerPoint) const -{ - int32_t requestId {}; - check_hresult(static_cast(static_cast(*this))->abi_TryUpdateScale(value, get(centerPoint), &requestId)); - return requestId; -} - -template int32_t impl_IInteractionTracker::TryUpdateScaleWithAnimation(const Windows::UI::Composition::CompositionAnimation & animation, const Windows::Foundation::Numerics::float3 & centerPoint) const -{ - int32_t requestId {}; - check_hresult(static_cast(static_cast(*this))->abi_TryUpdateScaleWithAnimation(get(animation), get(centerPoint), &requestId)); - return requestId; -} - -template int32_t impl_IInteractionTracker::TryUpdateScaleWithAdditionalVelocity(float velocityInPercentPerSecond, const Windows::Foundation::Numerics::float3 & centerPoint) const -{ - int32_t requestId {}; - check_hresult(static_cast(static_cast(*this))->abi_TryUpdateScaleWithAdditionalVelocity(velocityInPercentPerSecond, get(centerPoint), &requestId)); - return requestId; -} - -template int32_t impl_IInteractionTrackerCustomAnimationStateEnteredArgs::RequestId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestId(&value)); - return value; -} - -template int32_t impl_IInteractionTrackerIdleStateEnteredArgs::RequestId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestId(&value)); - return value; -} - -template int32_t impl_IInteractionTrackerInteractingStateEnteredArgs::RequestId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestId(&value)); - return value; -} - -template Windows::UI::Composition::Interactions::InteractionTrackerInertiaRestingValue impl_IInteractionTrackerInertiaRestingValueStatics::Create(const Windows::UI::Composition::Compositor & compositor) const -{ - Windows::UI::Composition::Interactions::InteractionTrackerInertiaRestingValue result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(compositor), put(result))); - return result; -} - -template Windows::UI::Composition::ExpressionAnimation impl_IInteractionTrackerInertiaRestingValue::Condition() const -{ - Windows::UI::Composition::ExpressionAnimation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Condition(put(value))); - return value; -} - -template void impl_IInteractionTrackerInertiaRestingValue::Condition(const Windows::UI::Composition::ExpressionAnimation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Condition(get(value))); -} - -template Windows::UI::Composition::ExpressionAnimation impl_IInteractionTrackerInertiaRestingValue::RestingValue() const -{ - Windows::UI::Composition::ExpressionAnimation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RestingValue(put(value))); - return value; -} - -template void impl_IInteractionTrackerInertiaRestingValue::RestingValue(const Windows::UI::Composition::ExpressionAnimation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RestingValue(get(value))); -} - -template Windows::UI::Composition::Interactions::InteractionTrackerInertiaMotion impl_IInteractionTrackerInertiaMotionStatics::Create(const Windows::UI::Composition::Compositor & compositor) const -{ - Windows::UI::Composition::Interactions::InteractionTrackerInertiaMotion result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(compositor), put(result))); - return result; -} - -template Windows::UI::Composition::ExpressionAnimation impl_IInteractionTrackerInertiaMotion::Condition() const -{ - Windows::UI::Composition::ExpressionAnimation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Condition(put(value))); - return value; -} - -template void impl_IInteractionTrackerInertiaMotion::Condition(const Windows::UI::Composition::ExpressionAnimation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Condition(get(value))); -} - -template Windows::UI::Composition::ExpressionAnimation impl_IInteractionTrackerInertiaMotion::Motion() const -{ - Windows::UI::Composition::ExpressionAnimation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Motion(put(value))); - return value; -} - -template void impl_IInteractionTrackerInertiaMotion::Motion(const Windows::UI::Composition::ExpressionAnimation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Motion(get(value))); -} - -template Windows::Foundation::IReference impl_IInteractionTrackerInertiaStateEnteredArgs::ModifiedRestingPosition() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ModifiedRestingPosition(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IInteractionTrackerInertiaStateEnteredArgs::ModifiedRestingScale() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ModifiedRestingScale(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_IInteractionTrackerInertiaStateEnteredArgs::NaturalRestingPosition() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_NaturalRestingPosition(put(value))); - return value; -} - -template float impl_IInteractionTrackerInertiaStateEnteredArgs::NaturalRestingScale() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_NaturalRestingScale(&value)); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_IInteractionTrackerInertiaStateEnteredArgs::PositionVelocityInPixelsPerSecond() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_PositionVelocityInPixelsPerSecond(put(value))); - return value; -} - -template int32_t impl_IInteractionTrackerInertiaStateEnteredArgs::RequestId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestId(&value)); - return value; -} - -template float impl_IInteractionTrackerInertiaStateEnteredArgs::ScaleVelocityInPercentPerSecond() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_ScaleVelocityInPercentPerSecond(&value)); - return value; -} - -template int32_t impl_IInteractionTrackerRequestIgnoredArgs::RequestId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestId(&value)); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_IInteractionTrackerValuesChangedArgs::Position() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template int32_t impl_IInteractionTrackerValuesChangedArgs::RequestId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RequestId(&value)); - return value; -} - -template float impl_IInteractionTrackerValuesChangedArgs::Scale() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Scale(&value)); - return value; -} - -template Windows::UI::Composition::Interactions::VisualInteractionSource impl_IVisualInteractionSourceStatics::Create(const Windows::UI::Composition::Visual & source) const -{ - Windows::UI::Composition::Interactions::VisualInteractionSource result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(source), put(result))); - return result; -} - -template bool impl_IVisualInteractionSource::IsPositionXRailsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPositionXRailsEnabled(&value)); - return value; -} - -template void impl_IVisualInteractionSource::IsPositionXRailsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPositionXRailsEnabled(value)); -} - -template bool impl_IVisualInteractionSource::IsPositionYRailsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPositionYRailsEnabled(&value)); - return value; -} - -template void impl_IVisualInteractionSource::IsPositionYRailsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPositionYRailsEnabled(value)); -} - -template Windows::UI::Composition::Interactions::VisualInteractionSourceRedirectionMode impl_IVisualInteractionSource::ManipulationRedirectionMode() const -{ - Windows::UI::Composition::Interactions::VisualInteractionSourceRedirectionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ManipulationRedirectionMode(&value)); - return value; -} - -template void impl_IVisualInteractionSource::ManipulationRedirectionMode(Windows::UI::Composition::Interactions::VisualInteractionSourceRedirectionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ManipulationRedirectionMode(value)); -} - -template Windows::UI::Composition::Interactions::InteractionChainingMode impl_IVisualInteractionSource::PositionXChainingMode() const -{ - Windows::UI::Composition::Interactions::InteractionChainingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_PositionXChainingMode(&value)); - return value; -} - -template void impl_IVisualInteractionSource::PositionXChainingMode(Windows::UI::Composition::Interactions::InteractionChainingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PositionXChainingMode(value)); -} - -template Windows::UI::Composition::Interactions::InteractionSourceMode impl_IVisualInteractionSource::PositionXSourceMode() const -{ - Windows::UI::Composition::Interactions::InteractionSourceMode value {}; - check_hresult(static_cast(static_cast(*this))->get_PositionXSourceMode(&value)); - return value; -} - -template void impl_IVisualInteractionSource::PositionXSourceMode(Windows::UI::Composition::Interactions::InteractionSourceMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PositionXSourceMode(value)); -} - -template Windows::UI::Composition::Interactions::InteractionChainingMode impl_IVisualInteractionSource::PositionYChainingMode() const -{ - Windows::UI::Composition::Interactions::InteractionChainingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_PositionYChainingMode(&value)); - return value; -} - -template void impl_IVisualInteractionSource::PositionYChainingMode(Windows::UI::Composition::Interactions::InteractionChainingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PositionYChainingMode(value)); -} - -template Windows::UI::Composition::Interactions::InteractionSourceMode impl_IVisualInteractionSource::PositionYSourceMode() const -{ - Windows::UI::Composition::Interactions::InteractionSourceMode value {}; - check_hresult(static_cast(static_cast(*this))->get_PositionYSourceMode(&value)); - return value; -} - -template void impl_IVisualInteractionSource::PositionYSourceMode(Windows::UI::Composition::Interactions::InteractionSourceMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PositionYSourceMode(value)); -} - -template Windows::UI::Composition::Interactions::InteractionChainingMode impl_IVisualInteractionSource::ScaleChainingMode() const -{ - Windows::UI::Composition::Interactions::InteractionChainingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ScaleChainingMode(&value)); - return value; -} - -template void impl_IVisualInteractionSource::ScaleChainingMode(Windows::UI::Composition::Interactions::InteractionChainingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScaleChainingMode(value)); -} - -template Windows::UI::Composition::Interactions::InteractionSourceMode impl_IVisualInteractionSource::ScaleSourceMode() const -{ - Windows::UI::Composition::Interactions::InteractionSourceMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ScaleSourceMode(&value)); - return value; -} - -template void impl_IVisualInteractionSource::ScaleSourceMode(Windows::UI::Composition::Interactions::InteractionSourceMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScaleSourceMode(value)); -} - -template Windows::UI::Composition::Visual impl_IVisualInteractionSource::Source() const -{ - Windows::UI::Composition::Visual value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template void impl_IVisualInteractionSource::TryRedirectForManipulation(const Windows::UI::Input::PointerPoint & pointerPoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TryRedirectForManipulation(get(pointerPoint))); -} - -inline Windows::UI::Composition::Interactions::InteractionTracker InteractionTracker::Create(const Windows::UI::Composition::Compositor & compositor) -{ - return get_activation_factory().Create(compositor); -} - -inline Windows::UI::Composition::Interactions::InteractionTracker InteractionTracker::CreateWithOwner(const Windows::UI::Composition::Compositor & compositor, const Windows::UI::Composition::Interactions::IInteractionTrackerOwner & owner) -{ - return get_activation_factory().CreateWithOwner(compositor, owner); -} - -inline Windows::UI::Composition::Interactions::InteractionTrackerInertiaMotion InteractionTrackerInertiaMotion::Create(const Windows::UI::Composition::Compositor & compositor) -{ - return get_activation_factory().Create(compositor); -} - -inline Windows::UI::Composition::Interactions::InteractionTrackerInertiaRestingValue InteractionTrackerInertiaRestingValue::Create(const Windows::UI::Composition::Compositor & compositor) -{ - return get_activation_factory().Create(compositor); -} - -inline Windows::UI::Composition::Interactions::VisualInteractionSource VisualInteractionSource::Create(const Windows::UI::Composition::Visual & source) -{ - return get_activation_factory().Create(source); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Composition.h b/10.0.14393.0/winrt/Windows.UI.Composition.h deleted file mode 100644 index 58c16e660..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Composition.h +++ /dev/null @@ -1,6795 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Graphics.DirectX.3.h" -#include "internal/Windows.UI.Core.3.h" -#include "internal/Windows.Graphics.Effects.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Composition.3.h" -#include "Windows.UI.h" -#include "Windows.Foundation.h" -#include "Windows.Foundation.Collections.h" -#include "Windows.Graphics.Effects.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Color(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Color()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Color(abi_arg_in value) noexcept override - { - try - { - this->shim().Color(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InterpolationColorSpace(Windows::UI::Composition::CompositionColorSpace * value) noexcept override - { - try - { - *value = detach(this->shim().InterpolationColorSpace()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InterpolationColorSpace(Windows::UI::Composition::CompositionColorSpace value) noexcept override - { - try - { - this->shim().InterpolationColorSpace(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertKeyFrame(float normalizedProgressKey, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertKeyFrameWithEasingFunction(float normalizedProgressKey, abi_arg_in value, abi_arg_in easingFunction) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, *reinterpret_cast(&value), *reinterpret_cast(&easingFunction)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ClearAllParameters() noexcept override - { - try - { - this->shim().ClearAllParameters(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearParameter(abi_arg_in key) noexcept override - { - try - { - this->shim().ClearParameter(*reinterpret_cast(&key)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetColorParameter(abi_arg_in key, abi_arg_in value) noexcept override - { - try - { - this->shim().SetColorParameter(*reinterpret_cast(&key), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetMatrix3x2Parameter(abi_arg_in key, abi_arg_in value) noexcept override - { - try - { - this->shim().SetMatrix3x2Parameter(*reinterpret_cast(&key), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetMatrix4x4Parameter(abi_arg_in key, abi_arg_in value) noexcept override - { - try - { - this->shim().SetMatrix4x4Parameter(*reinterpret_cast(&key), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetQuaternionParameter(abi_arg_in key, abi_arg_in value) noexcept override - { - try - { - this->shim().SetQuaternionParameter(*reinterpret_cast(&key), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetReferenceParameter(abi_arg_in key, abi_arg_in compositionObject) noexcept override - { - try - { - this->shim().SetReferenceParameter(*reinterpret_cast(&key), *reinterpret_cast(&compositionObject)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetScalarParameter(abi_arg_in key, float value) noexcept override - { - try - { - this->shim().SetScalarParameter(*reinterpret_cast(&key), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetVector2Parameter(abi_arg_in key, abi_arg_in value) noexcept override - { - try - { - this->shim().SetVector2Parameter(*reinterpret_cast(&key), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetVector3Parameter(abi_arg_in key, abi_arg_in value) noexcept override - { - try - { - this->shim().SetVector3Parameter(*reinterpret_cast(&key), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetVector4Parameter(abi_arg_in key, abi_arg_in value) noexcept override - { - try - { - this->shim().SetVector4Parameter(*reinterpret_cast(&key), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetBooleanParameter(abi_arg_in key, bool value) noexcept override - { - try - { - this->shim().SetBooleanParameter(*reinterpret_cast(&key), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Target(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Target()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Target(abi_arg_in value) noexcept override - { - try - { - this->shim().Target(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Count(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Count()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Add(abi_arg_in value) noexcept override - { - try - { - this->shim().Add(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Remove(abi_arg_in value) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAll() noexcept override - { - try - { - this->shim().RemoveAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AnchorPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AnchorPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AnchorPoint(abi_arg_in value) noexcept override - { - try - { - this->shim().AnchorPoint(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CenterPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CenterPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CenterPoint(abi_arg_in value) noexcept override - { - try - { - this->shim().CenterPoint(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Offset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Offset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Offset(abi_arg_in value) noexcept override - { - try - { - this->shim().Offset(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RotationAngle(float * value) noexcept override - { - try - { - *value = detach(this->shim().RotationAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RotationAngle(float value) noexcept override - { - try - { - this->shim().RotationAngle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RotationAngleInDegrees(float * value) noexcept override - { - try - { - *value = detach(this->shim().RotationAngleInDegrees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RotationAngleInDegrees(float value) noexcept override - { - try - { - this->shim().RotationAngleInDegrees(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Scale(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Scale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Scale(abi_arg_in value) noexcept override - { - try - { - this->shim().Scale(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransformMatrix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransformMatrix()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransformMatrix(abi_arg_in value) noexcept override - { - try - { - this->shim().TransformMatrix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Color(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Color()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Color(abi_arg_in value) noexcept override - { - try - { - this->shim().Color(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnded(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnded()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Completed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Completed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Completed(event_token token) noexcept override - { - try - { - this->shim().Completed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AlphaMode(Windows::Graphics::DirectX::DirectXAlphaMode * value) noexcept override - { - try - { - *value = detach(this->shim().AlphaMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PixelFormat(Windows::Graphics::DirectX::DirectXPixelFormat * value) noexcept override - { - try - { - *value = detach(this->shim().PixelFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Size(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetSourceParameter(abi_arg_in name, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetSourceParameter(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetSourceParameter(abi_arg_in name, abi_arg_in source) noexcept override - { - try - { - this->shim().SetSourceParameter(*reinterpret_cast(&name), *reinterpret_cast(&source)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateBrush(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateBrush()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtendedError(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LoadStatus(Windows::UI::Composition::CompositionEffectFactoryLoadStatus * value) noexcept override - { - try - { - *value = detach(this->shim().LoadStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in name, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().Create(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateDrawingSurface(abi_arg_in sizePixels, Windows::Graphics::DirectX::DirectXPixelFormat pixelFormat, Windows::Graphics::DirectX::DirectXAlphaMode alphaMode, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateDrawingSurface(*reinterpret_cast(&sizePixels), pixelFormat, alphaMode)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RenderingDeviceReplaced(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RenderingDeviceReplaced(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RenderingDeviceReplaced(event_token token) noexcept override - { - try - { - this->shim().RenderingDeviceReplaced(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Targets(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Targets()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Mask(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mask()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mask(abi_arg_in value) noexcept override - { - try - { - this->shim().Mask(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Source(abi_arg_in value) noexcept override - { - try - { - this->shim().Source(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BottomInset(float * value) noexcept override - { - try - { - *value = detach(this->shim().BottomInset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BottomInset(float value) noexcept override - { - try - { - this->shim().BottomInset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BottomInsetScale(float * value) noexcept override - { - try - { - *value = detach(this->shim().BottomInsetScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BottomInsetScale(float value) noexcept override - { - try - { - this->shim().BottomInsetScale(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCenterHollow(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCenterHollow()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsCenterHollow(bool value) noexcept override - { - try - { - this->shim().IsCenterHollow(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LeftInset(float * value) noexcept override - { - try - { - *value = detach(this->shim().LeftInset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LeftInset(float value) noexcept override - { - try - { - this->shim().LeftInset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LeftInsetScale(float * value) noexcept override - { - try - { - *value = detach(this->shim().LeftInsetScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LeftInsetScale(float value) noexcept override - { - try - { - this->shim().LeftInsetScale(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightInset(float * value) noexcept override - { - try - { - *value = detach(this->shim().RightInset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RightInset(float value) noexcept override - { - try - { - this->shim().RightInset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightInsetScale(float * value) noexcept override - { - try - { - *value = detach(this->shim().RightInsetScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RightInsetScale(float value) noexcept override - { - try - { - this->shim().RightInsetScale(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Source(abi_arg_in value) noexcept override - { - try - { - this->shim().Source(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TopInset(float * value) noexcept override - { - try - { - *value = detach(this->shim().TopInset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TopInset(float value) noexcept override - { - try - { - this->shim().TopInset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TopInsetScale(float * value) noexcept override - { - try - { - *value = detach(this->shim().TopInsetScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TopInsetScale(float value) noexcept override - { - try - { - this->shim().TopInsetScale(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetInsets(float inset) noexcept override - { - try - { - this->shim().SetInsets(inset); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetInsetsWithValues(float left, float top, float right, float bottom) noexcept override - { - try - { - this->shim().SetInsets(left, top, right, bottom); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetInsetScales(float scale) noexcept override - { - try - { - this->shim().SetInsetScales(scale); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetInsetScalesWithValues(float left, float top, float right, float bottom) noexcept override - { - try - { - this->shim().SetInsetScales(left, top, right, bottom); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Compositor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Compositor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Dispatcher(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Dispatcher()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAnimation(abi_arg_in propertyName, abi_arg_in animation) noexcept override - { - try - { - this->shim().StartAnimation(*reinterpret_cast(&propertyName), *reinterpret_cast(&animation)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopAnimation(abi_arg_in propertyName) noexcept override - { - try - { - this->shim().StopAnimation(*reinterpret_cast(&propertyName)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Comment(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Comment()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Comment(abi_arg_in value) noexcept override - { - try - { - this->shim().Comment(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ImplicitAnimations(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ImplicitAnimations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ImplicitAnimations(abi_arg_in value) noexcept override - { - try - { - this->shim().ImplicitAnimations(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAnimationGroup(abi_arg_in value) noexcept override - { - try - { - this->shim().StartAnimationGroup(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopAnimationGroup(abi_arg_in value) noexcept override - { - try - { - this->shim().StopAnimationGroup(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_InsertColor(abi_arg_in propertyName, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertColor(*reinterpret_cast(&propertyName), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertMatrix3x2(abi_arg_in propertyName, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertMatrix3x2(*reinterpret_cast(&propertyName), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertMatrix4x4(abi_arg_in propertyName, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertMatrix4x4(*reinterpret_cast(&propertyName), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertQuaternion(abi_arg_in propertyName, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertQuaternion(*reinterpret_cast(&propertyName), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertScalar(abi_arg_in propertyName, float value) noexcept override - { - try - { - this->shim().InsertScalar(*reinterpret_cast(&propertyName), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertVector2(abi_arg_in propertyName, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertVector2(*reinterpret_cast(&propertyName), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertVector3(abi_arg_in propertyName, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertVector3(*reinterpret_cast(&propertyName), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertVector4(abi_arg_in propertyName, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertVector4(*reinterpret_cast(&propertyName), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetColor(abi_arg_in propertyName, abi_arg_out value, Windows::UI::Composition::CompositionGetValueStatus * result) noexcept override - { - try - { - *result = detach(this->shim().TryGetColor(*reinterpret_cast(&propertyName), *value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetMatrix3x2(abi_arg_in propertyName, abi_arg_out value, Windows::UI::Composition::CompositionGetValueStatus * result) noexcept override - { - try - { - *result = detach(this->shim().TryGetMatrix3x2(*reinterpret_cast(&propertyName), *value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetMatrix4x4(abi_arg_in propertyName, abi_arg_out value, Windows::UI::Composition::CompositionGetValueStatus * result) noexcept override - { - try - { - *result = detach(this->shim().TryGetMatrix4x4(*reinterpret_cast(&propertyName), *value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetQuaternion(abi_arg_in propertyName, abi_arg_out value, Windows::UI::Composition::CompositionGetValueStatus * result) noexcept override - { - try - { - *result = detach(this->shim().TryGetQuaternion(*reinterpret_cast(&propertyName), *value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetScalar(abi_arg_in propertyName, float * value, Windows::UI::Composition::CompositionGetValueStatus * result) noexcept override - { - try - { - *result = detach(this->shim().TryGetScalar(*reinterpret_cast(&propertyName), *value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetVector2(abi_arg_in propertyName, abi_arg_out value, Windows::UI::Composition::CompositionGetValueStatus * result) noexcept override - { - try - { - *result = detach(this->shim().TryGetVector2(*reinterpret_cast(&propertyName), *value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetVector3(abi_arg_in propertyName, abi_arg_out value, Windows::UI::Composition::CompositionGetValueStatus * result) noexcept override - { - try - { - *result = detach(this->shim().TryGetVector3(*reinterpret_cast(&propertyName), *value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetVector4(abi_arg_in propertyName, abi_arg_out value, Windows::UI::Composition::CompositionGetValueStatus * result) noexcept override - { - try - { - *result = detach(this->shim().TryGetVector4(*reinterpret_cast(&propertyName), *value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_InsertBoolean(abi_arg_in propertyName, bool value) noexcept override - { - try - { - this->shim().InsertBoolean(*reinterpret_cast(&propertyName), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetBoolean(abi_arg_in propertyName, bool * value, Windows::UI::Composition::CompositionGetValueStatus * result) noexcept override - { - try - { - *result = detach(this->shim().TryGetBoolean(*reinterpret_cast(&propertyName), *value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnded(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnded()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_End() noexcept override - { - try - { - this->shim().End(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Resume() noexcept override - { - try - { - this->shim().Resume(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Suspend() noexcept override - { - try - { - this->shim().Suspend(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Completed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Completed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Completed(event_token token) noexcept override - { - try - { - this->shim().Completed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BitmapInterpolationMode(Windows::UI::Composition::CompositionBitmapInterpolationMode * value) noexcept override - { - try - { - *value = detach(this->shim().BitmapInterpolationMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BitmapInterpolationMode(Windows::UI::Composition::CompositionBitmapInterpolationMode value) noexcept override - { - try - { - this->shim().BitmapInterpolationMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalAlignmentRatio(float * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalAlignmentRatio()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalAlignmentRatio(float value) noexcept override - { - try - { - this->shim().HorizontalAlignmentRatio(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stretch(Windows::UI::Composition::CompositionStretch * value) noexcept override - { - try - { - *value = detach(this->shim().Stretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Stretch(Windows::UI::Composition::CompositionStretch value) noexcept override - { - try - { - this->shim().Stretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Surface(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Surface()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Surface(abi_arg_in value) noexcept override - { - try - { - this->shim().Surface(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalAlignmentRatio(float * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalAlignmentRatio()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalAlignmentRatio(float value) noexcept override - { - try - { - this->shim().VerticalAlignmentRatio(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AnchorPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AnchorPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AnchorPoint(abi_arg_in value) noexcept override - { - try - { - this->shim().AnchorPoint(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CenterPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CenterPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CenterPoint(abi_arg_in value) noexcept override - { - try - { - this->shim().CenterPoint(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Offset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Offset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Offset(abi_arg_in value) noexcept override - { - try - { - this->shim().Offset(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RotationAngle(float * value) noexcept override - { - try - { - *value = detach(this->shim().RotationAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RotationAngle(float value) noexcept override - { - try - { - this->shim().RotationAngle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RotationAngleInDegrees(float * value) noexcept override - { - try - { - *value = detach(this->shim().RotationAngleInDegrees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RotationAngleInDegrees(float value) noexcept override - { - try - { - this->shim().RotationAngleInDegrees(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Scale(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Scale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Scale(abi_arg_in value) noexcept override - { - try - { - this->shim().Scale(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransformMatrix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransformMatrix()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransformMatrix(abi_arg_in value) noexcept override - { - try - { - this->shim().TransformMatrix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Root(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Root()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Root(abi_arg_in value) noexcept override - { - try - { - this->shim().Root(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateColorKeyFrameAnimation(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateColorKeyFrameAnimation()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateColorBrush(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateColorBrush()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateColorBrushWithColor(abi_arg_in color, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateColorBrush(*reinterpret_cast(&color))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateContainerVisual(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateContainerVisual()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCubicBezierEasingFunction(abi_arg_in controlPoint1, abi_arg_in controlPoint2, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateCubicBezierEasingFunction(*reinterpret_cast(&controlPoint1), *reinterpret_cast(&controlPoint2))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateEffectFactory(abi_arg_in graphicsEffect, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateEffectFactory(*reinterpret_cast(&graphicsEffect))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateEffectFactoryWithProperties(abi_arg_in graphicsEffect, abi_arg_in> animatableProperties, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateEffectFactory(*reinterpret_cast(&graphicsEffect), *reinterpret_cast *>(&animatableProperties))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateExpressionAnimation(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateExpressionAnimation()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateExpressionAnimationWithExpression(abi_arg_in expression, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateExpressionAnimation(*reinterpret_cast(&expression))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInsetClip(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateInsetClip()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInsetClipWithInsets(float leftInset, float topInset, float rightInset, float bottomInset, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateInsetClip(leftInset, topInset, rightInset, bottomInset)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateLinearEasingFunction(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateLinearEasingFunction()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePropertySet(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreatePropertySet()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateQuaternionKeyFrameAnimation(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateQuaternionKeyFrameAnimation()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateScalarKeyFrameAnimation(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateScalarKeyFrameAnimation()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateScopedBatch(Windows::UI::Composition::CompositionBatchTypes batchType, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateScopedBatch(batchType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSpriteVisual(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateSpriteVisual()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSurfaceBrush(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateSurfaceBrush()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSurfaceBrushWithSurface(abi_arg_in surface, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateSurfaceBrush(*reinterpret_cast(&surface))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTargetForCurrentView(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateTargetForCurrentView()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateVector2KeyFrameAnimation(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateVector2KeyFrameAnimation()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateVector3KeyFrameAnimation(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateVector3KeyFrameAnimation()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateVector4KeyFrameAnimation(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateVector4KeyFrameAnimation()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCommitBatch(Windows::UI::Composition::CompositionBatchTypes batchType, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetCommitBatch(batchType)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateAmbientLight(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateAmbientLight()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateAnimationGroup(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateAnimationGroup()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBackdropBrush(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateBackdropBrush()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDistantLight(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateDistantLight()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateDropShadow(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateDropShadow()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateImplicitAnimationCollection(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateImplicitAnimationCollection()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateLayerVisual(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateLayerVisual()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateMaskBrush(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateMaskBrush()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateNineGridBrush(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateNineGridBrush()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePointLight(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreatePointLight()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSpotLight(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateSpotLight()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStepEasingFunction(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateStepEasingFunction()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStepEasingFunctionWithStepCount(int32_t stepCount, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateStepEasingFunction(stepCount)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Children(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Children()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ControlPoint1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ControlPoint1()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ControlPoint2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ControlPoint2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Color(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Color()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Color(abi_arg_in value) noexcept override - { - try - { - this->shim().Color(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CoordinateSpace(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CoordinateSpace()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CoordinateSpace(abi_arg_in value) noexcept override - { - try - { - this->shim().CoordinateSpace(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Direction(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Direction()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Direction(abi_arg_in value) noexcept override - { - try - { - this->shim().Direction(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BlurRadius(float * value) noexcept override - { - try - { - *value = detach(this->shim().BlurRadius()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BlurRadius(float value) noexcept override - { - try - { - this->shim().BlurRadius(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Color(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Color()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Color(abi_arg_in value) noexcept override - { - try - { - this->shim().Color(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Mask(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Mask()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mask(abi_arg_in value) noexcept override - { - try - { - this->shim().Mask(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Offset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Offset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Offset(abi_arg_in value) noexcept override - { - try - { - this->shim().Offset(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Opacity(float * value) noexcept override - { - try - { - *value = detach(this->shim().Opacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Opacity(float value) noexcept override - { - try - { - this->shim().Opacity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Expression(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Expression()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Expression(abi_arg_in value) noexcept override - { - try - { - this->shim().Expression(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BottomInset(float * value) noexcept override - { - try - { - *value = detach(this->shim().BottomInset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BottomInset(float value) noexcept override - { - try - { - this->shim().BottomInset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LeftInset(float * value) noexcept override - { - try - { - *value = detach(this->shim().LeftInset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LeftInset(float value) noexcept override - { - try - { - this->shim().LeftInset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightInset(float * value) noexcept override - { - try - { - *value = detach(this->shim().RightInset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RightInset(float value) noexcept override - { - try - { - this->shim().RightInset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TopInset(float * value) noexcept override - { - try - { - *value = detach(this->shim().TopInset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TopInset(float value) noexcept override - { - try - { - this->shim().TopInset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DelayTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DelayTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DelayTime(abi_arg_in value) noexcept override - { - try - { - this->shim().DelayTime(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Duration(abi_arg_in value) noexcept override - { - try - { - this->shim().Duration(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IterationBehavior(Windows::UI::Composition::AnimationIterationBehavior * value) noexcept override - { - try - { - *value = detach(this->shim().IterationBehavior()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IterationBehavior(Windows::UI::Composition::AnimationIterationBehavior value) noexcept override - { - try - { - this->shim().IterationBehavior(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IterationCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IterationCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IterationCount(int32_t value) noexcept override - { - try - { - this->shim().IterationCount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyFrameCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().KeyFrameCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StopBehavior(Windows::UI::Composition::AnimationStopBehavior * value) noexcept override - { - try - { - *value = detach(this->shim().StopBehavior()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StopBehavior(Windows::UI::Composition::AnimationStopBehavior value) noexcept override - { - try - { - this->shim().StopBehavior(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertExpressionKeyFrame(float normalizedProgressKey, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertExpressionKeyFrame(normalizedProgressKey, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertExpressionKeyFrameWithEasingFunction(float normalizedProgressKey, abi_arg_in value, abi_arg_in easingFunction) noexcept override - { - try - { - this->shim().InsertExpressionKeyFrame(normalizedProgressKey, *reinterpret_cast(&value), *reinterpret_cast(&easingFunction)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Direction(Windows::UI::Composition::AnimationDirection * value) noexcept override - { - try - { - *value = detach(this->shim().Direction()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Direction(Windows::UI::Composition::AnimationDirection value) noexcept override - { - try - { - this->shim().Direction(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Effect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Effect()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Effect(abi_arg_in value) noexcept override - { - try - { - this->shim().Effect(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Color(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Color()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Color(abi_arg_in value) noexcept override - { - try - { - this->shim().Color(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConstantAttenuation(float * value) noexcept override - { - try - { - *value = detach(this->shim().ConstantAttenuation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ConstantAttenuation(float value) noexcept override - { - try - { - this->shim().ConstantAttenuation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CoordinateSpace(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CoordinateSpace()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CoordinateSpace(abi_arg_in value) noexcept override - { - try - { - this->shim().CoordinateSpace(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinearAttenuation(float * value) noexcept override - { - try - { - *value = detach(this->shim().LinearAttenuation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LinearAttenuation(float value) noexcept override - { - try - { - this->shim().LinearAttenuation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Offset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Offset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Offset(abi_arg_in value) noexcept override - { - try - { - this->shim().Offset(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QuadraticAttenuation(float * value) noexcept override - { - try - { - *value = detach(this->shim().QuadraticAttenuation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_QuadraticAttenuation(float value) noexcept override - { - try - { - this->shim().QuadraticAttenuation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_InsertKeyFrame(float normalizedProgressKey, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertKeyFrameWithEasingFunction(float normalizedProgressKey, abi_arg_in value, abi_arg_in easingFunction) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, *reinterpret_cast(&value), *reinterpret_cast(&easingFunction)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GraphicsDevice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GraphicsDevice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_InsertKeyFrame(float normalizedProgressKey, float value) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertKeyFrameWithEasingFunction(float normalizedProgressKey, float value, abi_arg_in easingFunction) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, value, *reinterpret_cast(&easingFunction)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConstantAttenuation(float * value) noexcept override - { - try - { - *value = detach(this->shim().ConstantAttenuation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ConstantAttenuation(float value) noexcept override - { - try - { - this->shim().ConstantAttenuation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CoordinateSpace(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CoordinateSpace()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CoordinateSpace(abi_arg_in value) noexcept override - { - try - { - this->shim().CoordinateSpace(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Direction(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Direction()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Direction(abi_arg_in value) noexcept override - { - try - { - this->shim().Direction(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InnerConeAngle(float * value) noexcept override - { - try - { - *value = detach(this->shim().InnerConeAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InnerConeAngle(float value) noexcept override - { - try - { - this->shim().InnerConeAngle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InnerConeAngleInDegrees(float * value) noexcept override - { - try - { - *value = detach(this->shim().InnerConeAngleInDegrees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InnerConeAngleInDegrees(float value) noexcept override - { - try - { - this->shim().InnerConeAngleInDegrees(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InnerConeColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InnerConeColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InnerConeColor(abi_arg_in value) noexcept override - { - try - { - this->shim().InnerConeColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinearAttenuation(float * value) noexcept override - { - try - { - *value = detach(this->shim().LinearAttenuation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LinearAttenuation(float value) noexcept override - { - try - { - this->shim().LinearAttenuation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Offset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Offset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Offset(abi_arg_in value) noexcept override - { - try - { - this->shim().Offset(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OuterConeAngle(float * value) noexcept override - { - try - { - *value = detach(this->shim().OuterConeAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OuterConeAngle(float value) noexcept override - { - try - { - this->shim().OuterConeAngle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OuterConeAngleInDegrees(float * value) noexcept override - { - try - { - *value = detach(this->shim().OuterConeAngleInDegrees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OuterConeAngleInDegrees(float value) noexcept override - { - try - { - this->shim().OuterConeAngleInDegrees(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OuterConeColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OuterConeColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OuterConeColor(abi_arg_in value) noexcept override - { - try - { - this->shim().OuterConeColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QuadraticAttenuation(float * value) noexcept override - { - try - { - *value = detach(this->shim().QuadraticAttenuation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_QuadraticAttenuation(float value) noexcept override - { - try - { - this->shim().QuadraticAttenuation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Brush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Brush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Brush(abi_arg_in value) noexcept override - { - try - { - this->shim().Brush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Shadow(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Shadow()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Shadow(abi_arg_in value) noexcept override - { - try - { - this->shim().Shadow(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FinalStep(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FinalStep()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FinalStep(int32_t value) noexcept override - { - try - { - this->shim().FinalStep(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InitialStep(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().InitialStep()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InitialStep(int32_t value) noexcept override - { - try - { - this->shim().InitialStep(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFinalStepSingleFrame(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFinalStepSingleFrame()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFinalStepSingleFrame(bool value) noexcept override - { - try - { - this->shim().IsFinalStepSingleFrame(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInitialStepSingleFrame(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInitialStepSingleFrame()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsInitialStepSingleFrame(bool value) noexcept override - { - try - { - this->shim().IsInitialStepSingleFrame(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StepCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StepCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StepCount(int32_t value) noexcept override - { - try - { - this->shim().StepCount(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_InsertKeyFrame(float normalizedProgressKey, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertKeyFrameWithEasingFunction(float normalizedProgressKey, abi_arg_in value, abi_arg_in easingFunction) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, *reinterpret_cast(&value), *reinterpret_cast(&easingFunction)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_InsertKeyFrame(float normalizedProgressKey, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertKeyFrameWithEasingFunction(float normalizedProgressKey, abi_arg_in value, abi_arg_in easingFunction) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, *reinterpret_cast(&value), *reinterpret_cast(&easingFunction)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_InsertKeyFrame(float normalizedProgressKey, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertKeyFrameWithEasingFunction(float normalizedProgressKey, abi_arg_in value, abi_arg_in easingFunction) noexcept override - { - try - { - this->shim().InsertKeyFrame(normalizedProgressKey, *reinterpret_cast(&value), *reinterpret_cast(&easingFunction)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AnchorPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AnchorPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AnchorPoint(abi_arg_in value) noexcept override - { - try - { - this->shim().AnchorPoint(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackfaceVisibility(Windows::UI::Composition::CompositionBackfaceVisibility * value) noexcept override - { - try - { - *value = detach(this->shim().BackfaceVisibility()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackfaceVisibility(Windows::UI::Composition::CompositionBackfaceVisibility value) noexcept override - { - try - { - this->shim().BackfaceVisibility(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderMode(Windows::UI::Composition::CompositionBorderMode * value) noexcept override - { - try - { - *value = detach(this->shim().BorderMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderMode(Windows::UI::Composition::CompositionBorderMode value) noexcept override - { - try - { - this->shim().BorderMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CenterPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CenterPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CenterPoint(abi_arg_in value) noexcept override - { - try - { - this->shim().CenterPoint(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Clip(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Clip()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Clip(abi_arg_in value) noexcept override - { - try - { - this->shim().Clip(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompositeMode(Windows::UI::Composition::CompositionCompositeMode * value) noexcept override - { - try - { - *value = detach(this->shim().CompositeMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CompositeMode(Windows::UI::Composition::CompositionCompositeMode value) noexcept override - { - try - { - this->shim().CompositeMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsVisible(bool value) noexcept override - { - try - { - this->shim().IsVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Offset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Offset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Offset(abi_arg_in value) noexcept override - { - try - { - this->shim().Offset(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Opacity(float * value) noexcept override - { - try - { - *value = detach(this->shim().Opacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Opacity(float value) noexcept override - { - try - { - this->shim().Opacity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(abi_arg_in value) noexcept override - { - try - { - this->shim().Orientation(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Parent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Parent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RotationAngle(float * value) noexcept override - { - try - { - *value = detach(this->shim().RotationAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RotationAngle(float value) noexcept override - { - try - { - this->shim().RotationAngle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RotationAngleInDegrees(float * value) noexcept override - { - try - { - *value = detach(this->shim().RotationAngleInDegrees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RotationAngleInDegrees(float value) noexcept override - { - try - { - this->shim().RotationAngleInDegrees(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RotationAxis(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RotationAxis()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RotationAxis(abi_arg_in value) noexcept override - { - try - { - this->shim().RotationAxis(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Scale(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Scale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Scale(abi_arg_in value) noexcept override - { - try - { - this->shim().Scale(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Size(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Size(abi_arg_in value) noexcept override - { - try - { - this->shim().Size(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransformMatrix(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransformMatrix()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransformMatrix(abi_arg_in value) noexcept override - { - try - { - this->shim().TransformMatrix(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Count(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Count()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertAbove(abi_arg_in newChild, abi_arg_in sibling) noexcept override - { - try - { - this->shim().InsertAbove(*reinterpret_cast(&newChild), *reinterpret_cast(&sibling)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertAtBottom(abi_arg_in newChild) noexcept override - { - try - { - this->shim().InsertAtBottom(*reinterpret_cast(&newChild)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertAtTop(abi_arg_in newChild) noexcept override - { - try - { - this->shim().InsertAtTop(*reinterpret_cast(&newChild)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertBelow(abi_arg_in newChild, abi_arg_in sibling) noexcept override - { - try - { - this->shim().InsertBelow(*reinterpret_cast(&newChild), *reinterpret_cast(&sibling)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Remove(abi_arg_in child) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&child)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAll() noexcept override - { - try - { - this->shim().RemoveAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Count(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Count()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Add(abi_arg_in newVisual) noexcept override - { - try - { - this->shim().Add(*reinterpret_cast(&newVisual)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Remove(abi_arg_in visual) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&visual)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAll() noexcept override - { - try - { - this->shim().RemoveAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Composition { - -template Windows::UI::Color impl_IAmbientLight::Color() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_Color(put(value))); - return value; -} - -template void impl_IAmbientLight::Color(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Color(get(value))); -} - -template Windows::UI::Composition::CompositionColorSpace impl_IColorKeyFrameAnimation::InterpolationColorSpace() const -{ - Windows::UI::Composition::CompositionColorSpace value {}; - check_hresult(static_cast(static_cast(*this))->get_InterpolationColorSpace(&value)); - return value; -} - -template void impl_IColorKeyFrameAnimation::InterpolationColorSpace(Windows::UI::Composition::CompositionColorSpace value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InterpolationColorSpace(value)); -} - -template void impl_IColorKeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrame(normalizedProgressKey, get(value))); -} - -template void impl_IColorKeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, const Windows::UI::Color & value, const Windows::UI::Composition::CompositionEasingFunction & easingFunction) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrameWithEasingFunction(normalizedProgressKey, get(value), get(easingFunction))); -} - -template void impl_ICompositionAnimation::ClearAllParameters() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearAllParameters()); -} - -template void impl_ICompositionAnimation::ClearParameter(hstring_ref key) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearParameter(get(key))); -} - -template void impl_ICompositionAnimation::SetColorParameter(hstring_ref key, const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetColorParameter(get(key), get(value))); -} - -template void impl_ICompositionAnimation::SetMatrix3x2Parameter(hstring_ref key, const Windows::Foundation::Numerics::float3x2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetMatrix3x2Parameter(get(key), get(value))); -} - -template void impl_ICompositionAnimation::SetMatrix4x4Parameter(hstring_ref key, const Windows::Foundation::Numerics::float4x4 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetMatrix4x4Parameter(get(key), get(value))); -} - -template void impl_ICompositionAnimation::SetQuaternionParameter(hstring_ref key, const Windows::Foundation::Numerics::quaternion & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetQuaternionParameter(get(key), get(value))); -} - -template void impl_ICompositionAnimation::SetReferenceParameter(hstring_ref key, const Windows::UI::Composition::CompositionObject & compositionObject) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetReferenceParameter(get(key), get(compositionObject))); -} - -template void impl_ICompositionAnimation::SetScalarParameter(hstring_ref key, float value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetScalarParameter(get(key), value)); -} - -template void impl_ICompositionAnimation::SetVector2Parameter(hstring_ref key, const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetVector2Parameter(get(key), get(value))); -} - -template void impl_ICompositionAnimation::SetVector3Parameter(hstring_ref key, const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetVector3Parameter(get(key), get(value))); -} - -template void impl_ICompositionAnimation::SetVector4Parameter(hstring_ref key, const Windows::Foundation::Numerics::float4 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetVector4Parameter(get(key), get(value))); -} - -template void impl_ICompositionAnimation2::SetBooleanParameter(hstring_ref key, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBooleanParameter(get(key), value)); -} - -template hstring impl_ICompositionAnimation2::Target() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Target(put(value))); - return value; -} - -template void impl_ICompositionAnimation2::Target(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Target(get(value))); -} - -template int32_t impl_ICompositionAnimationGroup::Count() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Count(&value)); - return value; -} - -template void impl_ICompositionAnimationGroup::Add(const Windows::UI::Composition::CompositionAnimation & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Add(get(value))); -} - -template void impl_ICompositionAnimationGroup::Remove(const Windows::UI::Composition::CompositionAnimation & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Remove(get(value))); -} - -template void impl_ICompositionAnimationGroup::RemoveAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveAll()); -} - -template Windows::Foundation::Numerics::float2 impl_ICompositionClip2::AnchorPoint() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_AnchorPoint(put(value))); - return value; -} - -template void impl_ICompositionClip2::AnchorPoint(const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AnchorPoint(get(value))); -} - -template Windows::Foundation::Numerics::float2 impl_ICompositionClip2::CenterPoint() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_CenterPoint(put(value))); - return value; -} - -template void impl_ICompositionClip2::CenterPoint(const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CenterPoint(get(value))); -} - -template Windows::Foundation::Numerics::float2 impl_ICompositionClip2::Offset() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_Offset(put(value))); - return value; -} - -template void impl_ICompositionClip2::Offset(const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Offset(get(value))); -} - -template float impl_ICompositionClip2::RotationAngle() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RotationAngle(&value)); - return value; -} - -template void impl_ICompositionClip2::RotationAngle(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RotationAngle(value)); -} - -template float impl_ICompositionClip2::RotationAngleInDegrees() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RotationAngleInDegrees(&value)); - return value; -} - -template void impl_ICompositionClip2::RotationAngleInDegrees(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RotationAngleInDegrees(value)); -} - -template Windows::Foundation::Numerics::float2 impl_ICompositionClip2::Scale() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_Scale(put(value))); - return value; -} - -template void impl_ICompositionClip2::Scale(const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Scale(get(value))); -} - -template Windows::Foundation::Numerics::float3x2 impl_ICompositionClip2::TransformMatrix() const -{ - Windows::Foundation::Numerics::float3x2 value {}; - check_hresult(static_cast(static_cast(*this))->get_TransformMatrix(put(value))); - return value; -} - -template void impl_ICompositionClip2::TransformMatrix(const Windows::Foundation::Numerics::float3x2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransformMatrix(get(value))); -} - -template Windows::UI::Color impl_ICompositionColorBrush::Color() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_Color(put(value))); - return value; -} - -template void impl_ICompositionColorBrush::Color(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Color(get(value))); -} - -template bool impl_ICompositionCommitBatch::IsActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActive(&value)); - return value; -} - -template bool impl_ICompositionCommitBatch::IsEnded() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnded(&value)); - return value; -} - -template event_token impl_ICompositionCommitBatch::Completed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Completed(get(handler), &token)); - return token; -} - -template event_revoker impl_ICompositionCommitBatch::Completed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Composition::ICompositionCommitBatch::remove_Completed, Completed(handler)); -} - -template void impl_ICompositionCommitBatch::Completed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Completed(token)); -} - -template Windows::Graphics::DirectX::DirectXAlphaMode impl_ICompositionDrawingSurface::AlphaMode() const -{ - Windows::Graphics::DirectX::DirectXAlphaMode value {}; - check_hresult(static_cast(static_cast(*this))->get_AlphaMode(&value)); - return value; -} - -template Windows::Graphics::DirectX::DirectXPixelFormat impl_ICompositionDrawingSurface::PixelFormat() const -{ - Windows::Graphics::DirectX::DirectXPixelFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_PixelFormat(&value)); - return value; -} - -template Windows::Foundation::Size impl_ICompositionDrawingSurface::Size() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(put(value))); - return value; -} - -template Windows::UI::Composition::CompositionBrush impl_ICompositionEffectBrush::GetSourceParameter(hstring_ref name) const -{ - Windows::UI::Composition::CompositionBrush result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetSourceParameter(get(name), put(result))); - return result; -} - -template void impl_ICompositionEffectBrush::SetSourceParameter(hstring_ref name, const Windows::UI::Composition::CompositionBrush & source) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSourceParameter(get(name), get(source))); -} - -template Windows::UI::Composition::CompositionEffectBrush impl_ICompositionEffectFactory::CreateBrush() const -{ - Windows::UI::Composition::CompositionEffectBrush result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBrush(put(result))); - return result; -} - -template HRESULT impl_ICompositionEffectFactory::ExtendedError() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtendedError(&value)); - return value; -} - -template Windows::UI::Composition::CompositionEffectFactoryLoadStatus impl_ICompositionEffectFactory::LoadStatus() const -{ - Windows::UI::Composition::CompositionEffectFactoryLoadStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_LoadStatus(&value)); - return value; -} - -template hstring impl_ICompositionEffectSourceParameter::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template Windows::UI::Composition::CompositionEffectSourceParameter impl_ICompositionEffectSourceParameterFactory::Create(hstring_ref name) const -{ - Windows::UI::Composition::CompositionEffectSourceParameter instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(name), put(instance))); - return instance; -} - -template Windows::UI::Composition::CompositionDrawingSurface impl_ICompositionGraphicsDevice::CreateDrawingSurface(const Windows::Foundation::Size & sizePixels, Windows::Graphics::DirectX::DirectXPixelFormat pixelFormat, Windows::Graphics::DirectX::DirectXAlphaMode alphaMode) const -{ - Windows::UI::Composition::CompositionDrawingSurface result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDrawingSurface(get(sizePixels), pixelFormat, alphaMode, put(result))); - return result; -} - -template event_token impl_ICompositionGraphicsDevice::RenderingDeviceReplaced(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RenderingDeviceReplaced(get(handler), &token)); - return token; -} - -template event_revoker impl_ICompositionGraphicsDevice::RenderingDeviceReplaced(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Composition::ICompositionGraphicsDevice::remove_RenderingDeviceReplaced, RenderingDeviceReplaced(handler)); -} - -template void impl_ICompositionGraphicsDevice::RenderingDeviceReplaced(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RenderingDeviceReplaced(token)); -} - -template Windows::UI::Composition::VisualUnorderedCollection impl_ICompositionLight::Targets() const -{ - Windows::UI::Composition::VisualUnorderedCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Targets(put(value))); - return value; -} - -template Windows::UI::Composition::CompositionBrush impl_ICompositionMaskBrush::Mask() const -{ - Windows::UI::Composition::CompositionBrush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Mask(put(value))); - return value; -} - -template void impl_ICompositionMaskBrush::Mask(const Windows::UI::Composition::CompositionBrush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mask(get(value))); -} - -template Windows::UI::Composition::CompositionBrush impl_ICompositionMaskBrush::Source() const -{ - Windows::UI::Composition::CompositionBrush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template void impl_ICompositionMaskBrush::Source(const Windows::UI::Composition::CompositionBrush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Source(get(value))); -} - -template float impl_ICompositionNineGridBrush::BottomInset() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_BottomInset(&value)); - return value; -} - -template void impl_ICompositionNineGridBrush::BottomInset(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BottomInset(value)); -} - -template float impl_ICompositionNineGridBrush::BottomInsetScale() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_BottomInsetScale(&value)); - return value; -} - -template void impl_ICompositionNineGridBrush::BottomInsetScale(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BottomInsetScale(value)); -} - -template bool impl_ICompositionNineGridBrush::IsCenterHollow() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCenterHollow(&value)); - return value; -} - -template void impl_ICompositionNineGridBrush::IsCenterHollow(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsCenterHollow(value)); -} - -template float impl_ICompositionNineGridBrush::LeftInset() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_LeftInset(&value)); - return value; -} - -template void impl_ICompositionNineGridBrush::LeftInset(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LeftInset(value)); -} - -template float impl_ICompositionNineGridBrush::LeftInsetScale() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_LeftInsetScale(&value)); - return value; -} - -template void impl_ICompositionNineGridBrush::LeftInsetScale(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LeftInsetScale(value)); -} - -template float impl_ICompositionNineGridBrush::RightInset() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RightInset(&value)); - return value; -} - -template void impl_ICompositionNineGridBrush::RightInset(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RightInset(value)); -} - -template float impl_ICompositionNineGridBrush::RightInsetScale() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RightInsetScale(&value)); - return value; -} - -template void impl_ICompositionNineGridBrush::RightInsetScale(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RightInsetScale(value)); -} - -template Windows::UI::Composition::CompositionBrush impl_ICompositionNineGridBrush::Source() const -{ - Windows::UI::Composition::CompositionBrush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template void impl_ICompositionNineGridBrush::Source(const Windows::UI::Composition::CompositionBrush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Source(get(value))); -} - -template float impl_ICompositionNineGridBrush::TopInset() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_TopInset(&value)); - return value; -} - -template void impl_ICompositionNineGridBrush::TopInset(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TopInset(value)); -} - -template float impl_ICompositionNineGridBrush::TopInsetScale() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_TopInsetScale(&value)); - return value; -} - -template void impl_ICompositionNineGridBrush::TopInsetScale(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TopInsetScale(value)); -} - -template void impl_ICompositionNineGridBrush::SetInsets(float inset) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetInsets(inset)); -} - -template void impl_ICompositionNineGridBrush::SetInsets(float left, float top, float right, float bottom) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetInsetsWithValues(left, top, right, bottom)); -} - -template void impl_ICompositionNineGridBrush::SetInsetScales(float scale) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetInsetScales(scale)); -} - -template void impl_ICompositionNineGridBrush::SetInsetScales(float left, float top, float right, float bottom) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetInsetScalesWithValues(left, top, right, bottom)); -} - -template Windows::UI::Composition::Compositor impl_ICompositionObject::Compositor() const -{ - Windows::UI::Composition::Compositor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Compositor(put(value))); - return value; -} - -template Windows::UI::Core::CoreDispatcher impl_ICompositionObject::Dispatcher() const -{ - Windows::UI::Core::CoreDispatcher value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Dispatcher(put(value))); - return value; -} - -template Windows::UI::Composition::CompositionPropertySet impl_ICompositionObject::Properties() const -{ - Windows::UI::Composition::CompositionPropertySet value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template void impl_ICompositionObject::StartAnimation(hstring_ref propertyName, const Windows::UI::Composition::CompositionAnimation & animation) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartAnimation(get(propertyName), get(animation))); -} - -template void impl_ICompositionObject::StopAnimation(hstring_ref propertyName) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopAnimation(get(propertyName))); -} - -template hstring impl_ICompositionObject2::Comment() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Comment(put(value))); - return value; -} - -template void impl_ICompositionObject2::Comment(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Comment(get(value))); -} - -template Windows::UI::Composition::ImplicitAnimationCollection impl_ICompositionObject2::ImplicitAnimations() const -{ - Windows::UI::Composition::ImplicitAnimationCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ImplicitAnimations(put(value))); - return value; -} - -template void impl_ICompositionObject2::ImplicitAnimations(const Windows::UI::Composition::ImplicitAnimationCollection & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ImplicitAnimations(get(value))); -} - -template void impl_ICompositionObject2::StartAnimationGroup(const Windows::UI::Composition::ICompositionAnimationBase & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartAnimationGroup(get(value))); -} - -template void impl_ICompositionObject2::StopAnimationGroup(const Windows::UI::Composition::ICompositionAnimationBase & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopAnimationGroup(get(value))); -} - -template void impl_ICompositionPropertySet::InsertColor(hstring_ref propertyName, const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertColor(get(propertyName), get(value))); -} - -template void impl_ICompositionPropertySet::InsertMatrix3x2(hstring_ref propertyName, const Windows::Foundation::Numerics::float3x2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertMatrix3x2(get(propertyName), get(value))); -} - -template void impl_ICompositionPropertySet::InsertMatrix4x4(hstring_ref propertyName, const Windows::Foundation::Numerics::float4x4 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertMatrix4x4(get(propertyName), get(value))); -} - -template void impl_ICompositionPropertySet::InsertQuaternion(hstring_ref propertyName, const Windows::Foundation::Numerics::quaternion & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertQuaternion(get(propertyName), get(value))); -} - -template void impl_ICompositionPropertySet::InsertScalar(hstring_ref propertyName, float value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertScalar(get(propertyName), value)); -} - -template void impl_ICompositionPropertySet::InsertVector2(hstring_ref propertyName, const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertVector2(get(propertyName), get(value))); -} - -template void impl_ICompositionPropertySet::InsertVector3(hstring_ref propertyName, const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertVector3(get(propertyName), get(value))); -} - -template void impl_ICompositionPropertySet::InsertVector4(hstring_ref propertyName, const Windows::Foundation::Numerics::float4 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertVector4(get(propertyName), get(value))); -} - -template Windows::UI::Composition::CompositionGetValueStatus impl_ICompositionPropertySet::TryGetColor(hstring_ref propertyName, Windows::UI::Color & value) const -{ - Windows::UI::Composition::CompositionGetValueStatus result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetColor(get(propertyName), put(value), &result)); - return result; -} - -template Windows::UI::Composition::CompositionGetValueStatus impl_ICompositionPropertySet::TryGetMatrix3x2(hstring_ref propertyName, Windows::Foundation::Numerics::float3x2 & value) const -{ - Windows::UI::Composition::CompositionGetValueStatus result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetMatrix3x2(get(propertyName), put(value), &result)); - return result; -} - -template Windows::UI::Composition::CompositionGetValueStatus impl_ICompositionPropertySet::TryGetMatrix4x4(hstring_ref propertyName, Windows::Foundation::Numerics::float4x4 & value) const -{ - Windows::UI::Composition::CompositionGetValueStatus result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetMatrix4x4(get(propertyName), put(value), &result)); - return result; -} - -template Windows::UI::Composition::CompositionGetValueStatus impl_ICompositionPropertySet::TryGetQuaternion(hstring_ref propertyName, Windows::Foundation::Numerics::quaternion & value) const -{ - Windows::UI::Composition::CompositionGetValueStatus result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetQuaternion(get(propertyName), put(value), &result)); - return result; -} - -template Windows::UI::Composition::CompositionGetValueStatus impl_ICompositionPropertySet::TryGetScalar(hstring_ref propertyName, float & value) const -{ - Windows::UI::Composition::CompositionGetValueStatus result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetScalar(get(propertyName), &value, &result)); - return result; -} - -template Windows::UI::Composition::CompositionGetValueStatus impl_ICompositionPropertySet::TryGetVector2(hstring_ref propertyName, Windows::Foundation::Numerics::float2 & value) const -{ - Windows::UI::Composition::CompositionGetValueStatus result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetVector2(get(propertyName), put(value), &result)); - return result; -} - -template Windows::UI::Composition::CompositionGetValueStatus impl_ICompositionPropertySet::TryGetVector3(hstring_ref propertyName, Windows::Foundation::Numerics::float3 & value) const -{ - Windows::UI::Composition::CompositionGetValueStatus result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetVector3(get(propertyName), put(value), &result)); - return result; -} - -template Windows::UI::Composition::CompositionGetValueStatus impl_ICompositionPropertySet::TryGetVector4(hstring_ref propertyName, Windows::Foundation::Numerics::float4 & value) const -{ - Windows::UI::Composition::CompositionGetValueStatus result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetVector4(get(propertyName), put(value), &result)); - return result; -} - -template void impl_ICompositionPropertySet2::InsertBoolean(hstring_ref propertyName, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertBoolean(get(propertyName), value)); -} - -template Windows::UI::Composition::CompositionGetValueStatus impl_ICompositionPropertySet2::TryGetBoolean(hstring_ref propertyName, bool & value) const -{ - Windows::UI::Composition::CompositionGetValueStatus result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryGetBoolean(get(propertyName), &value, &result)); - return result; -} - -template bool impl_ICompositionScopedBatch::IsActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActive(&value)); - return value; -} - -template bool impl_ICompositionScopedBatch::IsEnded() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnded(&value)); - return value; -} - -template void impl_ICompositionScopedBatch::End() const -{ - check_hresult(static_cast(static_cast(*this))->abi_End()); -} - -template void impl_ICompositionScopedBatch::Resume() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Resume()); -} - -template void impl_ICompositionScopedBatch::Suspend() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Suspend()); -} - -template event_token impl_ICompositionScopedBatch::Completed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Completed(get(handler), &token)); - return token; -} - -template event_revoker impl_ICompositionScopedBatch::Completed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Composition::ICompositionScopedBatch::remove_Completed, Completed(handler)); -} - -template void impl_ICompositionScopedBatch::Completed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Completed(token)); -} - -template Windows::UI::Composition::CompositionBitmapInterpolationMode impl_ICompositionSurfaceBrush::BitmapInterpolationMode() const -{ - Windows::UI::Composition::CompositionBitmapInterpolationMode value {}; - check_hresult(static_cast(static_cast(*this))->get_BitmapInterpolationMode(&value)); - return value; -} - -template void impl_ICompositionSurfaceBrush::BitmapInterpolationMode(Windows::UI::Composition::CompositionBitmapInterpolationMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BitmapInterpolationMode(value)); -} - -template float impl_ICompositionSurfaceBrush::HorizontalAlignmentRatio() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalAlignmentRatio(&value)); - return value; -} - -template void impl_ICompositionSurfaceBrush::HorizontalAlignmentRatio(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HorizontalAlignmentRatio(value)); -} - -template Windows::UI::Composition::CompositionStretch impl_ICompositionSurfaceBrush::Stretch() const -{ - Windows::UI::Composition::CompositionStretch value {}; - check_hresult(static_cast(static_cast(*this))->get_Stretch(&value)); - return value; -} - -template void impl_ICompositionSurfaceBrush::Stretch(Windows::UI::Composition::CompositionStretch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Stretch(value)); -} - -template Windows::UI::Composition::ICompositionSurface impl_ICompositionSurfaceBrush::Surface() const -{ - Windows::UI::Composition::ICompositionSurface value; - check_hresult(static_cast(static_cast(*this))->get_Surface(put(value))); - return value; -} - -template void impl_ICompositionSurfaceBrush::Surface(const Windows::UI::Composition::ICompositionSurface & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Surface(get(value))); -} - -template float impl_ICompositionSurfaceBrush::VerticalAlignmentRatio() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalAlignmentRatio(&value)); - return value; -} - -template void impl_ICompositionSurfaceBrush::VerticalAlignmentRatio(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VerticalAlignmentRatio(value)); -} - -template Windows::Foundation::Numerics::float2 impl_ICompositionSurfaceBrush2::AnchorPoint() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_AnchorPoint(put(value))); - return value; -} - -template void impl_ICompositionSurfaceBrush2::AnchorPoint(const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AnchorPoint(get(value))); -} - -template Windows::Foundation::Numerics::float2 impl_ICompositionSurfaceBrush2::CenterPoint() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_CenterPoint(put(value))); - return value; -} - -template void impl_ICompositionSurfaceBrush2::CenterPoint(const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CenterPoint(get(value))); -} - -template Windows::Foundation::Numerics::float2 impl_ICompositionSurfaceBrush2::Offset() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_Offset(put(value))); - return value; -} - -template void impl_ICompositionSurfaceBrush2::Offset(const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Offset(get(value))); -} - -template float impl_ICompositionSurfaceBrush2::RotationAngle() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RotationAngle(&value)); - return value; -} - -template void impl_ICompositionSurfaceBrush2::RotationAngle(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RotationAngle(value)); -} - -template float impl_ICompositionSurfaceBrush2::RotationAngleInDegrees() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RotationAngleInDegrees(&value)); - return value; -} - -template void impl_ICompositionSurfaceBrush2::RotationAngleInDegrees(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RotationAngleInDegrees(value)); -} - -template Windows::Foundation::Numerics::float2 impl_ICompositionSurfaceBrush2::Scale() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_Scale(put(value))); - return value; -} - -template void impl_ICompositionSurfaceBrush2::Scale(const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Scale(get(value))); -} - -template Windows::Foundation::Numerics::float3x2 impl_ICompositionSurfaceBrush2::TransformMatrix() const -{ - Windows::Foundation::Numerics::float3x2 value {}; - check_hresult(static_cast(static_cast(*this))->get_TransformMatrix(put(value))); - return value; -} - -template void impl_ICompositionSurfaceBrush2::TransformMatrix(const Windows::Foundation::Numerics::float3x2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransformMatrix(get(value))); -} - -template Windows::UI::Composition::Visual impl_ICompositionTarget::Root() const -{ - Windows::UI::Composition::Visual value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Root(put(value))); - return value; -} - -template void impl_ICompositionTarget::Root(const Windows::UI::Composition::Visual & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Root(get(value))); -} - -template Windows::UI::Composition::ColorKeyFrameAnimation impl_ICompositor::CreateColorKeyFrameAnimation() const -{ - Windows::UI::Composition::ColorKeyFrameAnimation result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateColorKeyFrameAnimation(put(result))); - return result; -} - -template Windows::UI::Composition::CompositionColorBrush impl_ICompositor::CreateColorBrush() const -{ - Windows::UI::Composition::CompositionColorBrush result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateColorBrush(put(result))); - return result; -} - -template Windows::UI::Composition::CompositionColorBrush impl_ICompositor::CreateColorBrush(const Windows::UI::Color & color) const -{ - Windows::UI::Composition::CompositionColorBrush result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateColorBrushWithColor(get(color), put(result))); - return result; -} - -template Windows::UI::Composition::ContainerVisual impl_ICompositor::CreateContainerVisual() const -{ - Windows::UI::Composition::ContainerVisual result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateContainerVisual(put(result))); - return result; -} - -template Windows::UI::Composition::CubicBezierEasingFunction impl_ICompositor::CreateCubicBezierEasingFunction(const Windows::Foundation::Numerics::float2 & controlPoint1, const Windows::Foundation::Numerics::float2 & controlPoint2) const -{ - Windows::UI::Composition::CubicBezierEasingFunction result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCubicBezierEasingFunction(get(controlPoint1), get(controlPoint2), put(result))); - return result; -} - -template Windows::UI::Composition::CompositionEffectFactory impl_ICompositor::CreateEffectFactory(const Windows::Graphics::Effects::IGraphicsEffect & graphicsEffect) const -{ - Windows::UI::Composition::CompositionEffectFactory result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateEffectFactory(get(graphicsEffect), put(result))); - return result; -} - -template Windows::UI::Composition::CompositionEffectFactory impl_ICompositor::CreateEffectFactory(const Windows::Graphics::Effects::IGraphicsEffect & graphicsEffect, const Windows::Foundation::Collections::IIterable & animatableProperties) const -{ - Windows::UI::Composition::CompositionEffectFactory result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateEffectFactoryWithProperties(get(graphicsEffect), get(animatableProperties), put(result))); - return result; -} - -template Windows::UI::Composition::ExpressionAnimation impl_ICompositor::CreateExpressionAnimation() const -{ - Windows::UI::Composition::ExpressionAnimation result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateExpressionAnimation(put(result))); - return result; -} - -template Windows::UI::Composition::ExpressionAnimation impl_ICompositor::CreateExpressionAnimation(hstring_ref expression) const -{ - Windows::UI::Composition::ExpressionAnimation result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateExpressionAnimationWithExpression(get(expression), put(result))); - return result; -} - -template Windows::UI::Composition::InsetClip impl_ICompositor::CreateInsetClip() const -{ - Windows::UI::Composition::InsetClip result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInsetClip(put(result))); - return result; -} - -template Windows::UI::Composition::InsetClip impl_ICompositor::CreateInsetClip(float leftInset, float topInset, float rightInset, float bottomInset) const -{ - Windows::UI::Composition::InsetClip result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInsetClipWithInsets(leftInset, topInset, rightInset, bottomInset, put(result))); - return result; -} - -template Windows::UI::Composition::LinearEasingFunction impl_ICompositor::CreateLinearEasingFunction() const -{ - Windows::UI::Composition::LinearEasingFunction result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateLinearEasingFunction(put(result))); - return result; -} - -template Windows::UI::Composition::CompositionPropertySet impl_ICompositor::CreatePropertySet() const -{ - Windows::UI::Composition::CompositionPropertySet result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePropertySet(put(result))); - return result; -} - -template Windows::UI::Composition::QuaternionKeyFrameAnimation impl_ICompositor::CreateQuaternionKeyFrameAnimation() const -{ - Windows::UI::Composition::QuaternionKeyFrameAnimation result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateQuaternionKeyFrameAnimation(put(result))); - return result; -} - -template Windows::UI::Composition::ScalarKeyFrameAnimation impl_ICompositor::CreateScalarKeyFrameAnimation() const -{ - Windows::UI::Composition::ScalarKeyFrameAnimation result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateScalarKeyFrameAnimation(put(result))); - return result; -} - -template Windows::UI::Composition::CompositionScopedBatch impl_ICompositor::CreateScopedBatch(Windows::UI::Composition::CompositionBatchTypes batchType) const -{ - Windows::UI::Composition::CompositionScopedBatch result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateScopedBatch(batchType, put(result))); - return result; -} - -template Windows::UI::Composition::SpriteVisual impl_ICompositor::CreateSpriteVisual() const -{ - Windows::UI::Composition::SpriteVisual result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateSpriteVisual(put(result))); - return result; -} - -template Windows::UI::Composition::CompositionSurfaceBrush impl_ICompositor::CreateSurfaceBrush() const -{ - Windows::UI::Composition::CompositionSurfaceBrush result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateSurfaceBrush(put(result))); - return result; -} - -template Windows::UI::Composition::CompositionSurfaceBrush impl_ICompositor::CreateSurfaceBrush(const Windows::UI::Composition::ICompositionSurface & surface) const -{ - Windows::UI::Composition::CompositionSurfaceBrush result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateSurfaceBrushWithSurface(get(surface), put(result))); - return result; -} - -template Windows::UI::Composition::CompositionTarget impl_ICompositor::CreateTargetForCurrentView() const -{ - Windows::UI::Composition::CompositionTarget result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTargetForCurrentView(put(result))); - return result; -} - -template Windows::UI::Composition::Vector2KeyFrameAnimation impl_ICompositor::CreateVector2KeyFrameAnimation() const -{ - Windows::UI::Composition::Vector2KeyFrameAnimation result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateVector2KeyFrameAnimation(put(result))); - return result; -} - -template Windows::UI::Composition::Vector3KeyFrameAnimation impl_ICompositor::CreateVector3KeyFrameAnimation() const -{ - Windows::UI::Composition::Vector3KeyFrameAnimation result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateVector3KeyFrameAnimation(put(result))); - return result; -} - -template Windows::UI::Composition::Vector4KeyFrameAnimation impl_ICompositor::CreateVector4KeyFrameAnimation() const -{ - Windows::UI::Composition::Vector4KeyFrameAnimation result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateVector4KeyFrameAnimation(put(result))); - return result; -} - -template Windows::UI::Composition::CompositionCommitBatch impl_ICompositor::GetCommitBatch(Windows::UI::Composition::CompositionBatchTypes batchType) const -{ - Windows::UI::Composition::CompositionCommitBatch result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCommitBatch(batchType, put(result))); - return result; -} - -template Windows::UI::Composition::AmbientLight impl_ICompositor2::CreateAmbientLight() const -{ - Windows::UI::Composition::AmbientLight result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAmbientLight(put(result))); - return result; -} - -template Windows::UI::Composition::CompositionAnimationGroup impl_ICompositor2::CreateAnimationGroup() const -{ - Windows::UI::Composition::CompositionAnimationGroup result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateAnimationGroup(put(result))); - return result; -} - -template Windows::UI::Composition::CompositionBackdropBrush impl_ICompositor2::CreateBackdropBrush() const -{ - Windows::UI::Composition::CompositionBackdropBrush result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBackdropBrush(put(result))); - return result; -} - -template Windows::UI::Composition::DistantLight impl_ICompositor2::CreateDistantLight() const -{ - Windows::UI::Composition::DistantLight result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDistantLight(put(result))); - return result; -} - -template Windows::UI::Composition::DropShadow impl_ICompositor2::CreateDropShadow() const -{ - Windows::UI::Composition::DropShadow result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateDropShadow(put(result))); - return result; -} - -template Windows::UI::Composition::ImplicitAnimationCollection impl_ICompositor2::CreateImplicitAnimationCollection() const -{ - Windows::UI::Composition::ImplicitAnimationCollection result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateImplicitAnimationCollection(put(result))); - return result; -} - -template Windows::UI::Composition::LayerVisual impl_ICompositor2::CreateLayerVisual() const -{ - Windows::UI::Composition::LayerVisual result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateLayerVisual(put(result))); - return result; -} - -template Windows::UI::Composition::CompositionMaskBrush impl_ICompositor2::CreateMaskBrush() const -{ - Windows::UI::Composition::CompositionMaskBrush result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMaskBrush(put(result))); - return result; -} - -template Windows::UI::Composition::CompositionNineGridBrush impl_ICompositor2::CreateNineGridBrush() const -{ - Windows::UI::Composition::CompositionNineGridBrush result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateNineGridBrush(put(result))); - return result; -} - -template Windows::UI::Composition::PointLight impl_ICompositor2::CreatePointLight() const -{ - Windows::UI::Composition::PointLight result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePointLight(put(result))); - return result; -} - -template Windows::UI::Composition::SpotLight impl_ICompositor2::CreateSpotLight() const -{ - Windows::UI::Composition::SpotLight result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateSpotLight(put(result))); - return result; -} - -template Windows::UI::Composition::StepEasingFunction impl_ICompositor2::CreateStepEasingFunction() const -{ - Windows::UI::Composition::StepEasingFunction result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateStepEasingFunction(put(result))); - return result; -} - -template Windows::UI::Composition::StepEasingFunction impl_ICompositor2::CreateStepEasingFunction(int32_t stepCount) const -{ - Windows::UI::Composition::StepEasingFunction result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateStepEasingFunctionWithStepCount(stepCount, put(result))); - return result; -} - -template Windows::UI::Composition::VisualCollection impl_IContainerVisual::Children() const -{ - Windows::UI::Composition::VisualCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Children(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float2 impl_ICubicBezierEasingFunction::ControlPoint1() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_ControlPoint1(put(value))); - return value; -} - -template Windows::Foundation::Numerics::float2 impl_ICubicBezierEasingFunction::ControlPoint2() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_ControlPoint2(put(value))); - return value; -} - -template Windows::UI::Color impl_IDistantLight::Color() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_Color(put(value))); - return value; -} - -template void impl_IDistantLight::Color(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Color(get(value))); -} - -template Windows::UI::Composition::Visual impl_IDistantLight::CoordinateSpace() const -{ - Windows::UI::Composition::Visual value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CoordinateSpace(put(value))); - return value; -} - -template void impl_IDistantLight::CoordinateSpace(const Windows::UI::Composition::Visual & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CoordinateSpace(get(value))); -} - -template Windows::Foundation::Numerics::float3 impl_IDistantLight::Direction() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Direction(put(value))); - return value; -} - -template void impl_IDistantLight::Direction(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Direction(get(value))); -} - -template float impl_IDropShadow::BlurRadius() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_BlurRadius(&value)); - return value; -} - -template void impl_IDropShadow::BlurRadius(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BlurRadius(value)); -} - -template Windows::UI::Color impl_IDropShadow::Color() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_Color(put(value))); - return value; -} - -template void impl_IDropShadow::Color(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Color(get(value))); -} - -template Windows::UI::Composition::CompositionBrush impl_IDropShadow::Mask() const -{ - Windows::UI::Composition::CompositionBrush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Mask(put(value))); - return value; -} - -template void impl_IDropShadow::Mask(const Windows::UI::Composition::CompositionBrush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mask(get(value))); -} - -template Windows::Foundation::Numerics::float3 impl_IDropShadow::Offset() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Offset(put(value))); - return value; -} - -template void impl_IDropShadow::Offset(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Offset(get(value))); -} - -template float impl_IDropShadow::Opacity() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Opacity(&value)); - return value; -} - -template void impl_IDropShadow::Opacity(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Opacity(value)); -} - -template hstring impl_IExpressionAnimation::Expression() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Expression(put(value))); - return value; -} - -template void impl_IExpressionAnimation::Expression(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Expression(get(value))); -} - -template float impl_IInsetClip::BottomInset() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_BottomInset(&value)); - return value; -} - -template void impl_IInsetClip::BottomInset(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BottomInset(value)); -} - -template float impl_IInsetClip::LeftInset() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_LeftInset(&value)); - return value; -} - -template void impl_IInsetClip::LeftInset(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LeftInset(value)); -} - -template float impl_IInsetClip::RightInset() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RightInset(&value)); - return value; -} - -template void impl_IInsetClip::RightInset(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RightInset(value)); -} - -template float impl_IInsetClip::TopInset() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_TopInset(&value)); - return value; -} - -template void impl_IInsetClip::TopInset(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TopInset(value)); -} - -template Windows::Foundation::TimeSpan impl_IKeyFrameAnimation::DelayTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_DelayTime(put(value))); - return value; -} - -template void impl_IKeyFrameAnimation::DelayTime(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DelayTime(get(value))); -} - -template Windows::Foundation::TimeSpan impl_IKeyFrameAnimation::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template void impl_IKeyFrameAnimation::Duration(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Duration(get(value))); -} - -template Windows::UI::Composition::AnimationIterationBehavior impl_IKeyFrameAnimation::IterationBehavior() const -{ - Windows::UI::Composition::AnimationIterationBehavior value {}; - check_hresult(static_cast(static_cast(*this))->get_IterationBehavior(&value)); - return value; -} - -template void impl_IKeyFrameAnimation::IterationBehavior(Windows::UI::Composition::AnimationIterationBehavior value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IterationBehavior(value)); -} - -template int32_t impl_IKeyFrameAnimation::IterationCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IterationCount(&value)); - return value; -} - -template void impl_IKeyFrameAnimation::IterationCount(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IterationCount(value)); -} - -template int32_t impl_IKeyFrameAnimation::KeyFrameCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyFrameCount(&value)); - return value; -} - -template Windows::UI::Composition::AnimationStopBehavior impl_IKeyFrameAnimation::StopBehavior() const -{ - Windows::UI::Composition::AnimationStopBehavior value {}; - check_hresult(static_cast(static_cast(*this))->get_StopBehavior(&value)); - return value; -} - -template void impl_IKeyFrameAnimation::StopBehavior(Windows::UI::Composition::AnimationStopBehavior value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StopBehavior(value)); -} - -template void impl_IKeyFrameAnimation::InsertExpressionKeyFrame(float normalizedProgressKey, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertExpressionKeyFrame(normalizedProgressKey, get(value))); -} - -template void impl_IKeyFrameAnimation::InsertExpressionKeyFrame(float normalizedProgressKey, hstring_ref value, const Windows::UI::Composition::CompositionEasingFunction & easingFunction) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertExpressionKeyFrameWithEasingFunction(normalizedProgressKey, get(value), get(easingFunction))); -} - -template Windows::UI::Composition::AnimationDirection impl_IKeyFrameAnimation2::Direction() const -{ - Windows::UI::Composition::AnimationDirection value {}; - check_hresult(static_cast(static_cast(*this))->get_Direction(&value)); - return value; -} - -template void impl_IKeyFrameAnimation2::Direction(Windows::UI::Composition::AnimationDirection value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Direction(value)); -} - -template Windows::UI::Composition::CompositionEffectBrush impl_ILayerVisual::Effect() const -{ - Windows::UI::Composition::CompositionEffectBrush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Effect(put(value))); - return value; -} - -template void impl_ILayerVisual::Effect(const Windows::UI::Composition::CompositionEffectBrush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Effect(get(value))); -} - -template Windows::UI::Color impl_IPointLight::Color() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_Color(put(value))); - return value; -} - -template void impl_IPointLight::Color(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Color(get(value))); -} - -template float impl_IPointLight::ConstantAttenuation() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_ConstantAttenuation(&value)); - return value; -} - -template void impl_IPointLight::ConstantAttenuation(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ConstantAttenuation(value)); -} - -template Windows::UI::Composition::Visual impl_IPointLight::CoordinateSpace() const -{ - Windows::UI::Composition::Visual value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CoordinateSpace(put(value))); - return value; -} - -template void impl_IPointLight::CoordinateSpace(const Windows::UI::Composition::Visual & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CoordinateSpace(get(value))); -} - -template float impl_IPointLight::LinearAttenuation() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_LinearAttenuation(&value)); - return value; -} - -template void impl_IPointLight::LinearAttenuation(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LinearAttenuation(value)); -} - -template Windows::Foundation::Numerics::float3 impl_IPointLight::Offset() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Offset(put(value))); - return value; -} - -template void impl_IPointLight::Offset(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Offset(get(value))); -} - -template float impl_IPointLight::QuadraticAttenuation() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_QuadraticAttenuation(&value)); - return value; -} - -template void impl_IPointLight::QuadraticAttenuation(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_QuadraticAttenuation(value)); -} - -template void impl_IQuaternionKeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, const Windows::Foundation::Numerics::quaternion & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrame(normalizedProgressKey, get(value))); -} - -template void impl_IQuaternionKeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, const Windows::Foundation::Numerics::quaternion & value, const Windows::UI::Composition::CompositionEasingFunction & easingFunction) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrameWithEasingFunction(normalizedProgressKey, get(value), get(easingFunction))); -} - -template Windows::UI::Composition::CompositionGraphicsDevice impl_IRenderingDeviceReplacedEventArgs::GraphicsDevice() const -{ - Windows::UI::Composition::CompositionGraphicsDevice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GraphicsDevice(put(value))); - return value; -} - -template void impl_IScalarKeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, float value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrame(normalizedProgressKey, value)); -} - -template void impl_IScalarKeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, float value, const Windows::UI::Composition::CompositionEasingFunction & easingFunction) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrameWithEasingFunction(normalizedProgressKey, value, get(easingFunction))); -} - -template float impl_ISpotLight::ConstantAttenuation() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_ConstantAttenuation(&value)); - return value; -} - -template void impl_ISpotLight::ConstantAttenuation(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ConstantAttenuation(value)); -} - -template Windows::UI::Composition::Visual impl_ISpotLight::CoordinateSpace() const -{ - Windows::UI::Composition::Visual value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CoordinateSpace(put(value))); - return value; -} - -template void impl_ISpotLight::CoordinateSpace(const Windows::UI::Composition::Visual & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CoordinateSpace(get(value))); -} - -template Windows::Foundation::Numerics::float3 impl_ISpotLight::Direction() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Direction(put(value))); - return value; -} - -template void impl_ISpotLight::Direction(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Direction(get(value))); -} - -template float impl_ISpotLight::InnerConeAngle() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_InnerConeAngle(&value)); - return value; -} - -template void impl_ISpotLight::InnerConeAngle(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InnerConeAngle(value)); -} - -template float impl_ISpotLight::InnerConeAngleInDegrees() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_InnerConeAngleInDegrees(&value)); - return value; -} - -template void impl_ISpotLight::InnerConeAngleInDegrees(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InnerConeAngleInDegrees(value)); -} - -template Windows::UI::Color impl_ISpotLight::InnerConeColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_InnerConeColor(put(value))); - return value; -} - -template void impl_ISpotLight::InnerConeColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InnerConeColor(get(value))); -} - -template float impl_ISpotLight::LinearAttenuation() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_LinearAttenuation(&value)); - return value; -} - -template void impl_ISpotLight::LinearAttenuation(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LinearAttenuation(value)); -} - -template Windows::Foundation::Numerics::float3 impl_ISpotLight::Offset() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Offset(put(value))); - return value; -} - -template void impl_ISpotLight::Offset(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Offset(get(value))); -} - -template float impl_ISpotLight::OuterConeAngle() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_OuterConeAngle(&value)); - return value; -} - -template void impl_ISpotLight::OuterConeAngle(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OuterConeAngle(value)); -} - -template float impl_ISpotLight::OuterConeAngleInDegrees() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_OuterConeAngleInDegrees(&value)); - return value; -} - -template void impl_ISpotLight::OuterConeAngleInDegrees(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OuterConeAngleInDegrees(value)); -} - -template Windows::UI::Color impl_ISpotLight::OuterConeColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_OuterConeColor(put(value))); - return value; -} - -template void impl_ISpotLight::OuterConeColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OuterConeColor(get(value))); -} - -template float impl_ISpotLight::QuadraticAttenuation() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_QuadraticAttenuation(&value)); - return value; -} - -template void impl_ISpotLight::QuadraticAttenuation(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_QuadraticAttenuation(value)); -} - -template Windows::UI::Composition::CompositionBrush impl_ISpriteVisual::Brush() const -{ - Windows::UI::Composition::CompositionBrush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Brush(put(value))); - return value; -} - -template void impl_ISpriteVisual::Brush(const Windows::UI::Composition::CompositionBrush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Brush(get(value))); -} - -template Windows::UI::Composition::CompositionShadow impl_ISpriteVisual2::Shadow() const -{ - Windows::UI::Composition::CompositionShadow value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Shadow(put(value))); - return value; -} - -template void impl_ISpriteVisual2::Shadow(const Windows::UI::Composition::CompositionShadow & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Shadow(get(value))); -} - -template int32_t impl_IStepEasingFunction::FinalStep() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FinalStep(&value)); - return value; -} - -template void impl_IStepEasingFunction::FinalStep(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FinalStep(value)); -} - -template int32_t impl_IStepEasingFunction::InitialStep() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_InitialStep(&value)); - return value; -} - -template void impl_IStepEasingFunction::InitialStep(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InitialStep(value)); -} - -template bool impl_IStepEasingFunction::IsFinalStepSingleFrame() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFinalStepSingleFrame(&value)); - return value; -} - -template void impl_IStepEasingFunction::IsFinalStepSingleFrame(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFinalStepSingleFrame(value)); -} - -template bool impl_IStepEasingFunction::IsInitialStepSingleFrame() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInitialStepSingleFrame(&value)); - return value; -} - -template void impl_IStepEasingFunction::IsInitialStepSingleFrame(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsInitialStepSingleFrame(value)); -} - -template int32_t impl_IStepEasingFunction::StepCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StepCount(&value)); - return value; -} - -template void impl_IStepEasingFunction::StepCount(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StepCount(value)); -} - -template void impl_IVector2KeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrame(normalizedProgressKey, get(value))); -} - -template void impl_IVector2KeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, const Windows::Foundation::Numerics::float2 & value, const Windows::UI::Composition::CompositionEasingFunction & easingFunction) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrameWithEasingFunction(normalizedProgressKey, get(value), get(easingFunction))); -} - -template void impl_IVector3KeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrame(normalizedProgressKey, get(value))); -} - -template void impl_IVector3KeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, const Windows::Foundation::Numerics::float3 & value, const Windows::UI::Composition::CompositionEasingFunction & easingFunction) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrameWithEasingFunction(normalizedProgressKey, get(value), get(easingFunction))); -} - -template void impl_IVector4KeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, const Windows::Foundation::Numerics::float4 & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrame(normalizedProgressKey, get(value))); -} - -template void impl_IVector4KeyFrameAnimation::InsertKeyFrame(float normalizedProgressKey, const Windows::Foundation::Numerics::float4 & value, const Windows::UI::Composition::CompositionEasingFunction & easingFunction) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertKeyFrameWithEasingFunction(normalizedProgressKey, get(value), get(easingFunction))); -} - -template Windows::Foundation::Numerics::float2 impl_IVisual::AnchorPoint() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_AnchorPoint(put(value))); - return value; -} - -template void impl_IVisual::AnchorPoint(const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AnchorPoint(get(value))); -} - -template Windows::UI::Composition::CompositionBackfaceVisibility impl_IVisual::BackfaceVisibility() const -{ - Windows::UI::Composition::CompositionBackfaceVisibility value {}; - check_hresult(static_cast(static_cast(*this))->get_BackfaceVisibility(&value)); - return value; -} - -template void impl_IVisual::BackfaceVisibility(Windows::UI::Composition::CompositionBackfaceVisibility value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackfaceVisibility(value)); -} - -template Windows::UI::Composition::CompositionBorderMode impl_IVisual::BorderMode() const -{ - Windows::UI::Composition::CompositionBorderMode value {}; - check_hresult(static_cast(static_cast(*this))->get_BorderMode(&value)); - return value; -} - -template void impl_IVisual::BorderMode(Windows::UI::Composition::CompositionBorderMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BorderMode(value)); -} - -template Windows::Foundation::Numerics::float3 impl_IVisual::CenterPoint() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_CenterPoint(put(value))); - return value; -} - -template void impl_IVisual::CenterPoint(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CenterPoint(get(value))); -} - -template Windows::UI::Composition::CompositionClip impl_IVisual::Clip() const -{ - Windows::UI::Composition::CompositionClip value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Clip(put(value))); - return value; -} - -template void impl_IVisual::Clip(const Windows::UI::Composition::CompositionClip & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Clip(get(value))); -} - -template Windows::UI::Composition::CompositionCompositeMode impl_IVisual::CompositeMode() const -{ - Windows::UI::Composition::CompositionCompositeMode value {}; - check_hresult(static_cast(static_cast(*this))->get_CompositeMode(&value)); - return value; -} - -template void impl_IVisual::CompositeMode(Windows::UI::Composition::CompositionCompositeMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CompositeMode(value)); -} - -template bool impl_IVisual::IsVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVisible(&value)); - return value; -} - -template void impl_IVisual::IsVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsVisible(value)); -} - -template Windows::Foundation::Numerics::float3 impl_IVisual::Offset() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Offset(put(value))); - return value; -} - -template void impl_IVisual::Offset(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Offset(get(value))); -} - -template float impl_IVisual::Opacity() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Opacity(&value)); - return value; -} - -template void impl_IVisual::Opacity(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Opacity(value)); -} - -template Windows::Foundation::Numerics::quaternion impl_IVisual::Orientation() const -{ - Windows::Foundation::Numerics::quaternion value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(put(value))); - return value; -} - -template void impl_IVisual::Orientation(const Windows::Foundation::Numerics::quaternion & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(get(value))); -} - -template Windows::UI::Composition::ContainerVisual impl_IVisual::Parent() const -{ - Windows::UI::Composition::ContainerVisual value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Parent(put(value))); - return value; -} - -template float impl_IVisual::RotationAngle() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RotationAngle(&value)); - return value; -} - -template void impl_IVisual::RotationAngle(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RotationAngle(value)); -} - -template float impl_IVisual::RotationAngleInDegrees() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RotationAngleInDegrees(&value)); - return value; -} - -template void impl_IVisual::RotationAngleInDegrees(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RotationAngleInDegrees(value)); -} - -template Windows::Foundation::Numerics::float3 impl_IVisual::RotationAxis() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_RotationAxis(put(value))); - return value; -} - -template void impl_IVisual::RotationAxis(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RotationAxis(get(value))); -} - -template Windows::Foundation::Numerics::float3 impl_IVisual::Scale() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Scale(put(value))); - return value; -} - -template void impl_IVisual::Scale(const Windows::Foundation::Numerics::float3 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Scale(get(value))); -} - -template Windows::Foundation::Numerics::float2 impl_IVisual::Size() const -{ - Windows::Foundation::Numerics::float2 value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(put(value))); - return value; -} - -template void impl_IVisual::Size(const Windows::Foundation::Numerics::float2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Size(get(value))); -} - -template Windows::Foundation::Numerics::float4x4 impl_IVisual::TransformMatrix() const -{ - Windows::Foundation::Numerics::float4x4 value {}; - check_hresult(static_cast(static_cast(*this))->get_TransformMatrix(put(value))); - return value; -} - -template void impl_IVisual::TransformMatrix(const Windows::Foundation::Numerics::float4x4 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransformMatrix(get(value))); -} - -template int32_t impl_IVisualCollection::Count() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Count(&value)); - return value; -} - -template void impl_IVisualCollection::InsertAbove(const Windows::UI::Composition::Visual & newChild, const Windows::UI::Composition::Visual & sibling) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertAbove(get(newChild), get(sibling))); -} - -template void impl_IVisualCollection::InsertAtBottom(const Windows::UI::Composition::Visual & newChild) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertAtBottom(get(newChild))); -} - -template void impl_IVisualCollection::InsertAtTop(const Windows::UI::Composition::Visual & newChild) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertAtTop(get(newChild))); -} - -template void impl_IVisualCollection::InsertBelow(const Windows::UI::Composition::Visual & newChild, const Windows::UI::Composition::Visual & sibling) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertBelow(get(newChild), get(sibling))); -} - -template void impl_IVisualCollection::Remove(const Windows::UI::Composition::Visual & child) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Remove(get(child))); -} - -template void impl_IVisualCollection::RemoveAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveAll()); -} - -template int32_t impl_IVisualUnorderedCollection::Count() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Count(&value)); - return value; -} - -template void impl_IVisualUnorderedCollection::Add(const Windows::UI::Composition::Visual & newVisual) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Add(get(newVisual))); -} - -template void impl_IVisualUnorderedCollection::Remove(const Windows::UI::Composition::Visual & visual) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Remove(get(visual))); -} - -template void impl_IVisualUnorderedCollection::RemoveAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveAll()); -} - -inline CompositionEffectSourceParameter::CompositionEffectSourceParameter(hstring_ref name) : - CompositionEffectSourceParameter(get_activation_factory().Create(name)) -{} - -inline Compositor::Compositor() : - Compositor(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Core.AnimationMetrics.h b/10.0.14393.0/winrt/Windows.UI.Core.AnimationMetrics.h deleted file mode 100644 index d89439810..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Core.AnimationMetrics.h +++ /dev/null @@ -1,410 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Core.AnimationMetrics.3.h" -#include "Windows.UI.Core.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Animations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Animations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StaggerDelay(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StaggerDelay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StaggerDelayFactor(float * value) noexcept override - { - try - { - *value = detach(this->shim().StaggerDelayFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DelayLimit(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DelayLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZOrder(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ZOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(Windows::UI::Core::AnimationMetrics::AnimationEffect effect, Windows::UI::Core::AnimationMetrics::AnimationEffectTarget target, abi_arg_out animation) noexcept override - { - try - { - *animation = detach(this->shim().CreateInstance(effect, target)); - return S_OK; - } - catch (...) - { - *animation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InitialOpacity(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InitialOpacity()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FinalOpacity(float * value) noexcept override - { - try - { - *value = detach(this->shim().FinalOpacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::UI::Core::AnimationMetrics::PropertyAnimationType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Delay(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Delay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Duration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Duration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Control1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Control1()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Control2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Control2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InitialScaleX(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InitialScaleX()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InitialScaleY(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InitialScaleY()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FinalScaleX(float * value) noexcept override - { - try - { - *value = detach(this->shim().FinalScaleX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FinalScaleY(float * value) noexcept override - { - try - { - *value = detach(this->shim().FinalScaleY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NormalizedOrigin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NormalizedOrigin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Core::AnimationMetrics { - -template Windows::UI::Core::AnimationMetrics::PropertyAnimationType impl_IPropertyAnimation::Type() const -{ - Windows::UI::Core::AnimationMetrics::PropertyAnimationType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IPropertyAnimation::Delay() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Delay(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IPropertyAnimation::Duration() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Duration(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IPropertyAnimation::Control1() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Control1(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IPropertyAnimation::Control2() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Control2(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IScaleAnimation::InitialScaleX() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InitialScaleX(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IScaleAnimation::InitialScaleY() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InitialScaleY(put(value))); - return value; -} - -template float impl_IScaleAnimation::FinalScaleX() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_FinalScaleX(&value)); - return value; -} - -template float impl_IScaleAnimation::FinalScaleY() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_FinalScaleY(&value)); - return value; -} - -template Windows::Foundation::Point impl_IScaleAnimation::NormalizedOrigin() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_NormalizedOrigin(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IOpacityAnimation::InitialOpacity() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InitialOpacity(put(value))); - return value; -} - -template float impl_IOpacityAnimation::FinalOpacity() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_FinalOpacity(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IAnimationDescription::Animations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Animations(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IAnimationDescription::StaggerDelay() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_StaggerDelay(put(value))); - return value; -} - -template float impl_IAnimationDescription::StaggerDelayFactor() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_StaggerDelayFactor(&value)); - return value; -} - -template Windows::Foundation::TimeSpan impl_IAnimationDescription::DelayLimit() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_DelayLimit(put(value))); - return value; -} - -template int32_t impl_IAnimationDescription::ZOrder() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ZOrder(&value)); - return value; -} - -template Windows::UI::Core::AnimationMetrics::AnimationDescription impl_IAnimationDescriptionFactory::CreateInstance(Windows::UI::Core::AnimationMetrics::AnimationEffect effect, Windows::UI::Core::AnimationMetrics::AnimationEffectTarget target) const -{ - Windows::UI::Core::AnimationMetrics::AnimationDescription animation { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(effect, target, put(animation))); - return animation; -} - -inline AnimationDescription::AnimationDescription(Windows::UI::Core::AnimationMetrics::AnimationEffect effect, Windows::UI::Core::AnimationMetrics::AnimationEffectTarget target) : - AnimationDescription(get_activation_factory().CreateInstance(effect, target)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Core.h b/10.0.14393.0/winrt/Windows.UI.Core.h deleted file mode 100644 index d9f176cc0..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Core.h +++ /dev/null @@ -1,4325 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.System.3.h" -#include "internal/Windows.UI.Input.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Popups.3.h" -#include "internal/Windows.UI.Core.3.h" -#include "Windows.UI.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::UI::Core { - -template DispatchedHandler::DispatchedHandler(L lambda) : - DispatchedHandler(impl::make_delegate, DispatchedHandler>(std::forward(lambda))) -{} - -template DispatchedHandler::DispatchedHandler(F * function) : - DispatchedHandler([=](auto && ... args) { function(args ...); }) -{} - -template DispatchedHandler::DispatchedHandler(O * object, M method) : - DispatchedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void DispatchedHandler::operator()() const -{ - check_hresult((*this)->abi_Invoke()); -} - -template IdleDispatchedHandler::IdleDispatchedHandler(L lambda) : - IdleDispatchedHandler(impl::make_delegate, IdleDispatchedHandler>(std::forward(lambda))) -{} - -template IdleDispatchedHandler::IdleDispatchedHandler(F * function) : - IdleDispatchedHandler([=](auto && ... args) { function(args ...); }) -{} - -template IdleDispatchedHandler::IdleDispatchedHandler(O * object, M method) : - IdleDispatchedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void IdleDispatchedHandler::operator()(const Windows::UI::Core::IdleDispatchedHandlerArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(e))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EventType(Windows::UI::Core::CoreAcceleratorKeyEventType * value) noexcept override - { - try - { - *value = detach(this->shim().EventType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VirtualKey(Windows::System::VirtualKey * value) noexcept override - { - try - { - *value = detach(this->shim().VirtualKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyStatus(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AutomationProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutomationProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutomationProvider(abi_arg_in value) noexcept override - { - try - { - this->shim().AutomationProvider(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_KeyCode(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().KeyCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyStatus(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SearchBounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SearchBounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClosestInteractiveBounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClosestInteractiveBounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClosestInteractiveBounds(abi_arg_in value) noexcept override - { - try - { - this->shim().ClosestInteractiveBounds(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_AcceleratorKeyActivated(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().AcceleratorKeyActivated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AcceleratorKeyActivated(event_token cookie) noexcept override - { - try - { - this->shim().AcceleratorKeyActivated(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ClosestInteractiveBoundsRequested(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().ClosestInteractiveBoundsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ClosestInteractiveBoundsRequested(event_token cookie) noexcept override - { - try - { - this->shim().ClosestInteractiveBoundsRequested(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HasFocus(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasFocus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_GotFocus(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().GotFocus(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_GotFocus(event_token cookie) noexcept override - { - try - { - this->shim().GotFocus(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LostFocus(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().LostFocus(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LostFocus(event_token cookie) noexcept override - { - try - { - this->shim().LostFocus(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::UI::Core::CoreCursorType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCursor(Windows::UI::Core::CoreCursorType type, uint32_t id, abi_arg_out cursor) noexcept override - { - try - { - *cursor = detach(this->shim().CreateCursor(type, id)); - return S_OK; - } - catch (...) - { - *cursor = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HasThreadAccess(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasThreadAccess()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessEvents(Windows::UI::Core::CoreProcessEventsOption options) noexcept override - { - try - { - this->shim().ProcessEvents(options); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RunAsync(Windows::UI::Core::CoreDispatcherPriority priority, abi_arg_in agileCallback, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().RunAsync(priority, *reinterpret_cast(&agileCallback))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RunIdleAsync(abi_arg_in agileCallback, abi_arg_out asyncAction) noexcept override - { - try - { - *asyncAction = detach(this->shim().RunIdleAsync(*reinterpret_cast(&agileCallback))); - return S_OK; - } - catch (...) - { - *asyncAction = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryRunAsync(Windows::UI::Core::CoreDispatcherPriority priority, abi_arg_in agileCallback, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().TryRunAsync(priority, *reinterpret_cast(&agileCallback))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryRunIdleAsync(abi_arg_in agileCallback, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().TryRunIdleAsync(*reinterpret_cast(&agileCallback))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentPriority(Windows::UI::Core::CoreDispatcherPriority * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentPriority()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CurrentPriority(Windows::UI::Core::CoreDispatcherPriority value) noexcept override - { - try - { - this->shim().CurrentPriority(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShouldYield(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShouldYield()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShouldYieldToPriority(Windows::UI::Core::CoreDispatcherPriority priority, bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShouldYield(priority)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopProcessEvents() noexcept override - { - try - { - this->shim().StopProcessEvents(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Dispatcher(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Dispatcher()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInputEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInputEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsInputEnabled(bool value) noexcept override - { - try - { - this->shim().IsInputEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_InputEnabled(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().InputEnabled(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_InputEnabled(event_token cookie) noexcept override - { - try - { - this->shim().InputEnabled(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentKeyState(Windows::System::VirtualKey virtualKey, Windows::UI::Core::CoreVirtualKeyStates * KeyState) noexcept override - { - try - { - *KeyState = detach(this->shim().GetCurrentKeyState(virtualKey)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CharacterReceived(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().CharacterReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CharacterReceived(event_token cookie) noexcept override - { - try - { - this->shim().CharacterReceived(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_KeyDown(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().KeyDown(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_KeyDown(event_token cookie) noexcept override - { - try - { - this->shim().KeyDown(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_KeyUp(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().KeyUp(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_KeyUp(event_token cookie) noexcept override - { - try - { - this->shim().KeyUp(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentKeyEventDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentKeyEventDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ReleasePointerCapture() noexcept override - { - try - { - this->shim().ReleasePointerCapture(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPointerCapture() noexcept override - { - try - { - this->shim().SetPointerCapture(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasCapture(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasCapture()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerCursor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerCursor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PointerCursor(abi_arg_in value) noexcept override - { - try - { - this->shim().PointerCursor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerCaptureLost(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerCaptureLost(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerCaptureLost(event_token cookie) noexcept override - { - try - { - this->shim().PointerCaptureLost(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerEntered(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerEntered(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerEntered(event_token cookie) noexcept override - { - try - { - this->shim().PointerEntered(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerExited(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerExited(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerExited(event_token cookie) noexcept override - { - try - { - this->shim().PointerExited(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerMoved(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerMoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerMoved(event_token cookie) noexcept override - { - try - { - this->shim().PointerMoved(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerPressed(event_token cookie) noexcept override - { - try - { - this->shim().PointerPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerReleased(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerReleased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerReleased(event_token cookie) noexcept override - { - try - { - this->shim().PointerReleased(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerWheelChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerWheelChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerWheelChanged(event_token cookie) noexcept override - { - try - { - this->shim().PointerWheelChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_PointerRoutedAway(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerRoutedAway(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerRoutedAway(event_token cookie) noexcept override - { - try - { - this->shim().PointerRoutedAway(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerRoutedTo(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerRoutedTo(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerRoutedTo(event_token cookie) noexcept override - { - try - { - this->shim().PointerRoutedTo(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerRoutedReleased(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerRoutedReleased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerRoutedReleased(event_token cookie) noexcept override - { - try - { - this->shim().PointerRoutedReleased(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_TouchHitTesting(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().TouchHitTesting(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TouchHitTesting(event_token cookie) noexcept override - { - try - { - this->shim().TouchHitTesting(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AutomationHostProvider(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutomationHostProvider()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Dispatcher(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Dispatcher()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlowDirection(Windows::UI::Core::CoreWindowFlowDirection * value) noexcept override - { - try - { - *value = detach(this->shim().FlowDirection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FlowDirection(Windows::UI::Core::CoreWindowFlowDirection value) noexcept override - { - try - { - this->shim().FlowDirection(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInputEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInputEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsInputEnabled(bool value) noexcept override - { - try - { - this->shim().IsInputEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerCursor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerCursor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PointerCursor(abi_arg_in value) noexcept override - { - try - { - this->shim().PointerCursor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Visible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Visible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Activate() noexcept override - { - try - { - this->shim().Activate(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Close() noexcept override - { - try - { - this->shim().Close(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAsyncKeyState(Windows::System::VirtualKey virtualKey, Windows::UI::Core::CoreVirtualKeyStates * KeyState) noexcept override - { - try - { - *KeyState = detach(this->shim().GetAsyncKeyState(virtualKey)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetKeyState(Windows::System::VirtualKey virtualKey, Windows::UI::Core::CoreVirtualKeyStates * KeyState) noexcept override - { - try - { - *KeyState = detach(this->shim().GetKeyState(virtualKey)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ReleasePointerCapture() noexcept override - { - try - { - this->shim().ReleasePointerCapture(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPointerCapture() noexcept override - { - try - { - this->shim().SetPointerCapture(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Activated(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().Activated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Activated(event_token cookie) noexcept override - { - try - { - this->shim().Activated(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_AutomationProviderRequested(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().AutomationProviderRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_AutomationProviderRequested(event_token cookie) noexcept override - { - try - { - this->shim().AutomationProviderRequested(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CharacterReceived(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().CharacterReceived(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CharacterReceived(event_token cookie) noexcept override - { - try - { - this->shim().CharacterReceived(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closed(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().Closed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token cookie) noexcept override - { - try - { - this->shim().Closed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_InputEnabled(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().InputEnabled(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_InputEnabled(event_token cookie) noexcept override - { - try - { - this->shim().InputEnabled(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_KeyDown(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().KeyDown(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_KeyDown(event_token cookie) noexcept override - { - try - { - this->shim().KeyDown(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_KeyUp(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().KeyUp(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_KeyUp(event_token cookie) noexcept override - { - try - { - this->shim().KeyUp(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerCaptureLost(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerCaptureLost(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerCaptureLost(event_token cookie) noexcept override - { - try - { - this->shim().PointerCaptureLost(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerEntered(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerEntered(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerEntered(event_token cookie) noexcept override - { - try - { - this->shim().PointerEntered(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerExited(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerExited(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerExited(event_token cookie) noexcept override - { - try - { - this->shim().PointerExited(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerMoved(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerMoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerMoved(event_token cookie) noexcept override - { - try - { - this->shim().PointerMoved(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerPressed(event_token cookie) noexcept override - { - try - { - this->shim().PointerPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerReleased(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerReleased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerReleased(event_token cookie) noexcept override - { - try - { - this->shim().PointerReleased(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TouchHitTesting(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().TouchHitTesting(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TouchHitTesting(event_token cookie) noexcept override - { - try - { - this->shim().TouchHitTesting(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerWheelChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerWheelChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerWheelChanged(event_token cookie) noexcept override - { - try - { - this->shim().PointerWheelChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SizeChanged(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().SizeChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SizeChanged(event_token cookie) noexcept override - { - try - { - this->shim().SizeChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VisibilityChanged(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().VisibilityChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VisibilityChanged(event_token cookie) noexcept override - { - try - { - this->shim().VisibilityChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_PointerPosition(abi_arg_in value) noexcept override - { - try - { - this->shim().PointerPosition(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ClosestInteractiveBoundsRequested(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().ClosestInteractiveBoundsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ClosestInteractiveBoundsRequested(event_token cookie) noexcept override - { - try - { - this->shim().ClosestInteractiveBoundsRequested(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentKeyEventDeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetCurrentKeyEventDeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Showing(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().Showing(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Showing(event_token cookie) noexcept override - { - try - { - this->shim().Showing(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInteractionDelayed(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IsInteractionDelayed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsInteractionDelayed(int32_t value) noexcept override - { - try - { - this->shim().IsInteractionDelayed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Commands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Commands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultCommandIndex(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultCommandIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultCommandIndex(uint32_t value) noexcept override - { - try - { - this->shim().DefaultCommandIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CancelCommandIndex(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CancelCommandIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CancelCommandIndex(uint32_t value) noexcept override - { - try - { - this->shim().CancelCommandIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackButtonCommand(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackButtonCommand()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackButtonCommand(abi_arg_in value) noexcept override - { - try - { - this->shim().BackButtonCommand(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ShowAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithTitle(abi_arg_in title, abi_arg_out coreWindowDialog) noexcept override - { - try - { - *coreWindowDialog = detach(this->shim().CreateWithTitle(*reinterpret_cast(&title))); - return S_OK; - } - catch (...) - { - *coreWindowDialog = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Showing(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().Showing(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Showing(event_token cookie) noexcept override - { - try - { - this->shim().Showing(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInteractionDelayed(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().IsInteractionDelayed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsInteractionDelayed(int32_t value) noexcept override - { - try - { - this->shim().IsInteractionDelayed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Commands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Commands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultCommandIndex(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultCommandIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultCommandIndex(uint32_t value) noexcept override - { - try - { - this->shim().DefaultCommandIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackButtonCommand(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackButtonCommand()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackButtonCommand(abi_arg_in value) noexcept override - { - try - { - this->shim().BackButtonCommand(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAsync(abi_arg_out> asyncInfo) noexcept override - { - try - { - *asyncInfo = detach(this->shim().ShowAsync()); - return S_OK; - } - catch (...) - { - *asyncInfo = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in position, abi_arg_out coreWindowFlyout) noexcept override - { - try - { - *coreWindowFlyout = detach(this->shim().Create(*reinterpret_cast(&position))); - return S_OK; - } - catch (...) - { - *coreWindowFlyout = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithTitle(abi_arg_in position, abi_arg_in title, abi_arg_out coreWindowFlyout) noexcept override - { - try - { - *coreWindowFlyout = detach(this->shim().CreateWithTitle(*reinterpret_cast(&position), *reinterpret_cast(&title))); - return S_OK; - } - catch (...) - { - *coreWindowFlyout = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetDesiredSize(abi_arg_in value) noexcept override - { - try - { - this->shim().SetDesiredSize(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_NotifyLayoutCompleted() noexcept override - { - try - { - this->shim().NotifyLayoutCompleted(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ShouldWaitForLayoutCompletion(bool value) noexcept override - { - try - { - this->shim().ShouldWaitForLayoutCompletion(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShouldWaitForLayoutCompletion(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShouldWaitForLayoutCompletion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out CoreWindowResizeManager) noexcept override - { - try - { - *CoreWindowResizeManager = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *CoreWindowResizeManager = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentThread(abi_arg_out ppWindow) noexcept override - { - try - { - *ppWindow = detach(this->shim().GetForCurrentThread()); - return S_OK; - } - catch (...) - { - *ppWindow = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsDispatcherIdle(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDispatcherIdle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Initialize(abi_arg_in window) noexcept override - { - try - { - this->shim().Initialize(*reinterpret_cast(&window)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InputEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().InputEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VirtualKey(Windows::System::VirtualKey * value) noexcept override - { - try - { - *value = detach(this->shim().VirtualKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyStatus(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().KeyStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DeviceId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeviceId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentPoint()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyModifiers(Windows::System::VirtualKeyModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().KeyModifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIntermediatePoints(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetIntermediatePoints()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_BackRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BackRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BackRequested(event_token token) noexcept override - { - try - { - this->shim().BackRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AppViewBackButtonVisibility(Windows::UI::Core::AppViewBackButtonVisibility * value) noexcept override - { - try - { - *value = detach(this->shim().AppViewBackButtonVisibility()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AppViewBackButtonVisibility(Windows::UI::Core::AppViewBackButtonVisibility value) noexcept override - { - try - { - this->shim().AppViewBackButtonVisibility(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out loader) noexcept override - { - try - { - *loader = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *loader = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ProximityEvaluation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProximityEvaluation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProximityEvaluation(abi_arg_in value) noexcept override - { - try - { - this->shim().ProximityEvaluation(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Point(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Point()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BoundingBox(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BoundingBox()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EvaluateProximityToRect(abi_arg_in controlBoundingBox, abi_arg_out proximityEvaluation) noexcept override - { - try - { - *proximityEvaluation = detach(this->shim().EvaluateProximity(*reinterpret_cast(&controlBoundingBox))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EvaluateProximityToPolygon(uint32_t __controlVerticesSize, abi_arg_in * controlVertices, abi_arg_out proximityEvaluation) noexcept override - { - try - { - *proximityEvaluation = detach(this->shim().EvaluateProximity(*reinterpret_cast(&controlVertices))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Visible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Visible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WindowActivationState(Windows::UI::Core::CoreWindowActivationState * value) noexcept override - { - try - { - *value = detach(this->shim().WindowActivationState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Size(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Core { - -template bool impl_ICoreWindowEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_ICoreWindowEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::IInspectable impl_IAutomationProviderRequestedEventArgs::AutomationProvider() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_AutomationProvider(put(value))); - return value; -} - -template void impl_IAutomationProviderRequestedEventArgs::AutomationProvider(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutomationProvider(get(value))); -} - -template uint32_t impl_ICharacterReceivedEventArgs::KeyCode() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyCode(&value)); - return value; -} - -template Windows::UI::Core::CorePhysicalKeyStatus impl_ICharacterReceivedEventArgs::KeyStatus() const -{ - Windows::UI::Core::CorePhysicalKeyStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyStatus(put(value))); - return value; -} - -template bool impl_IInputEnabledEventArgs::InputEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_InputEnabled(&value)); - return value; -} - -template Windows::System::VirtualKey impl_IKeyEventArgs::VirtualKey() const -{ - Windows::System::VirtualKey value {}; - check_hresult(static_cast(static_cast(*this))->get_VirtualKey(&value)); - return value; -} - -template Windows::UI::Core::CorePhysicalKeyStatus impl_IKeyEventArgs::KeyStatus() const -{ - Windows::UI::Core::CorePhysicalKeyStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyStatus(put(value))); - return value; -} - -template hstring impl_IKeyEventArgs2::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template Windows::UI::Input::PointerPoint impl_IPointerEventArgs::CurrentPoint() const -{ - Windows::UI::Input::PointerPoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentPoint(put(value))); - return value; -} - -template Windows::System::VirtualKeyModifiers impl_IPointerEventArgs::KeyModifiers() const -{ - Windows::System::VirtualKeyModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyModifiers(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IPointerEventArgs::GetIntermediatePoints() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->abi_GetIntermediatePoints(put(value))); - return value; -} - -template Windows::UI::Core::CoreProximityEvaluation impl_ITouchHitTestingEventArgs::ProximityEvaluation() const -{ - Windows::UI::Core::CoreProximityEvaluation value {}; - check_hresult(static_cast(static_cast(*this))->get_ProximityEvaluation(put(value))); - return value; -} - -template void impl_ITouchHitTestingEventArgs::ProximityEvaluation(const Windows::UI::Core::CoreProximityEvaluation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProximityEvaluation(get(value))); -} - -template Windows::Foundation::Point impl_ITouchHitTestingEventArgs::Point() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Point(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_ITouchHitTestingEventArgs::BoundingBox() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_BoundingBox(put(value))); - return value; -} - -template Windows::UI::Core::CoreProximityEvaluation impl_ITouchHitTestingEventArgs::EvaluateProximity(const Windows::Foundation::Rect & controlBoundingBox) const -{ - Windows::UI::Core::CoreProximityEvaluation proximityEvaluation {}; - check_hresult(static_cast(static_cast(*this))->abi_EvaluateProximityToRect(get(controlBoundingBox), put(proximityEvaluation))); - return proximityEvaluation; -} - -template Windows::UI::Core::CoreProximityEvaluation impl_ITouchHitTestingEventArgs::EvaluateProximity(array_ref controlVertices) const -{ - Windows::UI::Core::CoreProximityEvaluation proximityEvaluation {}; - check_hresult(static_cast(static_cast(*this))->abi_EvaluateProximityToPolygon(controlVertices.size(), get(controlVertices), put(proximityEvaluation))); - return proximityEvaluation; -} - -template Windows::Foundation::Point impl_IClosestInteractiveBoundsRequestedEventArgs::PointerPosition() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerPosition(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IClosestInteractiveBoundsRequestedEventArgs::SearchBounds() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_SearchBounds(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IClosestInteractiveBoundsRequestedEventArgs::ClosestInteractiveBounds() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_ClosestInteractiveBounds(put(value))); - return value; -} - -template void impl_IClosestInteractiveBoundsRequestedEventArgs::ClosestInteractiveBounds(const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ClosestInteractiveBounds(get(value))); -} - -template Windows::UI::Core::CoreWindowActivationState impl_IWindowActivatedEventArgs::WindowActivationState() const -{ - Windows::UI::Core::CoreWindowActivationState value {}; - check_hresult(static_cast(static_cast(*this))->get_WindowActivationState(&value)); - return value; -} - -template Windows::Foundation::Size impl_IWindowSizeChangedEventArgs::Size() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(put(value))); - return value; -} - -template bool impl_IVisibilityChangedEventArgs::Visible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Visible(&value)); - return value; -} - -template Windows::IInspectable impl_ICoreWindow::AutomationHostProvider() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_AutomationHostProvider(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_ICoreWindow::Bounds() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_Bounds(put(value))); - return value; -} - -template Windows::Foundation::Collections::IPropertySet impl_ICoreWindow::CustomProperties() const -{ - Windows::Foundation::Collections::IPropertySet value; - check_hresult(static_cast(static_cast(*this))->get_CustomProperties(put(value))); - return value; -} - -template Windows::UI::Core::CoreDispatcher impl_ICoreWindow::Dispatcher() const -{ - Windows::UI::Core::CoreDispatcher value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Dispatcher(put(value))); - return value; -} - -template Windows::UI::Core::CoreWindowFlowDirection impl_ICoreWindow::FlowDirection() const -{ - Windows::UI::Core::CoreWindowFlowDirection value {}; - check_hresult(static_cast(static_cast(*this))->get_FlowDirection(&value)); - return value; -} - -template void impl_ICoreWindow::FlowDirection(Windows::UI::Core::CoreWindowFlowDirection value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FlowDirection(value)); -} - -template bool impl_ICoreWindow::IsInputEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInputEnabled(&value)); - return value; -} - -template void impl_ICoreWindow::IsInputEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsInputEnabled(value)); -} - -template Windows::UI::Core::CoreCursor impl_ICoreWindow::PointerCursor() const -{ - Windows::UI::Core::CoreCursor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PointerCursor(put(value))); - return value; -} - -template void impl_ICoreWindow::PointerCursor(const Windows::UI::Core::CoreCursor & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PointerCursor(get(value))); -} - -template Windows::Foundation::Point impl_ICoreWindow::PointerPosition() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerPosition(put(value))); - return value; -} - -template bool impl_ICoreWindow::Visible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Visible(&value)); - return value; -} - -template void impl_ICoreWindow::Activate() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Activate()); -} - -template void impl_ICoreWindow::Close() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Close()); -} - -template Windows::UI::Core::CoreVirtualKeyStates impl_ICoreWindow::GetAsyncKeyState(Windows::System::VirtualKey virtualKey) const -{ - Windows::UI::Core::CoreVirtualKeyStates KeyState {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAsyncKeyState(virtualKey, &KeyState)); - return KeyState; -} - -template Windows::UI::Core::CoreVirtualKeyStates impl_ICoreWindow::GetKeyState(Windows::System::VirtualKey virtualKey) const -{ - Windows::UI::Core::CoreVirtualKeyStates KeyState {}; - check_hresult(static_cast(static_cast(*this))->abi_GetKeyState(virtualKey, &KeyState)); - return KeyState; -} - -template void impl_ICoreWindow::ReleasePointerCapture() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReleasePointerCapture()); -} - -template void impl_ICoreWindow::SetPointerCapture() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPointerCapture()); -} - -template event_token impl_ICoreWindow::Activated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Activated(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreWindow::Activated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_Activated, Activated(handler)); -} - -template void impl_ICoreWindow::Activated(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Activated(cookie)); -} - -template event_token impl_ICoreWindow::AutomationProviderRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_AutomationProviderRequested(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWindow::AutomationProviderRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_AutomationProviderRequested, AutomationProviderRequested(handler)); -} - -template void impl_ICoreWindow::AutomationProviderRequested(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AutomationProviderRequested(cookie)); -} - -template event_token impl_ICoreWindow::CharacterReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_CharacterReceived(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreWindow::CharacterReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_CharacterReceived, CharacterReceived(handler)); -} - -template void impl_ICoreWindow::CharacterReceived(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CharacterReceived(cookie)); -} - -template event_token impl_ICoreWindow::Closed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreWindow::Closed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_Closed, Closed(handler)); -} - -template void impl_ICoreWindow::Closed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(cookie)); -} - -template event_token impl_ICoreWindow::InputEnabled(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_InputEnabled(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreWindow::InputEnabled(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_InputEnabled, InputEnabled(handler)); -} - -template void impl_ICoreWindow::InputEnabled(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_InputEnabled(cookie)); -} - -template event_token impl_ICoreWindow::KeyDown(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_KeyDown(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreWindow::KeyDown(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_KeyDown, KeyDown(handler)); -} - -template void impl_ICoreWindow::KeyDown(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_KeyDown(cookie)); -} - -template event_token impl_ICoreWindow::KeyUp(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_KeyUp(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreWindow::KeyUp(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_KeyUp, KeyUp(handler)); -} - -template void impl_ICoreWindow::KeyUp(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_KeyUp(cookie)); -} - -template event_token impl_ICoreWindow::PointerCaptureLost(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerCaptureLost(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWindow::PointerCaptureLost(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_PointerCaptureLost, PointerCaptureLost(handler)); -} - -template void impl_ICoreWindow::PointerCaptureLost(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerCaptureLost(cookie)); -} - -template event_token impl_ICoreWindow::PointerEntered(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerEntered(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWindow::PointerEntered(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_PointerEntered, PointerEntered(handler)); -} - -template void impl_ICoreWindow::PointerEntered(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerEntered(cookie)); -} - -template event_token impl_ICoreWindow::PointerExited(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerExited(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWindow::PointerExited(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_PointerExited, PointerExited(handler)); -} - -template void impl_ICoreWindow::PointerExited(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerExited(cookie)); -} - -template event_token impl_ICoreWindow::PointerMoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerMoved(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWindow::PointerMoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_PointerMoved, PointerMoved(handler)); -} - -template void impl_ICoreWindow::PointerMoved(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerMoved(cookie)); -} - -template event_token impl_ICoreWindow::PointerPressed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWindow::PointerPressed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_PointerPressed, PointerPressed(handler)); -} - -template void impl_ICoreWindow::PointerPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerPressed(cookie)); -} - -template event_token impl_ICoreWindow::PointerReleased(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerReleased(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWindow::PointerReleased(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_PointerReleased, PointerReleased(handler)); -} - -template void impl_ICoreWindow::PointerReleased(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerReleased(cookie)); -} - -template event_token impl_ICoreWindow::TouchHitTesting(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_TouchHitTesting(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreWindow::TouchHitTesting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_TouchHitTesting, TouchHitTesting(handler)); -} - -template void impl_ICoreWindow::TouchHitTesting(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TouchHitTesting(cookie)); -} - -template event_token impl_ICoreWindow::PointerWheelChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerWheelChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWindow::PointerWheelChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_PointerWheelChanged, PointerWheelChanged(handler)); -} - -template void impl_ICoreWindow::PointerWheelChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerWheelChanged(cookie)); -} - -template event_token impl_ICoreWindow::SizeChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_SizeChanged(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreWindow::SizeChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_SizeChanged, SizeChanged(handler)); -} - -template void impl_ICoreWindow::SizeChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SizeChanged(cookie)); -} - -template event_token impl_ICoreWindow::VisibilityChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_VisibilityChanged(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreWindow::VisibilityChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow::remove_VisibilityChanged, VisibilityChanged(handler)); -} - -template void impl_ICoreWindow::VisibilityChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VisibilityChanged(cookie)); -} - -template void impl_ICoreWindow2::PointerPosition(const Windows::Foundation::Point & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PointerPosition(get(value))); -} - -template event_token impl_ICoreWindow3::ClosestInteractiveBoundsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ClosestInteractiveBoundsRequested(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreWindow3::ClosestInteractiveBoundsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindow3::remove_ClosestInteractiveBoundsRequested, ClosestInteractiveBoundsRequested(handler)); -} - -template void impl_ICoreWindow3::ClosestInteractiveBoundsRequested(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ClosestInteractiveBoundsRequested(cookie)); -} - -template hstring impl_ICoreWindow3::GetCurrentKeyEventDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentKeyEventDeviceId(put(value))); - return value; -} - -template Windows::UI::Core::CoreWindow impl_ICoreWindowStatic::GetForCurrentThread() const -{ - Windows::UI::Core::CoreWindow ppWindow { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentThread(put(ppWindow))); - return ppWindow; -} - -template Windows::UI::Core::CoreAcceleratorKeyEventType impl_IAcceleratorKeyEventArgs::EventType() const -{ - Windows::UI::Core::CoreAcceleratorKeyEventType value {}; - check_hresult(static_cast(static_cast(*this))->get_EventType(&value)); - return value; -} - -template Windows::System::VirtualKey impl_IAcceleratorKeyEventArgs::VirtualKey() const -{ - Windows::System::VirtualKey value {}; - check_hresult(static_cast(static_cast(*this))->get_VirtualKey(&value)); - return value; -} - -template Windows::UI::Core::CorePhysicalKeyStatus impl_IAcceleratorKeyEventArgs::KeyStatus() const -{ - Windows::UI::Core::CorePhysicalKeyStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyStatus(put(value))); - return value; -} - -template hstring impl_IAcceleratorKeyEventArgs2::DeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DeviceId(put(value))); - return value; -} - -template event_token impl_ICoreAcceleratorKeys::AcceleratorKeyActivated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_AcceleratorKeyActivated(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreAcceleratorKeys::AcceleratorKeyActivated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreAcceleratorKeys::remove_AcceleratorKeyActivated, AcceleratorKeyActivated(handler)); -} - -template void impl_ICoreAcceleratorKeys::AcceleratorKeyActivated(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_AcceleratorKeyActivated(cookie)); -} - -template bool impl_ICoreDispatcher::HasThreadAccess() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasThreadAccess(&value)); - return value; -} - -template void impl_ICoreDispatcher::ProcessEvents(Windows::UI::Core::CoreProcessEventsOption options) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProcessEvents(options)); -} - -template Windows::Foundation::IAsyncAction impl_ICoreDispatcher::RunAsync(Windows::UI::Core::CoreDispatcherPriority priority, const Windows::UI::Core::DispatchedHandler & agileCallback) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_RunAsync(priority, get(agileCallback), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncAction impl_ICoreDispatcher::RunIdleAsync(const Windows::UI::Core::IdleDispatchedHandler & agileCallback) const -{ - Windows::Foundation::IAsyncAction asyncAction; - check_hresult(static_cast(static_cast(*this))->abi_RunIdleAsync(get(agileCallback), put(asyncAction))); - return asyncAction; -} - -template Windows::Foundation::IAsyncOperation impl_ICoreDispatcher2::TryRunAsync(Windows::UI::Core::CoreDispatcherPriority priority, const Windows::UI::Core::DispatchedHandler & agileCallback) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_TryRunAsync(priority, get(agileCallback), put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_ICoreDispatcher2::TryRunIdleAsync(const Windows::UI::Core::IdleDispatchedHandler & agileCallback) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_TryRunIdleAsync(get(agileCallback), put(asyncOperation))); - return asyncOperation; -} - -template Windows::UI::Core::CoreDispatcherPriority impl_ICoreDispatcherWithTaskPriority::CurrentPriority() const -{ - Windows::UI::Core::CoreDispatcherPriority value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentPriority(&value)); - return value; -} - -template void impl_ICoreDispatcherWithTaskPriority::CurrentPriority(Windows::UI::Core::CoreDispatcherPriority value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CurrentPriority(value)); -} - -template bool impl_ICoreDispatcherWithTaskPriority::ShouldYield() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_ShouldYield(&value)); - return value; -} - -template bool impl_ICoreDispatcherWithTaskPriority::ShouldYield(Windows::UI::Core::CoreDispatcherPriority priority) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_ShouldYieldToPriority(priority, &value)); - return value; -} - -template void impl_ICoreDispatcherWithTaskPriority::StopProcessEvents() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopProcessEvents()); -} - -template bool impl_IIdleDispatchedHandlerArgs::IsDispatcherIdle() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDispatcherIdle(&value)); - return value; -} - -template uint32_t impl_ICoreCursor::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::UI::Core::CoreCursorType impl_ICoreCursor::Type() const -{ - Windows::UI::Core::CoreCursorType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template Windows::UI::Core::CoreCursor impl_ICoreCursorFactory::CreateCursor(Windows::UI::Core::CoreCursorType type, uint32_t id) const -{ - Windows::UI::Core::CoreCursor cursor { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateCursor(type, id, put(cursor))); - return cursor; -} - -template void impl_IInitializeWithCoreWindow::Initialize(const Windows::UI::Core::CoreWindow & window) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Initialize(get(window))); -} - -template void impl_ICoreWindowResizeManager::NotifyLayoutCompleted() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyLayoutCompleted()); -} - -template void impl_ICoreWindowResizeManagerLayoutCapability::ShouldWaitForLayoutCompletion(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShouldWaitForLayoutCompletion(value)); -} - -template bool impl_ICoreWindowResizeManagerLayoutCapability::ShouldWaitForLayoutCompletion() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShouldWaitForLayoutCompletion(&value)); - return value; -} - -template Windows::UI::Core::CoreWindowResizeManager impl_ICoreWindowResizeManagerStatics::GetForCurrentView() const -{ - Windows::UI::Core::CoreWindowResizeManager CoreWindowResizeManager { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(CoreWindowResizeManager))); - return CoreWindowResizeManager; -} - -template Windows::UI::Core::CoreDispatcher impl_ICoreInputSourceBase::Dispatcher() const -{ - Windows::UI::Core::CoreDispatcher value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Dispatcher(put(value))); - return value; -} - -template bool impl_ICoreInputSourceBase::IsInputEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInputEnabled(&value)); - return value; -} - -template void impl_ICoreInputSourceBase::IsInputEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsInputEnabled(value)); -} - -template event_token impl_ICoreInputSourceBase::InputEnabled(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_InputEnabled(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreInputSourceBase::InputEnabled(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreInputSourceBase::remove_InputEnabled, InputEnabled(handler)); -} - -template void impl_ICoreInputSourceBase::InputEnabled(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_InputEnabled(cookie)); -} - -template void impl_ICorePointerInputSource::ReleasePointerCapture() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ReleasePointerCapture()); -} - -template void impl_ICorePointerInputSource::SetPointerCapture() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPointerCapture()); -} - -template bool impl_ICorePointerInputSource::HasCapture() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasCapture(&value)); - return value; -} - -template Windows::Foundation::Point impl_ICorePointerInputSource::PointerPosition() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerPosition(put(value))); - return value; -} - -template Windows::UI::Core::CoreCursor impl_ICorePointerInputSource::PointerCursor() const -{ - Windows::UI::Core::CoreCursor value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PointerCursor(put(value))); - return value; -} - -template void impl_ICorePointerInputSource::PointerCursor(const Windows::UI::Core::CoreCursor & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PointerCursor(get(value))); -} - -template event_token impl_ICorePointerInputSource::PointerCaptureLost(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerCaptureLost(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICorePointerInputSource::PointerCaptureLost(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICorePointerInputSource::remove_PointerCaptureLost, PointerCaptureLost(handler)); -} - -template void impl_ICorePointerInputSource::PointerCaptureLost(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerCaptureLost(cookie)); -} - -template event_token impl_ICorePointerInputSource::PointerEntered(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerEntered(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICorePointerInputSource::PointerEntered(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICorePointerInputSource::remove_PointerEntered, PointerEntered(handler)); -} - -template void impl_ICorePointerInputSource::PointerEntered(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerEntered(cookie)); -} - -template event_token impl_ICorePointerInputSource::PointerExited(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerExited(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICorePointerInputSource::PointerExited(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICorePointerInputSource::remove_PointerExited, PointerExited(handler)); -} - -template void impl_ICorePointerInputSource::PointerExited(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerExited(cookie)); -} - -template event_token impl_ICorePointerInputSource::PointerMoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerMoved(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICorePointerInputSource::PointerMoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICorePointerInputSource::remove_PointerMoved, PointerMoved(handler)); -} - -template void impl_ICorePointerInputSource::PointerMoved(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerMoved(cookie)); -} - -template event_token impl_ICorePointerInputSource::PointerPressed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICorePointerInputSource::PointerPressed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICorePointerInputSource::remove_PointerPressed, PointerPressed(handler)); -} - -template void impl_ICorePointerInputSource::PointerPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerPressed(cookie)); -} - -template event_token impl_ICorePointerInputSource::PointerReleased(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerReleased(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICorePointerInputSource::PointerReleased(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICorePointerInputSource::remove_PointerReleased, PointerReleased(handler)); -} - -template void impl_ICorePointerInputSource::PointerReleased(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerReleased(cookie)); -} - -template event_token impl_ICorePointerInputSource::PointerWheelChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerWheelChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICorePointerInputSource::PointerWheelChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICorePointerInputSource::remove_PointerWheelChanged, PointerWheelChanged(handler)); -} - -template void impl_ICorePointerInputSource::PointerWheelChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerWheelChanged(cookie)); -} - -template Windows::UI::Core::CoreVirtualKeyStates impl_ICoreKeyboardInputSource::GetCurrentKeyState(Windows::System::VirtualKey virtualKey) const -{ - Windows::UI::Core::CoreVirtualKeyStates KeyState {}; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentKeyState(virtualKey, &KeyState)); - return KeyState; -} - -template event_token impl_ICoreKeyboardInputSource::CharacterReceived(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_CharacterReceived(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreKeyboardInputSource::CharacterReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreKeyboardInputSource::remove_CharacterReceived, CharacterReceived(handler)); -} - -template void impl_ICoreKeyboardInputSource::CharacterReceived(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CharacterReceived(cookie)); -} - -template event_token impl_ICoreKeyboardInputSource::KeyDown(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_KeyDown(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreKeyboardInputSource::KeyDown(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreKeyboardInputSource::remove_KeyDown, KeyDown(handler)); -} - -template void impl_ICoreKeyboardInputSource::KeyDown(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_KeyDown(cookie)); -} - -template event_token impl_ICoreKeyboardInputSource::KeyUp(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_KeyUp(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreKeyboardInputSource::KeyUp(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreKeyboardInputSource::remove_KeyUp, KeyUp(handler)); -} - -template void impl_ICoreKeyboardInputSource::KeyUp(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_KeyUp(cookie)); -} - -template hstring impl_ICoreKeyboardInputSource2::GetCurrentKeyEventDeviceId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentKeyEventDeviceId(put(value))); - return value; -} - -template bool impl_ICoreComponentFocusable::HasFocus() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasFocus(&value)); - return value; -} - -template event_token impl_ICoreComponentFocusable::GotFocus(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_GotFocus(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreComponentFocusable::GotFocus(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreComponentFocusable::remove_GotFocus, GotFocus(handler)); -} - -template void impl_ICoreComponentFocusable::GotFocus(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_GotFocus(cookie)); -} - -template event_token impl_ICoreComponentFocusable::LostFocus(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_LostFocus(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreComponentFocusable::LostFocus(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreComponentFocusable::remove_LostFocus, LostFocus(handler)); -} - -template void impl_ICoreComponentFocusable::LostFocus(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LostFocus(cookie)); -} - -template event_token impl_ICoreTouchHitTesting::TouchHitTesting(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_TouchHitTesting(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreTouchHitTesting::TouchHitTesting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreTouchHitTesting::remove_TouchHitTesting, TouchHitTesting(handler)); -} - -template void impl_ICoreTouchHitTesting::TouchHitTesting(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TouchHitTesting(cookie)); -} - -template event_token impl_ICoreClosestInteractiveBoundsRequested::ClosestInteractiveBoundsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ClosestInteractiveBoundsRequested(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_ICoreClosestInteractiveBoundsRequested::ClosestInteractiveBoundsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreClosestInteractiveBoundsRequested::remove_ClosestInteractiveBoundsRequested, ClosestInteractiveBoundsRequested(handler)); -} - -template void impl_ICoreClosestInteractiveBoundsRequested::ClosestInteractiveBoundsRequested(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ClosestInteractiveBoundsRequested(cookie)); -} - -template event_token impl_ICorePointerRedirector::PointerRoutedAway(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerRoutedAway(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICorePointerRedirector::PointerRoutedAway(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICorePointerRedirector::remove_PointerRoutedAway, PointerRoutedAway(handler)); -} - -template void impl_ICorePointerRedirector::PointerRoutedAway(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerRoutedAway(cookie)); -} - -template event_token impl_ICorePointerRedirector::PointerRoutedTo(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerRoutedTo(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICorePointerRedirector::PointerRoutedTo(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICorePointerRedirector::remove_PointerRoutedTo, PointerRoutedTo(handler)); -} - -template void impl_ICorePointerRedirector::PointerRoutedTo(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerRoutedTo(cookie)); -} - -template event_token impl_ICorePointerRedirector::PointerRoutedReleased(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerRoutedReleased(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICorePointerRedirector::PointerRoutedReleased(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICorePointerRedirector::remove_PointerRoutedReleased, PointerRoutedReleased(handler)); -} - -template void impl_ICorePointerRedirector::PointerRoutedReleased(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerRoutedReleased(cookie)); -} - -template event_token impl_ISystemNavigationManager::BackRequested(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BackRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ISystemNavigationManager::BackRequested(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ISystemNavigationManager::remove_BackRequested, BackRequested(handler)); -} - -template void impl_ISystemNavigationManager::BackRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BackRequested(token)); -} - -template Windows::UI::Core::AppViewBackButtonVisibility impl_ISystemNavigationManager2::AppViewBackButtonVisibility() const -{ - Windows::UI::Core::AppViewBackButtonVisibility value {}; - check_hresult(static_cast(static_cast(*this))->get_AppViewBackButtonVisibility(&value)); - return value; -} - -template void impl_ISystemNavigationManager2::AppViewBackButtonVisibility(Windows::UI::Core::AppViewBackButtonVisibility value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AppViewBackButtonVisibility(value)); -} - -template Windows::UI::Core::SystemNavigationManager impl_ISystemNavigationManagerStatics::GetForCurrentView() const -{ - Windows::UI::Core::SystemNavigationManager loader { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(loader))); - return loader; -} - -template bool impl_IBackRequestedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IBackRequestedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template void impl_ICoreWindowPopupShowingEventArgs::SetDesiredSize(const Windows::Foundation::Size & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDesiredSize(get(value))); -} - -template event_token impl_ICoreWindowDialog::Showing(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_Showing(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWindowDialog::Showing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindowDialog::remove_Showing, Showing(handler)); -} - -template void impl_ICoreWindowDialog::Showing(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Showing(cookie)); -} - -template Windows::Foundation::Size impl_ICoreWindowDialog::MaxSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxSize(put(value))); - return value; -} - -template Windows::Foundation::Size impl_ICoreWindowDialog::MinSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_MinSize(put(value))); - return value; -} - -template hstring impl_ICoreWindowDialog::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_ICoreWindowDialog::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template int32_t impl_ICoreWindowDialog::IsInteractionDelayed() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInteractionDelayed(&value)); - return value; -} - -template void impl_ICoreWindowDialog::IsInteractionDelayed(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsInteractionDelayed(value)); -} - -template Windows::Foundation::Collections::IVector impl_ICoreWindowDialog::Commands() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Commands(put(value))); - return value; -} - -template uint32_t impl_ICoreWindowDialog::DefaultCommandIndex() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultCommandIndex(&value)); - return value; -} - -template void impl_ICoreWindowDialog::DefaultCommandIndex(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultCommandIndex(value)); -} - -template uint32_t impl_ICoreWindowDialog::CancelCommandIndex() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CancelCommandIndex(&value)); - return value; -} - -template void impl_ICoreWindowDialog::CancelCommandIndex(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CancelCommandIndex(value)); -} - -template Windows::UI::Popups::UICommandInvokedHandler impl_ICoreWindowDialog::BackButtonCommand() const -{ - Windows::UI::Popups::UICommandInvokedHandler value {}; - check_hresult(static_cast(static_cast(*this))->get_BackButtonCommand(put(value))); - return value; -} - -template void impl_ICoreWindowDialog::BackButtonCommand(const Windows::UI::Popups::UICommandInvokedHandler & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackButtonCommand(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_ICoreWindowDialog::ShowAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::UI::Core::CoreWindowDialog impl_ICoreWindowDialogFactory::CreateWithTitle(hstring_ref title) const -{ - Windows::UI::Core::CoreWindowDialog coreWindowDialog { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithTitle(get(title), put(coreWindowDialog))); - return coreWindowDialog; -} - -template event_token impl_ICoreWindowFlyout::Showing(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_Showing(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWindowFlyout::Showing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Core::ICoreWindowFlyout::remove_Showing, Showing(handler)); -} - -template void impl_ICoreWindowFlyout::Showing(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Showing(cookie)); -} - -template Windows::Foundation::Size impl_ICoreWindowFlyout::MaxSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxSize(put(value))); - return value; -} - -template Windows::Foundation::Size impl_ICoreWindowFlyout::MinSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_MinSize(put(value))); - return value; -} - -template hstring impl_ICoreWindowFlyout::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_ICoreWindowFlyout::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template int32_t impl_ICoreWindowFlyout::IsInteractionDelayed() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInteractionDelayed(&value)); - return value; -} - -template void impl_ICoreWindowFlyout::IsInteractionDelayed(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsInteractionDelayed(value)); -} - -template Windows::Foundation::Collections::IVector impl_ICoreWindowFlyout::Commands() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Commands(put(value))); - return value; -} - -template uint32_t impl_ICoreWindowFlyout::DefaultCommandIndex() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultCommandIndex(&value)); - return value; -} - -template void impl_ICoreWindowFlyout::DefaultCommandIndex(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultCommandIndex(value)); -} - -template Windows::UI::Popups::UICommandInvokedHandler impl_ICoreWindowFlyout::BackButtonCommand() const -{ - Windows::UI::Popups::UICommandInvokedHandler value {}; - check_hresult(static_cast(static_cast(*this))->get_BackButtonCommand(put(value))); - return value; -} - -template void impl_ICoreWindowFlyout::BackButtonCommand(const Windows::UI::Popups::UICommandInvokedHandler & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackButtonCommand(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_ICoreWindowFlyout::ShowAsync() const -{ - Windows::Foundation::IAsyncOperation asyncInfo; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsync(put(asyncInfo))); - return asyncInfo; -} - -template Windows::UI::Core::CoreWindowFlyout impl_ICoreWindowFlyoutFactory::Create(const Windows::Foundation::Point & position) const -{ - Windows::UI::Core::CoreWindowFlyout coreWindowFlyout { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(position), put(coreWindowFlyout))); - return coreWindowFlyout; -} - -template Windows::UI::Core::CoreWindowFlyout impl_ICoreWindowFlyoutFactory::CreateWithTitle(const Windows::Foundation::Point & position, hstring_ref title) const -{ - Windows::UI::Core::CoreWindowFlyout coreWindowFlyout { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithTitle(get(position), get(title), put(coreWindowFlyout))); - return coreWindowFlyout; -} - -inline CoreCursor::CoreCursor(Windows::UI::Core::CoreCursorType type, uint32_t id) : - CoreCursor(get_activation_factory().CreateCursor(type, id)) -{} - -inline Windows::UI::Core::CoreWindow CoreWindow::GetForCurrentThread() -{ - return get_activation_factory().GetForCurrentThread(); -} - -inline CoreWindowDialog::CoreWindowDialog() : - CoreWindowDialog(activate_instance()) -{} - -inline CoreWindowDialog::CoreWindowDialog(hstring_ref title) : - CoreWindowDialog(get_activation_factory().CreateWithTitle(title)) -{} - -inline CoreWindowFlyout::CoreWindowFlyout(const Windows::Foundation::Point & position) : - CoreWindowFlyout(get_activation_factory().Create(position)) -{} - -inline CoreWindowFlyout::CoreWindowFlyout(const Windows::Foundation::Point & position, hstring_ref title) : - CoreWindowFlyout(get_activation_factory().CreateWithTitle(position, title)) -{} - -inline Windows::UI::Core::CoreWindowResizeManager CoreWindowResizeManager::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline Windows::UI::Core::SystemNavigationManager SystemNavigationManager::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Input.Inking.Core.h b/10.0.14393.0/winrt/Windows.UI.Input.Inking.Core.h deleted file mode 100644 index 71568ad7d..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Input.Inking.Core.h +++ /dev/null @@ -1,731 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Input.Inking.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Input.Inking.Core.3.h" -#include "Windows.UI.Input.Inking.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall add_PointerEntering(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerEntering(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerEntering(event_token cookie) noexcept override - { - try - { - this->shim().PointerEntering(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerHovering(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerHovering(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerHovering(event_token cookie) noexcept override - { - try - { - this->shim().PointerHovering(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerExiting(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerExiting(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerExiting(event_token cookie) noexcept override - { - try - { - this->shim().PointerExiting(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerPressing(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerPressing(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerPressing(event_token cookie) noexcept override - { - try - { - this->shim().PointerPressing(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerMoving(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerMoving(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerMoving(event_token cookie) noexcept override - { - try - { - this->shim().PointerMoving(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerReleasing(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerReleasing(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerReleasing(event_token cookie) noexcept override - { - try - { - this->shim().PointerReleasing(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerLost(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerLost(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerLost(event_token cookie) noexcept override - { - try - { - this->shim().PointerLost(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InkPresenter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InkPresenter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in inkPresenter, abi_arg_out inkIndependentInputSource) noexcept override - { - try - { - *inkIndependentInputSource = detach(this->shim().Create(*reinterpret_cast(&inkPresenter))); - return S_OK; - } - catch (...) - { - *inkIndependentInputSource = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NewInkPoints(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().NewInkPoints()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PointerId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Disposition(Windows::UI::Input::Inking::Core::CoreWetStrokeDisposition * value) noexcept override - { - try - { - *value = detach(this->shim().Disposition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Disposition(Windows::UI::Input::Inking::Core::CoreWetStrokeDisposition value) noexcept override - { - try - { - this->shim().Disposition(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_WetStrokeStarting(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().WetStrokeStarting(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_WetStrokeStarting(event_token cookie) noexcept override - { - try - { - this->shim().WetStrokeStarting(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_WetStrokeContinuing(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().WetStrokeContinuing(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_WetStrokeContinuing(event_token cookie) noexcept override - { - try - { - this->shim().WetStrokeContinuing(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_WetStrokeStopping(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().WetStrokeStopping(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_WetStrokeStopping(event_token cookie) noexcept override - { - try - { - this->shim().WetStrokeStopping(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_WetStrokeCompleted(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().WetStrokeCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_WetStrokeCompleted(event_token cookie) noexcept override - { - try - { - this->shim().WetStrokeCompleted(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_WetStrokeCanceled(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().WetStrokeCanceled(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_WetStrokeCanceled(event_token cookie) noexcept override - { - try - { - this->shim().WetStrokeCanceled(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InkPresenter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InkPresenter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in inkPresenter, abi_arg_out WetStrokeUpdateSource) noexcept override - { - try - { - *WetStrokeUpdateSource = detach(this->shim().Create(*reinterpret_cast(&inkPresenter))); - return S_OK; - } - catch (...) - { - *WetStrokeUpdateSource = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Input::Inking::Core { - -template event_token impl_ICoreInkIndependentInputSource::PointerEntering(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerEntering(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreInkIndependentInputSource::PointerEntering(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource::remove_PointerEntering, PointerEntering(handler)); -} - -template void impl_ICoreInkIndependentInputSource::PointerEntering(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerEntering(cookie)); -} - -template event_token impl_ICoreInkIndependentInputSource::PointerHovering(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerHovering(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreInkIndependentInputSource::PointerHovering(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource::remove_PointerHovering, PointerHovering(handler)); -} - -template void impl_ICoreInkIndependentInputSource::PointerHovering(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerHovering(cookie)); -} - -template event_token impl_ICoreInkIndependentInputSource::PointerExiting(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerExiting(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreInkIndependentInputSource::PointerExiting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource::remove_PointerExiting, PointerExiting(handler)); -} - -template void impl_ICoreInkIndependentInputSource::PointerExiting(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerExiting(cookie)); -} - -template event_token impl_ICoreInkIndependentInputSource::PointerPressing(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerPressing(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreInkIndependentInputSource::PointerPressing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource::remove_PointerPressing, PointerPressing(handler)); -} - -template void impl_ICoreInkIndependentInputSource::PointerPressing(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerPressing(cookie)); -} - -template event_token impl_ICoreInkIndependentInputSource::PointerMoving(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerMoving(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreInkIndependentInputSource::PointerMoving(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource::remove_PointerMoving, PointerMoving(handler)); -} - -template void impl_ICoreInkIndependentInputSource::PointerMoving(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerMoving(cookie)); -} - -template event_token impl_ICoreInkIndependentInputSource::PointerReleasing(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerReleasing(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreInkIndependentInputSource::PointerReleasing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource::remove_PointerReleasing, PointerReleasing(handler)); -} - -template void impl_ICoreInkIndependentInputSource::PointerReleasing(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerReleasing(cookie)); -} - -template event_token impl_ICoreInkIndependentInputSource::PointerLost(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerLost(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreInkIndependentInputSource::PointerLost(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource::remove_PointerLost, PointerLost(handler)); -} - -template void impl_ICoreInkIndependentInputSource::PointerLost(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerLost(cookie)); -} - -template Windows::UI::Input::Inking::InkPresenter impl_ICoreInkIndependentInputSource::InkPresenter() const -{ - Windows::UI::Input::Inking::InkPresenter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InkPresenter(put(value))); - return value; -} - -template Windows::UI::Input::Inking::Core::CoreInkIndependentInputSource impl_ICoreInkIndependentInputSourceStatics::Create(const Windows::UI::Input::Inking::InkPresenter & inkPresenter) const -{ - Windows::UI::Input::Inking::Core::CoreInkIndependentInputSource inkIndependentInputSource { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(inkPresenter), put(inkIndependentInputSource))); - return inkIndependentInputSource; -} - -template Windows::Foundation::Collections::IVector impl_ICoreWetStrokeUpdateEventArgs::NewInkPoints() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_NewInkPoints(put(value))); - return value; -} - -template uint32_t impl_ICoreWetStrokeUpdateEventArgs::PointerId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerId(&value)); - return value; -} - -template Windows::UI::Input::Inking::Core::CoreWetStrokeDisposition impl_ICoreWetStrokeUpdateEventArgs::Disposition() const -{ - Windows::UI::Input::Inking::Core::CoreWetStrokeDisposition value {}; - check_hresult(static_cast(static_cast(*this))->get_Disposition(&value)); - return value; -} - -template void impl_ICoreWetStrokeUpdateEventArgs::Disposition(Windows::UI::Input::Inking::Core::CoreWetStrokeDisposition value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Disposition(value)); -} - -template event_token impl_ICoreWetStrokeUpdateSource::WetStrokeStarting(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_WetStrokeStarting(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWetStrokeUpdateSource::WetStrokeStarting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource::remove_WetStrokeStarting, WetStrokeStarting(handler)); -} - -template void impl_ICoreWetStrokeUpdateSource::WetStrokeStarting(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_WetStrokeStarting(cookie)); -} - -template event_token impl_ICoreWetStrokeUpdateSource::WetStrokeContinuing(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_WetStrokeContinuing(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWetStrokeUpdateSource::WetStrokeContinuing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource::remove_WetStrokeContinuing, WetStrokeContinuing(handler)); -} - -template void impl_ICoreWetStrokeUpdateSource::WetStrokeContinuing(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_WetStrokeContinuing(cookie)); -} - -template event_token impl_ICoreWetStrokeUpdateSource::WetStrokeStopping(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_WetStrokeStopping(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWetStrokeUpdateSource::WetStrokeStopping(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource::remove_WetStrokeStopping, WetStrokeStopping(handler)); -} - -template void impl_ICoreWetStrokeUpdateSource::WetStrokeStopping(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_WetStrokeStopping(cookie)); -} - -template event_token impl_ICoreWetStrokeUpdateSource::WetStrokeCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_WetStrokeCompleted(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWetStrokeUpdateSource::WetStrokeCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource::remove_WetStrokeCompleted, WetStrokeCompleted(handler)); -} - -template void impl_ICoreWetStrokeUpdateSource::WetStrokeCompleted(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_WetStrokeCompleted(cookie)); -} - -template event_token impl_ICoreWetStrokeUpdateSource::WetStrokeCanceled(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_WetStrokeCanceled(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreWetStrokeUpdateSource::WetStrokeCanceled(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource::remove_WetStrokeCanceled, WetStrokeCanceled(handler)); -} - -template void impl_ICoreWetStrokeUpdateSource::WetStrokeCanceled(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_WetStrokeCanceled(cookie)); -} - -template Windows::UI::Input::Inking::InkPresenter impl_ICoreWetStrokeUpdateSource::InkPresenter() const -{ - Windows::UI::Input::Inking::InkPresenter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InkPresenter(put(value))); - return value; -} - -template Windows::UI::Input::Inking::Core::CoreWetStrokeUpdateSource impl_ICoreWetStrokeUpdateSourceStatics::Create(const Windows::UI::Input::Inking::InkPresenter & inkPresenter) const -{ - Windows::UI::Input::Inking::Core::CoreWetStrokeUpdateSource WetStrokeUpdateSource { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(inkPresenter), put(WetStrokeUpdateSource))); - return WetStrokeUpdateSource; -} - -inline Windows::UI::Input::Inking::Core::CoreInkIndependentInputSource CoreInkIndependentInputSource::Create(const Windows::UI::Input::Inking::InkPresenter & inkPresenter) -{ - return get_activation_factory().Create(inkPresenter); -} - -inline Windows::UI::Input::Inking::Core::CoreWetStrokeUpdateSource CoreWetStrokeUpdateSource::Create(const Windows::UI::Input::Inking::InkPresenter & inkPresenter) -{ - return get_activation_factory().Create(inkPresenter); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Input.Inking.h b/10.0.14393.0/winrt/Windows.UI.Input.Inking.h deleted file mode 100644 index 27089f479..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Input.Inking.h +++ /dev/null @@ -1,2951 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Core.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.UI.Input.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.UI.Input.Inking.3.h" -#include "Windows.UI.Input.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Color(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Color()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Color(abi_arg_in value) noexcept override - { - try - { - this->shim().Color(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PenTip(Windows::UI::Input::Inking::PenTipShape * value) noexcept override - { - try - { - *value = detach(this->shim().PenTip()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PenTip(Windows::UI::Input::Inking::PenTipShape value) noexcept override - { - try - { - this->shim().PenTip(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Size(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Size(abi_arg_in value) noexcept override - { - try - { - this->shim().Size(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IgnorePressure(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IgnorePressure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IgnorePressure(bool value) noexcept override - { - try - { - this->shim().IgnorePressure(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FitToCurve(bool * value) noexcept override - { - try - { - *value = detach(this->shim().FitToCurve()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FitToCurve(bool value) noexcept override - { - try - { - this->shim().FitToCurve(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PenTipTransform(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PenTipTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PenTipTransform(abi_arg_in value) noexcept override - { - try - { - this->shim().PenTipTransform(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DrawAsHighlighter(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DrawAsHighlighter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DrawAsHighlighter(bool value) noexcept override - { - try - { - this->shim().DrawAsHighlighter(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::UI::Input::Inking::InkDrawingAttributesKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PencilProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PencilProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Opacity(double * value) noexcept override - { - try - { - *value = detach(this->shim().Opacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Opacity(double value) noexcept override - { - try - { - this->shim().Opacity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateForPencil(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateForPencil()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Mode(Windows::UI::Input::Inking::InkInputProcessingMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::UI::Input::Inking::InkInputProcessingMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightDragAction(Windows::UI::Input::Inking::InkInputRightDragAction * value) noexcept override - { - try - { - *value = detach(this->shim().RightDragAction()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RightDragAction(Windows::UI::Input::Inking::InkInputRightDragAction value) noexcept override - { - try - { - this->shim().RightDragAction(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Mode(Windows::UI::Input::Inking::InkManipulationMode * value) noexcept override - { - try - { - *value = detach(this->shim().Mode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Mode(Windows::UI::Input::Inking::InkManipulationMode value) noexcept override - { - try - { - this->shim().Mode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessPointerDown(abi_arg_in pointerPoint) noexcept override - { - try - { - this->shim().ProcessPointerDown(*reinterpret_cast(&pointerPoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessPointerUpdate(abi_arg_in pointerPoint, abi_arg_out updateInformation) noexcept override - { - try - { - *updateInformation = detach(this->shim().ProcessPointerUpdate(*reinterpret_cast(&pointerPoint))); - return S_OK; - } - catch (...) - { - *updateInformation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessPointerUp(abi_arg_in pointerPoint, abi_arg_out updateRectangle) noexcept override - { - try - { - *updateRectangle = detach(this->shim().ProcessPointerUp(*reinterpret_cast(&pointerPoint))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDefaultDrawingAttributes(abi_arg_in drawingAttributes) noexcept override - { - try - { - this->shim().SetDefaultDrawingAttributes(*reinterpret_cast(&drawingAttributes)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RecognizeAsync2(Windows::UI::Input::Inking::InkRecognitionTarget recognitionTarget, abi_arg_out>> recognitionResults) noexcept override - { - try - { - *recognitionResults = detach(this->shim().RecognizeAsync(recognitionTarget)); - return S_OK; - } - catch (...) - { - *recognitionResults = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pressure(float * value) noexcept override - { - try - { - *value = detach(this->shim().Pressure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInkPoint(abi_arg_in position, float pressure, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateInkPoint(*reinterpret_cast(&position), pressure)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsInputEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInputEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsInputEnabled(bool value) noexcept override - { - try - { - this->shim().IsInputEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputDeviceTypes(Windows::UI::Core::CoreInputDeviceTypes * value) noexcept override - { - try - { - *value = detach(this->shim().InputDeviceTypes()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InputDeviceTypes(Windows::UI::Core::CoreInputDeviceTypes value) noexcept override - { - try - { - this->shim().InputDeviceTypes(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UnprocessedInput(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UnprocessedInput()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StrokeInput(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StrokeInput()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputProcessingConfiguration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputProcessingConfiguration()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StrokeContainer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StrokeContainer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StrokeContainer(abi_arg_in value) noexcept override - { - try - { - this->shim().StrokeContainer(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopyDefaultDrawingAttributes(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CopyDefaultDrawingAttributes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateDefaultDrawingAttributes(abi_arg_in value) noexcept override - { - try - { - this->shim().UpdateDefaultDrawingAttributes(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ActivateCustomDrying(abi_arg_out inkSynchronizer) noexcept override - { - try - { - *inkSynchronizer = detach(this->shim().ActivateCustomDrying()); - return S_OK; - } - catch (...) - { - *inkSynchronizer = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPredefinedConfiguration(Windows::UI::Input::Inking::InkPresenterPredefinedConfiguration value) noexcept override - { - try - { - this->shim().SetPredefinedConfiguration(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StrokesCollected(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().StrokesCollected(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StrokesCollected(event_token cookie) noexcept override - { - try - { - this->shim().StrokesCollected(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StrokesErased(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().StrokesErased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StrokesErased(event_token cookie) noexcept override - { - try - { - this->shim().StrokesErased(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Length(double * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Length(double value) noexcept override - { - try - { - this->shim().Length(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Width(double * value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Width(double value) noexcept override - { - try - { - this->shim().Width(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in inkPresenter, abi_arg_out inkPresenterRuler) noexcept override - { - try - { - *inkPresenterRuler = detach(this->shim().Create(*reinterpret_cast(&inkPresenter))); - return S_OK; - } - catch (...) - { - *inkPresenterRuler = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::UI::Input::Inking::InkPresenterStencilKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsVisible(bool value) noexcept override - { - try - { - this->shim().IsVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackgroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().BackgroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ForegroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().ForegroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Transform(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Transform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Transform(abi_arg_in value) noexcept override - { - try - { - this->shim().Transform(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BoundingRect(abi_arg_out boundingRect) noexcept override - { - try - { - *boundingRect = detach(this->shim().BoundingRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTextCandidates(abi_arg_out> textCandidates) noexcept override - { - try - { - *textCandidates = detach(this->shim().GetTextCandidates()); - return S_OK; - } - catch (...) - { - *textCandidates = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStrokes(abi_arg_out> strokes) noexcept override - { - try - { - *strokes = detach(this->shim().GetStrokes()); - return S_OK; - } - catch (...) - { - *strokes = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetDefaultRecognizer(abi_arg_in recognizer) noexcept override - { - try - { - this->shim().SetDefaultRecognizer(*reinterpret_cast(&recognizer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RecognizeAsync(abi_arg_in strokeCollection, Windows::UI::Input::Inking::InkRecognitionTarget recognitionTarget, abi_arg_out>> recognitionResults) noexcept override - { - try - { - *recognitionResults = detach(this->shim().RecognizeAsync(*reinterpret_cast(&strokeCollection), recognitionTarget)); - return S_OK; - } - catch (...) - { - *recognitionResults = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRecognizers(abi_arg_out> recognizerView) noexcept override - { - try - { - *recognizerView = detach(this->shim().GetRecognizers()); - return S_OK; - } - catch (...) - { - *recognizerView = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DrawingAttributes(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DrawingAttributes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DrawingAttributes(abi_arg_in value) noexcept override - { - try - { - this->shim().DrawingAttributes(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BoundingRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BoundingRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Selected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Selected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Selected(bool value) noexcept override - { - try - { - this->shim().Selected(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Recognized(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Recognized()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRenderingSegments(abi_arg_out> renderingSegments) noexcept override - { - try - { - *renderingSegments = detach(this->shim().GetRenderingSegments()); - return S_OK; - } - catch (...) - { - *renderingSegments = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clone(abi_arg_out clonedStroke) noexcept override - { - try - { - *clonedStroke = detach(this->shim().Clone()); - return S_OK; - } - catch (...) - { - *clonedStroke = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointTransform(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointTransform()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PointTransform(abi_arg_in value) noexcept override - { - try - { - this->shim().PointTransform(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetInkPoints(abi_arg_out> inkPoints) noexcept override - { - try - { - *inkPoints = detach(this->shim().GetInkPoints()); - return S_OK; - } - catch (...) - { - *inkPoints = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_BeginStroke(abi_arg_in pointerPoint) noexcept override - { - try - { - this->shim().BeginStroke(*reinterpret_cast(&pointerPoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AppendToStroke(abi_arg_in pointerPoint, abi_arg_out previousPointerPoint) noexcept override - { - try - { - *previousPointerPoint = detach(this->shim().AppendToStroke(*reinterpret_cast(&pointerPoint))); - return S_OK; - } - catch (...) - { - *previousPointerPoint = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EndStroke(abi_arg_in pointerPoint, abi_arg_out stroke) noexcept override - { - try - { - *stroke = detach(this->shim().EndStroke(*reinterpret_cast(&pointerPoint))); - return S_OK; - } - catch (...) - { - *stroke = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateStroke(abi_arg_in> points, abi_arg_out stroke) noexcept override - { - try - { - *stroke = detach(this->shim().CreateStroke(*reinterpret_cast *>(&points))); - return S_OK; - } - catch (...) - { - *stroke = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDefaultDrawingAttributes(abi_arg_in drawingAttributes) noexcept override - { - try - { - this->shim().SetDefaultDrawingAttributes(*reinterpret_cast(&drawingAttributes)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateStrokeFromInkPoints(abi_arg_in> inkPoints, abi_arg_in transform, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateStrokeFromInkPoints(*reinterpret_cast *>(&inkPoints), *reinterpret_cast(&transform))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BoundingRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BoundingRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddStroke(abi_arg_in stroke) noexcept override - { - try - { - this->shim().AddStroke(*reinterpret_cast(&stroke)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteSelected(abi_arg_out invalidatedRect) noexcept override - { - try - { - *invalidatedRect = detach(this->shim().DeleteSelected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveSelected(abi_arg_in translation, abi_arg_out invalidatedRectangle) noexcept override - { - try - { - *invalidatedRectangle = detach(this->shim().MoveSelected(*reinterpret_cast(&translation))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectWithPolyLine(abi_arg_in> polyline, abi_arg_out invalidatedRectangle) noexcept override - { - try - { - *invalidatedRectangle = detach(this->shim().SelectWithPolyLine(*reinterpret_cast *>(&polyline))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectWithLine(abi_arg_in from, abi_arg_in to, abi_arg_out invalidatedRectangle) noexcept override - { - try - { - *invalidatedRectangle = detach(this->shim().SelectWithLine(*reinterpret_cast(&from), *reinterpret_cast(&to))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CopySelectedToClipboard() noexcept override - { - try - { - this->shim().CopySelectedToClipboard(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PasteFromClipboard(abi_arg_in position, abi_arg_out invalidatedRectangle) noexcept override - { - try - { - *invalidatedRectangle = detach(this->shim().PasteFromClipboard(*reinterpret_cast(&position))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanPasteFromClipboard(bool * canPaste) noexcept override - { - try - { - *canPaste = detach(this->shim().CanPasteFromClipboard()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadAsync(abi_arg_in inputStream, abi_arg_out> loadAction) noexcept override - { - try - { - *loadAction = detach(this->shim().LoadAsync(*reinterpret_cast(&inputStream))); - return S_OK; - } - catch (...) - { - *loadAction = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsync(abi_arg_in outputStream, abi_arg_out> outputStreamOperation) noexcept override - { - try - { - *outputStreamOperation = detach(this->shim().SaveAsync(*reinterpret_cast(&outputStream))); - return S_OK; - } - catch (...) - { - *outputStreamOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateRecognitionResults(abi_arg_in> recognitionResults) noexcept override - { - try - { - this->shim().UpdateRecognitionResults(*reinterpret_cast *>(&recognitionResults)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetStrokes(abi_arg_out> strokeView) noexcept override - { - try - { - *strokeView = detach(this->shim().GetStrokes()); - return S_OK; - } - catch (...) - { - *strokeView = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRecognitionResults(abi_arg_out> recognitionResults) noexcept override - { - try - { - *recognitionResults = detach(this->shim().GetRecognitionResults()); - return S_OK; - } - catch (...) - { - *recognitionResults = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddStrokes(abi_arg_in> strokes) noexcept override - { - try - { - this->shim().AddStrokes(*reinterpret_cast *>(&strokes)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_StrokeStarted(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().StrokeStarted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StrokeStarted(event_token cookie) noexcept override - { - try - { - this->shim().StrokeStarted(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StrokeContinued(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().StrokeContinued(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StrokeContinued(event_token cookie) noexcept override - { - try - { - this->shim().StrokeContinued(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StrokeEnded(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().StrokeEnded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StrokeEnded(event_token cookie) noexcept override - { - try - { - this->shim().StrokeEnded(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_StrokeCanceled(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().StrokeCanceled(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_StrokeCanceled(event_token cookie) noexcept override - { - try - { - this->shim().StrokeCanceled(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InkPresenter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InkPresenter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BezierControlPoint1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BezierControlPoint1()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BezierControlPoint2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BezierControlPoint2()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pressure(float * value) noexcept override - { - try - { - *value = detach(this->shim().Pressure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TiltX(float * value) noexcept override - { - try - { - *value = detach(this->shim().TiltX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TiltY(float * value) noexcept override - { - try - { - *value = detach(this->shim().TiltY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Twist(float * value) noexcept override - { - try - { - *value = detach(this->shim().Twist()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Strokes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Strokes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Strokes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Strokes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_BeginDry(abi_arg_out> inkStrokes) noexcept override - { - try - { - *inkStrokes = detach(this->shim().BeginDry()); - return S_OK; - } - catch (...) - { - *inkStrokes = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EndDry() noexcept override - { - try - { - this->shim().EndDry(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_PointerEntered(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerEntered(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerEntered(event_token cookie) noexcept override - { - try - { - this->shim().PointerEntered(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerHovered(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerHovered(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerHovered(event_token cookie) noexcept override - { - try - { - this->shim().PointerHovered(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerExited(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerExited(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerExited(event_token cookie) noexcept override - { - try - { - this->shim().PointerExited(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerPressed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerPressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerPressed(event_token cookie) noexcept override - { - try - { - this->shim().PointerPressed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerMoved(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerMoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerMoved(event_token cookie) noexcept override - { - try - { - this->shim().PointerMoved(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerReleased(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerReleased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerReleased(event_token cookie) noexcept override - { - try - { - this->shim().PointerReleased(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PointerLost(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().PointerLost(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PointerLost(event_token cookie) noexcept override - { - try - { - this->shim().PointerLost(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InkPresenter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InkPresenter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Input::Inking { - -template Windows::Foundation::Collections::IVectorView impl_IInkStrokesCollectedEventArgs::Strokes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Strokes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IInkStrokesErasedEventArgs::Strokes() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Strokes(put(value))); - return value; -} - -template bool impl_IInkPresenter::IsInputEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInputEnabled(&value)); - return value; -} - -template void impl_IInkPresenter::IsInputEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsInputEnabled(value)); -} - -template Windows::UI::Core::CoreInputDeviceTypes impl_IInkPresenter::InputDeviceTypes() const -{ - Windows::UI::Core::CoreInputDeviceTypes value {}; - check_hresult(static_cast(static_cast(*this))->get_InputDeviceTypes(&value)); - return value; -} - -template void impl_IInkPresenter::InputDeviceTypes(Windows::UI::Core::CoreInputDeviceTypes value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InputDeviceTypes(value)); -} - -template Windows::UI::Input::Inking::InkUnprocessedInput impl_IInkPresenter::UnprocessedInput() const -{ - Windows::UI::Input::Inking::InkUnprocessedInput value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UnprocessedInput(put(value))); - return value; -} - -template Windows::UI::Input::Inking::InkStrokeInput impl_IInkPresenter::StrokeInput() const -{ - Windows::UI::Input::Inking::InkStrokeInput value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StrokeInput(put(value))); - return value; -} - -template Windows::UI::Input::Inking::InkInputProcessingConfiguration impl_IInkPresenter::InputProcessingConfiguration() const -{ - Windows::UI::Input::Inking::InkInputProcessingConfiguration value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputProcessingConfiguration(put(value))); - return value; -} - -template Windows::UI::Input::Inking::InkStrokeContainer impl_IInkPresenter::StrokeContainer() const -{ - Windows::UI::Input::Inking::InkStrokeContainer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StrokeContainer(put(value))); - return value; -} - -template void impl_IInkPresenter::StrokeContainer(const Windows::UI::Input::Inking::InkStrokeContainer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StrokeContainer(get(value))); -} - -template Windows::UI::Input::Inking::InkDrawingAttributes impl_IInkPresenter::CopyDefaultDrawingAttributes() const -{ - Windows::UI::Input::Inking::InkDrawingAttributes value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CopyDefaultDrawingAttributes(put(value))); - return value; -} - -template void impl_IInkPresenter::UpdateDefaultDrawingAttributes(const Windows::UI::Input::Inking::InkDrawingAttributes & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateDefaultDrawingAttributes(get(value))); -} - -template Windows::UI::Input::Inking::InkSynchronizer impl_IInkPresenter::ActivateCustomDrying() const -{ - Windows::UI::Input::Inking::InkSynchronizer inkSynchronizer { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ActivateCustomDrying(put(inkSynchronizer))); - return inkSynchronizer; -} - -template void impl_IInkPresenter::SetPredefinedConfiguration(Windows::UI::Input::Inking::InkPresenterPredefinedConfiguration value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPredefinedConfiguration(value)); -} - -template event_token impl_IInkPresenter::StrokesCollected(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_StrokesCollected(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkPresenter::StrokesCollected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkPresenter::remove_StrokesCollected, StrokesCollected(handler)); -} - -template void impl_IInkPresenter::StrokesCollected(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StrokesCollected(cookie)); -} - -template event_token impl_IInkPresenter::StrokesErased(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_StrokesErased(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkPresenter::StrokesErased(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkPresenter::remove_StrokesErased, StrokesErased(handler)); -} - -template void impl_IInkPresenter::StrokesErased(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StrokesErased(cookie)); -} - -template Windows::UI::Input::Inking::InkInputProcessingMode impl_IInkInputProcessingConfiguration::Mode() const -{ - Windows::UI::Input::Inking::InkInputProcessingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IInkInputProcessingConfiguration::Mode(Windows::UI::Input::Inking::InkInputProcessingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template Windows::UI::Input::Inking::InkInputRightDragAction impl_IInkInputProcessingConfiguration::RightDragAction() const -{ - Windows::UI::Input::Inking::InkInputRightDragAction value {}; - check_hresult(static_cast(static_cast(*this))->get_RightDragAction(&value)); - return value; -} - -template void impl_IInkInputProcessingConfiguration::RightDragAction(Windows::UI::Input::Inking::InkInputRightDragAction value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RightDragAction(value)); -} - -template Windows::Foundation::Collections::IVectorView impl_IInkSynchronizer::BeginDry() const -{ - Windows::Foundation::Collections::IVectorView inkStrokes; - check_hresult(static_cast(static_cast(*this))->abi_BeginDry(put(inkStrokes))); - return inkStrokes; -} - -template void impl_IInkSynchronizer::EndDry() const -{ - check_hresult(static_cast(static_cast(*this))->abi_EndDry()); -} - -template event_token impl_IInkUnprocessedInput::PointerEntered(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerEntered(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkUnprocessedInput::PointerEntered(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkUnprocessedInput::remove_PointerEntered, PointerEntered(handler)); -} - -template void impl_IInkUnprocessedInput::PointerEntered(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerEntered(cookie)); -} - -template event_token impl_IInkUnprocessedInput::PointerHovered(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerHovered(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkUnprocessedInput::PointerHovered(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkUnprocessedInput::remove_PointerHovered, PointerHovered(handler)); -} - -template void impl_IInkUnprocessedInput::PointerHovered(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerHovered(cookie)); -} - -template event_token impl_IInkUnprocessedInput::PointerExited(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerExited(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkUnprocessedInput::PointerExited(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkUnprocessedInput::remove_PointerExited, PointerExited(handler)); -} - -template void impl_IInkUnprocessedInput::PointerExited(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerExited(cookie)); -} - -template event_token impl_IInkUnprocessedInput::PointerPressed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerPressed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkUnprocessedInput::PointerPressed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkUnprocessedInput::remove_PointerPressed, PointerPressed(handler)); -} - -template void impl_IInkUnprocessedInput::PointerPressed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerPressed(cookie)); -} - -template event_token impl_IInkUnprocessedInput::PointerMoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerMoved(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkUnprocessedInput::PointerMoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkUnprocessedInput::remove_PointerMoved, PointerMoved(handler)); -} - -template void impl_IInkUnprocessedInput::PointerMoved(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerMoved(cookie)); -} - -template event_token impl_IInkUnprocessedInput::PointerReleased(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerReleased(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkUnprocessedInput::PointerReleased(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkUnprocessedInput::remove_PointerReleased, PointerReleased(handler)); -} - -template void impl_IInkUnprocessedInput::PointerReleased(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerReleased(cookie)); -} - -template event_token impl_IInkUnprocessedInput::PointerLost(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_PointerLost(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkUnprocessedInput::PointerLost(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkUnprocessedInput::remove_PointerLost, PointerLost(handler)); -} - -template void impl_IInkUnprocessedInput::PointerLost(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PointerLost(cookie)); -} - -template Windows::UI::Input::Inking::InkPresenter impl_IInkUnprocessedInput::InkPresenter() const -{ - Windows::UI::Input::Inking::InkPresenter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InkPresenter(put(value))); - return value; -} - -template event_token impl_IInkStrokeInput::StrokeStarted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_StrokeStarted(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkStrokeInput::StrokeStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkStrokeInput::remove_StrokeStarted, StrokeStarted(handler)); -} - -template void impl_IInkStrokeInput::StrokeStarted(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StrokeStarted(cookie)); -} - -template event_token impl_IInkStrokeInput::StrokeContinued(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_StrokeContinued(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkStrokeInput::StrokeContinued(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkStrokeInput::remove_StrokeContinued, StrokeContinued(handler)); -} - -template void impl_IInkStrokeInput::StrokeContinued(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StrokeContinued(cookie)); -} - -template event_token impl_IInkStrokeInput::StrokeEnded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_StrokeEnded(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkStrokeInput::StrokeEnded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkStrokeInput::remove_StrokeEnded, StrokeEnded(handler)); -} - -template void impl_IInkStrokeInput::StrokeEnded(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StrokeEnded(cookie)); -} - -template event_token impl_IInkStrokeInput::StrokeCanceled(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_StrokeCanceled(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IInkStrokeInput::StrokeCanceled(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Inking::IInkStrokeInput::remove_StrokeCanceled, StrokeCanceled(handler)); -} - -template void impl_IInkStrokeInput::StrokeCanceled(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_StrokeCanceled(cookie)); -} - -template Windows::UI::Input::Inking::InkPresenter impl_IInkStrokeInput::InkPresenter() const -{ - Windows::UI::Input::Inking::InkPresenter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InkPresenter(put(value))); - return value; -} - -template Windows::UI::Input::Inking::InkPresenterStencilKind impl_IInkPresenterStencil::Kind() const -{ - Windows::UI::Input::Inking::InkPresenterStencilKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template bool impl_IInkPresenterStencil::IsVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVisible(&value)); - return value; -} - -template void impl_IInkPresenterStencil::IsVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsVisible(value)); -} - -template Windows::UI::Color impl_IInkPresenterStencil::BackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(put(value))); - return value; -} - -template void impl_IInkPresenterStencil::BackgroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackgroundColor(get(value))); -} - -template Windows::UI::Color impl_IInkPresenterStencil::ForegroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_ForegroundColor(put(value))); - return value; -} - -template void impl_IInkPresenterStencil::ForegroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ForegroundColor(get(value))); -} - -template Windows::Foundation::Numerics::float3x2 impl_IInkPresenterStencil::Transform() const -{ - Windows::Foundation::Numerics::float3x2 value {}; - check_hresult(static_cast(static_cast(*this))->get_Transform(put(value))); - return value; -} - -template void impl_IInkPresenterStencil::Transform(const Windows::Foundation::Numerics::float3x2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Transform(get(value))); -} - -template double impl_IInkPresenterRuler::Length() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template void impl_IInkPresenterRuler::Length(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Length(value)); -} - -template double impl_IInkPresenterRuler::Width() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(&value)); - return value; -} - -template void impl_IInkPresenterRuler::Width(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Width(value)); -} - -template Windows::UI::Input::Inking::InkPresenterRuler impl_IInkPresenterRulerFactory::Create(const Windows::UI::Input::Inking::InkPresenter & inkPresenter) const -{ - Windows::UI::Input::Inking::InkPresenterRuler inkPresenterRuler { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(inkPresenter), put(inkPresenterRuler))); - return inkPresenterRuler; -} - -template Windows::Foundation::Point impl_IInkPoint::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template float impl_IInkPoint::Pressure() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Pressure(&value)); - return value; -} - -template Windows::UI::Input::Inking::InkPoint impl_IInkPointFactory::CreateInkPoint(const Windows::Foundation::Point & position, float pressure) const -{ - Windows::UI::Input::Inking::InkPoint result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInkPoint(get(position), pressure, put(result))); - return result; -} - -template Windows::UI::Color impl_IInkDrawingAttributes::Color() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_Color(put(value))); - return value; -} - -template void impl_IInkDrawingAttributes::Color(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Color(get(value))); -} - -template Windows::UI::Input::Inking::PenTipShape impl_IInkDrawingAttributes::PenTip() const -{ - Windows::UI::Input::Inking::PenTipShape value {}; - check_hresult(static_cast(static_cast(*this))->get_PenTip(&value)); - return value; -} - -template void impl_IInkDrawingAttributes::PenTip(Windows::UI::Input::Inking::PenTipShape value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PenTip(value)); -} - -template Windows::Foundation::Size impl_IInkDrawingAttributes::Size() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(put(value))); - return value; -} - -template void impl_IInkDrawingAttributes::Size(const Windows::Foundation::Size & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Size(get(value))); -} - -template bool impl_IInkDrawingAttributes::IgnorePressure() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IgnorePressure(&value)); - return value; -} - -template void impl_IInkDrawingAttributes::IgnorePressure(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IgnorePressure(value)); -} - -template bool impl_IInkDrawingAttributes::FitToCurve() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_FitToCurve(&value)); - return value; -} - -template void impl_IInkDrawingAttributes::FitToCurve(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FitToCurve(value)); -} - -template Windows::Foundation::Numerics::float3x2 impl_IInkDrawingAttributes2::PenTipTransform() const -{ - Windows::Foundation::Numerics::float3x2 value {}; - check_hresult(static_cast(static_cast(*this))->get_PenTipTransform(put(value))); - return value; -} - -template void impl_IInkDrawingAttributes2::PenTipTransform(const Windows::Foundation::Numerics::float3x2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PenTipTransform(get(value))); -} - -template bool impl_IInkDrawingAttributes2::DrawAsHighlighter() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DrawAsHighlighter(&value)); - return value; -} - -template void impl_IInkDrawingAttributes2::DrawAsHighlighter(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DrawAsHighlighter(value)); -} - -template double impl_IInkDrawingAttributesPencilProperties::Opacity() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Opacity(&value)); - return value; -} - -template void impl_IInkDrawingAttributesPencilProperties::Opacity(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Opacity(value)); -} - -template Windows::UI::Input::Inking::InkDrawingAttributesKind impl_IInkDrawingAttributes3::Kind() const -{ - Windows::UI::Input::Inking::InkDrawingAttributesKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::UI::Input::Inking::InkDrawingAttributesPencilProperties impl_IInkDrawingAttributes3::PencilProperties() const -{ - Windows::UI::Input::Inking::InkDrawingAttributesPencilProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PencilProperties(put(value))); - return value; -} - -template Windows::UI::Input::Inking::InkDrawingAttributes impl_IInkDrawingAttributesStatics::CreateForPencil() const -{ - Windows::UI::Input::Inking::InkDrawingAttributes result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateForPencil(put(result))); - return result; -} - -template Windows::Foundation::Point impl_IInkStrokeRenderingSegment::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IInkStrokeRenderingSegment::BezierControlPoint1() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_BezierControlPoint1(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IInkStrokeRenderingSegment::BezierControlPoint2() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_BezierControlPoint2(put(value))); - return value; -} - -template float impl_IInkStrokeRenderingSegment::Pressure() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Pressure(&value)); - return value; -} - -template float impl_IInkStrokeRenderingSegment::TiltX() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_TiltX(&value)); - return value; -} - -template float impl_IInkStrokeRenderingSegment::TiltY() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_TiltY(&value)); - return value; -} - -template float impl_IInkStrokeRenderingSegment::Twist() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Twist(&value)); - return value; -} - -template Windows::UI::Input::Inking::InkDrawingAttributes impl_IInkStroke::DrawingAttributes() const -{ - Windows::UI::Input::Inking::InkDrawingAttributes value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DrawingAttributes(put(value))); - return value; -} - -template void impl_IInkStroke::DrawingAttributes(const Windows::UI::Input::Inking::InkDrawingAttributes & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DrawingAttributes(get(value))); -} - -template Windows::Foundation::Rect impl_IInkStroke::BoundingRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_BoundingRect(put(value))); - return value; -} - -template bool impl_IInkStroke::Selected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Selected(&value)); - return value; -} - -template void impl_IInkStroke::Selected(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Selected(value)); -} - -template bool impl_IInkStroke::Recognized() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Recognized(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IInkStroke::GetRenderingSegments() const -{ - Windows::Foundation::Collections::IVectorView renderingSegments; - check_hresult(static_cast(static_cast(*this))->abi_GetRenderingSegments(put(renderingSegments))); - return renderingSegments; -} - -template Windows::UI::Input::Inking::InkStroke impl_IInkStroke::Clone() const -{ - Windows::UI::Input::Inking::InkStroke clonedStroke { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Clone(put(clonedStroke))); - return clonedStroke; -} - -template Windows::Foundation::Numerics::float3x2 impl_IInkStroke2::PointTransform() const -{ - Windows::Foundation::Numerics::float3x2 value {}; - check_hresult(static_cast(static_cast(*this))->get_PointTransform(put(value))); - return value; -} - -template void impl_IInkStroke2::PointTransform(const Windows::Foundation::Numerics::float3x2 & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PointTransform(get(value))); -} - -template Windows::Foundation::Collections::IVectorView impl_IInkStroke2::GetInkPoints() const -{ - Windows::Foundation::Collections::IVectorView inkPoints; - check_hresult(static_cast(static_cast(*this))->abi_GetInkPoints(put(inkPoints))); - return inkPoints; -} - -template void impl_IInkStrokeBuilder::BeginStroke(const Windows::UI::Input::PointerPoint & pointerPoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_BeginStroke(get(pointerPoint))); -} - -template Windows::UI::Input::PointerPoint impl_IInkStrokeBuilder::AppendToStroke(const Windows::UI::Input::PointerPoint & pointerPoint) const -{ - Windows::UI::Input::PointerPoint previousPointerPoint { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_AppendToStroke(get(pointerPoint), put(previousPointerPoint))); - return previousPointerPoint; -} - -template Windows::UI::Input::Inking::InkStroke impl_IInkStrokeBuilder::EndStroke(const Windows::UI::Input::PointerPoint & pointerPoint) const -{ - Windows::UI::Input::Inking::InkStroke stroke { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_EndStroke(get(pointerPoint), put(stroke))); - return stroke; -} - -template Windows::UI::Input::Inking::InkStroke impl_IInkStrokeBuilder::CreateStroke(const Windows::Foundation::Collections::IIterable & points) const -{ - Windows::UI::Input::Inking::InkStroke stroke { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateStroke(get(points), put(stroke))); - return stroke; -} - -template void impl_IInkStrokeBuilder::SetDefaultDrawingAttributes(const Windows::UI::Input::Inking::InkDrawingAttributes & drawingAttributes) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDefaultDrawingAttributes(get(drawingAttributes))); -} - -template Windows::UI::Input::Inking::InkStroke impl_IInkStrokeBuilder2::CreateStrokeFromInkPoints(const Windows::Foundation::Collections::IIterable & inkPoints, const Windows::Foundation::Numerics::float3x2 & transform) const -{ - Windows::UI::Input::Inking::InkStroke result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateStrokeFromInkPoints(get(inkPoints), get(transform), put(result))); - return result; -} - -template Windows::Foundation::Rect impl_IInkRecognitionResult::BoundingRect() const -{ - Windows::Foundation::Rect boundingRect {}; - check_hresult(static_cast(static_cast(*this))->get_BoundingRect(put(boundingRect))); - return boundingRect; -} - -template Windows::Foundation::Collections::IVectorView impl_IInkRecognitionResult::GetTextCandidates() const -{ - Windows::Foundation::Collections::IVectorView textCandidates; - check_hresult(static_cast(static_cast(*this))->abi_GetTextCandidates(put(textCandidates))); - return textCandidates; -} - -template Windows::Foundation::Collections::IVectorView impl_IInkRecognitionResult::GetStrokes() const -{ - Windows::Foundation::Collections::IVectorView strokes; - check_hresult(static_cast(static_cast(*this))->abi_GetStrokes(put(strokes))); - return strokes; -} - -template Windows::Foundation::Rect impl_IInkStrokeContainer::BoundingRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_BoundingRect(put(value))); - return value; -} - -template void impl_IInkStrokeContainer::AddStroke(const Windows::UI::Input::Inking::InkStroke & stroke) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddStroke(get(stroke))); -} - -template Windows::Foundation::Rect impl_IInkStrokeContainer::DeleteSelected() const -{ - Windows::Foundation::Rect invalidatedRect {}; - check_hresult(static_cast(static_cast(*this))->abi_DeleteSelected(put(invalidatedRect))); - return invalidatedRect; -} - -template Windows::Foundation::Rect impl_IInkStrokeContainer::MoveSelected(const Windows::Foundation::Point & translation) const -{ - Windows::Foundation::Rect invalidatedRectangle {}; - check_hresult(static_cast(static_cast(*this))->abi_MoveSelected(get(translation), put(invalidatedRectangle))); - return invalidatedRectangle; -} - -template Windows::Foundation::Rect impl_IInkStrokeContainer::SelectWithPolyLine(const Windows::Foundation::Collections::IIterable & polyline) const -{ - Windows::Foundation::Rect invalidatedRectangle {}; - check_hresult(static_cast(static_cast(*this))->abi_SelectWithPolyLine(get(polyline), put(invalidatedRectangle))); - return invalidatedRectangle; -} - -template Windows::Foundation::Rect impl_IInkStrokeContainer::SelectWithLine(const Windows::Foundation::Point & from, const Windows::Foundation::Point & to) const -{ - Windows::Foundation::Rect invalidatedRectangle {}; - check_hresult(static_cast(static_cast(*this))->abi_SelectWithLine(get(from), get(to), put(invalidatedRectangle))); - return invalidatedRectangle; -} - -template void impl_IInkStrokeContainer::CopySelectedToClipboard() const -{ - check_hresult(static_cast(static_cast(*this))->abi_CopySelectedToClipboard()); -} - -template Windows::Foundation::Rect impl_IInkStrokeContainer::PasteFromClipboard(const Windows::Foundation::Point & position) const -{ - Windows::Foundation::Rect invalidatedRectangle {}; - check_hresult(static_cast(static_cast(*this))->abi_PasteFromClipboard(get(position), put(invalidatedRectangle))); - return invalidatedRectangle; -} - -template bool impl_IInkStrokeContainer::CanPasteFromClipboard() const -{ - bool canPaste {}; - check_hresult(static_cast(static_cast(*this))->abi_CanPasteFromClipboard(&canPaste)); - return canPaste; -} - -template Windows::Foundation::IAsyncActionWithProgress impl_IInkStrokeContainer::LoadAsync(const Windows::Storage::Streams::IInputStream & inputStream) const -{ - Windows::Foundation::IAsyncActionWithProgress loadAction; - check_hresult(static_cast(static_cast(*this))->abi_LoadAsync(get(inputStream), put(loadAction))); - return loadAction; -} - -template Windows::Foundation::IAsyncOperationWithProgress impl_IInkStrokeContainer::SaveAsync(const Windows::Storage::Streams::IOutputStream & outputStream) const -{ - Windows::Foundation::IAsyncOperationWithProgress outputStreamOperation; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsync(get(outputStream), put(outputStreamOperation))); - return outputStreamOperation; -} - -template void impl_IInkStrokeContainer::UpdateRecognitionResults(const Windows::Foundation::Collections::IVectorView & recognitionResults) const -{ - check_hresult(static_cast(static_cast(*this))->abi_UpdateRecognitionResults(get(recognitionResults))); -} - -template Windows::Foundation::Collections::IVectorView impl_IInkStrokeContainer::GetStrokes() const -{ - Windows::Foundation::Collections::IVectorView strokeView; - check_hresult(static_cast(static_cast(*this))->abi_GetStrokes(put(strokeView))); - return strokeView; -} - -template Windows::Foundation::Collections::IVectorView impl_IInkStrokeContainer::GetRecognitionResults() const -{ - Windows::Foundation::Collections::IVectorView recognitionResults; - check_hresult(static_cast(static_cast(*this))->abi_GetRecognitionResults(put(recognitionResults))); - return recognitionResults; -} - -template void impl_IInkStrokeContainer2::AddStrokes(const Windows::Foundation::Collections::IIterable & strokes) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddStrokes(get(strokes))); -} - -template void impl_IInkStrokeContainer2::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template hstring impl_IInkRecognizer::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_IInkRecognizerContainer::SetDefaultRecognizer(const Windows::UI::Input::Inking::InkRecognizer & recognizer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDefaultRecognizer(get(recognizer))); -} - -template Windows::Foundation::IAsyncOperation> impl_IInkRecognizerContainer::RecognizeAsync(const Windows::UI::Input::Inking::InkStrokeContainer & strokeCollection, Windows::UI::Input::Inking::InkRecognitionTarget recognitionTarget) const -{ - Windows::Foundation::IAsyncOperation> recognitionResults; - check_hresult(static_cast(static_cast(*this))->abi_RecognizeAsync(get(strokeCollection), recognitionTarget, put(recognitionResults))); - return recognitionResults; -} - -template Windows::Foundation::Collections::IVectorView impl_IInkRecognizerContainer::GetRecognizers() const -{ - Windows::Foundation::Collections::IVectorView recognizerView; - check_hresult(static_cast(static_cast(*this))->abi_GetRecognizers(put(recognizerView))); - return recognizerView; -} - -template Windows::UI::Input::Inking::InkManipulationMode impl_IInkManager::Mode() const -{ - Windows::UI::Input::Inking::InkManipulationMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Mode(&value)); - return value; -} - -template void impl_IInkManager::Mode(Windows::UI::Input::Inking::InkManipulationMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Mode(value)); -} - -template void impl_IInkManager::ProcessPointerDown(const Windows::UI::Input::PointerPoint & pointerPoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProcessPointerDown(get(pointerPoint))); -} - -template Windows::IInspectable impl_IInkManager::ProcessPointerUpdate(const Windows::UI::Input::PointerPoint & pointerPoint) const -{ - Windows::IInspectable updateInformation; - check_hresult(static_cast(static_cast(*this))->abi_ProcessPointerUpdate(get(pointerPoint), put(updateInformation))); - return updateInformation; -} - -template Windows::Foundation::Rect impl_IInkManager::ProcessPointerUp(const Windows::UI::Input::PointerPoint & pointerPoint) const -{ - Windows::Foundation::Rect updateRectangle {}; - check_hresult(static_cast(static_cast(*this))->abi_ProcessPointerUp(get(pointerPoint), put(updateRectangle))); - return updateRectangle; -} - -template void impl_IInkManager::SetDefaultDrawingAttributes(const Windows::UI::Input::Inking::InkDrawingAttributes & drawingAttributes) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDefaultDrawingAttributes(get(drawingAttributes))); -} - -template Windows::Foundation::IAsyncOperation> impl_IInkManager::RecognizeAsync(Windows::UI::Input::Inking::InkRecognitionTarget recognitionTarget) const -{ - Windows::Foundation::IAsyncOperation> recognitionResults; - check_hresult(static_cast(static_cast(*this))->abi_RecognizeAsync2(recognitionTarget, put(recognitionResults))); - return recognitionResults; -} - -inline InkDrawingAttributes::InkDrawingAttributes() : - InkDrawingAttributes(activate_instance()) -{} - -inline Windows::UI::Input::Inking::InkDrawingAttributes InkDrawingAttributes::CreateForPencil() -{ - return get_activation_factory().CreateForPencil(); -} - -inline InkManager::InkManager() : - InkManager(activate_instance()) -{} - -inline InkPoint::InkPoint(const Windows::Foundation::Point & position, float pressure) : - InkPoint(get_activation_factory().CreateInkPoint(position, pressure)) -{} - -inline InkPresenterRuler::InkPresenterRuler(const Windows::UI::Input::Inking::InkPresenter & inkPresenter) : - InkPresenterRuler(get_activation_factory().Create(inkPresenter)) -{} - -inline InkRecognizerContainer::InkRecognizerContainer() : - InkRecognizerContainer(activate_instance()) -{} - -inline InkStrokeBuilder::InkStrokeBuilder() : - InkStrokeBuilder(activate_instance()) -{} - -inline InkStrokeContainer::InkStrokeContainer() : - InkStrokeContainer(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Input.Preview.Injection.h b/10.0.14393.0/winrt/Windows.UI.Input.Preview.Injection.h deleted file mode 100644 index ff1b5f73b..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Input.Preview.Injection.h +++ /dev/null @@ -1,1008 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Input.Preview.Injection.3.h" -#include "Windows.UI.Input.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_KeyOptions(Windows::UI::Input::Preview::Injection::InjectedInputKeyOptions * value) noexcept override - { - try - { - *value = detach(this->shim().KeyOptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeyOptions(Windows::UI::Input::Preview::Injection::InjectedInputKeyOptions value) noexcept override - { - try - { - this->shim().KeyOptions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScanCode(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().ScanCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScanCode(uint16_t value) noexcept override - { - try - { - this->shim().ScanCode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VirtualKey(uint16_t * value) noexcept override - { - try - { - *value = detach(this->shim().VirtualKey()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VirtualKey(uint16_t value) noexcept override - { - try - { - this->shim().VirtualKey(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MouseOptions(Windows::UI::Input::Preview::Injection::InjectedInputMouseOptions * value) noexcept override - { - try - { - *value = detach(this->shim().MouseOptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MouseOptions(Windows::UI::Input::Preview::Injection::InjectedInputMouseOptions value) noexcept override - { - try - { - this->shim().MouseOptions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MouseData(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MouseData()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MouseData(uint32_t value) noexcept override - { - try - { - this->shim().MouseData(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeltaY(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DeltaY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DeltaY(int32_t value) noexcept override - { - try - { - this->shim().DeltaY(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeltaX(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DeltaX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DeltaX(int32_t value) noexcept override - { - try - { - this->shim().DeltaX(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeOffsetInMilliseconds(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TimeOffsetInMilliseconds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TimeOffsetInMilliseconds(uint32_t value) noexcept override - { - try - { - this->shim().TimeOffsetInMilliseconds(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerInfo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PointerInfo(abi_arg_in value) noexcept override - { - try - { - this->shim().PointerInfo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PenButtons(Windows::UI::Input::Preview::Injection::InjectedInputPenButtons * value) noexcept override - { - try - { - *value = detach(this->shim().PenButtons()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PenButtons(Windows::UI::Input::Preview::Injection::InjectedInputPenButtons value) noexcept override - { - try - { - this->shim().PenButtons(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PenParameters(Windows::UI::Input::Preview::Injection::InjectedInputPenParameters * value) noexcept override - { - try - { - *value = detach(this->shim().PenParameters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PenParameters(Windows::UI::Input::Preview::Injection::InjectedInputPenParameters value) noexcept override - { - try - { - this->shim().PenParameters(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pressure(double * value) noexcept override - { - try - { - *value = detach(this->shim().Pressure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Pressure(double value) noexcept override - { - try - { - this->shim().Pressure(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Rotation(double * value) noexcept override - { - try - { - *value = detach(this->shim().Rotation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Rotation(double value) noexcept override - { - try - { - this->shim().Rotation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TiltX(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TiltX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TiltX(int32_t value) noexcept override - { - try - { - this->shim().TiltX(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TiltY(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TiltY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TiltY(int32_t value) noexcept override - { - try - { - this->shim().TiltY(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Contact(abi_arg_in value) noexcept override - { - try - { - this->shim().Contact(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(int32_t value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerInfo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PointerInfo(abi_arg_in value) noexcept override - { - try - { - this->shim().PointerInfo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pressure(double * value) noexcept override - { - try - { - *value = detach(this->shim().Pressure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Pressure(double value) noexcept override - { - try - { - this->shim().Pressure(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TouchParameters(Windows::UI::Input::Preview::Injection::InjectedInputTouchParameters * value) noexcept override - { - try - { - *value = detach(this->shim().TouchParameters()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TouchParameters(Windows::UI::Input::Preview::Injection::InjectedInputTouchParameters value) noexcept override - { - try - { - this->shim().TouchParameters(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_InjectKeyboardInput(abi_arg_in> input) noexcept override - { - try - { - this->shim().InjectKeyboardInput(*reinterpret_cast *>(&input)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InjectMouseInput(abi_arg_in> input) noexcept override - { - try - { - this->shim().InjectMouseInput(*reinterpret_cast *>(&input)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InitializeTouchInjection(Windows::UI::Input::Preview::Injection::InjectedInputVisualizationMode visualMode) noexcept override - { - try - { - this->shim().InitializeTouchInjection(visualMode); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InjectTouchInput(abi_arg_in> input) noexcept override - { - try - { - this->shim().InjectTouchInput(*reinterpret_cast *>(&input)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UninitializeTouchInjection() noexcept override - { - try - { - this->shim().UninitializeTouchInjection(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InitializePenInjection(Windows::UI::Input::Preview::Injection::InjectedInputVisualizationMode visualMode) noexcept override - { - try - { - this->shim().InitializePenInjection(visualMode); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InjectPenInput(abi_arg_in input) noexcept override - { - try - { - this->shim().InjectPenInput(*reinterpret_cast(&input)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UninitializePenInjection() noexcept override - { - try - { - this->shim().UninitializePenInjection(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InjectShortcut(Windows::UI::Input::Preview::Injection::InjectedInputShortcut shortcut) noexcept override - { - try - { - this->shim().InjectShortcut(shortcut); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryCreate(abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().TryCreate()); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Input::Preview::Injection { - -template Windows::UI::Input::Preview::Injection::InjectedInputRectangle impl_IInjectedInputTouchInfo::Contact() const -{ - Windows::UI::Input::Preview::Injection::InjectedInputRectangle value {}; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template void impl_IInjectedInputTouchInfo::Contact(const Windows::UI::Input::Preview::Injection::InjectedInputRectangle & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Contact(get(value))); -} - -template int32_t impl_IInjectedInputTouchInfo::Orientation() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_IInjectedInputTouchInfo::Orientation(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template Windows::UI::Input::Preview::Injection::InjectedInputPointerInfo impl_IInjectedInputTouchInfo::PointerInfo() const -{ - Windows::UI::Input::Preview::Injection::InjectedInputPointerInfo value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerInfo(put(value))); - return value; -} - -template void impl_IInjectedInputTouchInfo::PointerInfo(const Windows::UI::Input::Preview::Injection::InjectedInputPointerInfo & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PointerInfo(get(value))); -} - -template double impl_IInjectedInputTouchInfo::Pressure() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Pressure(&value)); - return value; -} - -template void impl_IInjectedInputTouchInfo::Pressure(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Pressure(value)); -} - -template Windows::UI::Input::Preview::Injection::InjectedInputTouchParameters impl_IInjectedInputTouchInfo::TouchParameters() const -{ - Windows::UI::Input::Preview::Injection::InjectedInputTouchParameters value {}; - check_hresult(static_cast(static_cast(*this))->get_TouchParameters(&value)); - return value; -} - -template void impl_IInjectedInputTouchInfo::TouchParameters(Windows::UI::Input::Preview::Injection::InjectedInputTouchParameters value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TouchParameters(value)); -} - -template Windows::UI::Input::Preview::Injection::InjectedInputPointerInfo impl_IInjectedInputPenInfo::PointerInfo() const -{ - Windows::UI::Input::Preview::Injection::InjectedInputPointerInfo value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerInfo(put(value))); - return value; -} - -template void impl_IInjectedInputPenInfo::PointerInfo(const Windows::UI::Input::Preview::Injection::InjectedInputPointerInfo & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PointerInfo(get(value))); -} - -template Windows::UI::Input::Preview::Injection::InjectedInputPenButtons impl_IInjectedInputPenInfo::PenButtons() const -{ - Windows::UI::Input::Preview::Injection::InjectedInputPenButtons value {}; - check_hresult(static_cast(static_cast(*this))->get_PenButtons(&value)); - return value; -} - -template void impl_IInjectedInputPenInfo::PenButtons(Windows::UI::Input::Preview::Injection::InjectedInputPenButtons value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PenButtons(value)); -} - -template Windows::UI::Input::Preview::Injection::InjectedInputPenParameters impl_IInjectedInputPenInfo::PenParameters() const -{ - Windows::UI::Input::Preview::Injection::InjectedInputPenParameters value {}; - check_hresult(static_cast(static_cast(*this))->get_PenParameters(&value)); - return value; -} - -template void impl_IInjectedInputPenInfo::PenParameters(Windows::UI::Input::Preview::Injection::InjectedInputPenParameters value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PenParameters(value)); -} - -template double impl_IInjectedInputPenInfo::Pressure() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Pressure(&value)); - return value; -} - -template void impl_IInjectedInputPenInfo::Pressure(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Pressure(value)); -} - -template double impl_IInjectedInputPenInfo::Rotation() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Rotation(&value)); - return value; -} - -template void impl_IInjectedInputPenInfo::Rotation(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Rotation(value)); -} - -template int32_t impl_IInjectedInputPenInfo::TiltX() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TiltX(&value)); - return value; -} - -template void impl_IInjectedInputPenInfo::TiltX(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TiltX(value)); -} - -template int32_t impl_IInjectedInputPenInfo::TiltY() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TiltY(&value)); - return value; -} - -template void impl_IInjectedInputPenInfo::TiltY(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TiltY(value)); -} - -template Windows::UI::Input::Preview::Injection::InjectedInputMouseOptions impl_IInjectedInputMouseInfo::MouseOptions() const -{ - Windows::UI::Input::Preview::Injection::InjectedInputMouseOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_MouseOptions(&value)); - return value; -} - -template void impl_IInjectedInputMouseInfo::MouseOptions(Windows::UI::Input::Preview::Injection::InjectedInputMouseOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MouseOptions(value)); -} - -template uint32_t impl_IInjectedInputMouseInfo::MouseData() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MouseData(&value)); - return value; -} - -template void impl_IInjectedInputMouseInfo::MouseData(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MouseData(value)); -} - -template int32_t impl_IInjectedInputMouseInfo::DeltaY() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DeltaY(&value)); - return value; -} - -template void impl_IInjectedInputMouseInfo::DeltaY(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DeltaY(value)); -} - -template int32_t impl_IInjectedInputMouseInfo::DeltaX() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DeltaX(&value)); - return value; -} - -template void impl_IInjectedInputMouseInfo::DeltaX(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DeltaX(value)); -} - -template uint32_t impl_IInjectedInputMouseInfo::TimeOffsetInMilliseconds() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TimeOffsetInMilliseconds(&value)); - return value; -} - -template void impl_IInjectedInputMouseInfo::TimeOffsetInMilliseconds(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TimeOffsetInMilliseconds(value)); -} - -template Windows::UI::Input::Preview::Injection::InjectedInputKeyOptions impl_IInjectedInputKeyboardInfo::KeyOptions() const -{ - Windows::UI::Input::Preview::Injection::InjectedInputKeyOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyOptions(&value)); - return value; -} - -template void impl_IInjectedInputKeyboardInfo::KeyOptions(Windows::UI::Input::Preview::Injection::InjectedInputKeyOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeyOptions(value)); -} - -template uint16_t impl_IInjectedInputKeyboardInfo::ScanCode() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ScanCode(&value)); - return value; -} - -template void impl_IInjectedInputKeyboardInfo::ScanCode(uint16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScanCode(value)); -} - -template uint16_t impl_IInjectedInputKeyboardInfo::VirtualKey() const -{ - uint16_t value {}; - check_hresult(static_cast(static_cast(*this))->get_VirtualKey(&value)); - return value; -} - -template void impl_IInjectedInputKeyboardInfo::VirtualKey(uint16_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VirtualKey(value)); -} - -template void impl_IInputInjector::InjectKeyboardInput(const Windows::Foundation::Collections::IIterable & input) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InjectKeyboardInput(get(input))); -} - -template void impl_IInputInjector::InjectMouseInput(const Windows::Foundation::Collections::IIterable & input) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InjectMouseInput(get(input))); -} - -template void impl_IInputInjector::InitializeTouchInjection(Windows::UI::Input::Preview::Injection::InjectedInputVisualizationMode visualMode) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InitializeTouchInjection(visualMode)); -} - -template void impl_IInputInjector::InjectTouchInput(const Windows::Foundation::Collections::IIterable & input) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InjectTouchInput(get(input))); -} - -template void impl_IInputInjector::UninitializeTouchInjection() const -{ - check_hresult(static_cast(static_cast(*this))->abi_UninitializeTouchInjection()); -} - -template void impl_IInputInjector::InitializePenInjection(Windows::UI::Input::Preview::Injection::InjectedInputVisualizationMode visualMode) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InitializePenInjection(visualMode)); -} - -template void impl_IInputInjector::InjectPenInput(const Windows::UI::Input::Preview::Injection::InjectedInputPenInfo & input) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InjectPenInput(get(input))); -} - -template void impl_IInputInjector::UninitializePenInjection() const -{ - check_hresult(static_cast(static_cast(*this))->abi_UninitializePenInjection()); -} - -template void impl_IInputInjector::InjectShortcut(Windows::UI::Input::Preview::Injection::InjectedInputShortcut shortcut) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InjectShortcut(shortcut)); -} - -template Windows::UI::Input::Preview::Injection::InputInjector impl_IInputInjectorStatics::TryCreate() const -{ - Windows::UI::Input::Preview::Injection::InputInjector instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryCreate(put(instance))); - return instance; -} - -inline InjectedInputKeyboardInfo::InjectedInputKeyboardInfo() : - InjectedInputKeyboardInfo(activate_instance()) -{} - -inline InjectedInputMouseInfo::InjectedInputMouseInfo() : - InjectedInputMouseInfo(activate_instance()) -{} - -inline InjectedInputPenInfo::InjectedInputPenInfo() : - InjectedInputPenInfo(activate_instance()) -{} - -inline InjectedInputTouchInfo::InjectedInputTouchInfo() : - InjectedInputTouchInfo(activate_instance()) -{} - -inline Windows::UI::Input::Preview::Injection::InputInjector InputInjector::TryCreate() -{ - return get_activation_factory().TryCreate(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Input.Spatial.h b/10.0.14393.0/winrt/Windows.UI.Input.Spatial.h deleted file mode 100644 index c8c4052f1..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Input.Spatial.h +++ /dev/null @@ -1,2176 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Perception.Spatial.3.h" -#include "internal/Windows.Perception.3.h" -#include "internal/Windows.Perception.People.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Input.Spatial.3.h" -#include "Windows.UI.Input.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall add_RecognitionStarted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RecognitionStarted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RecognitionStarted(event_token token) noexcept override - { - try - { - this->shim().RecognitionStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RecognitionEnded(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RecognitionEnded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RecognitionEnded(event_token token) noexcept override - { - try - { - this->shim().RecognitionEnded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Tapped(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Tapped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Tapped(event_token token) noexcept override - { - try - { - this->shim().Tapped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_HoldStarted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().HoldStarted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HoldStarted(event_token token) noexcept override - { - try - { - this->shim().HoldStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_HoldCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().HoldCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HoldCompleted(event_token token) noexcept override - { - try - { - this->shim().HoldCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_HoldCanceled(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().HoldCanceled(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HoldCanceled(event_token token) noexcept override - { - try - { - this->shim().HoldCanceled(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ManipulationStarted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ManipulationStarted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ManipulationStarted(event_token token) noexcept override - { - try - { - this->shim().ManipulationStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ManipulationUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ManipulationUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ManipulationUpdated(event_token token) noexcept override - { - try - { - this->shim().ManipulationUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ManipulationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ManipulationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ManipulationCompleted(event_token token) noexcept override - { - try - { - this->shim().ManipulationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ManipulationCanceled(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ManipulationCanceled(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ManipulationCanceled(event_token token) noexcept override - { - try - { - this->shim().ManipulationCanceled(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NavigationStarted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NavigationStarted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NavigationStarted(event_token token) noexcept override - { - try - { - this->shim().NavigationStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NavigationUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NavigationUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NavigationUpdated(event_token token) noexcept override - { - try - { - this->shim().NavigationUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NavigationCompleted(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NavigationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NavigationCompleted(event_token token) noexcept override - { - try - { - this->shim().NavigationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NavigationCanceled(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NavigationCanceled(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NavigationCanceled(event_token token) noexcept override - { - try - { - this->shim().NavigationCanceled(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CaptureInteraction(abi_arg_in interaction) noexcept override - { - try - { - this->shim().CaptureInteraction(*reinterpret_cast(&interaction)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CancelPendingGestures() noexcept override - { - try - { - this->shim().CancelPendingGestures(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetGestureSettings(Windows::UI::Input::Spatial::SpatialGestureSettings settings, bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().TrySetGestureSettings(settings)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GestureSettings(Windows::UI::Input::Spatial::SpatialGestureSettings * value) noexcept override - { - try - { - *value = detach(this->shim().GestureSettings()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(Windows::UI::Input::Spatial::SpatialGestureSettings settings, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Create(settings)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetPointerPose(abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetPointerPose(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceState(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceState()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetPointerPose(abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetPointerPose(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Interaction(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Interaction()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_SourceDetected(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceDetected(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceDetected(event_token token) noexcept override - { - try - { - this->shim().SourceDetected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceLost(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceLost(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceLost(event_token token) noexcept override - { - try - { - this->shim().SourceLost(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceUpdated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceUpdated(event_token token) noexcept override - { - try - { - this->shim().SourceUpdated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourcePressed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourcePressed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourcePressed(event_token token) noexcept override - { - try - { - this->shim().SourcePressed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SourceReleased(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SourceReleased(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SourceReleased(event_token token) noexcept override - { - try - { - this->shim().SourceReleased(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_InteractionDetected(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().InteractionDetected(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_InteractionDetected(event_token token) noexcept override - { - try - { - this->shim().InteractionDetected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDetectedSourcesAtTimestamp(abi_arg_in timeStamp, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetDetectedSourcesAtTimestamp(*reinterpret_cast(&timeStamp))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_State(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Velocity(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Velocity()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Orientation(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryGetSourceLossMitigationDirection(abi_arg_in coordinateSystem, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TryGetSourceLossMitigationDirection(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceLossRisk(double * value) noexcept override - { - try - { - *value = detach(this->shim().SourceLossRisk()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetLocation(abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetLocation(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPressed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPressed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetPointerPose(abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetPointerPose(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetCumulativeDelta(abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetCumulativeDelta(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Translation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Translation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetPointerPose(abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetPointerPose(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetCumulativeDelta(abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetCumulativeDelta(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NormalizedOffset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NormalizedOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetPointerPose(abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetPointerPose(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsNavigatingX(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsNavigatingX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsNavigatingY(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsNavigatingY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsNavigatingZ(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsNavigatingZ()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NormalizedOffset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NormalizedOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Timestamp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Head(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Head()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryGetAtTimestamp(abi_arg_in coordinateSystem, abi_arg_in timestamp, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetAtTimestamp(*reinterpret_cast(&coordinateSystem), *reinterpret_cast(×tamp))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetPointerPose(abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetPointerPose(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsGesturePossible(Windows::UI::Input::Spatial::SpatialGestureSettings gesture, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGesturePossible(gesture)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InteractionSourceKind(Windows::UI::Input::Spatial::SpatialInteractionSourceKind * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionSourceKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryGetPointerPose(abi_arg_in coordinateSystem, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TryGetPointerPose(*reinterpret_cast(&coordinateSystem))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TapCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TapCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Input::Spatial { - -template Windows::Foundation::IReference impl_ISpatialInteractionSourceLocation::Position() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ISpatialInteractionSourceLocation::Velocity() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Velocity(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ISpatialInteractionSourceLocation2::Orientation() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Orientation(put(value))); - return value; -} - -template uint32_t impl_ISpatialInteractionSource::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialInteractionSource::Kind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::Foundation::IReference impl_ISpatialInteractionSourceProperties::TryGetSourceLossMitigationDirection(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->abi_TryGetSourceLossMitigationDirection(get(coordinateSystem), put(value))); - return value; -} - -template double impl_ISpatialInteractionSourceProperties::SourceLossRisk() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_SourceLossRisk(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceLocation impl_ISpatialInteractionSourceProperties::TryGetLocation(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceLocation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetLocation(get(coordinateSystem), put(value))); - return value; -} - -template Windows::Perception::PerceptionTimestamp impl_ISpatialPointerPose::Timestamp() const -{ - Windows::Perception::PerceptionTimestamp value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::Perception::People::HeadPose impl_ISpatialPointerPose::Head() const -{ - Windows::Perception::People::HeadPose value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Head(put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialPointerPose impl_ISpatialPointerPoseStatics::TryGetAtTimestamp(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Perception::PerceptionTimestamp & timestamp) const -{ - Windows::UI::Input::Spatial::SpatialPointerPose value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetAtTimestamp(get(coordinateSystem), get(timestamp), put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSource impl_ISpatialInteractionSourceState::Source() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceProperties impl_ISpatialInteractionSourceState::Properties() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template bool impl_ISpatialInteractionSourceState::IsPressed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPressed(&value)); - return value; -} - -template Windows::Perception::PerceptionTimestamp impl_ISpatialInteractionSourceState::Timestamp() const -{ - Windows::Perception::PerceptionTimestamp value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialPointerPose impl_ISpatialInteractionSourceState::TryGetPointerPose(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::UI::Input::Spatial::SpatialPointerPose value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetPointerPose(get(coordinateSystem), put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialRecognitionStartedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialPointerPose impl_ISpatialRecognitionStartedEventArgs::TryGetPointerPose(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::UI::Input::Spatial::SpatialPointerPose value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetPointerPose(get(coordinateSystem), put(value))); - return value; -} - -template bool impl_ISpatialRecognitionStartedEventArgs::IsGesturePossible(Windows::UI::Input::Spatial::SpatialGestureSettings gesture) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsGesturePossible(gesture, &value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialRecognitionEndedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialTappedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialPointerPose impl_ISpatialTappedEventArgs::TryGetPointerPose(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::UI::Input::Spatial::SpatialPointerPose value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetPointerPose(get(coordinateSystem), put(value))); - return value; -} - -template uint32_t impl_ISpatialTappedEventArgs::TapCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TapCount(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialHoldStartedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialPointerPose impl_ISpatialHoldStartedEventArgs::TryGetPointerPose(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::UI::Input::Spatial::SpatialPointerPose value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetPointerPose(get(coordinateSystem), put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialHoldCompletedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialHoldCanceledEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_ISpatialManipulationDelta::Translation() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_Translation(put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialManipulationStartedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialPointerPose impl_ISpatialManipulationStartedEventArgs::TryGetPointerPose(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::UI::Input::Spatial::SpatialPointerPose value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetPointerPose(get(coordinateSystem), put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialManipulationUpdatedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialManipulationDelta impl_ISpatialManipulationUpdatedEventArgs::TryGetCumulativeDelta(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::UI::Input::Spatial::SpatialManipulationDelta value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetCumulativeDelta(get(coordinateSystem), put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialManipulationCompletedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialManipulationDelta impl_ISpatialManipulationCompletedEventArgs::TryGetCumulativeDelta(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::UI::Input::Spatial::SpatialManipulationDelta value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetCumulativeDelta(get(coordinateSystem), put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialManipulationCanceledEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialNavigationStartedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialPointerPose impl_ISpatialNavigationStartedEventArgs::TryGetPointerPose(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::UI::Input::Spatial::SpatialPointerPose value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetPointerPose(get(coordinateSystem), put(value))); - return value; -} - -template bool impl_ISpatialNavigationStartedEventArgs::IsNavigatingX() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsNavigatingX(&value)); - return value; -} - -template bool impl_ISpatialNavigationStartedEventArgs::IsNavigatingY() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsNavigatingY(&value)); - return value; -} - -template bool impl_ISpatialNavigationStartedEventArgs::IsNavigatingZ() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsNavigatingZ(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialNavigationUpdatedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_ISpatialNavigationUpdatedEventArgs::NormalizedOffset() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_NormalizedOffset(put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialNavigationCompletedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::Foundation::Numerics::float3 impl_ISpatialNavigationCompletedEventArgs::NormalizedOffset() const -{ - Windows::Foundation::Numerics::float3 value {}; - check_hresult(static_cast(static_cast(*this))->get_NormalizedOffset(put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialNavigationCanceledEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceState impl_ISpatialInteraction::SourceState() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceState value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceState(put(value))); - return value; -} - -template event_token impl_ISpatialGestureRecognizer::RecognitionStarted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RecognitionStarted(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::RecognitionStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_RecognitionStarted, RecognitionStarted(handler)); -} - -template void impl_ISpatialGestureRecognizer::RecognitionStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RecognitionStarted(token)); -} - -template event_token impl_ISpatialGestureRecognizer::RecognitionEnded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RecognitionEnded(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::RecognitionEnded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_RecognitionEnded, RecognitionEnded(handler)); -} - -template void impl_ISpatialGestureRecognizer::RecognitionEnded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RecognitionEnded(token)); -} - -template event_token impl_ISpatialGestureRecognizer::Tapped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Tapped(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::Tapped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_Tapped, Tapped(handler)); -} - -template void impl_ISpatialGestureRecognizer::Tapped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Tapped(token)); -} - -template event_token impl_ISpatialGestureRecognizer::HoldStarted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_HoldStarted(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::HoldStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_HoldStarted, HoldStarted(handler)); -} - -template void impl_ISpatialGestureRecognizer::HoldStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HoldStarted(token)); -} - -template event_token impl_ISpatialGestureRecognizer::HoldCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_HoldCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::HoldCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_HoldCompleted, HoldCompleted(handler)); -} - -template void impl_ISpatialGestureRecognizer::HoldCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HoldCompleted(token)); -} - -template event_token impl_ISpatialGestureRecognizer::HoldCanceled(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_HoldCanceled(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::HoldCanceled(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_HoldCanceled, HoldCanceled(handler)); -} - -template void impl_ISpatialGestureRecognizer::HoldCanceled(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HoldCanceled(token)); -} - -template event_token impl_ISpatialGestureRecognizer::ManipulationStarted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ManipulationStarted(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::ManipulationStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_ManipulationStarted, ManipulationStarted(handler)); -} - -template void impl_ISpatialGestureRecognizer::ManipulationStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ManipulationStarted(token)); -} - -template event_token impl_ISpatialGestureRecognizer::ManipulationUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ManipulationUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::ManipulationUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_ManipulationUpdated, ManipulationUpdated(handler)); -} - -template void impl_ISpatialGestureRecognizer::ManipulationUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ManipulationUpdated(token)); -} - -template event_token impl_ISpatialGestureRecognizer::ManipulationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ManipulationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::ManipulationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_ManipulationCompleted, ManipulationCompleted(handler)); -} - -template void impl_ISpatialGestureRecognizer::ManipulationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ManipulationCompleted(token)); -} - -template event_token impl_ISpatialGestureRecognizer::ManipulationCanceled(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ManipulationCanceled(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::ManipulationCanceled(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_ManipulationCanceled, ManipulationCanceled(handler)); -} - -template void impl_ISpatialGestureRecognizer::ManipulationCanceled(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ManipulationCanceled(token)); -} - -template event_token impl_ISpatialGestureRecognizer::NavigationStarted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NavigationStarted(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::NavigationStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_NavigationStarted, NavigationStarted(handler)); -} - -template void impl_ISpatialGestureRecognizer::NavigationStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NavigationStarted(token)); -} - -template event_token impl_ISpatialGestureRecognizer::NavigationUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NavigationUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::NavigationUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_NavigationUpdated, NavigationUpdated(handler)); -} - -template void impl_ISpatialGestureRecognizer::NavigationUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NavigationUpdated(token)); -} - -template event_token impl_ISpatialGestureRecognizer::NavigationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NavigationCompleted(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::NavigationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_NavigationCompleted, NavigationCompleted(handler)); -} - -template void impl_ISpatialGestureRecognizer::NavigationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NavigationCompleted(token)); -} - -template event_token impl_ISpatialGestureRecognizer::NavigationCanceled(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NavigationCanceled(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialGestureRecognizer::NavigationCanceled(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialGestureRecognizer::remove_NavigationCanceled, NavigationCanceled(handler)); -} - -template void impl_ISpatialGestureRecognizer::NavigationCanceled(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NavigationCanceled(token)); -} - -template void impl_ISpatialGestureRecognizer::CaptureInteraction(const Windows::UI::Input::Spatial::SpatialInteraction & interaction) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CaptureInteraction(get(interaction))); -} - -template void impl_ISpatialGestureRecognizer::CancelPendingGestures() const -{ - check_hresult(static_cast(static_cast(*this))->abi_CancelPendingGestures()); -} - -template bool impl_ISpatialGestureRecognizer::TrySetGestureSettings(Windows::UI::Input::Spatial::SpatialGestureSettings settings) const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetGestureSettings(settings, &succeeded)); - return succeeded; -} - -template Windows::UI::Input::Spatial::SpatialGestureSettings impl_ISpatialGestureRecognizer::GestureSettings() const -{ - Windows::UI::Input::Spatial::SpatialGestureSettings value {}; - check_hresult(static_cast(static_cast(*this))->get_GestureSettings(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialGestureRecognizer impl_ISpatialGestureRecognizerFactory::Create(Windows::UI::Input::Spatial::SpatialGestureSettings settings) const -{ - Windows::UI::Input::Spatial::SpatialGestureRecognizer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(settings, put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceKind impl_ISpatialInteractionDetectedEventArgs::InteractionSourceKind() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceKind value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionSourceKind(&value)); - return value; -} - -template Windows::UI::Input::Spatial::SpatialPointerPose impl_ISpatialInteractionDetectedEventArgs::TryGetPointerPose(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem) const -{ - Windows::UI::Input::Spatial::SpatialPointerPose value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_TryGetPointerPose(get(coordinateSystem), put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteraction impl_ISpatialInteractionDetectedEventArgs::Interaction() const -{ - Windows::UI::Input::Spatial::SpatialInteraction value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Interaction(put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionSourceState impl_ISpatialInteractionSourceEventArgs::State() const -{ - Windows::UI::Input::Spatial::SpatialInteractionSourceState value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_State(put(value))); - return value; -} - -template event_token impl_ISpatialInteractionManager::SourceDetected(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceDetected(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialInteractionManager::SourceDetected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialInteractionManager::remove_SourceDetected, SourceDetected(handler)); -} - -template void impl_ISpatialInteractionManager::SourceDetected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceDetected(token)); -} - -template event_token impl_ISpatialInteractionManager::SourceLost(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceLost(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialInteractionManager::SourceLost(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialInteractionManager::remove_SourceLost, SourceLost(handler)); -} - -template void impl_ISpatialInteractionManager::SourceLost(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceLost(token)); -} - -template event_token impl_ISpatialInteractionManager::SourceUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceUpdated(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialInteractionManager::SourceUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialInteractionManager::remove_SourceUpdated, SourceUpdated(handler)); -} - -template void impl_ISpatialInteractionManager::SourceUpdated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceUpdated(token)); -} - -template event_token impl_ISpatialInteractionManager::SourcePressed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourcePressed(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialInteractionManager::SourcePressed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialInteractionManager::remove_SourcePressed, SourcePressed(handler)); -} - -template void impl_ISpatialInteractionManager::SourcePressed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourcePressed(token)); -} - -template event_token impl_ISpatialInteractionManager::SourceReleased(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SourceReleased(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialInteractionManager::SourceReleased(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialInteractionManager::remove_SourceReleased, SourceReleased(handler)); -} - -template void impl_ISpatialInteractionManager::SourceReleased(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SourceReleased(token)); -} - -template event_token impl_ISpatialInteractionManager::InteractionDetected(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_InteractionDetected(get(handler), &token)); - return token; -} - -template event_revoker impl_ISpatialInteractionManager::InteractionDetected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::Spatial::ISpatialInteractionManager::remove_InteractionDetected, InteractionDetected(handler)); -} - -template void impl_ISpatialInteractionManager::InteractionDetected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_InteractionDetected(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_ISpatialInteractionManager::GetDetectedSourcesAtTimestamp(const Windows::Perception::PerceptionTimestamp & timeStamp) const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->abi_GetDetectedSourcesAtTimestamp(get(timeStamp), put(value))); - return value; -} - -template Windows::UI::Input::Spatial::SpatialInteractionManager impl_ISpatialInteractionManagerStatics::GetForCurrentView() const -{ - Windows::UI::Input::Spatial::SpatialInteractionManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(value))); - return value; -} - -inline SpatialGestureRecognizer::SpatialGestureRecognizer(Windows::UI::Input::Spatial::SpatialGestureSettings settings) : - SpatialGestureRecognizer(get_activation_factory().Create(settings)) -{} - -inline Windows::UI::Input::Spatial::SpatialInteractionManager SpatialInteractionManager::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline Windows::UI::Input::Spatial::SpatialPointerPose SpatialPointerPose::TryGetAtTimestamp(const Windows::Perception::Spatial::SpatialCoordinateSystem & coordinateSystem, const Windows::Perception::PerceptionTimestamp & timestamp) -{ - return get_activation_factory().TryGetAtTimestamp(coordinateSystem, timestamp); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Input.h b/10.0.14393.0/winrt/Windows.UI.Input.h deleted file mode 100644 index 5568c784b..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Input.h +++ /dev/null @@ -1,4313 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Input.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.UI.Input.3.h" -#include "Windows.UI.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerDeviceType(Windows::Devices::Input::PointerDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().PointerDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CrossSlidingState(Windows::UI::Input::CrossSlidingState * value) noexcept override - { - try - { - *value = detach(this->shim().CrossSlidingState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerDeviceType(Windows::Devices::Input::PointerDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().PointerDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DraggingState(Windows::UI::Input::DraggingState * value) noexcept override - { - try - { - *value = detach(this->shim().DraggingState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Starting(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Starting(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Starting(event_token token) noexcept override - { - try - { - this->shim().Starting(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Completed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Completed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Completed(event_token token) noexcept override - { - try - { - this->shim().Completed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Canceled(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Canceled(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Canceled(event_token token) noexcept override - { - try - { - this->shim().Canceled(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::UI::Input::EdgeGestureKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out current) noexcept override - { - try - { - *current = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *current = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GestureSettings(Windows::UI::Input::GestureSettings * value) noexcept override - { - try - { - *value = detach(this->shim().GestureSettings()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GestureSettings(Windows::UI::Input::GestureSettings value) noexcept override - { - try - { - this->shim().GestureSettings(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInertial(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInertial()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowGestureFeedback(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowGestureFeedback()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShowGestureFeedback(bool value) noexcept override - { - try - { - this->shim().ShowGestureFeedback(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PivotCenter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PivotCenter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PivotCenter(abi_arg_in value) noexcept override - { - try - { - this->shim().PivotCenter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PivotRadius(float * value) noexcept override - { - try - { - *value = detach(this->shim().PivotRadius()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PivotRadius(float value) noexcept override - { - try - { - this->shim().PivotRadius(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InertiaTranslationDeceleration(float * value) noexcept override - { - try - { - *value = detach(this->shim().InertiaTranslationDeceleration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InertiaTranslationDeceleration(float value) noexcept override - { - try - { - this->shim().InertiaTranslationDeceleration(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InertiaRotationDeceleration(float * value) noexcept override - { - try - { - *value = detach(this->shim().InertiaRotationDeceleration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InertiaRotationDeceleration(float value) noexcept override - { - try - { - this->shim().InertiaRotationDeceleration(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InertiaExpansionDeceleration(float * value) noexcept override - { - try - { - *value = detach(this->shim().InertiaExpansionDeceleration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InertiaExpansionDeceleration(float value) noexcept override - { - try - { - this->shim().InertiaExpansionDeceleration(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InertiaTranslationDisplacement(float * value) noexcept override - { - try - { - *value = detach(this->shim().InertiaTranslationDisplacement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InertiaTranslationDisplacement(float value) noexcept override - { - try - { - this->shim().InertiaTranslationDisplacement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InertiaRotationAngle(float * value) noexcept override - { - try - { - *value = detach(this->shim().InertiaRotationAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InertiaRotationAngle(float value) noexcept override - { - try - { - this->shim().InertiaRotationAngle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InertiaExpansion(float * value) noexcept override - { - try - { - *value = detach(this->shim().InertiaExpansion()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InertiaExpansion(float value) noexcept override - { - try - { - this->shim().InertiaExpansion(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ManipulationExact(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ManipulationExact()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ManipulationExact(bool value) noexcept override - { - try - { - this->shim().ManipulationExact(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CrossSlideThresholds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CrossSlideThresholds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CrossSlideThresholds(abi_arg_in value) noexcept override - { - try - { - this->shim().CrossSlideThresholds(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CrossSlideHorizontally(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CrossSlideHorizontally()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CrossSlideHorizontally(bool value) noexcept override - { - try - { - this->shim().CrossSlideHorizontally(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CrossSlideExact(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CrossSlideExact()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CrossSlideExact(bool value) noexcept override - { - try - { - this->shim().CrossSlideExact(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoProcessInertia(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoProcessInertia()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoProcessInertia(bool value) noexcept override - { - try - { - this->shim().AutoProcessInertia(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MouseWheelParameters(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MouseWheelParameters()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanBeDoubleTap(abi_arg_in value, bool * canBeDoubleTap) noexcept override - { - try - { - *canBeDoubleTap = detach(this->shim().CanBeDoubleTap(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessDownEvent(abi_arg_in value) noexcept override - { - try - { - this->shim().ProcessDownEvent(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessMoveEvents(abi_arg_in> value) noexcept override - { - try - { - this->shim().ProcessMoveEvents(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessUpEvent(abi_arg_in value) noexcept override - { - try - { - this->shim().ProcessUpEvent(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessMouseWheelEvent(abi_arg_in value, bool isShiftKeyDown, bool isControlKeyDown) noexcept override - { - try - { - this->shim().ProcessMouseWheelEvent(*reinterpret_cast(&value), isShiftKeyDown, isControlKeyDown); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProcessInertia() noexcept override - { - try - { - this->shim().ProcessInertia(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CompleteGesture() noexcept override - { - try - { - this->shim().CompleteGesture(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Tapped(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().Tapped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Tapped(event_token cookie) noexcept override - { - try - { - this->shim().Tapped(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RightTapped(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().RightTapped(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RightTapped(event_token cookie) noexcept override - { - try - { - this->shim().RightTapped(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Holding(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().Holding(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Holding(event_token cookie) noexcept override - { - try - { - this->shim().Holding(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Dragging(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().Dragging(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Dragging(event_token cookie) noexcept override - { - try - { - this->shim().Dragging(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ManipulationStarted(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().ManipulationStarted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ManipulationStarted(event_token cookie) noexcept override - { - try - { - this->shim().ManipulationStarted(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ManipulationUpdated(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().ManipulationUpdated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ManipulationUpdated(event_token cookie) noexcept override - { - try - { - this->shim().ManipulationUpdated(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ManipulationInertiaStarting(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().ManipulationInertiaStarting(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ManipulationInertiaStarting(event_token cookie) noexcept override - { - try - { - this->shim().ManipulationInertiaStarting(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ManipulationCompleted(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().ManipulationCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ManipulationCompleted(event_token cookie) noexcept override - { - try - { - this->shim().ManipulationCompleted(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CrossSliding(abi_arg_in> handler, event_token * pCookie) noexcept override - { - try - { - *pCookie = detach(this->shim().CrossSliding(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CrossSliding(event_token cookie) noexcept override - { - try - { - this->shim().CrossSliding(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerDeviceType(Windows::Devices::Input::PointerDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().PointerDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HoldingState(Windows::UI::Input::HoldingState * value) noexcept override - { - try - { - *value = detach(this->shim().HoldingState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsInterceptionEnabledWhenInForeground(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInterceptionEnabledWhenInForeground()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsInterceptionEnabledWhenInForeground(bool value) noexcept override - { - try - { - this->shim().IsInterceptionEnabledWhenInForeground(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_KeyDown(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().KeyDown(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_KeyDown(event_token token) noexcept override - { - try - { - this->shim().KeyDown(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_KeyUp(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().KeyUp(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_KeyUp(event_token token) noexcept override - { - try - { - this->shim().KeyUp(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out keyboardDeliverySettings) noexcept override - { - try - { - *keyboardDeliverySettings = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *keyboardDeliverySettings = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerDeviceType(Windows::Devices::Input::PointerDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().PointerDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cumulative(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Cumulative()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Velocities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Velocities()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerDeviceType(Windows::Devices::Input::PointerDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().PointerDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Delta(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Delta()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cumulative(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Cumulative()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Velocities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Velocities()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerDeviceType(Windows::Devices::Input::PointerDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().PointerDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cumulative(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Cumulative()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerDeviceType(Windows::Devices::Input::PointerDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().PointerDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Delta(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Delta()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cumulative(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Cumulative()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Velocities(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Velocities()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CharTranslation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CharTranslation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CharTranslation(abi_arg_in value) noexcept override - { - try - { - this->shim().CharTranslation(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeltaScale(float * value) noexcept override - { - try - { - *value = detach(this->shim().DeltaScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DeltaScale(float value) noexcept override - { - try - { - this->shim().DeltaScale(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeltaRotationAngle(float * value) noexcept override - { - try - { - *value = detach(this->shim().DeltaRotationAngle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DeltaRotationAngle(float value) noexcept override - { - try - { - this->shim().DeltaRotationAngle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageTranslation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PageTranslation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PageTranslation(abi_arg_in value) noexcept override - { - try - { - this->shim().PageTranslation(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerDevice(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerDevice()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RawPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RawPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().PointerId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FrameId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FrameId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Timestamp(uint64_t * value) noexcept override - { - try - { - *value = detach(this->shim().Timestamp()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInContact(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInContact()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Properties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Properties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Pressure(float * value) noexcept override - { - try - { - *value = detach(this->shim().Pressure()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInverted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInverted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEraser(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEraser()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(float * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XTilt(float * value) noexcept override - { - try - { - *value = detach(this->shim().XTilt()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YTilt(float * value) noexcept override - { - try - { - *value = detach(this->shim().YTilt()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Twist(float * value) noexcept override - { - try - { - *value = detach(this->shim().Twist()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContactRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContactRectRaw(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContactRectRaw()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TouchConfidence(bool * value) noexcept override - { - try - { - *value = detach(this->shim().TouchConfidence()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLeftButtonPressed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsLeftButtonPressed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRightButtonPressed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRightButtonPressed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMiddleButtonPressed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMiddleButtonPressed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MouseWheelDelta(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MouseWheelDelta()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHorizontalMouseWheel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHorizontalMouseWheel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPrimary(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPrimary()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInRange(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInRange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsBarrelButtonPressed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBarrelButtonPressed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsXButton1Pressed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsXButton1Pressed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsXButton2Pressed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsXButton2Pressed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerUpdateKind(Windows::UI::Input::PointerUpdateKind * value) noexcept override - { - try - { - *value = detach(this->shim().PointerUpdateKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HasUsage(uint32_t usagePage, uint32_t usageId, bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasUsage(usagePage, usageId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetUsageValue(uint32_t usagePage, uint32_t usageId, int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetUsageValue(usagePage, usageId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ZDistance(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ZDistance()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetCurrentPoint(uint32_t pointerId, abi_arg_out pointerPoint) noexcept override - { - try - { - *pointerPoint = detach(this->shim().GetCurrentPoint(pointerId)); - return S_OK; - } - catch (...) - { - *pointerPoint = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIntermediatePoints(uint32_t pointerId, abi_arg_out> pointerPoints) noexcept override - { - try - { - *pointerPoints = detach(this->shim().GetIntermediatePoints(pointerId)); - return S_OK; - } - catch (...) - { - *pointerPoints = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCurrentPointTransformed(uint32_t pointerId, abi_arg_in transform, abi_arg_out pointerPoint) noexcept override - { - try - { - *pointerPoint = detach(this->shim().GetCurrentPoint(pointerId, *reinterpret_cast(&transform))); - return S_OK; - } - catch (...) - { - *pointerPoint = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIntermediatePointsTransformed(uint32_t pointerId, abi_arg_in transform, abi_arg_out> pointerPoints) noexcept override - { - try - { - *pointerPoints = detach(this->shim().GetIntermediatePoints(pointerId, *reinterpret_cast(&transform))); - return S_OK; - } - catch (...) - { - *pointerPoints = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Inverse(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Inverse()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryTransform(abi_arg_in inPoint, abi_arg_out outPoint, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TryTransform(*reinterpret_cast(&inPoint), *outPoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TransformBounds(abi_arg_in rect, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TransformBounds(*reinterpret_cast(&rect))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_IsContactFeedbackEnabled(bool value) noexcept override - { - try - { - this->shim().IsContactFeedbackEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsContactFeedbackEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsContactFeedbackEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsBarrelButtonFeedbackEnabled(bool value) noexcept override - { - try - { - this->shim().IsBarrelButtonFeedbackEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsBarrelButtonFeedbackEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBarrelButtonFeedbackEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out visualizationSettings) noexcept override - { - try - { - *visualizationSettings = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *visualizationSettings = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Menu(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Menu()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RotationResolutionInDegrees(double * value) noexcept override - { - try - { - *value = detach(this->shim().RotationResolutionInDegrees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RotationResolutionInDegrees(double value) noexcept override - { - try - { - this->shim().RotationResolutionInDegrees(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UseAutomaticHapticFeedback(bool * value) noexcept override - { - try - { - *value = detach(this->shim().UseAutomaticHapticFeedback()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UseAutomaticHapticFeedback(bool value) noexcept override - { - try - { - this->shim().UseAutomaticHapticFeedback(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ScreenContactStarted(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ScreenContactStarted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ScreenContactStarted(event_token cookie) noexcept override - { - try - { - this->shim().ScreenContactStarted(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ScreenContactEnded(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ScreenContactEnded(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ScreenContactEnded(event_token cookie) noexcept override - { - try - { - this->shim().ScreenContactEnded(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ScreenContactContinued(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ScreenContactContinued(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ScreenContactContinued(event_token cookie) noexcept override - { - try - { - this->shim().ScreenContactContinued(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ControlLost(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ControlLost(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ControlLost(event_token cookie) noexcept override - { - try - { - this->shim().ControlLost(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RotationChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RotationChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RotationChanged(event_token token) noexcept override - { - try - { - this->shim().RotationChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ButtonClicked(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ButtonClicked(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ButtonClicked(event_token token) noexcept override - { - try - { - this->shim().ButtonClicked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ControlAcquired(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ControlAcquired(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ControlAcquired(event_token cookie) noexcept override - { - try - { - this->shim().ControlAcquired(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SetDefaultMenuItems(abi_arg_in> buttons) noexcept override - { - try - { - this->shim().SetDefaultMenuItems(*reinterpret_cast *>(&buttons)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ResetToDefaultMenuItems() noexcept override - { - try - { - this->shim().ResetToDefaultMenuItems(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySelectDefaultMenuItem(Windows::UI::Input::RadialControllerSystemMenuItemKind type, bool * result) noexcept override - { - try - { - *result = detach(this->shim().TrySelectDefaultMenuItem(type)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out configuration) noexcept override - { - try - { - *configuration = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *configuration = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsEnabled(bool value) noexcept override - { - try - { - this->shim().IsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSelectedMenuItem(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetSelectedMenuItem()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectMenuItem(abi_arg_in menuItem) noexcept override - { - try - { - this->shim().SelectMenuItem(*reinterpret_cast(&menuItem)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySelectPreviouslySelectedMenuItem(bool * result) noexcept override - { - try - { - *result = detach(this->shim().TrySelectPreviouslySelectedMenuItem()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Tag(abi_arg_in value) noexcept override - { - try - { - this->shim().Tag(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Invoked(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Invoked(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Invoked(event_token token) noexcept override - { - try - { - this->shim().Invoked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromIcon(abi_arg_in displayText, abi_arg_in icon, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromIcon(*reinterpret_cast(&displayText), *reinterpret_cast(&icon))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromKnownIcon(abi_arg_in displayText, Windows::UI::Input::RadialControllerMenuKnownIcon value, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateFromKnownIcon(*reinterpret_cast(&displayText), value)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RotationDeltaInDegrees(double * value) noexcept override - { - try - { - *value = detach(this->shim().RotationDeltaInDegrees()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Bounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Contact(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Contact()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsSupported(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateForCurrentView(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateForCurrentView()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerDeviceType(Windows::Devices::Input::PointerDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().PointerDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PointerDeviceType(Windows::Devices::Input::PointerDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().PointerDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TapCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TapCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Input { - -template Windows::UI::Input::EdgeGestureKind impl_IEdgeGestureEventArgs::Kind() const -{ - Windows::UI::Input::EdgeGestureKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::UI::Input::EdgeGesture impl_IEdgeGestureStatics::GetForCurrentView() const -{ - Windows::UI::Input::EdgeGesture current { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(current))); - return current; -} - -template event_token impl_IEdgeGesture::Starting(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Starting(get(handler), &token)); - return token; -} - -template event_revoker impl_IEdgeGesture::Starting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IEdgeGesture::remove_Starting, Starting(handler)); -} - -template void impl_IEdgeGesture::Starting(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Starting(token)); -} - -template event_token impl_IEdgeGesture::Completed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Completed(get(handler), &token)); - return token; -} - -template event_revoker impl_IEdgeGesture::Completed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IEdgeGesture::remove_Completed, Completed(handler)); -} - -template void impl_IEdgeGesture::Completed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Completed(token)); -} - -template event_token impl_IEdgeGesture::Canceled(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Canceled(get(handler), &token)); - return token; -} - -template event_revoker impl_IEdgeGesture::Canceled(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IEdgeGesture::remove_Canceled, Canceled(handler)); -} - -template void impl_IEdgeGesture::Canceled(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Canceled(token)); -} - -template bool impl_IKeyboardDeliveryInterceptor::IsInterceptionEnabledWhenInForeground() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInterceptionEnabledWhenInForeground(&value)); - return value; -} - -template void impl_IKeyboardDeliveryInterceptor::IsInterceptionEnabledWhenInForeground(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsInterceptionEnabledWhenInForeground(value)); -} - -template event_token impl_IKeyboardDeliveryInterceptor::KeyDown(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_KeyDown(get(handler), &token)); - return token; -} - -template event_revoker impl_IKeyboardDeliveryInterceptor::KeyDown(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IKeyboardDeliveryInterceptor::remove_KeyDown, KeyDown(handler)); -} - -template void impl_IKeyboardDeliveryInterceptor::KeyDown(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_KeyDown(token)); -} - -template event_token impl_IKeyboardDeliveryInterceptor::KeyUp(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_KeyUp(get(handler), &token)); - return token; -} - -template event_revoker impl_IKeyboardDeliveryInterceptor::KeyUp(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IKeyboardDeliveryInterceptor::remove_KeyUp, KeyUp(handler)); -} - -template void impl_IKeyboardDeliveryInterceptor::KeyUp(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_KeyUp(token)); -} - -template Windows::UI::Input::KeyboardDeliveryInterceptor impl_IKeyboardDeliveryInterceptorStatics::GetForCurrentView() const -{ - Windows::UI::Input::KeyboardDeliveryInterceptor keyboardDeliverySettings { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(keyboardDeliverySettings))); - return keyboardDeliverySettings; -} - -template Windows::Devices::Input::PointerDeviceType impl_ITappedEventArgs::PointerDeviceType() const -{ - Windows::Devices::Input::PointerDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerDeviceType(&value)); - return value; -} - -template Windows::Foundation::Point impl_ITappedEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template uint32_t impl_ITappedEventArgs::TapCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TapCount(&value)); - return value; -} - -template Windows::Devices::Input::PointerDeviceType impl_IRightTappedEventArgs::PointerDeviceType() const -{ - Windows::Devices::Input::PointerDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerDeviceType(&value)); - return value; -} - -template Windows::Foundation::Point impl_IRightTappedEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Devices::Input::PointerDeviceType impl_IHoldingEventArgs::PointerDeviceType() const -{ - Windows::Devices::Input::PointerDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerDeviceType(&value)); - return value; -} - -template Windows::Foundation::Point impl_IHoldingEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::UI::Input::HoldingState impl_IHoldingEventArgs::HoldingState() const -{ - Windows::UI::Input::HoldingState value {}; - check_hresult(static_cast(static_cast(*this))->get_HoldingState(&value)); - return value; -} - -template Windows::Devices::Input::PointerDeviceType impl_IDraggingEventArgs::PointerDeviceType() const -{ - Windows::Devices::Input::PointerDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerDeviceType(&value)); - return value; -} - -template Windows::Foundation::Point impl_IDraggingEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::UI::Input::DraggingState impl_IDraggingEventArgs::DraggingState() const -{ - Windows::UI::Input::DraggingState value {}; - check_hresult(static_cast(static_cast(*this))->get_DraggingState(&value)); - return value; -} - -template Windows::Devices::Input::PointerDeviceType impl_IManipulationStartedEventArgs::PointerDeviceType() const -{ - Windows::Devices::Input::PointerDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerDeviceType(&value)); - return value; -} - -template Windows::Foundation::Point impl_IManipulationStartedEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::UI::Input::ManipulationDelta impl_IManipulationStartedEventArgs::Cumulative() const -{ - Windows::UI::Input::ManipulationDelta value {}; - check_hresult(static_cast(static_cast(*this))->get_Cumulative(put(value))); - return value; -} - -template Windows::Devices::Input::PointerDeviceType impl_IManipulationUpdatedEventArgs::PointerDeviceType() const -{ - Windows::Devices::Input::PointerDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerDeviceType(&value)); - return value; -} - -template Windows::Foundation::Point impl_IManipulationUpdatedEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::UI::Input::ManipulationDelta impl_IManipulationUpdatedEventArgs::Delta() const -{ - Windows::UI::Input::ManipulationDelta value {}; - check_hresult(static_cast(static_cast(*this))->get_Delta(put(value))); - return value; -} - -template Windows::UI::Input::ManipulationDelta impl_IManipulationUpdatedEventArgs::Cumulative() const -{ - Windows::UI::Input::ManipulationDelta value {}; - check_hresult(static_cast(static_cast(*this))->get_Cumulative(put(value))); - return value; -} - -template Windows::UI::Input::ManipulationVelocities impl_IManipulationUpdatedEventArgs::Velocities() const -{ - Windows::UI::Input::ManipulationVelocities value {}; - check_hresult(static_cast(static_cast(*this))->get_Velocities(put(value))); - return value; -} - -template Windows::Devices::Input::PointerDeviceType impl_IManipulationInertiaStartingEventArgs::PointerDeviceType() const -{ - Windows::Devices::Input::PointerDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerDeviceType(&value)); - return value; -} - -template Windows::Foundation::Point impl_IManipulationInertiaStartingEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::UI::Input::ManipulationDelta impl_IManipulationInertiaStartingEventArgs::Delta() const -{ - Windows::UI::Input::ManipulationDelta value {}; - check_hresult(static_cast(static_cast(*this))->get_Delta(put(value))); - return value; -} - -template Windows::UI::Input::ManipulationDelta impl_IManipulationInertiaStartingEventArgs::Cumulative() const -{ - Windows::UI::Input::ManipulationDelta value {}; - check_hresult(static_cast(static_cast(*this))->get_Cumulative(put(value))); - return value; -} - -template Windows::UI::Input::ManipulationVelocities impl_IManipulationInertiaStartingEventArgs::Velocities() const -{ - Windows::UI::Input::ManipulationVelocities value {}; - check_hresult(static_cast(static_cast(*this))->get_Velocities(put(value))); - return value; -} - -template Windows::Devices::Input::PointerDeviceType impl_IManipulationCompletedEventArgs::PointerDeviceType() const -{ - Windows::Devices::Input::PointerDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerDeviceType(&value)); - return value; -} - -template Windows::Foundation::Point impl_IManipulationCompletedEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::UI::Input::ManipulationDelta impl_IManipulationCompletedEventArgs::Cumulative() const -{ - Windows::UI::Input::ManipulationDelta value {}; - check_hresult(static_cast(static_cast(*this))->get_Cumulative(put(value))); - return value; -} - -template Windows::UI::Input::ManipulationVelocities impl_IManipulationCompletedEventArgs::Velocities() const -{ - Windows::UI::Input::ManipulationVelocities value {}; - check_hresult(static_cast(static_cast(*this))->get_Velocities(put(value))); - return value; -} - -template Windows::Devices::Input::PointerDeviceType impl_ICrossSlidingEventArgs::PointerDeviceType() const -{ - Windows::Devices::Input::PointerDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerDeviceType(&value)); - return value; -} - -template Windows::Foundation::Point impl_ICrossSlidingEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::UI::Input::CrossSlidingState impl_ICrossSlidingEventArgs::CrossSlidingState() const -{ - Windows::UI::Input::CrossSlidingState value {}; - check_hresult(static_cast(static_cast(*this))->get_CrossSlidingState(&value)); - return value; -} - -template Windows::Foundation::Point impl_IMouseWheelParameters::CharTranslation() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_CharTranslation(put(value))); - return value; -} - -template void impl_IMouseWheelParameters::CharTranslation(const Windows::Foundation::Point & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CharTranslation(get(value))); -} - -template float impl_IMouseWheelParameters::DeltaScale() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_DeltaScale(&value)); - return value; -} - -template void impl_IMouseWheelParameters::DeltaScale(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DeltaScale(value)); -} - -template float impl_IMouseWheelParameters::DeltaRotationAngle() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_DeltaRotationAngle(&value)); - return value; -} - -template void impl_IMouseWheelParameters::DeltaRotationAngle(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DeltaRotationAngle(value)); -} - -template Windows::Foundation::Point impl_IMouseWheelParameters::PageTranslation() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_PageTranslation(put(value))); - return value; -} - -template void impl_IMouseWheelParameters::PageTranslation(const Windows::Foundation::Point & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PageTranslation(get(value))); -} - -template Windows::UI::Input::GestureSettings impl_IGestureRecognizer::GestureSettings() const -{ - Windows::UI::Input::GestureSettings value {}; - check_hresult(static_cast(static_cast(*this))->get_GestureSettings(&value)); - return value; -} - -template void impl_IGestureRecognizer::GestureSettings(Windows::UI::Input::GestureSettings value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GestureSettings(value)); -} - -template bool impl_IGestureRecognizer::IsInertial() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInertial(&value)); - return value; -} - -template bool impl_IGestureRecognizer::IsActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActive(&value)); - return value; -} - -template bool impl_IGestureRecognizer::ShowGestureFeedback() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShowGestureFeedback(&value)); - return value; -} - -template void impl_IGestureRecognizer::ShowGestureFeedback(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShowGestureFeedback(value)); -} - -template Windows::Foundation::Point impl_IGestureRecognizer::PivotCenter() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_PivotCenter(put(value))); - return value; -} - -template void impl_IGestureRecognizer::PivotCenter(const Windows::Foundation::Point & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PivotCenter(get(value))); -} - -template float impl_IGestureRecognizer::PivotRadius() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_PivotRadius(&value)); - return value; -} - -template void impl_IGestureRecognizer::PivotRadius(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PivotRadius(value)); -} - -template float impl_IGestureRecognizer::InertiaTranslationDeceleration() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_InertiaTranslationDeceleration(&value)); - return value; -} - -template void impl_IGestureRecognizer::InertiaTranslationDeceleration(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InertiaTranslationDeceleration(value)); -} - -template float impl_IGestureRecognizer::InertiaRotationDeceleration() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_InertiaRotationDeceleration(&value)); - return value; -} - -template void impl_IGestureRecognizer::InertiaRotationDeceleration(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InertiaRotationDeceleration(value)); -} - -template float impl_IGestureRecognizer::InertiaExpansionDeceleration() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_InertiaExpansionDeceleration(&value)); - return value; -} - -template void impl_IGestureRecognizer::InertiaExpansionDeceleration(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InertiaExpansionDeceleration(value)); -} - -template float impl_IGestureRecognizer::InertiaTranslationDisplacement() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_InertiaTranslationDisplacement(&value)); - return value; -} - -template void impl_IGestureRecognizer::InertiaTranslationDisplacement(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InertiaTranslationDisplacement(value)); -} - -template float impl_IGestureRecognizer::InertiaRotationAngle() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_InertiaRotationAngle(&value)); - return value; -} - -template void impl_IGestureRecognizer::InertiaRotationAngle(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InertiaRotationAngle(value)); -} - -template float impl_IGestureRecognizer::InertiaExpansion() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_InertiaExpansion(&value)); - return value; -} - -template void impl_IGestureRecognizer::InertiaExpansion(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InertiaExpansion(value)); -} - -template bool impl_IGestureRecognizer::ManipulationExact() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ManipulationExact(&value)); - return value; -} - -template void impl_IGestureRecognizer::ManipulationExact(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ManipulationExact(value)); -} - -template Windows::UI::Input::CrossSlideThresholds impl_IGestureRecognizer::CrossSlideThresholds() const -{ - Windows::UI::Input::CrossSlideThresholds value {}; - check_hresult(static_cast(static_cast(*this))->get_CrossSlideThresholds(put(value))); - return value; -} - -template void impl_IGestureRecognizer::CrossSlideThresholds(const Windows::UI::Input::CrossSlideThresholds & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CrossSlideThresholds(get(value))); -} - -template bool impl_IGestureRecognizer::CrossSlideHorizontally() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CrossSlideHorizontally(&value)); - return value; -} - -template void impl_IGestureRecognizer::CrossSlideHorizontally(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CrossSlideHorizontally(value)); -} - -template bool impl_IGestureRecognizer::CrossSlideExact() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CrossSlideExact(&value)); - return value; -} - -template void impl_IGestureRecognizer::CrossSlideExact(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CrossSlideExact(value)); -} - -template bool impl_IGestureRecognizer::AutoProcessInertia() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoProcessInertia(&value)); - return value; -} - -template void impl_IGestureRecognizer::AutoProcessInertia(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoProcessInertia(value)); -} - -template Windows::UI::Input::MouseWheelParameters impl_IGestureRecognizer::MouseWheelParameters() const -{ - Windows::UI::Input::MouseWheelParameters value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MouseWheelParameters(put(value))); - return value; -} - -template bool impl_IGestureRecognizer::CanBeDoubleTap(const Windows::UI::Input::PointerPoint & value) const -{ - bool canBeDoubleTap {}; - check_hresult(static_cast(static_cast(*this))->abi_CanBeDoubleTap(get(value), &canBeDoubleTap)); - return canBeDoubleTap; -} - -template void impl_IGestureRecognizer::ProcessDownEvent(const Windows::UI::Input::PointerPoint & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProcessDownEvent(get(value))); -} - -template void impl_IGestureRecognizer::ProcessMoveEvents(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProcessMoveEvents(get(value))); -} - -template void impl_IGestureRecognizer::ProcessUpEvent(const Windows::UI::Input::PointerPoint & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProcessUpEvent(get(value))); -} - -template void impl_IGestureRecognizer::ProcessMouseWheelEvent(const Windows::UI::Input::PointerPoint & value, bool isShiftKeyDown, bool isControlKeyDown) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProcessMouseWheelEvent(get(value), isShiftKeyDown, isControlKeyDown)); -} - -template void impl_IGestureRecognizer::ProcessInertia() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ProcessInertia()); -} - -template void impl_IGestureRecognizer::CompleteGesture() const -{ - check_hresult(static_cast(static_cast(*this))->abi_CompleteGesture()); -} - -template event_token impl_IGestureRecognizer::Tapped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Tapped(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_IGestureRecognizer::Tapped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IGestureRecognizer::remove_Tapped, Tapped(handler)); -} - -template void impl_IGestureRecognizer::Tapped(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Tapped(cookie)); -} - -template event_token impl_IGestureRecognizer::RightTapped(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_RightTapped(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_IGestureRecognizer::RightTapped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IGestureRecognizer::remove_RightTapped, RightTapped(handler)); -} - -template void impl_IGestureRecognizer::RightTapped(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RightTapped(cookie)); -} - -template event_token impl_IGestureRecognizer::Holding(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Holding(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_IGestureRecognizer::Holding(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IGestureRecognizer::remove_Holding, Holding(handler)); -} - -template void impl_IGestureRecognizer::Holding(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Holding(cookie)); -} - -template event_token impl_IGestureRecognizer::Dragging(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_Dragging(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_IGestureRecognizer::Dragging(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IGestureRecognizer::remove_Dragging, Dragging(handler)); -} - -template void impl_IGestureRecognizer::Dragging(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Dragging(cookie)); -} - -template event_token impl_IGestureRecognizer::ManipulationStarted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ManipulationStarted(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_IGestureRecognizer::ManipulationStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IGestureRecognizer::remove_ManipulationStarted, ManipulationStarted(handler)); -} - -template void impl_IGestureRecognizer::ManipulationStarted(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ManipulationStarted(cookie)); -} - -template event_token impl_IGestureRecognizer::ManipulationUpdated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ManipulationUpdated(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_IGestureRecognizer::ManipulationUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IGestureRecognizer::remove_ManipulationUpdated, ManipulationUpdated(handler)); -} - -template void impl_IGestureRecognizer::ManipulationUpdated(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ManipulationUpdated(cookie)); -} - -template event_token impl_IGestureRecognizer::ManipulationInertiaStarting(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ManipulationInertiaStarting(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_IGestureRecognizer::ManipulationInertiaStarting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IGestureRecognizer::remove_ManipulationInertiaStarting, ManipulationInertiaStarting(handler)); -} - -template void impl_IGestureRecognizer::ManipulationInertiaStarting(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ManipulationInertiaStarting(cookie)); -} - -template event_token impl_IGestureRecognizer::ManipulationCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_ManipulationCompleted(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_IGestureRecognizer::ManipulationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IGestureRecognizer::remove_ManipulationCompleted, ManipulationCompleted(handler)); -} - -template void impl_IGestureRecognizer::ManipulationCompleted(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ManipulationCompleted(cookie)); -} - -template event_token impl_IGestureRecognizer::CrossSliding(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token pCookie {}; - check_hresult(static_cast(static_cast(*this))->add_CrossSliding(get(handler), &pCookie)); - return pCookie; -} - -template event_revoker impl_IGestureRecognizer::CrossSliding(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IGestureRecognizer::remove_CrossSliding, CrossSliding(handler)); -} - -template void impl_IGestureRecognizer::CrossSliding(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CrossSliding(cookie)); -} - -template Windows::UI::Input::PointerPoint impl_IPointerPointStatics::GetCurrentPoint(uint32_t pointerId) const -{ - Windows::UI::Input::PointerPoint pointerPoint { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentPoint(pointerId, put(pointerPoint))); - return pointerPoint; -} - -template Windows::Foundation::Collections::IVector impl_IPointerPointStatics::GetIntermediatePoints(uint32_t pointerId) const -{ - Windows::Foundation::Collections::IVector pointerPoints; - check_hresult(static_cast(static_cast(*this))->abi_GetIntermediatePoints(pointerId, put(pointerPoints))); - return pointerPoints; -} - -template Windows::UI::Input::PointerPoint impl_IPointerPointStatics::GetCurrentPoint(uint32_t pointerId, const Windows::UI::Input::IPointerPointTransform & transform) const -{ - Windows::UI::Input::PointerPoint pointerPoint { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetCurrentPointTransformed(pointerId, get(transform), put(pointerPoint))); - return pointerPoint; -} - -template Windows::Foundation::Collections::IVector impl_IPointerPointStatics::GetIntermediatePoints(uint32_t pointerId, const Windows::UI::Input::IPointerPointTransform & transform) const -{ - Windows::Foundation::Collections::IVector pointerPoints; - check_hresult(static_cast(static_cast(*this))->abi_GetIntermediatePointsTransformed(pointerId, get(transform), put(pointerPoints))); - return pointerPoints; -} - -template Windows::UI::Input::IPointerPointTransform impl_IPointerPointTransform::Inverse() const -{ - Windows::UI::Input::IPointerPointTransform value; - check_hresult(static_cast(static_cast(*this))->get_Inverse(put(value))); - return value; -} - -template bool impl_IPointerPointTransform::TryTransform(const Windows::Foundation::Point & inPoint, Windows::Foundation::Point & outPoint) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_TryTransform(get(inPoint), put(outPoint), &returnValue)); - return returnValue; -} - -template Windows::Foundation::Rect impl_IPointerPointTransform::TransformBounds(const Windows::Foundation::Rect & rect) const -{ - Windows::Foundation::Rect returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_TransformBounds(get(rect), put(returnValue))); - return returnValue; -} - -template Windows::Devices::Input::PointerDevice impl_IPointerPoint::PointerDevice() const -{ - Windows::Devices::Input::PointerDevice value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PointerDevice(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IPointerPoint::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IPointerPoint::RawPosition() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_RawPosition(put(value))); - return value; -} - -template uint32_t impl_IPointerPoint::PointerId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerId(&value)); - return value; -} - -template uint32_t impl_IPointerPoint::FrameId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FrameId(&value)); - return value; -} - -template uint64_t impl_IPointerPoint::Timestamp() const -{ - uint64_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Timestamp(&value)); - return value; -} - -template bool impl_IPointerPoint::IsInContact() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInContact(&value)); - return value; -} - -template Windows::UI::Input::PointerPointProperties impl_IPointerPoint::Properties() const -{ - Windows::UI::Input::PointerPointProperties value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Properties(put(value))); - return value; -} - -template float impl_IPointerPointProperties::Pressure() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Pressure(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsInverted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInverted(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsEraser() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEraser(&value)); - return value; -} - -template float impl_IPointerPointProperties::Orientation() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template float impl_IPointerPointProperties::XTilt() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_XTilt(&value)); - return value; -} - -template float impl_IPointerPointProperties::YTilt() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_YTilt(&value)); - return value; -} - -template float impl_IPointerPointProperties::Twist() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Twist(&value)); - return value; -} - -template Windows::Foundation::Rect impl_IPointerPointProperties::ContactRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_ContactRect(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IPointerPointProperties::ContactRectRaw() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_ContactRectRaw(put(value))); - return value; -} - -template bool impl_IPointerPointProperties::TouchConfidence() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_TouchConfidence(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsLeftButtonPressed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsLeftButtonPressed(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsRightButtonPressed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRightButtonPressed(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsMiddleButtonPressed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMiddleButtonPressed(&value)); - return value; -} - -template int32_t impl_IPointerPointProperties::MouseWheelDelta() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MouseWheelDelta(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsHorizontalMouseWheel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsHorizontalMouseWheel(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsPrimary() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPrimary(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsInRange() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInRange(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsBarrelButtonPressed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsBarrelButtonPressed(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsXButton1Pressed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsXButton1Pressed(&value)); - return value; -} - -template bool impl_IPointerPointProperties::IsXButton2Pressed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsXButton2Pressed(&value)); - return value; -} - -template Windows::UI::Input::PointerUpdateKind impl_IPointerPointProperties::PointerUpdateKind() const -{ - Windows::UI::Input::PointerUpdateKind value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerUpdateKind(&value)); - return value; -} - -template bool impl_IPointerPointProperties::HasUsage(uint32_t usagePage, uint32_t usageId) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_HasUsage(usagePage, usageId, &value)); - return value; -} - -template int32_t impl_IPointerPointProperties::GetUsageValue(uint32_t usagePage, uint32_t usageId) const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetUsageValue(usagePage, usageId, &value)); - return value; -} - -template Windows::Foundation::IReference impl_IPointerPointProperties2::ZDistance() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ZDistance(put(value))); - return value; -} - -template void impl_IPointerVisualizationSettings::IsContactFeedbackEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsContactFeedbackEnabled(value)); -} - -template bool impl_IPointerVisualizationSettings::IsContactFeedbackEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsContactFeedbackEnabled(&value)); - return value; -} - -template void impl_IPointerVisualizationSettings::IsBarrelButtonFeedbackEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsBarrelButtonFeedbackEnabled(value)); -} - -template bool impl_IPointerVisualizationSettings::IsBarrelButtonFeedbackEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsBarrelButtonFeedbackEnabled(&value)); - return value; -} - -template Windows::UI::Input::PointerVisualizationSettings impl_IPointerVisualizationSettingsStatics::GetForCurrentView() const -{ - Windows::UI::Input::PointerVisualizationSettings visualizationSettings { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(visualizationSettings))); - return visualizationSettings; -} - -template Windows::Foundation::Rect impl_IRadialControllerScreenContact::Bounds() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_Bounds(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IRadialControllerScreenContact::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template double impl_IRadialControllerRotationChangedEventArgs::RotationDeltaInDegrees() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_RotationDeltaInDegrees(&value)); - return value; -} - -template Windows::UI::Input::RadialControllerScreenContact impl_IRadialControllerRotationChangedEventArgs::Contact() const -{ - Windows::UI::Input::RadialControllerScreenContact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template Windows::UI::Input::RadialControllerScreenContact impl_IRadialControllerScreenContactStartedEventArgs::Contact() const -{ - Windows::UI::Input::RadialControllerScreenContact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template Windows::UI::Input::RadialControllerScreenContact impl_IRadialControllerScreenContactContinuedEventArgs::Contact() const -{ - Windows::UI::Input::RadialControllerScreenContact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template Windows::UI::Input::RadialControllerScreenContact impl_IRadialControllerButtonClickedEventArgs::Contact() const -{ - Windows::UI::Input::RadialControllerScreenContact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template Windows::UI::Input::RadialControllerScreenContact impl_IRadialControllerControlAcquiredEventArgs::Contact() const -{ - Windows::UI::Input::RadialControllerScreenContact value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Contact(put(value))); - return value; -} - -template Windows::UI::Input::RadialControllerMenu impl_IRadialController::Menu() const -{ - Windows::UI::Input::RadialControllerMenu value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Menu(put(value))); - return value; -} - -template double impl_IRadialController::RotationResolutionInDegrees() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_RotationResolutionInDegrees(&value)); - return value; -} - -template void impl_IRadialController::RotationResolutionInDegrees(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RotationResolutionInDegrees(value)); -} - -template bool impl_IRadialController::UseAutomaticHapticFeedback() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_UseAutomaticHapticFeedback(&value)); - return value; -} - -template void impl_IRadialController::UseAutomaticHapticFeedback(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UseAutomaticHapticFeedback(value)); -} - -template event_token impl_IRadialController::ScreenContactStarted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ScreenContactStarted(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IRadialController::ScreenContactStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IRadialController::remove_ScreenContactStarted, ScreenContactStarted(handler)); -} - -template void impl_IRadialController::ScreenContactStarted(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ScreenContactStarted(cookie)); -} - -template event_token impl_IRadialController::ScreenContactEnded(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ScreenContactEnded(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IRadialController::ScreenContactEnded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IRadialController::remove_ScreenContactEnded, ScreenContactEnded(handler)); -} - -template void impl_IRadialController::ScreenContactEnded(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ScreenContactEnded(cookie)); -} - -template event_token impl_IRadialController::ScreenContactContinued(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ScreenContactContinued(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IRadialController::ScreenContactContinued(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IRadialController::remove_ScreenContactContinued, ScreenContactContinued(handler)); -} - -template void impl_IRadialController::ScreenContactContinued(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ScreenContactContinued(cookie)); -} - -template event_token impl_IRadialController::ControlLost(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ControlLost(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IRadialController::ControlLost(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IRadialController::remove_ControlLost, ControlLost(handler)); -} - -template void impl_IRadialController::ControlLost(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ControlLost(cookie)); -} - -template event_token impl_IRadialController::RotationChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RotationChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IRadialController::RotationChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IRadialController::remove_RotationChanged, RotationChanged(handler)); -} - -template void impl_IRadialController::RotationChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RotationChanged(token)); -} - -template event_token impl_IRadialController::ButtonClicked(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ButtonClicked(get(handler), &token)); - return token; -} - -template event_revoker impl_IRadialController::ButtonClicked(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IRadialController::remove_ButtonClicked, ButtonClicked(handler)); -} - -template void impl_IRadialController::ButtonClicked(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ButtonClicked(token)); -} - -template event_token impl_IRadialController::ControlAcquired(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ControlAcquired(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IRadialController::ControlAcquired(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IRadialController::remove_ControlAcquired, ControlAcquired(handler)); -} - -template void impl_IRadialController::ControlAcquired(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ControlAcquired(cookie)); -} - -template bool impl_IRadialControllerStatics::IsSupported() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsSupported(&result)); - return result; -} - -template Windows::UI::Input::RadialController impl_IRadialControllerStatics::CreateForCurrentView() const -{ - Windows::UI::Input::RadialController result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateForCurrentView(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IRadialControllerMenu::Items() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Items(put(value))); - return value; -} - -template bool impl_IRadialControllerMenu::IsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEnabled(&value)); - return value; -} - -template void impl_IRadialControllerMenu::IsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsEnabled(value)); -} - -template Windows::UI::Input::RadialControllerMenuItem impl_IRadialControllerMenu::GetSelectedMenuItem() const -{ - Windows::UI::Input::RadialControllerMenuItem result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetSelectedMenuItem(put(result))); - return result; -} - -template void impl_IRadialControllerMenu::SelectMenuItem(const Windows::UI::Input::RadialControllerMenuItem & menuItem) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SelectMenuItem(get(menuItem))); -} - -template bool impl_IRadialControllerMenu::TrySelectPreviouslySelectedMenuItem() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySelectPreviouslySelectedMenuItem(&result)); - return result; -} - -template Windows::UI::Input::RadialControllerMenuItem impl_IRadialControllerMenuItemStatics::CreateFromIcon(hstring_ref displayText, const Windows::Storage::Streams::RandomAccessStreamReference & icon) const -{ - Windows::UI::Input::RadialControllerMenuItem result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromIcon(get(displayText), get(icon), put(result))); - return result; -} - -template Windows::UI::Input::RadialControllerMenuItem impl_IRadialControllerMenuItemStatics::CreateFromKnownIcon(hstring_ref displayText, Windows::UI::Input::RadialControllerMenuKnownIcon value) const -{ - Windows::UI::Input::RadialControllerMenuItem result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromKnownIcon(get(displayText), value, put(result))); - return result; -} - -template hstring impl_IRadialControllerMenuItem::DisplayText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayText(put(value))); - return value; -} - -template Windows::IInspectable impl_IRadialControllerMenuItem::Tag() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Tag(put(value))); - return value; -} - -template void impl_IRadialControllerMenuItem::Tag(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Tag(get(value))); -} - -template event_token impl_IRadialControllerMenuItem::Invoked(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Invoked(get(handler), &token)); - return token; -} - -template event_revoker impl_IRadialControllerMenuItem::Invoked(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Input::IRadialControllerMenuItem::remove_Invoked, Invoked(handler)); -} - -template void impl_IRadialControllerMenuItem::Invoked(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Invoked(token)); -} - -template void impl_IRadialControllerConfiguration::SetDefaultMenuItems(const Windows::Foundation::Collections::IIterable & buttons) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDefaultMenuItems(get(buttons))); -} - -template void impl_IRadialControllerConfiguration::ResetToDefaultMenuItems() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ResetToDefaultMenuItems()); -} - -template bool impl_IRadialControllerConfiguration::TrySelectDefaultMenuItem(Windows::UI::Input::RadialControllerSystemMenuItemKind type) const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySelectDefaultMenuItem(type, &result)); - return result; -} - -template Windows::UI::Input::RadialControllerConfiguration impl_IRadialControllerConfigurationStatics::GetForCurrentView() const -{ - Windows::UI::Input::RadialControllerConfiguration configuration { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(configuration))); - return configuration; -} - -inline Windows::UI::Input::EdgeGesture EdgeGesture::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline GestureRecognizer::GestureRecognizer() : - GestureRecognizer(activate_instance()) -{} - -inline Windows::UI::Input::KeyboardDeliveryInterceptor KeyboardDeliveryInterceptor::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline Windows::UI::Input::PointerPoint PointerPoint::GetCurrentPoint(uint32_t pointerId) -{ - return get_activation_factory().GetCurrentPoint(pointerId); -} - -inline Windows::Foundation::Collections::IVector PointerPoint::GetIntermediatePoints(uint32_t pointerId) -{ - return get_activation_factory().GetIntermediatePoints(pointerId); -} - -inline Windows::UI::Input::PointerPoint PointerPoint::GetCurrentPoint(uint32_t pointerId, const Windows::UI::Input::IPointerPointTransform & transform) -{ - return get_activation_factory().GetCurrentPoint(pointerId, transform); -} - -inline Windows::Foundation::Collections::IVector PointerPoint::GetIntermediatePoints(uint32_t pointerId, const Windows::UI::Input::IPointerPointTransform & transform) -{ - return get_activation_factory().GetIntermediatePoints(pointerId, transform); -} - -inline Windows::UI::Input::PointerVisualizationSettings PointerVisualizationSettings::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline bool RadialController::IsSupported() -{ - return get_activation_factory().IsSupported(); -} - -inline Windows::UI::Input::RadialController RadialController::CreateForCurrentView() -{ - return get_activation_factory().CreateForCurrentView(); -} - -inline Windows::UI::Input::RadialControllerConfiguration RadialControllerConfiguration::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline Windows::UI::Input::RadialControllerMenuItem RadialControllerMenuItem::CreateFromIcon(hstring_ref displayText, const Windows::Storage::Streams::RandomAccessStreamReference & icon) -{ - return get_activation_factory().CreateFromIcon(displayText, icon); -} - -inline Windows::UI::Input::RadialControllerMenuItem RadialControllerMenuItem::CreateFromKnownIcon(hstring_ref displayText, Windows::UI::Input::RadialControllerMenuKnownIcon value) -{ - return get_activation_factory().CreateFromKnownIcon(displayText, value); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Notifications.Management.h b/10.0.14393.0/winrt/Windows.UI.Notifications.Management.h deleted file mode 100644 index 575584d1d..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Notifications.Management.h +++ /dev/null @@ -1,217 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Notifications.3.h" -#include "internal/Windows.UI.Notifications.Management.3.h" -#include "Windows.UI.Notifications.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RequestAccessAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().RequestAccessAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAccessStatus(Windows::UI::Notifications::Management::UserNotificationListenerAccessStatus * accessStatus) noexcept override - { - try - { - *accessStatus = detach(this->shim().GetAccessStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NotificationChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NotificationChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NotificationChanged(event_token token) noexcept override - { - try - { - this->shim().NotificationChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNotificationsAsync(Windows::UI::Notifications::NotificationKinds kinds, abi_arg_out>> result) noexcept override - { - try - { - *result = detach(this->shim().GetNotificationsAsync(kinds)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNotification(uint32_t notificationId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetNotification(notificationId)); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearNotifications() noexcept override - { - try - { - this->shim().ClearNotifications(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveNotification(uint32_t notificationId) noexcept override - { - try - { - this->shim().RemoveNotification(notificationId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Current(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().Current()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Notifications::Management { - -template Windows::UI::Notifications::Management::UserNotificationListener impl_IUserNotificationListenerStatics::Current() const -{ - Windows::UI::Notifications::Management::UserNotificationListener result { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Current(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IUserNotificationListener::RequestAccessAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_RequestAccessAsync(put(result))); - return result; -} - -template Windows::UI::Notifications::Management::UserNotificationListenerAccessStatus impl_IUserNotificationListener::GetAccessStatus() const -{ - Windows::UI::Notifications::Management::UserNotificationListenerAccessStatus accessStatus {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAccessStatus(&accessStatus)); - return accessStatus; -} - -template event_token impl_IUserNotificationListener::NotificationChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NotificationChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IUserNotificationListener::NotificationChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Notifications::Management::IUserNotificationListener::remove_NotificationChanged, NotificationChanged(handler)); -} - -template void impl_IUserNotificationListener::NotificationChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NotificationChanged(token)); -} - -template Windows::Foundation::IAsyncOperation> impl_IUserNotificationListener::GetNotificationsAsync(Windows::UI::Notifications::NotificationKinds kinds) const -{ - Windows::Foundation::IAsyncOperation> result; - check_hresult(static_cast(static_cast(*this))->abi_GetNotificationsAsync(kinds, put(result))); - return result; -} - -template Windows::UI::Notifications::UserNotification impl_IUserNotificationListener::GetNotification(uint32_t notificationId) const -{ - Windows::UI::Notifications::UserNotification result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetNotification(notificationId, put(result))); - return result; -} - -template void impl_IUserNotificationListener::ClearNotifications() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearNotifications()); -} - -template void impl_IUserNotificationListener::RemoveNotification(uint32_t notificationId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveNotification(notificationId)); -} - -inline Windows::UI::Notifications::Management::UserNotificationListener UserNotificationListener::Current() -{ - return get_activation_factory().Current(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Notifications.h b/10.0.14393.0/winrt/Windows.UI.Notifications.h deleted file mode 100644 index 74a537f5a..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Notifications.h +++ /dev/null @@ -1,4345 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.ApplicationModel.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Data.Xml.Dom.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.UI.Notifications.3.h" -#include "Windows.UI.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::UI::Notifications::AdaptiveNotificationContentKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Hints(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Hints()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Language(abi_arg_in value) noexcept override - { - try - { - this->shim().Language(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExpirationTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().ExpirationTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateBadgeNotification(abi_arg_in content, abi_arg_out notification) noexcept override - { - try - { - *notification = detach(this->shim().CreateBadgeNotification(*reinterpret_cast(&content))); - return S_OK; - } - catch (...) - { - *notification = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateBadgeUpdaterForApplication(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateBadgeUpdaterForApplication()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBadgeUpdaterForApplicationWithId(abi_arg_in applicationId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateBadgeUpdaterForApplication(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBadgeUpdaterForSecondaryTile(abi_arg_in tileId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateBadgeUpdaterForSecondaryTile(*reinterpret_cast(&tileId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateBadgeUpdaterForApplication(abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateBadgeUpdaterForApplication()); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBadgeUpdaterForApplicationWithId(abi_arg_in applicationId, abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateBadgeUpdaterForApplication(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateBadgeUpdaterForSecondaryTile(abi_arg_in tileId, abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateBadgeUpdaterForSecondaryTile(*reinterpret_cast(&tileId))); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTemplateContent(Windows::UI::Notifications::BadgeTemplateType type, abi_arg_out content) noexcept override - { - try - { - *content = detach(this->shim().GetTemplateContent(type)); - return S_OK; - } - catch (...) - { - *content = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForUser(abi_arg_in user, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Update(abi_arg_in notification) noexcept override - { - try - { - this->shim().Update(*reinterpret_cast(¬ification)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartPeriodicUpdate(abi_arg_in badgeContent, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) noexcept override - { - try - { - this->shim().StartPeriodicUpdate(*reinterpret_cast(&badgeContent), requestedInterval); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartPeriodicUpdateAtTime(abi_arg_in badgeContent, abi_arg_in startTime, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) noexcept override - { - try - { - this->shim().StartPeriodicUpdate(*reinterpret_cast(&badgeContent), *reinterpret_cast(&startTime), requestedInterval); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopPeriodicUpdate() noexcept override - { - try - { - this->shim().StopPeriodicUpdate(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Style(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Style()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Wrap(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Wrap()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLines(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxLines()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinLines(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinLines()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextStacking(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextStacking()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Align(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Align()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Caption(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Caption()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Body(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Body()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Base(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Base()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subtitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subtitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subheader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Subheader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TitleNumeral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleNumeral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubheaderNumeral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SubheaderNumeral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderNumeral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderNumeral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CaptionSubtle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CaptionSubtle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BodySubtle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BodySubtle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BaseSubtle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BaseSubtle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubtitleSubtle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SubtitleSubtle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TitleSubtle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleSubtle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubheaderSubtle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SubheaderSubtle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SubheaderNumeralSubtle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SubheaderNumeralSubtle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderSubtle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderSubtle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderNumeralSubtle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderNumeralSubtle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ToastGeneric(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ToastGeneric()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExpirationTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExpirationTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().ExpirationTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Visual(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Visual()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Visual(abi_arg_in value) noexcept override - { - try - { - this->shim().Visual(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Template(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Template()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Template(abi_arg_in value) noexcept override - { - try - { - this->shim().Template(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Language(abi_arg_in value) noexcept override - { - try - { - this->shim().Language(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Hints(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Hints()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTextElements(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().GetTextElements()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Language(abi_arg_in value) noexcept override - { - try - { - this->shim().Language(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bindings(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().Bindings()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBinding(abi_arg_in templateName, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetBinding(*reinterpret_cast(&templateName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeliveryTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeliveryTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExpirationTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().ExpirationTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Tag(abi_arg_in value) noexcept override - { - try - { - this->shim().Tag(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Id(abi_arg_in value) noexcept override - { - try - { - this->shim().Id(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateScheduledTileNotification(abi_arg_in content, abi_arg_in deliveryTime, abi_arg_out notification) noexcept override - { - try - { - *notification = detach(this->shim().CreateScheduledTileNotification(*reinterpret_cast(&content), *reinterpret_cast(&deliveryTime))); - return S_OK; - } - catch (...) - { - *notification = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeliveryTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DeliveryTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SnoozeInterval(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SnoozeInterval()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaximumSnoozeCount(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaximumSnoozeCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Id(abi_arg_in value) noexcept override - { - try - { - this->shim().Id(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Tag(abi_arg_in value) noexcept override - { - try - { - this->shim().Tag(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Group(abi_arg_in value) noexcept override - { - try - { - this->shim().Group(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Group(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Group()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuppressPopup(bool value) noexcept override - { - try - { - this->shim().SuppressPopup(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuppressPopup(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SuppressPopup()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NotificationMirroring(Windows::UI::Notifications::NotificationMirroring * value) noexcept override - { - try - { - *value = detach(this->shim().NotificationMirroring()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NotificationMirroring(Windows::UI::Notifications::NotificationMirroring value) noexcept override - { - try - { - this->shim().NotificationMirroring(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateScheduledToastNotification(abi_arg_in content, abi_arg_in deliveryTime, abi_arg_out notification) noexcept override - { - try - { - *notification = detach(this->shim().CreateScheduledToastNotification(*reinterpret_cast(&content), *reinterpret_cast(&deliveryTime))); - return S_OK; - } - catch (...) - { - *notification = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateScheduledToastNotificationRecurring(abi_arg_in content, abi_arg_in deliveryTime, abi_arg_in snoozeInterval, uint32_t maximumSnoozeCount, abi_arg_out notification) noexcept override - { - try - { - *notification = detach(this->shim().CreateScheduledToastNotificationRecurring(*reinterpret_cast(&content), *reinterpret_cast(&deliveryTime), *reinterpret_cast(&snoozeInterval), maximumSnoozeCount)); - return S_OK; - } - catch (...) - { - *notification = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Arguments(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Arguments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExpirationTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().ExpirationTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateTileFlyoutNotification(abi_arg_in content, abi_arg_out notification) noexcept override - { - try - { - *notification = detach(this->shim().CreateTileFlyoutNotification(*reinterpret_cast(&content))); - return S_OK; - } - catch (...) - { - *notification = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateTileFlyoutUpdaterForApplication(abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateTileFlyoutUpdaterForApplication()); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTileFlyoutUpdaterForApplicationWithId(abi_arg_in applicationId, abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateTileFlyoutUpdaterForApplication(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTileFlyoutUpdaterForSecondaryTile(abi_arg_in tileId, abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateTileFlyoutUpdaterForSecondaryTile(*reinterpret_cast(&tileId))); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTemplateContent(Windows::UI::Notifications::TileFlyoutTemplateType type, abi_arg_out content) noexcept override - { - try - { - *content = detach(this->shim().GetTemplateContent(type)); - return S_OK; - } - catch (...) - { - *content = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Update(abi_arg_in notification) noexcept override - { - try - { - this->shim().Update(*reinterpret_cast(¬ification)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartPeriodicUpdate(abi_arg_in tileFlyoutContent, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) noexcept override - { - try - { - this->shim().StartPeriodicUpdate(*reinterpret_cast(&tileFlyoutContent), requestedInterval); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartPeriodicUpdateAtTime(abi_arg_in tileFlyoutContent, abi_arg_in startTime, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) noexcept override - { - try - { - this->shim().StartPeriodicUpdate(*reinterpret_cast(&tileFlyoutContent), *reinterpret_cast(&startTime), requestedInterval); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopPeriodicUpdate() noexcept override - { - try - { - this->shim().StopPeriodicUpdate(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Setting(Windows::UI::Notifications::NotificationSetting * value) noexcept override - { - try - { - *value = detach(this->shim().Setting()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExpirationTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().ExpirationTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Tag(abi_arg_in value) noexcept override - { - try - { - this->shim().Tag(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateTileNotification(abi_arg_in content, abi_arg_out notification) noexcept override - { - try - { - *notification = detach(this->shim().CreateTileNotification(*reinterpret_cast(&content))); - return S_OK; - } - catch (...) - { - *notification = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateTileUpdaterForApplication(abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateTileUpdaterForApplicationForUser()); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTileUpdaterForApplicationWithId(abi_arg_in applicationId, abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateTileUpdaterForApplication(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTileUpdaterForSecondaryTile(abi_arg_in tileId, abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateTileUpdaterForSecondaryTile(*reinterpret_cast(&tileId))); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateTileUpdaterForApplication(abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateTileUpdaterForApplication()); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTileUpdaterForApplicationWithId(abi_arg_in applicationId, abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateTileUpdaterForApplication(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateTileUpdaterForSecondaryTile(abi_arg_in tileId, abi_arg_out updater) noexcept override - { - try - { - *updater = detach(this->shim().CreateTileUpdaterForSecondaryTile(*reinterpret_cast(&tileId))); - return S_OK; - } - catch (...) - { - *updater = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTemplateContent(Windows::UI::Notifications::TileTemplateType type, abi_arg_out content) noexcept override - { - try - { - *content = detach(this->shim().GetTemplateContent(type)); - return S_OK; - } - catch (...) - { - *content = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForUser(abi_arg_in user, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Update(abi_arg_in notification) noexcept override - { - try - { - this->shim().Update(*reinterpret_cast(¬ification)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableNotificationQueue(bool enable) noexcept override - { - try - { - this->shim().EnableNotificationQueue(enable); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Setting(Windows::UI::Notifications::NotificationSetting * value) noexcept override - { - try - { - *value = detach(this->shim().Setting()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddToSchedule(abi_arg_in scheduledTile) noexcept override - { - try - { - this->shim().AddToSchedule(*reinterpret_cast(&scheduledTile)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveFromSchedule(abi_arg_in scheduledTile) noexcept override - { - try - { - this->shim().RemoveFromSchedule(*reinterpret_cast(&scheduledTile)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetScheduledTileNotifications(abi_arg_out> scheduledTiles) noexcept override - { - try - { - *scheduledTiles = detach(this->shim().GetScheduledTileNotifications()); - return S_OK; - } - catch (...) - { - *scheduledTiles = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartPeriodicUpdate(abi_arg_in tileContent, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) noexcept override - { - try - { - this->shim().StartPeriodicUpdate(*reinterpret_cast(&tileContent), requestedInterval); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartPeriodicUpdateAtTime(abi_arg_in tileContent, abi_arg_in startTime, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) noexcept override - { - try - { - this->shim().StartPeriodicUpdate(*reinterpret_cast(&tileContent), *reinterpret_cast(&startTime), requestedInterval); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopPeriodicUpdate() noexcept override - { - try - { - this->shim().StopPeriodicUpdate(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartPeriodicUpdateBatch(abi_arg_in> tileContents, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) noexcept override - { - try - { - this->shim().StartPeriodicUpdateBatch(*reinterpret_cast *>(&tileContents), requestedInterval); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartPeriodicUpdateBatchAtTime(abi_arg_in> tileContents, abi_arg_in startTime, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) noexcept override - { - try - { - this->shim().StartPeriodicUpdateBatch(*reinterpret_cast *>(&tileContents), *reinterpret_cast(&startTime), requestedInterval); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_EnableNotificationQueueForSquare150x150(bool enable) noexcept override - { - try - { - this->shim().EnableNotificationQueueForSquare150x150(enable); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableNotificationQueueForWide310x150(bool enable) noexcept override - { - try - { - this->shim().EnableNotificationQueueForWide310x150(enable); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnableNotificationQueueForSquare310x310(bool enable) noexcept override - { - try - { - this->shim().EnableNotificationQueueForSquare310x310(enable); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Arguments(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Arguments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reason(Windows::UI::Notifications::ToastDismissalReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ErrorCode(HRESULT * value) noexcept override - { - try - { - *value = detach(this->shim().ErrorCode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExpirationTime(abi_arg_in> value) noexcept override - { - try - { - this->shim().ExpirationTime(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExpirationTime(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ExpirationTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Dismissed(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().Dismissed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Dismissed(event_token cookie) noexcept override - { - try - { - this->shim().Dismissed(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Activated(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().Activated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Activated(event_token cookie) noexcept override - { - try - { - this->shim().Activated(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Failed(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Failed(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Failed(event_token token) noexcept override - { - try - { - this->shim().Failed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Tag(abi_arg_in value) noexcept override - { - try - { - this->shim().Tag(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Tag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Group(abi_arg_in value) noexcept override - { - try - { - this->shim().Group(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Group(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Group()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuppressPopup(bool value) noexcept override - { - try - { - this->shim().SuppressPopup(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SuppressPopup(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SuppressPopup()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NotificationMirroring(Windows::UI::Notifications::NotificationMirroring * value) noexcept override - { - try - { - *value = detach(this->shim().NotificationMirroring()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NotificationMirroring(Windows::UI::Notifications::NotificationMirroring value) noexcept override - { - try - { - this->shim().NotificationMirroring(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemoteId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RemoteId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RemoteId(abi_arg_in value) noexcept override - { - try - { - this->shim().RemoteId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Argument(abi_arg_out argument) noexcept override - { - try - { - *argument = detach(this->shim().Argument()); - return S_OK; - } - catch (...) - { - *argument = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserInput(abi_arg_out inputs) noexcept override - { - try - { - *inputs = detach(this->shim().UserInput()); - return S_OK; - } - catch (...) - { - *inputs = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateToastNotification(abi_arg_in content, abi_arg_out notification) noexcept override - { - try - { - *notification = detach(this->shim().CreateToastNotification(*reinterpret_cast(&content))); - return S_OK; - } - catch (...) - { - *notification = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RemoveGroup(abi_arg_in group) noexcept override - { - try - { - this->shim().RemoveGroup(*reinterpret_cast(&group)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveGroupWithId(abi_arg_in group, abi_arg_in applicationId) noexcept override - { - try - { - this->shim().RemoveGroup(*reinterpret_cast(&group), *reinterpret_cast(&applicationId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveGroupedTagWithId(abi_arg_in tag, abi_arg_in group, abi_arg_in applicationId) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&tag), *reinterpret_cast(&group), *reinterpret_cast(&applicationId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveGroupedTag(abi_arg_in tag, abi_arg_in group) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&tag), *reinterpret_cast(&group)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Remove(abi_arg_in tag) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&tag)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Clear() noexcept override - { - try - { - this->shim().Clear(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearWithId(abi_arg_in applicationId) noexcept override - { - try - { - this->shim().Clear(*reinterpret_cast(&applicationId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetHistory(abi_arg_out> toasts) noexcept override - { - try - { - *toasts = detach(this->shim().GetHistory()); - return S_OK; - } - catch (...) - { - *toasts = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHistoryWithId(abi_arg_in applicationId, abi_arg_out> toasts) noexcept override - { - try - { - *toasts = detach(this->shim().GetHistory(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *toasts = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeType(Windows::UI::Notifications::ToastHistoryChangedType * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateToastNotifier(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateToastNotifier()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateToastNotifierWithId(abi_arg_in applicationId, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateToastNotifier(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_History(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().History()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_User(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().User()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateToastNotifier(abi_arg_out notifier) noexcept override - { - try - { - *notifier = detach(this->shim().CreateToastNotifier()); - return S_OK; - } - catch (...) - { - *notifier = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateToastNotifierWithId(abi_arg_in applicationId, abi_arg_out notifier) noexcept override - { - try - { - *notifier = detach(this->shim().CreateToastNotifier(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *notifier = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTemplateContent(Windows::UI::Notifications::ToastTemplateType type, abi_arg_out content) noexcept override - { - try - { - *content = detach(this->shim().GetTemplateContent(type)); - return S_OK; - } - catch (...) - { - *content = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_History(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().History()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForUser(abi_arg_in user, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().GetForUser(*reinterpret_cast(&user))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ConfigureNotificationMirroring(Windows::UI::Notifications::NotificationMirroring value) noexcept override - { - try - { - this->shim().ConfigureNotificationMirroring(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Show(abi_arg_in notification) noexcept override - { - try - { - this->shim().Show(*reinterpret_cast(¬ification)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Hide(abi_arg_in notification) noexcept override - { - try - { - this->shim().Hide(*reinterpret_cast(¬ification)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Setting(Windows::UI::Notifications::NotificationSetting * value) noexcept override - { - try - { - *value = detach(this->shim().Setting()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddToSchedule(abi_arg_in scheduledToast) noexcept override - { - try - { - this->shim().AddToSchedule(*reinterpret_cast(&scheduledToast)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveFromSchedule(abi_arg_in scheduledToast) noexcept override - { - try - { - this->shim().RemoveFromSchedule(*reinterpret_cast(&scheduledToast)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetScheduledToastNotifications(abi_arg_out> scheduledToasts) noexcept override - { - try - { - *scheduledToasts = detach(this->shim().GetScheduledToastNotifications()); - return S_OK; - } - catch (...) - { - *scheduledToasts = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Notification(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Notification()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AppInfo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AppInfo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CreationTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreationTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeKind(Windows::UI::Notifications::UserNotificationChangedKind * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UserNotificationId(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UserNotificationId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Notifications { - -template hstring impl_IShownTileNotification::Arguments() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Arguments(put(value))); - return value; -} - -template Windows::UI::Notifications::UserNotificationChangedKind impl_IUserNotificationChangedEventArgs::ChangeKind() const -{ - Windows::UI::Notifications::UserNotificationChangedKind value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeKind(&value)); - return value; -} - -template uint32_t impl_IUserNotificationChangedEventArgs::UserNotificationId() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UserNotificationId(&value)); - return value; -} - -template Windows::UI::Notifications::Notification impl_IUserNotification::Notification() const -{ - Windows::UI::Notifications::Notification value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Notification(put(value))); - return value; -} - -template Windows::ApplicationModel::AppInfo impl_IUserNotification::AppInfo() const -{ - Windows::ApplicationModel::AppInfo value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AppInfo(put(value))); - return value; -} - -template uint32_t impl_IUserNotification::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::Foundation::DateTime impl_IUserNotification::CreationTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_CreationTime(put(value))); - return value; -} - -template hstring impl_INotificationVisual::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template void impl_INotificationVisual::Language(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Language(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_INotificationVisual::Bindings() const -{ - Windows::Foundation::Collections::IVector result; - check_hresult(static_cast(static_cast(*this))->get_Bindings(put(result))); - return result; -} - -template Windows::UI::Notifications::NotificationBinding impl_INotificationVisual::GetBinding(hstring_ref templateName) const -{ - Windows::UI::Notifications::NotificationBinding result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetBinding(get(templateName), put(result))); - return result; -} - -template Windows::UI::Notifications::AdaptiveNotificationContentKind impl_IAdaptiveNotificationContent::Kind() const -{ - Windows::UI::Notifications::AdaptiveNotificationContentKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template Windows::Foundation::Collections::IMap impl_IAdaptiveNotificationContent::Hints() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_Hints(put(value))); - return value; -} - -template hstring impl_INotificationBinding::Template() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Template(put(value))); - return value; -} - -template void impl_INotificationBinding::Template(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Template(get(value))); -} - -template hstring impl_INotificationBinding::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template void impl_INotificationBinding::Language(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Language(get(value))); -} - -template Windows::Foundation::Collections::IMap impl_INotificationBinding::Hints() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_Hints(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_INotificationBinding::GetTextElements() const -{ - Windows::Foundation::Collections::IVectorView result; - check_hresult(static_cast(static_cast(*this))->abi_GetTextElements(put(result))); - return result; -} - -template hstring impl_IKnownNotificationBindingsStatics::ToastGeneric() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ToastGeneric(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationHintsStatics::Style() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Style(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationHintsStatics::Wrap() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Wrap(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationHintsStatics::MaxLines() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MaxLines(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationHintsStatics::MinLines() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MinLines(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationHintsStatics::TextStacking() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TextStacking(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationHintsStatics::Align() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Align(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::Caption() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Caption(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::Body() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Body(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::Base() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Base(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::Subtitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subtitle(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::Subheader() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Subheader(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::Header() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::TitleNumeral() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TitleNumeral(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::SubheaderNumeral() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SubheaderNumeral(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::HeaderNumeral() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HeaderNumeral(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::CaptionSubtle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CaptionSubtle(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::BodySubtle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BodySubtle(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::BaseSubtle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_BaseSubtle(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::SubtitleSubtle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SubtitleSubtle(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::TitleSubtle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TitleSubtle(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::SubheaderSubtle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SubheaderSubtle(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::SubheaderNumeralSubtle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SubheaderNumeralSubtle(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::HeaderSubtle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HeaderSubtle(put(value))); - return value; -} - -template hstring impl_IKnownAdaptiveNotificationTextStylesStatics::HeaderNumeralSubtle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HeaderNumeralSubtle(put(value))); - return value; -} - -template hstring impl_IAdaptiveNotificationText::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_IAdaptiveNotificationText::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template hstring impl_IAdaptiveNotificationText::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template void impl_IAdaptiveNotificationText::Language(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Language(get(value))); -} - -template Windows::UI::Notifications::ToastDismissalReason impl_IToastDismissedEventArgs::Reason() const -{ - Windows::UI::Notifications::ToastDismissalReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template HRESULT impl_IToastFailedEventArgs::ErrorCode() const -{ - HRESULT value {}; - check_hresult(static_cast(static_cast(*this))->get_ErrorCode(&value)); - return value; -} - -template hstring impl_IToastActivatedEventArgs::Arguments() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Arguments(put(value))); - return value; -} - -template Windows::UI::Notifications::TileUpdater impl_ITileUpdateManagerStatics::CreateTileUpdaterForApplication() const -{ - Windows::UI::Notifications::TileUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileUpdaterForApplication(put(updater))); - return updater; -} - -template Windows::UI::Notifications::TileUpdater impl_ITileUpdateManagerStatics::CreateTileUpdaterForApplication(hstring_ref applicationId) const -{ - Windows::UI::Notifications::TileUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileUpdaterForApplicationWithId(get(applicationId), put(updater))); - return updater; -} - -template Windows::UI::Notifications::TileUpdater impl_ITileUpdateManagerStatics::CreateTileUpdaterForSecondaryTile(hstring_ref tileId) const -{ - Windows::UI::Notifications::TileUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileUpdaterForSecondaryTile(get(tileId), put(updater))); - return updater; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_ITileUpdateManagerStatics::GetTemplateContent(Windows::UI::Notifications::TileTemplateType type) const -{ - Windows::Data::Xml::Dom::XmlDocument content { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetTemplateContent(type, put(content))); - return content; -} - -template Windows::UI::Notifications::TileUpdateManagerForUser impl_ITileUpdateManagerStatics2::GetForUser(const Windows::System::User & user) const -{ - Windows::UI::Notifications::TileUpdateManagerForUser result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForUser(get(user), put(result))); - return result; -} - -template Windows::UI::Notifications::TileUpdater impl_ITileUpdateManagerForUser::CreateTileUpdaterForApplicationForUser() const -{ - Windows::UI::Notifications::TileUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileUpdaterForApplication(put(updater))); - return updater; -} - -template Windows::UI::Notifications::TileUpdater impl_ITileUpdateManagerForUser::CreateTileUpdaterForApplication(hstring_ref applicationId) const -{ - Windows::UI::Notifications::TileUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileUpdaterForApplicationWithId(get(applicationId), put(updater))); - return updater; -} - -template Windows::UI::Notifications::TileUpdater impl_ITileUpdateManagerForUser::CreateTileUpdaterForSecondaryTile(hstring_ref tileId) const -{ - Windows::UI::Notifications::TileUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileUpdaterForSecondaryTile(get(tileId), put(updater))); - return updater; -} - -template Windows::System::User impl_ITileUpdateManagerForUser::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template void impl_ITileUpdater::Update(const Windows::UI::Notifications::TileNotification & notification) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Update(get(notification))); -} - -template void impl_ITileUpdater::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template void impl_ITileUpdater::EnableNotificationQueue(bool enable) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableNotificationQueue(enable)); -} - -template Windows::UI::Notifications::NotificationSetting impl_ITileUpdater::Setting() const -{ - Windows::UI::Notifications::NotificationSetting value {}; - check_hresult(static_cast(static_cast(*this))->get_Setting(&value)); - return value; -} - -template void impl_ITileUpdater::AddToSchedule(const Windows::UI::Notifications::ScheduledTileNotification & scheduledTile) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddToSchedule(get(scheduledTile))); -} - -template void impl_ITileUpdater::RemoveFromSchedule(const Windows::UI::Notifications::ScheduledTileNotification & scheduledTile) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveFromSchedule(get(scheduledTile))); -} - -template Windows::Foundation::Collections::IVectorView impl_ITileUpdater::GetScheduledTileNotifications() const -{ - Windows::Foundation::Collections::IVectorView scheduledTiles; - check_hresult(static_cast(static_cast(*this))->abi_GetScheduledTileNotifications(put(scheduledTiles))); - return scheduledTiles; -} - -template void impl_ITileUpdater::StartPeriodicUpdate(const Windows::Foundation::Uri & tileContent, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartPeriodicUpdate(get(tileContent), requestedInterval)); -} - -template void impl_ITileUpdater::StartPeriodicUpdate(const Windows::Foundation::Uri & tileContent, const Windows::Foundation::DateTime & startTime, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartPeriodicUpdateAtTime(get(tileContent), get(startTime), requestedInterval)); -} - -template void impl_ITileUpdater::StopPeriodicUpdate() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopPeriodicUpdate()); -} - -template void impl_ITileUpdater::StartPeriodicUpdateBatch(const Windows::Foundation::Collections::IIterable & tileContents, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartPeriodicUpdateBatch(get(tileContents), requestedInterval)); -} - -template void impl_ITileUpdater::StartPeriodicUpdateBatch(const Windows::Foundation::Collections::IIterable & tileContents, const Windows::Foundation::DateTime & startTime, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartPeriodicUpdateBatchAtTime(get(tileContents), get(startTime), requestedInterval)); -} - -template void impl_ITileUpdater2::EnableNotificationQueueForSquare150x150(bool enable) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableNotificationQueueForSquare150x150(enable)); -} - -template void impl_ITileUpdater2::EnableNotificationQueueForWide310x150(bool enable) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableNotificationQueueForWide310x150(enable)); -} - -template void impl_ITileUpdater2::EnableNotificationQueueForSquare310x310(bool enable) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnableNotificationQueueForSquare310x310(enable)); -} - -template Windows::UI::Notifications::TileFlyoutUpdater impl_ITileFlyoutUpdateManagerStatics::CreateTileFlyoutUpdaterForApplication() const -{ - Windows::UI::Notifications::TileFlyoutUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileFlyoutUpdaterForApplication(put(updater))); - return updater; -} - -template Windows::UI::Notifications::TileFlyoutUpdater impl_ITileFlyoutUpdateManagerStatics::CreateTileFlyoutUpdaterForApplication(hstring_ref applicationId) const -{ - Windows::UI::Notifications::TileFlyoutUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileFlyoutUpdaterForApplicationWithId(get(applicationId), put(updater))); - return updater; -} - -template Windows::UI::Notifications::TileFlyoutUpdater impl_ITileFlyoutUpdateManagerStatics::CreateTileFlyoutUpdaterForSecondaryTile(hstring_ref tileId) const -{ - Windows::UI::Notifications::TileFlyoutUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileFlyoutUpdaterForSecondaryTile(get(tileId), put(updater))); - return updater; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_ITileFlyoutUpdateManagerStatics::GetTemplateContent(Windows::UI::Notifications::TileFlyoutTemplateType type) const -{ - Windows::Data::Xml::Dom::XmlDocument content { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetTemplateContent(type, put(content))); - return content; -} - -template void impl_ITileFlyoutUpdater::Update(const Windows::UI::Notifications::TileFlyoutNotification & notification) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Update(get(notification))); -} - -template void impl_ITileFlyoutUpdater::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template void impl_ITileFlyoutUpdater::StartPeriodicUpdate(const Windows::Foundation::Uri & tileFlyoutContent, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartPeriodicUpdate(get(tileFlyoutContent), requestedInterval)); -} - -template void impl_ITileFlyoutUpdater::StartPeriodicUpdate(const Windows::Foundation::Uri & tileFlyoutContent, const Windows::Foundation::DateTime & startTime, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartPeriodicUpdateAtTime(get(tileFlyoutContent), get(startTime), requestedInterval)); -} - -template void impl_ITileFlyoutUpdater::StopPeriodicUpdate() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopPeriodicUpdate()); -} - -template Windows::UI::Notifications::NotificationSetting impl_ITileFlyoutUpdater::Setting() const -{ - Windows::UI::Notifications::NotificationSetting value {}; - check_hresult(static_cast(static_cast(*this))->get_Setting(&value)); - return value; -} - -template Windows::UI::Notifications::BadgeUpdater impl_IBadgeUpdateManagerStatics::CreateBadgeUpdaterForApplication() const -{ - Windows::UI::Notifications::BadgeUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBadgeUpdaterForApplication(put(updater))); - return updater; -} - -template Windows::UI::Notifications::BadgeUpdater impl_IBadgeUpdateManagerStatics::CreateBadgeUpdaterForApplication(hstring_ref applicationId) const -{ - Windows::UI::Notifications::BadgeUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBadgeUpdaterForApplicationWithId(get(applicationId), put(updater))); - return updater; -} - -template Windows::UI::Notifications::BadgeUpdater impl_IBadgeUpdateManagerStatics::CreateBadgeUpdaterForSecondaryTile(hstring_ref tileId) const -{ - Windows::UI::Notifications::BadgeUpdater updater { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBadgeUpdaterForSecondaryTile(get(tileId), put(updater))); - return updater; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_IBadgeUpdateManagerStatics::GetTemplateContent(Windows::UI::Notifications::BadgeTemplateType type) const -{ - Windows::Data::Xml::Dom::XmlDocument content { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetTemplateContent(type, put(content))); - return content; -} - -template Windows::UI::Notifications::BadgeUpdateManagerForUser impl_IBadgeUpdateManagerStatics2::GetForUser(const Windows::System::User & user) const -{ - Windows::UI::Notifications::BadgeUpdateManagerForUser result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForUser(get(user), put(result))); - return result; -} - -template Windows::UI::Notifications::BadgeUpdater impl_IBadgeUpdateManagerForUser::CreateBadgeUpdaterForApplication() const -{ - Windows::UI::Notifications::BadgeUpdater result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBadgeUpdaterForApplication(put(result))); - return result; -} - -template Windows::UI::Notifications::BadgeUpdater impl_IBadgeUpdateManagerForUser::CreateBadgeUpdaterForApplication(hstring_ref applicationId) const -{ - Windows::UI::Notifications::BadgeUpdater result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBadgeUpdaterForApplicationWithId(get(applicationId), put(result))); - return result; -} - -template Windows::UI::Notifications::BadgeUpdater impl_IBadgeUpdateManagerForUser::CreateBadgeUpdaterForSecondaryTile(hstring_ref tileId) const -{ - Windows::UI::Notifications::BadgeUpdater result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBadgeUpdaterForSecondaryTile(get(tileId), put(result))); - return result; -} - -template Windows::System::User impl_IBadgeUpdateManagerForUser::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template void impl_IBadgeUpdater::Update(const Windows::UI::Notifications::BadgeNotification & notification) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Update(get(notification))); -} - -template void impl_IBadgeUpdater::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template void impl_IBadgeUpdater::StartPeriodicUpdate(const Windows::Foundation::Uri & badgeContent, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartPeriodicUpdate(get(badgeContent), requestedInterval)); -} - -template void impl_IBadgeUpdater::StartPeriodicUpdate(const Windows::Foundation::Uri & badgeContent, const Windows::Foundation::DateTime & startTime, Windows::UI::Notifications::PeriodicUpdateRecurrence requestedInterval) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartPeriodicUpdateAtTime(get(badgeContent), get(startTime), requestedInterval)); -} - -template void impl_IBadgeUpdater::StopPeriodicUpdate() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopPeriodicUpdate()); -} - -template Windows::UI::Notifications::ToastNotifier impl_IToastNotificationManagerStatics::CreateToastNotifier() const -{ - Windows::UI::Notifications::ToastNotifier notifier { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateToastNotifier(put(notifier))); - return notifier; -} - -template Windows::UI::Notifications::ToastNotifier impl_IToastNotificationManagerStatics::CreateToastNotifier(hstring_ref applicationId) const -{ - Windows::UI::Notifications::ToastNotifier notifier { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateToastNotifierWithId(get(applicationId), put(notifier))); - return notifier; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_IToastNotificationManagerStatics::GetTemplateContent(Windows::UI::Notifications::ToastTemplateType type) const -{ - Windows::Data::Xml::Dom::XmlDocument content { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetTemplateContent(type, put(content))); - return content; -} - -template void impl_IToastNotifier::Show(const Windows::UI::Notifications::ToastNotification & notification) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Show(get(notification))); -} - -template void impl_IToastNotifier::Hide(const Windows::UI::Notifications::ToastNotification & notification) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Hide(get(notification))); -} - -template Windows::UI::Notifications::NotificationSetting impl_IToastNotifier::Setting() const -{ - Windows::UI::Notifications::NotificationSetting value {}; - check_hresult(static_cast(static_cast(*this))->get_Setting(&value)); - return value; -} - -template void impl_IToastNotifier::AddToSchedule(const Windows::UI::Notifications::ScheduledToastNotification & scheduledToast) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddToSchedule(get(scheduledToast))); -} - -template void impl_IToastNotifier::RemoveFromSchedule(const Windows::UI::Notifications::ScheduledToastNotification & scheduledToast) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveFromSchedule(get(scheduledToast))); -} - -template Windows::Foundation::Collections::IVectorView impl_IToastNotifier::GetScheduledToastNotifications() const -{ - Windows::Foundation::Collections::IVectorView scheduledToasts; - check_hresult(static_cast(static_cast(*this))->abi_GetScheduledToastNotifications(put(scheduledToasts))); - return scheduledToasts; -} - -template Windows::UI::Notifications::TileNotification impl_ITileNotificationFactory::CreateTileNotification(const Windows::Data::Xml::Dom::XmlDocument & content) const -{ - Windows::UI::Notifications::TileNotification notification { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileNotification(get(content), put(notification))); - return notification; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_ITileNotification::Content() const -{ - Windows::Data::Xml::Dom::XmlDocument value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template void impl_ITileNotification::ExpirationTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExpirationTime(get(value))); -} - -template Windows::Foundation::IReference impl_ITileNotification::ExpirationTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ExpirationTime(put(value))); - return value; -} - -template void impl_ITileNotification::Tag(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Tag(get(value))); -} - -template hstring impl_ITileNotification::Tag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Tag(put(value))); - return value; -} - -template Windows::UI::Notifications::TileFlyoutNotification impl_ITileFlyoutNotificationFactory::CreateTileFlyoutNotification(const Windows::Data::Xml::Dom::XmlDocument & content) const -{ - Windows::UI::Notifications::TileFlyoutNotification notification { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTileFlyoutNotification(get(content), put(notification))); - return notification; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_ITileFlyoutNotification::Content() const -{ - Windows::Data::Xml::Dom::XmlDocument value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template void impl_ITileFlyoutNotification::ExpirationTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExpirationTime(get(value))); -} - -template Windows::Foundation::IReference impl_ITileFlyoutNotification::ExpirationTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ExpirationTime(put(value))); - return value; -} - -template Windows::UI::Notifications::BadgeNotification impl_IBadgeNotificationFactory::CreateBadgeNotification(const Windows::Data::Xml::Dom::XmlDocument & content) const -{ - Windows::UI::Notifications::BadgeNotification notification { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateBadgeNotification(get(content), put(notification))); - return notification; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_IBadgeNotification::Content() const -{ - Windows::Data::Xml::Dom::XmlDocument value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template void impl_IBadgeNotification::ExpirationTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExpirationTime(get(value))); -} - -template Windows::Foundation::IReference impl_IBadgeNotification::ExpirationTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ExpirationTime(put(value))); - return value; -} - -template Windows::UI::Notifications::ToastNotification impl_IToastNotificationFactory::CreateToastNotification(const Windows::Data::Xml::Dom::XmlDocument & content) const -{ - Windows::UI::Notifications::ToastNotification notification { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateToastNotification(get(content), put(notification))); - return notification; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_IToastNotification::Content() const -{ - Windows::Data::Xml::Dom::XmlDocument value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template void impl_IToastNotification::ExpirationTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExpirationTime(get(value))); -} - -template Windows::Foundation::IReference impl_IToastNotification::ExpirationTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ExpirationTime(put(value))); - return value; -} - -template event_token impl_IToastNotification::Dismissed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_Dismissed(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IToastNotification::Dismissed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Notifications::IToastNotification::remove_Dismissed, Dismissed(handler)); -} - -template void impl_IToastNotification::Dismissed(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Dismissed(cookie)); -} - -template event_token impl_IToastNotification::Activated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_Activated(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IToastNotification::Activated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Notifications::IToastNotification::remove_Activated, Activated(handler)); -} - -template void impl_IToastNotification::Activated(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Activated(cookie)); -} - -template event_token impl_IToastNotification::Failed(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Failed(get(handler), &token)); - return token; -} - -template event_revoker impl_IToastNotification::Failed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Notifications::IToastNotification::remove_Failed, Failed(handler)); -} - -template void impl_IToastNotification::Failed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Failed(token)); -} - -template void impl_IToastNotification2::Tag(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Tag(get(value))); -} - -template hstring impl_IToastNotification2::Tag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Tag(put(value))); - return value; -} - -template void impl_IToastNotification2::Group(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Group(get(value))); -} - -template hstring impl_IToastNotification2::Group() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Group(put(value))); - return value; -} - -template void impl_IToastNotification2::SuppressPopup(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuppressPopup(value)); -} - -template bool impl_IToastNotification2::SuppressPopup() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SuppressPopup(&value)); - return value; -} - -template Windows::Foundation::IReference impl_INotification::ExpirationTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ExpirationTime(put(value))); - return value; -} - -template void impl_INotification::ExpirationTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExpirationTime(get(value))); -} - -template Windows::UI::Notifications::NotificationVisual impl_INotification::Visual() const -{ - Windows::UI::Notifications::NotificationVisual value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Visual(put(value))); - return value; -} - -template void impl_INotification::Visual(const Windows::UI::Notifications::NotificationVisual & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Visual(get(value))); -} - -template Windows::UI::Notifications::NotificationMirroring impl_IToastNotification3::NotificationMirroring() const -{ - Windows::UI::Notifications::NotificationMirroring value {}; - check_hresult(static_cast(static_cast(*this))->get_NotificationMirroring(&value)); - return value; -} - -template void impl_IToastNotification3::NotificationMirroring(Windows::UI::Notifications::NotificationMirroring value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NotificationMirroring(value)); -} - -template hstring impl_IToastNotification3::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template void impl_IToastNotification3::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template Windows::UI::Notifications::ScheduledToastNotification impl_IScheduledToastNotificationFactory::CreateScheduledToastNotification(const Windows::Data::Xml::Dom::XmlDocument & content, const Windows::Foundation::DateTime & deliveryTime) const -{ - Windows::UI::Notifications::ScheduledToastNotification notification { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateScheduledToastNotification(get(content), get(deliveryTime), put(notification))); - return notification; -} - -template Windows::UI::Notifications::ScheduledToastNotification impl_IScheduledToastNotificationFactory::CreateScheduledToastNotificationRecurring(const Windows::Data::Xml::Dom::XmlDocument & content, const Windows::Foundation::DateTime & deliveryTime, const Windows::Foundation::TimeSpan & snoozeInterval, uint32_t maximumSnoozeCount) const -{ - Windows::UI::Notifications::ScheduledToastNotification notification { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateScheduledToastNotificationRecurring(get(content), get(deliveryTime), get(snoozeInterval), maximumSnoozeCount, put(notification))); - return notification; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_IScheduledToastNotification::Content() const -{ - Windows::Data::Xml::Dom::XmlDocument value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IScheduledToastNotification::DeliveryTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_DeliveryTime(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IScheduledToastNotification::SnoozeInterval() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_SnoozeInterval(put(value))); - return value; -} - -template uint32_t impl_IScheduledToastNotification::MaximumSnoozeCount() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaximumSnoozeCount(&value)); - return value; -} - -template void impl_IScheduledToastNotification::Id(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Id(get(value))); -} - -template hstring impl_IScheduledToastNotification::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template void impl_IScheduledToastNotification2::Tag(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Tag(get(value))); -} - -template hstring impl_IScheduledToastNotification2::Tag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Tag(put(value))); - return value; -} - -template void impl_IScheduledToastNotification2::Group(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Group(get(value))); -} - -template hstring impl_IScheduledToastNotification2::Group() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Group(put(value))); - return value; -} - -template void impl_IScheduledToastNotification2::SuppressPopup(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuppressPopup(value)); -} - -template bool impl_IScheduledToastNotification2::SuppressPopup() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SuppressPopup(&value)); - return value; -} - -template Windows::UI::Notifications::NotificationMirroring impl_IScheduledToastNotification3::NotificationMirroring() const -{ - Windows::UI::Notifications::NotificationMirroring value {}; - check_hresult(static_cast(static_cast(*this))->get_NotificationMirroring(&value)); - return value; -} - -template void impl_IScheduledToastNotification3::NotificationMirroring(Windows::UI::Notifications::NotificationMirroring value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NotificationMirroring(value)); -} - -template hstring impl_IScheduledToastNotification3::RemoteId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_RemoteId(put(value))); - return value; -} - -template void impl_IScheduledToastNotification3::RemoteId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RemoteId(get(value))); -} - -template Windows::UI::Notifications::ScheduledTileNotification impl_IScheduledTileNotificationFactory::CreateScheduledTileNotification(const Windows::Data::Xml::Dom::XmlDocument & content, const Windows::Foundation::DateTime & deliveryTime) const -{ - Windows::UI::Notifications::ScheduledTileNotification notification { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateScheduledTileNotification(get(content), get(deliveryTime), put(notification))); - return notification; -} - -template Windows::Data::Xml::Dom::XmlDocument impl_IScheduledTileNotification::Content() const -{ - Windows::Data::Xml::Dom::XmlDocument value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IScheduledTileNotification::DeliveryTime() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_DeliveryTime(put(value))); - return value; -} - -template void impl_IScheduledTileNotification::ExpirationTime(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExpirationTime(get(value))); -} - -template Windows::Foundation::IReference impl_IScheduledTileNotification::ExpirationTime() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ExpirationTime(put(value))); - return value; -} - -template void impl_IScheduledTileNotification::Tag(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Tag(get(value))); -} - -template hstring impl_IScheduledTileNotification::Tag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Tag(put(value))); - return value; -} - -template void impl_IScheduledTileNotification::Id(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Id(get(value))); -} - -template hstring impl_IScheduledTileNotification::Id() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template Windows::UI::Notifications::ToastNotificationHistory impl_IToastNotificationManagerStatics2::History() const -{ - Windows::UI::Notifications::ToastNotificationHistory value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_History(put(value))); - return value; -} - -template Windows::UI::Notifications::ToastNotificationManagerForUser impl_IToastNotificationManagerStatics4::GetForUser(const Windows::System::User & user) const -{ - Windows::UI::Notifications::ToastNotificationManagerForUser result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForUser(get(user), put(result))); - return result; -} - -template void impl_IToastNotificationManagerStatics4::ConfigureNotificationMirroring(Windows::UI::Notifications::NotificationMirroring value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ConfigureNotificationMirroring(value)); -} - -template Windows::UI::Notifications::ToastNotifier impl_IToastNotificationManagerForUser::CreateToastNotifier() const -{ - Windows::UI::Notifications::ToastNotifier result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateToastNotifier(put(result))); - return result; -} - -template Windows::UI::Notifications::ToastNotifier impl_IToastNotificationManagerForUser::CreateToastNotifier(hstring_ref applicationId) const -{ - Windows::UI::Notifications::ToastNotifier result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateToastNotifierWithId(get(applicationId), put(result))); - return result; -} - -template Windows::UI::Notifications::ToastNotificationHistory impl_IToastNotificationManagerForUser::History() const -{ - Windows::UI::Notifications::ToastNotificationHistory value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_History(put(value))); - return value; -} - -template Windows::System::User impl_IToastNotificationManagerForUser::User() const -{ - Windows::System::User value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_User(put(value))); - return value; -} - -template void impl_IToastNotificationHistory::RemoveGroup(hstring_ref group) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveGroup(get(group))); -} - -template void impl_IToastNotificationHistory::RemoveGroup(hstring_ref group, hstring_ref applicationId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveGroupWithId(get(group), get(applicationId))); -} - -template void impl_IToastNotificationHistory::Remove(hstring_ref tag, hstring_ref group, hstring_ref applicationId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveGroupedTagWithId(get(tag), get(group), get(applicationId))); -} - -template void impl_IToastNotificationHistory::Remove(hstring_ref tag, hstring_ref group) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveGroupedTag(get(tag), get(group))); -} - -template void impl_IToastNotificationHistory::Remove(hstring_ref tag) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Remove(get(tag))); -} - -template void impl_IToastNotificationHistory::Clear() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Clear()); -} - -template void impl_IToastNotificationHistory::Clear(hstring_ref applicationId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearWithId(get(applicationId))); -} - -template Windows::Foundation::Collections::IVectorView impl_IToastNotificationHistory2::GetHistory() const -{ - Windows::Foundation::Collections::IVectorView toasts; - check_hresult(static_cast(static_cast(*this))->abi_GetHistory(put(toasts))); - return toasts; -} - -template Windows::Foundation::Collections::IVectorView impl_IToastNotificationHistory2::GetHistory(hstring_ref applicationId) const -{ - Windows::Foundation::Collections::IVectorView toasts; - check_hresult(static_cast(static_cast(*this))->abi_GetHistoryWithId(get(applicationId), put(toasts))); - return toasts; -} - -template Windows::UI::Notifications::ToastHistoryChangedType impl_IToastNotificationHistoryChangedTriggerDetail::ChangeType() const -{ - Windows::UI::Notifications::ToastHistoryChangedType value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeType(&value)); - return value; -} - -template hstring impl_IToastNotificationActionTriggerDetail::Argument() const -{ - hstring argument; - check_hresult(static_cast(static_cast(*this))->get_Argument(put(argument))); - return argument; -} - -template Windows::Foundation::Collections::ValueSet impl_IToastNotificationActionTriggerDetail::UserInput() const -{ - Windows::Foundation::Collections::ValueSet inputs { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UserInput(put(inputs))); - return inputs; -} - -inline AdaptiveNotificationText::AdaptiveNotificationText() : - AdaptiveNotificationText(activate_instance()) -{} - -inline BadgeNotification::BadgeNotification(const Windows::Data::Xml::Dom::XmlDocument & content) : - BadgeNotification(get_activation_factory().CreateBadgeNotification(content)) -{} - -inline Windows::UI::Notifications::BadgeUpdater BadgeUpdateManager::CreateBadgeUpdaterForApplication() -{ - return get_activation_factory().CreateBadgeUpdaterForApplication(); -} - -inline Windows::UI::Notifications::BadgeUpdater BadgeUpdateManager::CreateBadgeUpdaterForApplication(hstring_ref applicationId) -{ - return get_activation_factory().CreateBadgeUpdaterForApplication(applicationId); -} - -inline Windows::UI::Notifications::BadgeUpdater BadgeUpdateManager::CreateBadgeUpdaterForSecondaryTile(hstring_ref tileId) -{ - return get_activation_factory().CreateBadgeUpdaterForSecondaryTile(tileId); -} - -inline Windows::Data::Xml::Dom::XmlDocument BadgeUpdateManager::GetTemplateContent(Windows::UI::Notifications::BadgeTemplateType type) -{ - return get_activation_factory().GetTemplateContent(type); -} - -inline Windows::UI::Notifications::BadgeUpdateManagerForUser BadgeUpdateManager::GetForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetForUser(user); -} - -inline hstring KnownAdaptiveNotificationHints::Style() -{ - return get_activation_factory().Style(); -} - -inline hstring KnownAdaptiveNotificationHints::Wrap() -{ - return get_activation_factory().Wrap(); -} - -inline hstring KnownAdaptiveNotificationHints::MaxLines() -{ - return get_activation_factory().MaxLines(); -} - -inline hstring KnownAdaptiveNotificationHints::MinLines() -{ - return get_activation_factory().MinLines(); -} - -inline hstring KnownAdaptiveNotificationHints::TextStacking() -{ - return get_activation_factory().TextStacking(); -} - -inline hstring KnownAdaptiveNotificationHints::Align() -{ - return get_activation_factory().Align(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::Caption() -{ - return get_activation_factory().Caption(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::Body() -{ - return get_activation_factory().Body(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::Base() -{ - return get_activation_factory().Base(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::Subtitle() -{ - return get_activation_factory().Subtitle(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::Title() -{ - return get_activation_factory().Title(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::Subheader() -{ - return get_activation_factory().Subheader(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::Header() -{ - return get_activation_factory().Header(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::TitleNumeral() -{ - return get_activation_factory().TitleNumeral(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::SubheaderNumeral() -{ - return get_activation_factory().SubheaderNumeral(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::HeaderNumeral() -{ - return get_activation_factory().HeaderNumeral(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::CaptionSubtle() -{ - return get_activation_factory().CaptionSubtle(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::BodySubtle() -{ - return get_activation_factory().BodySubtle(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::BaseSubtle() -{ - return get_activation_factory().BaseSubtle(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::SubtitleSubtle() -{ - return get_activation_factory().SubtitleSubtle(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::TitleSubtle() -{ - return get_activation_factory().TitleSubtle(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::SubheaderSubtle() -{ - return get_activation_factory().SubheaderSubtle(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::SubheaderNumeralSubtle() -{ - return get_activation_factory().SubheaderNumeralSubtle(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::HeaderSubtle() -{ - return get_activation_factory().HeaderSubtle(); -} - -inline hstring KnownAdaptiveNotificationTextStyles::HeaderNumeralSubtle() -{ - return get_activation_factory().HeaderNumeralSubtle(); -} - -inline hstring KnownNotificationBindings::ToastGeneric() -{ - return get_activation_factory().ToastGeneric(); -} - -inline Notification::Notification() : - Notification(activate_instance()) -{} - -inline ScheduledTileNotification::ScheduledTileNotification(const Windows::Data::Xml::Dom::XmlDocument & content, const Windows::Foundation::DateTime & deliveryTime) : - ScheduledTileNotification(get_activation_factory().CreateScheduledTileNotification(content, deliveryTime)) -{} - -inline ScheduledToastNotification::ScheduledToastNotification(const Windows::Data::Xml::Dom::XmlDocument & content, const Windows::Foundation::DateTime & deliveryTime) : - ScheduledToastNotification(get_activation_factory().CreateScheduledToastNotification(content, deliveryTime)) -{} - -inline ScheduledToastNotification::ScheduledToastNotification(const Windows::Data::Xml::Dom::XmlDocument & content, const Windows::Foundation::DateTime & deliveryTime, const Windows::Foundation::TimeSpan & snoozeInterval, uint32_t maximumSnoozeCount) : - ScheduledToastNotification(get_activation_factory().CreateScheduledToastNotificationRecurring(content, deliveryTime, snoozeInterval, maximumSnoozeCount)) -{} - -inline TileFlyoutNotification::TileFlyoutNotification(const Windows::Data::Xml::Dom::XmlDocument & content) : - TileFlyoutNotification(get_activation_factory().CreateTileFlyoutNotification(content)) -{} - -inline Windows::UI::Notifications::TileFlyoutUpdater TileFlyoutUpdateManager::CreateTileFlyoutUpdaterForApplication() -{ - return get_activation_factory().CreateTileFlyoutUpdaterForApplication(); -} - -inline Windows::UI::Notifications::TileFlyoutUpdater TileFlyoutUpdateManager::CreateTileFlyoutUpdaterForApplication(hstring_ref applicationId) -{ - return get_activation_factory().CreateTileFlyoutUpdaterForApplication(applicationId); -} - -inline Windows::UI::Notifications::TileFlyoutUpdater TileFlyoutUpdateManager::CreateTileFlyoutUpdaterForSecondaryTile(hstring_ref tileId) -{ - return get_activation_factory().CreateTileFlyoutUpdaterForSecondaryTile(tileId); -} - -inline Windows::Data::Xml::Dom::XmlDocument TileFlyoutUpdateManager::GetTemplateContent(Windows::UI::Notifications::TileFlyoutTemplateType type) -{ - return get_activation_factory().GetTemplateContent(type); -} - -inline TileNotification::TileNotification(const Windows::Data::Xml::Dom::XmlDocument & content) : - TileNotification(get_activation_factory().CreateTileNotification(content)) -{} - -inline Windows::UI::Notifications::TileUpdater TileUpdateManager::CreateTileUpdaterForApplication() -{ - return get_activation_factory().CreateTileUpdaterForApplication(); -} - -inline Windows::UI::Notifications::TileUpdater TileUpdateManager::CreateTileUpdaterForApplication(hstring_ref applicationId) -{ - return get_activation_factory().CreateTileUpdaterForApplication(applicationId); -} - -inline Windows::UI::Notifications::TileUpdater TileUpdateManager::CreateTileUpdaterForSecondaryTile(hstring_ref tileId) -{ - return get_activation_factory().CreateTileUpdaterForSecondaryTile(tileId); -} - -inline Windows::Data::Xml::Dom::XmlDocument TileUpdateManager::GetTemplateContent(Windows::UI::Notifications::TileTemplateType type) -{ - return get_activation_factory().GetTemplateContent(type); -} - -inline Windows::UI::Notifications::TileUpdateManagerForUser TileUpdateManager::GetForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetForUser(user); -} - -inline ToastNotification::ToastNotification(const Windows::Data::Xml::Dom::XmlDocument & content) : - ToastNotification(get_activation_factory().CreateToastNotification(content)) -{} - -inline Windows::UI::Notifications::ToastNotifier ToastNotificationManager::CreateToastNotifier() -{ - return get_activation_factory().CreateToastNotifier(); -} - -inline Windows::UI::Notifications::ToastNotifier ToastNotificationManager::CreateToastNotifier(hstring_ref applicationId) -{ - return get_activation_factory().CreateToastNotifier(applicationId); -} - -inline Windows::Data::Xml::Dom::XmlDocument ToastNotificationManager::GetTemplateContent(Windows::UI::Notifications::ToastTemplateType type) -{ - return get_activation_factory().GetTemplateContent(type); -} - -inline Windows::UI::Notifications::ToastNotificationHistory ToastNotificationManager::History() -{ - return get_activation_factory().History(); -} - -inline Windows::UI::Notifications::ToastNotificationManagerForUser ToastNotificationManager::GetForUser(const Windows::System::User & user) -{ - return get_activation_factory().GetForUser(user); -} - -inline void ToastNotificationManager::ConfigureNotificationMirroring(Windows::UI::Notifications::NotificationMirroring value) -{ - get_activation_factory().ConfigureNotificationMirroring(value); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Popups.h b/10.0.14393.0/winrt/Windows.UI.Popups.h deleted file mode 100644 index 755a17563..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Popups.h +++ /dev/null @@ -1,634 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Popups.3.h" -#include "Windows.UI.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::UI::Popups { - -template UICommandInvokedHandler::UICommandInvokedHandler(L lambda) : - UICommandInvokedHandler(impl::make_delegate, UICommandInvokedHandler>(std::forward(lambda))) -{} - -template UICommandInvokedHandler::UICommandInvokedHandler(F * function) : - UICommandInvokedHandler([=](auto && ... args) { function(args ...); }) -{} - -template UICommandInvokedHandler::UICommandInvokedHandler(O * object, M method) : - UICommandInvokedHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void UICommandInvokedHandler::operator()(const Windows::UI::Popups::IUICommand & command) const -{ - check_hresult((*this)->abi_Invoke(get(command))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Commands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Commands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultCommandIndex(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultCommandIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultCommandIndex(uint32_t value) noexcept override - { - try - { - this->shim().DefaultCommandIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CancelCommandIndex(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CancelCommandIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CancelCommandIndex(uint32_t value) noexcept override - { - try - { - this->shim().CancelCommandIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Content(abi_arg_in value) noexcept override - { - try - { - this->shim().Content(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAsync(abi_arg_out> messageDialogAsyncOperation) noexcept override - { - try - { - *messageDialogAsyncOperation = detach(this->shim().ShowAsync()); - return S_OK; - } - catch (...) - { - *messageDialogAsyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Options(Windows::UI::Popups::MessageDialogOptions * value) noexcept override - { - try - { - *value = detach(this->shim().Options()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Options(Windows::UI::Popups::MessageDialogOptions value) noexcept override - { - try - { - this->shim().Options(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in content, abi_arg_out messageDialog) noexcept override - { - try - { - *messageDialog = detach(this->shim().Create(*reinterpret_cast(&content))); - return S_OK; - } - catch (...) - { - *messageDialog = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithTitle(abi_arg_in content, abi_arg_in title, abi_arg_out messageDialog) noexcept override - { - try - { - *messageDialog = detach(this->shim().CreateWithTitle(*reinterpret_cast(&content), *reinterpret_cast(&title))); - return S_OK; - } - catch (...) - { - *messageDialog = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Commands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Commands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAsync(abi_arg_in invocationPoint, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().ShowAsync(*reinterpret_cast(&invocationPoint))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAsyncWithRect(abi_arg_in selection, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().ShowForSelectionAsync(*reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAsyncWithRectAndPlacement(abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_out> asyncOperation) noexcept override - { - try - { - *asyncOperation = detach(this->shim().ShowForSelectionAsync(*reinterpret_cast(&selection), preferredPlacement)); - return S_OK; - } - catch (...) - { - *asyncOperation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Label(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Label()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Label(abi_arg_in value) noexcept override - { - try - { - this->shim().Label(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Invoked(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Invoked()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Invoked(abi_arg_in value) noexcept override - { - try - { - this->shim().Invoked(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Id(abi_arg_in value) noexcept override - { - try - { - this->shim().Id(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in label, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().Create(*reinterpret_cast(&label))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithHandler(abi_arg_in label, abi_arg_in action, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateWithHandler(*reinterpret_cast(&label), *reinterpret_cast(&action))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithHandlerAndId(abi_arg_in label, abi_arg_in action, abi_arg_in commandId, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateWithHandlerAndId(*reinterpret_cast(&label), *reinterpret_cast(&action), *reinterpret_cast(&commandId))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Popups { - -template hstring impl_IMessageDialog::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IMessageDialog::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IMessageDialog::Commands() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Commands(put(value))); - return value; -} - -template uint32_t impl_IMessageDialog::DefaultCommandIndex() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultCommandIndex(&value)); - return value; -} - -template void impl_IMessageDialog::DefaultCommandIndex(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultCommandIndex(value)); -} - -template uint32_t impl_IMessageDialog::CancelCommandIndex() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CancelCommandIndex(&value)); - return value; -} - -template void impl_IMessageDialog::CancelCommandIndex(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CancelCommandIndex(value)); -} - -template hstring impl_IMessageDialog::Content() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template void impl_IMessageDialog::Content(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Content(get(value))); -} - -template Windows::Foundation::IAsyncOperation impl_IMessageDialog::ShowAsync() const -{ - Windows::Foundation::IAsyncOperation messageDialogAsyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsync(put(messageDialogAsyncOperation))); - return messageDialogAsyncOperation; -} - -template Windows::UI::Popups::MessageDialogOptions impl_IMessageDialog::Options() const -{ - Windows::UI::Popups::MessageDialogOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_Options(&value)); - return value; -} - -template void impl_IMessageDialog::Options(Windows::UI::Popups::MessageDialogOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Options(value)); -} - -template Windows::UI::Popups::MessageDialog impl_IMessageDialogFactory::Create(hstring_ref content) const -{ - Windows::UI::Popups::MessageDialog messageDialog { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(content), put(messageDialog))); - return messageDialog; -} - -template Windows::UI::Popups::MessageDialog impl_IMessageDialogFactory::CreateWithTitle(hstring_ref content, hstring_ref title) const -{ - Windows::UI::Popups::MessageDialog messageDialog { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithTitle(get(content), get(title), put(messageDialog))); - return messageDialog; -} - -template hstring impl_IUICommand::Label() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Label(put(value))); - return value; -} - -template void impl_IUICommand::Label(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Label(get(value))); -} - -template Windows::UI::Popups::UICommandInvokedHandler impl_IUICommand::Invoked() const -{ - Windows::UI::Popups::UICommandInvokedHandler value {}; - check_hresult(static_cast(static_cast(*this))->get_Invoked(put(value))); - return value; -} - -template void impl_IUICommand::Invoked(const Windows::UI::Popups::UICommandInvokedHandler & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Invoked(get(value))); -} - -template Windows::IInspectable impl_IUICommand::Id() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Id(put(value))); - return value; -} - -template void impl_IUICommand::Id(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Id(get(value))); -} - -template Windows::UI::Popups::UICommand impl_IUICommandFactory::Create(hstring_ref label) const -{ - Windows::UI::Popups::UICommand instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(label), put(instance))); - return instance; -} - -template Windows::UI::Popups::UICommand impl_IUICommandFactory::CreateWithHandler(hstring_ref label, const Windows::UI::Popups::UICommandInvokedHandler & action) const -{ - Windows::UI::Popups::UICommand instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithHandler(get(label), get(action), put(instance))); - return instance; -} - -template Windows::UI::Popups::UICommand impl_IUICommandFactory::CreateWithHandlerAndId(hstring_ref label, const Windows::UI::Popups::UICommandInvokedHandler & action, const Windows::IInspectable & commandId) const -{ - Windows::UI::Popups::UICommand instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithHandlerAndId(get(label), get(action), get(commandId), put(instance))); - return instance; -} - -template Windows::Foundation::Collections::IVector impl_IPopupMenu::Commands() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Commands(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IPopupMenu::ShowAsync(const Windows::Foundation::Point & invocationPoint) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsync(get(invocationPoint), put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IPopupMenu::ShowForSelectionAsync(const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsyncWithRect(get(selection), put(asyncOperation))); - return asyncOperation; -} - -template Windows::Foundation::IAsyncOperation impl_IPopupMenu::ShowForSelectionAsync(const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - Windows::Foundation::IAsyncOperation asyncOperation; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsyncWithRectAndPlacement(get(selection), preferredPlacement, put(asyncOperation))); - return asyncOperation; -} - -inline MessageDialog::MessageDialog(hstring_ref content) : - MessageDialog(get_activation_factory().Create(content)) -{} - -inline MessageDialog::MessageDialog(hstring_ref content, hstring_ref title) : - MessageDialog(get_activation_factory().CreateWithTitle(content, title)) -{} - -inline PopupMenu::PopupMenu() : - PopupMenu(activate_instance()) -{} - -inline UICommand::UICommand() : - UICommand(activate_instance()) -{} - -inline UICommand::UICommand(hstring_ref label) : - UICommand(get_activation_factory().Create(label)) -{} - -inline UICommand::UICommand(hstring_ref label, const Windows::UI::Popups::UICommandInvokedHandler & action) : - UICommand(get_activation_factory().CreateWithHandler(label, action)) -{} - -inline UICommand::UICommand(hstring_ref label, const Windows::UI::Popups::UICommandInvokedHandler & action, const Windows::IInspectable & commandId) : - UICommand(get_activation_factory().CreateWithHandlerAndId(label, action, commandId)) -{} - -inline UICommandSeparator::UICommandSeparator() : - UICommandSeparator(activate_instance()) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.StartScreen.h b/10.0.14393.0/winrt/Windows.UI.StartScreen.h deleted file mode 100644 index db324e689..000000000 --- a/10.0.14393.0/winrt/Windows.UI.StartScreen.h +++ /dev/null @@ -1,2069 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.UI.Popups.3.h" -#include "internal/Windows.UI.StartScreen.3.h" -#include "Windows.UI.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SystemGroupKind(Windows::UI::StartScreen::JumpListSystemGroupKind * value) noexcept override - { - try - { - *value = detach(this->shim().SystemGroupKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SystemGroupKind(Windows::UI::StartScreen::JumpListSystemGroupKind value) noexcept override - { - try - { - this->shim().SystemGroupKind(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveAsync(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().SaveAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Kind(Windows::UI::StartScreen::JumpListItemKind * value) noexcept override - { - try - { - *value = detach(this->shim().Kind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Arguments(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Arguments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemovedByUser(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RemovedByUser()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Description(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Description()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Description(abi_arg_in value) noexcept override - { - try - { - this->shim().Description(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GroupName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GroupName(abi_arg_in value) noexcept override - { - try - { - this->shim().GroupName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Logo(abi_arg_in value) noexcept override - { - try - { - this->shim().Logo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateWithArguments(abi_arg_in arguments, abi_arg_in displayName, abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateWithArguments(*reinterpret_cast(&arguments), *reinterpret_cast(&displayName))); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateSeparator(abi_arg_out result) noexcept override - { - try - { - *result = detach(this->shim().CreateSeparator()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_LoadCurrentAsync(abi_arg_out> result) noexcept override - { - try - { - *result = detach(this->shim().LoadCurrentAsync()); - return S_OK; - } - catch (...) - { - *result = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsSupported(bool * result) noexcept override - { - try - { - *result = detach(this->shim().IsSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_TileId(abi_arg_in value) noexcept override - { - try - { - this->shim().TileId(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TileId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TileId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Arguments(abi_arg_in value) noexcept override - { - try - { - this->shim().Arguments(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Arguments(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Arguments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShortName(abi_arg_in value) noexcept override - { - try - { - this->shim().ShortName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShortName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShortName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayName(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Logo(abi_arg_in value) noexcept override - { - try - { - this->shim().Logo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SmallLogo(abi_arg_in value) noexcept override - { - try - { - this->shim().SmallLogo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmallLogo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmallLogo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WideLogo(abi_arg_in value) noexcept override - { - try - { - this->shim().WideLogo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WideLogo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WideLogo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LockScreenBadgeLogo(abi_arg_in value) noexcept override - { - try - { - this->shim().LockScreenBadgeLogo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LockScreenBadgeLogo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LockScreenBadgeLogo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LockScreenDisplayBadgeAndTileText(bool value) noexcept override - { - try - { - this->shim().LockScreenDisplayBadgeAndTileText(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LockScreenDisplayBadgeAndTileText(bool * value) noexcept override - { - try - { - *value = detach(this->shim().LockScreenDisplayBadgeAndTileText()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TileOptions(Windows::UI::StartScreen::TileOptions value) noexcept override - { - try - { - this->shim().TileOptions(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TileOptions(Windows::UI::StartScreen::TileOptions * value) noexcept override - { - try - { - *value = detach(this->shim().TileOptions()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ForegroundText(Windows::UI::StartScreen::ForegroundText value) noexcept override - { - try - { - this->shim().ForegroundText(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundText(Windows::UI::StartScreen::ForegroundText * value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundText()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackgroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().BackgroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCreateAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestCreateAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCreateAsyncWithPoint(abi_arg_in invocationPoint, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestCreateAsync(*reinterpret_cast(&invocationPoint))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCreateAsyncWithRect(abi_arg_in selection, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestCreateForSelectionAsync(*reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestCreateAsyncWithRectAndPlacement(abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestCreateForSelectionAsync(*reinterpret_cast(&selection), preferredPlacement)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestDeleteAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestDeleteAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestDeleteAsyncWithPoint(abi_arg_in invocationPoint, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestDeleteAsync(*reinterpret_cast(&invocationPoint))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestDeleteAsyncWithRect(abi_arg_in selection, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestDeleteForSelectionAsync(*reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestDeleteAsyncWithRectAndPlacement(abi_arg_in selection, Windows::UI::Popups::Placement preferredPlacement, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestDeleteForSelectionAsync(*reinterpret_cast(&selection), preferredPlacement)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UpdateAsync(abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().UpdateAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_PhoneticName(abi_arg_in value) noexcept override - { - try - { - this->shim().PhoneticName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PhoneticName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PhoneticName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VisualElements(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VisualElements()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RoamingEnabled(bool value) noexcept override - { - try - { - this->shim().RoamingEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoamingEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RoamingEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VisualElementsRequested(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VisualElementsRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VisualElementsRequested(event_token token) noexcept override - { - try - { - this->shim().VisualElementsRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateTile(abi_arg_in tileId, abi_arg_in shortName, abi_arg_in displayName, abi_arg_in arguments, Windows::UI::StartScreen::TileOptions tileOptions, abi_arg_in logoReference, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateTile(*reinterpret_cast(&tileId), *reinterpret_cast(&shortName), *reinterpret_cast(&displayName), *reinterpret_cast(&arguments), tileOptions, *reinterpret_cast(&logoReference))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWideTile(abi_arg_in tileId, abi_arg_in shortName, abi_arg_in displayName, abi_arg_in arguments, Windows::UI::StartScreen::TileOptions tileOptions, abi_arg_in logoReference, abi_arg_in wideLogoReference, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWideTile(*reinterpret_cast(&tileId), *reinterpret_cast(&shortName), *reinterpret_cast(&displayName), *reinterpret_cast(&arguments), tileOptions, *reinterpret_cast(&logoReference), *reinterpret_cast(&wideLogoReference))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithId(abi_arg_in tileId, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateWithId(*reinterpret_cast(&tileId))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateMinimalTile(abi_arg_in tileId, abi_arg_in displayName, abi_arg_in arguments, abi_arg_in square150x150Logo, Windows::UI::StartScreen::TileSize desiredSize, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateMinimalTile(*reinterpret_cast(&tileId), *reinterpret_cast(&displayName), *reinterpret_cast(&arguments), *reinterpret_cast(&square150x150Logo), desiredSize)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Exists(abi_arg_in tileId, bool * exists) noexcept override - { - try - { - *exists = detach(this->shim().Exists(*reinterpret_cast(&tileId))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAllAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllForApplicationAsync(abi_arg_in applicationId, abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAllAsync(*reinterpret_cast(&applicationId))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAllForPackageAsync(abi_arg_out>> operation) noexcept override - { - try - { - *operation = detach(this->shim().FindAllForPackageAsync()); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Square30x30Logo(abi_arg_in value) noexcept override - { - try - { - this->shim().Square30x30Logo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Square30x30Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Square30x30Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Square70x70Logo(abi_arg_in value) noexcept override - { - try - { - this->shim().Square70x70Logo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Square70x70Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Square70x70Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Square150x150Logo(abi_arg_in value) noexcept override - { - try - { - this->shim().Square150x150Logo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Square150x150Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Square150x150Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Wide310x150Logo(abi_arg_in value) noexcept override - { - try - { - this->shim().Wide310x150Logo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Wide310x150Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Wide310x150Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Square310x310Logo(abi_arg_in value) noexcept override - { - try - { - this->shim().Square310x310Logo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Square310x310Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Square310x310Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ForegroundText(Windows::UI::StartScreen::ForegroundText value) noexcept override - { - try - { - this->shim().ForegroundText(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundText(Windows::UI::StartScreen::ForegroundText * value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundText()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackgroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().BackgroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShowNameOnSquare150x150Logo(bool value) noexcept override - { - try - { - this->shim().ShowNameOnSquare150x150Logo(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowNameOnSquare150x150Logo(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowNameOnSquare150x150Logo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShowNameOnWide310x150Logo(bool value) noexcept override - { - try - { - this->shim().ShowNameOnWide310x150Logo(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowNameOnWide310x150Logo(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowNameOnWide310x150Logo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShowNameOnSquare310x310Logo(bool value) noexcept override - { - try - { - this->shim().ShowNameOnSquare310x310Logo(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowNameOnSquare310x310Logo(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowNameOnSquare310x310Logo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Square71x71Logo(abi_arg_in value) noexcept override - { - try - { - this->shim().Square71x71Logo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Square71x71Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Square71x71Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_Square44x44Logo(abi_arg_in value) noexcept override - { - try - { - this->shim().Square44x44Logo(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Square44x44Logo(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Square44x44Logo()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_VisualElements(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VisualElements()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlternateVisualElements(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AlternateVisualElements()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Deadline(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Deadline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::StartScreen { - -template Windows::UI::StartScreen::JumpListItemKind impl_IJumpListItem::Kind() const -{ - Windows::UI::StartScreen::JumpListItemKind value {}; - check_hresult(static_cast(static_cast(*this))->get_Kind(&value)); - return value; -} - -template hstring impl_IJumpListItem::Arguments() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Arguments(put(value))); - return value; -} - -template bool impl_IJumpListItem::RemovedByUser() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RemovedByUser(&value)); - return value; -} - -template hstring impl_IJumpListItem::Description() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Description(put(value))); - return value; -} - -template void impl_IJumpListItem::Description(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Description(get(value))); -} - -template hstring impl_IJumpListItem::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_IJumpListItem::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_IJumpListItem::GroupName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GroupName(put(value))); - return value; -} - -template void impl_IJumpListItem::GroupName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GroupName(get(value))); -} - -template Windows::Foundation::Uri impl_IJumpListItem::Logo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Logo(put(value))); - return value; -} - -template void impl_IJumpListItem::Logo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Logo(get(value))); -} - -template Windows::UI::StartScreen::JumpListItem impl_IJumpListItemStatics::CreateWithArguments(hstring_ref arguments, hstring_ref displayName) const -{ - Windows::UI::StartScreen::JumpListItem result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithArguments(get(arguments), get(displayName), put(result))); - return result; -} - -template Windows::UI::StartScreen::JumpListItem impl_IJumpListItemStatics::CreateSeparator() const -{ - Windows::UI::StartScreen::JumpListItem result { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateSeparator(put(result))); - return result; -} - -template Windows::Foundation::Collections::IVector impl_IJumpList::Items() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Items(put(value))); - return value; -} - -template Windows::UI::StartScreen::JumpListSystemGroupKind impl_IJumpList::SystemGroupKind() const -{ - Windows::UI::StartScreen::JumpListSystemGroupKind value {}; - check_hresult(static_cast(static_cast(*this))->get_SystemGroupKind(&value)); - return value; -} - -template void impl_IJumpList::SystemGroupKind(Windows::UI::StartScreen::JumpListSystemGroupKind value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SystemGroupKind(value)); -} - -template Windows::Foundation::IAsyncAction impl_IJumpList::SaveAsync() const -{ - Windows::Foundation::IAsyncAction result; - check_hresult(static_cast(static_cast(*this))->abi_SaveAsync(put(result))); - return result; -} - -template Windows::Foundation::IAsyncOperation impl_IJumpListStatics::LoadCurrentAsync() const -{ - Windows::Foundation::IAsyncOperation result; - check_hresult(static_cast(static_cast(*this))->abi_LoadCurrentAsync(put(result))); - return result; -} - -template bool impl_IJumpListStatics::IsSupported() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_IsSupported(&result)); - return result; -} - -template void impl_ISecondaryTile::TileId(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TileId(get(value))); -} - -template hstring impl_ISecondaryTile::TileId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TileId(put(value))); - return value; -} - -template void impl_ISecondaryTile::Arguments(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Arguments(get(value))); -} - -template hstring impl_ISecondaryTile::Arguments() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Arguments(put(value))); - return value; -} - -template void impl_ISecondaryTile::ShortName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShortName(get(value))); -} - -template hstring impl_ISecondaryTile::ShortName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ShortName(put(value))); - return value; -} - -template void impl_ISecondaryTile::DisplayName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayName(get(value))); -} - -template hstring impl_ISecondaryTile::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template void impl_ISecondaryTile::Logo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Logo(get(value))); -} - -template Windows::Foundation::Uri impl_ISecondaryTile::Logo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Logo(put(value))); - return value; -} - -template void impl_ISecondaryTile::SmallLogo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SmallLogo(get(value))); -} - -template Windows::Foundation::Uri impl_ISecondaryTile::SmallLogo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SmallLogo(put(value))); - return value; -} - -template void impl_ISecondaryTile::WideLogo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WideLogo(get(value))); -} - -template Windows::Foundation::Uri impl_ISecondaryTile::WideLogo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WideLogo(put(value))); - return value; -} - -template void impl_ISecondaryTile::LockScreenBadgeLogo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LockScreenBadgeLogo(get(value))); -} - -template Windows::Foundation::Uri impl_ISecondaryTile::LockScreenBadgeLogo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LockScreenBadgeLogo(put(value))); - return value; -} - -template void impl_ISecondaryTile::LockScreenDisplayBadgeAndTileText(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LockScreenDisplayBadgeAndTileText(value)); -} - -template bool impl_ISecondaryTile::LockScreenDisplayBadgeAndTileText() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_LockScreenDisplayBadgeAndTileText(&value)); - return value; -} - -template void impl_ISecondaryTile::TileOptions(Windows::UI::StartScreen::TileOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TileOptions(value)); -} - -template Windows::UI::StartScreen::TileOptions impl_ISecondaryTile::TileOptions() const -{ - Windows::UI::StartScreen::TileOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_TileOptions(&value)); - return value; -} - -template void impl_ISecondaryTile::ForegroundText(Windows::UI::StartScreen::ForegroundText value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ForegroundText(value)); -} - -template Windows::UI::StartScreen::ForegroundText impl_ISecondaryTile::ForegroundText() const -{ - Windows::UI::StartScreen::ForegroundText value {}; - check_hresult(static_cast(static_cast(*this))->get_ForegroundText(&value)); - return value; -} - -template void impl_ISecondaryTile::BackgroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackgroundColor(get(value))); -} - -template Windows::UI::Color impl_ISecondaryTile::BackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryTile::RequestCreateAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestCreateAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryTile::RequestCreateAsync(const Windows::Foundation::Point & invocationPoint) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestCreateAsyncWithPoint(get(invocationPoint), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryTile::RequestCreateForSelectionAsync(const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestCreateAsyncWithRect(get(selection), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryTile::RequestCreateForSelectionAsync(const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestCreateAsyncWithRectAndPlacement(get(selection), preferredPlacement, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryTile::RequestDeleteAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestDeleteAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryTile::RequestDeleteAsync(const Windows::Foundation::Point & invocationPoint) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestDeleteAsyncWithPoint(get(invocationPoint), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryTile::RequestDeleteForSelectionAsync(const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestDeleteAsyncWithRect(get(selection), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryTile::RequestDeleteForSelectionAsync(const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement preferredPlacement) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestDeleteAsyncWithRectAndPlacement(get(selection), preferredPlacement, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_ISecondaryTile::UpdateAsync() const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_UpdateAsync(put(operation))); - return operation; -} - -template void impl_ISecondaryTile2::PhoneticName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PhoneticName(get(value))); -} - -template hstring impl_ISecondaryTile2::PhoneticName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PhoneticName(put(value))); - return value; -} - -template Windows::UI::StartScreen::SecondaryTileVisualElements impl_ISecondaryTile2::VisualElements() const -{ - Windows::UI::StartScreen::SecondaryTileVisualElements value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VisualElements(put(value))); - return value; -} - -template void impl_ISecondaryTile2::RoamingEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RoamingEnabled(value)); -} - -template bool impl_ISecondaryTile2::RoamingEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RoamingEnabled(&value)); - return value; -} - -template event_token impl_ISecondaryTile2::VisualElementsRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VisualElementsRequested(get(handler), &token)); - return token; -} - -template event_revoker impl_ISecondaryTile2::VisualElementsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::StartScreen::ISecondaryTile2::remove_VisualElementsRequested, VisualElementsRequested(handler)); -} - -template void impl_ISecondaryTile2::VisualElementsRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VisualElementsRequested(token)); -} - -template void impl_ISecondaryTileVisualElements::Square30x30Logo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Square30x30Logo(get(value))); -} - -template Windows::Foundation::Uri impl_ISecondaryTileVisualElements::Square30x30Logo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Square30x30Logo(put(value))); - return value; -} - -template void impl_ISecondaryTileVisualElements::Square70x70Logo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Square70x70Logo(get(value))); -} - -template Windows::Foundation::Uri impl_ISecondaryTileVisualElements::Square70x70Logo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Square70x70Logo(put(value))); - return value; -} - -template void impl_ISecondaryTileVisualElements::Square150x150Logo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Square150x150Logo(get(value))); -} - -template Windows::Foundation::Uri impl_ISecondaryTileVisualElements::Square150x150Logo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Square150x150Logo(put(value))); - return value; -} - -template void impl_ISecondaryTileVisualElements::Wide310x150Logo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Wide310x150Logo(get(value))); -} - -template Windows::Foundation::Uri impl_ISecondaryTileVisualElements::Wide310x150Logo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Wide310x150Logo(put(value))); - return value; -} - -template void impl_ISecondaryTileVisualElements::Square310x310Logo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Square310x310Logo(get(value))); -} - -template Windows::Foundation::Uri impl_ISecondaryTileVisualElements::Square310x310Logo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Square310x310Logo(put(value))); - return value; -} - -template void impl_ISecondaryTileVisualElements::ForegroundText(Windows::UI::StartScreen::ForegroundText value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ForegroundText(value)); -} - -template Windows::UI::StartScreen::ForegroundText impl_ISecondaryTileVisualElements::ForegroundText() const -{ - Windows::UI::StartScreen::ForegroundText value {}; - check_hresult(static_cast(static_cast(*this))->get_ForegroundText(&value)); - return value; -} - -template void impl_ISecondaryTileVisualElements::BackgroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackgroundColor(get(value))); -} - -template Windows::UI::Color impl_ISecondaryTileVisualElements::BackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(put(value))); - return value; -} - -template void impl_ISecondaryTileVisualElements::ShowNameOnSquare150x150Logo(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShowNameOnSquare150x150Logo(value)); -} - -template bool impl_ISecondaryTileVisualElements::ShowNameOnSquare150x150Logo() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShowNameOnSquare150x150Logo(&value)); - return value; -} - -template void impl_ISecondaryTileVisualElements::ShowNameOnWide310x150Logo(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShowNameOnWide310x150Logo(value)); -} - -template bool impl_ISecondaryTileVisualElements::ShowNameOnWide310x150Logo() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShowNameOnWide310x150Logo(&value)); - return value; -} - -template void impl_ISecondaryTileVisualElements::ShowNameOnSquare310x310Logo(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShowNameOnSquare310x310Logo(value)); -} - -template bool impl_ISecondaryTileVisualElements::ShowNameOnSquare310x310Logo() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShowNameOnSquare310x310Logo(&value)); - return value; -} - -template void impl_ISecondaryTileVisualElements2::Square71x71Logo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Square71x71Logo(get(value))); -} - -template Windows::Foundation::Uri impl_ISecondaryTileVisualElements2::Square71x71Logo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Square71x71Logo(put(value))); - return value; -} - -template void impl_ISecondaryTileVisualElements3::Square44x44Logo(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Square44x44Logo(get(value))); -} - -template Windows::Foundation::Uri impl_ISecondaryTileVisualElements3::Square44x44Logo() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Square44x44Logo(put(value))); - return value; -} - -template Windows::UI::StartScreen::SecondaryTile impl_ISecondaryTileFactory::CreateTile(hstring_ref tileId, hstring_ref shortName, hstring_ref displayName, hstring_ref arguments, Windows::UI::StartScreen::TileOptions tileOptions, const Windows::Foundation::Uri & logoReference) const -{ - Windows::UI::StartScreen::SecondaryTile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateTile(get(tileId), get(shortName), get(displayName), get(arguments), tileOptions, get(logoReference), put(value))); - return value; -} - -template Windows::UI::StartScreen::SecondaryTile impl_ISecondaryTileFactory::CreateWideTile(hstring_ref tileId, hstring_ref shortName, hstring_ref displayName, hstring_ref arguments, Windows::UI::StartScreen::TileOptions tileOptions, const Windows::Foundation::Uri & logoReference, const Windows::Foundation::Uri & wideLogoReference) const -{ - Windows::UI::StartScreen::SecondaryTile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWideTile(get(tileId), get(shortName), get(displayName), get(arguments), tileOptions, get(logoReference), get(wideLogoReference), put(value))); - return value; -} - -template Windows::UI::StartScreen::SecondaryTile impl_ISecondaryTileFactory::CreateWithId(hstring_ref tileId) const -{ - Windows::UI::StartScreen::SecondaryTile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithId(get(tileId), put(value))); - return value; -} - -template Windows::UI::StartScreen::SecondaryTile impl_ISecondaryTileFactory2::CreateMinimalTile(hstring_ref tileId, hstring_ref displayName, hstring_ref arguments, const Windows::Foundation::Uri & square150x150Logo, Windows::UI::StartScreen::TileSize desiredSize) const -{ - Windows::UI::StartScreen::SecondaryTile value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateMinimalTile(get(tileId), get(displayName), get(arguments), get(square150x150Logo), desiredSize, put(value))); - return value; -} - -template bool impl_ISecondaryTileStatics::Exists(hstring_ref tileId) const -{ - bool exists {}; - check_hresult(static_cast(static_cast(*this))->abi_Exists(get(tileId), &exists)); - return exists; -} - -template Windows::Foundation::IAsyncOperation> impl_ISecondaryTileStatics::FindAllAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAllAsync(put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_ISecondaryTileStatics::FindAllAsync(hstring_ref applicationId) const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAllForApplicationAsync(get(applicationId), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation> impl_ISecondaryTileStatics::FindAllForPackageAsync() const -{ - Windows::Foundation::IAsyncOperation> operation; - check_hresult(static_cast(static_cast(*this))->abi_FindAllForPackageAsync(put(operation))); - return operation; -} - -template Windows::UI::StartScreen::VisualElementsRequest impl_IVisualElementsRequestedEventArgs::Request() const -{ - Windows::UI::StartScreen::VisualElementsRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::UI::StartScreen::SecondaryTileVisualElements impl_IVisualElementsRequest::VisualElements() const -{ - Windows::UI::StartScreen::SecondaryTileVisualElements value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VisualElements(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IVisualElementsRequest::AlternateVisualElements() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AlternateVisualElements(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IVisualElementsRequest::Deadline() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Deadline(put(value))); - return value; -} - -template Windows::UI::StartScreen::VisualElementsRequestDeferral impl_IVisualElementsRequest::GetDeferral() const -{ - Windows::UI::StartScreen::VisualElementsRequestDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template void impl_IVisualElementsRequestDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -inline Windows::Foundation::IAsyncOperation JumpList::LoadCurrentAsync() -{ - return get_activation_factory().LoadCurrentAsync(); -} - -inline bool JumpList::IsSupported() -{ - return get_activation_factory().IsSupported(); -} - -inline Windows::UI::StartScreen::JumpListItem JumpListItem::CreateWithArguments(hstring_ref arguments, hstring_ref displayName) -{ - return get_activation_factory().CreateWithArguments(arguments, displayName); -} - -inline Windows::UI::StartScreen::JumpListItem JumpListItem::CreateSeparator() -{ - return get_activation_factory().CreateSeparator(); -} - -inline SecondaryTile::SecondaryTile() : - SecondaryTile(activate_instance()) -{} - -inline SecondaryTile::SecondaryTile(hstring_ref tileId, hstring_ref shortName, hstring_ref displayName, hstring_ref arguments, Windows::UI::StartScreen::TileOptions tileOptions, const Windows::Foundation::Uri & logoReference) : - SecondaryTile(get_activation_factory().CreateTile(tileId, shortName, displayName, arguments, tileOptions, logoReference)) -{} - -inline SecondaryTile::SecondaryTile(hstring_ref tileId, hstring_ref shortName, hstring_ref displayName, hstring_ref arguments, Windows::UI::StartScreen::TileOptions tileOptions, const Windows::Foundation::Uri & logoReference, const Windows::Foundation::Uri & wideLogoReference) : - SecondaryTile(get_activation_factory().CreateWideTile(tileId, shortName, displayName, arguments, tileOptions, logoReference, wideLogoReference)) -{} - -inline SecondaryTile::SecondaryTile(hstring_ref tileId) : - SecondaryTile(get_activation_factory().CreateWithId(tileId)) -{} - -inline SecondaryTile::SecondaryTile(hstring_ref tileId, hstring_ref displayName, hstring_ref arguments, const Windows::Foundation::Uri & square150x150Logo, Windows::UI::StartScreen::TileSize desiredSize) : - SecondaryTile(get_activation_factory().CreateMinimalTile(tileId, displayName, arguments, square150x150Logo, desiredSize)) -{} - -inline bool SecondaryTile::Exists(hstring_ref tileId) -{ - return get_activation_factory().Exists(tileId); -} - -inline Windows::Foundation::IAsyncOperation> SecondaryTile::FindAllAsync() -{ - return get_activation_factory().FindAllAsync(); -} - -inline Windows::Foundation::IAsyncOperation> SecondaryTile::FindAllAsync(hstring_ref applicationId) -{ - return get_activation_factory().FindAllAsync(applicationId); -} - -inline Windows::Foundation::IAsyncOperation> SecondaryTile::FindAllForPackageAsync() -{ - return get_activation_factory().FindAllForPackageAsync(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Text.Core.h b/10.0.14393.0/winrt/Windows.UI.Text.Core.h deleted file mode 100644 index e77c4c763..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Text.Core.h +++ /dev/null @@ -1,1910 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Globalization.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Text.Core.3.h" -#include "Windows.UI.Text.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompositionSegments(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().CompositionSegments()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PreconversionString(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreconversionString()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Range(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Range()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputScope(Windows::UI::Text::Core::CoreTextInputScope * value) noexcept override - { - try - { - *value = detach(this->shim().InputScope()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InputScope(Windows::UI::Text::Core::CoreTextInputScope value) noexcept override - { - try - { - this->shim().InputScope(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsReadOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsReadOnly(bool value) noexcept override - { - try - { - this->shim().IsReadOnly(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputPaneDisplayPolicy(Windows::UI::Text::Core::CoreTextInputPaneDisplayPolicy * value) noexcept override - { - try - { - *value = detach(this->shim().InputPaneDisplayPolicy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InputPaneDisplayPolicy(Windows::UI::Text::Core::CoreTextInputPaneDisplayPolicy value) noexcept override - { - try - { - this->shim().InputPaneDisplayPolicy(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextRequested(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().TextRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextRequested(event_token cookie) noexcept override - { - try - { - this->shim().TextRequested(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SelectionRequested(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().SelectionRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectionRequested(event_token cookie) noexcept override - { - try - { - this->shim().SelectionRequested(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LayoutRequested(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().LayoutRequested(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LayoutRequested(event_token cookie) noexcept override - { - try - { - this->shim().LayoutRequested(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextUpdating(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().TextUpdating(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextUpdating(event_token cookie) noexcept override - { - try - { - this->shim().TextUpdating(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SelectionUpdating(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().SelectionUpdating(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectionUpdating(event_token cookie) noexcept override - { - try - { - this->shim().SelectionUpdating(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FormatUpdating(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().FormatUpdating(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FormatUpdating(event_token cookie) noexcept override - { - try - { - this->shim().FormatUpdating(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CompositionStarted(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().CompositionStarted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CompositionStarted(event_token cookie) noexcept override - { - try - { - this->shim().CompositionStarted(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CompositionCompleted(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().CompositionCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CompositionCompleted(event_token cookie) noexcept override - { - try - { - this->shim().CompositionCompleted(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FocusRemoved(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().FocusRemoved(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FocusRemoved(event_token cookie) noexcept override - { - try - { - this->shim().FocusRemoved(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyFocusEnter() noexcept override - { - try - { - this->shim().NotifyFocusEnter(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyFocusLeave() noexcept override - { - try - { - this->shim().NotifyFocusLeave(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyTextChanged(abi_arg_in modifiedRange, int32_t newLength, abi_arg_in newSelection) noexcept override - { - try - { - this->shim().NotifyTextChanged(*reinterpret_cast(&modifiedRange), newLength, *reinterpret_cast(&newSelection)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifySelectionChanged(abi_arg_in selection) noexcept override - { - try - { - this->shim().NotifySelectionChanged(*reinterpret_cast(&selection)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NotifyLayoutChanged() noexcept override - { - try - { - this->shim().NotifyLayoutChanged(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_NotifyFocusLeaveCompleted(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().NotifyFocusLeaveCompleted(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NotifyFocusLeaveCompleted(event_token cookie) noexcept override - { - try - { - this->shim().NotifyFocusLeaveCompleted(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Range(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Range()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TextColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UnderlineColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().UnderlineColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UnderlineType(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().UnderlineType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Reason(Windows::UI::Text::Core::CoreTextFormatUpdatingReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Result(Windows::UI::Text::Core::CoreTextFormatUpdatingResult * value) noexcept override - { - try - { - *value = detach(this->shim().Result()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Result(Windows::UI::Text::Core::CoreTextFormatUpdatingResult value) noexcept override - { - try - { - this->shim().Result(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextBounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextBounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextBounds(abi_arg_in value) noexcept override - { - try - { - this->shim().TextBounds(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ControlBounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ControlBounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ControlBounds(abi_arg_in value) noexcept override - { - try - { - this->shim().ControlBounds(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Range(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Range()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LayoutBounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LayoutBounds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Selection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Selection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Selection(abi_arg_in value) noexcept override - { - try - { - this->shim().Selection(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Selection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Selection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Result(Windows::UI::Text::Core::CoreTextSelectionUpdatingResult * value) noexcept override - { - try - { - *value = detach(this->shim().Result()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Result(Windows::UI::Text::Core::CoreTextSelectionUpdatingResult value) noexcept override - { - try - { - this->shim().Result(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InputLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_InputLanguageChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().InputLanguageChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_InputLanguageChanged(event_token cookie) noexcept override - { - try - { - this->shim().InputLanguageChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateEditContext(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CreateEditContext()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HiddenCharacter(wchar_t * value) noexcept override - { - try - { - *value = detach(this->shim().HiddenCharacter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Range(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Range()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Range(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Range()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewSelection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewSelection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputLanguage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputLanguage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Result(Windows::UI::Text::Core::CoreTextTextUpdatingResult * value) noexcept override - { - try - { - *value = detach(this->shim().Result()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Result(Windows::UI::Text::Core::CoreTextTextUpdatingResult value) noexcept override - { - try - { - this->shim().Result(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCanceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCanceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Text::Core { - -template Windows::UI::Text::Core::CoreTextRange impl_ICoreTextTextRequest::Range() const -{ - Windows::UI::Text::Core::CoreTextRange value {}; - check_hresult(static_cast(static_cast(*this))->get_Range(put(value))); - return value; -} - -template hstring impl_ICoreTextTextRequest::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_ICoreTextTextRequest::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template bool impl_ICoreTextTextRequest::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template Windows::Foundation::Deferral impl_ICoreTextTextRequest::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextTextRequest impl_ICoreTextTextRequestedEventArgs::Request() const -{ - Windows::UI::Text::Core::CoreTextTextRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextRange impl_ICoreTextSelectionRequest::Selection() const -{ - Windows::UI::Text::Core::CoreTextRange value {}; - check_hresult(static_cast(static_cast(*this))->get_Selection(put(value))); - return value; -} - -template void impl_ICoreTextSelectionRequest::Selection(const Windows::UI::Text::Core::CoreTextRange & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Selection(get(value))); -} - -template bool impl_ICoreTextSelectionRequest::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template Windows::Foundation::Deferral impl_ICoreTextSelectionRequest::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextSelectionRequest impl_ICoreTextSelectionRequestedEventArgs::Request() const -{ - Windows::UI::Text::Core::CoreTextSelectionRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_ICoreTextLayoutBounds::TextBounds() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_TextBounds(put(value))); - return value; -} - -template void impl_ICoreTextLayoutBounds::TextBounds(const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextBounds(get(value))); -} - -template Windows::Foundation::Rect impl_ICoreTextLayoutBounds::ControlBounds() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_ControlBounds(put(value))); - return value; -} - -template void impl_ICoreTextLayoutBounds::ControlBounds(const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ControlBounds(get(value))); -} - -template Windows::UI::Text::Core::CoreTextRange impl_ICoreTextLayoutRequest::Range() const -{ - Windows::UI::Text::Core::CoreTextRange value {}; - check_hresult(static_cast(static_cast(*this))->get_Range(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextLayoutBounds impl_ICoreTextLayoutRequest::LayoutBounds() const -{ - Windows::UI::Text::Core::CoreTextLayoutBounds value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LayoutBounds(put(value))); - return value; -} - -template bool impl_ICoreTextLayoutRequest::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template Windows::Foundation::Deferral impl_ICoreTextLayoutRequest::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextLayoutRequest impl_ICoreTextLayoutRequestedEventArgs::Request() const -{ - Windows::UI::Text::Core::CoreTextLayoutRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextRange impl_ICoreTextTextUpdatingEventArgs::Range() const -{ - Windows::UI::Text::Core::CoreTextRange value {}; - check_hresult(static_cast(static_cast(*this))->get_Range(put(value))); - return value; -} - -template hstring impl_ICoreTextTextUpdatingEventArgs::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextRange impl_ICoreTextTextUpdatingEventArgs::NewSelection() const -{ - Windows::UI::Text::Core::CoreTextRange value {}; - check_hresult(static_cast(static_cast(*this))->get_NewSelection(put(value))); - return value; -} - -template Windows::Globalization::Language impl_ICoreTextTextUpdatingEventArgs::InputLanguage() const -{ - Windows::Globalization::Language value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputLanguage(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextTextUpdatingResult impl_ICoreTextTextUpdatingEventArgs::Result() const -{ - Windows::UI::Text::Core::CoreTextTextUpdatingResult value {}; - check_hresult(static_cast(static_cast(*this))->get_Result(&value)); - return value; -} - -template void impl_ICoreTextTextUpdatingEventArgs::Result(Windows::UI::Text::Core::CoreTextTextUpdatingResult value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Result(value)); -} - -template bool impl_ICoreTextTextUpdatingEventArgs::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template Windows::Foundation::Deferral impl_ICoreTextTextUpdatingEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextRange impl_ICoreTextSelectionUpdatingEventArgs::Selection() const -{ - Windows::UI::Text::Core::CoreTextRange value {}; - check_hresult(static_cast(static_cast(*this))->get_Selection(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextSelectionUpdatingResult impl_ICoreTextSelectionUpdatingEventArgs::Result() const -{ - Windows::UI::Text::Core::CoreTextSelectionUpdatingResult value {}; - check_hresult(static_cast(static_cast(*this))->get_Result(&value)); - return value; -} - -template void impl_ICoreTextSelectionUpdatingEventArgs::Result(Windows::UI::Text::Core::CoreTextSelectionUpdatingResult value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Result(value)); -} - -template bool impl_ICoreTextSelectionUpdatingEventArgs::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template Windows::Foundation::Deferral impl_ICoreTextSelectionUpdatingEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextRange impl_ICoreTextFormatUpdatingEventArgs::Range() const -{ - Windows::UI::Text::Core::CoreTextRange value {}; - check_hresult(static_cast(static_cast(*this))->get_Range(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICoreTextFormatUpdatingEventArgs::TextColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_TextColor(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICoreTextFormatUpdatingEventArgs::BackgroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICoreTextFormatUpdatingEventArgs::UnderlineColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_UnderlineColor(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICoreTextFormatUpdatingEventArgs::UnderlineType() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_UnderlineType(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextFormatUpdatingReason impl_ICoreTextFormatUpdatingEventArgs::Reason() const -{ - Windows::UI::Text::Core::CoreTextFormatUpdatingReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template Windows::UI::Text::Core::CoreTextFormatUpdatingResult impl_ICoreTextFormatUpdatingEventArgs::Result() const -{ - Windows::UI::Text::Core::CoreTextFormatUpdatingResult value {}; - check_hresult(static_cast(static_cast(*this))->get_Result(&value)); - return value; -} - -template void impl_ICoreTextFormatUpdatingEventArgs::Result(Windows::UI::Text::Core::CoreTextFormatUpdatingResult value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Result(value)); -} - -template bool impl_ICoreTextFormatUpdatingEventArgs::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template Windows::Foundation::Deferral impl_ICoreTextFormatUpdatingEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template bool impl_ICoreTextCompositionStartedEventArgs::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template Windows::Foundation::Deferral impl_ICoreTextCompositionStartedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template bool impl_ICoreTextCompositionCompletedEventArgs::IsCanceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCanceled(&value)); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ICoreTextCompositionCompletedEventArgs::CompositionSegments() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_CompositionSegments(put(value))); - return value; -} - -template Windows::Foundation::Deferral impl_ICoreTextCompositionCompletedEventArgs::GetDeferral() const -{ - Windows::Foundation::Deferral value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(value))); - return value; -} - -template event_token impl_ICoreTextEditContext2::NotifyFocusLeaveCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_NotifyFocusLeaveCompleted(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreTextEditContext2::NotifyFocusLeaveCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Text::Core::ICoreTextEditContext2::remove_NotifyFocusLeaveCompleted, NotifyFocusLeaveCompleted(handler)); -} - -template void impl_ICoreTextEditContext2::NotifyFocusLeaveCompleted(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NotifyFocusLeaveCompleted(cookie)); -} - -template hstring impl_ICoreTextEditContext::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_ICoreTextEditContext::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template Windows::UI::Text::Core::CoreTextInputScope impl_ICoreTextEditContext::InputScope() const -{ - Windows::UI::Text::Core::CoreTextInputScope value {}; - check_hresult(static_cast(static_cast(*this))->get_InputScope(&value)); - return value; -} - -template void impl_ICoreTextEditContext::InputScope(Windows::UI::Text::Core::CoreTextInputScope value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InputScope(value)); -} - -template bool impl_ICoreTextEditContext::IsReadOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnly(&value)); - return value; -} - -template void impl_ICoreTextEditContext::IsReadOnly(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsReadOnly(value)); -} - -template Windows::UI::Text::Core::CoreTextInputPaneDisplayPolicy impl_ICoreTextEditContext::InputPaneDisplayPolicy() const -{ - Windows::UI::Text::Core::CoreTextInputPaneDisplayPolicy value {}; - check_hresult(static_cast(static_cast(*this))->get_InputPaneDisplayPolicy(&value)); - return value; -} - -template void impl_ICoreTextEditContext::InputPaneDisplayPolicy(Windows::UI::Text::Core::CoreTextInputPaneDisplayPolicy value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InputPaneDisplayPolicy(value)); -} - -template event_token impl_ICoreTextEditContext::TextRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_TextRequested(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreTextEditContext::TextRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Text::Core::ICoreTextEditContext::remove_TextRequested, TextRequested(handler)); -} - -template void impl_ICoreTextEditContext::TextRequested(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextRequested(cookie)); -} - -template event_token impl_ICoreTextEditContext::SelectionRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_SelectionRequested(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreTextEditContext::SelectionRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Text::Core::ICoreTextEditContext::remove_SelectionRequested, SelectionRequested(handler)); -} - -template void impl_ICoreTextEditContext::SelectionRequested(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SelectionRequested(cookie)); -} - -template event_token impl_ICoreTextEditContext::LayoutRequested(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_LayoutRequested(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreTextEditContext::LayoutRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Text::Core::ICoreTextEditContext::remove_LayoutRequested, LayoutRequested(handler)); -} - -template void impl_ICoreTextEditContext::LayoutRequested(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LayoutRequested(cookie)); -} - -template event_token impl_ICoreTextEditContext::TextUpdating(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_TextUpdating(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreTextEditContext::TextUpdating(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Text::Core::ICoreTextEditContext::remove_TextUpdating, TextUpdating(handler)); -} - -template void impl_ICoreTextEditContext::TextUpdating(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextUpdating(cookie)); -} - -template event_token impl_ICoreTextEditContext::SelectionUpdating(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_SelectionUpdating(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreTextEditContext::SelectionUpdating(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Text::Core::ICoreTextEditContext::remove_SelectionUpdating, SelectionUpdating(handler)); -} - -template void impl_ICoreTextEditContext::SelectionUpdating(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SelectionUpdating(cookie)); -} - -template event_token impl_ICoreTextEditContext::FormatUpdating(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_FormatUpdating(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreTextEditContext::FormatUpdating(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Text::Core::ICoreTextEditContext::remove_FormatUpdating, FormatUpdating(handler)); -} - -template void impl_ICoreTextEditContext::FormatUpdating(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FormatUpdating(cookie)); -} - -template event_token impl_ICoreTextEditContext::CompositionStarted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_CompositionStarted(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreTextEditContext::CompositionStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Text::Core::ICoreTextEditContext::remove_CompositionStarted, CompositionStarted(handler)); -} - -template void impl_ICoreTextEditContext::CompositionStarted(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CompositionStarted(cookie)); -} - -template event_token impl_ICoreTextEditContext::CompositionCompleted(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_CompositionCompleted(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreTextEditContext::CompositionCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Text::Core::ICoreTextEditContext::remove_CompositionCompleted, CompositionCompleted(handler)); -} - -template void impl_ICoreTextEditContext::CompositionCompleted(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CompositionCompleted(cookie)); -} - -template event_token impl_ICoreTextEditContext::FocusRemoved(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_FocusRemoved(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreTextEditContext::FocusRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Text::Core::ICoreTextEditContext::remove_FocusRemoved, FocusRemoved(handler)); -} - -template void impl_ICoreTextEditContext::FocusRemoved(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FocusRemoved(cookie)); -} - -template void impl_ICoreTextEditContext::NotifyFocusEnter() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyFocusEnter()); -} - -template void impl_ICoreTextEditContext::NotifyFocusLeave() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyFocusLeave()); -} - -template void impl_ICoreTextEditContext::NotifyTextChanged(const Windows::UI::Text::Core::CoreTextRange & modifiedRange, int32_t newLength, const Windows::UI::Text::Core::CoreTextRange & newSelection) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyTextChanged(get(modifiedRange), newLength, get(newSelection))); -} - -template void impl_ICoreTextEditContext::NotifySelectionChanged(const Windows::UI::Text::Core::CoreTextRange & selection) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifySelectionChanged(get(selection))); -} - -template void impl_ICoreTextEditContext::NotifyLayoutChanged() const -{ - check_hresult(static_cast(static_cast(*this))->abi_NotifyLayoutChanged()); -} - -template Windows::Globalization::Language impl_ICoreTextServicesManager::InputLanguage() const -{ - Windows::Globalization::Language value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputLanguage(put(value))); - return value; -} - -template event_token impl_ICoreTextServicesManager::InputLanguageChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_InputLanguageChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_ICoreTextServicesManager::InputLanguageChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Text::Core::ICoreTextServicesManager::remove_InputLanguageChanged, InputLanguageChanged(handler)); -} - -template void impl_ICoreTextServicesManager::InputLanguageChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_InputLanguageChanged(cookie)); -} - -template Windows::UI::Text::Core::CoreTextEditContext impl_ICoreTextServicesManager::CreateEditContext() const -{ - Windows::UI::Text::Core::CoreTextEditContext value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateEditContext(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextServicesManager impl_ICoreTextServicesManagerStatics::GetForCurrentView() const -{ - Windows::UI::Text::Core::CoreTextServicesManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(value))); - return value; -} - -template wchar_t impl_ICoreTextServicesStatics::HiddenCharacter() const -{ - wchar_t value {}; - check_hresult(static_cast(static_cast(*this))->get_HiddenCharacter(&value)); - return value; -} - -template hstring impl_ICoreTextCompositionSegment::PreconversionString() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PreconversionString(put(value))); - return value; -} - -template Windows::UI::Text::Core::CoreTextRange impl_ICoreTextCompositionSegment::Range() const -{ - Windows::UI::Text::Core::CoreTextRange value {}; - check_hresult(static_cast(static_cast(*this))->get_Range(put(value))); - return value; -} - -inline wchar_t CoreTextServicesConstants::HiddenCharacter() -{ - return get_activation_factory().HiddenCharacter(); -} - -inline Windows::UI::Text::Core::CoreTextServicesManager CoreTextServicesManager::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Text.h b/10.0.14393.0/winrt/Windows.UI.Text.h deleted file mode 100644 index 6da5fe901..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Text.h +++ /dev/null @@ -1,4106 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.UI.Text.3.h" -#include "Windows.UI.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Black(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Black()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bold(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bold()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtraBlack(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtraBlack()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtraBold(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtraBold()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtraLight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtraLight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Light(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Light()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Medium(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Medium()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Normal(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Normal()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SemiBold(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SemiBold()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SemiLight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SemiLight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Thin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Thin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllCaps(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().AllCaps()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllCaps(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().AllCaps(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackgroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().BackgroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bold(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().Bold()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Bold(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().Bold(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStretch(Windows::UI::Text::FontStretch * value) noexcept override - { - try - { - *value = detach(this->shim().FontStretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontStretch(Windows::UI::Text::FontStretch value) noexcept override - { - try - { - this->shim().FontStretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyle(Windows::UI::Text::FontStyle * value) noexcept override - { - try - { - *value = detach(this->shim().FontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontStyle(Windows::UI::Text::FontStyle value) noexcept override - { - try - { - this->shim().FontStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ForegroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().ForegroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Hidden(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().Hidden()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Hidden(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().Hidden(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Italic(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().Italic()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Italic(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().Italic(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Kerning(float * value) noexcept override - { - try - { - *value = detach(this->shim().Kerning()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Kerning(float value) noexcept override - { - try - { - this->shim().Kerning(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LanguageTag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LanguageTag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LanguageTag(abi_arg_in value) noexcept override - { - try - { - this->shim().LanguageTag(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinkType(Windows::UI::Text::LinkType * value) noexcept override - { - try - { - *value = detach(this->shim().LinkType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Name(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Name()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Name(abi_arg_in value) noexcept override - { - try - { - this->shim().Name(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Outline(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().Outline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Outline(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().Outline(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(float * value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Position(float value) noexcept override - { - try - { - this->shim().Position(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtectedText(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().ProtectedText()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProtectedText(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().ProtectedText(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Size(float * value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Size(float value) noexcept override - { - try - { - this->shim().Size(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmallCaps(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().SmallCaps()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SmallCaps(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().SmallCaps(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Spacing(float * value) noexcept override - { - try - { - *value = detach(this->shim().Spacing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Spacing(float value) noexcept override - { - try - { - this->shim().Spacing(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Strikethrough(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().Strikethrough()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Strikethrough(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().Strikethrough(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Subscript(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().Subscript()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Subscript(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().Subscript(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Superscript(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().Superscript()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Superscript(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().Superscript(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextScript(Windows::UI::Text::TextScript * value) noexcept override - { - try - { - *value = detach(this->shim().TextScript()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextScript(Windows::UI::Text::TextScript value) noexcept override - { - try - { - this->shim().TextScript(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Underline(Windows::UI::Text::UnderlineType * value) noexcept override - { - try - { - *value = detach(this->shim().Underline()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Underline(Windows::UI::Text::UnderlineType value) noexcept override - { - try - { - this->shim().Underline(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Weight(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Weight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Weight(int32_t value) noexcept override - { - try - { - this->shim().Weight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetClone(abi_arg_in value) noexcept override - { - try - { - this->shim().SetClone(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetClone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetClone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEqual(abi_arg_in format, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEqual(*reinterpret_cast(&format))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AutoColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutoColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinUnitCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinUnitCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxUnitCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxUnitCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UndefinedColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UndefinedColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UndefinedFloatValue(float * value) noexcept override - { - try - { - *value = detach(this->shim().UndefinedFloatValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UndefinedInt32Value(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UndefinedInt32Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UndefinedFontStretch(Windows::UI::Text::FontStretch * value) noexcept override - { - try - { - *value = detach(this->shim().UndefinedFontStretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UndefinedFontStyle(Windows::UI::Text::FontStyle * value) noexcept override - { - try - { - *value = detach(this->shim().UndefinedFontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CaretType(Windows::UI::Text::CaretType * value) noexcept override - { - try - { - *value = detach(this->shim().CaretType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CaretType(Windows::UI::Text::CaretType value) noexcept override - { - try - { - this->shim().CaretType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultTabStop(float * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultTabStop()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultTabStop(float value) noexcept override - { - try - { - this->shim().DefaultTabStop(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Selection(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Selection()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UndoLimit(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().UndoLimit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UndoLimit(uint32_t value) noexcept override - { - try - { - this->shim().UndoLimit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanCopy(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanCopy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanPaste(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanPaste()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanRedo(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanRedo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanUndo(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanUndo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ApplyDisplayUpdates(int32_t * count) noexcept override - { - try - { - *count = detach(this->shim().ApplyDisplayUpdates()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BatchDisplayUpdates(int32_t * count) noexcept override - { - try - { - *count = detach(this->shim().BatchDisplayUpdates()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BeginUndoGroup() noexcept override - { - try - { - this->shim().BeginUndoGroup(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EndUndoGroup() noexcept override - { - try - { - this->shim().EndUndoGroup(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultCharacterFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDefaultCharacterFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDefaultParagraphFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetDefaultParagraphFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRange(int32_t startPosition, int32_t endPosition, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetRange(startPosition, endPosition)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRangeFromPoint(abi_arg_in point, Windows::UI::Text::PointOptions options, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetRangeFromPoint(*reinterpret_cast(&point), options)); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetText(Windows::UI::Text::TextGetOptions options, abi_arg_out value) noexcept override - { - try - { - this->shim().GetText(options, *value); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadFromStream(Windows::UI::Text::TextSetOptions options, abi_arg_in value) noexcept override - { - try - { - this->shim().LoadFromStream(options, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Redo() noexcept override - { - try - { - this->shim().Redo(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SaveToStream(Windows::UI::Text::TextGetOptions options, abi_arg_in value) noexcept override - { - try - { - this->shim().SaveToStream(options, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDefaultCharacterFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().SetDefaultCharacterFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDefaultParagraphFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().SetDefaultParagraphFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetText(Windows::UI::Text::TextSetOptions options, abi_arg_in value) noexcept override - { - try - { - this->shim().SetText(options, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Undo() noexcept override - { - try - { - this->shim().Undo(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Alignment(Windows::UI::Text::ParagraphAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().Alignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Alignment(Windows::UI::Text::ParagraphAlignment value) noexcept override - { - try - { - this->shim().Alignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstLineIndent(float * value) noexcept override - { - try - { - *value = detach(this->shim().FirstLineIndent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeepTogether(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().KeepTogether()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeepTogether(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().KeepTogether(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeepWithNext(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().KeepWithNext()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_KeepWithNext(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().KeepWithNext(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LeftIndent(float * value) noexcept override - { - try - { - *value = detach(this->shim().LeftIndent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineSpacing(float * value) noexcept override - { - try - { - *value = detach(this->shim().LineSpacing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineSpacingRule(Windows::UI::Text::LineSpacingRule * value) noexcept override - { - try - { - *value = detach(this->shim().LineSpacingRule()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListAlignment(Windows::UI::Text::MarkerAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().ListAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ListAlignment(Windows::UI::Text::MarkerAlignment value) noexcept override - { - try - { - this->shim().ListAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListLevelIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ListLevelIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ListLevelIndex(int32_t value) noexcept override - { - try - { - this->shim().ListLevelIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListStart(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ListStart()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ListStart(int32_t value) noexcept override - { - try - { - this->shim().ListStart(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListStyle(Windows::UI::Text::MarkerStyle * value) noexcept override - { - try - { - *value = detach(this->shim().ListStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ListStyle(Windows::UI::Text::MarkerStyle value) noexcept override - { - try - { - this->shim().ListStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListTab(float * value) noexcept override - { - try - { - *value = detach(this->shim().ListTab()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ListTab(float value) noexcept override - { - try - { - this->shim().ListTab(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListType(Windows::UI::Text::MarkerType * value) noexcept override - { - try - { - *value = detach(this->shim().ListType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ListType(Windows::UI::Text::MarkerType value) noexcept override - { - try - { - this->shim().ListType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NoLineNumber(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().NoLineNumber()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NoLineNumber(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().NoLineNumber(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageBreakBefore(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().PageBreakBefore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PageBreakBefore(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().PageBreakBefore(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightIndent(float * value) noexcept override - { - try - { - *value = detach(this->shim().RightIndent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RightIndent(float value) noexcept override - { - try - { - this->shim().RightIndent(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightToLeft(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().RightToLeft()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RightToLeft(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().RightToLeft(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Style(Windows::UI::Text::ParagraphStyle * value) noexcept override - { - try - { - *value = detach(this->shim().Style()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Style(Windows::UI::Text::ParagraphStyle value) noexcept override - { - try - { - this->shim().Style(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpaceAfter(float * value) noexcept override - { - try - { - *value = detach(this->shim().SpaceAfter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SpaceAfter(float value) noexcept override - { - try - { - this->shim().SpaceAfter(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SpaceBefore(float * value) noexcept override - { - try - { - *value = detach(this->shim().SpaceBefore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SpaceBefore(float value) noexcept override - { - try - { - this->shim().SpaceBefore(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WidowControl(Windows::UI::Text::FormatEffect * value) noexcept override - { - try - { - *value = detach(this->shim().WidowControl()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WidowControl(Windows::UI::Text::FormatEffect value) noexcept override - { - try - { - this->shim().WidowControl(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TabCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TabCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddTab(float position, Windows::UI::Text::TabAlignment align, Windows::UI::Text::TabLeader leader) noexcept override - { - try - { - this->shim().AddTab(position, align, leader); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearAllTabs() noexcept override - { - try - { - this->shim().ClearAllTabs(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeleteTab(float position) noexcept override - { - try - { - this->shim().DeleteTab(position); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetClone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetClone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTab(int32_t index, float * position, Windows::UI::Text::TabAlignment * align, Windows::UI::Text::TabLeader * leader) noexcept override - { - try - { - this->shim().GetTab(index, *position, *align, *leader); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEqual(abi_arg_in format, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEqual(*reinterpret_cast(&format))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetClone(abi_arg_in format) noexcept override - { - try - { - this->shim().SetClone(*reinterpret_cast(&format)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIndents(float start, float left, float right) noexcept override - { - try - { - this->shim().SetIndents(start, left, right); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLineSpacing(Windows::UI::Text::LineSpacingRule rule, float spacing) noexcept override - { - try - { - this->shim().SetLineSpacing(rule, spacing); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Character(wchar_t * value) noexcept override - { - try - { - *value = detach(this->shim().Character()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Character(wchar_t value) noexcept override - { - try - { - this->shim().Character(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacterFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CharacterFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CharacterFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().CharacterFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FormattedText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormattedText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FormattedText(abi_arg_in value) noexcept override - { - try - { - this->shim().FormattedText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EndPosition(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().EndPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EndPosition(int32_t value) noexcept override - { - try - { - this->shim().EndPosition(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Gravity(Windows::UI::Text::RangeGravity * value) noexcept override - { - try - { - *value = detach(this->shim().Gravity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Gravity(Windows::UI::Text::RangeGravity value) noexcept override - { - try - { - this->shim().Gravity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Length(int32_t * length) noexcept override - { - try - { - *length = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Link(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Link()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Link(abi_arg_in value) noexcept override - { - try - { - this->shim().Link(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ParagraphFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ParagraphFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ParagraphFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().ParagraphFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StartPosition(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StartPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StartPosition(int32_t value) noexcept override - { - try - { - this->shim().StartPosition(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StoryLength(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StoryLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanPaste(int32_t format, bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanPaste(format)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ChangeCase(Windows::UI::Text::LetterCase value) noexcept override - { - try - { - this->shim().ChangeCase(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Collapse(bool value) noexcept override - { - try - { - this->shim().Collapse(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Copy() noexcept override - { - try - { - this->shim().Copy(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Cut() noexcept override - { - try - { - this->shim().Cut(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Delete(Windows::UI::Text::TextRangeUnit unit, int32_t count, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().Delete(unit, count)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EndOf(Windows::UI::Text::TextRangeUnit unit, bool extend, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().EndOf(unit, extend)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Expand(Windows::UI::Text::TextRangeUnit unit, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().Expand(unit)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindText(abi_arg_in value, int32_t scanLength, Windows::UI::Text::FindOptions options, int32_t * length) noexcept override - { - try - { - *length = detach(this->shim().FindText(*reinterpret_cast(&value), scanLength, options)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCharacterUtf32(uint32_t * value, int32_t offset) noexcept override - { - try - { - this->shim().GetCharacterUtf32(*value, offset); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetClone(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetClone()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIndex(Windows::UI::Text::TextRangeUnit unit, int32_t * index) noexcept override - { - try - { - *index = detach(this->shim().GetIndex(unit)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPoint(Windows::UI::Text::HorizontalCharacterAlignment horizontalAlign, Windows::UI::Text::VerticalCharacterAlignment verticalAlign, Windows::UI::Text::PointOptions options, abi_arg_out point) noexcept override - { - try - { - this->shim().GetPoint(horizontalAlign, verticalAlign, options, *point); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRect(Windows::UI::Text::PointOptions options, abi_arg_out rect, int32_t * hit) noexcept override - { - try - { - this->shim().GetRect(options, *rect, *hit); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetText(Windows::UI::Text::TextGetOptions options, abi_arg_out value) noexcept override - { - try - { - this->shim().GetText(options, *value); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTextViaStream(Windows::UI::Text::TextGetOptions options, abi_arg_in value) noexcept override - { - try - { - this->shim().GetTextViaStream(options, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InRange(abi_arg_in range, bool * value) noexcept override - { - try - { - *value = detach(this->shim().InRange(*reinterpret_cast(&range))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertImage(int32_t width, int32_t height, int32_t ascent, Windows::UI::Text::VerticalCharacterAlignment verticalAlign, abi_arg_in alternateText, abi_arg_in value) noexcept override - { - try - { - this->shim().InsertImage(width, height, ascent, verticalAlign, *reinterpret_cast(&alternateText), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InStory(abi_arg_in range, bool * value) noexcept override - { - try - { - *value = detach(this->shim().InStory(*reinterpret_cast(&range))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEqual(abi_arg_in range, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEqual(*reinterpret_cast(&range))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Move(Windows::UI::Text::TextRangeUnit unit, int32_t count, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().Move(unit, count)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveEnd(Windows::UI::Text::TextRangeUnit unit, int32_t count, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().MoveEnd(unit, count)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveStart(Windows::UI::Text::TextRangeUnit unit, int32_t count, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().MoveStart(unit, count)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Paste(int32_t format) noexcept override - { - try - { - this->shim().Paste(format); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ScrollIntoView(Windows::UI::Text::PointOptions value) noexcept override - { - try - { - this->shim().ScrollIntoView(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MatchSelection() noexcept override - { - try - { - this->shim().MatchSelection(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIndex(Windows::UI::Text::TextRangeUnit unit, int32_t index, bool extend) noexcept override - { - try - { - this->shim().SetIndex(unit, index, extend); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPoint(abi_arg_in point, Windows::UI::Text::PointOptions options, bool extend) noexcept override - { - try - { - this->shim().SetPoint(*reinterpret_cast(&point), options, extend); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRange(int32_t startPosition, int32_t endPosition) noexcept override - { - try - { - this->shim().SetRange(startPosition, endPosition); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetText(Windows::UI::Text::TextSetOptions options, abi_arg_in value) noexcept override - { - try - { - this->shim().SetText(options, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetTextViaStream(Windows::UI::Text::TextSetOptions options, abi_arg_in value) noexcept override - { - try - { - this->shim().SetTextViaStream(options, *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartOf(Windows::UI::Text::TextRangeUnit unit, bool extend, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().StartOf(unit, extend)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Options(Windows::UI::Text::SelectionOptions * value) noexcept override - { - try - { - *value = detach(this->shim().Options()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Options(Windows::UI::Text::SelectionOptions value) noexcept override - { - try - { - this->shim().Options(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Type(Windows::UI::Text::SelectionType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EndKey(Windows::UI::Text::TextRangeUnit unit, bool extend, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().EndKey(unit, extend)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HomeKey(Windows::UI::Text::TextRangeUnit unit, bool extend, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().HomeKey(unit, extend)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveDown(Windows::UI::Text::TextRangeUnit unit, int32_t count, bool extend, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().MoveDown(unit, count, extend)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveLeft(Windows::UI::Text::TextRangeUnit unit, int32_t count, bool extend, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().MoveLeft(unit, count, extend)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveRight(Windows::UI::Text::TextRangeUnit unit, int32_t count, bool extend, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().MoveRight(unit, count, extend)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveUp(Windows::UI::Text::TextRangeUnit unit, int32_t count, bool extend, int32_t * delta) noexcept override - { - try - { - *delta = detach(this->shim().MoveUp(unit, count, extend)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TypeText(abi_arg_in value) noexcept override - { - try - { - this->shim().TypeText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Text { - -template Windows::UI::Color impl_ITextConstantsStatics::AutoColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoColor(put(value))); - return value; -} - -template int32_t impl_ITextConstantsStatics::MinUnitCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinUnitCount(&value)); - return value; -} - -template int32_t impl_ITextConstantsStatics::MaxUnitCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxUnitCount(&value)); - return value; -} - -template Windows::UI::Color impl_ITextConstantsStatics::UndefinedColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_UndefinedColor(put(value))); - return value; -} - -template float impl_ITextConstantsStatics::UndefinedFloatValue() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_UndefinedFloatValue(&value)); - return value; -} - -template int32_t impl_ITextConstantsStatics::UndefinedInt32Value() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UndefinedInt32Value(&value)); - return value; -} - -template Windows::UI::Text::FontStretch impl_ITextConstantsStatics::UndefinedFontStretch() const -{ - Windows::UI::Text::FontStretch value {}; - check_hresult(static_cast(static_cast(*this))->get_UndefinedFontStretch(&value)); - return value; -} - -template Windows::UI::Text::FontStyle impl_ITextConstantsStatics::UndefinedFontStyle() const -{ - Windows::UI::Text::FontStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_UndefinedFontStyle(&value)); - return value; -} - -template Windows::UI::Text::CaretType impl_ITextDocument::CaretType() const -{ - Windows::UI::Text::CaretType value {}; - check_hresult(static_cast(static_cast(*this))->get_CaretType(&value)); - return value; -} - -template void impl_ITextDocument::CaretType(Windows::UI::Text::CaretType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CaretType(value)); -} - -template float impl_ITextDocument::DefaultTabStop() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultTabStop(&value)); - return value; -} - -template void impl_ITextDocument::DefaultTabStop(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultTabStop(value)); -} - -template Windows::UI::Text::ITextSelection impl_ITextDocument::Selection() const -{ - Windows::UI::Text::ITextSelection value; - check_hresult(static_cast(static_cast(*this))->get_Selection(put(value))); - return value; -} - -template uint32_t impl_ITextDocument::UndoLimit() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_UndoLimit(&value)); - return value; -} - -template void impl_ITextDocument::UndoLimit(uint32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UndoLimit(value)); -} - -template bool impl_ITextDocument::CanCopy() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_CanCopy(&value)); - return value; -} - -template bool impl_ITextDocument::CanPaste() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_CanPaste(&value)); - return value; -} - -template bool impl_ITextDocument::CanRedo() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_CanRedo(&value)); - return value; -} - -template bool impl_ITextDocument::CanUndo() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_CanUndo(&value)); - return value; -} - -template int32_t impl_ITextDocument::ApplyDisplayUpdates() const -{ - int32_t count {}; - check_hresult(static_cast(static_cast(*this))->abi_ApplyDisplayUpdates(&count)); - return count; -} - -template int32_t impl_ITextDocument::BatchDisplayUpdates() const -{ - int32_t count {}; - check_hresult(static_cast(static_cast(*this))->abi_BatchDisplayUpdates(&count)); - return count; -} - -template void impl_ITextDocument::BeginUndoGroup() const -{ - check_hresult(static_cast(static_cast(*this))->abi_BeginUndoGroup()); -} - -template void impl_ITextDocument::EndUndoGroup() const -{ - check_hresult(static_cast(static_cast(*this))->abi_EndUndoGroup()); -} - -template Windows::UI::Text::ITextCharacterFormat impl_ITextDocument::GetDefaultCharacterFormat() const -{ - Windows::UI::Text::ITextCharacterFormat value; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultCharacterFormat(put(value))); - return value; -} - -template Windows::UI::Text::ITextParagraphFormat impl_ITextDocument::GetDefaultParagraphFormat() const -{ - Windows::UI::Text::ITextParagraphFormat value; - check_hresult(static_cast(static_cast(*this))->abi_GetDefaultParagraphFormat(put(value))); - return value; -} - -template Windows::UI::Text::ITextRange impl_ITextDocument::GetRange(int32_t startPosition, int32_t endPosition) const -{ - Windows::UI::Text::ITextRange value; - check_hresult(static_cast(static_cast(*this))->abi_GetRange(startPosition, endPosition, put(value))); - return value; -} - -template Windows::UI::Text::ITextRange impl_ITextDocument::GetRangeFromPoint(const Windows::Foundation::Point & point, Windows::UI::Text::PointOptions options) const -{ - Windows::UI::Text::ITextRange value; - check_hresult(static_cast(static_cast(*this))->abi_GetRangeFromPoint(get(point), options, put(value))); - return value; -} - -template void impl_ITextDocument::GetText(Windows::UI::Text::TextGetOptions options, hstring & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetText(options, put(value))); -} - -template void impl_ITextDocument::LoadFromStream(Windows::UI::Text::TextSetOptions options, const Windows::Storage::Streams::IRandomAccessStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_LoadFromStream(options, get(value))); -} - -template void impl_ITextDocument::Redo() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Redo()); -} - -template void impl_ITextDocument::SaveToStream(Windows::UI::Text::TextGetOptions options, const Windows::Storage::Streams::IRandomAccessStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SaveToStream(options, get(value))); -} - -template void impl_ITextDocument::SetDefaultCharacterFormat(const Windows::UI::Text::ITextCharacterFormat & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDefaultCharacterFormat(get(value))); -} - -template void impl_ITextDocument::SetDefaultParagraphFormat(const Windows::UI::Text::ITextParagraphFormat & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDefaultParagraphFormat(get(value))); -} - -template void impl_ITextDocument::SetText(Windows::UI::Text::TextSetOptions options, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetText(options, get(value))); -} - -template void impl_ITextDocument::Undo() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Undo()); -} - -template wchar_t impl_ITextRange::Character() const -{ - wchar_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Character(&value)); - return value; -} - -template void impl_ITextRange::Character(wchar_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Character(value)); -} - -template Windows::UI::Text::ITextCharacterFormat impl_ITextRange::CharacterFormat() const -{ - Windows::UI::Text::ITextCharacterFormat value; - check_hresult(static_cast(static_cast(*this))->get_CharacterFormat(put(value))); - return value; -} - -template void impl_ITextRange::CharacterFormat(const Windows::UI::Text::ITextCharacterFormat & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CharacterFormat(get(value))); -} - -template Windows::UI::Text::ITextRange impl_ITextRange::FormattedText() const -{ - Windows::UI::Text::ITextRange value; - check_hresult(static_cast(static_cast(*this))->get_FormattedText(put(value))); - return value; -} - -template void impl_ITextRange::FormattedText(const Windows::UI::Text::ITextRange & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FormattedText(get(value))); -} - -template int32_t impl_ITextRange::EndPosition() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_EndPosition(&value)); - return value; -} - -template void impl_ITextRange::EndPosition(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EndPosition(value)); -} - -template Windows::UI::Text::RangeGravity impl_ITextRange::Gravity() const -{ - Windows::UI::Text::RangeGravity value {}; - check_hresult(static_cast(static_cast(*this))->get_Gravity(&value)); - return value; -} - -template void impl_ITextRange::Gravity(Windows::UI::Text::RangeGravity value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Gravity(value)); -} - -template int32_t impl_ITextRange::Length() const -{ - int32_t length {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&length)); - return length; -} - -template hstring impl_ITextRange::Link() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Link(put(value))); - return value; -} - -template void impl_ITextRange::Link(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Link(get(value))); -} - -template Windows::UI::Text::ITextParagraphFormat impl_ITextRange::ParagraphFormat() const -{ - Windows::UI::Text::ITextParagraphFormat value; - check_hresult(static_cast(static_cast(*this))->get_ParagraphFormat(put(value))); - return value; -} - -template void impl_ITextRange::ParagraphFormat(const Windows::UI::Text::ITextParagraphFormat & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ParagraphFormat(get(value))); -} - -template int32_t impl_ITextRange::StartPosition() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StartPosition(&value)); - return value; -} - -template void impl_ITextRange::StartPosition(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StartPosition(value)); -} - -template int32_t impl_ITextRange::StoryLength() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StoryLength(&value)); - return value; -} - -template hstring impl_ITextRange::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_ITextRange::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template bool impl_ITextRange::CanPaste(int32_t format) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_CanPaste(format, &value)); - return value; -} - -template void impl_ITextRange::ChangeCase(Windows::UI::Text::LetterCase value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ChangeCase(value)); -} - -template void impl_ITextRange::Collapse(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Collapse(value)); -} - -template void impl_ITextRange::Copy() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Copy()); -} - -template void impl_ITextRange::Cut() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Cut()); -} - -template int32_t impl_ITextRange::Delete(Windows::UI::Text::TextRangeUnit unit, int32_t count) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_Delete(unit, count, &delta)); - return delta; -} - -template int32_t impl_ITextRange::EndOf(Windows::UI::Text::TextRangeUnit unit, bool extend) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_EndOf(unit, extend, &delta)); - return delta; -} - -template int32_t impl_ITextRange::Expand(Windows::UI::Text::TextRangeUnit unit) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_Expand(unit, &delta)); - return delta; -} - -template int32_t impl_ITextRange::FindText(hstring_ref value, int32_t scanLength, Windows::UI::Text::FindOptions options) const -{ - int32_t length {}; - check_hresult(static_cast(static_cast(*this))->abi_FindText(get(value), scanLength, options, &length)); - return length; -} - -template void impl_ITextRange::GetCharacterUtf32(uint32_t & value, int32_t offset) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetCharacterUtf32(&value, offset)); -} - -template Windows::UI::Text::ITextRange impl_ITextRange::GetClone() const -{ - Windows::UI::Text::ITextRange value; - check_hresult(static_cast(static_cast(*this))->abi_GetClone(put(value))); - return value; -} - -template int32_t impl_ITextRange::GetIndex(Windows::UI::Text::TextRangeUnit unit) const -{ - int32_t index {}; - check_hresult(static_cast(static_cast(*this))->abi_GetIndex(unit, &index)); - return index; -} - -template void impl_ITextRange::GetPoint(Windows::UI::Text::HorizontalCharacterAlignment horizontalAlign, Windows::UI::Text::VerticalCharacterAlignment verticalAlign, Windows::UI::Text::PointOptions options, Windows::Foundation::Point & point) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetPoint(horizontalAlign, verticalAlign, options, put(point))); -} - -template void impl_ITextRange::GetRect(Windows::UI::Text::PointOptions options, Windows::Foundation::Rect & rect, int32_t & hit) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetRect(options, put(rect), &hit)); -} - -template void impl_ITextRange::GetText(Windows::UI::Text::TextGetOptions options, hstring & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetText(options, put(value))); -} - -template void impl_ITextRange::GetTextViaStream(Windows::UI::Text::TextGetOptions options, const Windows::Storage::Streams::IRandomAccessStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetTextViaStream(options, get(value))); -} - -template bool impl_ITextRange::InRange(const Windows::UI::Text::ITextRange & range) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_InRange(get(range), &value)); - return value; -} - -template void impl_ITextRange::InsertImage(int32_t width, int32_t height, int32_t ascent, Windows::UI::Text::VerticalCharacterAlignment verticalAlign, hstring_ref alternateText, const Windows::Storage::Streams::IRandomAccessStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertImage(width, height, ascent, verticalAlign, get(alternateText), get(value))); -} - -template bool impl_ITextRange::InStory(const Windows::UI::Text::ITextRange & range) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_InStory(get(range), &value)); - return value; -} - -template bool impl_ITextRange::IsEqual(const Windows::UI::Text::ITextRange & range) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEqual(get(range), &value)); - return value; -} - -template int32_t impl_ITextRange::Move(Windows::UI::Text::TextRangeUnit unit, int32_t count) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_Move(unit, count, &delta)); - return delta; -} - -template int32_t impl_ITextRange::MoveEnd(Windows::UI::Text::TextRangeUnit unit, int32_t count) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_MoveEnd(unit, count, &delta)); - return delta; -} - -template int32_t impl_ITextRange::MoveStart(Windows::UI::Text::TextRangeUnit unit, int32_t count) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_MoveStart(unit, count, &delta)); - return delta; -} - -template void impl_ITextRange::Paste(int32_t format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Paste(format)); -} - -template void impl_ITextRange::ScrollIntoView(Windows::UI::Text::PointOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ScrollIntoView(value)); -} - -template void impl_ITextRange::MatchSelection() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MatchSelection()); -} - -template void impl_ITextRange::SetIndex(Windows::UI::Text::TextRangeUnit unit, int32_t index, bool extend) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetIndex(unit, index, extend)); -} - -template void impl_ITextRange::SetPoint(const Windows::Foundation::Point & point, Windows::UI::Text::PointOptions options, bool extend) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPoint(get(point), options, extend)); -} - -template void impl_ITextRange::SetRange(int32_t startPosition, int32_t endPosition) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetRange(startPosition, endPosition)); -} - -template void impl_ITextRange::SetText(Windows::UI::Text::TextSetOptions options, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetText(options, get(value))); -} - -template void impl_ITextRange::SetTextViaStream(Windows::UI::Text::TextSetOptions options, const Windows::Storage::Streams::IRandomAccessStream & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetTextViaStream(options, get(value))); -} - -template int32_t impl_ITextRange::StartOf(Windows::UI::Text::TextRangeUnit unit, bool extend) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_StartOf(unit, extend, &delta)); - return delta; -} - -template Windows::UI::Text::SelectionOptions impl_ITextSelection::Options() const -{ - Windows::UI::Text::SelectionOptions value {}; - check_hresult(static_cast(static_cast(*this))->get_Options(&value)); - return value; -} - -template void impl_ITextSelection::Options(Windows::UI::Text::SelectionOptions value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Options(value)); -} - -template Windows::UI::Text::SelectionType impl_ITextSelection::Type() const -{ - Windows::UI::Text::SelectionType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template int32_t impl_ITextSelection::EndKey(Windows::UI::Text::TextRangeUnit unit, bool extend) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_EndKey(unit, extend, &delta)); - return delta; -} - -template int32_t impl_ITextSelection::HomeKey(Windows::UI::Text::TextRangeUnit unit, bool extend) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_HomeKey(unit, extend, &delta)); - return delta; -} - -template int32_t impl_ITextSelection::MoveDown(Windows::UI::Text::TextRangeUnit unit, int32_t count, bool extend) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_MoveDown(unit, count, extend, &delta)); - return delta; -} - -template int32_t impl_ITextSelection::MoveLeft(Windows::UI::Text::TextRangeUnit unit, int32_t count, bool extend) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_MoveLeft(unit, count, extend, &delta)); - return delta; -} - -template int32_t impl_ITextSelection::MoveRight(Windows::UI::Text::TextRangeUnit unit, int32_t count, bool extend) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_MoveRight(unit, count, extend, &delta)); - return delta; -} - -template int32_t impl_ITextSelection::MoveUp(Windows::UI::Text::TextRangeUnit unit, int32_t count, bool extend) const -{ - int32_t delta {}; - check_hresult(static_cast(static_cast(*this))->abi_MoveUp(unit, count, extend, &delta)); - return delta; -} - -template void impl_ITextSelection::TypeText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_TypeText(get(value))); -} - -template Windows::UI::Text::FormatEffect impl_ITextCharacterFormat::AllCaps() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_AllCaps(&value)); - return value; -} - -template void impl_ITextCharacterFormat::AllCaps(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllCaps(value)); -} - -template Windows::UI::Color impl_ITextCharacterFormat::BackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(put(value))); - return value; -} - -template void impl_ITextCharacterFormat::BackgroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackgroundColor(get(value))); -} - -template Windows::UI::Text::FormatEffect impl_ITextCharacterFormat::Bold() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_Bold(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Bold(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Bold(value)); -} - -template Windows::UI::Text::FontStretch impl_ITextCharacterFormat::FontStretch() const -{ - Windows::UI::Text::FontStretch value {}; - check_hresult(static_cast(static_cast(*this))->get_FontStretch(&value)); - return value; -} - -template void impl_ITextCharacterFormat::FontStretch(Windows::UI::Text::FontStretch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontStretch(value)); -} - -template Windows::UI::Text::FontStyle impl_ITextCharacterFormat::FontStyle() const -{ - Windows::UI::Text::FontStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_FontStyle(&value)); - return value; -} - -template void impl_ITextCharacterFormat::FontStyle(Windows::UI::Text::FontStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontStyle(value)); -} - -template Windows::UI::Color impl_ITextCharacterFormat::ForegroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_ForegroundColor(put(value))); - return value; -} - -template void impl_ITextCharacterFormat::ForegroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ForegroundColor(get(value))); -} - -template Windows::UI::Text::FormatEffect impl_ITextCharacterFormat::Hidden() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_Hidden(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Hidden(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Hidden(value)); -} - -template Windows::UI::Text::FormatEffect impl_ITextCharacterFormat::Italic() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_Italic(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Italic(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Italic(value)); -} - -template float impl_ITextCharacterFormat::Kerning() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Kerning(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Kerning(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Kerning(value)); -} - -template hstring impl_ITextCharacterFormat::LanguageTag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_LanguageTag(put(value))); - return value; -} - -template void impl_ITextCharacterFormat::LanguageTag(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LanguageTag(get(value))); -} - -template Windows::UI::Text::LinkType impl_ITextCharacterFormat::LinkType() const -{ - Windows::UI::Text::LinkType value {}; - check_hresult(static_cast(static_cast(*this))->get_LinkType(&value)); - return value; -} - -template hstring impl_ITextCharacterFormat::Name() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Name(put(value))); - return value; -} - -template void impl_ITextCharacterFormat::Name(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Name(get(value))); -} - -template Windows::UI::Text::FormatEffect impl_ITextCharacterFormat::Outline() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_Outline(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Outline(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Outline(value)); -} - -template float impl_ITextCharacterFormat::Position() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Position(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Position(value)); -} - -template Windows::UI::Text::FormatEffect impl_ITextCharacterFormat::ProtectedText() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_ProtectedText(&value)); - return value; -} - -template void impl_ITextCharacterFormat::ProtectedText(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProtectedText(value)); -} - -template float impl_ITextCharacterFormat::Size() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Size(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Size(value)); -} - -template Windows::UI::Text::FormatEffect impl_ITextCharacterFormat::SmallCaps() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_SmallCaps(&value)); - return value; -} - -template void impl_ITextCharacterFormat::SmallCaps(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SmallCaps(value)); -} - -template float impl_ITextCharacterFormat::Spacing() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_Spacing(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Spacing(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Spacing(value)); -} - -template Windows::UI::Text::FormatEffect impl_ITextCharacterFormat::Strikethrough() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_Strikethrough(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Strikethrough(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Strikethrough(value)); -} - -template Windows::UI::Text::FormatEffect impl_ITextCharacterFormat::Subscript() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_Subscript(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Subscript(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Subscript(value)); -} - -template Windows::UI::Text::FormatEffect impl_ITextCharacterFormat::Superscript() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_Superscript(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Superscript(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Superscript(value)); -} - -template Windows::UI::Text::TextScript impl_ITextCharacterFormat::TextScript() const -{ - Windows::UI::Text::TextScript value {}; - check_hresult(static_cast(static_cast(*this))->get_TextScript(&value)); - return value; -} - -template void impl_ITextCharacterFormat::TextScript(Windows::UI::Text::TextScript value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextScript(value)); -} - -template Windows::UI::Text::UnderlineType impl_ITextCharacterFormat::Underline() const -{ - Windows::UI::Text::UnderlineType value {}; - check_hresult(static_cast(static_cast(*this))->get_Underline(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Underline(Windows::UI::Text::UnderlineType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Underline(value)); -} - -template int32_t impl_ITextCharacterFormat::Weight() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Weight(&value)); - return value; -} - -template void impl_ITextCharacterFormat::Weight(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Weight(value)); -} - -template void impl_ITextCharacterFormat::SetClone(const Windows::UI::Text::ITextCharacterFormat & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetClone(get(value))); -} - -template Windows::UI::Text::ITextCharacterFormat impl_ITextCharacterFormat::GetClone() const -{ - Windows::UI::Text::ITextCharacterFormat value; - check_hresult(static_cast(static_cast(*this))->abi_GetClone(put(value))); - return value; -} - -template bool impl_ITextCharacterFormat::IsEqual(const Windows::UI::Text::ITextCharacterFormat & format) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEqual(get(format), &value)); - return value; -} - -template Windows::UI::Text::ParagraphAlignment impl_ITextParagraphFormat::Alignment() const -{ - Windows::UI::Text::ParagraphAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_Alignment(&value)); - return value; -} - -template void impl_ITextParagraphFormat::Alignment(Windows::UI::Text::ParagraphAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Alignment(value)); -} - -template float impl_ITextParagraphFormat::FirstLineIndent() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstLineIndent(&value)); - return value; -} - -template Windows::UI::Text::FormatEffect impl_ITextParagraphFormat::KeepTogether() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_KeepTogether(&value)); - return value; -} - -template void impl_ITextParagraphFormat::KeepTogether(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeepTogether(value)); -} - -template Windows::UI::Text::FormatEffect impl_ITextParagraphFormat::KeepWithNext() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_KeepWithNext(&value)); - return value; -} - -template void impl_ITextParagraphFormat::KeepWithNext(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_KeepWithNext(value)); -} - -template float impl_ITextParagraphFormat::LeftIndent() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_LeftIndent(&value)); - return value; -} - -template float impl_ITextParagraphFormat::LineSpacing() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_LineSpacing(&value)); - return value; -} - -template Windows::UI::Text::LineSpacingRule impl_ITextParagraphFormat::LineSpacingRule() const -{ - Windows::UI::Text::LineSpacingRule value {}; - check_hresult(static_cast(static_cast(*this))->get_LineSpacingRule(&value)); - return value; -} - -template Windows::UI::Text::MarkerAlignment impl_ITextParagraphFormat::ListAlignment() const -{ - Windows::UI::Text::MarkerAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_ListAlignment(&value)); - return value; -} - -template void impl_ITextParagraphFormat::ListAlignment(Windows::UI::Text::MarkerAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ListAlignment(value)); -} - -template int32_t impl_ITextParagraphFormat::ListLevelIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ListLevelIndex(&value)); - return value; -} - -template void impl_ITextParagraphFormat::ListLevelIndex(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ListLevelIndex(value)); -} - -template int32_t impl_ITextParagraphFormat::ListStart() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ListStart(&value)); - return value; -} - -template void impl_ITextParagraphFormat::ListStart(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ListStart(value)); -} - -template Windows::UI::Text::MarkerStyle impl_ITextParagraphFormat::ListStyle() const -{ - Windows::UI::Text::MarkerStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_ListStyle(&value)); - return value; -} - -template void impl_ITextParagraphFormat::ListStyle(Windows::UI::Text::MarkerStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ListStyle(value)); -} - -template float impl_ITextParagraphFormat::ListTab() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_ListTab(&value)); - return value; -} - -template void impl_ITextParagraphFormat::ListTab(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ListTab(value)); -} - -template Windows::UI::Text::MarkerType impl_ITextParagraphFormat::ListType() const -{ - Windows::UI::Text::MarkerType value {}; - check_hresult(static_cast(static_cast(*this))->get_ListType(&value)); - return value; -} - -template void impl_ITextParagraphFormat::ListType(Windows::UI::Text::MarkerType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ListType(value)); -} - -template Windows::UI::Text::FormatEffect impl_ITextParagraphFormat::NoLineNumber() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_NoLineNumber(&value)); - return value; -} - -template void impl_ITextParagraphFormat::NoLineNumber(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NoLineNumber(value)); -} - -template Windows::UI::Text::FormatEffect impl_ITextParagraphFormat::PageBreakBefore() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_PageBreakBefore(&value)); - return value; -} - -template void impl_ITextParagraphFormat::PageBreakBefore(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PageBreakBefore(value)); -} - -template float impl_ITextParagraphFormat::RightIndent() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RightIndent(&value)); - return value; -} - -template void impl_ITextParagraphFormat::RightIndent(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RightIndent(value)); -} - -template Windows::UI::Text::FormatEffect impl_ITextParagraphFormat::RightToLeft() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_RightToLeft(&value)); - return value; -} - -template void impl_ITextParagraphFormat::RightToLeft(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RightToLeft(value)); -} - -template Windows::UI::Text::ParagraphStyle impl_ITextParagraphFormat::Style() const -{ - Windows::UI::Text::ParagraphStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_Style(&value)); - return value; -} - -template void impl_ITextParagraphFormat::Style(Windows::UI::Text::ParagraphStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Style(value)); -} - -template float impl_ITextParagraphFormat::SpaceAfter() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_SpaceAfter(&value)); - return value; -} - -template void impl_ITextParagraphFormat::SpaceAfter(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SpaceAfter(value)); -} - -template float impl_ITextParagraphFormat::SpaceBefore() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_SpaceBefore(&value)); - return value; -} - -template void impl_ITextParagraphFormat::SpaceBefore(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SpaceBefore(value)); -} - -template Windows::UI::Text::FormatEffect impl_ITextParagraphFormat::WidowControl() const -{ - Windows::UI::Text::FormatEffect value {}; - check_hresult(static_cast(static_cast(*this))->get_WidowControl(&value)); - return value; -} - -template void impl_ITextParagraphFormat::WidowControl(Windows::UI::Text::FormatEffect value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WidowControl(value)); -} - -template int32_t impl_ITextParagraphFormat::TabCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TabCount(&value)); - return value; -} - -template void impl_ITextParagraphFormat::AddTab(float position, Windows::UI::Text::TabAlignment align, Windows::UI::Text::TabLeader leader) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddTab(position, align, leader)); -} - -template void impl_ITextParagraphFormat::ClearAllTabs() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearAllTabs()); -} - -template void impl_ITextParagraphFormat::DeleteTab(float position) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DeleteTab(position)); -} - -template Windows::UI::Text::ITextParagraphFormat impl_ITextParagraphFormat::GetClone() const -{ - Windows::UI::Text::ITextParagraphFormat value; - check_hresult(static_cast(static_cast(*this))->abi_GetClone(put(value))); - return value; -} - -template void impl_ITextParagraphFormat::GetTab(int32_t index, float & position, Windows::UI::Text::TabAlignment & align, Windows::UI::Text::TabLeader & leader) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetTab(index, &position, &align, &leader)); -} - -template bool impl_ITextParagraphFormat::IsEqual(const Windows::UI::Text::ITextParagraphFormat & format) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEqual(get(format), &value)); - return value; -} - -template void impl_ITextParagraphFormat::SetClone(const Windows::UI::Text::ITextParagraphFormat & format) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetClone(get(format))); -} - -template void impl_ITextParagraphFormat::SetIndents(float start, float left, float right) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetIndents(start, left, right)); -} - -template void impl_ITextParagraphFormat::SetLineSpacing(Windows::UI::Text::LineSpacingRule rule, float spacing) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLineSpacing(rule, spacing)); -} - -template Windows::UI::Text::FontWeight impl_IFontWeightsStatics::Black() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_Black(put(value))); - return value; -} - -template Windows::UI::Text::FontWeight impl_IFontWeightsStatics::Bold() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_Bold(put(value))); - return value; -} - -template Windows::UI::Text::FontWeight impl_IFontWeightsStatics::ExtraBlack() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtraBlack(put(value))); - return value; -} - -template Windows::UI::Text::FontWeight impl_IFontWeightsStatics::ExtraBold() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtraBold(put(value))); - return value; -} - -template Windows::UI::Text::FontWeight impl_IFontWeightsStatics::ExtraLight() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtraLight(put(value))); - return value; -} - -template Windows::UI::Text::FontWeight impl_IFontWeightsStatics::Light() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_Light(put(value))); - return value; -} - -template Windows::UI::Text::FontWeight impl_IFontWeightsStatics::Medium() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_Medium(put(value))); - return value; -} - -template Windows::UI::Text::FontWeight impl_IFontWeightsStatics::Normal() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_Normal(put(value))); - return value; -} - -template Windows::UI::Text::FontWeight impl_IFontWeightsStatics::SemiBold() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_SemiBold(put(value))); - return value; -} - -template Windows::UI::Text::FontWeight impl_IFontWeightsStatics::SemiLight() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_SemiLight(put(value))); - return value; -} - -template Windows::UI::Text::FontWeight impl_IFontWeightsStatics::Thin() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_Thin(put(value))); - return value; -} - -inline Windows::UI::Text::FontWeight FontWeights::Black() -{ - return get_activation_factory().Black(); -} - -inline Windows::UI::Text::FontWeight FontWeights::Bold() -{ - return get_activation_factory().Bold(); -} - -inline Windows::UI::Text::FontWeight FontWeights::ExtraBlack() -{ - return get_activation_factory().ExtraBlack(); -} - -inline Windows::UI::Text::FontWeight FontWeights::ExtraBold() -{ - return get_activation_factory().ExtraBold(); -} - -inline Windows::UI::Text::FontWeight FontWeights::ExtraLight() -{ - return get_activation_factory().ExtraLight(); -} - -inline Windows::UI::Text::FontWeight FontWeights::Light() -{ - return get_activation_factory().Light(); -} - -inline Windows::UI::Text::FontWeight FontWeights::Medium() -{ - return get_activation_factory().Medium(); -} - -inline Windows::UI::Text::FontWeight FontWeights::Normal() -{ - return get_activation_factory().Normal(); -} - -inline Windows::UI::Text::FontWeight FontWeights::SemiBold() -{ - return get_activation_factory().SemiBold(); -} - -inline Windows::UI::Text::FontWeight FontWeights::SemiLight() -{ - return get_activation_factory().SemiLight(); -} - -inline Windows::UI::Text::FontWeight FontWeights::Thin() -{ - return get_activation_factory().Thin(); -} - -inline Windows::UI::Color TextConstants::AutoColor() -{ - return get_activation_factory().AutoColor(); -} - -inline int32_t TextConstants::MinUnitCount() -{ - return get_activation_factory().MinUnitCount(); -} - -inline int32_t TextConstants::MaxUnitCount() -{ - return get_activation_factory().MaxUnitCount(); -} - -inline Windows::UI::Color TextConstants::UndefinedColor() -{ - return get_activation_factory().UndefinedColor(); -} - -inline float TextConstants::UndefinedFloatValue() -{ - return get_activation_factory().UndefinedFloatValue(); -} - -inline int32_t TextConstants::UndefinedInt32Value() -{ - return get_activation_factory().UndefinedInt32Value(); -} - -inline Windows::UI::Text::FontStretch TextConstants::UndefinedFontStretch() -{ - return get_activation_factory().UndefinedFontStretch(); -} - -inline Windows::UI::Text::FontStyle TextConstants::UndefinedFontStyle() -{ - return get_activation_factory().UndefinedFontStyle(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.ViewManagement.h b/10.0.14393.0/winrt/Windows.UI.ViewManagement.h deleted file mode 100644 index 3479a95bb..000000000 --- a/10.0.14393.0/winrt/Windows.UI.ViewManagement.h +++ /dev/null @@ -1,3365 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Core.3.h" -#include "internal/Windows.Devices.Enumeration.3.h" -#include "internal/Windows.UI.Popups.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.UI.ViewManagement.3.h" -#include "Windows.UI.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HighContrast(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HighContrast()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HighContrastScheme(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HighContrastScheme()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_HighContrastChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().HighContrastChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HighContrastChanged(event_token cookie) noexcept override - { - try - { - this->shim().HighContrastChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowAsStandaloneAsync(int32_t viewId, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowAsStandaloneAsync(viewId)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAsStandaloneWithSizePreferenceAsync(int32_t viewId, Windows::UI::ViewManagement::ViewSizePreference sizePreference, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().ShowAsStandaloneAsync(viewId, sizePreference)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsViewPresentedOnActivationVirtualDesktop(int32_t viewId, bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsViewPresentedOnActivationVirtualDesktop(viewId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Orientation(Windows::UI::ViewManagement::ApplicationViewOrientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdjacentToLeftDisplayEdge(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AdjacentToLeftDisplayEdge()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdjacentToRightDisplayEdge(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AdjacentToRightDisplayEdge()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFullScreen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFullScreen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOnLockScreen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOnLockScreen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsScreenCaptureEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsScreenCaptureEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsScreenCaptureEnabled(bool value) noexcept override - { - try - { - this->shim().IsScreenCaptureEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Consolidated(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Consolidated(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Consolidated(event_token token) noexcept override - { - try - { - this->shim().Consolidated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SuppressSystemOverlays(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SuppressSystemOverlays()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SuppressSystemOverlays(bool value) noexcept override - { - try - { - this->shim().SuppressSystemOverlays(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VisibleBounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VisibleBounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VisibleBoundsChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VisibleBoundsChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VisibleBoundsChanged(event_token token) noexcept override - { - try - { - this->shim().VisibleBoundsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDesiredBoundsMode(Windows::UI::ViewManagement::ApplicationViewBoundsMode boundsMode, bool * success) noexcept override - { - try - { - *success = detach(this->shim().SetDesiredBoundsMode(boundsMode)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredBoundsMode(Windows::UI::ViewManagement::ApplicationViewBoundsMode * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredBoundsMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TitleBar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleBar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FullScreenSystemOverlayMode(Windows::UI::ViewManagement::FullScreenSystemOverlayMode * value) noexcept override - { - try - { - *value = detach(this->shim().FullScreenSystemOverlayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FullScreenSystemOverlayMode(Windows::UI::ViewManagement::FullScreenSystemOverlayMode value) noexcept override - { - try - { - this->shim().FullScreenSystemOverlayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFullScreenMode(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFullScreenMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryEnterFullScreenMode(bool * success) noexcept override - { - try - { - *success = detach(this->shim().TryEnterFullScreenMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ExitFullScreenMode() noexcept override - { - try - { - this->shim().ExitFullScreenMode(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowStandardSystemOverlays() noexcept override - { - try - { - this->shim().ShowStandardSystemOverlays(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryResizeView(abi_arg_in value, bool * success) noexcept override - { - try - { - *success = detach(this->shim().TryResizeView(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPreferredMinSize(abi_arg_in minSize) noexcept override - { - try - { - this->shim().SetPreferredMinSize(*reinterpret_cast(&minSize)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsUserInitiated(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsUserInitiated()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryUnsnapToFullscreen(bool * success) noexcept override - { - try - { - *success = detach(this->shim().TryUnsnapToFullscreen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetApplicationViewIdForWindow(abi_arg_in window, int32_t * id) noexcept override - { - try - { - *id = detach(this->shim().GetApplicationViewIdForWindow(*reinterpret_cast(&window))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisableLayoutScaling(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DisableLayoutScaling()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetDisableLayoutScaling(bool disableLayoutScaling, bool * success) noexcept override - { - try - { - *success = detach(this->shim().TrySetDisableLayoutScaling(disableLayoutScaling)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Value(Windows::UI::ViewManagement::ApplicationViewState * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryUnsnap(bool * success) noexcept override - { - try - { - *success = detach(this->shim().TryUnsnap()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out current) noexcept override - { - try - { - *current = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *current = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TerminateAppOnFinalViewClose(bool * value) noexcept override - { - try - { - *value = detach(this->shim().TerminateAppOnFinalViewClose()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TerminateAppOnFinalViewClose(bool value) noexcept override - { - try - { - this->shim().TerminateAppOnFinalViewClose(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PreferredLaunchWindowingMode(Windows::UI::ViewManagement::ApplicationViewWindowingMode * value) noexcept override - { - try - { - *value = detach(this->shim().PreferredLaunchWindowingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreferredLaunchWindowingMode(Windows::UI::ViewManagement::ApplicationViewWindowingMode value) noexcept override - { - try - { - this->shim().PreferredLaunchWindowingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreferredLaunchViewSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreferredLaunchViewSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreferredLaunchViewSize(abi_arg_in value) noexcept override - { - try - { - this->shim().PreferredLaunchViewSize(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_DisableShowingMainViewOnActivation() noexcept override - { - try - { - this->shim().DisableShowingMainViewOnActivation(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryShowAsStandaloneAsync(int32_t viewId, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TryShowAsStandaloneAsync(viewId)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryShowAsStandaloneWithSizePreferenceAsync(int32_t viewId, Windows::UI::ViewManagement::ViewSizePreference sizePreference, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TryShowAsStandaloneAsync(viewId, sizePreference)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryShowAsStandaloneWithAnchorViewAndSizePreferenceAsync(int32_t viewId, Windows::UI::ViewManagement::ViewSizePreference sizePreference, int32_t anchorViewId, Windows::UI::ViewManagement::ViewSizePreference anchorSizePreference, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().TryShowAsStandaloneAsync(viewId, sizePreference, anchorViewId, anchorSizePreference)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SwitchAsync(int32_t viewId, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SwitchAsync(viewId)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SwitchFromViewAsync(int32_t toViewId, int32_t fromViewId, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SwitchAsync(toViewId, fromViewId)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SwitchFromViewWithOptionsAsync(int32_t toViewId, int32_t fromViewId, Windows::UI::ViewManagement::ApplicationViewSwitchingOptions options, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SwitchAsync(toViewId, fromViewId, options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrepareForCustomAnimatedSwitchAsync(int32_t toViewId, int32_t fromViewId, Windows::UI::ViewManagement::ApplicationViewSwitchingOptions options, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().PrepareForCustomAnimatedSwitchAsync(toViewId, fromViewId, options)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_DisableSystemViewActivationPolicy() noexcept override - { - try - { - this->shim().DisableSystemViewActivationPolicy(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall put_ForegroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().ForegroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackgroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().BackgroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ButtonForegroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().ButtonForegroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ButtonForegroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ButtonForegroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ButtonBackgroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().ButtonBackgroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ButtonBackgroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ButtonBackgroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ButtonHoverForegroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().ButtonHoverForegroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ButtonHoverForegroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ButtonHoverForegroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ButtonHoverBackgroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().ButtonHoverBackgroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ButtonHoverBackgroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ButtonHoverBackgroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ButtonPressedForegroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().ButtonPressedForegroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ButtonPressedForegroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ButtonPressedForegroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ButtonPressedBackgroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().ButtonPressedBackgroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ButtonPressedBackgroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ButtonPressedBackgroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InactiveForegroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().InactiveForegroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InactiveForegroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InactiveForegroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InactiveBackgroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().InactiveBackgroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InactiveBackgroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().InactiveBackgroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ButtonInactiveForegroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().ButtonInactiveForegroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ButtonInactiveForegroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ButtonInactiveForegroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ButtonInactiveBackgroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().ButtonInactiveBackgroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ButtonInactiveBackgroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ButtonInactiveBackgroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ViewId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ViewId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ViewId(int32_t value) noexcept override - { - try - { - this->shim().ViewId(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DataPackageFormatId(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataPackageFormatId()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Showing(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Showing(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Showing(event_token token) noexcept override - { - try - { - this->shim().Showing(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Hiding(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Hiding(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Hiding(event_token token) noexcept override - { - try - { - this->shim().Hiding(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OccludedRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OccludedRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_TryShow(bool * result) noexcept override - { - try - { - *result = detach(this->shim().TryShow()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryHide(bool * result) noexcept override - { - try - { - *result = detach(this->shim().TryHide()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Visible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Visible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Visible(bool value) noexcept override - { - try - { - this->shim().Visible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out inputPane) noexcept override - { - try - { - *inputPane = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *inputPane = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OccludedRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OccludedRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EnsuredFocusedElementInView(bool value) noexcept override - { - try - { - this->shim().EnsuredFocusedElementInView(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EnsuredFocusedElementInView(bool * value) noexcept override - { - try - { - *value = detach(this->shim().EnsuredFocusedElementInView()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().StartProjectingAsync(projectionViewId, anchorViewId)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SwapDisplaysForViewsAsync(int32_t projectionViewId, int32_t anchorViewId, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().SwapDisplaysForViewsAsync(projectionViewId, anchorViewId)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().StopProjectingAsync(projectionViewId, anchorViewId)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProjectionDisplayAvailable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ProjectionDisplayAvailable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ProjectionDisplayAvailableChanged(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ProjectionDisplayAvailableChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ProjectionDisplayAvailableChanged(event_token token) noexcept override - { - try - { - this->shim().ProjectionDisplayAvailableChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_StartProjectingWithDeviceInfoAsync(int32_t projectionViewId, int32_t anchorViewId, abi_arg_in displayDeviceInfo, abi_arg_out operation) noexcept override - { - try - { - *operation = detach(this->shim().StartProjectingAsync(projectionViewId, anchorViewId, *reinterpret_cast(&displayDeviceInfo))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestStartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, abi_arg_in selection, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestStartProjectingAsync(projectionViewId, anchorViewId, *reinterpret_cast(&selection))); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RequestStartProjectingWithPlacementAsync(int32_t projectionViewId, int32_t anchorViewId, abi_arg_in selection, Windows::UI::Popups::Placement prefferedPlacement, abi_arg_out> operation) noexcept override - { - try - { - *operation = detach(this->shim().RequestStartProjectingAsync(projectionViewId, anchorViewId, *reinterpret_cast(&selection), prefferedPlacement)); - return S_OK; - } - catch (...) - { - *operation = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeviceSelector(abi_arg_out selector) noexcept override - { - try - { - *selector = detach(this->shim().GetDeviceSelector()); - return S_OK; - } - catch (...) - { - *selector = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowAsync(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ShowAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HideAsync(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().HideAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundOpacity(double * value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundOpacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackgroundOpacity(double value) noexcept override - { - try - { - this->shim().BackgroundOpacity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ForegroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().ForegroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackgroundColor(abi_arg_in> value) noexcept override - { - try - { - this->shim().BackgroundColor(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProgressIndicator(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProgressIndicator()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OccludedRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OccludedRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Showing(abi_arg_in> eventHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Showing(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Showing(event_token token) noexcept override - { - try - { - this->shim().Showing(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Hiding(abi_arg_in> eventHandler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Hiding(*reinterpret_cast *>(&eventHandler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Hiding(event_token token) noexcept override - { - try - { - this->shim().Hiding(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowAsync(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ShowAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HideAsync(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().HideAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProgressValue(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ProgressValue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProgressValue(abi_arg_in> value) noexcept override - { - try - { - this->shim().ProgressValue(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HandPreference(Windows::UI::ViewManagement::HandPreference * value) noexcept override - { - try - { - *value = detach(this->shim().HandPreference()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CursorSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CursorSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollBarSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScrollBarSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollBarArrowSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScrollBarArrowSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollBarThumbBoxSize(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScrollBarThumbBoxSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MessageDuration(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MessageDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AnimationsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AnimationsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CaretBrowsingEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CaretBrowsingEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CaretBlinkRate(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CaretBlinkRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CaretWidth(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CaretWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DoubleClickTime(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DoubleClickTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MouseHoverTime(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MouseHoverTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_UIElementColor(Windows::UI::ViewManagement::UIElementType desiredElement, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UIElementColor(desiredElement)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextScaleFactor(double * value) noexcept override - { - try - { - *value = detach(this->shim().TextScaleFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextScaleFactorChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().TextScaleFactorChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextScaleFactorChanged(event_token cookie) noexcept override - { - try - { - this->shim().TextScaleFactorChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetColorValue(Windows::UI::ViewManagement::UIColorType desiredColor, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetColorValue(desiredColor)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ColorValuesChanged(abi_arg_in> handler, event_token * cookie) noexcept override - { - try - { - *cookie = detach(this->shim().ColorValuesChanged(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ColorValuesChanged(event_token cookie) noexcept override - { - try - { - this->shim().ColorValuesChanged(cookie); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UserInteractionMode(Windows::UI::ViewManagement::UserInteractionMode * value) noexcept override - { - try - { - *value = detach(this->shim().UserInteractionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out current) noexcept override - { - try - { - *current = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *current = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::ViewManagement { - -template void impl_IApplicationViewSwitcherStatics::DisableShowingMainViewOnActivation() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DisableShowingMainViewOnActivation()); -} - -template Windows::Foundation::IAsyncOperation impl_IApplicationViewSwitcherStatics::TryShowAsStandaloneAsync(int32_t viewId) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_TryShowAsStandaloneAsync(viewId, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IApplicationViewSwitcherStatics::TryShowAsStandaloneAsync(int32_t viewId, Windows::UI::ViewManagement::ViewSizePreference sizePreference) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_TryShowAsStandaloneWithSizePreferenceAsync(viewId, sizePreference, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IApplicationViewSwitcherStatics::TryShowAsStandaloneAsync(int32_t viewId, Windows::UI::ViewManagement::ViewSizePreference sizePreference, int32_t anchorViewId, Windows::UI::ViewManagement::ViewSizePreference anchorSizePreference) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_TryShowAsStandaloneWithAnchorViewAndSizePreferenceAsync(viewId, sizePreference, anchorViewId, anchorSizePreference, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IApplicationViewSwitcherStatics::SwitchAsync(int32_t viewId) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SwitchAsync(viewId, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IApplicationViewSwitcherStatics::SwitchAsync(int32_t toViewId, int32_t fromViewId) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SwitchFromViewAsync(toViewId, fromViewId, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IApplicationViewSwitcherStatics::SwitchAsync(int32_t toViewId, int32_t fromViewId, Windows::UI::ViewManagement::ApplicationViewSwitchingOptions options) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SwitchFromViewWithOptionsAsync(toViewId, fromViewId, options, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IApplicationViewSwitcherStatics::PrepareForCustomAnimatedSwitchAsync(int32_t toViewId, int32_t fromViewId, Windows::UI::ViewManagement::ApplicationViewSwitchingOptions options) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_PrepareForCustomAnimatedSwitchAsync(toViewId, fromViewId, options, put(operation))); - return operation; -} - -template void impl_IApplicationViewSwitcherStatics2::DisableSystemViewActivationPolicy() const -{ - check_hresult(static_cast(static_cast(*this))->abi_DisableSystemViewActivationPolicy()); -} - -template int32_t impl_IApplicationViewInteropStatics::GetApplicationViewIdForWindow(const Windows::UI::Core::ICoreWindow & window) const -{ - int32_t id {}; - check_hresult(static_cast(static_cast(*this))->abi_GetApplicationViewIdForWindow(get(window), &id)); - return id; -} - -template Windows::UI::ViewManagement::ApplicationViewState impl_IApplicationViewStatics::Value() const -{ - Windows::UI::ViewManagement::ApplicationViewState value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template bool impl_IApplicationViewStatics::TryUnsnap() const -{ - bool success {}; - check_hresult(static_cast(static_cast(*this))->abi_TryUnsnap(&success)); - return success; -} - -template Windows::UI::ViewManagement::ApplicationView impl_IApplicationViewStatics2::GetForCurrentView() const -{ - Windows::UI::ViewManagement::ApplicationView current { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(current))); - return current; -} - -template bool impl_IApplicationViewStatics2::TerminateAppOnFinalViewClose() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_TerminateAppOnFinalViewClose(&value)); - return value; -} - -template void impl_IApplicationViewStatics2::TerminateAppOnFinalViewClose(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TerminateAppOnFinalViewClose(value)); -} - -template Windows::UI::ViewManagement::ApplicationViewWindowingMode impl_IApplicationViewStatics3::PreferredLaunchWindowingMode() const -{ - Windows::UI::ViewManagement::ApplicationViewWindowingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_PreferredLaunchWindowingMode(&value)); - return value; -} - -template void impl_IApplicationViewStatics3::PreferredLaunchWindowingMode(Windows::UI::ViewManagement::ApplicationViewWindowingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreferredLaunchWindowingMode(value)); -} - -template Windows::Foundation::Size impl_IApplicationViewStatics3::PreferredLaunchViewSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_PreferredLaunchViewSize(put(value))); - return value; -} - -template void impl_IApplicationViewStatics3::PreferredLaunchViewSize(const Windows::Foundation::Size & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreferredLaunchViewSize(get(value))); -} - -template Windows::UI::ViewManagement::ApplicationViewOrientation impl_IApplicationView::Orientation() const -{ - Windows::UI::ViewManagement::ApplicationViewOrientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template bool impl_IApplicationView::AdjacentToLeftDisplayEdge() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AdjacentToLeftDisplayEdge(&value)); - return value; -} - -template bool impl_IApplicationView::AdjacentToRightDisplayEdge() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AdjacentToRightDisplayEdge(&value)); - return value; -} - -template bool impl_IApplicationView::IsFullScreen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFullScreen(&value)); - return value; -} - -template bool impl_IApplicationView::IsOnLockScreen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOnLockScreen(&value)); - return value; -} - -template bool impl_IApplicationView::IsScreenCaptureEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsScreenCaptureEnabled(&value)); - return value; -} - -template void impl_IApplicationView::IsScreenCaptureEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsScreenCaptureEnabled(value)); -} - -template void impl_IApplicationView::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template hstring impl_IApplicationView::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template int32_t impl_IApplicationView::Id() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template event_token impl_IApplicationView::Consolidated(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Consolidated(get(handler), &token)); - return token; -} - -template event_revoker impl_IApplicationView::Consolidated(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ViewManagement::IApplicationView::remove_Consolidated, Consolidated(handler)); -} - -template void impl_IApplicationView::Consolidated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Consolidated(token)); -} - -template bool impl_IApplicationView2::SuppressSystemOverlays() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SuppressSystemOverlays(&value)); - return value; -} - -template void impl_IApplicationView2::SuppressSystemOverlays(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SuppressSystemOverlays(value)); -} - -template Windows::Foundation::Rect impl_IApplicationView2::VisibleBounds() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_VisibleBounds(put(value))); - return value; -} - -template event_token impl_IApplicationView2::VisibleBoundsChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VisibleBoundsChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IApplicationView2::VisibleBoundsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ViewManagement::IApplicationView2::remove_VisibleBoundsChanged, VisibleBoundsChanged(handler)); -} - -template void impl_IApplicationView2::VisibleBoundsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VisibleBoundsChanged(token)); -} - -template bool impl_IApplicationView2::SetDesiredBoundsMode(Windows::UI::ViewManagement::ApplicationViewBoundsMode boundsMode) const -{ - bool success {}; - check_hresult(static_cast(static_cast(*this))->abi_SetDesiredBoundsMode(boundsMode, &success)); - return success; -} - -template Windows::UI::ViewManagement::ApplicationViewBoundsMode impl_IApplicationView2::DesiredBoundsMode() const -{ - Windows::UI::ViewManagement::ApplicationViewBoundsMode value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredBoundsMode(&value)); - return value; -} - -template void impl_IApplicationViewTitleBar::ForegroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ForegroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::ForegroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ForegroundColor(put(value))); - return value; -} - -template void impl_IApplicationViewTitleBar::BackgroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackgroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::BackgroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(put(value))); - return value; -} - -template void impl_IApplicationViewTitleBar::ButtonForegroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ButtonForegroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::ButtonForegroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ButtonForegroundColor(put(value))); - return value; -} - -template void impl_IApplicationViewTitleBar::ButtonBackgroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ButtonBackgroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::ButtonBackgroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ButtonBackgroundColor(put(value))); - return value; -} - -template void impl_IApplicationViewTitleBar::ButtonHoverForegroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ButtonHoverForegroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::ButtonHoverForegroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ButtonHoverForegroundColor(put(value))); - return value; -} - -template void impl_IApplicationViewTitleBar::ButtonHoverBackgroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ButtonHoverBackgroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::ButtonHoverBackgroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ButtonHoverBackgroundColor(put(value))); - return value; -} - -template void impl_IApplicationViewTitleBar::ButtonPressedForegroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ButtonPressedForegroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::ButtonPressedForegroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ButtonPressedForegroundColor(put(value))); - return value; -} - -template void impl_IApplicationViewTitleBar::ButtonPressedBackgroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ButtonPressedBackgroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::ButtonPressedBackgroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ButtonPressedBackgroundColor(put(value))); - return value; -} - -template void impl_IApplicationViewTitleBar::InactiveForegroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InactiveForegroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::InactiveForegroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InactiveForegroundColor(put(value))); - return value; -} - -template void impl_IApplicationViewTitleBar::InactiveBackgroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InactiveBackgroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::InactiveBackgroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_InactiveBackgroundColor(put(value))); - return value; -} - -template void impl_IApplicationViewTitleBar::ButtonInactiveForegroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ButtonInactiveForegroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::ButtonInactiveForegroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ButtonInactiveForegroundColor(put(value))); - return value; -} - -template void impl_IApplicationViewTitleBar::ButtonInactiveBackgroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ButtonInactiveBackgroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IApplicationViewTitleBar::ButtonInactiveBackgroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ButtonInactiveBackgroundColor(put(value))); - return value; -} - -template Windows::UI::ViewManagement::ApplicationViewTitleBar impl_IApplicationView3::TitleBar() const -{ - Windows::UI::ViewManagement::ApplicationViewTitleBar value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TitleBar(put(value))); - return value; -} - -template Windows::UI::ViewManagement::FullScreenSystemOverlayMode impl_IApplicationView3::FullScreenSystemOverlayMode() const -{ - Windows::UI::ViewManagement::FullScreenSystemOverlayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_FullScreenSystemOverlayMode(&value)); - return value; -} - -template void impl_IApplicationView3::FullScreenSystemOverlayMode(Windows::UI::ViewManagement::FullScreenSystemOverlayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FullScreenSystemOverlayMode(value)); -} - -template bool impl_IApplicationView3::IsFullScreenMode() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFullScreenMode(&value)); - return value; -} - -template bool impl_IApplicationView3::TryEnterFullScreenMode() const -{ - bool success {}; - check_hresult(static_cast(static_cast(*this))->abi_TryEnterFullScreenMode(&success)); - return success; -} - -template void impl_IApplicationView3::ExitFullScreenMode() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ExitFullScreenMode()); -} - -template void impl_IApplicationView3::ShowStandardSystemOverlays() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowStandardSystemOverlays()); -} - -template bool impl_IApplicationView3::TryResizeView(const Windows::Foundation::Size & value) const -{ - bool success {}; - check_hresult(static_cast(static_cast(*this))->abi_TryResizeView(get(value), &success)); - return success; -} - -template void impl_IApplicationView3::SetPreferredMinSize(const Windows::Foundation::Size & minSize) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPreferredMinSize(get(minSize))); -} - -template bool impl_IApplicationViewFullscreenStatics::TryUnsnapToFullscreen() const -{ - bool success {}; - check_hresult(static_cast(static_cast(*this))->abi_TryUnsnapToFullscreen(&success)); - return success; -} - -template bool impl_IApplicationViewConsolidatedEventArgs::IsUserInitiated() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsUserInitiated(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IActivationViewSwitcher::ShowAsStandaloneAsync(int32_t viewId) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsStandaloneAsync(viewId, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IActivationViewSwitcher::ShowAsStandaloneAsync(int32_t viewId, Windows::UI::ViewManagement::ViewSizePreference sizePreference) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsStandaloneWithSizePreferenceAsync(viewId, sizePreference, put(operation))); - return operation; -} - -template bool impl_IActivationViewSwitcher::IsViewPresentedOnActivationVirtualDesktop(int32_t viewId) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_IsViewPresentedOnActivationVirtualDesktop(viewId, &value)); - return value; -} - -template int32_t impl_IApplicationViewTransferContext::ViewId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewId(&value)); - return value; -} - -template void impl_IApplicationViewTransferContext::ViewId(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ViewId(value)); -} - -template hstring impl_IApplicationViewTransferContextStatics::DataPackageFormatId() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DataPackageFormatId(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IInputPaneVisibilityEventArgs::OccludedRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_OccludedRect(put(value))); - return value; -} - -template void impl_IInputPaneVisibilityEventArgs::EnsuredFocusedElementInView(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EnsuredFocusedElementInView(value)); -} - -template bool impl_IInputPaneVisibilityEventArgs::EnsuredFocusedElementInView() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_EnsuredFocusedElementInView(&value)); - return value; -} - -template event_token impl_IInputPane::Showing(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Showing(get(handler), &token)); - return token; -} - -template event_revoker impl_IInputPane::Showing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ViewManagement::IInputPane::remove_Showing, Showing(handler)); -} - -template void impl_IInputPane::Showing(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Showing(token)); -} - -template event_token impl_IInputPane::Hiding(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Hiding(get(handler), &token)); - return token; -} - -template event_revoker impl_IInputPane::Hiding(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ViewManagement::IInputPane::remove_Hiding, Hiding(handler)); -} - -template void impl_IInputPane::Hiding(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Hiding(token)); -} - -template Windows::Foundation::Rect impl_IInputPane::OccludedRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_OccludedRect(put(value))); - return value; -} - -template bool impl_IInputPane2::TryShow() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryShow(&result)); - return result; -} - -template bool impl_IInputPane2::TryHide() const -{ - bool result {}; - check_hresult(static_cast(static_cast(*this))->abi_TryHide(&result)); - return result; -} - -template bool impl_IInputPaneControl::Visible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Visible(&value)); - return value; -} - -template void impl_IInputPaneControl::Visible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Visible(value)); -} - -template Windows::UI::ViewManagement::InputPane impl_IInputPaneStatics::GetForCurrentView() const -{ - Windows::UI::ViewManagement::InputPane inputPane { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(inputPane))); - return inputPane; -} - -template Windows::Foundation::IAsyncAction impl_IProjectionManagerStatics::StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_StartProjectingAsync(projectionViewId, anchorViewId, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IProjectionManagerStatics::SwapDisplaysForViewsAsync(int32_t projectionViewId, int32_t anchorViewId) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_SwapDisplaysForViewsAsync(projectionViewId, anchorViewId, put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncAction impl_IProjectionManagerStatics::StopProjectingAsync(int32_t projectionViewId, int32_t anchorViewId) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_StopProjectingAsync(projectionViewId, anchorViewId, put(operation))); - return operation; -} - -template bool impl_IProjectionManagerStatics::ProjectionDisplayAvailable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ProjectionDisplayAvailable(&value)); - return value; -} - -template event_token impl_IProjectionManagerStatics::ProjectionDisplayAvailableChanged(const Windows::Foundation::EventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ProjectionDisplayAvailableChanged(get(handler), &token)); - return token; -} - -template event_revoker impl_IProjectionManagerStatics::ProjectionDisplayAvailableChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ViewManagement::IProjectionManagerStatics::remove_ProjectionDisplayAvailableChanged, ProjectionDisplayAvailableChanged(handler)); -} - -template void impl_IProjectionManagerStatics::ProjectionDisplayAvailableChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ProjectionDisplayAvailableChanged(token)); -} - -template Windows::Foundation::IAsyncAction impl_IProjectionManagerStatics2::StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, const Windows::Devices::Enumeration::DeviceInformation & displayDeviceInfo) const -{ - Windows::Foundation::IAsyncAction operation; - check_hresult(static_cast(static_cast(*this))->abi_StartProjectingWithDeviceInfoAsync(projectionViewId, anchorViewId, get(displayDeviceInfo), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IProjectionManagerStatics2::RequestStartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, const Windows::Foundation::Rect & selection) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestStartProjectingAsync(projectionViewId, anchorViewId, get(selection), put(operation))); - return operation; -} - -template Windows::Foundation::IAsyncOperation impl_IProjectionManagerStatics2::RequestStartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement prefferedPlacement) const -{ - Windows::Foundation::IAsyncOperation operation; - check_hresult(static_cast(static_cast(*this))->abi_RequestStartProjectingWithPlacementAsync(projectionViewId, anchorViewId, get(selection), prefferedPlacement, put(operation))); - return operation; -} - -template hstring impl_IProjectionManagerStatics2::GetDeviceSelector() const -{ - hstring selector; - check_hresult(static_cast(static_cast(*this))->abi_GetDeviceSelector(put(selector))); - return selector; -} - -template Windows::UI::ViewManagement::UserInteractionMode impl_IUIViewSettings::UserInteractionMode() const -{ - Windows::UI::ViewManagement::UserInteractionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_UserInteractionMode(&value)); - return value; -} - -template Windows::UI::ViewManagement::UIViewSettings impl_IUIViewSettingsStatics::GetForCurrentView() const -{ - Windows::UI::ViewManagement::UIViewSettings current { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(current))); - return current; -} - -template bool impl_IAccessibilitySettings::HighContrast() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HighContrast(&value)); - return value; -} - -template hstring impl_IAccessibilitySettings::HighContrastScheme() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HighContrastScheme(put(value))); - return value; -} - -template event_token impl_IAccessibilitySettings::HighContrastChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_HighContrastChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IAccessibilitySettings::HighContrastChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ViewManagement::IAccessibilitySettings::remove_HighContrastChanged, HighContrastChanged(handler)); -} - -template void impl_IAccessibilitySettings::HighContrastChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HighContrastChanged(cookie)); -} - -template Windows::UI::ViewManagement::HandPreference impl_IUISettings::HandPreference() const -{ - Windows::UI::ViewManagement::HandPreference value {}; - check_hresult(static_cast(static_cast(*this))->get_HandPreference(&value)); - return value; -} - -template Windows::Foundation::Size impl_IUISettings::CursorSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_CursorSize(put(value))); - return value; -} - -template Windows::Foundation::Size impl_IUISettings::ScrollBarSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_ScrollBarSize(put(value))); - return value; -} - -template Windows::Foundation::Size impl_IUISettings::ScrollBarArrowSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_ScrollBarArrowSize(put(value))); - return value; -} - -template Windows::Foundation::Size impl_IUISettings::ScrollBarThumbBoxSize() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_ScrollBarThumbBoxSize(put(value))); - return value; -} - -template uint32_t impl_IUISettings::MessageDuration() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MessageDuration(&value)); - return value; -} - -template bool impl_IUISettings::AnimationsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AnimationsEnabled(&value)); - return value; -} - -template bool impl_IUISettings::CaretBrowsingEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CaretBrowsingEnabled(&value)); - return value; -} - -template uint32_t impl_IUISettings::CaretBlinkRate() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CaretBlinkRate(&value)); - return value; -} - -template uint32_t impl_IUISettings::CaretWidth() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CaretWidth(&value)); - return value; -} - -template uint32_t impl_IUISettings::DoubleClickTime() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DoubleClickTime(&value)); - return value; -} - -template uint32_t impl_IUISettings::MouseHoverTime() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MouseHoverTime(&value)); - return value; -} - -template Windows::UI::Color impl_IUISettings::UIElementColor(Windows::UI::ViewManagement::UIElementType desiredElement) const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->abi_UIElementColor(desiredElement, put(value))); - return value; -} - -template double impl_IUISettings2::TextScaleFactor() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_TextScaleFactor(&value)); - return value; -} - -template event_token impl_IUISettings2::TextScaleFactorChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_TextScaleFactorChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IUISettings2::TextScaleFactorChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ViewManagement::IUISettings2::remove_TextScaleFactorChanged, TextScaleFactorChanged(handler)); -} - -template void impl_IUISettings2::TextScaleFactorChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextScaleFactorChanged(cookie)); -} - -template Windows::UI::Color impl_IUISettings3::GetColorValue(Windows::UI::ViewManagement::UIColorType desiredColor) const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetColorValue(desiredColor, put(value))); - return value; -} - -template event_token impl_IUISettings3::ColorValuesChanged(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token cookie {}; - check_hresult(static_cast(static_cast(*this))->add_ColorValuesChanged(get(handler), &cookie)); - return cookie; -} - -template event_revoker impl_IUISettings3::ColorValuesChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ViewManagement::IUISettings3::remove_ColorValuesChanged, ColorValuesChanged(handler)); -} - -template void impl_IUISettings3::ColorValuesChanged(event_token cookie) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ColorValuesChanged(cookie)); -} - -template bool impl_IApplicationViewScalingStatics::DisableLayoutScaling() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DisableLayoutScaling(&value)); - return value; -} - -template bool impl_IApplicationViewScalingStatics::TrySetDisableLayoutScaling(bool disableLayoutScaling) const -{ - bool success {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetDisableLayoutScaling(disableLayoutScaling, &success)); - return success; -} - -template Windows::UI::ViewManagement::StatusBar impl_IStatusBarStatics::GetForCurrentView() const -{ - Windows::UI::ViewManagement::StatusBar value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(value))); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IStatusBar::ShowAsync() const -{ - Windows::Foundation::IAsyncAction returnValue; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsync(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncAction impl_IStatusBar::HideAsync() const -{ - Windows::Foundation::IAsyncAction returnValue; - check_hresult(static_cast(static_cast(*this))->abi_HideAsync(put(returnValue))); - return returnValue; -} - -template double impl_IStatusBar::BackgroundOpacity() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundOpacity(&value)); - return value; -} - -template void impl_IStatusBar::BackgroundOpacity(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackgroundOpacity(value)); -} - -template Windows::Foundation::IReference impl_IStatusBar::ForegroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ForegroundColor(put(value))); - return value; -} - -template void impl_IStatusBar::ForegroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ForegroundColor(get(value))); -} - -template Windows::Foundation::IReference impl_IStatusBar::BackgroundColor() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(put(value))); - return value; -} - -template void impl_IStatusBar::BackgroundColor(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackgroundColor(get(value))); -} - -template Windows::UI::ViewManagement::StatusBarProgressIndicator impl_IStatusBar::ProgressIndicator() const -{ - Windows::UI::ViewManagement::StatusBarProgressIndicator value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProgressIndicator(put(value))); - return value; -} - -template Windows::Foundation::Rect impl_IStatusBar::OccludedRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_OccludedRect(put(value))); - return value; -} - -template event_token impl_IStatusBar::Showing(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Showing(get(eventHandler), &token)); - return token; -} - -template event_revoker impl_IStatusBar::Showing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ViewManagement::IStatusBar::remove_Showing, Showing(eventHandler)); -} - -template void impl_IStatusBar::Showing(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Showing(token)); -} - -template event_token impl_IStatusBar::Hiding(const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Hiding(get(eventHandler), &token)); - return token; -} - -template event_revoker impl_IStatusBar::Hiding(auto_revoke_t, const Windows::Foundation::TypedEventHandler & eventHandler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::ViewManagement::IStatusBar::remove_Hiding, Hiding(eventHandler)); -} - -template void impl_IStatusBar::Hiding(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Hiding(token)); -} - -template Windows::Foundation::IAsyncAction impl_IStatusBarProgressIndicator::ShowAsync() const -{ - Windows::Foundation::IAsyncAction returnValue; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsync(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncAction impl_IStatusBarProgressIndicator::HideAsync() const -{ - Windows::Foundation::IAsyncAction returnValue; - check_hresult(static_cast(static_cast(*this))->abi_HideAsync(put(returnValue))); - return returnValue; -} - -template hstring impl_IStatusBarProgressIndicator::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_IStatusBarProgressIndicator::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template Windows::Foundation::IReference impl_IStatusBarProgressIndicator::ProgressValue() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_ProgressValue(put(value))); - return value; -} - -template void impl_IStatusBarProgressIndicator::ProgressValue(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProgressValue(get(value))); -} - -inline AccessibilitySettings::AccessibilitySettings() : - AccessibilitySettings(activate_instance()) -{} - -inline bool ApplicationView::TryUnsnapToFullscreen() -{ - return get_activation_factory().TryUnsnapToFullscreen(); -} - -inline int32_t ApplicationView::GetApplicationViewIdForWindow(const Windows::UI::Core::ICoreWindow & window) -{ - return get_activation_factory().GetApplicationViewIdForWindow(window); -} - -inline Windows::UI::ViewManagement::ApplicationViewState ApplicationView::Value() -{ - return get_activation_factory().Value(); -} - -inline bool ApplicationView::TryUnsnap() -{ - return get_activation_factory().TryUnsnap(); -} - -inline Windows::UI::ViewManagement::ApplicationView ApplicationView::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline bool ApplicationView::TerminateAppOnFinalViewClose() -{ - return get_activation_factory().TerminateAppOnFinalViewClose(); -} - -inline void ApplicationView::TerminateAppOnFinalViewClose(bool value) -{ - get_activation_factory().TerminateAppOnFinalViewClose(value); -} - -inline Windows::UI::ViewManagement::ApplicationViewWindowingMode ApplicationView::PreferredLaunchWindowingMode() -{ - return get_activation_factory().PreferredLaunchWindowingMode(); -} - -inline void ApplicationView::PreferredLaunchWindowingMode(Windows::UI::ViewManagement::ApplicationViewWindowingMode value) -{ - get_activation_factory().PreferredLaunchWindowingMode(value); -} - -inline Windows::Foundation::Size ApplicationView::PreferredLaunchViewSize() -{ - return get_activation_factory().PreferredLaunchViewSize(); -} - -inline void ApplicationView::PreferredLaunchViewSize(const Windows::Foundation::Size & value) -{ - get_activation_factory().PreferredLaunchViewSize(value); -} - -inline bool ApplicationViewScaling::DisableLayoutScaling() -{ - return get_activation_factory().DisableLayoutScaling(); -} - -inline bool ApplicationViewScaling::TrySetDisableLayoutScaling(bool disableLayoutScaling) -{ - return get_activation_factory().TrySetDisableLayoutScaling(disableLayoutScaling); -} - -inline void ApplicationViewSwitcher::DisableShowingMainViewOnActivation() -{ - get_activation_factory().DisableShowingMainViewOnActivation(); -} - -inline Windows::Foundation::IAsyncOperation ApplicationViewSwitcher::TryShowAsStandaloneAsync(int32_t viewId) -{ - return get_activation_factory().TryShowAsStandaloneAsync(viewId); -} - -inline Windows::Foundation::IAsyncOperation ApplicationViewSwitcher::TryShowAsStandaloneAsync(int32_t viewId, Windows::UI::ViewManagement::ViewSizePreference sizePreference) -{ - return get_activation_factory().TryShowAsStandaloneAsync(viewId, sizePreference); -} - -inline Windows::Foundation::IAsyncOperation ApplicationViewSwitcher::TryShowAsStandaloneAsync(int32_t viewId, Windows::UI::ViewManagement::ViewSizePreference sizePreference, int32_t anchorViewId, Windows::UI::ViewManagement::ViewSizePreference anchorSizePreference) -{ - return get_activation_factory().TryShowAsStandaloneAsync(viewId, sizePreference, anchorViewId, anchorSizePreference); -} - -inline Windows::Foundation::IAsyncAction ApplicationViewSwitcher::SwitchAsync(int32_t viewId) -{ - return get_activation_factory().SwitchAsync(viewId); -} - -inline Windows::Foundation::IAsyncAction ApplicationViewSwitcher::SwitchAsync(int32_t toViewId, int32_t fromViewId) -{ - return get_activation_factory().SwitchAsync(toViewId, fromViewId); -} - -inline Windows::Foundation::IAsyncAction ApplicationViewSwitcher::SwitchAsync(int32_t toViewId, int32_t fromViewId, Windows::UI::ViewManagement::ApplicationViewSwitchingOptions options) -{ - return get_activation_factory().SwitchAsync(toViewId, fromViewId, options); -} - -inline Windows::Foundation::IAsyncOperation ApplicationViewSwitcher::PrepareForCustomAnimatedSwitchAsync(int32_t toViewId, int32_t fromViewId, Windows::UI::ViewManagement::ApplicationViewSwitchingOptions options) -{ - return get_activation_factory().PrepareForCustomAnimatedSwitchAsync(toViewId, fromViewId, options); -} - -inline void ApplicationViewSwitcher::DisableSystemViewActivationPolicy() -{ - get_activation_factory().DisableSystemViewActivationPolicy(); -} - -inline ApplicationViewTransferContext::ApplicationViewTransferContext() : - ApplicationViewTransferContext(activate_instance()) -{} - -inline hstring ApplicationViewTransferContext::DataPackageFormatId() -{ - return get_activation_factory().DataPackageFormatId(); -} - -inline Windows::UI::ViewManagement::InputPane InputPane::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline Windows::Foundation::IAsyncAction ProjectionManager::StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId) -{ - return get_activation_factory().StartProjectingAsync(projectionViewId, anchorViewId); -} - -inline Windows::Foundation::IAsyncAction ProjectionManager::SwapDisplaysForViewsAsync(int32_t projectionViewId, int32_t anchorViewId) -{ - return get_activation_factory().SwapDisplaysForViewsAsync(projectionViewId, anchorViewId); -} - -inline Windows::Foundation::IAsyncAction ProjectionManager::StopProjectingAsync(int32_t projectionViewId, int32_t anchorViewId) -{ - return get_activation_factory().StopProjectingAsync(projectionViewId, anchorViewId); -} - -inline bool ProjectionManager::ProjectionDisplayAvailable() -{ - return get_activation_factory().ProjectionDisplayAvailable(); -} - -inline event_token ProjectionManager::ProjectionDisplayAvailableChanged(const Windows::Foundation::EventHandler & handler) -{ - return get_activation_factory().ProjectionDisplayAvailableChanged(handler); -} - -inline factory_event_revoker ProjectionManager::ProjectionDisplayAvailableChanged(auto_revoke_t, const Windows::Foundation::EventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::UI::ViewManagement::IProjectionManagerStatics::remove_ProjectionDisplayAvailableChanged, factory.ProjectionDisplayAvailableChanged(handler) }; -} - -inline void ProjectionManager::ProjectionDisplayAvailableChanged(event_token token) -{ - get_activation_factory().ProjectionDisplayAvailableChanged(token); -} - -inline Windows::Foundation::IAsyncAction ProjectionManager::StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, const Windows::Devices::Enumeration::DeviceInformation & displayDeviceInfo) -{ - return get_activation_factory().StartProjectingAsync(projectionViewId, anchorViewId, displayDeviceInfo); -} - -inline Windows::Foundation::IAsyncOperation ProjectionManager::RequestStartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, const Windows::Foundation::Rect & selection) -{ - return get_activation_factory().RequestStartProjectingAsync(projectionViewId, anchorViewId, selection); -} - -inline Windows::Foundation::IAsyncOperation ProjectionManager::RequestStartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, const Windows::Foundation::Rect & selection, Windows::UI::Popups::Placement prefferedPlacement) -{ - return get_activation_factory().RequestStartProjectingAsync(projectionViewId, anchorViewId, selection, prefferedPlacement); -} - -inline hstring ProjectionManager::GetDeviceSelector() -{ - return get_activation_factory().GetDeviceSelector(); -} - -inline Windows::UI::ViewManagement::StatusBar StatusBar::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline UISettings::UISettings() : - UISettings(activate_instance()) -{} - -inline Windows::UI::ViewManagement::UIViewSettings UIViewSettings::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.WebUI.Core.h b/10.0.14393.0/winrt/Windows.UI.WebUI.Core.h deleted file mode 100644 index c2fff4ff5..000000000 --- a/10.0.14393.0/winrt/Windows.UI.WebUI.Core.h +++ /dev/null @@ -1,1071 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.WebUI.Core.3.h" -#include "Windows.UI.WebUI.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::UI::WebUI::Core { - -template MenuClosedEventHandler::MenuClosedEventHandler(L lambda) : - MenuClosedEventHandler(impl::make_delegate, MenuClosedEventHandler>(std::forward(lambda))) -{} - -template MenuClosedEventHandler::MenuClosedEventHandler(F * function) : - MenuClosedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template MenuClosedEventHandler::MenuClosedEventHandler(O * object, M method) : - MenuClosedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void MenuClosedEventHandler::operator()() const -{ - check_hresult((*this)->abi_Invoke()); -} - -template MenuOpenedEventHandler::MenuOpenedEventHandler(L lambda) : - MenuOpenedEventHandler(impl::make_delegate, MenuOpenedEventHandler>(std::forward(lambda))) -{} - -template MenuOpenedEventHandler::MenuOpenedEventHandler(F * function) : - MenuOpenedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template MenuOpenedEventHandler::MenuOpenedEventHandler(O * object, M method) : - MenuOpenedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void MenuOpenedEventHandler::operator()() const -{ - check_hresult((*this)->abi_Invoke()); -} - -template SizeChangedEventHandler::SizeChangedEventHandler(L lambda) : - SizeChangedEventHandler(impl::make_delegate, SizeChangedEventHandler>(std::forward(lambda))) -{} - -template SizeChangedEventHandler::SizeChangedEventHandler(F * function) : - SizeChangedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template SizeChangedEventHandler::SizeChangedEventHandler(O * object, M method) : - SizeChangedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void SizeChangedEventHandler::operator()(const Windows::UI::WebUI::Core::WebUICommandBarSizeChangedEventArgs & eventArgs) const -{ - check_hresult((*this)->abi_Invoke(get(eventArgs))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Visible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Visible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Visible(bool value) noexcept override - { - try - { - this->shim().Visible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Opacity(double * value) noexcept override - { - try - { - *value = detach(this->shim().Opacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Opacity(double value) noexcept override - { - try - { - this->shim().Opacity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ForegroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().ForegroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BackgroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().BackgroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClosedDisplayMode(Windows::UI::WebUI::Core::WebUICommandBarClosedDisplayMode * value) noexcept override - { - try - { - *value = detach(this->shim().ClosedDisplayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClosedDisplayMode(Windows::UI::WebUI::Core::WebUICommandBarClosedDisplayMode value) noexcept override - { - try - { - this->shim().ClosedDisplayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOpen(bool value) noexcept override - { - try - { - this->shim().IsOpen(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Size(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryCommands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryCommands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryCommands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryCommands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MenuOpened(abi_arg_in handler, event_token * value) noexcept override - { - try - { - *value = detach(this->shim().MenuOpened(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MenuOpened(event_token value) noexcept override - { - try - { - this->shim().MenuOpened(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MenuClosed(abi_arg_in handler, event_token * value) noexcept override - { - try - { - *value = detach(this->shim().MenuClosed(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MenuClosed(event_token value) noexcept override - { - try - { - this->shim().MenuClosed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SizeChanged(abi_arg_in handler, event_token * value) noexcept override - { - try - { - *value = detach(this->shim().SizeChanged(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SizeChanged(event_token value) noexcept override - { - try - { - this->shim().SizeChanged(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Uri(abi_arg_in value) noexcept override - { - try - { - this->shim().Uri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in uri, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().Create(*reinterpret_cast(&uri))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ItemInvoked(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ItemInvoked(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemInvoked(event_token token) noexcept override - { - try - { - this->shim().ItemInvoked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Enabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Enabled(bool value) noexcept override - { - try - { - this->shim().Enabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Label(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Label()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Label(abi_arg_in value) noexcept override - { - try - { - this->shim().Label(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsToggleButton(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsToggleButton()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsToggleButton(bool value) noexcept override - { - try - { - this->shim().IsToggleButton(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsChecked(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsChecked()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsChecked(bool value) noexcept override - { - try - { - this->shim().IsChecked(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Icon(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Icon()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Icon(abi_arg_in value) noexcept override - { - try - { - this->shim().Icon(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ItemInvoked(abi_arg_in> handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ItemInvoked(*reinterpret_cast *>(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemInvoked(event_token token) noexcept override - { - try - { - this->shim().ItemInvoked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsPrimaryCommand(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPrimaryCommand()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Size(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Size()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetForCurrentView(abi_arg_out commandBar) noexcept override - { - try - { - *commandBar = detach(this->shim().GetForCurrentView()); - return S_OK; - } - catch (...) - { - *commandBar = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Symbol(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Symbol()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Symbol(abi_arg_in value) noexcept override - { - try - { - this->shim().Symbol(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Create(abi_arg_in symbol, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().Create(*reinterpret_cast(&symbol))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::WebUI::Core { - -template bool impl_IWebUICommandBarItemInvokedEventArgs::IsPrimaryCommand() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPrimaryCommand(&value)); - return value; -} - -template bool impl_IWebUICommandBarIconButton::Enabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Enabled(&value)); - return value; -} - -template void impl_IWebUICommandBarIconButton::Enabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(value)); -} - -template hstring impl_IWebUICommandBarIconButton::Label() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Label(put(value))); - return value; -} - -template void impl_IWebUICommandBarIconButton::Label(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Label(get(value))); -} - -template bool impl_IWebUICommandBarIconButton::IsToggleButton() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsToggleButton(&value)); - return value; -} - -template void impl_IWebUICommandBarIconButton::IsToggleButton(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsToggleButton(value)); -} - -template bool impl_IWebUICommandBarIconButton::IsChecked() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsChecked(&value)); - return value; -} - -template void impl_IWebUICommandBarIconButton::IsChecked(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsChecked(value)); -} - -template Windows::UI::WebUI::Core::IWebUICommandBarIcon impl_IWebUICommandBarIconButton::Icon() const -{ - Windows::UI::WebUI::Core::IWebUICommandBarIcon value; - check_hresult(static_cast(static_cast(*this))->get_Icon(put(value))); - return value; -} - -template void impl_IWebUICommandBarIconButton::Icon(const Windows::UI::WebUI::Core::IWebUICommandBarIcon & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Icon(get(value))); -} - -template event_token impl_IWebUICommandBarIconButton::ItemInvoked(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ItemInvoked(get(handler), &token)); - return token; -} - -template event_revoker impl_IWebUICommandBarIconButton::ItemInvoked(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::WebUI::Core::IWebUICommandBarIconButton::remove_ItemInvoked, ItemInvoked(handler)); -} - -template void impl_IWebUICommandBarIconButton::ItemInvoked(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemInvoked(token)); -} - -template hstring impl_IWebUICommandBarConfirmationButton::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_IWebUICommandBarConfirmationButton::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template event_token impl_IWebUICommandBarConfirmationButton::ItemInvoked(const Windows::Foundation::TypedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ItemInvoked(get(handler), &token)); - return token; -} - -template event_revoker impl_IWebUICommandBarConfirmationButton::ItemInvoked(auto_revoke_t, const Windows::Foundation::TypedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::WebUI::Core::IWebUICommandBarConfirmationButton::remove_ItemInvoked, ItemInvoked(handler)); -} - -template void impl_IWebUICommandBarConfirmationButton::ItemInvoked(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemInvoked(token)); -} - -template Windows::Foundation::Uri impl_IWebUICommandBarBitmapIcon::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template void impl_IWebUICommandBarBitmapIcon::Uri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Uri(get(value))); -} - -template Windows::UI::WebUI::Core::WebUICommandBarBitmapIcon impl_IWebUICommandBarBitmapIconFactory::Create(const Windows::Foundation::Uri & uri) const -{ - Windows::UI::WebUI::Core::WebUICommandBarBitmapIcon instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(uri), put(instance))); - return instance; -} - -template hstring impl_IWebUICommandBarSymbolIcon::Symbol() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Symbol(put(value))); - return value; -} - -template void impl_IWebUICommandBarSymbolIcon::Symbol(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Symbol(get(value))); -} - -template Windows::UI::WebUI::Core::WebUICommandBarSymbolIcon impl_IWebUICommandBarSymbolIconFactory::Create(hstring_ref symbol) const -{ - Windows::UI::WebUI::Core::WebUICommandBarSymbolIcon instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_Create(get(symbol), put(instance))); - return instance; -} - -template Windows::Foundation::Size impl_IWebUICommandBarSizeChangedEventArgs::Size() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(put(value))); - return value; -} - -template bool impl_IWebUICommandBar::Visible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Visible(&value)); - return value; -} - -template void impl_IWebUICommandBar::Visible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Visible(value)); -} - -template double impl_IWebUICommandBar::Opacity() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Opacity(&value)); - return value; -} - -template void impl_IWebUICommandBar::Opacity(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Opacity(value)); -} - -template Windows::UI::Color impl_IWebUICommandBar::ForegroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_ForegroundColor(put(value))); - return value; -} - -template void impl_IWebUICommandBar::ForegroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ForegroundColor(get(value))); -} - -template Windows::UI::Color impl_IWebUICommandBar::BackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_BackgroundColor(put(value))); - return value; -} - -template void impl_IWebUICommandBar::BackgroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BackgroundColor(get(value))); -} - -template Windows::UI::WebUI::Core::WebUICommandBarClosedDisplayMode impl_IWebUICommandBar::ClosedDisplayMode() const -{ - Windows::UI::WebUI::Core::WebUICommandBarClosedDisplayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ClosedDisplayMode(&value)); - return value; -} - -template void impl_IWebUICommandBar::ClosedDisplayMode(Windows::UI::WebUI::Core::WebUICommandBarClosedDisplayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ClosedDisplayMode(value)); -} - -template bool impl_IWebUICommandBar::IsOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOpen(&value)); - return value; -} - -template void impl_IWebUICommandBar::IsOpen(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOpen(value)); -} - -template Windows::Foundation::Size impl_IWebUICommandBar::Size() const -{ - Windows::Foundation::Size value {}; - check_hresult(static_cast(static_cast(*this))->get_Size(put(value))); - return value; -} - -template Windows::Foundation::Collections::IObservableVector impl_IWebUICommandBar::PrimaryCommands() const -{ - Windows::Foundation::Collections::IObservableVector value; - check_hresult(static_cast(static_cast(*this))->get_PrimaryCommands(put(value))); - return value; -} - -template Windows::Foundation::Collections::IObservableVector impl_IWebUICommandBar::SecondaryCommands() const -{ - Windows::Foundation::Collections::IObservableVector value; - check_hresult(static_cast(static_cast(*this))->get_SecondaryCommands(put(value))); - return value; -} - -template event_token impl_IWebUICommandBar::MenuOpened(const Windows::UI::WebUI::Core::MenuOpenedEventHandler & handler) const -{ - event_token value {}; - check_hresult(static_cast(static_cast(*this))->add_MenuOpened(get(handler), &value)); - return value; -} - -template event_revoker impl_IWebUICommandBar::MenuOpened(auto_revoke_t, const Windows::UI::WebUI::Core::MenuOpenedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::WebUI::Core::IWebUICommandBar::remove_MenuOpened, MenuOpened(handler)); -} - -template void impl_IWebUICommandBar::MenuOpened(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MenuOpened(value)); -} - -template event_token impl_IWebUICommandBar::MenuClosed(const Windows::UI::WebUI::Core::MenuClosedEventHandler & handler) const -{ - event_token value {}; - check_hresult(static_cast(static_cast(*this))->add_MenuClosed(get(handler), &value)); - return value; -} - -template event_revoker impl_IWebUICommandBar::MenuClosed(auto_revoke_t, const Windows::UI::WebUI::Core::MenuClosedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::WebUI::Core::IWebUICommandBar::remove_MenuClosed, MenuClosed(handler)); -} - -template void impl_IWebUICommandBar::MenuClosed(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MenuClosed(value)); -} - -template event_token impl_IWebUICommandBar::SizeChanged(const Windows::UI::WebUI::Core::SizeChangedEventHandler & handler) const -{ - event_token value {}; - check_hresult(static_cast(static_cast(*this))->add_SizeChanged(get(handler), &value)); - return value; -} - -template event_revoker impl_IWebUICommandBar::SizeChanged(auto_revoke_t, const Windows::UI::WebUI::Core::SizeChangedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::WebUI::Core::IWebUICommandBar::remove_SizeChanged, SizeChanged(handler)); -} - -template void impl_IWebUICommandBar::SizeChanged(event_token value) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SizeChanged(value)); -} - -template Windows::UI::WebUI::Core::WebUICommandBar impl_IWebUICommandBarStatics::GetForCurrentView() const -{ - Windows::UI::WebUI::Core::WebUICommandBar commandBar { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetForCurrentView(put(commandBar))); - return commandBar; -} - -inline Windows::UI::WebUI::Core::WebUICommandBar WebUICommandBar::GetForCurrentView() -{ - return get_activation_factory().GetForCurrentView(); -} - -inline WebUICommandBarBitmapIcon::WebUICommandBarBitmapIcon() : - WebUICommandBarBitmapIcon(activate_instance()) -{} - -inline WebUICommandBarBitmapIcon::WebUICommandBarBitmapIcon(const Windows::Foundation::Uri & uri) : - WebUICommandBarBitmapIcon(get_activation_factory().Create(uri)) -{} - -inline WebUICommandBarConfirmationButton::WebUICommandBarConfirmationButton() : - WebUICommandBarConfirmationButton(activate_instance()) -{} - -inline WebUICommandBarIconButton::WebUICommandBarIconButton() : - WebUICommandBarIconButton(activate_instance()) -{} - -inline WebUICommandBarSymbolIcon::WebUICommandBarSymbolIcon() : - WebUICommandBarSymbolIcon(activate_instance()) -{} - -inline WebUICommandBarSymbolIcon::WebUICommandBarSymbolIcon(hstring_ref symbol) : - WebUICommandBarSymbolIcon(get_activation_factory().Create(symbol)) -{} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.WebUI.h b/10.0.14393.0/winrt/Windows.UI.WebUI.h deleted file mode 100644 index a4257efe4..000000000 --- a/10.0.14393.0/winrt/Windows.UI.WebUI.h +++ /dev/null @@ -1,1082 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.ApplicationModel.Activation.3.h" -#include "internal/Windows.ApplicationModel.3.h" -#include "internal/Windows.UI.WebUI.3.h" -#include "Windows.UI.h" -#include "Windows.ApplicationModel.h" -#include "Windows.ApplicationModel.Activation.h" -#include "Windows.ApplicationModel.Background.h" -#include "Windows.Foundation.h" -#include "Windows.Graphics.Printing.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::UI::WebUI { - -template ActivatedEventHandler::ActivatedEventHandler(L lambda) : - ActivatedEventHandler(impl::make_delegate, ActivatedEventHandler>(std::forward(lambda))) -{} - -template ActivatedEventHandler::ActivatedEventHandler(F * function) : - ActivatedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template ActivatedEventHandler::ActivatedEventHandler(O * object, M method) : - ActivatedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void ActivatedEventHandler::operator()(const Windows::IInspectable & sender, const Windows::ApplicationModel::Activation::IActivatedEventArgs & eventArgs) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(eventArgs))); -} - -template EnteredBackgroundEventHandler::EnteredBackgroundEventHandler(L lambda) : - EnteredBackgroundEventHandler(impl::make_delegate, EnteredBackgroundEventHandler>(std::forward(lambda))) -{} - -template EnteredBackgroundEventHandler::EnteredBackgroundEventHandler(F * function) : - EnteredBackgroundEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template EnteredBackgroundEventHandler::EnteredBackgroundEventHandler(O * object, M method) : - EnteredBackgroundEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void EnteredBackgroundEventHandler::operator()(const Windows::IInspectable & sender, const Windows::ApplicationModel::IEnteredBackgroundEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template LeavingBackgroundEventHandler::LeavingBackgroundEventHandler(L lambda) : - LeavingBackgroundEventHandler(impl::make_delegate, LeavingBackgroundEventHandler>(std::forward(lambda))) -{} - -template LeavingBackgroundEventHandler::LeavingBackgroundEventHandler(F * function) : - LeavingBackgroundEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template LeavingBackgroundEventHandler::LeavingBackgroundEventHandler(O * object, M method) : - LeavingBackgroundEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void LeavingBackgroundEventHandler::operator()(const Windows::IInspectable & sender, const Windows::ApplicationModel::ILeavingBackgroundEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template NavigatedEventHandler::NavigatedEventHandler(L lambda) : - NavigatedEventHandler(impl::make_delegate, NavigatedEventHandler>(std::forward(lambda))) -{} - -template NavigatedEventHandler::NavigatedEventHandler(F * function) : - NavigatedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template NavigatedEventHandler::NavigatedEventHandler(O * object, M method) : - NavigatedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void NavigatedEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::WebUI::IWebUINavigatedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template ResumingEventHandler::ResumingEventHandler(L lambda) : - ResumingEventHandler(impl::make_delegate, ResumingEventHandler>(std::forward(lambda))) -{} - -template ResumingEventHandler::ResumingEventHandler(F * function) : - ResumingEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template ResumingEventHandler::ResumingEventHandler(O * object, M method) : - ResumingEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void ResumingEventHandler::operator()(const Windows::IInspectable & sender) const -{ - check_hresult((*this)->abi_Invoke(get(sender))); -} - -template SuspendingEventHandler::SuspendingEventHandler(L lambda) : - SuspendingEventHandler(impl::make_delegate, SuspendingEventHandler>(std::forward(lambda))) -{} - -template SuspendingEventHandler::SuspendingEventHandler(F * function) : - SuspendingEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template SuspendingEventHandler::SuspendingEventHandler(O * object, M method) : - SuspendingEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void SuspendingEventHandler::operator()(const Windows::IInspectable & sender, const Windows::ApplicationModel::ISuspendingEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ActivatedOperation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActivatedOperation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(Windows::UI::WebUI::PrintContent * value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Content(Windows::UI::WebUI::PrintContent value) noexcept override - { - try - { - this->shim().Content(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LeftMargin(float * value) noexcept override - { - try - { - *value = detach(this->shim().LeftMargin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LeftMargin(float value) noexcept override - { - try - { - this->shim().LeftMargin(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TopMargin(float * value) noexcept override - { - try - { - *value = detach(this->shim().TopMargin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TopMargin(float value) noexcept override - { - try - { - this->shim().TopMargin(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightMargin(float * value) noexcept override - { - try - { - *value = detach(this->shim().RightMargin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RightMargin(float value) noexcept override - { - try - { - this->shim().RightMargin(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BottomMargin(float * value) noexcept override - { - try - { - *value = detach(this->shim().BottomMargin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BottomMargin(float value) noexcept override - { - try - { - this->shim().BottomMargin(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EnableHeaderFooter(bool * value) noexcept override - { - try - { - *value = detach(this->shim().EnableHeaderFooter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EnableHeaderFooter(bool value) noexcept override - { - try - { - this->shim().EnableHeaderFooter(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShrinkToFit(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShrinkToFit()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShrinkToFit(bool value) noexcept override - { - try - { - this->shim().ShrinkToFit(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PercentScale(float * pScalePercent) noexcept override - { - try - { - *pScalePercent = detach(this->shim().PercentScale()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PercentScale(float scalePercent) noexcept override - { - try - { - this->shim().PercentScale(scalePercent); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PageRange(abi_arg_out pstrPageRange) noexcept override - { - try - { - *pstrPageRange = detach(this->shim().PageRange()); - return S_OK; - } - catch (...) - { - *pstrPageRange = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetPageRange(abi_arg_in strPageRange, bool * pfSuccess) noexcept override - { - try - { - *pfSuccess = detach(this->shim().TrySetPageRange(*reinterpret_cast(&strPageRange))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_Activated(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Activated(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Activated(event_token token) noexcept override - { - try - { - this->shim().Activated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Suspending(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Suspending(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Suspending(event_token token) noexcept override - { - try - { - this->shim().Suspending(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Resuming(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Resuming(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Resuming(event_token token) noexcept override - { - try - { - this->shim().Resuming(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Navigated(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Navigated(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Navigated(event_token token) noexcept override - { - try - { - this->shim().Navigated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_LeavingBackground(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LeavingBackground(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LeavingBackground(event_token token) noexcept override - { - try - { - this->shim().LeavingBackground(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EnteredBackground(abi_arg_in handler, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EnteredBackground(*reinterpret_cast(&handler))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EnteredBackground(event_token token) noexcept override - { - try - { - this->shim().EnteredBackground(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_EnablePrelaunch(bool value) noexcept override - { - try - { - this->shim().EnablePrelaunch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Succeeded(bool * succeeded) noexcept override - { - try - { - *succeeded = detach(this->shim().Succeeded()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Succeeded(bool succeeded) noexcept override - { - try - { - this->shim().Succeeded(succeeded); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Current(abi_arg_out backgroundTaskInstance) noexcept override - { - try - { - *backgroundTaskInstance = detach(this->shim().Current()); - return S_OK; - } - catch (...) - { - *backgroundTaskInstance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NavigatedOperation(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NavigatedOperation()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetDeferral(abi_arg_out deferral) noexcept override - { - try - { - *deferral = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *deferral = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::WebUI { - -template void impl_IActivatedDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::UI::WebUI::ActivatedDeferral impl_IActivatedOperation::GetDeferral() const -{ - Windows::UI::WebUI::ActivatedDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template Windows::UI::WebUI::ActivatedOperation impl_IActivatedEventArgsDeferral::ActivatedOperation() const -{ - Windows::UI::WebUI::ActivatedOperation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ActivatedOperation(put(value))); - return value; -} - -template Windows::UI::WebUI::WebUINavigatedOperation impl_IWebUINavigatedEventArgs::NavigatedOperation() const -{ - Windows::UI::WebUI::WebUINavigatedOperation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NavigatedOperation(put(value))); - return value; -} - -template bool impl_IWebUIBackgroundTaskInstance::Succeeded() const -{ - bool succeeded {}; - check_hresult(static_cast(static_cast(*this))->get_Succeeded(&succeeded)); - return succeeded; -} - -template void impl_IWebUIBackgroundTaskInstance::Succeeded(bool succeeded) const -{ - check_hresult(static_cast(static_cast(*this))->put_Succeeded(succeeded)); -} - -template Windows::UI::WebUI::IWebUIBackgroundTaskInstance impl_IWebUIBackgroundTaskInstanceStatics::Current() const -{ - Windows::UI::WebUI::IWebUIBackgroundTaskInstance backgroundTaskInstance; - check_hresult(static_cast(static_cast(*this))->get_Current(put(backgroundTaskInstance))); - return backgroundTaskInstance; -} - -template void impl_IWebUINavigatedDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::UI::WebUI::WebUINavigatedDeferral impl_IWebUINavigatedOperation::GetDeferral() const -{ - Windows::UI::WebUI::WebUINavigatedDeferral deferral { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(deferral))); - return deferral; -} - -template event_token impl_IWebUIActivationStatics::Activated(const Windows::UI::WebUI::ActivatedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Activated(get(handler), &token)); - return token; -} - -template event_revoker impl_IWebUIActivationStatics::Activated(auto_revoke_t, const Windows::UI::WebUI::ActivatedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::WebUI::IWebUIActivationStatics::remove_Activated, Activated(handler)); -} - -template void impl_IWebUIActivationStatics::Activated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Activated(token)); -} - -template event_token impl_IWebUIActivationStatics::Suspending(const Windows::UI::WebUI::SuspendingEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Suspending(get(handler), &token)); - return token; -} - -template event_revoker impl_IWebUIActivationStatics::Suspending(auto_revoke_t, const Windows::UI::WebUI::SuspendingEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::WebUI::IWebUIActivationStatics::remove_Suspending, Suspending(handler)); -} - -template void impl_IWebUIActivationStatics::Suspending(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Suspending(token)); -} - -template event_token impl_IWebUIActivationStatics::Resuming(const Windows::UI::WebUI::ResumingEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Resuming(get(handler), &token)); - return token; -} - -template event_revoker impl_IWebUIActivationStatics::Resuming(auto_revoke_t, const Windows::UI::WebUI::ResumingEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::WebUI::IWebUIActivationStatics::remove_Resuming, Resuming(handler)); -} - -template void impl_IWebUIActivationStatics::Resuming(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Resuming(token)); -} - -template event_token impl_IWebUIActivationStatics::Navigated(const Windows::UI::WebUI::NavigatedEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Navigated(get(handler), &token)); - return token; -} - -template event_revoker impl_IWebUIActivationStatics::Navigated(auto_revoke_t, const Windows::UI::WebUI::NavigatedEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::WebUI::IWebUIActivationStatics::remove_Navigated, Navigated(handler)); -} - -template void impl_IWebUIActivationStatics::Navigated(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Navigated(token)); -} - -template event_token impl_IWebUIActivationStatics2::LeavingBackground(const Windows::UI::WebUI::LeavingBackgroundEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LeavingBackground(get(handler), &token)); - return token; -} - -template event_revoker impl_IWebUIActivationStatics2::LeavingBackground(auto_revoke_t, const Windows::UI::WebUI::LeavingBackgroundEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::WebUI::IWebUIActivationStatics2::remove_LeavingBackground, LeavingBackground(handler)); -} - -template void impl_IWebUIActivationStatics2::LeavingBackground(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LeavingBackground(token)); -} - -template event_token impl_IWebUIActivationStatics2::EnteredBackground(const Windows::UI::WebUI::EnteredBackgroundEventHandler & handler) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_EnteredBackground(get(handler), &token)); - return token; -} - -template event_revoker impl_IWebUIActivationStatics2::EnteredBackground(auto_revoke_t, const Windows::UI::WebUI::EnteredBackgroundEventHandler & handler) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::WebUI::IWebUIActivationStatics2::remove_EnteredBackground, EnteredBackground(handler)); -} - -template void impl_IWebUIActivationStatics2::EnteredBackground(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_EnteredBackground(token)); -} - -template void impl_IWebUIActivationStatics2::EnablePrelaunch(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_EnablePrelaunch(value)); -} - -template Windows::UI::WebUI::PrintContent impl_IHtmlPrintDocumentSource::Content() const -{ - Windows::UI::WebUI::PrintContent value {}; - check_hresult(static_cast(static_cast(*this))->get_Content(&value)); - return value; -} - -template void impl_IHtmlPrintDocumentSource::Content(Windows::UI::WebUI::PrintContent value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Content(value)); -} - -template float impl_IHtmlPrintDocumentSource::LeftMargin() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_LeftMargin(&value)); - return value; -} - -template void impl_IHtmlPrintDocumentSource::LeftMargin(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LeftMargin(value)); -} - -template float impl_IHtmlPrintDocumentSource::TopMargin() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_TopMargin(&value)); - return value; -} - -template void impl_IHtmlPrintDocumentSource::TopMargin(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TopMargin(value)); -} - -template float impl_IHtmlPrintDocumentSource::RightMargin() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_RightMargin(&value)); - return value; -} - -template void impl_IHtmlPrintDocumentSource::RightMargin(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RightMargin(value)); -} - -template float impl_IHtmlPrintDocumentSource::BottomMargin() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_BottomMargin(&value)); - return value; -} - -template void impl_IHtmlPrintDocumentSource::BottomMargin(float value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BottomMargin(value)); -} - -template bool impl_IHtmlPrintDocumentSource::EnableHeaderFooter() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_EnableHeaderFooter(&value)); - return value; -} - -template void impl_IHtmlPrintDocumentSource::EnableHeaderFooter(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EnableHeaderFooter(value)); -} - -template bool impl_IHtmlPrintDocumentSource::ShrinkToFit() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShrinkToFit(&value)); - return value; -} - -template void impl_IHtmlPrintDocumentSource::ShrinkToFit(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShrinkToFit(value)); -} - -template float impl_IHtmlPrintDocumentSource::PercentScale() const -{ - float pScalePercent {}; - check_hresult(static_cast(static_cast(*this))->get_PercentScale(&pScalePercent)); - return pScalePercent; -} - -template void impl_IHtmlPrintDocumentSource::PercentScale(float scalePercent) const -{ - check_hresult(static_cast(static_cast(*this))->put_PercentScale(scalePercent)); -} - -template hstring impl_IHtmlPrintDocumentSource::PageRange() const -{ - hstring pstrPageRange; - check_hresult(static_cast(static_cast(*this))->get_PageRange(put(pstrPageRange))); - return pstrPageRange; -} - -template bool impl_IHtmlPrintDocumentSource::TrySetPageRange(hstring_ref strPageRange) const -{ - bool pfSuccess {}; - check_hresult(static_cast(static_cast(*this))->abi_TrySetPageRange(get(strPageRange), &pfSuccess)); - return pfSuccess; -} - -inline event_token WebUIApplication::Activated(const Windows::UI::WebUI::ActivatedEventHandler & handler) -{ - return get_activation_factory().Activated(handler); -} - -inline factory_event_revoker WebUIApplication::Activated(auto_revoke_t, const Windows::UI::WebUI::ActivatedEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::UI::WebUI::IWebUIActivationStatics::remove_Activated, factory.Activated(handler) }; -} - -inline void WebUIApplication::Activated(event_token token) -{ - get_activation_factory().Activated(token); -} - -inline event_token WebUIApplication::Suspending(const Windows::UI::WebUI::SuspendingEventHandler & handler) -{ - return get_activation_factory().Suspending(handler); -} - -inline factory_event_revoker WebUIApplication::Suspending(auto_revoke_t, const Windows::UI::WebUI::SuspendingEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::UI::WebUI::IWebUIActivationStatics::remove_Suspending, factory.Suspending(handler) }; -} - -inline void WebUIApplication::Suspending(event_token token) -{ - get_activation_factory().Suspending(token); -} - -inline event_token WebUIApplication::Resuming(const Windows::UI::WebUI::ResumingEventHandler & handler) -{ - return get_activation_factory().Resuming(handler); -} - -inline factory_event_revoker WebUIApplication::Resuming(auto_revoke_t, const Windows::UI::WebUI::ResumingEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::UI::WebUI::IWebUIActivationStatics::remove_Resuming, factory.Resuming(handler) }; -} - -inline void WebUIApplication::Resuming(event_token token) -{ - get_activation_factory().Resuming(token); -} - -inline event_token WebUIApplication::Navigated(const Windows::UI::WebUI::NavigatedEventHandler & handler) -{ - return get_activation_factory().Navigated(handler); -} - -inline factory_event_revoker WebUIApplication::Navigated(auto_revoke_t, const Windows::UI::WebUI::NavigatedEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::UI::WebUI::IWebUIActivationStatics::remove_Navigated, factory.Navigated(handler) }; -} - -inline void WebUIApplication::Navigated(event_token token) -{ - get_activation_factory().Navigated(token); -} - -inline event_token WebUIApplication::LeavingBackground(const Windows::UI::WebUI::LeavingBackgroundEventHandler & handler) -{ - return get_activation_factory().LeavingBackground(handler); -} - -inline factory_event_revoker WebUIApplication::LeavingBackground(auto_revoke_t, const Windows::UI::WebUI::LeavingBackgroundEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::UI::WebUI::IWebUIActivationStatics2::remove_LeavingBackground, factory.LeavingBackground(handler) }; -} - -inline void WebUIApplication::LeavingBackground(event_token token) -{ - get_activation_factory().LeavingBackground(token); -} - -inline event_token WebUIApplication::EnteredBackground(const Windows::UI::WebUI::EnteredBackgroundEventHandler & handler) -{ - return get_activation_factory().EnteredBackground(handler); -} - -inline factory_event_revoker WebUIApplication::EnteredBackground(auto_revoke_t, const Windows::UI::WebUI::EnteredBackgroundEventHandler & handler) -{ - auto factory = get_activation_factory(); - return { factory, &ABI::Windows::UI::WebUI::IWebUIActivationStatics2::remove_EnteredBackground, factory.EnteredBackground(handler) }; -} - -inline void WebUIApplication::EnteredBackground(event_token token) -{ - get_activation_factory().EnteredBackground(token); -} - -inline void WebUIApplication::EnablePrelaunch(bool value) -{ - get_activation_factory().EnablePrelaunch(value); -} - -inline Windows::UI::WebUI::IWebUIBackgroundTaskInstance WebUIBackgroundTaskInstance::Current() -{ - return get_activation_factory().Current(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.Peers.h b/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.Peers.h deleted file mode 100644 index b5663fe27..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.Peers.h +++ /dev/null @@ -1,4962 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.Xaml.Controls.Primitives.3.h" -#include "internal/Windows.UI.Xaml.Controls.3.h" -#include "internal/Windows.UI.Xaml.Automation.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Xaml.Automation.Provider.3.h" -#include "internal/Windows.UI.Xaml.3.h" -#include "internal/Windows.UI.Xaml.Automation.Peers.3.h" -#include "Windows.UI.Xaml.Automation.h" -#include "Windows.UI.Xaml.Automation.Provider.h" -#include "internal/Windows.UI.Xaml.Automation.Peers.4.h" -#include "internal/Windows.UI.Xaml.Automation.Peers.5.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EventsSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EventsSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_EventsSource(abi_arg_in value) noexcept override - { - try - { - this->shim().EventsSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPattern(Windows::UI::Xaml::Automation::Peers::PatternInterface patternInterface, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetPattern(patternInterface)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RaiseAutomationEvent(Windows::UI::Xaml::Automation::Peers::AutomationEvents eventId) noexcept override - { - try - { - this->shim().RaiseAutomationEvent(eventId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RaisePropertyChangedEvent(abi_arg_in automationProperty, abi_arg_in oldValue, abi_arg_in newValue) noexcept override - { - try - { - this->shim().RaisePropertyChangedEvent(*reinterpret_cast(&automationProperty), *reinterpret_cast(&oldValue), *reinterpret_cast(&newValue)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAcceleratorKey(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAcceleratorKey()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAccessKey(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAccessKey()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAutomationControlType(Windows::UI::Xaml::Automation::Peers::AutomationControlType * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAutomationControlType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAutomationId(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAutomationId()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBoundingRectangle(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetBoundingRectangle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetChildren(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetChildren()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetClassName(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetClassName()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetClickablePoint(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetClickablePoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHelpText(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetHelpText()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemStatus(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetItemStatus()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemType(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetItemType()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLabeledBy(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLabeledBy()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLocalizedControlType(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLocalizedControlType()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetName(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetName()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetOrientation(Windows::UI::Xaml::Automation::Peers::AutomationOrientation * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetOrientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HasKeyboardFocus(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().HasKeyboardFocus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsContentElement(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsContentElement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsControlElement(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsControlElement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEnabled(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsKeyboardFocusable(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsKeyboardFocusable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsOffscreen(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsOffscreen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsPassword(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsPassword()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsRequiredForForm(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsRequiredForForm()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetFocus() noexcept override - { - try - { - this->shim().SetFocus(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetParent(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetParent()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InvalidatePeer() noexcept override - { - try - { - this->shim().InvalidatePeer(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPeerFromPoint(abi_arg_in point, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetPeerFromPoint(*reinterpret_cast(&point))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLiveSetting(Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLiveSetting()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Navigate(Windows::UI::Xaml::Automation::Peers::AutomationNavigationDirection direction, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Navigate(direction)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetElementFromPoint(abi_arg_in pointInWindowCoordinates, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetElementFromPoint(*reinterpret_cast(&pointInWindowCoordinates))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFocusedElement(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetFocusedElement()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowContextMenu() noexcept override - { - try - { - this->shim().ShowContextMenu(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetControlledPeers(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetControlledPeers()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAnnotations(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAnnotations()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetParent(abi_arg_in peer) noexcept override - { - try - { - this->shim().SetParent(*reinterpret_cast(&peer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RaiseTextEditTextChangedEvent(Windows::UI::Xaml::Automation::AutomationTextEditChangeType automationTextEditChangeType, abi_arg_in> changedData) noexcept override - { - try - { - this->shim().RaiseTextEditTextChangedEvent(automationTextEditChangeType, *reinterpret_cast *>(&changedData)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPositionInSet(int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetPositionInSet()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSizeOfSet(int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetSizeOfSet()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLevel(int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RaiseStructureChangedEvent(Windows::UI::Xaml::Automation::Peers::AutomationStructureChangeType structureChangeType, abi_arg_in child) noexcept override - { - try - { - this->shim().RaiseStructureChangedEvent(structureChangeType, *reinterpret_cast(&child)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetLandmarkType(Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLandmarkType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLocalizedLandmarkType(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLocalizedLandmarkType()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsPeripheral(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsPeripheral()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsDataValidForForm(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsDataValidForForm()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFullDescription(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetFullDescription()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::UI::Xaml::Automation::AnnotationType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Type(Windows::UI::Xaml::Automation::AnnotationType value) noexcept override - { - try - { - this->shim().Type(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Peer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Peer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Peer(abi_arg_in value) noexcept override - { - try - { - this->shim().Peer(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(Windows::UI::Xaml::Automation::AnnotationType type, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(type)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithPeerParameter(Windows::UI::Xaml::Automation::AnnotationType type, abi_arg_in peer, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateWithPeerParameter(type, *reinterpret_cast(&peer))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PeerProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PeerProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetPatternCore(Windows::UI::Xaml::Automation::Peers::PatternInterface patternInterface, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetPatternCore(patternInterface)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAcceleratorKeyCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAcceleratorKeyCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAccessKeyCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAccessKeyCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAutomationControlTypeCore(Windows::UI::Xaml::Automation::Peers::AutomationControlType * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAutomationControlTypeCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAutomationIdCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAutomationIdCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBoundingRectangleCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetBoundingRectangleCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetChildrenCore(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetChildrenCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetClassNameCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetClassNameCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetClickablePointCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetClickablePointCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHelpTextCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetHelpTextCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemStatusCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetItemStatusCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemTypeCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetItemTypeCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLabeledByCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLabeledByCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLocalizedControlTypeCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLocalizedControlTypeCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNameCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNameCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetOrientationCore(Windows::UI::Xaml::Automation::Peers::AutomationOrientation * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetOrientationCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_HasKeyboardFocusCore(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().HasKeyboardFocusCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsContentElementCore(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsContentElementCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsControlElementCore(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsControlElementCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsEnabledCore(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsEnabledCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsKeyboardFocusableCore(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsKeyboardFocusableCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsOffscreenCore(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsOffscreenCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsPasswordCore(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsPasswordCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsRequiredForFormCore(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsRequiredForFormCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetFocusCore() noexcept override - { - try - { - this->shim().SetFocusCore(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPeerFromPointCore(abi_arg_in point, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetPeerFromPointCore(*reinterpret_cast(&point))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLiveSettingCore(Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLiveSettingCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowContextMenuCore() noexcept override - { - try - { - this->shim().ShowContextMenuCore(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetControlledPeersCore(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetControlledPeersCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_NavigateCore(Windows::UI::Xaml::Automation::Peers::AutomationNavigationDirection direction, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().NavigateCore(direction)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetElementFromPointCore(abi_arg_in pointInWindowCoordinates, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetElementFromPointCore(*reinterpret_cast(&pointInWindowCoordinates))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFocusedElementCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetFocusedElementCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAnnotationsCore(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAnnotationsCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPositionInSetCore(int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetPositionInSetCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSizeOfSetCore(int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetSizeOfSetCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLevelCore(int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLevelCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetLandmarkTypeCore(Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLandmarkTypeCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLocalizedLandmarkTypeCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLocalizedLandmarkTypeCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsPeripheralCore(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsPeripheralCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsDataValidForFormCore(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsDataValidForFormCore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFullDescriptionCore(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetFullDescriptionCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDescribedByCore(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetDescribedByCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFlowsToCore(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetFlowsToCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFlowsFromCore(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetFlowsFromCore()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_PeerFromProvider(abi_arg_in provider, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().PeerFromProvider(*reinterpret_cast(&provider))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ProviderFromPeer(abi_arg_in peer, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ProviderFromPeer(*reinterpret_cast(&peer))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ListenerExists(Windows::UI::Xaml::Automation::Peers::AutomationEvents eventId, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ListenerExists(eventId)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GenerateRawElementProviderRuntimeId(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GenerateRawElementProviderRuntimeId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithParentAndItem(abi_arg_in item, abi_arg_in parent, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithParentAndItem(*reinterpret_cast(&item), *reinterpret_cast(&parent), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithParentAndItem(abi_arg_in item, abi_arg_in parent, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithParentAndItem(*reinterpret_cast(&item), *reinterpret_cast(&parent), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Owner(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Owner()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromElement(abi_arg_in element, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().FromElement(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreatePeerForElement(abi_arg_in element, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreatePeerForElement(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithParentAndItem(abi_arg_in item, abi_arg_in parent, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithParentAndItem(*reinterpret_cast(&item), *reinterpret_cast(&parent), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Item(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Item()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemsControlAutomationPeer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsControlAutomationPeer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithParentAndItem(abi_arg_in item, abi_arg_in parent, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithParentAndItem(*reinterpret_cast(&item), *reinterpret_cast(&parent), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateItemAutomationPeer(abi_arg_in item, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateItemAutomationPeer(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnCreateItemAutomationPeer(abi_arg_in item, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().OnCreateItemAutomationPeer(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithParentAndItem(abi_arg_in item, abi_arg_in parent, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithParentAndItem(*reinterpret_cast(&item), *reinterpret_cast(&parent), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithParentAndItem(abi_arg_in item, abi_arg_in parent, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithParentAndItem(*reinterpret_cast(&item), *reinterpret_cast(&parent), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithParentAndItem(abi_arg_in item, abi_arg_in parent, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithParentAndItem(*reinterpret_cast(&item), *reinterpret_cast(&parent))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithParentAndItem(abi_arg_in item, abi_arg_in parent, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithParentAndItem(*reinterpret_cast(&item), *reinterpret_cast(&parent), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithOwner(abi_arg_in owner, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithOwner(*reinterpret_cast(&owner), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Xaml::Automation::Peers { - -template Windows::IInspectable impl_IItemAutomationPeer::Item() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Item(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::Peers::ItemsControlAutomationPeer impl_IItemAutomationPeer::ItemsControlAutomationPeer() const -{ - Windows::UI::Xaml::Automation::Peers::ItemsControlAutomationPeer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemsControlAutomationPeer(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::Peers::ItemAutomationPeer impl_IItemAutomationPeerFactory::CreateInstanceWithParentAndItem(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::ItemsControlAutomationPeer & parent, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithParentAndItem(get(item), get(parent), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ButtonBaseAutomationPeer impl_IButtonBaseAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Primitives::ButtonBase & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ButtonBaseAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::CaptureElementAutomationPeer impl_ICaptureElementAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::CaptureElement & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::CaptureElementAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ComboBoxItemAutomationPeer impl_IComboBoxItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ComboBoxItem & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ComboBoxItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::FlipViewItemAutomationPeer impl_IFlipViewItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::FlipViewItem & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::FlipViewItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::GroupItemAutomationPeer impl_IGroupItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::GroupItem & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::GroupItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ImageAutomationPeer impl_IImageAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Image & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ImageAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ItemsControlAutomationPeer impl_IItemsControlAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ItemsControl & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ItemsControlAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ItemAutomationPeer impl_IItemsControlAutomationPeer2::CreateItemAutomationPeer(const Windows::IInspectable & item) const -{ - Windows::UI::Xaml::Automation::Peers::ItemAutomationPeer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateItemAutomationPeer(get(item), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::ItemAutomationPeer impl_IItemsControlAutomationPeerOverrides2::OnCreateItemAutomationPeer(const Windows::IInspectable & item) const -{ - Windows::UI::Xaml::Automation::Peers::ItemAutomationPeer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_OnCreateItemAutomationPeer(get(item), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::ListBoxItemAutomationPeer impl_IListBoxItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ListBoxItem & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ListBoxItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::MediaTransportControlsAutomationPeer impl_IMediaTransportControlsAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::MediaTransportControls & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::MediaTransportControlsAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::PasswordBoxAutomationPeer impl_IPasswordBoxAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::PasswordBox & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::PasswordBoxAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ProgressRingAutomationPeer impl_IProgressRingAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ProgressRing & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ProgressRingAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::RangeBaseAutomationPeer impl_IRangeBaseAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Primitives::RangeBase & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::RangeBaseAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::RichEditBoxAutomationPeer impl_IRichEditBoxAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::RichEditBox & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::RichEditBoxAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::RichTextBlockAutomationPeer impl_IRichTextBlockAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::RichTextBlock & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::RichTextBlockAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::RichTextBlockOverflowAutomationPeer impl_IRichTextBlockOverflowAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::RichTextBlockOverflow & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::RichTextBlockOverflowAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::SelectorItemAutomationPeer impl_ISelectorItemAutomationPeerFactory::CreateInstanceWithParentAndItem(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::SelectorAutomationPeer & parent, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::SelectorItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithParentAndItem(get(item), get(parent), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::SemanticZoomAutomationPeer impl_ISemanticZoomAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::SemanticZoom & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::SemanticZoomAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::SettingsFlyoutAutomationPeer impl_ISettingsFlyoutAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::SettingsFlyout & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::SettingsFlyoutAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::TextBlockAutomationPeer impl_ITextBlockAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::TextBlock & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::TextBlockAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::TextBoxAutomationPeer impl_ITextBoxAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::TextBox & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::TextBoxAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ThumbAutomationPeer impl_IThumbAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Primitives::Thumb & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ThumbAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ToggleSwitchAutomationPeer impl_IToggleSwitchAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ToggleSwitch & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ToggleSwitchAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ButtonAutomationPeer impl_IButtonAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Button & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ButtonAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ComboBoxItemDataAutomationPeer impl_IComboBoxItemDataAutomationPeerFactory::CreateInstanceWithParentAndItem(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::ComboBoxAutomationPeer & parent, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ComboBoxItemDataAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithParentAndItem(get(item), get(parent), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::FlipViewItemDataAutomationPeer impl_IFlipViewItemDataAutomationPeerFactory::CreateInstanceWithParentAndItem(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::FlipViewAutomationPeer & parent, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::FlipViewItemDataAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithParentAndItem(get(item), get(parent), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::HyperlinkButtonAutomationPeer impl_IHyperlinkButtonAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::HyperlinkButton & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::HyperlinkButtonAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ListBoxItemDataAutomationPeer impl_IListBoxItemDataAutomationPeerFactory::CreateInstanceWithParentAndItem(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::ListBoxAutomationPeer & parent, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ListBoxItemDataAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithParentAndItem(get(item), get(parent), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ProgressBarAutomationPeer impl_IProgressBarAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ProgressBar & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ProgressBarAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::RepeatButtonAutomationPeer impl_IRepeatButtonAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Primitives::RepeatButton & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::RepeatButtonAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ScrollBarAutomationPeer impl_IScrollBarAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Primitives::ScrollBar & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ScrollBarAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::SelectorAutomationPeer impl_ISelectorAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Primitives::Selector & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::SelectorAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::SliderAutomationPeer impl_ISliderAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Slider & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::SliderAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ToggleButtonAutomationPeer impl_IToggleButtonAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Primitives::ToggleButton & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ToggleButtonAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::CheckBoxAutomationPeer impl_ICheckBoxAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::CheckBox & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::CheckBoxAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ComboBoxAutomationPeer impl_IComboBoxAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ComboBox & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ComboBoxAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::FlipViewAutomationPeer impl_IFlipViewAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::FlipView & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::FlipViewAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ListBoxAutomationPeer impl_IListBoxAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ListBox & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ListBoxAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::RadioButtonAutomationPeer impl_IRadioButtonAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::RadioButton & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::RadioButtonAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::AppBarAutomationPeer impl_IAppBarAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::AppBar & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::AppBarAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::AutoSuggestBoxAutomationPeer impl_IAutoSuggestBoxAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::AutoSuggestBox & owner) const -{ - Windows::UI::Xaml::Automation::Peers::AutoSuggestBoxAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::DatePickerAutomationPeer impl_IDatePickerAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::DatePicker & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::DatePickerAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::FlyoutPresenterAutomationPeer impl_IFlyoutPresenterAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::FlyoutPresenter & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::FlyoutPresenterAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::GridViewItemAutomationPeer impl_IGridViewItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::GridViewItem & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::GridViewItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::HubAutomationPeer impl_IHubAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Hub & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::HubAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::HubSectionAutomationPeer impl_IHubSectionAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::HubSection & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::HubSectionAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ListViewBaseHeaderItemAutomationPeer impl_IListViewBaseHeaderItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ListViewBaseHeaderItem & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ListViewBaseHeaderItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ListViewItemAutomationPeer impl_IListViewItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ListViewItem & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ListViewItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::MediaElementAutomationPeer impl_IMediaElementAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::MediaElement & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::MediaElementAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::MediaPlayerElementAutomationPeer impl_IMediaPlayerElementAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::MediaPlayerElement & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::MediaPlayerElementAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::MenuFlyoutItemAutomationPeer impl_IMenuFlyoutItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::MenuFlyoutItem & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::MenuFlyoutItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ScrollViewerAutomationPeer impl_IScrollViewerAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ScrollViewer & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ScrollViewerAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::SearchBoxAutomationPeer impl_ISearchBoxAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::SearchBox & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::SearchBoxAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::TimePickerAutomationPeer impl_ITimePickerAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::TimePicker & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::TimePickerAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ToggleMenuFlyoutItemAutomationPeer impl_IToggleMenuFlyoutItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ToggleMenuFlyoutItem & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ToggleMenuFlyoutItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::GridViewHeaderItemAutomationPeer impl_IGridViewHeaderItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::GridViewHeaderItem & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::GridViewHeaderItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::GridViewItemDataAutomationPeer impl_IGridViewItemDataAutomationPeerFactory::CreateInstanceWithParentAndItem(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::GridViewAutomationPeer & parent, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::GridViewItemDataAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithParentAndItem(get(item), get(parent), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ListViewHeaderItemAutomationPeer impl_IListViewHeaderItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ListViewHeaderItem & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ListViewHeaderItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ListViewItemDataAutomationPeer impl_IListViewItemDataAutomationPeerFactory::CreateInstanceWithParentAndItem(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::ListViewBaseAutomationPeer & parent, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ListViewItemDataAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithParentAndItem(get(item), get(parent), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::MenuFlyoutPresenterAutomationPeer impl_IMenuFlyoutPresenterAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::MenuFlyoutPresenter & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::MenuFlyoutPresenterAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::AppBarButtonAutomationPeer impl_IAppBarButtonAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::AppBarButton & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::AppBarButtonAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::AppBarToggleButtonAutomationPeer impl_IAppBarToggleButtonAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::AppBarToggleButton & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::AppBarToggleButtonAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ListViewBaseAutomationPeer impl_IListViewBaseAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ListViewBase & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ListViewBaseAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::GridViewAutomationPeer impl_IGridViewAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::GridView & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::GridViewAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::ListViewAutomationPeer impl_IListViewAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::ListView & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::ListViewAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeer impl_IAutomationPeer::EventsSource() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EventsSource(put(value))); - return value; -} - -template void impl_IAutomationPeer::EventsSource(const Windows::UI::Xaml::Automation::Peers::AutomationPeer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_EventsSource(get(value))); -} - -template Windows::IInspectable impl_IAutomationPeer::GetPattern(Windows::UI::Xaml::Automation::Peers::PatternInterface patternInterface) const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetPattern(patternInterface, put(returnValue))); - return returnValue; -} - -template void impl_IAutomationPeer::RaiseAutomationEvent(Windows::UI::Xaml::Automation::Peers::AutomationEvents eventId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RaiseAutomationEvent(eventId)); -} - -template void impl_IAutomationPeer::RaisePropertyChangedEvent(const Windows::UI::Xaml::Automation::AutomationProperty & automationProperty, const Windows::IInspectable & oldValue, const Windows::IInspectable & newValue) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RaisePropertyChangedEvent(get(automationProperty), get(oldValue), get(newValue))); -} - -template hstring impl_IAutomationPeer::GetAcceleratorKey() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAcceleratorKey(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeer::GetAccessKey() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAccessKey(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationControlType impl_IAutomationPeer::GetAutomationControlType() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationControlType returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAutomationControlType(&returnValue)); - return returnValue; -} - -template hstring impl_IAutomationPeer::GetAutomationId() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAutomationId(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Rect impl_IAutomationPeer::GetBoundingRectangle() const -{ - Windows::Foundation::Rect returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetBoundingRectangle(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Collections::IVector impl_IAutomationPeer::GetChildren() const -{ - Windows::Foundation::Collections::IVector returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetChildren(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeer::GetClassName() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetClassName(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Point impl_IAutomationPeer::GetClickablePoint() const -{ - Windows::Foundation::Point returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetClickablePoint(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeer::GetHelpText() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetHelpText(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeer::GetItemStatus() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetItemStatus(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeer::GetItemType() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetItemType(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeer impl_IAutomationPeer::GetLabeledBy() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetLabeledBy(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeer::GetLocalizedControlType() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetLocalizedControlType(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeer::GetName() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetName(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationOrientation impl_IAutomationPeer::GetOrientation() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationOrientation returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetOrientation(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeer::HasKeyboardFocus() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_HasKeyboardFocus(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeer::IsContentElement() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsContentElement(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeer::IsControlElement() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsControlElement(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeer::IsEnabled() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEnabled(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeer::IsKeyboardFocusable() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsKeyboardFocusable(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeer::IsOffscreen() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsOffscreen(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeer::IsPassword() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsPassword(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeer::IsRequiredForForm() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsRequiredForForm(&returnValue)); - return returnValue; -} - -template void impl_IAutomationPeer::SetFocus() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFocus()); -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeer impl_IAutomationPeer::GetParent() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetParent(put(returnValue))); - return returnValue; -} - -template void impl_IAutomationPeer::InvalidatePeer() const -{ - check_hresult(static_cast(static_cast(*this))->abi_InvalidatePeer()); -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeer impl_IAutomationPeer::GetPeerFromPoint(const Windows::Foundation::Point & point) const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetPeerFromPoint(get(point), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting impl_IAutomationPeer::GetLiveSetting() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLiveSetting(&returnValue)); - return returnValue; -} - -template Windows::IInspectable impl_IAutomationPeerOverrides::GetPatternCore(Windows::UI::Xaml::Automation::Peers::PatternInterface patternInterface) const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetPatternCore(patternInterface, put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeerOverrides::GetAcceleratorKeyCore() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAcceleratorKeyCore(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeerOverrides::GetAccessKeyCore() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAccessKeyCore(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationControlType impl_IAutomationPeerOverrides::GetAutomationControlTypeCore() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationControlType returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAutomationControlTypeCore(&returnValue)); - return returnValue; -} - -template hstring impl_IAutomationPeerOverrides::GetAutomationIdCore() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAutomationIdCore(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Rect impl_IAutomationPeerOverrides::GetBoundingRectangleCore() const -{ - Windows::Foundation::Rect returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetBoundingRectangleCore(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Collections::IVector impl_IAutomationPeerOverrides::GetChildrenCore() const -{ - Windows::Foundation::Collections::IVector returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetChildrenCore(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeerOverrides::GetClassNameCore() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetClassNameCore(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Point impl_IAutomationPeerOverrides::GetClickablePointCore() const -{ - Windows::Foundation::Point returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetClickablePointCore(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeerOverrides::GetHelpTextCore() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetHelpTextCore(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeerOverrides::GetItemStatusCore() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetItemStatusCore(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeerOverrides::GetItemTypeCore() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetItemTypeCore(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeer impl_IAutomationPeerOverrides::GetLabeledByCore() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetLabeledByCore(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeerOverrides::GetLocalizedControlTypeCore() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetLocalizedControlTypeCore(put(returnValue))); - return returnValue; -} - -template hstring impl_IAutomationPeerOverrides::GetNameCore() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetNameCore(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationOrientation impl_IAutomationPeerOverrides::GetOrientationCore() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationOrientation returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetOrientationCore(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeerOverrides::HasKeyboardFocusCore() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_HasKeyboardFocusCore(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeerOverrides::IsContentElementCore() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsContentElementCore(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeerOverrides::IsControlElementCore() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsControlElementCore(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeerOverrides::IsEnabledCore() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsEnabledCore(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeerOverrides::IsKeyboardFocusableCore() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsKeyboardFocusableCore(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeerOverrides::IsOffscreenCore() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsOffscreenCore(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeerOverrides::IsPasswordCore() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsPasswordCore(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeerOverrides::IsRequiredForFormCore() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsRequiredForFormCore(&returnValue)); - return returnValue; -} - -template void impl_IAutomationPeerOverrides::SetFocusCore() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFocusCore()); -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeer impl_IAutomationPeerOverrides::GetPeerFromPointCore(const Windows::Foundation::Point & point) const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetPeerFromPointCore(get(point), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting impl_IAutomationPeerOverrides::GetLiveSettingCore() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLiveSettingCore(&returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeer impl_IAutomationPeerProtected::PeerFromProvider(const Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple & provider) const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_PeerFromProvider(get(provider), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple impl_IAutomationPeerProtected::ProviderFromPeer(const Windows::UI::Xaml::Automation::Peers::AutomationPeer & peer) const -{ - Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ProviderFromPeer(get(peer), put(returnValue))); - return returnValue; -} - -template bool impl_IAutomationPeerStatics::ListenerExists(Windows::UI::Xaml::Automation::Peers::AutomationEvents eventId) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_ListenerExists(eventId, &returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeer impl_IAutomationPeerFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template void impl_IAutomationPeerOverrides2::ShowContextMenuCore() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowContextMenuCore()); -} - -template Windows::Foundation::Collections::IVectorView impl_IAutomationPeerOverrides2::GetControlledPeersCore() const -{ - Windows::Foundation::Collections::IVectorView returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetControlledPeersCore(put(returnValue))); - return returnValue; -} - -template Windows::IInspectable impl_IAutomationPeer3::Navigate(Windows::UI::Xaml::Automation::Peers::AutomationNavigationDirection direction) const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_Navigate(direction, put(returnValue))); - return returnValue; -} - -template Windows::IInspectable impl_IAutomationPeer3::GetElementFromPoint(const Windows::Foundation::Point & pointInWindowCoordinates) const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetElementFromPoint(get(pointInWindowCoordinates), put(returnValue))); - return returnValue; -} - -template Windows::IInspectable impl_IAutomationPeer3::GetFocusedElement() const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetFocusedElement(put(returnValue))); - return returnValue; -} - -template void impl_IAutomationPeer3::ShowContextMenu() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowContextMenu()); -} - -template Windows::Foundation::Collections::IVectorView impl_IAutomationPeer3::GetControlledPeers() const -{ - Windows::Foundation::Collections::IVectorView returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetControlledPeers(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Collections::IVector impl_IAutomationPeer3::GetAnnotations() const -{ - Windows::Foundation::Collections::IVector returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAnnotations(put(returnValue))); - return returnValue; -} - -template void impl_IAutomationPeer3::SetParent(const Windows::UI::Xaml::Automation::Peers::AutomationPeer & peer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetParent(get(peer))); -} - -template void impl_IAutomationPeer3::RaiseTextEditTextChangedEvent(Windows::UI::Xaml::Automation::AutomationTextEditChangeType automationTextEditChangeType, const Windows::Foundation::Collections::IVectorView & changedData) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RaiseTextEditTextChangedEvent(automationTextEditChangeType, get(changedData))); -} - -template int32_t impl_IAutomationPeer3::GetPositionInSet() const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPositionInSet(&returnValue)); - return returnValue; -} - -template int32_t impl_IAutomationPeer3::GetSizeOfSet() const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetSizeOfSet(&returnValue)); - return returnValue; -} - -template int32_t impl_IAutomationPeer3::GetLevel() const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLevel(&returnValue)); - return returnValue; -} - -template void impl_IAutomationPeer3::RaiseStructureChangedEvent(Windows::UI::Xaml::Automation::Peers::AutomationStructureChangeType structureChangeType, const Windows::UI::Xaml::Automation::Peers::AutomationPeer & child) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RaiseStructureChangedEvent(structureChangeType, get(child))); -} - -template Windows::IInspectable impl_IAutomationPeerOverrides3::NavigateCore(Windows::UI::Xaml::Automation::Peers::AutomationNavigationDirection direction) const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_NavigateCore(direction, put(returnValue))); - return returnValue; -} - -template Windows::IInspectable impl_IAutomationPeerOverrides3::GetElementFromPointCore(const Windows::Foundation::Point & pointInWindowCoordinates) const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetElementFromPointCore(get(pointInWindowCoordinates), put(returnValue))); - return returnValue; -} - -template Windows::IInspectable impl_IAutomationPeerOverrides3::GetFocusedElementCore() const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetFocusedElementCore(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Collections::IVector impl_IAutomationPeerOverrides3::GetAnnotationsCore() const -{ - Windows::Foundation::Collections::IVector returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAnnotationsCore(put(returnValue))); - return returnValue; -} - -template int32_t impl_IAutomationPeerOverrides3::GetPositionInSetCore() const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPositionInSetCore(&returnValue)); - return returnValue; -} - -template int32_t impl_IAutomationPeerOverrides3::GetSizeOfSetCore() const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetSizeOfSetCore(&returnValue)); - return returnValue; -} - -template int32_t impl_IAutomationPeerOverrides3::GetLevelCore() const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLevelCore(&returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::RawElementProviderRuntimeId impl_IAutomationPeerStatics3::GenerateRawElementProviderRuntimeId() const -{ - Windows::UI::Xaml::Automation::Peers::RawElementProviderRuntimeId returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GenerateRawElementProviderRuntimeId(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType impl_IAutomationPeer4::GetLandmarkType() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLandmarkType(&returnValue)); - return returnValue; -} - -template hstring impl_IAutomationPeer4::GetLocalizedLandmarkType() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetLocalizedLandmarkType(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType impl_IAutomationPeerOverrides4::GetLandmarkTypeCore() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLandmarkTypeCore(&returnValue)); - return returnValue; -} - -template hstring impl_IAutomationPeerOverrides4::GetLocalizedLandmarkTypeCore() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetLocalizedLandmarkTypeCore(put(returnValue))); - return returnValue; -} - -template bool impl_IAutomationPeer5::IsPeripheral() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsPeripheral(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeer5::IsDataValidForForm() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsDataValidForForm(&returnValue)); - return returnValue; -} - -template hstring impl_IAutomationPeer5::GetFullDescription() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetFullDescription(put(returnValue))); - return returnValue; -} - -template bool impl_IAutomationPeerOverrides5::IsPeripheralCore() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsPeripheralCore(&returnValue)); - return returnValue; -} - -template bool impl_IAutomationPeerOverrides5::IsDataValidForFormCore() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsDataValidForFormCore(&returnValue)); - return returnValue; -} - -template hstring impl_IAutomationPeerOverrides5::GetFullDescriptionCore() const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetFullDescriptionCore(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Collections::IIterable impl_IAutomationPeerOverrides5::GetDescribedByCore() const -{ - Windows::Foundation::Collections::IIterable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetDescribedByCore(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Collections::IIterable impl_IAutomationPeerOverrides5::GetFlowsToCore() const -{ - Windows::Foundation::Collections::IIterable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetFlowsToCore(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Collections::IIterable impl_IAutomationPeerOverrides5::GetFlowsFromCore() const -{ - Windows::Foundation::Collections::IIterable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetFlowsFromCore(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::AnnotationType impl_IAutomationPeerAnnotation::Type() const -{ - Windows::UI::Xaml::Automation::AnnotationType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template void impl_IAutomationPeerAnnotation::Type(Windows::UI::Xaml::Automation::AnnotationType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Type(value)); -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeer impl_IAutomationPeerAnnotation::Peer() const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Peer(put(value))); - return value; -} - -template void impl_IAutomationPeerAnnotation::Peer(const Windows::UI::Xaml::Automation::Peers::AutomationPeer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Peer(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPeerAnnotationStatics::TypeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TypeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPeerAnnotationStatics::PeerProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PeerProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeerAnnotation impl_IAutomationPeerAnnotationFactory::CreateInstance(Windows::UI::Xaml::Automation::AnnotationType type) const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeerAnnotation instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(type, put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeerAnnotation impl_IAutomationPeerAnnotationFactory::CreateWithPeerParameter(Windows::UI::Xaml::Automation::AnnotationType type, const Windows::UI::Xaml::Automation::Peers::AutomationPeer & peer) const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeerAnnotation instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithPeerParameter(type, get(peer), put(instance))); - return instance; -} - -template Windows::UI::Xaml::UIElement impl_IFrameworkElementAutomationPeer::Owner() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Owner(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeer impl_IFrameworkElementAutomationPeerStatics::FromElement(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FromElement(get(element), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationPeer impl_IFrameworkElementAutomationPeerStatics::CreatePeerForElement(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::UI::Xaml::Automation::Peers::AutomationPeer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePeerForElement(get(element), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Peers::FrameworkElementAutomationPeer impl_IFrameworkElementAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::FrameworkElement & owner, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Automation::Peers::FrameworkElementAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::PivotItemAutomationPeer impl_IPivotItemAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::PivotItem & owner) const -{ - Windows::UI::Xaml::Automation::Peers::PivotItemAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::PivotItemDataAutomationPeer impl_IPivotItemDataAutomationPeerFactory::CreateInstanceWithParentAndItem(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::PivotAutomationPeer & parent) const -{ - Windows::UI::Xaml::Automation::Peers::PivotItemDataAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithParentAndItem(get(item), get(parent), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::Peers::PivotAutomationPeer impl_IPivotAutomationPeerFactory::CreateInstanceWithOwner(const Windows::UI::Xaml::Controls::Pivot & owner) const -{ - Windows::UI::Xaml::Automation::Peers::PivotAutomationPeer instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithOwner(get(owner), put(instance))); - return instance; -} - -inline AppBarAutomationPeer::AppBarAutomationPeer(const Windows::UI::Xaml::Controls::AppBar & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline AppBarButtonAutomationPeer::AppBarButtonAutomationPeer(const Windows::UI::Xaml::Controls::AppBarButton & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline AppBarToggleButtonAutomationPeer::AppBarToggleButtonAutomationPeer(const Windows::UI::Xaml::Controls::AppBarToggleButton & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline AutoSuggestBoxAutomationPeer::AutoSuggestBoxAutomationPeer(const Windows::UI::Xaml::Controls::AutoSuggestBox & owner) : - AutoSuggestBoxAutomationPeer(get_activation_factory().CreateInstanceWithOwner(owner)) -{} - -inline bool AutomationPeer::ListenerExists(Windows::UI::Xaml::Automation::Peers::AutomationEvents eventId) -{ - return get_activation_factory().ListenerExists(eventId); -} - -inline Windows::UI::Xaml::Automation::Peers::RawElementProviderRuntimeId AutomationPeer::GenerateRawElementProviderRuntimeId() -{ - return get_activation_factory().GenerateRawElementProviderRuntimeId(); -} - -inline AutomationPeerAnnotation::AutomationPeerAnnotation() : - AutomationPeerAnnotation(activate_instance()) -{} - -inline AutomationPeerAnnotation::AutomationPeerAnnotation(Windows::UI::Xaml::Automation::AnnotationType type) : - AutomationPeerAnnotation(get_activation_factory().CreateInstance(type)) -{} - -inline AutomationPeerAnnotation::AutomationPeerAnnotation(Windows::UI::Xaml::Automation::AnnotationType type, const Windows::UI::Xaml::Automation::Peers::AutomationPeer & peer) : - AutomationPeerAnnotation(get_activation_factory().CreateWithPeerParameter(type, peer)) -{} - -inline Windows::UI::Xaml::DependencyProperty AutomationPeerAnnotation::TypeProperty() -{ - return get_activation_factory().TypeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationPeerAnnotation::PeerProperty() -{ - return get_activation_factory().PeerProperty(); -} - -inline ButtonAutomationPeer::ButtonAutomationPeer(const Windows::UI::Xaml::Controls::Button & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline CaptureElementAutomationPeer::CaptureElementAutomationPeer(const Windows::UI::Xaml::Controls::CaptureElement & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline CheckBoxAutomationPeer::CheckBoxAutomationPeer(const Windows::UI::Xaml::Controls::CheckBox & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ComboBoxAutomationPeer::ComboBoxAutomationPeer(const Windows::UI::Xaml::Controls::ComboBox & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ComboBoxItemAutomationPeer::ComboBoxItemAutomationPeer(const Windows::UI::Xaml::Controls::ComboBoxItem & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ComboBoxItemDataAutomationPeer::ComboBoxItemDataAutomationPeer(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::ComboBoxAutomationPeer & parent) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithParentAndItem(item, parent, outer, inner)); -} - -inline DatePickerAutomationPeer::DatePickerAutomationPeer(const Windows::UI::Xaml::Controls::DatePicker & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline FlipViewAutomationPeer::FlipViewAutomationPeer(const Windows::UI::Xaml::Controls::FlipView & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline FlipViewItemAutomationPeer::FlipViewItemAutomationPeer(const Windows::UI::Xaml::Controls::FlipViewItem & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline FlipViewItemDataAutomationPeer::FlipViewItemDataAutomationPeer(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::FlipViewAutomationPeer & parent) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithParentAndItem(item, parent, outer, inner)); -} - -inline FlyoutPresenterAutomationPeer::FlyoutPresenterAutomationPeer(const Windows::UI::Xaml::Controls::FlyoutPresenter & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline FrameworkElementAutomationPeer::FrameworkElementAutomationPeer(const Windows::UI::Xaml::FrameworkElement & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline Windows::UI::Xaml::Automation::Peers::AutomationPeer FrameworkElementAutomationPeer::FromElement(const Windows::UI::Xaml::UIElement & element) -{ - return get_activation_factory().FromElement(element); -} - -inline Windows::UI::Xaml::Automation::Peers::AutomationPeer FrameworkElementAutomationPeer::CreatePeerForElement(const Windows::UI::Xaml::UIElement & element) -{ - return get_activation_factory().CreatePeerForElement(element); -} - -inline GridViewAutomationPeer::GridViewAutomationPeer(const Windows::UI::Xaml::Controls::GridView & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline GridViewHeaderItemAutomationPeer::GridViewHeaderItemAutomationPeer(const Windows::UI::Xaml::Controls::GridViewHeaderItem & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline GridViewItemAutomationPeer::GridViewItemAutomationPeer(const Windows::UI::Xaml::Controls::GridViewItem & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline GridViewItemDataAutomationPeer::GridViewItemDataAutomationPeer(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::GridViewAutomationPeer & parent) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithParentAndItem(item, parent, outer, inner)); -} - -inline GroupItemAutomationPeer::GroupItemAutomationPeer(const Windows::UI::Xaml::Controls::GroupItem & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline HubAutomationPeer::HubAutomationPeer(const Windows::UI::Xaml::Controls::Hub & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline HubSectionAutomationPeer::HubSectionAutomationPeer(const Windows::UI::Xaml::Controls::HubSection & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline HyperlinkButtonAutomationPeer::HyperlinkButtonAutomationPeer(const Windows::UI::Xaml::Controls::HyperlinkButton & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ImageAutomationPeer::ImageAutomationPeer(const Windows::UI::Xaml::Controls::Image & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ItemAutomationPeer::ItemAutomationPeer(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::ItemsControlAutomationPeer & parent) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithParentAndItem(item, parent, outer, inner)); -} - -inline ItemsControlAutomationPeer::ItemsControlAutomationPeer(const Windows::UI::Xaml::Controls::ItemsControl & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ListBoxAutomationPeer::ListBoxAutomationPeer(const Windows::UI::Xaml::Controls::ListBox & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ListBoxItemAutomationPeer::ListBoxItemAutomationPeer(const Windows::UI::Xaml::Controls::ListBoxItem & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ListBoxItemDataAutomationPeer::ListBoxItemDataAutomationPeer(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::ListBoxAutomationPeer & parent) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithParentAndItem(item, parent, outer, inner)); -} - -inline ListViewAutomationPeer::ListViewAutomationPeer(const Windows::UI::Xaml::Controls::ListView & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ListViewBaseAutomationPeer::ListViewBaseAutomationPeer(const Windows::UI::Xaml::Controls::ListViewBase & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ListViewHeaderItemAutomationPeer::ListViewHeaderItemAutomationPeer(const Windows::UI::Xaml::Controls::ListViewHeaderItem & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ListViewItemAutomationPeer::ListViewItemAutomationPeer(const Windows::UI::Xaml::Controls::ListViewItem & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ListViewItemDataAutomationPeer::ListViewItemDataAutomationPeer(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::ListViewBaseAutomationPeer & parent) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithParentAndItem(item, parent, outer, inner)); -} - -inline MediaElementAutomationPeer::MediaElementAutomationPeer(const Windows::UI::Xaml::Controls::MediaElement & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline MediaPlayerElementAutomationPeer::MediaPlayerElementAutomationPeer(const Windows::UI::Xaml::Controls::MediaPlayerElement & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline MediaTransportControlsAutomationPeer::MediaTransportControlsAutomationPeer(const Windows::UI::Xaml::Controls::MediaTransportControls & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline MenuFlyoutItemAutomationPeer::MenuFlyoutItemAutomationPeer(const Windows::UI::Xaml::Controls::MenuFlyoutItem & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline MenuFlyoutPresenterAutomationPeer::MenuFlyoutPresenterAutomationPeer(const Windows::UI::Xaml::Controls::MenuFlyoutPresenter & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline PasswordBoxAutomationPeer::PasswordBoxAutomationPeer(const Windows::UI::Xaml::Controls::PasswordBox & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline PivotAutomationPeer::PivotAutomationPeer(const Windows::UI::Xaml::Controls::Pivot & owner) : - PivotAutomationPeer(get_activation_factory().CreateInstanceWithOwner(owner)) -{} - -inline PivotItemAutomationPeer::PivotItemAutomationPeer(const Windows::UI::Xaml::Controls::PivotItem & owner) : - PivotItemAutomationPeer(get_activation_factory().CreateInstanceWithOwner(owner)) -{} - -inline PivotItemDataAutomationPeer::PivotItemDataAutomationPeer(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::PivotAutomationPeer & parent) : - PivotItemDataAutomationPeer(get_activation_factory().CreateInstanceWithParentAndItem(item, parent)) -{} - -inline ProgressBarAutomationPeer::ProgressBarAutomationPeer(const Windows::UI::Xaml::Controls::ProgressBar & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ProgressRingAutomationPeer::ProgressRingAutomationPeer(const Windows::UI::Xaml::Controls::ProgressRing & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline RadioButtonAutomationPeer::RadioButtonAutomationPeer(const Windows::UI::Xaml::Controls::RadioButton & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline RangeBaseAutomationPeer::RangeBaseAutomationPeer(const Windows::UI::Xaml::Controls::Primitives::RangeBase & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline RepeatButtonAutomationPeer::RepeatButtonAutomationPeer(const Windows::UI::Xaml::Controls::Primitives::RepeatButton & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline RichEditBoxAutomationPeer::RichEditBoxAutomationPeer(const Windows::UI::Xaml::Controls::RichEditBox & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline RichTextBlockAutomationPeer::RichTextBlockAutomationPeer(const Windows::UI::Xaml::Controls::RichTextBlock & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline RichTextBlockOverflowAutomationPeer::RichTextBlockOverflowAutomationPeer(const Windows::UI::Xaml::Controls::RichTextBlockOverflow & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ScrollBarAutomationPeer::ScrollBarAutomationPeer(const Windows::UI::Xaml::Controls::Primitives::ScrollBar & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ScrollViewerAutomationPeer::ScrollViewerAutomationPeer(const Windows::UI::Xaml::Controls::ScrollViewer & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline SearchBoxAutomationPeer::SearchBoxAutomationPeer(const Windows::UI::Xaml::Controls::SearchBox & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline SelectorAutomationPeer::SelectorAutomationPeer(const Windows::UI::Xaml::Controls::Primitives::Selector & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline SelectorItemAutomationPeer::SelectorItemAutomationPeer(const Windows::IInspectable & item, const Windows::UI::Xaml::Automation::Peers::SelectorAutomationPeer & parent) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithParentAndItem(item, parent, outer, inner)); -} - -inline SemanticZoomAutomationPeer::SemanticZoomAutomationPeer(const Windows::UI::Xaml::Controls::SemanticZoom & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline SettingsFlyoutAutomationPeer::SettingsFlyoutAutomationPeer(const Windows::UI::Xaml::Controls::SettingsFlyout & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline SliderAutomationPeer::SliderAutomationPeer(const Windows::UI::Xaml::Controls::Slider & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline TextBlockAutomationPeer::TextBlockAutomationPeer(const Windows::UI::Xaml::Controls::TextBlock & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline TextBoxAutomationPeer::TextBoxAutomationPeer(const Windows::UI::Xaml::Controls::TextBox & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ThumbAutomationPeer::ThumbAutomationPeer(const Windows::UI::Xaml::Controls::Primitives::Thumb & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline TimePickerAutomationPeer::TimePickerAutomationPeer(const Windows::UI::Xaml::Controls::TimePicker & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ToggleButtonAutomationPeer::ToggleButtonAutomationPeer(const Windows::UI::Xaml::Controls::Primitives::ToggleButton & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ToggleMenuFlyoutItemAutomationPeer::ToggleMenuFlyoutItemAutomationPeer(const Windows::UI::Xaml::Controls::ToggleMenuFlyoutItem & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -inline ToggleSwitchAutomationPeer::ToggleSwitchAutomationPeer(const Windows::UI::Xaml::Controls::ToggleSwitch & owner) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithOwner(owner, outer, inner)); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.Provider.h b/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.Provider.h deleted file mode 100644 index 0ea5e0254..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.Provider.h +++ /dev/null @@ -1,2809 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.Xaml.Automation.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.UI.Xaml.Automation.Text.3.h" -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Xaml.Automation.Peers.3.h" -#include "internal/Windows.UI.Xaml.Automation.Provider.3.h" -#include "Windows.UI.Xaml.Automation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AnnotationTypeId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AnnotationTypeId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AnnotationTypeName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AnnotationTypeName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Author(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Author()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateTime()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Target(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Target()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_NavigateCustom(Windows::UI::Xaml::Automation::Peers::AutomationNavigationDirection direction, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().NavigateCustom(direction)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DockPosition(Windows::UI::Xaml::Automation::DockPosition * value) noexcept override - { - try - { - *value = detach(this->shim().DockPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDockPosition(Windows::UI::Xaml::Automation::DockPosition dockPosition) noexcept override - { - try - { - this->shim().SetDockPosition(dockPosition); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsGrabbed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGrabbed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DropEffect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DropEffect()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DropEffects(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().DropEffects()); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetGrabbedItems(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetGrabbedItems()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DropEffect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DropEffect()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DropEffects(uint32_t * __valueSize, abi_arg_out * value) noexcept override - { - try - { - std::tie(*__valueSize, *value) = detach(this->shim().DropEffects()); - return S_OK; - } - catch (...) - { - *__valueSize = 0; - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExpandCollapseState(Windows::UI::Xaml::Automation::ExpandCollapseState * value) noexcept override - { - try - { - *value = detach(this->shim().ExpandCollapseState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Collapse() noexcept override - { - try - { - this->shim().Collapse(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Expand() noexcept override - { - try - { - this->shim().Expand(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Column(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Column()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColumnSpan(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ColumnSpan()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContainingGrid(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContainingGrid()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Row(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Row()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RowSpan(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RowSpan()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ColumnCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ColumnCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RowCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().RowCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItem(int32_t row, int32_t column, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetItem(row, column)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Invoke() noexcept override - { - try - { - this->shim().Invoke(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindItemByProperty(abi_arg_in startAfter, abi_arg_in automationProperty, abi_arg_in value, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().FindItemByProperty(*reinterpret_cast(&startAfter), *reinterpret_cast(&automationProperty), *reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentView(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentView()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSupportedViews(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetSupportedViews()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetViewName(int32_t viewId, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetViewName(viewId)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetCurrentView(int32_t viewId) noexcept override - { - try - { - this->shim().SetCurrentView(viewId); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetUnderlyingObjectModel(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetUnderlyingObjectModel()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsReadOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LargeChange(double * value) noexcept override - { - try - { - *value = detach(this->shim().LargeChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Maximum(double * value) noexcept override - { - try - { - *value = detach(this->shim().Maximum()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Minimum(double * value) noexcept override - { - try - { - *value = detach(this->shim().Minimum()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmallChange(double * value) noexcept override - { - try - { - *value = detach(this->shim().SmallChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(double * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetValue(double value) noexcept override - { - try - { - this->shim().SetValue(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ScrollIntoView() noexcept override - { - try - { - this->shim().ScrollIntoView(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HorizontallyScrollable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontallyScrollable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalScrollPercent(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalScrollPercent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalViewSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalViewSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticallyScrollable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().VerticallyScrollable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalScrollPercent(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalScrollPercent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalViewSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalViewSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Scroll(Windows::UI::Xaml::Automation::ScrollAmount horizontalAmount, Windows::UI::Xaml::Automation::ScrollAmount verticalAmount) noexcept override - { - try - { - this->shim().Scroll(horizontalAmount, verticalAmount); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetScrollPercent(double horizontalPercent, double verticalPercent) noexcept override - { - try - { - this->shim().SetScrollPercent(horizontalPercent, verticalPercent); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSelected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSelected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionContainer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionContainer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddToSelection() noexcept override - { - try - { - this->shim().AddToSelection(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveFromSelection() noexcept override - { - try - { - this->shim().RemoveFromSelection(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Select() noexcept override - { - try - { - this->shim().Select(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanSelectMultiple(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanSelectMultiple()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSelectionRequired(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSelectionRequired()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSelection(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetSelection()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Formula(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Formula()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAnnotationObjects(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetAnnotationObjects()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAnnotationTypes(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetAnnotationTypes()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetItemByName(abi_arg_in name, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetItemByName(*reinterpret_cast(&name))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExtendedProperties(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FillColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FillColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FillPatternColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FillPatternColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FillPatternStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FillPatternStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Shape(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Shape()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StyleId(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StyleId()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StyleName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StyleName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Cancel() noexcept override - { - try - { - this->shim().Cancel(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartListening(Windows::UI::Xaml::Automation::SynchronizedInputType inputType) noexcept override - { - try - { - this->shim().StartListening(inputType); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetColumnHeaderItems(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetColumnHeaderItems()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRowHeaderItems(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetRowHeaderItems()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RowOrColumnMajor(Windows::UI::Xaml::Automation::RowOrColumnMajor * value) noexcept override - { - try - { - *value = detach(this->shim().RowOrColumnMajor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetColumnHeaders(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetColumnHeaders()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRowHeaders(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetRowHeaders()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextContainer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextContainer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextRange(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextRange()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetActiveComposition(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetActiveComposition()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetConversionTarget(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetConversionTarget()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DocumentRange(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DocumentRange()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedTextSelection(Windows::UI::Xaml::Automation::SupportedTextSelection * value) noexcept override - { - try - { - *value = detach(this->shim().SupportedTextSelection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSelection(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetSelection()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVisibleRanges(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetVisibleRanges()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RangeFromChild(abi_arg_in childElement, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().RangeFromChild(*reinterpret_cast(&childElement))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RangeFromPoint(abi_arg_in screenLocation, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().RangeFromPoint(*reinterpret_cast(&screenLocation))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_RangeFromAnnotation(abi_arg_in annotationElement, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().RangeFromAnnotation(*reinterpret_cast(&annotationElement))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetCaretRange(bool * isActive, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetCaretRange(*isActive)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Clone(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Clone()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Compare(abi_arg_in textRangeProvider, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Compare(*reinterpret_cast(&textRangeProvider))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CompareEndpoints(Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint endpoint, abi_arg_in textRangeProvider, Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint targetEndpoint, int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CompareEndpoints(endpoint, *reinterpret_cast(&textRangeProvider), targetEndpoint)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ExpandToEnclosingUnit(Windows::UI::Xaml::Automation::Text::TextUnit unit) noexcept override - { - try - { - this->shim().ExpandToEnclosingUnit(unit); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindAttribute(int32_t attributeId, abi_arg_in value, bool backward, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().FindAttribute(attributeId, *reinterpret_cast(&value), backward)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindText(abi_arg_in text, bool backward, bool ignoreCase, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().FindText(*reinterpret_cast(&text), backward, ignoreCase)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAttributeValue(int32_t attributeId, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAttributeValue(attributeId)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBoundingRectangles(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - this->shim().GetBoundingRectangles(detach(__returnValueSize, returnValue)); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetEnclosingElement(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetEnclosingElement()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetText(int32_t maxLength, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetText(maxLength)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Move(Windows::UI::Xaml::Automation::Text::TextUnit unit, int32_t count, int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Move(unit, count)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveEndpointByUnit(Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint endpoint, Windows::UI::Xaml::Automation::Text::TextUnit unit, int32_t count, int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().MoveEndpointByUnit(endpoint, unit, count)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MoveEndpointByRange(Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint endpoint, abi_arg_in textRangeProvider, Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint targetEndpoint) noexcept override - { - try - { - this->shim().MoveEndpointByRange(endpoint, *reinterpret_cast(&textRangeProvider), targetEndpoint); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Select() noexcept override - { - try - { - this->shim().Select(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddToSelection() noexcept override - { - try - { - this->shim().AddToSelection(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveFromSelection() noexcept override - { - try - { - this->shim().RemoveFromSelection(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ScrollIntoView(bool alignToTop) noexcept override - { - try - { - this->shim().ScrollIntoView(alignToTop); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetChildren(uint32_t * __returnValueSize, abi_arg_out * returnValue) noexcept override - { - try - { - std::tie(*__returnValueSize, *returnValue) = detach(this->shim().GetChildren()); - return S_OK; - } - catch (...) - { - *__returnValueSize = 0; - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowContextMenu() noexcept override - { - try - { - this->shim().ShowContextMenu(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ToggleState(Windows::UI::Xaml::Automation::ToggleState * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Toggle() noexcept override - { - try - { - this->shim().Toggle(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanMove(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanMove()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanResize(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanResize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanRotate(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanRotate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Move(double x, double y) noexcept override - { - try - { - this->shim().Move(x, y); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Resize(double width, double height) noexcept override - { - try - { - this->shim().Resize(width, height); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Rotate(double degrees) noexcept override - { - try - { - this->shim().Rotate(degrees); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanZoom(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanZoom()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomLevel(double * value) noexcept override - { - try - { - *value = detach(this->shim().ZoomLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxZoom(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxZoom()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinZoom(double * value) noexcept override - { - try - { - *value = detach(this->shim().MinZoom()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Zoom(double zoom) noexcept override - { - try - { - this->shim().Zoom(zoom); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ZoomByUnit(Windows::UI::Xaml::Automation::ZoomUnit zoomUnit) noexcept override - { - try - { - this->shim().ZoomByUnit(zoomUnit); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsReadOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetValue(abi_arg_in value) noexcept override - { - try - { - this->shim().SetValue(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Realize() noexcept override - { - try - { - this->shim().Realize(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsModal(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsModal()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTopmost(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTopmost()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Maximizable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Maximizable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Minimizable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Minimizable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InteractionState(Windows::UI::Xaml::Automation::WindowInteractionState * value) noexcept override - { - try - { - *value = detach(this->shim().InteractionState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VisualState(Windows::UI::Xaml::Automation::WindowVisualState * value) noexcept override - { - try - { - *value = detach(this->shim().VisualState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Close() noexcept override - { - try - { - this->shim().Close(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetVisualState(Windows::UI::Xaml::Automation::WindowVisualState state) noexcept override - { - try - { - this->shim().SetVisualState(state); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_WaitForInputIdle(int32_t milliseconds, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().WaitForInputIdle(milliseconds)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Xaml::Automation::Provider { - -template int32_t impl_IAnnotationProvider::AnnotationTypeId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AnnotationTypeId(&value)); - return value; -} - -template hstring impl_IAnnotationProvider::AnnotationTypeName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_AnnotationTypeName(put(value))); - return value; -} - -template hstring impl_IAnnotationProvider::Author() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Author(put(value))); - return value; -} - -template hstring impl_IAnnotationProvider::DateTime() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DateTime(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple impl_IAnnotationProvider::Target() const -{ - Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Target(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::DockPosition impl_IDockProvider::DockPosition() const -{ - Windows::UI::Xaml::Automation::DockPosition value {}; - check_hresult(static_cast(static_cast(*this))->get_DockPosition(&value)); - return value; -} - -template void impl_IDockProvider::SetDockPosition(Windows::UI::Xaml::Automation::DockPosition dockPosition) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDockPosition(dockPosition)); -} - -template bool impl_IDragProvider::IsGrabbed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsGrabbed(&value)); - return value; -} - -template hstring impl_IDragProvider::DropEffect() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DropEffect(put(value))); - return value; -} - -template com_array impl_IDragProvider::DropEffects() const -{ - com_array value; - check_hresult(static_cast(static_cast(*this))->get_DropEffects(put_size(value), put(value))); - return value; -} - -template com_array impl_IDragProvider::GetGrabbedItems() const -{ - com_array returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetGrabbedItems(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template hstring impl_IDropTargetProvider::DropEffect() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DropEffect(put(value))); - return value; -} - -template com_array impl_IDropTargetProvider::DropEffects() const -{ - com_array value; - check_hresult(static_cast(static_cast(*this))->get_DropEffects(put_size(value), put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::ExpandCollapseState impl_IExpandCollapseProvider::ExpandCollapseState() const -{ - Windows::UI::Xaml::Automation::ExpandCollapseState value {}; - check_hresult(static_cast(static_cast(*this))->get_ExpandCollapseState(&value)); - return value; -} - -template void impl_IExpandCollapseProvider::Collapse() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Collapse()); -} - -template void impl_IExpandCollapseProvider::Expand() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Expand()); -} - -template int32_t impl_IGridItemProvider::Column() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Column(&value)); - return value; -} - -template int32_t impl_IGridItemProvider::ColumnSpan() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ColumnSpan(&value)); - return value; -} - -template Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple impl_IGridItemProvider::ContainingGrid() const -{ - Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContainingGrid(put(value))); - return value; -} - -template int32_t impl_IGridItemProvider::Row() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Row(&value)); - return value; -} - -template int32_t impl_IGridItemProvider::RowSpan() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RowSpan(&value)); - return value; -} - -template int32_t impl_IGridProvider::ColumnCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ColumnCount(&value)); - return value; -} - -template int32_t impl_IGridProvider::RowCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_RowCount(&value)); - return value; -} - -template Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple impl_IGridProvider::GetItem(int32_t row, int32_t column) const -{ - Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetItem(row, column, put(returnValue))); - return returnValue; -} - -template void impl_IInvokeProvider::Invoke() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Invoke()); -} - -template Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple impl_IItemContainerProvider::FindItemByProperty(const Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple & startAfter, const Windows::UI::Xaml::Automation::AutomationProperty & automationProperty, const Windows::IInspectable & value) const -{ - Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_FindItemByProperty(get(startAfter), get(automationProperty), get(value), put(returnValue))); - return returnValue; -} - -template int32_t impl_IMultipleViewProvider::CurrentView() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentView(&value)); - return value; -} - -template com_array impl_IMultipleViewProvider::GetSupportedViews() const -{ - com_array returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetSupportedViews(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template hstring impl_IMultipleViewProvider::GetViewName(int32_t viewId) const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetViewName(viewId, put(returnValue))); - return returnValue; -} - -template void impl_IMultipleViewProvider::SetCurrentView(int32_t viewId) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetCurrentView(viewId)); -} - -template Windows::IInspectable impl_IObjectModelProvider::GetUnderlyingObjectModel() const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetUnderlyingObjectModel(put(returnValue))); - return returnValue; -} - -template bool impl_IRangeValueProvider::IsReadOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnly(&value)); - return value; -} - -template double impl_IRangeValueProvider::LargeChange() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_LargeChange(&value)); - return value; -} - -template double impl_IRangeValueProvider::Maximum() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Maximum(&value)); - return value; -} - -template double impl_IRangeValueProvider::Minimum() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Minimum(&value)); - return value; -} - -template double impl_IRangeValueProvider::SmallChange() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_SmallChange(&value)); - return value; -} - -template double impl_IRangeValueProvider::Value() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template void impl_IRangeValueProvider::SetValue(double value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetValue(value)); -} - -template void impl_IScrollItemProvider::ScrollIntoView() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ScrollIntoView()); -} - -template bool impl_IScrollProvider::HorizontallyScrollable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontallyScrollable(&value)); - return value; -} - -template double impl_IScrollProvider::HorizontalScrollPercent() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalScrollPercent(&value)); - return value; -} - -template double impl_IScrollProvider::HorizontalViewSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalViewSize(&value)); - return value; -} - -template bool impl_IScrollProvider::VerticallyScrollable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticallyScrollable(&value)); - return value; -} - -template double impl_IScrollProvider::VerticalScrollPercent() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalScrollPercent(&value)); - return value; -} - -template double impl_IScrollProvider::VerticalViewSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalViewSize(&value)); - return value; -} - -template void impl_IScrollProvider::Scroll(Windows::UI::Xaml::Automation::ScrollAmount horizontalAmount, Windows::UI::Xaml::Automation::ScrollAmount verticalAmount) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Scroll(horizontalAmount, verticalAmount)); -} - -template void impl_IScrollProvider::SetScrollPercent(double horizontalPercent, double verticalPercent) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetScrollPercent(horizontalPercent, verticalPercent)); -} - -template bool impl_ISelectionItemProvider::IsSelected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSelected(&value)); - return value; -} - -template Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple impl_ISelectionItemProvider::SelectionContainer() const -{ - Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionContainer(put(value))); - return value; -} - -template void impl_ISelectionItemProvider::AddToSelection() const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddToSelection()); -} - -template void impl_ISelectionItemProvider::RemoveFromSelection() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveFromSelection()); -} - -template void impl_ISelectionItemProvider::Select() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Select()); -} - -template bool impl_ISelectionProvider::CanSelectMultiple() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanSelectMultiple(&value)); - return value; -} - -template bool impl_ISelectionProvider::IsSelectionRequired() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSelectionRequired(&value)); - return value; -} - -template com_array impl_ISelectionProvider::GetSelection() const -{ - com_array returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetSelection(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template hstring impl_ISpreadsheetItemProvider::Formula() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Formula(put(value))); - return value; -} - -template com_array impl_ISpreadsheetItemProvider::GetAnnotationObjects() const -{ - com_array returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAnnotationObjects(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template com_array impl_ISpreadsheetItemProvider::GetAnnotationTypes() const -{ - com_array returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAnnotationTypes(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple impl_ISpreadsheetProvider::GetItemByName(hstring_ref name) const -{ - Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetItemByName(get(name), put(returnValue))); - return returnValue; -} - -template hstring impl_IStylesProvider::ExtendedProperties() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ExtendedProperties(put(value))); - return value; -} - -template Windows::UI::Color impl_IStylesProvider::FillColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_FillColor(put(value))); - return value; -} - -template Windows::UI::Color impl_IStylesProvider::FillPatternColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_FillPatternColor(put(value))); - return value; -} - -template hstring impl_IStylesProvider::FillPatternStyle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_FillPatternStyle(put(value))); - return value; -} - -template hstring impl_IStylesProvider::Shape() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Shape(put(value))); - return value; -} - -template int32_t impl_IStylesProvider::StyleId() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StyleId(&value)); - return value; -} - -template hstring impl_IStylesProvider::StyleName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_StyleName(put(value))); - return value; -} - -template void impl_ISynchronizedInputProvider::Cancel() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Cancel()); -} - -template void impl_ISynchronizedInputProvider::StartListening(Windows::UI::Xaml::Automation::SynchronizedInputType inputType) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartListening(inputType)); -} - -template com_array impl_ITableItemProvider::GetColumnHeaderItems() const -{ - com_array returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetColumnHeaderItems(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template com_array impl_ITableItemProvider::GetRowHeaderItems() const -{ - com_array returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetRowHeaderItems(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::RowOrColumnMajor impl_ITableProvider::RowOrColumnMajor() const -{ - Windows::UI::Xaml::Automation::RowOrColumnMajor value {}; - check_hresult(static_cast(static_cast(*this))->get_RowOrColumnMajor(&value)); - return value; -} - -template com_array impl_ITableProvider::GetColumnHeaders() const -{ - com_array returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetColumnHeaders(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template com_array impl_ITableProvider::GetRowHeaders() const -{ - com_array returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetRowHeaders(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple impl_ITextChildProvider::TextContainer() const -{ - Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextContainer(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::Provider::ITextRangeProvider impl_ITextChildProvider::TextRange() const -{ - Windows::UI::Xaml::Automation::Provider::ITextRangeProvider value; - check_hresult(static_cast(static_cast(*this))->get_TextRange(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::Provider::ITextRangeProvider impl_ITextRangeProvider::Clone() const -{ - Windows::UI::Xaml::Automation::Provider::ITextRangeProvider returnValue; - check_hresult(static_cast(static_cast(*this))->abi_Clone(put(returnValue))); - return returnValue; -} - -template bool impl_ITextRangeProvider::Compare(const Windows::UI::Xaml::Automation::Provider::ITextRangeProvider & textRangeProvider) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_Compare(get(textRangeProvider), &returnValue)); - return returnValue; -} - -template int32_t impl_ITextRangeProvider::CompareEndpoints(Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint endpoint, const Windows::UI::Xaml::Automation::Provider::ITextRangeProvider & textRangeProvider, Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint targetEndpoint) const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_CompareEndpoints(endpoint, get(textRangeProvider), targetEndpoint, &returnValue)); - return returnValue; -} - -template void impl_ITextRangeProvider::ExpandToEnclosingUnit(Windows::UI::Xaml::Automation::Text::TextUnit unit) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ExpandToEnclosingUnit(unit)); -} - -template Windows::UI::Xaml::Automation::Provider::ITextRangeProvider impl_ITextRangeProvider::FindAttribute(int32_t attributeId, const Windows::IInspectable & value, bool backward) const -{ - Windows::UI::Xaml::Automation::Provider::ITextRangeProvider returnValue; - check_hresult(static_cast(static_cast(*this))->abi_FindAttribute(attributeId, get(value), backward, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Provider::ITextRangeProvider impl_ITextRangeProvider::FindText(hstring_ref text, bool backward, bool ignoreCase) const -{ - Windows::UI::Xaml::Automation::Provider::ITextRangeProvider returnValue; - check_hresult(static_cast(static_cast(*this))->abi_FindText(get(text), backward, ignoreCase, put(returnValue))); - return returnValue; -} - -template Windows::IInspectable impl_ITextRangeProvider::GetAttributeValue(int32_t attributeId) const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAttributeValue(attributeId, put(returnValue))); - return returnValue; -} - -template void impl_ITextRangeProvider::GetBoundingRectangles(com_array & returnValue) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetBoundingRectangles(put_size(returnValue), put(returnValue))); -} - -template Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple impl_ITextRangeProvider::GetEnclosingElement() const -{ - Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetEnclosingElement(put(returnValue))); - return returnValue; -} - -template hstring impl_ITextRangeProvider::GetText(int32_t maxLength) const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetText(maxLength, put(returnValue))); - return returnValue; -} - -template int32_t impl_ITextRangeProvider::Move(Windows::UI::Xaml::Automation::Text::TextUnit unit, int32_t count) const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_Move(unit, count, &returnValue)); - return returnValue; -} - -template int32_t impl_ITextRangeProvider::MoveEndpointByUnit(Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint endpoint, Windows::UI::Xaml::Automation::Text::TextUnit unit, int32_t count) const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_MoveEndpointByUnit(endpoint, unit, count, &returnValue)); - return returnValue; -} - -template void impl_ITextRangeProvider::MoveEndpointByRange(Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint endpoint, const Windows::UI::Xaml::Automation::Provider::ITextRangeProvider & textRangeProvider, Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint targetEndpoint) const -{ - check_hresult(static_cast(static_cast(*this))->abi_MoveEndpointByRange(endpoint, get(textRangeProvider), targetEndpoint)); -} - -template void impl_ITextRangeProvider::Select() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Select()); -} - -template void impl_ITextRangeProvider::AddToSelection() const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddToSelection()); -} - -template void impl_ITextRangeProvider::RemoveFromSelection() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveFromSelection()); -} - -template void impl_ITextRangeProvider::ScrollIntoView(bool alignToTop) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ScrollIntoView(alignToTop)); -} - -template com_array impl_ITextRangeProvider::GetChildren() const -{ - com_array returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetChildren(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Provider::ITextRangeProvider impl_ITextProvider::DocumentRange() const -{ - Windows::UI::Xaml::Automation::Provider::ITextRangeProvider value; - check_hresult(static_cast(static_cast(*this))->get_DocumentRange(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::SupportedTextSelection impl_ITextProvider::SupportedTextSelection() const -{ - Windows::UI::Xaml::Automation::SupportedTextSelection value {}; - check_hresult(static_cast(static_cast(*this))->get_SupportedTextSelection(&value)); - return value; -} - -template com_array impl_ITextProvider::GetSelection() const -{ - com_array returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetSelection(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template com_array impl_ITextProvider::GetVisibleRanges() const -{ - com_array returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetVisibleRanges(put_size(returnValue), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Provider::ITextRangeProvider impl_ITextProvider::RangeFromChild(const Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple & childElement) const -{ - Windows::UI::Xaml::Automation::Provider::ITextRangeProvider returnValue; - check_hresult(static_cast(static_cast(*this))->abi_RangeFromChild(get(childElement), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Provider::ITextRangeProvider impl_ITextProvider::RangeFromPoint(const Windows::Foundation::Point & screenLocation) const -{ - Windows::UI::Xaml::Automation::Provider::ITextRangeProvider returnValue; - check_hresult(static_cast(static_cast(*this))->abi_RangeFromPoint(get(screenLocation), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Provider::ITextRangeProvider impl_ITextProvider2::RangeFromAnnotation(const Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple & annotationElement) const -{ - Windows::UI::Xaml::Automation::Provider::ITextRangeProvider returnValue; - check_hresult(static_cast(static_cast(*this))->abi_RangeFromAnnotation(get(annotationElement), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Provider::ITextRangeProvider impl_ITextProvider2::GetCaretRange(bool & isActive) const -{ - Windows::UI::Xaml::Automation::Provider::ITextRangeProvider returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetCaretRange(&isActive, put(returnValue))); - return returnValue; -} - -template void impl_ITextRangeProvider2::ShowContextMenu() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowContextMenu()); -} - -template Windows::UI::Xaml::Automation::ToggleState impl_IToggleProvider::ToggleState() const -{ - Windows::UI::Xaml::Automation::ToggleState value {}; - check_hresult(static_cast(static_cast(*this))->get_ToggleState(&value)); - return value; -} - -template void impl_IToggleProvider::Toggle() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Toggle()); -} - -template bool impl_ITransformProvider::CanMove() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanMove(&value)); - return value; -} - -template bool impl_ITransformProvider::CanResize() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanResize(&value)); - return value; -} - -template bool impl_ITransformProvider::CanRotate() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanRotate(&value)); - return value; -} - -template void impl_ITransformProvider::Move(double x, double y) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Move(x, y)); -} - -template void impl_ITransformProvider::Resize(double width, double height) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Resize(width, height)); -} - -template void impl_ITransformProvider::Rotate(double degrees) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Rotate(degrees)); -} - -template bool impl_ITransformProvider2::CanZoom() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanZoom(&value)); - return value; -} - -template double impl_ITransformProvider2::ZoomLevel() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ZoomLevel(&value)); - return value; -} - -template double impl_ITransformProvider2::MaxZoom() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxZoom(&value)); - return value; -} - -template double impl_ITransformProvider2::MinZoom() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MinZoom(&value)); - return value; -} - -template void impl_ITransformProvider2::Zoom(double zoom) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Zoom(zoom)); -} - -template void impl_ITransformProvider2::ZoomByUnit(Windows::UI::Xaml::Automation::ZoomUnit zoomUnit) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ZoomByUnit(zoomUnit)); -} - -template bool impl_IValueProvider::IsReadOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnly(&value)); - return value; -} - -template hstring impl_IValueProvider::Value() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template void impl_IValueProvider::SetValue(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetValue(get(value))); -} - -template void impl_IVirtualizedItemProvider::Realize() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Realize()); -} - -template bool impl_IWindowProvider::IsModal() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsModal(&value)); - return value; -} - -template bool impl_IWindowProvider::IsTopmost() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTopmost(&value)); - return value; -} - -template bool impl_IWindowProvider::Maximizable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Maximizable(&value)); - return value; -} - -template bool impl_IWindowProvider::Minimizable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Minimizable(&value)); - return value; -} - -template Windows::UI::Xaml::Automation::WindowInteractionState impl_IWindowProvider::InteractionState() const -{ - Windows::UI::Xaml::Automation::WindowInteractionState value {}; - check_hresult(static_cast(static_cast(*this))->get_InteractionState(&value)); - return value; -} - -template Windows::UI::Xaml::Automation::WindowVisualState impl_IWindowProvider::VisualState() const -{ - Windows::UI::Xaml::Automation::WindowVisualState value {}; - check_hresult(static_cast(static_cast(*this))->get_VisualState(&value)); - return value; -} - -template void impl_IWindowProvider::Close() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Close()); -} - -template void impl_IWindowProvider::SetVisualState(Windows::UI::Xaml::Automation::WindowVisualState state) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetVisualState(state)); -} - -template bool impl_IWindowProvider::WaitForInputIdle(int32_t milliseconds) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_WaitForInputIdle(milliseconds, &returnValue)); - return returnValue; -} - -template Windows::IInspectable impl_ICustomNavigationProvider::NavigateCustom(Windows::UI::Xaml::Automation::Peers::AutomationNavigationDirection direction) const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_NavigateCustom(direction, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Provider::ITextRangeProvider impl_ITextEditProvider::GetActiveComposition() const -{ - Windows::UI::Xaml::Automation::Provider::ITextRangeProvider returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetActiveComposition(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Automation::Provider::ITextRangeProvider impl_ITextEditProvider::GetConversionTarget() const -{ - Windows::UI::Xaml::Automation::Provider::ITextRangeProvider returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetConversionTarget(put(returnValue))); - return returnValue; -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.Text.h b/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.Text.h deleted file mode 100644 index 5630be63c..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.Text.h +++ /dev/null @@ -1,15 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.Xaml.Automation.Text.3.h" -#include "Windows.UI.Xaml.Automation.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.h b/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.h deleted file mode 100644 index f6ae602b1..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Xaml.Automation.h +++ /dev/null @@ -1,4917 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.UI.Xaml.3.h" -#include "internal/Windows.UI.Xaml.Automation.Peers.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Xaml.Automation.3.h" -#include "Windows.UI.Xaml.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AnnotationTypeIdProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AnnotationTypeIdProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AnnotationTypeNameProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AnnotationTypeNameProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AuthorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AuthorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateTimeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateTimeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Type(Windows::UI::Xaml::Automation::AnnotationType * value) noexcept override - { - try - { - *value = detach(this->shim().Type()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Type(Windows::UI::Xaml::Automation::AnnotationType value) noexcept override - { - try - { - this->shim().Type(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Element(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Element()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Element(abi_arg_in value) noexcept override - { - try - { - this->shim().Element(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(Windows::UI::Xaml::Automation::AnnotationType type, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(type)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateWithElementParameter(Windows::UI::Xaml::Automation::AnnotationType type, abi_arg_in element, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateWithElementParameter(type, *reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ElementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ElementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AcceleratorKeyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AcceleratorKeyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccessKeyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccessKeyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutomationIdProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutomationIdProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BoundingRectangleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BoundingRectangleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClassNameProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClassNameProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClickablePointProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClickablePointProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ControlTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ControlTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasKeyboardFocusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HasKeyboardFocusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HelpTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HelpTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsContentElementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsContentElementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsControlElementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsControlElementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsKeyboardFocusableProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsKeyboardFocusableProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOffscreenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsOffscreenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPasswordProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsPasswordProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRequiredForFormProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsRequiredForFormProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemStatusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemStatusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LabeledByProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LabeledByProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalizedControlTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalizedControlTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NameProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NameProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OrientationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LiveSettingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LiveSettingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ControlledPeersProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ControlledPeersProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PositionInSetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PositionInSetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SizeOfSetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SizeOfSetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LevelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LevelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AnnotationsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AnnotationsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LandmarkTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LandmarkTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalizedLandmarkTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalizedLandmarkTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsPeripheralProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsPeripheralProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDataValidForFormProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsDataValidForFormProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FullDescriptionProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FullDescriptionProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DescribedByProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DescribedByProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlowsToProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FlowsToProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlowsFromProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FlowsFromProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AcceleratorKeyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AcceleratorKeyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAcceleratorKey(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAcceleratorKey(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAcceleratorKey(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAcceleratorKey(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AccessKeyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccessKeyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAccessKey(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAccessKey(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAccessKey(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAccessKey(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutomationIdProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutomationIdProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAutomationId(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAutomationId(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAutomationId(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAutomationId(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HelpTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HelpTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHelpText(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetHelpText(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetHelpText(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetHelpText(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRequiredForFormProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsRequiredForFormProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsRequiredForForm(abi_arg_in element, bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetIsRequiredForForm(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsRequiredForForm(abi_arg_in element, bool value) noexcept override - { - try - { - this->shim().SetIsRequiredForForm(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemStatusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemStatusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemStatus(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetItemStatus(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetItemStatus(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetItemStatus(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemType(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetItemType(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetItemType(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetItemType(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LabeledByProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LabeledByProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLabeledBy(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetLabeledBy(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLabeledBy(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetLabeledBy(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NameProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NameProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetName(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetName(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetName(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetName(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LiveSettingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LiveSettingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLiveSetting(abi_arg_in element, Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting * value) noexcept override - { - try - { - *value = detach(this->shim().GetLiveSetting(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLiveSetting(abi_arg_in element, Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting value) noexcept override - { - try - { - this->shim().SetLiveSetting(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AccessibilityViewProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AccessibilityViewProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAccessibilityView(abi_arg_in element, Windows::UI::Xaml::Automation::Peers::AccessibilityView * value) noexcept override - { - try - { - *value = detach(this->shim().GetAccessibilityView(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAccessibilityView(abi_arg_in element, Windows::UI::Xaml::Automation::Peers::AccessibilityView value) noexcept override - { - try - { - this->shim().SetAccessibilityView(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ControlledPeersProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ControlledPeersProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetControlledPeers(abi_arg_in element, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetControlledPeers(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PositionInSetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PositionInSetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPositionInSet(abi_arg_in element, int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetPositionInSet(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPositionInSet(abi_arg_in element, int32_t value) noexcept override - { - try - { - this->shim().SetPositionInSet(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SizeOfSetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SizeOfSetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSizeOfSet(abi_arg_in element, int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetSizeOfSet(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetSizeOfSet(abi_arg_in element, int32_t value) noexcept override - { - try - { - this->shim().SetSizeOfSet(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LevelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LevelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLevel(abi_arg_in element, int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetLevel(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLevel(abi_arg_in element, int32_t value) noexcept override - { - try - { - this->shim().SetLevel(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AnnotationsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AnnotationsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAnnotations(abi_arg_in element, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetAnnotations(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LandmarkTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LandmarkTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLandmarkType(abi_arg_in element, Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType * value) noexcept override - { - try - { - *value = detach(this->shim().GetLandmarkType(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLandmarkType(abi_arg_in element, Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType value) noexcept override - { - try - { - this->shim().SetLandmarkType(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalizedLandmarkTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalizedLandmarkTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLocalizedLandmarkType(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetLocalizedLandmarkType(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLocalizedLandmarkType(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetLocalizedLandmarkType(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsPeripheralProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsPeripheralProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsPeripheral(abi_arg_in element, bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetIsPeripheral(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsPeripheral(abi_arg_in element, bool value) noexcept override - { - try - { - this->shim().SetIsPeripheral(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDataValidForFormProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsDataValidForFormProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsDataValidForForm(abi_arg_in element, bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetIsDataValidForForm(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsDataValidForForm(abi_arg_in element, bool value) noexcept override - { - try - { - this->shim().SetIsDataValidForForm(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FullDescriptionProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FullDescriptionProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFullDescription(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetFullDescription(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetFullDescription(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetFullDescription(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocalizedControlTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocalizedControlTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLocalizedControlType(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetLocalizedControlType(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLocalizedControlType(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetLocalizedControlType(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DescribedByProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DescribedByProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDescribedBy(abi_arg_in element, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetDescribedBy(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlowsToProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FlowsToProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFlowsTo(abi_arg_in element, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetFlowsTo(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlowsFromProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FlowsFromProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetFlowsFrom(abi_arg_in element, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetFlowsFrom(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DockPositionProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DockPositionProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DropEffectProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DropEffectProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DropEffectsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DropEffectsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GrabbedItemsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GrabbedItemsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGrabbedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsGrabbedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DropTargetEffectProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DropTargetEffectProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DropTargetEffectsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DropTargetEffectsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExpandCollapseStateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExpandCollapseStateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ColumnProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ColumnProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColumnSpanProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ColumnSpanProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContainingGridProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContainingGridProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RowProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RowProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RowSpanProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RowSpanProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ColumnCountProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ColumnCountProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RowCountProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RowCountProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CurrentViewProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentViewProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SupportedViewsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SupportedViewsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsReadOnlyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnlyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LargeChangeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LargeChangeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaximumProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaximumProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimumProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinimumProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmallChangeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmallChangeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ValueProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ValueProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HorizontallyScrollableProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontallyScrollableProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalScrollPercentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalScrollPercentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalViewSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalViewSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NoScroll(double * value) noexcept override - { - try - { - *value = detach(this->shim().NoScroll()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticallyScrollableProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticallyScrollableProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalScrollPercentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalScrollPercentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalViewSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalViewSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSelectedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSelectedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionContainerProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionContainerProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanSelectMultipleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanSelectMultipleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSelectionRequiredProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSelectionRequiredProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FormulaProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FormulaProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExtendedPropertiesProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtendedPropertiesProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FillColorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FillColorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FillPatternColorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FillPatternColorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FillPatternStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FillPatternStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShapeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShapeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StyleIdProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StyleIdProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StyleNameProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StyleNameProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ColumnHeaderItemsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ColumnHeaderItemsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RowHeaderItemsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RowHeaderItemsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ColumnHeadersProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ColumnHeadersProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RowHeadersProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RowHeadersProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RowOrColumnMajorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RowOrColumnMajorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ToggleStateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ToggleStateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanZoomProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanZoomProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomLevelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomLevelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxZoomProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxZoomProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinZoomProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinZoomProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanMoveProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanMoveProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanResizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanResizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanRotateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanRotateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsReadOnlyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnlyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ValueProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ValueProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanMaximizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanMaximizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanMinimizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanMinimizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsModalProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsModalProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTopmostProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTopmostProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WindowInteractionStateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WindowInteractionStateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WindowVisualStateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WindowVisualStateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Xaml::Automation { - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAnnotationPatternIdentifiersStatics::AnnotationTypeIdProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AnnotationTypeIdProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAnnotationPatternIdentifiersStatics::AnnotationTypeNameProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AnnotationTypeNameProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAnnotationPatternIdentifiersStatics::AuthorProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AuthorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAnnotationPatternIdentifiersStatics::DateTimeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DateTimeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAnnotationPatternIdentifiersStatics::TargetProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TargetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::AcceleratorKeyProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AcceleratorKeyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::AccessKeyProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AccessKeyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::AutomationIdProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AutomationIdProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::BoundingRectangleProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BoundingRectangleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::ClassNameProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ClassNameProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::ClickablePointProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ClickablePointProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::ControlTypeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ControlTypeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::HasKeyboardFocusProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HasKeyboardFocusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::HelpTextProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HelpTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::IsContentElementProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsContentElementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::IsControlElementProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsControlElementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::IsEnabledProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::IsKeyboardFocusableProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsKeyboardFocusableProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::IsOffscreenProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsOffscreenProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::IsPasswordProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsPasswordProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::IsRequiredForFormProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsRequiredForFormProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::ItemStatusProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemStatusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::ItemTypeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemTypeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::LabeledByProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LabeledByProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::LocalizedControlTypeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalizedControlTypeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::NameProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NameProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::OrientationProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OrientationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics::LiveSettingProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LiveSettingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics2::ControlledPeersProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ControlledPeersProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics3::PositionInSetProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PositionInSetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics3::SizeOfSetProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SizeOfSetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics3::LevelProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LevelProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics3::AnnotationsProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AnnotationsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics4::LandmarkTypeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LandmarkTypeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics4::LocalizedLandmarkTypeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalizedLandmarkTypeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics5::IsPeripheralProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsPeripheralProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics5::IsDataValidForFormProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsDataValidForFormProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics5::FullDescriptionProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FullDescriptionProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics5::DescribedByProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DescribedByProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics5::FlowsToProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FlowsToProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IAutomationElementIdentifiersStatics5::FlowsFromProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FlowsFromProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics::AcceleratorKeyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AcceleratorKeyProperty(put(value))); - return value; -} - -template hstring impl_IAutomationPropertiesStatics::GetAcceleratorKey(const Windows::UI::Xaml::DependencyObject & element) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetAcceleratorKey(get(element), put(value))); - return value; -} - -template void impl_IAutomationPropertiesStatics::SetAcceleratorKey(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAcceleratorKey(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics::AccessKeyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AccessKeyProperty(put(value))); - return value; -} - -template hstring impl_IAutomationPropertiesStatics::GetAccessKey(const Windows::UI::Xaml::DependencyObject & element) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetAccessKey(get(element), put(value))); - return value; -} - -template void impl_IAutomationPropertiesStatics::SetAccessKey(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAccessKey(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics::AutomationIdProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AutomationIdProperty(put(value))); - return value; -} - -template hstring impl_IAutomationPropertiesStatics::GetAutomationId(const Windows::UI::Xaml::DependencyObject & element) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetAutomationId(get(element), put(value))); - return value; -} - -template void impl_IAutomationPropertiesStatics::SetAutomationId(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAutomationId(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics::HelpTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HelpTextProperty(put(value))); - return value; -} - -template hstring impl_IAutomationPropertiesStatics::GetHelpText(const Windows::UI::Xaml::DependencyObject & element) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetHelpText(get(element), put(value))); - return value; -} - -template void impl_IAutomationPropertiesStatics::SetHelpText(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetHelpText(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics::IsRequiredForFormProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsRequiredForFormProperty(put(value))); - return value; -} - -template bool impl_IAutomationPropertiesStatics::GetIsRequiredForForm(const Windows::UI::Xaml::DependencyObject & element) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetIsRequiredForForm(get(element), &value)); - return value; -} - -template void impl_IAutomationPropertiesStatics::SetIsRequiredForForm(const Windows::UI::Xaml::DependencyObject & element, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetIsRequiredForForm(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics::ItemStatusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemStatusProperty(put(value))); - return value; -} - -template hstring impl_IAutomationPropertiesStatics::GetItemStatus(const Windows::UI::Xaml::DependencyObject & element) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetItemStatus(get(element), put(value))); - return value; -} - -template void impl_IAutomationPropertiesStatics::SetItemStatus(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetItemStatus(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics::ItemTypeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemTypeProperty(put(value))); - return value; -} - -template hstring impl_IAutomationPropertiesStatics::GetItemType(const Windows::UI::Xaml::DependencyObject & element) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetItemType(get(element), put(value))); - return value; -} - -template void impl_IAutomationPropertiesStatics::SetItemType(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetItemType(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics::LabeledByProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LabeledByProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::UIElement impl_IAutomationPropertiesStatics::GetLabeledBy(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetLabeledBy(get(element), put(value))); - return value; -} - -template void impl_IAutomationPropertiesStatics::SetLabeledBy(const Windows::UI::Xaml::DependencyObject & element, const Windows::UI::Xaml::UIElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLabeledBy(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics::NameProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NameProperty(put(value))); - return value; -} - -template hstring impl_IAutomationPropertiesStatics::GetName(const Windows::UI::Xaml::DependencyObject & element) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetName(get(element), put(value))); - return value; -} - -template void impl_IAutomationPropertiesStatics::SetName(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetName(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics::LiveSettingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LiveSettingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting impl_IAutomationPropertiesStatics::GetLiveSetting(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLiveSetting(get(element), &value)); - return value; -} - -template void impl_IAutomationPropertiesStatics::SetLiveSetting(const Windows::UI::Xaml::DependencyObject & element, Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLiveSetting(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics2::AccessibilityViewProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AccessibilityViewProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::Peers::AccessibilityView impl_IAutomationPropertiesStatics2::GetAccessibilityView(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::UI::Xaml::Automation::Peers::AccessibilityView value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAccessibilityView(get(element), &value)); - return value; -} - -template void impl_IAutomationPropertiesStatics2::SetAccessibilityView(const Windows::UI::Xaml::DependencyObject & element, Windows::UI::Xaml::Automation::Peers::AccessibilityView value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAccessibilityView(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics2::ControlledPeersProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ControlledPeersProperty(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IAutomationPropertiesStatics2::GetControlledPeers(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->abi_GetControlledPeers(get(element), put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics3::PositionInSetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PositionInSetProperty(put(value))); - return value; -} - -template int32_t impl_IAutomationPropertiesStatics3::GetPositionInSet(const Windows::UI::Xaml::DependencyObject & element) const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPositionInSet(get(element), &value)); - return value; -} - -template void impl_IAutomationPropertiesStatics3::SetPositionInSet(const Windows::UI::Xaml::DependencyObject & element, int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPositionInSet(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics3::SizeOfSetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SizeOfSetProperty(put(value))); - return value; -} - -template int32_t impl_IAutomationPropertiesStatics3::GetSizeOfSet(const Windows::UI::Xaml::DependencyObject & element) const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetSizeOfSet(get(element), &value)); - return value; -} - -template void impl_IAutomationPropertiesStatics3::SetSizeOfSet(const Windows::UI::Xaml::DependencyObject & element, int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSizeOfSet(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics3::LevelProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LevelProperty(put(value))); - return value; -} - -template int32_t impl_IAutomationPropertiesStatics3::GetLevel(const Windows::UI::Xaml::DependencyObject & element) const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLevel(get(element), &value)); - return value; -} - -template void impl_IAutomationPropertiesStatics3::SetLevel(const Windows::UI::Xaml::DependencyObject & element, int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLevel(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics3::AnnotationsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AnnotationsProperty(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IAutomationPropertiesStatics3::GetAnnotations(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->abi_GetAnnotations(get(element), put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics4::LandmarkTypeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LandmarkTypeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType impl_IAutomationPropertiesStatics4::GetLandmarkType(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLandmarkType(get(element), &value)); - return value; -} - -template void impl_IAutomationPropertiesStatics4::SetLandmarkType(const Windows::UI::Xaml::DependencyObject & element, Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLandmarkType(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics4::LocalizedLandmarkTypeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalizedLandmarkTypeProperty(put(value))); - return value; -} - -template hstring impl_IAutomationPropertiesStatics4::GetLocalizedLandmarkType(const Windows::UI::Xaml::DependencyObject & element) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetLocalizedLandmarkType(get(element), put(value))); - return value; -} - -template void impl_IAutomationPropertiesStatics4::SetLocalizedLandmarkType(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLocalizedLandmarkType(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics5::IsPeripheralProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsPeripheralProperty(put(value))); - return value; -} - -template bool impl_IAutomationPropertiesStatics5::GetIsPeripheral(const Windows::UI::Xaml::DependencyObject & element) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetIsPeripheral(get(element), &value)); - return value; -} - -template void impl_IAutomationPropertiesStatics5::SetIsPeripheral(const Windows::UI::Xaml::DependencyObject & element, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetIsPeripheral(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics5::IsDataValidForFormProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsDataValidForFormProperty(put(value))); - return value; -} - -template bool impl_IAutomationPropertiesStatics5::GetIsDataValidForForm(const Windows::UI::Xaml::DependencyObject & element) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetIsDataValidForForm(get(element), &value)); - return value; -} - -template void impl_IAutomationPropertiesStatics5::SetIsDataValidForForm(const Windows::UI::Xaml::DependencyObject & element, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetIsDataValidForForm(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics5::FullDescriptionProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FullDescriptionProperty(put(value))); - return value; -} - -template hstring impl_IAutomationPropertiesStatics5::GetFullDescription(const Windows::UI::Xaml::DependencyObject & element) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetFullDescription(get(element), put(value))); - return value; -} - -template void impl_IAutomationPropertiesStatics5::SetFullDescription(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetFullDescription(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics5::LocalizedControlTypeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocalizedControlTypeProperty(put(value))); - return value; -} - -template hstring impl_IAutomationPropertiesStatics5::GetLocalizedControlType(const Windows::UI::Xaml::DependencyObject & element) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetLocalizedControlType(get(element), put(value))); - return value; -} - -template void impl_IAutomationPropertiesStatics5::SetLocalizedControlType(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLocalizedControlType(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics5::DescribedByProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DescribedByProperty(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IAutomationPropertiesStatics5::GetDescribedBy(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->abi_GetDescribedBy(get(element), put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics5::FlowsToProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FlowsToProperty(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IAutomationPropertiesStatics5::GetFlowsTo(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->abi_GetFlowsTo(get(element), put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationPropertiesStatics5::FlowsFromProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FlowsFromProperty(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IAutomationPropertiesStatics5::GetFlowsFrom(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->abi_GetFlowsFrom(get(element), put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IDockPatternIdentifiersStatics::DockPositionProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DockPositionProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IDragPatternIdentifiersStatics::DropEffectProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DropEffectProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IDragPatternIdentifiersStatics::DropEffectsProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DropEffectsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IDragPatternIdentifiersStatics::GrabbedItemsProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GrabbedItemsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IDragPatternIdentifiersStatics::IsGrabbedProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsGrabbedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IDropTargetPatternIdentifiersStatics::DropTargetEffectProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DropTargetEffectProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IDropTargetPatternIdentifiersStatics::DropTargetEffectsProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DropTargetEffectsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IExpandCollapsePatternIdentifiersStatics::ExpandCollapseStateProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ExpandCollapseStateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IGridItemPatternIdentifiersStatics::ColumnProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ColumnProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IGridItemPatternIdentifiersStatics::ColumnSpanProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ColumnSpanProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IGridItemPatternIdentifiersStatics::ContainingGridProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContainingGridProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IGridItemPatternIdentifiersStatics::RowProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RowProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IGridItemPatternIdentifiersStatics::RowSpanProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RowSpanProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IGridPatternIdentifiersStatics::ColumnCountProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ColumnCountProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IGridPatternIdentifiersStatics::RowCountProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RowCountProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IMultipleViewPatternIdentifiersStatics::CurrentViewProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentViewProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IMultipleViewPatternIdentifiersStatics::SupportedViewsProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SupportedViewsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IRangeValuePatternIdentifiersStatics::IsReadOnlyProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnlyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IRangeValuePatternIdentifiersStatics::LargeChangeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LargeChangeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IRangeValuePatternIdentifiersStatics::MaximumProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaximumProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IRangeValuePatternIdentifiersStatics::MinimumProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MinimumProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IRangeValuePatternIdentifiersStatics::SmallChangeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SmallChangeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IRangeValuePatternIdentifiersStatics::ValueProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ValueProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IScrollPatternIdentifiersStatics::HorizontallyScrollableProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HorizontallyScrollableProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IScrollPatternIdentifiersStatics::HorizontalScrollPercentProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HorizontalScrollPercentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IScrollPatternIdentifiersStatics::HorizontalViewSizeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HorizontalViewSizeProperty(put(value))); - return value; -} - -template double impl_IScrollPatternIdentifiersStatics::NoScroll() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_NoScroll(&value)); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IScrollPatternIdentifiersStatics::VerticallyScrollableProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VerticallyScrollableProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IScrollPatternIdentifiersStatics::VerticalScrollPercentProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VerticalScrollPercentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IScrollPatternIdentifiersStatics::VerticalViewSizeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VerticalViewSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ISelectionItemPatternIdentifiersStatics::IsSelectedProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSelectedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ISelectionItemPatternIdentifiersStatics::SelectionContainerProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionContainerProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ISelectionPatternIdentifiersStatics::CanSelectMultipleProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanSelectMultipleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ISelectionPatternIdentifiersStatics::IsSelectionRequiredProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSelectionRequiredProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ISelectionPatternIdentifiersStatics::SelectionProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ISpreadsheetItemPatternIdentifiersStatics::FormulaProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FormulaProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IStylesPatternIdentifiersStatics::ExtendedPropertiesProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ExtendedPropertiesProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IStylesPatternIdentifiersStatics::FillColorProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FillColorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IStylesPatternIdentifiersStatics::FillPatternColorProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FillPatternColorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IStylesPatternIdentifiersStatics::FillPatternStyleProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FillPatternStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IStylesPatternIdentifiersStatics::ShapeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ShapeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IStylesPatternIdentifiersStatics::StyleIdProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StyleIdProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IStylesPatternIdentifiersStatics::StyleNameProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StyleNameProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITableItemPatternIdentifiersStatics::ColumnHeaderItemsProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ColumnHeaderItemsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITableItemPatternIdentifiersStatics::RowHeaderItemsProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RowHeaderItemsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITablePatternIdentifiersStatics::ColumnHeadersProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ColumnHeadersProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITablePatternIdentifiersStatics::RowHeadersProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RowHeadersProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITablePatternIdentifiersStatics::RowOrColumnMajorProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RowOrColumnMajorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITogglePatternIdentifiersStatics::ToggleStateProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ToggleStateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITransformPattern2IdentifiersStatics::CanZoomProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanZoomProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITransformPattern2IdentifiersStatics::ZoomLevelProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ZoomLevelProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITransformPattern2IdentifiersStatics::MaxZoomProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxZoomProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITransformPattern2IdentifiersStatics::MinZoomProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MinZoomProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITransformPatternIdentifiersStatics::CanMoveProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanMoveProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITransformPatternIdentifiersStatics::CanResizeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanResizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_ITransformPatternIdentifiersStatics::CanRotateProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanRotateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IValuePatternIdentifiersStatics::IsReadOnlyProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnlyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IValuePatternIdentifiersStatics::ValueProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ValueProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IWindowPatternIdentifiersStatics::CanMaximizeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanMaximizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IWindowPatternIdentifiersStatics::CanMinimizeProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanMinimizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IWindowPatternIdentifiersStatics::IsModalProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsModalProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IWindowPatternIdentifiersStatics::IsTopmostProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTopmostProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IWindowPatternIdentifiersStatics::WindowInteractionStateProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WindowInteractionStateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationProperty impl_IWindowPatternIdentifiersStatics::WindowVisualStateProperty() const -{ - Windows::UI::Xaml::Automation::AutomationProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WindowVisualStateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AnnotationType impl_IAutomationAnnotation::Type() const -{ - Windows::UI::Xaml::Automation::AnnotationType value {}; - check_hresult(static_cast(static_cast(*this))->get_Type(&value)); - return value; -} - -template void impl_IAutomationAnnotation::Type(Windows::UI::Xaml::Automation::AnnotationType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Type(value)); -} - -template Windows::UI::Xaml::UIElement impl_IAutomationAnnotation::Element() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Element(put(value))); - return value; -} - -template void impl_IAutomationAnnotation::Element(const Windows::UI::Xaml::UIElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Element(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationAnnotationStatics::TypeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TypeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutomationAnnotationStatics::ElementProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ElementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Automation::AutomationAnnotation impl_IAutomationAnnotationFactory::CreateInstance(Windows::UI::Xaml::Automation::AnnotationType type) const -{ - Windows::UI::Xaml::Automation::AutomationAnnotation instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(type, put(instance))); - return instance; -} - -template Windows::UI::Xaml::Automation::AutomationAnnotation impl_IAutomationAnnotationFactory::CreateWithElementParameter(Windows::UI::Xaml::Automation::AnnotationType type, const Windows::UI::Xaml::UIElement & element) const -{ - Windows::UI::Xaml::Automation::AutomationAnnotation instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateWithElementParameter(type, get(element), put(instance))); - return instance; -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AnnotationPatternIdentifiers::AnnotationTypeIdProperty() -{ - return get_activation_factory().AnnotationTypeIdProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AnnotationPatternIdentifiers::AnnotationTypeNameProperty() -{ - return get_activation_factory().AnnotationTypeNameProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AnnotationPatternIdentifiers::AuthorProperty() -{ - return get_activation_factory().AuthorProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AnnotationPatternIdentifiers::DateTimeProperty() -{ - return get_activation_factory().DateTimeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AnnotationPatternIdentifiers::TargetProperty() -{ - return get_activation_factory().TargetProperty(); -} - -inline AutomationAnnotation::AutomationAnnotation() : - AutomationAnnotation(activate_instance()) -{} - -inline AutomationAnnotation::AutomationAnnotation(Windows::UI::Xaml::Automation::AnnotationType type) : - AutomationAnnotation(get_activation_factory().CreateInstance(type)) -{} - -inline AutomationAnnotation::AutomationAnnotation(Windows::UI::Xaml::Automation::AnnotationType type, const Windows::UI::Xaml::UIElement & element) : - AutomationAnnotation(get_activation_factory().CreateWithElementParameter(type, element)) -{} - -inline Windows::UI::Xaml::DependencyProperty AutomationAnnotation::TypeProperty() -{ - return get_activation_factory().TypeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationAnnotation::ElementProperty() -{ - return get_activation_factory().ElementProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::AcceleratorKeyProperty() -{ - return get_activation_factory().AcceleratorKeyProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::AccessKeyProperty() -{ - return get_activation_factory().AccessKeyProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::AutomationIdProperty() -{ - return get_activation_factory().AutomationIdProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::BoundingRectangleProperty() -{ - return get_activation_factory().BoundingRectangleProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::ClassNameProperty() -{ - return get_activation_factory().ClassNameProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::ClickablePointProperty() -{ - return get_activation_factory().ClickablePointProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::ControlTypeProperty() -{ - return get_activation_factory().ControlTypeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::HasKeyboardFocusProperty() -{ - return get_activation_factory().HasKeyboardFocusProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::HelpTextProperty() -{ - return get_activation_factory().HelpTextProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::IsContentElementProperty() -{ - return get_activation_factory().IsContentElementProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::IsControlElementProperty() -{ - return get_activation_factory().IsControlElementProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::IsEnabledProperty() -{ - return get_activation_factory().IsEnabledProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::IsKeyboardFocusableProperty() -{ - return get_activation_factory().IsKeyboardFocusableProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::IsOffscreenProperty() -{ - return get_activation_factory().IsOffscreenProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::IsPasswordProperty() -{ - return get_activation_factory().IsPasswordProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::IsRequiredForFormProperty() -{ - return get_activation_factory().IsRequiredForFormProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::ItemStatusProperty() -{ - return get_activation_factory().ItemStatusProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::ItemTypeProperty() -{ - return get_activation_factory().ItemTypeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::LabeledByProperty() -{ - return get_activation_factory().LabeledByProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::LocalizedControlTypeProperty() -{ - return get_activation_factory().LocalizedControlTypeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::NameProperty() -{ - return get_activation_factory().NameProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::OrientationProperty() -{ - return get_activation_factory().OrientationProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::LiveSettingProperty() -{ - return get_activation_factory().LiveSettingProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::ControlledPeersProperty() -{ - return get_activation_factory().ControlledPeersProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::PositionInSetProperty() -{ - return get_activation_factory().PositionInSetProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::SizeOfSetProperty() -{ - return get_activation_factory().SizeOfSetProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::LevelProperty() -{ - return get_activation_factory().LevelProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::AnnotationsProperty() -{ - return get_activation_factory().AnnotationsProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::LandmarkTypeProperty() -{ - return get_activation_factory().LandmarkTypeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::LocalizedLandmarkTypeProperty() -{ - return get_activation_factory().LocalizedLandmarkTypeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::IsPeripheralProperty() -{ - return get_activation_factory().IsPeripheralProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::IsDataValidForFormProperty() -{ - return get_activation_factory().IsDataValidForFormProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::FullDescriptionProperty() -{ - return get_activation_factory().FullDescriptionProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::DescribedByProperty() -{ - return get_activation_factory().DescribedByProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::FlowsToProperty() -{ - return get_activation_factory().FlowsToProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty AutomationElementIdentifiers::FlowsFromProperty() -{ - return get_activation_factory().FlowsFromProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::AcceleratorKeyProperty() -{ - return get_activation_factory().AcceleratorKeyProperty(); -} - -inline hstring AutomationProperties::GetAcceleratorKey(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetAcceleratorKey(element); -} - -inline void AutomationProperties::SetAcceleratorKey(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) -{ - get_activation_factory().SetAcceleratorKey(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::AccessKeyProperty() -{ - return get_activation_factory().AccessKeyProperty(); -} - -inline hstring AutomationProperties::GetAccessKey(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetAccessKey(element); -} - -inline void AutomationProperties::SetAccessKey(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) -{ - get_activation_factory().SetAccessKey(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::AutomationIdProperty() -{ - return get_activation_factory().AutomationIdProperty(); -} - -inline hstring AutomationProperties::GetAutomationId(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetAutomationId(element); -} - -inline void AutomationProperties::SetAutomationId(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) -{ - get_activation_factory().SetAutomationId(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::HelpTextProperty() -{ - return get_activation_factory().HelpTextProperty(); -} - -inline hstring AutomationProperties::GetHelpText(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetHelpText(element); -} - -inline void AutomationProperties::SetHelpText(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) -{ - get_activation_factory().SetHelpText(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::IsRequiredForFormProperty() -{ - return get_activation_factory().IsRequiredForFormProperty(); -} - -inline bool AutomationProperties::GetIsRequiredForForm(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetIsRequiredForForm(element); -} - -inline void AutomationProperties::SetIsRequiredForForm(const Windows::UI::Xaml::DependencyObject & element, bool value) -{ - get_activation_factory().SetIsRequiredForForm(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::ItemStatusProperty() -{ - return get_activation_factory().ItemStatusProperty(); -} - -inline hstring AutomationProperties::GetItemStatus(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetItemStatus(element); -} - -inline void AutomationProperties::SetItemStatus(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) -{ - get_activation_factory().SetItemStatus(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::ItemTypeProperty() -{ - return get_activation_factory().ItemTypeProperty(); -} - -inline hstring AutomationProperties::GetItemType(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetItemType(element); -} - -inline void AutomationProperties::SetItemType(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) -{ - get_activation_factory().SetItemType(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::LabeledByProperty() -{ - return get_activation_factory().LabeledByProperty(); -} - -inline Windows::UI::Xaml::UIElement AutomationProperties::GetLabeledBy(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetLabeledBy(element); -} - -inline void AutomationProperties::SetLabeledBy(const Windows::UI::Xaml::DependencyObject & element, const Windows::UI::Xaml::UIElement & value) -{ - get_activation_factory().SetLabeledBy(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::NameProperty() -{ - return get_activation_factory().NameProperty(); -} - -inline hstring AutomationProperties::GetName(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetName(element); -} - -inline void AutomationProperties::SetName(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) -{ - get_activation_factory().SetName(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::LiveSettingProperty() -{ - return get_activation_factory().LiveSettingProperty(); -} - -inline Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting AutomationProperties::GetLiveSetting(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetLiveSetting(element); -} - -inline void AutomationProperties::SetLiveSetting(const Windows::UI::Xaml::DependencyObject & element, Windows::UI::Xaml::Automation::Peers::AutomationLiveSetting value) -{ - get_activation_factory().SetLiveSetting(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::AccessibilityViewProperty() -{ - return get_activation_factory().AccessibilityViewProperty(); -} - -inline Windows::UI::Xaml::Automation::Peers::AccessibilityView AutomationProperties::GetAccessibilityView(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetAccessibilityView(element); -} - -inline void AutomationProperties::SetAccessibilityView(const Windows::UI::Xaml::DependencyObject & element, Windows::UI::Xaml::Automation::Peers::AccessibilityView value) -{ - get_activation_factory().SetAccessibilityView(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::ControlledPeersProperty() -{ - return get_activation_factory().ControlledPeersProperty(); -} - -inline Windows::Foundation::Collections::IVector AutomationProperties::GetControlledPeers(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetControlledPeers(element); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::PositionInSetProperty() -{ - return get_activation_factory().PositionInSetProperty(); -} - -inline int32_t AutomationProperties::GetPositionInSet(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetPositionInSet(element); -} - -inline void AutomationProperties::SetPositionInSet(const Windows::UI::Xaml::DependencyObject & element, int32_t value) -{ - get_activation_factory().SetPositionInSet(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::SizeOfSetProperty() -{ - return get_activation_factory().SizeOfSetProperty(); -} - -inline int32_t AutomationProperties::GetSizeOfSet(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetSizeOfSet(element); -} - -inline void AutomationProperties::SetSizeOfSet(const Windows::UI::Xaml::DependencyObject & element, int32_t value) -{ - get_activation_factory().SetSizeOfSet(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::LevelProperty() -{ - return get_activation_factory().LevelProperty(); -} - -inline int32_t AutomationProperties::GetLevel(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetLevel(element); -} - -inline void AutomationProperties::SetLevel(const Windows::UI::Xaml::DependencyObject & element, int32_t value) -{ - get_activation_factory().SetLevel(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::AnnotationsProperty() -{ - return get_activation_factory().AnnotationsProperty(); -} - -inline Windows::Foundation::Collections::IVector AutomationProperties::GetAnnotations(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetAnnotations(element); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::LandmarkTypeProperty() -{ - return get_activation_factory().LandmarkTypeProperty(); -} - -inline Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType AutomationProperties::GetLandmarkType(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetLandmarkType(element); -} - -inline void AutomationProperties::SetLandmarkType(const Windows::UI::Xaml::DependencyObject & element, Windows::UI::Xaml::Automation::Peers::AutomationLandmarkType value) -{ - get_activation_factory().SetLandmarkType(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::LocalizedLandmarkTypeProperty() -{ - return get_activation_factory().LocalizedLandmarkTypeProperty(); -} - -inline hstring AutomationProperties::GetLocalizedLandmarkType(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetLocalizedLandmarkType(element); -} - -inline void AutomationProperties::SetLocalizedLandmarkType(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) -{ - get_activation_factory().SetLocalizedLandmarkType(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::IsPeripheralProperty() -{ - return get_activation_factory().IsPeripheralProperty(); -} - -inline bool AutomationProperties::GetIsPeripheral(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetIsPeripheral(element); -} - -inline void AutomationProperties::SetIsPeripheral(const Windows::UI::Xaml::DependencyObject & element, bool value) -{ - get_activation_factory().SetIsPeripheral(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::IsDataValidForFormProperty() -{ - return get_activation_factory().IsDataValidForFormProperty(); -} - -inline bool AutomationProperties::GetIsDataValidForForm(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetIsDataValidForForm(element); -} - -inline void AutomationProperties::SetIsDataValidForForm(const Windows::UI::Xaml::DependencyObject & element, bool value) -{ - get_activation_factory().SetIsDataValidForForm(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::FullDescriptionProperty() -{ - return get_activation_factory().FullDescriptionProperty(); -} - -inline hstring AutomationProperties::GetFullDescription(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetFullDescription(element); -} - -inline void AutomationProperties::SetFullDescription(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) -{ - get_activation_factory().SetFullDescription(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::LocalizedControlTypeProperty() -{ - return get_activation_factory().LocalizedControlTypeProperty(); -} - -inline hstring AutomationProperties::GetLocalizedControlType(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetLocalizedControlType(element); -} - -inline void AutomationProperties::SetLocalizedControlType(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) -{ - get_activation_factory().SetLocalizedControlType(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::DescribedByProperty() -{ - return get_activation_factory().DescribedByProperty(); -} - -inline Windows::Foundation::Collections::IVector AutomationProperties::GetDescribedBy(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetDescribedBy(element); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::FlowsToProperty() -{ - return get_activation_factory().FlowsToProperty(); -} - -inline Windows::Foundation::Collections::IVector AutomationProperties::GetFlowsTo(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetFlowsTo(element); -} - -inline Windows::UI::Xaml::DependencyProperty AutomationProperties::FlowsFromProperty() -{ - return get_activation_factory().FlowsFromProperty(); -} - -inline Windows::Foundation::Collections::IVector AutomationProperties::GetFlowsFrom(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetFlowsFrom(element); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty DockPatternIdentifiers::DockPositionProperty() -{ - return get_activation_factory().DockPositionProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty DragPatternIdentifiers::DropEffectProperty() -{ - return get_activation_factory().DropEffectProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty DragPatternIdentifiers::DropEffectsProperty() -{ - return get_activation_factory().DropEffectsProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty DragPatternIdentifiers::GrabbedItemsProperty() -{ - return get_activation_factory().GrabbedItemsProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty DragPatternIdentifiers::IsGrabbedProperty() -{ - return get_activation_factory().IsGrabbedProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty DropTargetPatternIdentifiers::DropTargetEffectProperty() -{ - return get_activation_factory().DropTargetEffectProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty DropTargetPatternIdentifiers::DropTargetEffectsProperty() -{ - return get_activation_factory().DropTargetEffectsProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty ExpandCollapsePatternIdentifiers::ExpandCollapseStateProperty() -{ - return get_activation_factory().ExpandCollapseStateProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty GridItemPatternIdentifiers::ColumnProperty() -{ - return get_activation_factory().ColumnProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty GridItemPatternIdentifiers::ColumnSpanProperty() -{ - return get_activation_factory().ColumnSpanProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty GridItemPatternIdentifiers::ContainingGridProperty() -{ - return get_activation_factory().ContainingGridProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty GridItemPatternIdentifiers::RowProperty() -{ - return get_activation_factory().RowProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty GridItemPatternIdentifiers::RowSpanProperty() -{ - return get_activation_factory().RowSpanProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty GridPatternIdentifiers::ColumnCountProperty() -{ - return get_activation_factory().ColumnCountProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty GridPatternIdentifiers::RowCountProperty() -{ - return get_activation_factory().RowCountProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty MultipleViewPatternIdentifiers::CurrentViewProperty() -{ - return get_activation_factory().CurrentViewProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty MultipleViewPatternIdentifiers::SupportedViewsProperty() -{ - return get_activation_factory().SupportedViewsProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty RangeValuePatternIdentifiers::IsReadOnlyProperty() -{ - return get_activation_factory().IsReadOnlyProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty RangeValuePatternIdentifiers::LargeChangeProperty() -{ - return get_activation_factory().LargeChangeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty RangeValuePatternIdentifiers::MaximumProperty() -{ - return get_activation_factory().MaximumProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty RangeValuePatternIdentifiers::MinimumProperty() -{ - return get_activation_factory().MinimumProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty RangeValuePatternIdentifiers::SmallChangeProperty() -{ - return get_activation_factory().SmallChangeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty RangeValuePatternIdentifiers::ValueProperty() -{ - return get_activation_factory().ValueProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty ScrollPatternIdentifiers::HorizontallyScrollableProperty() -{ - return get_activation_factory().HorizontallyScrollableProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty ScrollPatternIdentifiers::HorizontalScrollPercentProperty() -{ - return get_activation_factory().HorizontalScrollPercentProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty ScrollPatternIdentifiers::HorizontalViewSizeProperty() -{ - return get_activation_factory().HorizontalViewSizeProperty(); -} - -inline double ScrollPatternIdentifiers::NoScroll() -{ - return get_activation_factory().NoScroll(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty ScrollPatternIdentifiers::VerticallyScrollableProperty() -{ - return get_activation_factory().VerticallyScrollableProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty ScrollPatternIdentifiers::VerticalScrollPercentProperty() -{ - return get_activation_factory().VerticalScrollPercentProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty ScrollPatternIdentifiers::VerticalViewSizeProperty() -{ - return get_activation_factory().VerticalViewSizeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty SelectionItemPatternIdentifiers::IsSelectedProperty() -{ - return get_activation_factory().IsSelectedProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty SelectionItemPatternIdentifiers::SelectionContainerProperty() -{ - return get_activation_factory().SelectionContainerProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty SelectionPatternIdentifiers::CanSelectMultipleProperty() -{ - return get_activation_factory().CanSelectMultipleProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty SelectionPatternIdentifiers::IsSelectionRequiredProperty() -{ - return get_activation_factory().IsSelectionRequiredProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty SelectionPatternIdentifiers::SelectionProperty() -{ - return get_activation_factory().SelectionProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty SpreadsheetItemPatternIdentifiers::FormulaProperty() -{ - return get_activation_factory().FormulaProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty StylesPatternIdentifiers::ExtendedPropertiesProperty() -{ - return get_activation_factory().ExtendedPropertiesProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty StylesPatternIdentifiers::FillColorProperty() -{ - return get_activation_factory().FillColorProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty StylesPatternIdentifiers::FillPatternColorProperty() -{ - return get_activation_factory().FillPatternColorProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty StylesPatternIdentifiers::FillPatternStyleProperty() -{ - return get_activation_factory().FillPatternStyleProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty StylesPatternIdentifiers::ShapeProperty() -{ - return get_activation_factory().ShapeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty StylesPatternIdentifiers::StyleIdProperty() -{ - return get_activation_factory().StyleIdProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty StylesPatternIdentifiers::StyleNameProperty() -{ - return get_activation_factory().StyleNameProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TableItemPatternIdentifiers::ColumnHeaderItemsProperty() -{ - return get_activation_factory().ColumnHeaderItemsProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TableItemPatternIdentifiers::RowHeaderItemsProperty() -{ - return get_activation_factory().RowHeaderItemsProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TablePatternIdentifiers::ColumnHeadersProperty() -{ - return get_activation_factory().ColumnHeadersProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TablePatternIdentifiers::RowHeadersProperty() -{ - return get_activation_factory().RowHeadersProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TablePatternIdentifiers::RowOrColumnMajorProperty() -{ - return get_activation_factory().RowOrColumnMajorProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TogglePatternIdentifiers::ToggleStateProperty() -{ - return get_activation_factory().ToggleStateProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TransformPattern2Identifiers::CanZoomProperty() -{ - return get_activation_factory().CanZoomProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TransformPattern2Identifiers::ZoomLevelProperty() -{ - return get_activation_factory().ZoomLevelProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TransformPattern2Identifiers::MaxZoomProperty() -{ - return get_activation_factory().MaxZoomProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TransformPattern2Identifiers::MinZoomProperty() -{ - return get_activation_factory().MinZoomProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TransformPatternIdentifiers::CanMoveProperty() -{ - return get_activation_factory().CanMoveProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TransformPatternIdentifiers::CanResizeProperty() -{ - return get_activation_factory().CanResizeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty TransformPatternIdentifiers::CanRotateProperty() -{ - return get_activation_factory().CanRotateProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty ValuePatternIdentifiers::IsReadOnlyProperty() -{ - return get_activation_factory().IsReadOnlyProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty ValuePatternIdentifiers::ValueProperty() -{ - return get_activation_factory().ValueProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty WindowPatternIdentifiers::CanMaximizeProperty() -{ - return get_activation_factory().CanMaximizeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty WindowPatternIdentifiers::CanMinimizeProperty() -{ - return get_activation_factory().CanMinimizeProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty WindowPatternIdentifiers::IsModalProperty() -{ - return get_activation_factory().IsModalProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty WindowPatternIdentifiers::IsTopmostProperty() -{ - return get_activation_factory().IsTopmostProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty WindowPatternIdentifiers::WindowInteractionStateProperty() -{ - return get_activation_factory().WindowInteractionStateProperty(); -} - -inline Windows::UI::Xaml::Automation::AutomationProperty WindowPatternIdentifiers::WindowVisualStateProperty() -{ - return get_activation_factory().WindowVisualStateProperty(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Xaml.Controls.Maps.h b/10.0.14393.0/winrt/Windows.UI.Xaml.Controls.Maps.h deleted file mode 100644 index 77b954a28..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Xaml.Controls.Maps.h +++ /dev/null @@ -1,8634 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.Devices.Geolocation.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.UI.Xaml.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Services.Maps.3.h" -#include "internal/Windows.UI.Xaml.Controls.Maps.3.h" -#include "Windows.UI.Xaml.Controls.h" -#include "internal/Windows.UI.Xaml.Controls.Maps.5.h" - -WINRT_EXPORT namespace winrt { - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall add_BitmapRequested(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BitmapRequested(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BitmapRequested(event_token token) noexcept override - { - try - { - this->shim().BitmapRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UriFormatString(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UriFormatString()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UriFormatString(abi_arg_in value) noexcept override - { - try - { - this->shim().UriFormatString(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AdditionalRequestHeaders(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AdditionalRequestHeaders()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowCaching(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowCaching()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowCaching(bool value) noexcept override - { - try - { - this->shim().AllowCaching(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UriRequested(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UriRequested(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UriRequested(event_token token) noexcept override - { - try - { - this->shim().UriRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceWithUriFormatString(abi_arg_in uriFormatString, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithUriFormatString(*reinterpret_cast(&uriFormatString), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UriFormatString(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UriFormatString()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UriFormatString(abi_arg_in value) noexcept override - { - try - { - this->shim().UriFormatString(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UriRequested(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UriRequested(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UriRequested(event_token token) noexcept override - { - try - { - this->shim().UriRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceWithUriFormatString(abi_arg_in uriFormatString, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithUriFormatString(*reinterpret_cast(&uriFormatString), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Camera(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Camera()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeReason(Windows::UI::Xaml::Controls::Maps::MapCameraChangeReason * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeReason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Camera(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Camera()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeReason(Windows::UI::Xaml::Controls::Maps::MapCameraChangeReason * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeReason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Location(abi_arg_in value) noexcept override - { - try - { - this->shim().Location(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Heading(double * value) noexcept override - { - try - { - *value = detach(this->shim().Heading()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Heading(double value) noexcept override - { - try - { - this->shim().Heading(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pitch(double * value) noexcept override - { - try - { - *value = detach(this->shim().Pitch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Pitch(double value) noexcept override - { - try - { - this->shim().Pitch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Roll(double * value) noexcept override - { - try - { - *value = detach(this->shim().Roll()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Roll(double value) noexcept override - { - try - { - this->shim().Roll(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FieldOfView(double * value) noexcept override - { - try - { - *value = detach(this->shim().FieldOfView()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FieldOfView(double value) noexcept override - { - try - { - this->shim().FieldOfView(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithLocation(abi_arg_in location, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithLocation(*reinterpret_cast(&location))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceWithLocationAndHeading(abi_arg_in location, double headingInDegrees, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithLocationAndHeading(*reinterpret_cast(&location), headingInDegrees)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceWithLocationHeadingAndPitch(abi_arg_in location, double headingInDegrees, double pitchInDegrees, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithLocationHeadingAndPitch(*reinterpret_cast(&location), headingInDegrees, pitchInDegrees)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceWithLocationHeadingPitchRollAndFieldOfView(abi_arg_in location, double headingInDegrees, double pitchInDegrees, double rollInDegrees, double fieldOfViewInDegrees, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithLocationHeadingPitchRollAndFieldOfView(*reinterpret_cast(&location), headingInDegrees, pitchInDegrees, rollInDegrees, fieldOfViewInDegrees)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Center(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Center()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Center(abi_arg_in value) noexcept override - { - try - { - this->shim().Center(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Children(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Children()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColorScheme(Windows::UI::Xaml::Controls::Maps::MapColorScheme * value) noexcept override - { - try - { - *value = detach(this->shim().ColorScheme()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ColorScheme(Windows::UI::Xaml::Controls::Maps::MapColorScheme value) noexcept override - { - try - { - this->shim().ColorScheme(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredPitch(double * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredPitch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredPitch(double value) noexcept override - { - try - { - this->shim().DesiredPitch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Heading(double * value) noexcept override - { - try - { - *value = detach(this->shim().Heading()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Heading(double value) noexcept override - { - try - { - this->shim().Heading(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LandmarksVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().LandmarksVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LandmarksVisible(bool value) noexcept override - { - try - { - this->shim().LandmarksVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LoadingStatus(Windows::UI::Xaml::Controls::Maps::MapLoadingStatus * value) noexcept override - { - try - { - *value = detach(this->shim().LoadingStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MapServiceToken(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MapServiceToken()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MapServiceToken(abi_arg_in value) noexcept override - { - try - { - this->shim().MapServiceToken(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxZoomLevel(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxZoomLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinZoomLevel(double * value) noexcept override - { - try - { - *value = detach(this->shim().MinZoomLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PedestrianFeaturesVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PedestrianFeaturesVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PedestrianFeaturesVisible(bool value) noexcept override - { - try - { - this->shim().PedestrianFeaturesVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pitch(double * value) noexcept override - { - try - { - *value = detach(this->shim().Pitch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Style(Windows::UI::Xaml::Controls::Maps::MapStyle * value) noexcept override - { - try - { - *value = detach(this->shim().Style()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Style(Windows::UI::Xaml::Controls::Maps::MapStyle value) noexcept override - { - try - { - this->shim().Style(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrafficFlowVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().TrafficFlowVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TrafficFlowVisible(bool value) noexcept override - { - try - { - this->shim().TrafficFlowVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransformOrigin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransformOrigin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransformOrigin(abi_arg_in value) noexcept override - { - try - { - this->shim().TransformOrigin(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WatermarkMode(Windows::UI::Xaml::Controls::Maps::MapWatermarkMode * value) noexcept override - { - try - { - *value = detach(this->shim().WatermarkMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_WatermarkMode(Windows::UI::Xaml::Controls::Maps::MapWatermarkMode value) noexcept override - { - try - { - this->shim().WatermarkMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomLevel(double * value) noexcept override - { - try - { - *value = detach(this->shim().ZoomLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ZoomLevel(double value) noexcept override - { - try - { - this->shim().ZoomLevel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MapElements(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MapElements()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Routes(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Routes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TileSources(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TileSources()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CenterChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CenterChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CenterChanged(event_token token) noexcept override - { - try - { - this->shim().CenterChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_HeadingChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().HeadingChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HeadingChanged(event_token token) noexcept override - { - try - { - this->shim().HeadingChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LoadingStatusChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LoadingStatusChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LoadingStatusChanged(event_token token) noexcept override - { - try - { - this->shim().LoadingStatusChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MapDoubleTapped(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MapDoubleTapped(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MapDoubleTapped(event_token token) noexcept override - { - try - { - this->shim().MapDoubleTapped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MapHolding(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MapHolding(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MapHolding(event_token token) noexcept override - { - try - { - this->shim().MapHolding(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MapTapped(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MapTapped(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MapTapped(event_token token) noexcept override - { - try - { - this->shim().MapTapped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PitchChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PitchChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PitchChanged(event_token token) noexcept override - { - try - { - this->shim().PitchChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TransformOriginChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TransformOriginChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TransformOriginChanged(event_token token) noexcept override - { - try - { - this->shim().TransformOriginChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ZoomLevelChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ZoomLevelChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ZoomLevelChanged(event_token token) noexcept override - { - try - { - this->shim().ZoomLevelChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindMapElementsAtOffset(abi_arg_in offset, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().FindMapElementsAtOffset(*reinterpret_cast(&offset))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLocationFromOffset(abi_arg_in offset, abi_arg_out location) noexcept override - { - try - { - this->shim().GetLocationFromOffset(*reinterpret_cast(&offset), *location); - return S_OK; - } - catch (...) - { - *location = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetOffsetFromLocation(abi_arg_in location, abi_arg_out offset) noexcept override - { - try - { - this->shim().GetOffsetFromLocation(*reinterpret_cast(&location), *offset); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsLocationInView(abi_arg_in location, bool * isInView) noexcept override - { - try - { - this->shim().IsLocationInView(*reinterpret_cast(&location), *isInView); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetViewBoundsAsync(abi_arg_in bounds, abi_arg_in> margin, Windows::UI::Xaml::Controls::Maps::MapAnimationKind animation, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TrySetViewBoundsAsync(*reinterpret_cast(&bounds), *reinterpret_cast *>(&margin), animation)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetViewWithCenterAsync(abi_arg_in center, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TrySetViewAsync(*reinterpret_cast(¢er))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetViewWithCenterAndZoomAsync(abi_arg_in center, abi_arg_in> zoomLevel, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TrySetViewAsync(*reinterpret_cast(¢er), *reinterpret_cast *>(&zoomLevel))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetViewWithCenterZoomHeadingAndPitchAsync(abi_arg_in center, abi_arg_in> zoomLevel, abi_arg_in> heading, abi_arg_in> desiredPitch, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TrySetViewAsync(*reinterpret_cast(¢er), *reinterpret_cast *>(&zoomLevel), *reinterpret_cast *>(&heading), *reinterpret_cast *>(&desiredPitch))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetViewWithCenterZoomHeadingPitchAndAnimationAsync(abi_arg_in center, abi_arg_in> zoomLevel, abi_arg_in> heading, abi_arg_in> desiredPitch, Windows::UI::Xaml::Controls::Maps::MapAnimationKind animation, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TrySetViewAsync(*reinterpret_cast(¢er), *reinterpret_cast *>(&zoomLevel), *reinterpret_cast *>(&heading), *reinterpret_cast *>(&desiredPitch), animation)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BusinessLandmarksVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().BusinessLandmarksVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BusinessLandmarksVisible(bool value) noexcept override - { - try - { - this->shim().BusinessLandmarksVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransitFeaturesVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().TransitFeaturesVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransitFeaturesVisible(bool value) noexcept override - { - try - { - this->shim().TransitFeaturesVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PanInteractionMode(Windows::UI::Xaml::Controls::Maps::MapPanInteractionMode * value) noexcept override - { - try - { - *value = detach(this->shim().PanInteractionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PanInteractionMode(Windows::UI::Xaml::Controls::Maps::MapPanInteractionMode value) noexcept override - { - try - { - this->shim().PanInteractionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RotateInteractionMode(Windows::UI::Xaml::Controls::Maps::MapInteractionMode * value) noexcept override - { - try - { - *value = detach(this->shim().RotateInteractionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RotateInteractionMode(Windows::UI::Xaml::Controls::Maps::MapInteractionMode value) noexcept override - { - try - { - this->shim().RotateInteractionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TiltInteractionMode(Windows::UI::Xaml::Controls::Maps::MapInteractionMode * value) noexcept override - { - try - { - *value = detach(this->shim().TiltInteractionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TiltInteractionMode(Windows::UI::Xaml::Controls::Maps::MapInteractionMode value) noexcept override - { - try - { - this->shim().TiltInteractionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomInteractionMode(Windows::UI::Xaml::Controls::Maps::MapInteractionMode * value) noexcept override - { - try - { - *value = detach(this->shim().ZoomInteractionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ZoomInteractionMode(Windows::UI::Xaml::Controls::Maps::MapInteractionMode value) noexcept override - { - try - { - this->shim().ZoomInteractionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Is3DSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Is3DSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStreetsideSupported(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStreetsideSupported()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Scene(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Scene()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Scene(abi_arg_in value) noexcept override - { - try - { - this->shim().Scene(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActualCamera(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActualCamera()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetCamera(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetCamera()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CustomExperience(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomExperience()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CustomExperience(abi_arg_in value) noexcept override - { - try - { - this->shim().CustomExperience(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MapElementClick(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MapElementClick(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MapElementClick(event_token token) noexcept override - { - try - { - this->shim().MapElementClick(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MapElementPointerEntered(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MapElementPointerEntered(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MapElementPointerEntered(event_token token) noexcept override - { - try - { - this->shim().MapElementPointerEntered(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MapElementPointerExited(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MapElementPointerExited(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MapElementPointerExited(event_token token) noexcept override - { - try - { - this->shim().MapElementPointerExited(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ActualCameraChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ActualCameraChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ActualCameraChanged(event_token token) noexcept override - { - try - { - this->shim().ActualCameraChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ActualCameraChanging(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ActualCameraChanging(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ActualCameraChanging(event_token token) noexcept override - { - try - { - this->shim().ActualCameraChanging(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TargetCameraChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TargetCameraChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TargetCameraChanged(event_token token) noexcept override - { - try - { - this->shim().TargetCameraChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CustomExperienceChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CustomExperienceChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CustomExperienceChanged(event_token token) noexcept override - { - try - { - this->shim().CustomExperienceChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartContinuousRotate(double rateInDegreesPerSecond) noexcept override - { - try - { - this->shim().StartContinuousRotate(rateInDegreesPerSecond); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopContinuousRotate() noexcept override - { - try - { - this->shim().StopContinuousRotate(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartContinuousTilt(double rateInDegreesPerSecond) noexcept override - { - try - { - this->shim().StartContinuousTilt(rateInDegreesPerSecond); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopContinuousTilt() noexcept override - { - try - { - this->shim().StopContinuousTilt(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartContinuousZoom(double rateOfChangePerSecond) noexcept override - { - try - { - this->shim().StartContinuousZoom(rateOfChangePerSecond); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StopContinuousZoom() noexcept override - { - try - { - this->shim().StopContinuousZoom(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryRotateAsync(double degrees, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TryRotateAsync(degrees)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryRotateToAsync(double angleInDegrees, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TryRotateToAsync(angleInDegrees)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryTiltAsync(double degrees, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TryTiltAsync(degrees)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryTiltToAsync(double angleInDegrees, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TryTiltToAsync(angleInDegrees)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryZoomInAsync(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TryZoomInAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryZoomOutAsync(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TryZoomOutAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TryZoomToAsync(double zoomLevel, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TryZoomToAsync(zoomLevel)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetSceneAsync(abi_arg_in scene, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TrySetSceneAsync(*reinterpret_cast(&scene))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_TrySetSceneWithAnimationAsync(abi_arg_in scene, Windows::UI::Xaml::Controls::Maps::MapAnimationKind animationKind, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().TrySetSceneAsync(*reinterpret_cast(&scene), animationKind)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_MapRightTapped(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MapRightTapped(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MapRightTapped(event_token token) noexcept override - { - try - { - this->shim().MapRightTapped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BusinessLandmarksEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().BusinessLandmarksEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BusinessLandmarksEnabled(bool value) noexcept override - { - try - { - this->shim().BusinessLandmarksEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransitFeaturesEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().TransitFeaturesEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransitFeaturesEnabled(bool value) noexcept override - { - try - { - this->shim().TransitFeaturesEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVisibleRegion(Windows::UI::Xaml::Controls::Maps::MapVisibleRegionKind region, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetVisibleRegion(region)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalLocations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LocalLocations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalLocations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LocalLocations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalLocations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LocalLocations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocalLocations(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().LocalLocations()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_BusinessLandmarkClick(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BusinessLandmarkClick(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BusinessLandmarkClick(event_token token) noexcept override - { - try - { - this->shim().BusinessLandmarkClick(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TransitFeatureClick(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TransitFeatureClick(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TransitFeatureClick(event_token token) noexcept override - { - try - { - this->shim().TransitFeatureClick(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BusinessLandmarkRightTapped(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BusinessLandmarkRightTapped(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BusinessLandmarkRightTapped(event_token token) noexcept override - { - try - { - this->shim().BusinessLandmarkRightTapped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TransitFeatureRightTapped(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TransitFeatureRightTapped(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TransitFeatureRightTapped(event_token token) noexcept override - { - try - { - this->shim().TransitFeatureRightTapped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_BusinessLandmarkPointerEntered(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BusinessLandmarkPointerEntered(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BusinessLandmarkPointerEntered(event_token token) noexcept override - { - try - { - this->shim().BusinessLandmarkPointerEntered(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TransitFeaturePointerEntered(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TransitFeaturePointerEntered(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TransitFeaturePointerEntered(event_token token) noexcept override - { - try - { - this->shim().TransitFeaturePointerEntered(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BusinessLandmarkPointerExited(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BusinessLandmarkPointerExited(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BusinessLandmarkPointerExited(event_token token) noexcept override - { - try - { - this->shim().BusinessLandmarkPointerExited(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TransitFeaturePointerExited(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TransitFeaturePointerExited(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TransitFeaturePointerExited(event_token token) noexcept override - { - try - { - this->shim().TransitFeaturePointerExited(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in map, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&map))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CenterProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CenterProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChildrenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChildrenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColorSchemeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ColorSchemeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredPitchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DesiredPitchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeadingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeadingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LandmarksVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LandmarksVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LoadingStatusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LoadingStatusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MapServiceTokenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MapServiceTokenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PedestrianFeaturesVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PedestrianFeaturesVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PitchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PitchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TrafficFlowVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TrafficFlowVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransformOriginProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransformOriginProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WatermarkModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WatermarkModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomLevelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomLevelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MapElementsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MapElementsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RoutesProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RoutesProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TileSourcesProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TileSourcesProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LocationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLocation(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetLocation(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLocation(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetLocation(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NormalizedAnchorPointProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NormalizedAnchorPointProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNormalizedAnchorPoint(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetNormalizedAnchorPoint(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetNormalizedAnchorPoint(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetNormalizedAnchorPoint(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BusinessLandmarksVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BusinessLandmarksVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransitFeaturesVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransitFeaturesVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PanInteractionModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PanInteractionModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RotateInteractionModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RotateInteractionModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TiltInteractionModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TiltInteractionModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomInteractionModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomInteractionModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Is3DSupportedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Is3DSupportedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStreetsideSupportedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsStreetsideSupportedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SceneProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SceneProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BusinessLandmarksEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BusinessLandmarksEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransitFeaturesEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransitFeaturesEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransitProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TransitProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransitProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TransitProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransitProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TransitProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DisplayName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransitProperties(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().TransitProperties()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ZIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ZIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ZIndex(int32_t value) noexcept override - { - try - { - this->shim().ZIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Visible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Visible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Visible(bool value) noexcept override - { - try - { - this->shim().Visible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MapTabIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MapTabIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MapTabIndex(int32_t value) noexcept override - { - try - { - this->shim().MapTabIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MapElements(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().MapElements()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MapElement(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MapElement()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MapElement(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MapElement()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ZIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MapTabIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MapTabIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Location(abi_arg_in value) noexcept override - { - try - { - this->shim().Location(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NormalizedAnchorPoint(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NormalizedAnchorPoint()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NormalizedAnchorPoint(abi_arg_in value) noexcept override - { - try - { - this->shim().NormalizedAnchorPoint(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Image(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Image()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Image(abi_arg_in value) noexcept override - { - try - { - this->shim().Image(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CollisionBehaviorDesired(Windows::UI::Xaml::Controls::Maps::MapElementCollisionBehavior * value) noexcept override - { - try - { - *value = detach(this->shim().CollisionBehaviorDesired()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CollisionBehaviorDesired(Windows::UI::Xaml::Controls::Maps::MapElementCollisionBehavior value) noexcept override - { - try - { - this->shim().CollisionBehaviorDesired(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LocationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LocationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TitleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NormalizedAnchorPointProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NormalizedAnchorPointProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CollisionBehaviorDesiredProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CollisionBehaviorDesiredProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemsSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemsSource(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemsSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemsSourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsSourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Path(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Path()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Path(abi_arg_in value) noexcept override - { - try - { - this->shim().Path(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StrokeColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StrokeColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StrokeColor(abi_arg_in value) noexcept override - { - try - { - this->shim().StrokeColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StrokeThickness(double * value) noexcept override - { - try - { - *value = detach(this->shim().StrokeThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StrokeThickness(double value) noexcept override - { - try - { - this->shim().StrokeThickness(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StrokeDashed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().StrokeDashed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StrokeDashed(bool value) noexcept override - { - try - { - this->shim().StrokeDashed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FillColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FillColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FillColor(abi_arg_in value) noexcept override - { - try - { - this->shim().FillColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Paths(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Paths()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PathProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PathProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StrokeThicknessProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StrokeThicknessProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StrokeDashedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StrokeDashedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Path(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Path()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Path(abi_arg_in value) noexcept override - { - try - { - this->shim().Path(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StrokeColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StrokeColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StrokeColor(abi_arg_in value) noexcept override - { - try - { - this->shim().StrokeColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StrokeThickness(double * value) noexcept override - { - try - { - *value = detach(this->shim().StrokeThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StrokeThickness(double value) noexcept override - { - try - { - this->shim().StrokeThickness(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StrokeDashed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().StrokeDashed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StrokeDashed(bool value) noexcept override - { - try - { - this->shim().StrokeDashed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PathProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PathProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StrokeDashedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StrokeDashedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RouteColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RouteColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RouteColor(abi_arg_in value) noexcept override - { - try - { - this->shim().RouteColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutlineColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutlineColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutlineColor(abi_arg_in value) noexcept override - { - try - { - this->shim().OutlineColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Route(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Route()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithMapRoute(abi_arg_in route, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithMapRoute(*reinterpret_cast(&route), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TargetCamera(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetCamera()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TargetCameraChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TargetCameraChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TargetCameraChanged(event_token token) noexcept override - { - try - { - this->shim().TargetCameraChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateFromBoundingBox(abi_arg_in bounds, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateFromBoundingBox(*reinterpret_cast(&bounds))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromBoundingBoxWithHeadingAndPitch(abi_arg_in bounds, double headingInDegrees, double pitchInDegrees, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateFromBoundingBox(*reinterpret_cast(&bounds), headingInDegrees, pitchInDegrees)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromCamera(abi_arg_in camera, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateFromCamera(*reinterpret_cast(&camera))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromLocation(abi_arg_in location, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateFromLocation(*reinterpret_cast(&location))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromLocationWithHeadingAndPitch(abi_arg_in location, double headingInDegrees, double pitchInDegrees, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateFromLocation(*reinterpret_cast(&location), headingInDegrees, pitchInDegrees)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromLocationAndRadius(abi_arg_in location, double radiusInMeters, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateFromLocationAndRadius(*reinterpret_cast(&location), radiusInMeters)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromLocationAndRadiusWithHeadingAndPitch(abi_arg_in location, double radiusInMeters, double headingInDegrees, double pitchInDegrees, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateFromLocationAndRadius(*reinterpret_cast(&location), radiusInMeters, headingInDegrees, pitchInDegrees)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromLocations(abi_arg_in> locations, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateFromLocations(*reinterpret_cast *>(&locations))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateFromLocationsWithHeadingAndPitch(abi_arg_in> locations, double headingInDegrees, double pitchInDegrees, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateFromLocations(*reinterpret_cast *>(&locations), headingInDegrees, pitchInDegrees)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Camera(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Camera()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChangeReason(Windows::UI::Xaml::Controls::Maps::MapCameraChangeReason * value) noexcept override - { - try - { - *value = detach(this->shim().ChangeReason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PixelData(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PixelData()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PixelData(abi_arg_in value) noexcept override - { - try - { - this->shim().PixelData(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_X(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().X()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Y(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Y()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomLevel(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ZoomLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DataSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataSource(abi_arg_in value) noexcept override - { - try - { - this->shim().DataSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Layer(Windows::UI::Xaml::Controls::Maps::MapTileLayer * value) noexcept override - { - try - { - *value = detach(this->shim().Layer()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Layer(Windows::UI::Xaml::Controls::Maps::MapTileLayer value) noexcept override - { - try - { - this->shim().Layer(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomLevelRange(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomLevelRange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ZoomLevelRange(abi_arg_in value) noexcept override - { - try - { - this->shim().ZoomLevelRange(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bounds()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Bounds(abi_arg_in value) noexcept override - { - try - { - this->shim().Bounds(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowOverstretch(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowOverstretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowOverstretch(bool value) noexcept override - { - try - { - this->shim().AllowOverstretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFadingEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFadingEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFadingEnabled(bool value) noexcept override - { - try - { - this->shim().IsFadingEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTransparencyEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTransparencyEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTransparencyEnabled(bool value) noexcept override - { - try - { - this->shim().IsTransparencyEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRetryEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRetryEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsRetryEnabled(bool value) noexcept override - { - try - { - this->shim().IsRetryEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ZIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ZIndex(int32_t value) noexcept override - { - try - { - this->shim().ZIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TilePixelSize(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TilePixelSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TilePixelSize(int32_t value) noexcept override - { - try - { - this->shim().TilePixelSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Visible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Visible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Visible(bool value) noexcept override - { - try - { - this->shim().Visible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceWithDataSource(abi_arg_in dataSource, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithDataSource(*reinterpret_cast(&dataSource), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceWithDataSourceAndZoomRange(abi_arg_in dataSource, abi_arg_in zoomLevelRange, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithDataSourceAndZoomRange(*reinterpret_cast(&dataSource), *reinterpret_cast(&zoomLevelRange), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceWithDataSourceZoomRangeAndBounds(abi_arg_in dataSource, abi_arg_in zoomLevelRange, abi_arg_in bounds, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithDataSourceZoomRangeAndBounds(*reinterpret_cast(&dataSource), *reinterpret_cast(&zoomLevelRange), *reinterpret_cast(&bounds), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceWithDataSourceZoomRangeBoundsAndTileSize(abi_arg_in dataSource, abi_arg_in zoomLevelRange, abi_arg_in bounds, int32_t tileSizeInPixels, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithDataSourceZoomRangeBoundsAndTileSize(*reinterpret_cast(&dataSource), *reinterpret_cast(&zoomLevelRange), *reinterpret_cast(&bounds), tileSizeInPixels, *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DataSourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataSourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LayerProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LayerProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomLevelRangeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomLevelRangeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BoundsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BoundsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowOverstretchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AllowOverstretchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFadingEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFadingEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTransparencyEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTransparencyEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRetryEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsRetryEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TilePixelSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TilePixelSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Uri(abi_arg_in value) noexcept override - { - try - { - this->shim().Uri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_X(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().X()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Y(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Y()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomLevel(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ZoomLevel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AddressTextVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AddressTextVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AddressTextVisible(bool value) noexcept override - { - try - { - this->shim().AddressTextVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CursorVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CursorVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CursorVisible(bool value) noexcept override - { - try - { - this->shim().CursorVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OverviewMapVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().OverviewMapVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OverviewMapVisible(bool value) noexcept override - { - try - { - this->shim().OverviewMapVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StreetLabelsVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().StreetLabelsVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StreetLabelsVisible(bool value) noexcept override - { - try - { - this->shim().StreetLabelsVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExitButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ExitButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ExitButtonVisible(bool value) noexcept override - { - try - { - this->shim().ExitButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomButtonsVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ZoomButtonsVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ZoomButtonsVisible(bool value) noexcept override - { - try - { - this->shim().ZoomButtonsVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithPanorama(abi_arg_in panorama, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithPanorama(*reinterpret_cast(&panorama))); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateInstanceWithPanoramaHeadingPitchAndFieldOfView(abi_arg_in panorama, double headingInDegrees, double pitchInDegrees, double fieldOfViewInDegrees, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithPanoramaHeadingPitchAndFieldOfView(*reinterpret_cast(&panorama), headingInDegrees, pitchInDegrees, fieldOfViewInDegrees)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Location(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Location()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FindNearbyWithLocationAsync(abi_arg_in location, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().FindNearbyAsync(*reinterpret_cast(&location))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_FindNearbyWithLocationAndRadiusAsync(abi_arg_in location, double radiusInMeters, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().FindNearbyAsync(*reinterpret_cast(&location), radiusInMeters)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Xaml::Controls::Maps { - -template Windows::UI::Xaml::Controls::Maps::MapCamera impl_IMapActualCameraChangedEventArgs::Camera() const -{ - Windows::UI::Xaml::Controls::Maps::MapCamera value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Camera(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapCameraChangeReason impl_IMapActualCameraChangedEventArgs2::ChangeReason() const -{ - Windows::UI::Xaml::Controls::Maps::MapCameraChangeReason value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeReason(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapCamera impl_IMapActualCameraChangingEventArgs::Camera() const -{ - Windows::UI::Xaml::Controls::Maps::MapCamera value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Camera(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapCameraChangeReason impl_IMapActualCameraChangingEventArgs2::ChangeReason() const -{ - Windows::UI::Xaml::Controls::Maps::MapCameraChangeReason value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeReason(&value)); - return value; -} - -template Windows::Foundation::Point impl_IMapElementClickEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapElementClickEventArgs::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IMapElementClickEventArgs::MapElements() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_MapElements(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IMapElementPointerEnteredEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapElementPointerEnteredEventArgs::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapElement impl_IMapElementPointerEnteredEventArgs::MapElement() const -{ - Windows::UI::Xaml::Controls::Maps::MapElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MapElement(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IMapElementPointerExitedEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapElementPointerExitedEventArgs::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapElement impl_IMapElementPointerExitedEventArgs::MapElement() const -{ - Windows::UI::Xaml::Controls::Maps::MapElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MapElement(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IMapRightTappedEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapRightTappedEventArgs::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapCamera impl_IMapTargetCameraChangedEventArgs::Camera() const -{ - Windows::UI::Xaml::Controls::Maps::MapCamera value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Camera(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapCameraChangeReason impl_IMapTargetCameraChangedEventArgs2::ChangeReason() const -{ - Windows::UI::Xaml::Controls::Maps::MapCameraChangeReason value {}; - check_hresult(static_cast(static_cast(*this))->get_ChangeReason(&value)); - return value; -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IMapTileBitmapRequest::PixelData() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_PixelData(put(value))); - return value; -} - -template void impl_IMapTileBitmapRequest::PixelData(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PixelData(get(value))); -} - -template Windows::UI::Xaml::Controls::Maps::MapTileBitmapRequestDeferral impl_IMapTileBitmapRequest::GetDeferral() const -{ - Windows::UI::Xaml::Controls::Maps::MapTileBitmapRequestDeferral returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(returnValue))); - return returnValue; -} - -template void impl_IMapTileBitmapRequestDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template int32_t impl_IMapTileBitmapRequestedEventArgs::X() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_X(&value)); - return value; -} - -template int32_t impl_IMapTileBitmapRequestedEventArgs::Y() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Y(&value)); - return value; -} - -template int32_t impl_IMapTileBitmapRequestedEventArgs::ZoomLevel() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ZoomLevel(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapTileBitmapRequest impl_IMapTileBitmapRequestedEventArgs::Request() const -{ - Windows::UI::Xaml::Controls::Maps::MapTileBitmapRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IMapTileUriRequest::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template void impl_IMapTileUriRequest::Uri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Uri(get(value))); -} - -template Windows::UI::Xaml::Controls::Maps::MapTileUriRequestDeferral impl_IMapTileUriRequest::GetDeferral() const -{ - Windows::UI::Xaml::Controls::Maps::MapTileUriRequestDeferral returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(returnValue))); - return returnValue; -} - -template void impl_IMapTileUriRequestDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template int32_t impl_IMapTileUriRequestedEventArgs::X() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_X(&value)); - return value; -} - -template int32_t impl_IMapTileUriRequestedEventArgs::Y() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Y(&value)); - return value; -} - -template int32_t impl_IMapTileUriRequestedEventArgs::ZoomLevel() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ZoomLevel(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapTileUriRequest impl_IMapTileUriRequestedEventArgs::Request() const -{ - Windows::UI::Xaml::Controls::Maps::MapTileUriRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapCamera::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template void impl_IMapCamera::Location(const Windows::Devices::Geolocation::Geopoint & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Location(get(value))); -} - -template double impl_IMapCamera::Heading() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Heading(&value)); - return value; -} - -template void impl_IMapCamera::Heading(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Heading(value)); -} - -template double impl_IMapCamera::Pitch() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Pitch(&value)); - return value; -} - -template void impl_IMapCamera::Pitch(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Pitch(value)); -} - -template double impl_IMapCamera::Roll() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Roll(&value)); - return value; -} - -template void impl_IMapCamera::Roll(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Roll(value)); -} - -template double impl_IMapCamera::FieldOfView() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FieldOfView(&value)); - return value; -} - -template void impl_IMapCamera::FieldOfView(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FieldOfView(value)); -} - -template Windows::UI::Xaml::Controls::Maps::MapCamera impl_IMapCameraFactory::CreateInstanceWithLocation(const Windows::Devices::Geolocation::Geopoint & location) const -{ - Windows::UI::Xaml::Controls::Maps::MapCamera instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithLocation(get(location), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::MapCamera impl_IMapCameraFactory::CreateInstanceWithLocationAndHeading(const Windows::Devices::Geolocation::Geopoint & location, double headingInDegrees) const -{ - Windows::UI::Xaml::Controls::Maps::MapCamera instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithLocationAndHeading(get(location), headingInDegrees, put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::MapCamera impl_IMapCameraFactory::CreateInstanceWithLocationHeadingAndPitch(const Windows::Devices::Geolocation::Geopoint & location, double headingInDegrees, double pitchInDegrees) const -{ - Windows::UI::Xaml::Controls::Maps::MapCamera instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithLocationHeadingAndPitch(get(location), headingInDegrees, pitchInDegrees, put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::MapCamera impl_IMapCameraFactory::CreateInstanceWithLocationHeadingPitchRollAndFieldOfView(const Windows::Devices::Geolocation::Geopoint & location, double headingInDegrees, double pitchInDegrees, double rollInDegrees, double fieldOfViewInDegrees) const -{ - Windows::UI::Xaml::Controls::Maps::MapCamera instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithLocationHeadingPitchRollAndFieldOfView(get(location), headingInDegrees, pitchInDegrees, rollInDegrees, fieldOfViewInDegrees, put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::MapCustomExperience impl_IMapCustomExperienceFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::MapCustomExperience instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template int32_t impl_IMapElement::ZIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ZIndex(&value)); - return value; -} - -template void impl_IMapElement::ZIndex(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ZIndex(value)); -} - -template bool impl_IMapElement::Visible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Visible(&value)); - return value; -} - -template void impl_IMapElement::Visible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Visible(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapElementStatics::ZIndexProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ZIndexProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapElementStatics::VisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapElement impl_IMapElementFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::MapElement instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template int32_t impl_IMapElement2::MapTabIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MapTabIndex(&value)); - return value; -} - -template void impl_IMapElement2::MapTabIndex(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MapTabIndex(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapElementStatics2::MapTabIndexProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MapTabIndexProperty(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IMapInputEventArgs::Position() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapInputEventArgs::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template Windows::IInspectable impl_IMapItemsControl::ItemsSource() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_ItemsSource(put(value))); - return value; -} - -template void impl_IMapItemsControl::ItemsSource(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemsSource(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IMapItemsControl::Items() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Items(put(value))); - return value; -} - -template Windows::UI::Xaml::DataTemplate impl_IMapItemsControl::ItemTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemTemplate(put(value))); - return value; -} - -template void impl_IMapItemsControl::ItemTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemTemplate(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapItemsControlStatics::ItemsSourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemsSourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapItemsControlStatics::ItemsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapItemsControlStatics::ItemTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Color impl_IMapRouteView::RouteColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_RouteColor(put(value))); - return value; -} - -template void impl_IMapRouteView::RouteColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RouteColor(get(value))); -} - -template Windows::UI::Color impl_IMapRouteView::OutlineColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_OutlineColor(put(value))); - return value; -} - -template void impl_IMapRouteView::OutlineColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutlineColor(get(value))); -} - -template Windows::Services::Maps::MapRoute impl_IMapRouteView::Route() const -{ - Windows::Services::Maps::MapRoute value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Route(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapRouteView impl_IMapRouteViewFactory::CreateInstanceWithMapRoute(const Windows::Services::Maps::MapRoute & route, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::MapRouteView instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithMapRoute(get(route), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::MapCamera impl_IMapScene::TargetCamera() const -{ - Windows::UI::Xaml::Controls::Maps::MapCamera value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TargetCamera(put(value))); - return value; -} - -template event_token impl_IMapScene::TargetCameraChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TargetCameraChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMapScene::TargetCameraChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapScene::remove_TargetCameraChanged, TargetCameraChanged(value)); -} - -template void impl_IMapScene::TargetCameraChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TargetCameraChanged(token)); -} - -template Windows::UI::Xaml::Controls::Maps::MapScene impl_IMapSceneStatics::CreateFromBoundingBox(const Windows::Devices::Geolocation::GeoboundingBox & bounds) const -{ - Windows::UI::Xaml::Controls::Maps::MapScene returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromBoundingBox(get(bounds), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::Maps::MapScene impl_IMapSceneStatics::CreateFromBoundingBox(const Windows::Devices::Geolocation::GeoboundingBox & bounds, double headingInDegrees, double pitchInDegrees) const -{ - Windows::UI::Xaml::Controls::Maps::MapScene returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromBoundingBoxWithHeadingAndPitch(get(bounds), headingInDegrees, pitchInDegrees, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::Maps::MapScene impl_IMapSceneStatics::CreateFromCamera(const Windows::UI::Xaml::Controls::Maps::MapCamera & camera) const -{ - Windows::UI::Xaml::Controls::Maps::MapScene returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromCamera(get(camera), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::Maps::MapScene impl_IMapSceneStatics::CreateFromLocation(const Windows::Devices::Geolocation::Geopoint & location) const -{ - Windows::UI::Xaml::Controls::Maps::MapScene returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromLocation(get(location), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::Maps::MapScene impl_IMapSceneStatics::CreateFromLocation(const Windows::Devices::Geolocation::Geopoint & location, double headingInDegrees, double pitchInDegrees) const -{ - Windows::UI::Xaml::Controls::Maps::MapScene returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromLocationWithHeadingAndPitch(get(location), headingInDegrees, pitchInDegrees, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::Maps::MapScene impl_IMapSceneStatics::CreateFromLocationAndRadius(const Windows::Devices::Geolocation::Geopoint & location, double radiusInMeters) const -{ - Windows::UI::Xaml::Controls::Maps::MapScene returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromLocationAndRadius(get(location), radiusInMeters, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::Maps::MapScene impl_IMapSceneStatics::CreateFromLocationAndRadius(const Windows::Devices::Geolocation::Geopoint & location, double radiusInMeters, double headingInDegrees, double pitchInDegrees) const -{ - Windows::UI::Xaml::Controls::Maps::MapScene returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromLocationAndRadiusWithHeadingAndPitch(get(location), radiusInMeters, headingInDegrees, pitchInDegrees, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::Maps::MapScene impl_IMapSceneStatics::CreateFromLocations(const Windows::Foundation::Collections::IIterable & locations) const -{ - Windows::UI::Xaml::Controls::Maps::MapScene returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromLocations(get(locations), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::Maps::MapScene impl_IMapSceneStatics::CreateFromLocations(const Windows::Foundation::Collections::IIterable & locations, double headingInDegrees, double pitchInDegrees) const -{ - Windows::UI::Xaml::Controls::Maps::MapScene returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateFromLocationsWithHeadingAndPitch(get(locations), headingInDegrees, pitchInDegrees, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::Maps::MapTileDataSource impl_IMapTileDataSourceFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::MapTileDataSource instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::MapTileDataSource impl_IMapTileSource::DataSource() const -{ - Windows::UI::Xaml::Controls::Maps::MapTileDataSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DataSource(put(value))); - return value; -} - -template void impl_IMapTileSource::DataSource(const Windows::UI::Xaml::Controls::Maps::MapTileDataSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataSource(get(value))); -} - -template Windows::UI::Xaml::Controls::Maps::MapTileLayer impl_IMapTileSource::Layer() const -{ - Windows::UI::Xaml::Controls::Maps::MapTileLayer value {}; - check_hresult(static_cast(static_cast(*this))->get_Layer(&value)); - return value; -} - -template void impl_IMapTileSource::Layer(Windows::UI::Xaml::Controls::Maps::MapTileLayer value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Layer(value)); -} - -template Windows::UI::Xaml::Controls::Maps::MapZoomLevelRange impl_IMapTileSource::ZoomLevelRange() const -{ - Windows::UI::Xaml::Controls::Maps::MapZoomLevelRange value {}; - check_hresult(static_cast(static_cast(*this))->get_ZoomLevelRange(put(value))); - return value; -} - -template void impl_IMapTileSource::ZoomLevelRange(const Windows::UI::Xaml::Controls::Maps::MapZoomLevelRange & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ZoomLevelRange(get(value))); -} - -template Windows::Devices::Geolocation::GeoboundingBox impl_IMapTileSource::Bounds() const -{ - Windows::Devices::Geolocation::GeoboundingBox value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Bounds(put(value))); - return value; -} - -template void impl_IMapTileSource::Bounds(const Windows::Devices::Geolocation::GeoboundingBox & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Bounds(get(value))); -} - -template bool impl_IMapTileSource::AllowOverstretch() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowOverstretch(&value)); - return value; -} - -template void impl_IMapTileSource::AllowOverstretch(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowOverstretch(value)); -} - -template bool impl_IMapTileSource::IsFadingEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFadingEnabled(&value)); - return value; -} - -template void impl_IMapTileSource::IsFadingEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFadingEnabled(value)); -} - -template bool impl_IMapTileSource::IsTransparencyEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTransparencyEnabled(&value)); - return value; -} - -template void impl_IMapTileSource::IsTransparencyEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTransparencyEnabled(value)); -} - -template bool impl_IMapTileSource::IsRetryEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsRetryEnabled(&value)); - return value; -} - -template void impl_IMapTileSource::IsRetryEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsRetryEnabled(value)); -} - -template int32_t impl_IMapTileSource::ZIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ZIndex(&value)); - return value; -} - -template void impl_IMapTileSource::ZIndex(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ZIndex(value)); -} - -template int32_t impl_IMapTileSource::TilePixelSize() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_TilePixelSize(&value)); - return value; -} - -template void impl_IMapTileSource::TilePixelSize(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TilePixelSize(value)); -} - -template bool impl_IMapTileSource::Visible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Visible(&value)); - return value; -} - -template void impl_IMapTileSource::Visible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Visible(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapTileSourceStatics::DataSourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DataSourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapTileSourceStatics::LayerProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LayerProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapTileSourceStatics::ZoomLevelRangeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ZoomLevelRangeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapTileSourceStatics::BoundsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BoundsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapTileSourceStatics::AllowOverstretchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AllowOverstretchProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapTileSourceStatics::IsFadingEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsFadingEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapTileSourceStatics::IsTransparencyEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTransparencyEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapTileSourceStatics::IsRetryEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsRetryEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapTileSourceStatics::ZIndexProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ZIndexProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapTileSourceStatics::TilePixelSizeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TilePixelSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapTileSourceStatics::VisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapTileSource impl_IMapTileSourceFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::MapTileSource instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::MapTileSource impl_IMapTileSourceFactory::CreateInstanceWithDataSource(const Windows::UI::Xaml::Controls::Maps::MapTileDataSource & dataSource, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::MapTileSource instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithDataSource(get(dataSource), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::MapTileSource impl_IMapTileSourceFactory::CreateInstanceWithDataSourceAndZoomRange(const Windows::UI::Xaml::Controls::Maps::MapTileDataSource & dataSource, const Windows::UI::Xaml::Controls::Maps::MapZoomLevelRange & zoomLevelRange, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::MapTileSource instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithDataSourceAndZoomRange(get(dataSource), get(zoomLevelRange), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::MapTileSource impl_IMapTileSourceFactory::CreateInstanceWithDataSourceZoomRangeAndBounds(const Windows::UI::Xaml::Controls::Maps::MapTileDataSource & dataSource, const Windows::UI::Xaml::Controls::Maps::MapZoomLevelRange & zoomLevelRange, const Windows::Devices::Geolocation::GeoboundingBox & bounds, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::MapTileSource instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithDataSourceZoomRangeAndBounds(get(dataSource), get(zoomLevelRange), get(bounds), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::MapTileSource impl_IMapTileSourceFactory::CreateInstanceWithDataSourceZoomRangeBoundsAndTileSize(const Windows::UI::Xaml::Controls::Maps::MapTileDataSource & dataSource, const Windows::UI::Xaml::Controls::Maps::MapZoomLevelRange & zoomLevelRange, const Windows::Devices::Geolocation::GeoboundingBox & bounds, int32_t tileSizeInPixels, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::MapTileSource instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithDataSourceZoomRangeBoundsAndTileSize(get(dataSource), get(zoomLevelRange), get(bounds), tileSizeInPixels, get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::Devices::Geolocation::Geopoint impl_IStreetsidePanorama::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation impl_IStreetsidePanoramaStatics::FindNearbyAsync(const Windows::Devices::Geolocation::Geopoint & location) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_FindNearbyWithLocationAsync(get(location), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IStreetsidePanoramaStatics::FindNearbyAsync(const Windows::Devices::Geolocation::Geopoint & location, double radiusInMeters) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_FindNearbyWithLocationAndRadiusAsync(get(location), radiusInMeters, put(returnValue))); - return returnValue; -} - -template event_token impl_ICustomMapTileDataSource::BitmapRequested(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BitmapRequested(get(value), &token)); - return token; -} - -template event_revoker impl_ICustomMapTileDataSource::BitmapRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::ICustomMapTileDataSource::remove_BitmapRequested, BitmapRequested(value)); -} - -template void impl_ICustomMapTileDataSource::BitmapRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BitmapRequested(token)); -} - -template Windows::UI::Xaml::Controls::Maps::CustomMapTileDataSource impl_ICustomMapTileDataSourceFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::CustomMapTileDataSource instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template hstring impl_IHttpMapTileDataSource::UriFormatString() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UriFormatString(put(value))); - return value; -} - -template void impl_IHttpMapTileDataSource::UriFormatString(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UriFormatString(get(value))); -} - -template Windows::Foundation::Collections::IMap impl_IHttpMapTileDataSource::AdditionalRequestHeaders() const -{ - Windows::Foundation::Collections::IMap value; - check_hresult(static_cast(static_cast(*this))->get_AdditionalRequestHeaders(put(value))); - return value; -} - -template bool impl_IHttpMapTileDataSource::AllowCaching() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowCaching(&value)); - return value; -} - -template void impl_IHttpMapTileDataSource::AllowCaching(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowCaching(value)); -} - -template event_token impl_IHttpMapTileDataSource::UriRequested(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UriRequested(get(value), &token)); - return token; -} - -template event_revoker impl_IHttpMapTileDataSource::UriRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IHttpMapTileDataSource::remove_UriRequested, UriRequested(value)); -} - -template void impl_IHttpMapTileDataSource::UriRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UriRequested(token)); -} - -template Windows::UI::Xaml::Controls::Maps::HttpMapTileDataSource impl_IHttpMapTileDataSourceFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::HttpMapTileDataSource instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::HttpMapTileDataSource impl_IHttpMapTileDataSourceFactory::CreateInstanceWithUriFormatString(hstring_ref uriFormatString, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::HttpMapTileDataSource instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithUriFormatString(get(uriFormatString), get(outer), put(inner), put(instance))); - return instance; -} - -template hstring impl_ILocalMapTileDataSource::UriFormatString() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_UriFormatString(put(value))); - return value; -} - -template void impl_ILocalMapTileDataSource::UriFormatString(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UriFormatString(get(value))); -} - -template event_token impl_ILocalMapTileDataSource::UriRequested(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UriRequested(get(value), &token)); - return token; -} - -template event_revoker impl_ILocalMapTileDataSource::UriRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::ILocalMapTileDataSource::remove_UriRequested, UriRequested(value)); -} - -template void impl_ILocalMapTileDataSource::UriRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UriRequested(token)); -} - -template Windows::UI::Xaml::Controls::Maps::LocalMapTileDataSource impl_ILocalMapTileDataSourceFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::LocalMapTileDataSource instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::LocalMapTileDataSource impl_ILocalMapTileDataSourceFactory::CreateInstanceWithUriFormatString(hstring_ref uriFormatString, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Maps::LocalMapTileDataSource instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithUriFormatString(get(uriFormatString), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapIcon::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template void impl_IMapIcon::Location(const Windows::Devices::Geolocation::Geopoint & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Location(get(value))); -} - -template hstring impl_IMapIcon::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IMapIcon::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template Windows::Foundation::Point impl_IMapIcon::NormalizedAnchorPoint() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_NormalizedAnchorPoint(put(value))); - return value; -} - -template void impl_IMapIcon::NormalizedAnchorPoint(const Windows::Foundation::Point & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NormalizedAnchorPoint(get(value))); -} - -template Windows::Storage::Streams::IRandomAccessStreamReference impl_IMapIcon::Image() const -{ - Windows::Storage::Streams::IRandomAccessStreamReference value; - check_hresult(static_cast(static_cast(*this))->get_Image(put(value))); - return value; -} - -template void impl_IMapIcon::Image(const Windows::Storage::Streams::IRandomAccessStreamReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Image(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapIconStatics::LocationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapIconStatics::TitleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TitleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapIconStatics::NormalizedAnchorPointProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NormalizedAnchorPointProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapElementCollisionBehavior impl_IMapIcon2::CollisionBehaviorDesired() const -{ - Windows::UI::Xaml::Controls::Maps::MapElementCollisionBehavior value {}; - check_hresult(static_cast(static_cast(*this))->get_CollisionBehaviorDesired(&value)); - return value; -} - -template void impl_IMapIcon2::CollisionBehaviorDesired(Windows::UI::Xaml::Controls::Maps::MapElementCollisionBehavior value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CollisionBehaviorDesired(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapIconStatics2::CollisionBehaviorDesiredProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CollisionBehaviorDesiredProperty(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopath impl_IMapPolygon::Path() const -{ - Windows::Devices::Geolocation::Geopath value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Path(put(value))); - return value; -} - -template void impl_IMapPolygon::Path(const Windows::Devices::Geolocation::Geopath & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Path(get(value))); -} - -template Windows::UI::Color impl_IMapPolygon::StrokeColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_StrokeColor(put(value))); - return value; -} - -template void impl_IMapPolygon::StrokeColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StrokeColor(get(value))); -} - -template double impl_IMapPolygon::StrokeThickness() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_StrokeThickness(&value)); - return value; -} - -template void impl_IMapPolygon::StrokeThickness(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StrokeThickness(value)); -} - -template bool impl_IMapPolygon::StrokeDashed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_StrokeDashed(&value)); - return value; -} - -template void impl_IMapPolygon::StrokeDashed(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StrokeDashed(value)); -} - -template Windows::UI::Color impl_IMapPolygon::FillColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_FillColor(put(value))); - return value; -} - -template void impl_IMapPolygon::FillColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FillColor(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapPolygonStatics::PathProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PathProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapPolygonStatics::StrokeThicknessProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StrokeThicknessProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapPolygonStatics::StrokeDashedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StrokeDashedProperty(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IMapPolygon2::Paths() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Paths(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopath impl_IMapPolyline::Path() const -{ - Windows::Devices::Geolocation::Geopath value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Path(put(value))); - return value; -} - -template void impl_IMapPolyline::Path(const Windows::Devices::Geolocation::Geopath & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Path(get(value))); -} - -template Windows::UI::Color impl_IMapPolyline::StrokeColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_StrokeColor(put(value))); - return value; -} - -template void impl_IMapPolyline::StrokeColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StrokeColor(get(value))); -} - -template double impl_IMapPolyline::StrokeThickness() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_StrokeThickness(&value)); - return value; -} - -template void impl_IMapPolyline::StrokeThickness(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StrokeThickness(value)); -} - -template bool impl_IMapPolyline::StrokeDashed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_StrokeDashed(&value)); - return value; -} - -template void impl_IMapPolyline::StrokeDashed(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StrokeDashed(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapPolylineStatics::PathProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PathProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapPolylineStatics::StrokeDashedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StrokeDashedProperty(put(value))); - return value; -} - -template bool impl_IStreetsideExperience::AddressTextVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AddressTextVisible(&value)); - return value; -} - -template void impl_IStreetsideExperience::AddressTextVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AddressTextVisible(value)); -} - -template bool impl_IStreetsideExperience::CursorVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CursorVisible(&value)); - return value; -} - -template void impl_IStreetsideExperience::CursorVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CursorVisible(value)); -} - -template bool impl_IStreetsideExperience::OverviewMapVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_OverviewMapVisible(&value)); - return value; -} - -template void impl_IStreetsideExperience::OverviewMapVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OverviewMapVisible(value)); -} - -template bool impl_IStreetsideExperience::StreetLabelsVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_StreetLabelsVisible(&value)); - return value; -} - -template void impl_IStreetsideExperience::StreetLabelsVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StreetLabelsVisible(value)); -} - -template bool impl_IStreetsideExperience::ExitButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ExitButtonVisible(&value)); - return value; -} - -template void impl_IStreetsideExperience::ExitButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ExitButtonVisible(value)); -} - -template bool impl_IStreetsideExperience::ZoomButtonsVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ZoomButtonsVisible(&value)); - return value; -} - -template void impl_IStreetsideExperience::ZoomButtonsVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ZoomButtonsVisible(value)); -} - -template Windows::UI::Xaml::Controls::Maps::StreetsideExperience impl_IStreetsideExperienceFactory::CreateInstanceWithPanorama(const Windows::UI::Xaml::Controls::Maps::StreetsidePanorama & panorama) const -{ - Windows::UI::Xaml::Controls::Maps::StreetsideExperience instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithPanorama(get(panorama), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Maps::StreetsideExperience impl_IStreetsideExperienceFactory::CreateInstanceWithPanoramaHeadingPitchAndFieldOfView(const Windows::UI::Xaml::Controls::Maps::StreetsidePanorama & panorama, double headingInDegrees, double pitchInDegrees, double fieldOfViewInDegrees) const -{ - Windows::UI::Xaml::Controls::Maps::StreetsideExperience instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithPanoramaHeadingPitchAndFieldOfView(get(panorama), headingInDegrees, pitchInDegrees, fieldOfViewInDegrees, put(instance))); - return instance; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapControl::Center() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Center(put(value))); - return value; -} - -template void impl_IMapControl::Center(const Windows::Devices::Geolocation::Geopoint & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Center(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IMapControl::Children() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Children(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapColorScheme impl_IMapControl::ColorScheme() const -{ - Windows::UI::Xaml::Controls::Maps::MapColorScheme value {}; - check_hresult(static_cast(static_cast(*this))->get_ColorScheme(&value)); - return value; -} - -template void impl_IMapControl::ColorScheme(Windows::UI::Xaml::Controls::Maps::MapColorScheme value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ColorScheme(value)); -} - -template double impl_IMapControl::DesiredPitch() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredPitch(&value)); - return value; -} - -template void impl_IMapControl::DesiredPitch(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredPitch(value)); -} - -template double impl_IMapControl::Heading() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Heading(&value)); - return value; -} - -template void impl_IMapControl::Heading(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Heading(value)); -} - -template bool impl_IMapControl::LandmarksVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_LandmarksVisible(&value)); - return value; -} - -template void impl_IMapControl::LandmarksVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LandmarksVisible(value)); -} - -template Windows::UI::Xaml::Controls::Maps::MapLoadingStatus impl_IMapControl::LoadingStatus() const -{ - Windows::UI::Xaml::Controls::Maps::MapLoadingStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_LoadingStatus(&value)); - return value; -} - -template hstring impl_IMapControl::MapServiceToken() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MapServiceToken(put(value))); - return value; -} - -template void impl_IMapControl::MapServiceToken(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MapServiceToken(get(value))); -} - -template double impl_IMapControl::MaxZoomLevel() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxZoomLevel(&value)); - return value; -} - -template double impl_IMapControl::MinZoomLevel() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MinZoomLevel(&value)); - return value; -} - -template bool impl_IMapControl::PedestrianFeaturesVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PedestrianFeaturesVisible(&value)); - return value; -} - -template void impl_IMapControl::PedestrianFeaturesVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PedestrianFeaturesVisible(value)); -} - -template double impl_IMapControl::Pitch() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Pitch(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapStyle impl_IMapControl::Style() const -{ - Windows::UI::Xaml::Controls::Maps::MapStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_Style(&value)); - return value; -} - -template void impl_IMapControl::Style(Windows::UI::Xaml::Controls::Maps::MapStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Style(value)); -} - -template bool impl_IMapControl::TrafficFlowVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_TrafficFlowVisible(&value)); - return value; -} - -template void impl_IMapControl::TrafficFlowVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TrafficFlowVisible(value)); -} - -template Windows::Foundation::Point impl_IMapControl::TransformOrigin() const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->get_TransformOrigin(put(value))); - return value; -} - -template void impl_IMapControl::TransformOrigin(const Windows::Foundation::Point & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransformOrigin(get(value))); -} - -template Windows::UI::Xaml::Controls::Maps::MapWatermarkMode impl_IMapControl::WatermarkMode() const -{ - Windows::UI::Xaml::Controls::Maps::MapWatermarkMode value {}; - check_hresult(static_cast(static_cast(*this))->get_WatermarkMode(&value)); - return value; -} - -template void impl_IMapControl::WatermarkMode(Windows::UI::Xaml::Controls::Maps::MapWatermarkMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_WatermarkMode(value)); -} - -template double impl_IMapControl::ZoomLevel() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ZoomLevel(&value)); - return value; -} - -template void impl_IMapControl::ZoomLevel(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ZoomLevel(value)); -} - -template Windows::Foundation::Collections::IVector impl_IMapControl::MapElements() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_MapElements(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IMapControl::Routes() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Routes(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IMapControl::TileSources() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_TileSources(put(value))); - return value; -} - -template event_token impl_IMapControl::CenterChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CenterChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl::CenterChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl::remove_CenterChanged, CenterChanged(value)); -} - -template void impl_IMapControl::CenterChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CenterChanged(token)); -} - -template event_token impl_IMapControl::HeadingChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_HeadingChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl::HeadingChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl::remove_HeadingChanged, HeadingChanged(value)); -} - -template void impl_IMapControl::HeadingChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HeadingChanged(token)); -} - -template event_token impl_IMapControl::LoadingStatusChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LoadingStatusChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl::LoadingStatusChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl::remove_LoadingStatusChanged, LoadingStatusChanged(value)); -} - -template void impl_IMapControl::LoadingStatusChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LoadingStatusChanged(token)); -} - -template event_token impl_IMapControl::MapDoubleTapped(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MapDoubleTapped(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl::MapDoubleTapped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl::remove_MapDoubleTapped, MapDoubleTapped(value)); -} - -template void impl_IMapControl::MapDoubleTapped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MapDoubleTapped(token)); -} - -template event_token impl_IMapControl::MapHolding(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MapHolding(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl::MapHolding(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl::remove_MapHolding, MapHolding(value)); -} - -template void impl_IMapControl::MapHolding(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MapHolding(token)); -} - -template event_token impl_IMapControl::MapTapped(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MapTapped(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl::MapTapped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl::remove_MapTapped, MapTapped(value)); -} - -template void impl_IMapControl::MapTapped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MapTapped(token)); -} - -template event_token impl_IMapControl::PitchChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PitchChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl::PitchChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl::remove_PitchChanged, PitchChanged(value)); -} - -template void impl_IMapControl::PitchChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PitchChanged(token)); -} - -template event_token impl_IMapControl::TransformOriginChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TransformOriginChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl::TransformOriginChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl::remove_TransformOriginChanged, TransformOriginChanged(value)); -} - -template void impl_IMapControl::TransformOriginChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TransformOriginChanged(token)); -} - -template event_token impl_IMapControl::ZoomLevelChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ZoomLevelChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl::ZoomLevelChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl::remove_ZoomLevelChanged, ZoomLevelChanged(value)); -} - -template void impl_IMapControl::ZoomLevelChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ZoomLevelChanged(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_IMapControl::FindMapElementsAtOffset(const Windows::Foundation::Point & offset) const -{ - Windows::Foundation::Collections::IVectorView returnValue; - check_hresult(static_cast(static_cast(*this))->abi_FindMapElementsAtOffset(get(offset), put(returnValue))); - return returnValue; -} - -template void impl_IMapControl::GetLocationFromOffset(const Windows::Foundation::Point & offset, Windows::Devices::Geolocation::Geopoint & location) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetLocationFromOffset(get(offset), put(location))); -} - -template void impl_IMapControl::GetOffsetFromLocation(const Windows::Devices::Geolocation::Geopoint & location, Windows::Foundation::Point & offset) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetOffsetFromLocation(get(location), put(offset))); -} - -template void impl_IMapControl::IsLocationInView(const Windows::Devices::Geolocation::Geopoint & location, bool & isInView) const -{ - check_hresult(static_cast(static_cast(*this))->abi_IsLocationInView(get(location), &isInView)); -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl::TrySetViewBoundsAsync(const Windows::Devices::Geolocation::GeoboundingBox & bounds, const Windows::Foundation::IReference & margin, Windows::UI::Xaml::Controls::Maps::MapAnimationKind animation) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TrySetViewBoundsAsync(get(bounds), get(margin), animation, put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl::TrySetViewAsync(const Windows::Devices::Geolocation::Geopoint & center) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TrySetViewWithCenterAsync(get(center), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl::TrySetViewAsync(const Windows::Devices::Geolocation::Geopoint & center, const Windows::Foundation::IReference & zoomLevel) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TrySetViewWithCenterAndZoomAsync(get(center), get(zoomLevel), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl::TrySetViewAsync(const Windows::Devices::Geolocation::Geopoint & center, const Windows::Foundation::IReference & zoomLevel, const Windows::Foundation::IReference & heading, const Windows::Foundation::IReference & desiredPitch) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TrySetViewWithCenterZoomHeadingAndPitchAsync(get(center), get(zoomLevel), get(heading), get(desiredPitch), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl::TrySetViewAsync(const Windows::Devices::Geolocation::Geopoint & center, const Windows::Foundation::IReference & zoomLevel, const Windows::Foundation::IReference & heading, const Windows::Foundation::IReference & desiredPitch, Windows::UI::Xaml::Controls::Maps::MapAnimationKind animation) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TrySetViewWithCenterZoomHeadingPitchAndAnimationAsync(get(center), get(zoomLevel), get(heading), get(desiredPitch), animation, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::CenterProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CenterProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::ChildrenProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChildrenProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::ColorSchemeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ColorSchemeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::DesiredPitchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DesiredPitchProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::HeadingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeadingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::LandmarksVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LandmarksVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::LoadingStatusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LoadingStatusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::MapServiceTokenProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MapServiceTokenProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::PedestrianFeaturesVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PedestrianFeaturesVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::PitchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PitchProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::StyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::TrafficFlowVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TrafficFlowVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::TransformOriginProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TransformOriginProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::WatermarkModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WatermarkModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::ZoomLevelProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ZoomLevelProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::MapElementsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MapElementsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::RoutesProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RoutesProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::TileSourcesProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TileSourcesProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::LocationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LocationProperty(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapControlStatics::GetLocation(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetLocation(get(element), put(value))); - return value; -} - -template void impl_IMapControlStatics::SetLocation(const Windows::UI::Xaml::DependencyObject & element, const Windows::Devices::Geolocation::Geopoint & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLocation(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics::NormalizedAnchorPointProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NormalizedAnchorPointProperty(put(value))); - return value; -} - -template Windows::Foundation::Point impl_IMapControlStatics::GetNormalizedAnchorPoint(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::Foundation::Point value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetNormalizedAnchorPoint(get(element), put(value))); - return value; -} - -template void impl_IMapControlStatics::SetNormalizedAnchorPoint(const Windows::UI::Xaml::DependencyObject & element, const Windows::Foundation::Point & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetNormalizedAnchorPoint(get(element), get(value))); -} - -template bool impl_IMapControl2::BusinessLandmarksVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_BusinessLandmarksVisible(&value)); - return value; -} - -template void impl_IMapControl2::BusinessLandmarksVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BusinessLandmarksVisible(value)); -} - -template bool impl_IMapControl2::TransitFeaturesVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_TransitFeaturesVisible(&value)); - return value; -} - -template void impl_IMapControl2::TransitFeaturesVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransitFeaturesVisible(value)); -} - -template Windows::UI::Xaml::Controls::Maps::MapPanInteractionMode impl_IMapControl2::PanInteractionMode() const -{ - Windows::UI::Xaml::Controls::Maps::MapPanInteractionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_PanInteractionMode(&value)); - return value; -} - -template void impl_IMapControl2::PanInteractionMode(Windows::UI::Xaml::Controls::Maps::MapPanInteractionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PanInteractionMode(value)); -} - -template Windows::UI::Xaml::Controls::Maps::MapInteractionMode impl_IMapControl2::RotateInteractionMode() const -{ - Windows::UI::Xaml::Controls::Maps::MapInteractionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_RotateInteractionMode(&value)); - return value; -} - -template void impl_IMapControl2::RotateInteractionMode(Windows::UI::Xaml::Controls::Maps::MapInteractionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RotateInteractionMode(value)); -} - -template Windows::UI::Xaml::Controls::Maps::MapInteractionMode impl_IMapControl2::TiltInteractionMode() const -{ - Windows::UI::Xaml::Controls::Maps::MapInteractionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_TiltInteractionMode(&value)); - return value; -} - -template void impl_IMapControl2::TiltInteractionMode(Windows::UI::Xaml::Controls::Maps::MapInteractionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TiltInteractionMode(value)); -} - -template Windows::UI::Xaml::Controls::Maps::MapInteractionMode impl_IMapControl2::ZoomInteractionMode() const -{ - Windows::UI::Xaml::Controls::Maps::MapInteractionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ZoomInteractionMode(&value)); - return value; -} - -template void impl_IMapControl2::ZoomInteractionMode(Windows::UI::Xaml::Controls::Maps::MapInteractionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ZoomInteractionMode(value)); -} - -template bool impl_IMapControl2::Is3DSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Is3DSupported(&value)); - return value; -} - -template bool impl_IMapControl2::IsStreetsideSupported() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStreetsideSupported(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapScene impl_IMapControl2::Scene() const -{ - Windows::UI::Xaml::Controls::Maps::MapScene value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Scene(put(value))); - return value; -} - -template void impl_IMapControl2::Scene(const Windows::UI::Xaml::Controls::Maps::MapScene & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Scene(get(value))); -} - -template Windows::UI::Xaml::Controls::Maps::MapCamera impl_IMapControl2::ActualCamera() const -{ - Windows::UI::Xaml::Controls::Maps::MapCamera value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ActualCamera(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapCamera impl_IMapControl2::TargetCamera() const -{ - Windows::UI::Xaml::Controls::Maps::MapCamera value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TargetCamera(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Maps::MapCustomExperience impl_IMapControl2::CustomExperience() const -{ - Windows::UI::Xaml::Controls::Maps::MapCustomExperience value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CustomExperience(put(value))); - return value; -} - -template void impl_IMapControl2::CustomExperience(const Windows::UI::Xaml::Controls::Maps::MapCustomExperience & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CustomExperience(get(value))); -} - -template event_token impl_IMapControl2::MapElementClick(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MapElementClick(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl2::MapElementClick(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl2::remove_MapElementClick, MapElementClick(value)); -} - -template void impl_IMapControl2::MapElementClick(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MapElementClick(token)); -} - -template event_token impl_IMapControl2::MapElementPointerEntered(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MapElementPointerEntered(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl2::MapElementPointerEntered(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl2::remove_MapElementPointerEntered, MapElementPointerEntered(value)); -} - -template void impl_IMapControl2::MapElementPointerEntered(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MapElementPointerEntered(token)); -} - -template event_token impl_IMapControl2::MapElementPointerExited(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MapElementPointerExited(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl2::MapElementPointerExited(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl2::remove_MapElementPointerExited, MapElementPointerExited(value)); -} - -template void impl_IMapControl2::MapElementPointerExited(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MapElementPointerExited(token)); -} - -template event_token impl_IMapControl2::ActualCameraChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ActualCameraChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl2::ActualCameraChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl2::remove_ActualCameraChanged, ActualCameraChanged(value)); -} - -template void impl_IMapControl2::ActualCameraChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ActualCameraChanged(token)); -} - -template event_token impl_IMapControl2::ActualCameraChanging(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ActualCameraChanging(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl2::ActualCameraChanging(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl2::remove_ActualCameraChanging, ActualCameraChanging(value)); -} - -template void impl_IMapControl2::ActualCameraChanging(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ActualCameraChanging(token)); -} - -template event_token impl_IMapControl2::TargetCameraChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TargetCameraChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl2::TargetCameraChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl2::remove_TargetCameraChanged, TargetCameraChanged(value)); -} - -template void impl_IMapControl2::TargetCameraChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TargetCameraChanged(token)); -} - -template event_token impl_IMapControl2::CustomExperienceChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CustomExperienceChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl2::CustomExperienceChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl2::remove_CustomExperienceChanged, CustomExperienceChanged(value)); -} - -template void impl_IMapControl2::CustomExperienceChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CustomExperienceChanged(token)); -} - -template void impl_IMapControl2::StartContinuousRotate(double rateInDegreesPerSecond) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartContinuousRotate(rateInDegreesPerSecond)); -} - -template void impl_IMapControl2::StopContinuousRotate() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopContinuousRotate()); -} - -template void impl_IMapControl2::StartContinuousTilt(double rateInDegreesPerSecond) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartContinuousTilt(rateInDegreesPerSecond)); -} - -template void impl_IMapControl2::StopContinuousTilt() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopContinuousTilt()); -} - -template void impl_IMapControl2::StartContinuousZoom(double rateOfChangePerSecond) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartContinuousZoom(rateOfChangePerSecond)); -} - -template void impl_IMapControl2::StopContinuousZoom() const -{ - check_hresult(static_cast(static_cast(*this))->abi_StopContinuousZoom()); -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl2::TryRotateAsync(double degrees) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TryRotateAsync(degrees, put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl2::TryRotateToAsync(double angleInDegrees) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TryRotateToAsync(angleInDegrees, put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl2::TryTiltAsync(double degrees) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TryTiltAsync(degrees, put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl2::TryTiltToAsync(double angleInDegrees) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TryTiltToAsync(angleInDegrees, put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl2::TryZoomInAsync() const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TryZoomInAsync(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl2::TryZoomOutAsync() const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TryZoomOutAsync(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl2::TryZoomToAsync(double zoomLevel) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TryZoomToAsync(zoomLevel, put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl2::TrySetSceneAsync(const Windows::UI::Xaml::Controls::Maps::MapScene & scene) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TrySetSceneAsync(get(scene), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IMapControl2::TrySetSceneAsync(const Windows::UI::Xaml::Controls::Maps::MapScene & scene, Windows::UI::Xaml::Controls::Maps::MapAnimationKind animationKind) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_TrySetSceneWithAnimationAsync(get(scene), animationKind, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics2::BusinessLandmarksVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BusinessLandmarksVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics2::TransitFeaturesVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TransitFeaturesVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics2::PanInteractionModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PanInteractionModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics2::RotateInteractionModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RotateInteractionModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics2::TiltInteractionModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TiltInteractionModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics2::ZoomInteractionModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ZoomInteractionModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics2::Is3DSupportedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Is3DSupportedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics2::IsStreetsideSupportedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsStreetsideSupportedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics2::SceneProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SceneProperty(put(value))); - return value; -} - -template event_token impl_IMapControl3::MapRightTapped(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MapRightTapped(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControl3::MapRightTapped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControl3::remove_MapRightTapped, MapRightTapped(value)); -} - -template void impl_IMapControl3::MapRightTapped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MapRightTapped(token)); -} - -template bool impl_IMapControl4::BusinessLandmarksEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_BusinessLandmarksEnabled(&value)); - return value; -} - -template void impl_IMapControl4::BusinessLandmarksEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BusinessLandmarksEnabled(value)); -} - -template bool impl_IMapControl4::TransitFeaturesEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_TransitFeaturesEnabled(&value)); - return value; -} - -template void impl_IMapControl4::TransitFeaturesEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransitFeaturesEnabled(value)); -} - -template Windows::Devices::Geolocation::Geopath impl_IMapControl4::GetVisibleRegion(Windows::UI::Xaml::Controls::Maps::MapVisibleRegionKind region) const -{ - Windows::Devices::Geolocation::Geopath returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetVisibleRegion(region, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics4::BusinessLandmarksEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BusinessLandmarksEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMapControlStatics4::TransitFeaturesEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TransitFeaturesEnabledProperty(put(value))); - return value; -} - -template event_token impl_IMapControlDataHelper::BusinessLandmarkClick(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BusinessLandmarkClick(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControlDataHelper::BusinessLandmarkClick(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControlDataHelper::remove_BusinessLandmarkClick, BusinessLandmarkClick(value)); -} - -template void impl_IMapControlDataHelper::BusinessLandmarkClick(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BusinessLandmarkClick(token)); -} - -template event_token impl_IMapControlDataHelper::TransitFeatureClick(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TransitFeatureClick(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControlDataHelper::TransitFeatureClick(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControlDataHelper::remove_TransitFeatureClick, TransitFeatureClick(value)); -} - -template void impl_IMapControlDataHelper::TransitFeatureClick(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TransitFeatureClick(token)); -} - -template event_token impl_IMapControlDataHelper::BusinessLandmarkRightTapped(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BusinessLandmarkRightTapped(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControlDataHelper::BusinessLandmarkRightTapped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControlDataHelper::remove_BusinessLandmarkRightTapped, BusinessLandmarkRightTapped(value)); -} - -template void impl_IMapControlDataHelper::BusinessLandmarkRightTapped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BusinessLandmarkRightTapped(token)); -} - -template event_token impl_IMapControlDataHelper::TransitFeatureRightTapped(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TransitFeatureRightTapped(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControlDataHelper::TransitFeatureRightTapped(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControlDataHelper::remove_TransitFeatureRightTapped, TransitFeatureRightTapped(value)); -} - -template void impl_IMapControlDataHelper::TransitFeatureRightTapped(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TransitFeatureRightTapped(token)); -} - -template event_token impl_IMapControlDataHelper2::BusinessLandmarkPointerEntered(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BusinessLandmarkPointerEntered(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControlDataHelper2::BusinessLandmarkPointerEntered(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControlDataHelper2::remove_BusinessLandmarkPointerEntered, BusinessLandmarkPointerEntered(value)); -} - -template void impl_IMapControlDataHelper2::BusinessLandmarkPointerEntered(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BusinessLandmarkPointerEntered(token)); -} - -template event_token impl_IMapControlDataHelper2::TransitFeaturePointerEntered(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TransitFeaturePointerEntered(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControlDataHelper2::TransitFeaturePointerEntered(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControlDataHelper2::remove_TransitFeaturePointerEntered, TransitFeaturePointerEntered(value)); -} - -template void impl_IMapControlDataHelper2::TransitFeaturePointerEntered(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TransitFeaturePointerEntered(token)); -} - -template event_token impl_IMapControlDataHelper2::BusinessLandmarkPointerExited(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BusinessLandmarkPointerExited(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControlDataHelper2::BusinessLandmarkPointerExited(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControlDataHelper2::remove_BusinessLandmarkPointerExited, BusinessLandmarkPointerExited(value)); -} - -template void impl_IMapControlDataHelper2::BusinessLandmarkPointerExited(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BusinessLandmarkPointerExited(token)); -} - -template event_token impl_IMapControlDataHelper2::TransitFeaturePointerExited(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TransitFeaturePointerExited(get(value), &token)); - return token; -} - -template event_revoker impl_IMapControlDataHelper2::TransitFeaturePointerExited(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Maps::IMapControlDataHelper2::remove_TransitFeaturePointerExited, TransitFeaturePointerExited(value)); -} - -template void impl_IMapControlDataHelper2::TransitFeaturePointerExited(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TransitFeaturePointerExited(token)); -} - -template Windows::UI::Xaml::Controls::Maps::MapControlDataHelper impl_IMapControlDataHelperFactory::CreateInstance(const Windows::UI::Xaml::Controls::Maps::MapControl & map) const -{ - Windows::UI::Xaml::Controls::Maps::MapControlDataHelper instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(map), put(instance))); - return instance; -} - -template Windows::Foundation::Collections::IVectorView impl_IMapControlBusinessLandmarkClickEventArgs::LocalLocations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_LocalLocations(put(value))); - return value; -} - -template hstring impl_IMapControlTransitFeatureClickEventArgs::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapControlTransitFeatureClickEventArgs::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IMapControlTransitFeatureClickEventArgs::TransitProperties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_TransitProperties(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMapControlBusinessLandmarkRightTappedEventArgs::LocalLocations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_LocalLocations(put(value))); - return value; -} - -template hstring impl_IMapControlTransitFeatureRightTappedEventArgs::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapControlTransitFeatureRightTappedEventArgs::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IMapControlTransitFeatureRightTappedEventArgs::TransitProperties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_TransitProperties(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMapControlBusinessLandmarkPointerEnteredEventArgs::LocalLocations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_LocalLocations(put(value))); - return value; -} - -template hstring impl_IMapControlTransitFeaturePointerEnteredEventArgs::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapControlTransitFeaturePointerEnteredEventArgs::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IMapControlTransitFeaturePointerEnteredEventArgs::TransitProperties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_TransitProperties(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IMapControlBusinessLandmarkPointerExitedEventArgs::LocalLocations() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_LocalLocations(put(value))); - return value; -} - -template hstring impl_IMapControlTransitFeaturePointerExitedEventArgs::DisplayName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayName(put(value))); - return value; -} - -template Windows::Devices::Geolocation::Geopoint impl_IMapControlTransitFeaturePointerExitedEventArgs::Location() const -{ - Windows::Devices::Geolocation::Geopoint value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Location(put(value))); - return value; -} - -template Windows::Foundation::Collections::IMapView impl_IMapControlTransitFeaturePointerExitedEventArgs::TransitProperties() const -{ - Windows::Foundation::Collections::IMapView value; - check_hresult(static_cast(static_cast(*this))->get_TransitProperties(put(value))); - return value; -} - -inline CustomMapTileDataSource::CustomMapTileDataSource() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline HttpMapTileDataSource::HttpMapTileDataSource() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline HttpMapTileDataSource::HttpMapTileDataSource(hstring_ref uriFormatString) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithUriFormatString(uriFormatString, outer, inner)); -} - -inline LocalMapTileDataSource::LocalMapTileDataSource() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline LocalMapTileDataSource::LocalMapTileDataSource(hstring_ref uriFormatString) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithUriFormatString(uriFormatString, outer, inner)); -} - -inline MapActualCameraChangedEventArgs::MapActualCameraChangedEventArgs() : - MapActualCameraChangedEventArgs(activate_instance()) -{} - -inline MapActualCameraChangingEventArgs::MapActualCameraChangingEventArgs() : - MapActualCameraChangingEventArgs(activate_instance()) -{} - -inline MapCamera::MapCamera(const Windows::Devices::Geolocation::Geopoint & location) : - MapCamera(get_activation_factory().CreateInstanceWithLocation(location)) -{} - -inline MapCamera::MapCamera(const Windows::Devices::Geolocation::Geopoint & location, double headingInDegrees) : - MapCamera(get_activation_factory().CreateInstanceWithLocationAndHeading(location, headingInDegrees)) -{} - -inline MapCamera::MapCamera(const Windows::Devices::Geolocation::Geopoint & location, double headingInDegrees, double pitchInDegrees) : - MapCamera(get_activation_factory().CreateInstanceWithLocationHeadingAndPitch(location, headingInDegrees, pitchInDegrees)) -{} - -inline MapCamera::MapCamera(const Windows::Devices::Geolocation::Geopoint & location, double headingInDegrees, double pitchInDegrees, double rollInDegrees, double fieldOfViewInDegrees) : - MapCamera(get_activation_factory().CreateInstanceWithLocationHeadingPitchRollAndFieldOfView(location, headingInDegrees, pitchInDegrees, rollInDegrees, fieldOfViewInDegrees)) -{} - -inline MapControl::MapControl() : - MapControl(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty MapControl::CenterProperty() -{ - return get_activation_factory().CenterProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::ChildrenProperty() -{ - return get_activation_factory().ChildrenProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::ColorSchemeProperty() -{ - return get_activation_factory().ColorSchemeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::DesiredPitchProperty() -{ - return get_activation_factory().DesiredPitchProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::HeadingProperty() -{ - return get_activation_factory().HeadingProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::LandmarksVisibleProperty() -{ - return get_activation_factory().LandmarksVisibleProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::LoadingStatusProperty() -{ - return get_activation_factory().LoadingStatusProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::MapServiceTokenProperty() -{ - return get_activation_factory().MapServiceTokenProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::PedestrianFeaturesVisibleProperty() -{ - return get_activation_factory().PedestrianFeaturesVisibleProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::PitchProperty() -{ - return get_activation_factory().PitchProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::StyleProperty() -{ - return get_activation_factory().StyleProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::TrafficFlowVisibleProperty() -{ - return get_activation_factory().TrafficFlowVisibleProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::TransformOriginProperty() -{ - return get_activation_factory().TransformOriginProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::WatermarkModeProperty() -{ - return get_activation_factory().WatermarkModeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::ZoomLevelProperty() -{ - return get_activation_factory().ZoomLevelProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::MapElementsProperty() -{ - return get_activation_factory().MapElementsProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::RoutesProperty() -{ - return get_activation_factory().RoutesProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::TileSourcesProperty() -{ - return get_activation_factory().TileSourcesProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::LocationProperty() -{ - return get_activation_factory().LocationProperty(); -} - -inline Windows::Devices::Geolocation::Geopoint MapControl::GetLocation(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetLocation(element); -} - -inline void MapControl::SetLocation(const Windows::UI::Xaml::DependencyObject & element, const Windows::Devices::Geolocation::Geopoint & value) -{ - get_activation_factory().SetLocation(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::NormalizedAnchorPointProperty() -{ - return get_activation_factory().NormalizedAnchorPointProperty(); -} - -inline Windows::Foundation::Point MapControl::GetNormalizedAnchorPoint(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetNormalizedAnchorPoint(element); -} - -inline void MapControl::SetNormalizedAnchorPoint(const Windows::UI::Xaml::DependencyObject & element, const Windows::Foundation::Point & value) -{ - get_activation_factory().SetNormalizedAnchorPoint(element, value); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::BusinessLandmarksVisibleProperty() -{ - return get_activation_factory().BusinessLandmarksVisibleProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::TransitFeaturesVisibleProperty() -{ - return get_activation_factory().TransitFeaturesVisibleProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::PanInteractionModeProperty() -{ - return get_activation_factory().PanInteractionModeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::RotateInteractionModeProperty() -{ - return get_activation_factory().RotateInteractionModeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::TiltInteractionModeProperty() -{ - return get_activation_factory().TiltInteractionModeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::ZoomInteractionModeProperty() -{ - return get_activation_factory().ZoomInteractionModeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::Is3DSupportedProperty() -{ - return get_activation_factory().Is3DSupportedProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::IsStreetsideSupportedProperty() -{ - return get_activation_factory().IsStreetsideSupportedProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::SceneProperty() -{ - return get_activation_factory().SceneProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::BusinessLandmarksEnabledProperty() -{ - return get_activation_factory().BusinessLandmarksEnabledProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapControl::TransitFeaturesEnabledProperty() -{ - return get_activation_factory().TransitFeaturesEnabledProperty(); -} - -inline MapControlBusinessLandmarkClickEventArgs::MapControlBusinessLandmarkClickEventArgs() : - MapControlBusinessLandmarkClickEventArgs(activate_instance()) -{} - -inline MapControlBusinessLandmarkPointerEnteredEventArgs::MapControlBusinessLandmarkPointerEnteredEventArgs() : - MapControlBusinessLandmarkPointerEnteredEventArgs(activate_instance()) -{} - -inline MapControlBusinessLandmarkPointerExitedEventArgs::MapControlBusinessLandmarkPointerExitedEventArgs() : - MapControlBusinessLandmarkPointerExitedEventArgs(activate_instance()) -{} - -inline MapControlBusinessLandmarkRightTappedEventArgs::MapControlBusinessLandmarkRightTappedEventArgs() : - MapControlBusinessLandmarkRightTappedEventArgs(activate_instance()) -{} - -inline MapControlDataHelper::MapControlDataHelper(const Windows::UI::Xaml::Controls::Maps::MapControl & map) : - MapControlDataHelper(get_activation_factory().CreateInstance(map)) -{} - -inline MapControlTransitFeatureClickEventArgs::MapControlTransitFeatureClickEventArgs() : - MapControlTransitFeatureClickEventArgs(activate_instance()) -{} - -inline MapControlTransitFeaturePointerEnteredEventArgs::MapControlTransitFeaturePointerEnteredEventArgs() : - MapControlTransitFeaturePointerEnteredEventArgs(activate_instance()) -{} - -inline MapControlTransitFeaturePointerExitedEventArgs::MapControlTransitFeaturePointerExitedEventArgs() : - MapControlTransitFeaturePointerExitedEventArgs(activate_instance()) -{} - -inline MapControlTransitFeatureRightTappedEventArgs::MapControlTransitFeatureRightTappedEventArgs() : - MapControlTransitFeatureRightTappedEventArgs(activate_instance()) -{} - -inline MapCustomExperience::MapCustomExperience() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline MapCustomExperienceChangedEventArgs::MapCustomExperienceChangedEventArgs() : - MapCustomExperienceChangedEventArgs(activate_instance()) -{} - -inline MapElement::MapElement() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline Windows::UI::Xaml::DependencyProperty MapElement::ZIndexProperty() -{ - return get_activation_factory().ZIndexProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapElement::VisibleProperty() -{ - return get_activation_factory().VisibleProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapElement::MapTabIndexProperty() -{ - return get_activation_factory().MapTabIndexProperty(); -} - -inline MapElementClickEventArgs::MapElementClickEventArgs() : - MapElementClickEventArgs(activate_instance()) -{} - -inline MapElementPointerEnteredEventArgs::MapElementPointerEnteredEventArgs() : - MapElementPointerEnteredEventArgs(activate_instance()) -{} - -inline MapElementPointerExitedEventArgs::MapElementPointerExitedEventArgs() : - MapElementPointerExitedEventArgs(activate_instance()) -{} - -inline MapIcon::MapIcon() : - MapIcon(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty MapIcon::LocationProperty() -{ - return get_activation_factory().LocationProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapIcon::TitleProperty() -{ - return get_activation_factory().TitleProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapIcon::NormalizedAnchorPointProperty() -{ - return get_activation_factory().NormalizedAnchorPointProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapIcon::CollisionBehaviorDesiredProperty() -{ - return get_activation_factory().CollisionBehaviorDesiredProperty(); -} - -inline MapInputEventArgs::MapInputEventArgs() : - MapInputEventArgs(activate_instance()) -{} - -inline MapItemsControl::MapItemsControl() : - MapItemsControl(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty MapItemsControl::ItemsSourceProperty() -{ - return get_activation_factory().ItemsSourceProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapItemsControl::ItemsProperty() -{ - return get_activation_factory().ItemsProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapItemsControl::ItemTemplateProperty() -{ - return get_activation_factory().ItemTemplateProperty(); -} - -inline MapPolygon::MapPolygon() : - MapPolygon(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty MapPolygon::PathProperty() -{ - return get_activation_factory().PathProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapPolygon::StrokeThicknessProperty() -{ - return get_activation_factory().StrokeThicknessProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapPolygon::StrokeDashedProperty() -{ - return get_activation_factory().StrokeDashedProperty(); -} - -inline MapPolyline::MapPolyline() : - MapPolyline(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty MapPolyline::PathProperty() -{ - return get_activation_factory().PathProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapPolyline::StrokeDashedProperty() -{ - return get_activation_factory().StrokeDashedProperty(); -} - -inline MapRightTappedEventArgs::MapRightTappedEventArgs() : - MapRightTappedEventArgs(activate_instance()) -{} - -inline MapRouteView::MapRouteView(const Windows::Services::Maps::MapRoute & route) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithMapRoute(route, outer, inner)); -} - -inline Windows::UI::Xaml::Controls::Maps::MapScene MapScene::CreateFromBoundingBox(const Windows::Devices::Geolocation::GeoboundingBox & bounds) -{ - return get_activation_factory().CreateFromBoundingBox(bounds); -} - -inline Windows::UI::Xaml::Controls::Maps::MapScene MapScene::CreateFromBoundingBox(const Windows::Devices::Geolocation::GeoboundingBox & bounds, double headingInDegrees, double pitchInDegrees) -{ - return get_activation_factory().CreateFromBoundingBox(bounds, headingInDegrees, pitchInDegrees); -} - -inline Windows::UI::Xaml::Controls::Maps::MapScene MapScene::CreateFromCamera(const Windows::UI::Xaml::Controls::Maps::MapCamera & camera) -{ - return get_activation_factory().CreateFromCamera(camera); -} - -inline Windows::UI::Xaml::Controls::Maps::MapScene MapScene::CreateFromLocation(const Windows::Devices::Geolocation::Geopoint & location) -{ - return get_activation_factory().CreateFromLocation(location); -} - -inline Windows::UI::Xaml::Controls::Maps::MapScene MapScene::CreateFromLocation(const Windows::Devices::Geolocation::Geopoint & location, double headingInDegrees, double pitchInDegrees) -{ - return get_activation_factory().CreateFromLocation(location, headingInDegrees, pitchInDegrees); -} - -inline Windows::UI::Xaml::Controls::Maps::MapScene MapScene::CreateFromLocationAndRadius(const Windows::Devices::Geolocation::Geopoint & location, double radiusInMeters) -{ - return get_activation_factory().CreateFromLocationAndRadius(location, radiusInMeters); -} - -inline Windows::UI::Xaml::Controls::Maps::MapScene MapScene::CreateFromLocationAndRadius(const Windows::Devices::Geolocation::Geopoint & location, double radiusInMeters, double headingInDegrees, double pitchInDegrees) -{ - return get_activation_factory().CreateFromLocationAndRadius(location, radiusInMeters, headingInDegrees, pitchInDegrees); -} - -inline Windows::UI::Xaml::Controls::Maps::MapScene MapScene::CreateFromLocations(const Windows::Foundation::Collections::IIterable & locations) -{ - return get_activation_factory().CreateFromLocations(locations); -} - -inline Windows::UI::Xaml::Controls::Maps::MapScene MapScene::CreateFromLocations(const Windows::Foundation::Collections::IIterable & locations, double headingInDegrees, double pitchInDegrees) -{ - return get_activation_factory().CreateFromLocations(locations, headingInDegrees, pitchInDegrees); -} - -inline MapTargetCameraChangedEventArgs::MapTargetCameraChangedEventArgs() : - MapTargetCameraChangedEventArgs(activate_instance()) -{} - -inline MapTileBitmapRequest::MapTileBitmapRequest() : - MapTileBitmapRequest(activate_instance()) -{} - -inline MapTileBitmapRequestDeferral::MapTileBitmapRequestDeferral() : - MapTileBitmapRequestDeferral(activate_instance()) -{} - -inline MapTileBitmapRequestedEventArgs::MapTileBitmapRequestedEventArgs() : - MapTileBitmapRequestedEventArgs(activate_instance()) -{} - -inline MapTileDataSource::MapTileDataSource() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline MapTileSource::MapTileSource() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline MapTileSource::MapTileSource(const Windows::UI::Xaml::Controls::Maps::MapTileDataSource & dataSource) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithDataSource(dataSource, outer, inner)); -} - -inline MapTileSource::MapTileSource(const Windows::UI::Xaml::Controls::Maps::MapTileDataSource & dataSource, const Windows::UI::Xaml::Controls::Maps::MapZoomLevelRange & zoomLevelRange) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithDataSourceAndZoomRange(dataSource, zoomLevelRange, outer, inner)); -} - -inline MapTileSource::MapTileSource(const Windows::UI::Xaml::Controls::Maps::MapTileDataSource & dataSource, const Windows::UI::Xaml::Controls::Maps::MapZoomLevelRange & zoomLevelRange, const Windows::Devices::Geolocation::GeoboundingBox & bounds) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithDataSourceZoomRangeAndBounds(dataSource, zoomLevelRange, bounds, outer, inner)); -} - -inline MapTileSource::MapTileSource(const Windows::UI::Xaml::Controls::Maps::MapTileDataSource & dataSource, const Windows::UI::Xaml::Controls::Maps::MapZoomLevelRange & zoomLevelRange, const Windows::Devices::Geolocation::GeoboundingBox & bounds, int32_t tileSizeInPixels) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithDataSourceZoomRangeBoundsAndTileSize(dataSource, zoomLevelRange, bounds, tileSizeInPixels, outer, inner)); -} - -inline Windows::UI::Xaml::DependencyProperty MapTileSource::DataSourceProperty() -{ - return get_activation_factory().DataSourceProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapTileSource::LayerProperty() -{ - return get_activation_factory().LayerProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapTileSource::ZoomLevelRangeProperty() -{ - return get_activation_factory().ZoomLevelRangeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapTileSource::BoundsProperty() -{ - return get_activation_factory().BoundsProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapTileSource::AllowOverstretchProperty() -{ - return get_activation_factory().AllowOverstretchProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapTileSource::IsFadingEnabledProperty() -{ - return get_activation_factory().IsFadingEnabledProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapTileSource::IsTransparencyEnabledProperty() -{ - return get_activation_factory().IsTransparencyEnabledProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapTileSource::IsRetryEnabledProperty() -{ - return get_activation_factory().IsRetryEnabledProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapTileSource::ZIndexProperty() -{ - return get_activation_factory().ZIndexProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapTileSource::TilePixelSizeProperty() -{ - return get_activation_factory().TilePixelSizeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty MapTileSource::VisibleProperty() -{ - return get_activation_factory().VisibleProperty(); -} - -inline MapTileUriRequest::MapTileUriRequest() : - MapTileUriRequest(activate_instance()) -{} - -inline MapTileUriRequestDeferral::MapTileUriRequestDeferral() : - MapTileUriRequestDeferral(activate_instance()) -{} - -inline MapTileUriRequestedEventArgs::MapTileUriRequestedEventArgs() : - MapTileUriRequestedEventArgs(activate_instance()) -{} - -inline StreetsideExperience::StreetsideExperience(const Windows::UI::Xaml::Controls::Maps::StreetsidePanorama & panorama) : - StreetsideExperience(get_activation_factory().CreateInstanceWithPanorama(panorama)) -{} - -inline StreetsideExperience::StreetsideExperience(const Windows::UI::Xaml::Controls::Maps::StreetsidePanorama & panorama, double headingInDegrees, double pitchInDegrees, double fieldOfViewInDegrees) : - StreetsideExperience(get_activation_factory().CreateInstanceWithPanoramaHeadingPitchAndFieldOfView(panorama, headingInDegrees, pitchInDegrees, fieldOfViewInDegrees)) -{} - -inline Windows::Foundation::IAsyncOperation StreetsidePanorama::FindNearbyAsync(const Windows::Devices::Geolocation::Geopoint & location) -{ - return get_activation_factory().FindNearbyAsync(location); -} - -inline Windows::Foundation::IAsyncOperation StreetsidePanorama::FindNearbyAsync(const Windows::Devices::Geolocation::Geopoint & location, double radiusInMeters) -{ - return get_activation_factory().FindNearbyAsync(location, radiusInMeters); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Xaml.Controls.Primitives.h b/10.0.14393.0/winrt/Windows.UI.Xaml.Controls.Primitives.h deleted file mode 100644 index 5387898e5..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Xaml.Controls.Primitives.h +++ /dev/null @@ -1,11339 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Xaml.Controls.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.UI.Xaml.3.h" -#include "internal/Windows.UI.Xaml.Media.3.h" -#include "internal/Windows.UI.Xaml.Input.3.h" -#include "internal/Windows.UI.Xaml.Controls.Primitives.3.h" -#include "Windows.UI.Xaml.Controls.h" -#include "Windows.UI.Xaml.Data.h" -#include "internal/Windows.UI.Xaml.Controls.Primitives.4.h" -#include "internal/Windows.UI.Xaml.Controls.Primitives.5.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::UI::Xaml::Controls::Primitives { - -template DragCompletedEventHandler::DragCompletedEventHandler(L lambda) : - DragCompletedEventHandler(impl::make_delegate, DragCompletedEventHandler>(std::forward(lambda))) -{} - -template DragCompletedEventHandler::DragCompletedEventHandler(F * function) : - DragCompletedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template DragCompletedEventHandler::DragCompletedEventHandler(O * object, M method) : - DragCompletedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void DragCompletedEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::Primitives::DragCompletedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template DragDeltaEventHandler::DragDeltaEventHandler(L lambda) : - DragDeltaEventHandler(impl::make_delegate, DragDeltaEventHandler>(std::forward(lambda))) -{} - -template DragDeltaEventHandler::DragDeltaEventHandler(F * function) : - DragDeltaEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template DragDeltaEventHandler::DragDeltaEventHandler(O * object, M method) : - DragDeltaEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void DragDeltaEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::Primitives::DragDeltaEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template DragStartedEventHandler::DragStartedEventHandler(L lambda) : - DragStartedEventHandler(impl::make_delegate, DragStartedEventHandler>(std::forward(lambda))) -{} - -template DragStartedEventHandler::DragStartedEventHandler(F * function) : - DragStartedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template DragStartedEventHandler::DragStartedEventHandler(O * object, M method) : - DragStartedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void DragStartedEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::Primitives::DragStartedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template ItemsChangedEventHandler::ItemsChangedEventHandler(L lambda) : - ItemsChangedEventHandler(impl::make_delegate, ItemsChangedEventHandler>(std::forward(lambda))) -{} - -template ItemsChangedEventHandler::ItemsChangedEventHandler(F * function) : - ItemsChangedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template ItemsChangedEventHandler::ItemsChangedEventHandler(O * object, M method) : - ItemsChangedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void ItemsChangedEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::Primitives::ItemsChangedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler(L lambda) : - RangeBaseValueChangedEventHandler(impl::make_delegate, RangeBaseValueChangedEventHandler>(std::forward(lambda))) -{} - -template RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler(F * function) : - RangeBaseValueChangedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler(O * object, M method) : - RangeBaseValueChangedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void RangeBaseValueChangedEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::Primitives::RangeBaseValueChangedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template ScrollEventHandler::ScrollEventHandler(L lambda) : - ScrollEventHandler(impl::make_delegate, ScrollEventHandler>(std::forward(lambda))) -{} - -template ScrollEventHandler::ScrollEventHandler(F * function) : - ScrollEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template ScrollEventHandler::ScrollEventHandler(O * object, M method) : - ScrollEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void ScrollEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::Primitives::ScrollEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClipRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClipRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompactVerticalDelta(double * value) noexcept override - { - try - { - *value = detach(this->shim().CompactVerticalDelta()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompactRootMargin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompactRootMargin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimalVerticalDelta(double * value) noexcept override - { - try - { - *value = detach(this->shim().MinimalVerticalDelta()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinimalRootMargin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinimalRootMargin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HiddenVerticalDelta(double * value) noexcept override - { - try - { - *value = detach(this->shim().HiddenVerticalDelta()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HiddenRootMargin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HiddenRootMargin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClickMode(Windows::UI::Xaml::Controls::ClickMode * value) noexcept override - { - try - { - *value = detach(this->shim().ClickMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClickMode(Windows::UI::Xaml::Controls::ClickMode value) noexcept override - { - try - { - this->shim().ClickMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPointerOver(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPointerOver()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPressed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPressed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Command(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Command()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Command(abi_arg_in value) noexcept override - { - try - { - this->shim().Command(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommandParameter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandParameter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CommandParameter(abi_arg_in value) noexcept override - { - try - { - this->shim().CommandParameter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Click(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Click(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Click(event_token token) noexcept override - { - try - { - this->shim().Click(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClickModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClickModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPointerOverProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsPointerOverProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPressedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsPressedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommandProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommandParameterProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandParameterProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MinViewWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().MinViewWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WeekDay1(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WeekDay1()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WeekDay2(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WeekDay2()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WeekDay3(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WeekDay3()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WeekDay4(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WeekDay4()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WeekDay5(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WeekDay5()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WeekDay6(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WeekDay6()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WeekDay7(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WeekDay7()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasMoreContentAfter(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasMoreContentAfter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasMoreContentBefore(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasMoreContentBefore()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasMoreViews(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasMoreViews()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClipRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClipRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CenterX(double * value) noexcept override - { - try - { - *value = detach(this->shim().CenterX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CenterY(double * value) noexcept override - { - try - { - *value = detach(this->shim().CenterY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanVerticallyScroll(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanVerticallyScroll()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanVerticallyScroll(bool value) noexcept override - { - try - { - this->shim().CanVerticallyScroll(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanHorizontallyScroll(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanHorizontallyScroll()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanHorizontallyScroll(bool value) noexcept override - { - try - { - this->shim().CanHorizontallyScroll(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtentWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ExtentWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtentHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ExtentHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ViewportWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ViewportHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollOwner(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScrollOwner()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScrollOwner(abi_arg_in value) noexcept override - { - try - { - this->shim().ScrollOwner(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineUp() noexcept override - { - try - { - this->shim().LineUp(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineDown() noexcept override - { - try - { - this->shim().LineDown(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineLeft() noexcept override - { - try - { - this->shim().LineLeft(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineRight() noexcept override - { - try - { - this->shim().LineRight(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageUp() noexcept override - { - try - { - this->shim().PageUp(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageDown() noexcept override - { - try - { - this->shim().PageDown(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageLeft() noexcept override - { - try - { - this->shim().PageLeft(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageRight() noexcept override - { - try - { - this->shim().PageRight(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelUp() noexcept override - { - try - { - this->shim().MouseWheelUp(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelDown() noexcept override - { - try - { - this->shim().MouseWheelDown(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelLeft() noexcept override - { - try - { - this->shim().MouseWheelLeft(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelRight() noexcept override - { - try - { - this->shim().MouseWheelRight(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetHorizontalOffset(double offset) noexcept override - { - try - { - this->shim().SetHorizontalOffset(offset); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetVerticalOffset(double offset) noexcept override - { - try - { - this->shim().SetVerticalOffset(offset); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MakeVisible(abi_arg_in visual, abi_arg_in rectangle, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().MakeVisible(*reinterpret_cast(&visual), *reinterpret_cast(&rectangle))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DropDownOpenedHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().DropDownOpenedHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DropDownClosedHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().DropDownClosedHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DropDownOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().DropDownOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedItemDirection(Windows::UI::Xaml::Controls::Primitives::AnimationDirection * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItemDirection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DropDownContentMinWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().DropDownContentMinWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ContentHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OverflowContentClipRect(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OverflowContentClipRect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OverflowContentMinWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().OverflowContentMinWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OverflowContentMaxHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().OverflowContentMaxHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OverflowContentHorizontalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().OverflowContentHorizontalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OverflowContentHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().OverflowContentHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NegativeOverflowContentHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().NegativeOverflowContentHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OverflowContentMaxWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().OverflowContentMaxWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EffectiveOverflowButtonVisibility(Windows::UI::Xaml::Visibility * value) noexcept override - { - try - { - *value = detach(this->shim().EffectiveOverflowButtonVisibility()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HorizontalChange(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalChange(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Canceled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Canceled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(double horizontalChange, double verticalChange, bool canceled, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(horizontalChange, verticalChange, canceled, *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HorizontalChange(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalChange(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithHorizontalChangeAndVerticalChange(double horizontalChange, double verticalChange, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithHorizontalChangeAndVerticalChange(horizontalChange, verticalChange, *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HorizontalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithHorizontalOffsetAndVerticalOffset(double horizontalOffset, double verticalOffset, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithHorizontalOffsetAndVerticalOffset(horizontalOffset, verticalOffset, *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Placement(Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode * value) noexcept override - { - try - { - *value = detach(this->shim().Placement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Placement(Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode value) noexcept override - { - try - { - this->shim().Placement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Opened(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Opened(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Opened(event_token token) noexcept override - { - try - { - this->shim().Opened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closed(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closed(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token token) noexcept override - { - try - { - this->shim().Closed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Opening(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Opening(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Opening(event_token token) noexcept override - { - try - { - this->shim().Opening(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAt(abi_arg_in placementTarget) noexcept override - { - try - { - this->shim().ShowAt(*reinterpret_cast(&placementTarget)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Hide() noexcept override - { - try - { - this->shim().Hide(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Target(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Target()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowFocusOnInteraction(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowFocusOnInteraction()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowFocusOnInteraction(bool value) noexcept override - { - try - { - this->shim().AllowFocusOnInteraction(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode * value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) noexcept override - { - try - { - this->shim().LightDismissOverlayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowFocusWhenDisabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AllowFocusWhenDisabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowFocusWhenDisabled(bool value) noexcept override - { - try - { - this->shim().AllowFocusWhenDisabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ElementSoundMode(Windows::UI::Xaml::ElementSoundMode * value) noexcept override - { - try - { - *value = detach(this->shim().ElementSoundMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ElementSoundMode(Windows::UI::Xaml::ElementSoundMode value) noexcept override - { - try - { - this->shim().ElementSoundMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closing(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closing(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closing(event_token token) noexcept override - { - try - { - this->shim().Closing(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Cancel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Cancel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Cancel(bool value) noexcept override - { - try - { - this->shim().Cancel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreatePresenter(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreatePresenter()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PlacementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlacementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AttachedFlyoutProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AttachedFlyoutProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAttachedFlyout(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAttachedFlyout(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAttachedFlyout(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAttachedFlyout(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAttachedFlyout(abi_arg_in flyoutOwner) noexcept override - { - try - { - this->shim().ShowAttachedFlyout(*reinterpret_cast(&flyoutOwner)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AllowFocusOnInteractionProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AllowFocusOnInteractionProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LightDismissOverlayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowFocusWhenDisabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AllowFocusWhenDisabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ElementSoundModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ElementSoundModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_FromIndexAndOffset(int32_t index, int32_t offset, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().FromIndexAndOffset(index, offset)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectionCheckMarkVisualEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SelectionCheckMarkVisualEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionCheckMarkVisualEnabled(bool value) noexcept override - { - try - { - this->shim().SelectionCheckMarkVisualEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckHintBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckHintBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CheckHintBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().CheckHintBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckSelectingBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckSelectingBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CheckSelectingBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().CheckSelectingBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CheckBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().CheckBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DragBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DragBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().DragBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DragForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DragForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().DragForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FocusBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().FocusBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaceholderBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().PlaceholderBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerOverBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerOverBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PointerOverBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().PointerOverBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPointerOverBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPointerOverBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedPointerOverBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedPointerOverBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPointerOverBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPointerOverBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedPointerOverBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedPointerOverBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBorderThickness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBorderThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedBorderThickness(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedBorderThickness(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisabledOpacity(double * value) noexcept override - { - try - { - *value = detach(this->shim().DisabledOpacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisabledOpacity(double value) noexcept override - { - try - { - this->shim().DisabledOpacity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragOpacity(double * value) noexcept override - { - try - { - *value = detach(this->shim().DragOpacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DragOpacity(double value) noexcept override - { - try - { - this->shim().DragOpacity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReorderHintOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().ReorderHintOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReorderHintOffset(double value) noexcept override - { - try - { - this->shim().ReorderHintOffset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GridViewItemPresenterHorizontalContentAlignment(Windows::UI::Xaml::HorizontalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().GridViewItemPresenterHorizontalContentAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GridViewItemPresenterHorizontalContentAlignment(Windows::UI::Xaml::HorizontalAlignment value) noexcept override - { - try - { - this->shim().GridViewItemPresenterHorizontalContentAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GridViewItemPresenterVerticalContentAlignment(Windows::UI::Xaml::VerticalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().GridViewItemPresenterVerticalContentAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GridViewItemPresenterVerticalContentAlignment(Windows::UI::Xaml::VerticalAlignment value) noexcept override - { - try - { - this->shim().GridViewItemPresenterVerticalContentAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GridViewItemPresenterPadding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GridViewItemPresenterPadding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GridViewItemPresenterPadding(abi_arg_in value) noexcept override - { - try - { - this->shim().GridViewItemPresenterPadding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerOverBackgroundMargin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerOverBackgroundMargin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PointerOverBackgroundMargin(abi_arg_in value) noexcept override - { - try - { - this->shim().PointerOverBackgroundMargin(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentMargin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentMargin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentMargin(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentMargin(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectionCheckMarkVisualEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionCheckMarkVisualEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckHintBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckHintBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckSelectingBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckSelectingBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DragBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DragForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerOverBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerOverBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPointerOverBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPointerOverBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPointerOverBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPointerOverBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBorderThicknessProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBorderThicknessProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisabledOpacityProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisabledOpacityProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragOpacityProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DragOpacityProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReorderHintOffsetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReorderHintOffsetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GridViewItemPresenterHorizontalContentAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GridViewItemPresenterHorizontalContentAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GridViewItemPresenterVerticalContentAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GridViewItemPresenterVerticalContentAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GridViewItemPresenterPaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GridViewItemPresenterPaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerOverBackgroundMarginProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerOverBackgroundMarginProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentMarginProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentMarginProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DragItemsCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DragItemsCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Action(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Action()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OldPosition(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ItemCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemUICount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ItemUICount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Enabled(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Enabled(abi_arg_in value) noexcept override - { - try - { - this->shim().Enabled(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Disabled(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Disabled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Disabled(abi_arg_in value) noexcept override - { - try - { - this->shim().Disabled(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Enabled(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Enabled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Enabled(abi_arg_in value) noexcept override - { - try - { - this->shim().Enabled(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Disabled(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Disabled()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Disabled(abi_arg_in value) noexcept override - { - try - { - this->shim().Disabled(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetLayoutExceptionElement(abi_arg_in dispatcher, abi_arg_out element) noexcept override - { - try - { - *element = detach(this->shim().GetLayoutExceptionElement(*reinterpret_cast(&dispatcher))); - return S_OK; - } - catch (...) - { - *element = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLayoutSlot(abi_arg_in element, abi_arg_out slot) noexcept override - { - try - { - *slot = detach(this->shim().GetLayoutSlot(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectionCheckMarkVisualEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SelectionCheckMarkVisualEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionCheckMarkVisualEnabled(bool value) noexcept override - { - try - { - this->shim().SelectionCheckMarkVisualEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckHintBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckHintBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CheckHintBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().CheckHintBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckSelectingBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckSelectingBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CheckSelectingBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().CheckSelectingBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CheckBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().CheckBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DragBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DragBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().DragBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DragForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DragForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().DragForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FocusBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().FocusBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaceholderBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().PlaceholderBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerOverBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerOverBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PointerOverBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().PointerOverBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPointerOverBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPointerOverBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedPointerOverBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedPointerOverBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPointerOverBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPointerOverBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedPointerOverBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedPointerOverBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBorderThickness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBorderThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedBorderThickness(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedBorderThickness(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisabledOpacity(double * value) noexcept override - { - try - { - *value = detach(this->shim().DisabledOpacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisabledOpacity(double value) noexcept override - { - try - { - this->shim().DisabledOpacity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragOpacity(double * value) noexcept override - { - try - { - *value = detach(this->shim().DragOpacity()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DragOpacity(double value) noexcept override - { - try - { - this->shim().DragOpacity(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReorderHintOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().ReorderHintOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReorderHintOffset(double value) noexcept override - { - try - { - this->shim().ReorderHintOffset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListViewItemPresenterHorizontalContentAlignment(Windows::UI::Xaml::HorizontalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().ListViewItemPresenterHorizontalContentAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ListViewItemPresenterHorizontalContentAlignment(Windows::UI::Xaml::HorizontalAlignment value) noexcept override - { - try - { - this->shim().ListViewItemPresenterHorizontalContentAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListViewItemPresenterVerticalContentAlignment(Windows::UI::Xaml::VerticalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().ListViewItemPresenterVerticalContentAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ListViewItemPresenterVerticalContentAlignment(Windows::UI::Xaml::VerticalAlignment value) noexcept override - { - try - { - this->shim().ListViewItemPresenterVerticalContentAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListViewItemPresenterPadding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ListViewItemPresenterPadding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ListViewItemPresenterPadding(abi_arg_in value) noexcept override - { - try - { - this->shim().ListViewItemPresenterPadding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerOverBackgroundMargin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerOverBackgroundMargin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PointerOverBackgroundMargin(abi_arg_in value) noexcept override - { - try - { - this->shim().PointerOverBackgroundMargin(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentMargin(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentMargin()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentMargin(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentMargin(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedPressedBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPressedBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedPressedBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedPressedBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PressedBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PressedBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PressedBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().PressedBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckBoxBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckBoxBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CheckBoxBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().CheckBoxBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusSecondaryBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusSecondaryBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FocusSecondaryBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().FocusSecondaryBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckMode(Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenterCheckMode * value) noexcept override - { - try - { - *value = detach(this->shim().CheckMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CheckMode(Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenterCheckMode value) noexcept override - { - try - { - this->shim().CheckMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerOverForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerOverForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PointerOverForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().PointerOverForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectionCheckMarkVisualEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionCheckMarkVisualEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckHintBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckHintBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckSelectingBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckSelectingBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DragBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DragForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerOverBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerOverBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPointerOverBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPointerOverBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPointerOverBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPointerOverBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBorderThicknessProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBorderThicknessProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisabledOpacityProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisabledOpacityProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DragOpacityProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DragOpacityProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ReorderHintOffsetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReorderHintOffsetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListViewItemPresenterHorizontalContentAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ListViewItemPresenterHorizontalContentAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListViewItemPresenterVerticalContentAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ListViewItemPresenterVerticalContentAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ListViewItemPresenterPaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ListViewItemPresenterPaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerOverBackgroundMarginProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerOverBackgroundMarginProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentMarginProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentMarginProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedPressedBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPressedBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PressedBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PressedBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckBoxBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckBoxBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusSecondaryBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusSecondaryBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CheckModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CheckModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PointerOverForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PointerOverForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DragItemsCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DragItemsCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ShouldLoop(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShouldLoop()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShouldLoop(bool value) noexcept override - { - try - { - this->shim().ShouldLoop(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Items(abi_arg_in> value) noexcept override - { - try - { - this->shim().Items(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedIndex(int32_t value) noexcept override - { - try - { - this->shim().SelectedIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedItem(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedItem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemWidth(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ItemWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemWidth(int32_t value) noexcept override - { - try - { - this->shim().ItemWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemHeight(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ItemHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemHeight(int32_t value) noexcept override - { - try - { - this->shim().ItemHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SelectionChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SelectionChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectionChanged(event_token token) noexcept override - { - try - { - this->shim().SelectionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ShouldLoopProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShouldLoopProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedItemProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItemProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FlyoutContentMinWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().FlyoutContentMinWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanVerticallyScroll(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanVerticallyScroll()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanVerticallyScroll(bool value) noexcept override - { - try - { - this->shim().CanVerticallyScroll(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanHorizontallyScroll(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanHorizontallyScroll()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanHorizontallyScroll(bool value) noexcept override - { - try - { - this->shim().CanHorizontallyScroll(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtentWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ExtentWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtentHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ExtentHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ViewportWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ViewportHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollOwner(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScrollOwner()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScrollOwner(abi_arg_in value) noexcept override - { - try - { - this->shim().ScrollOwner(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineUp() noexcept override - { - try - { - this->shim().LineUp(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineDown() noexcept override - { - try - { - this->shim().LineDown(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineLeft() noexcept override - { - try - { - this->shim().LineLeft(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineRight() noexcept override - { - try - { - this->shim().LineRight(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageUp() noexcept override - { - try - { - this->shim().PageUp(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageDown() noexcept override - { - try - { - this->shim().PageDown(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageLeft() noexcept override - { - try - { - this->shim().PageLeft(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageRight() noexcept override - { - try - { - this->shim().PageRight(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelUp() noexcept override - { - try - { - this->shim().MouseWheelUp(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelDown() noexcept override - { - try - { - this->shim().MouseWheelDown(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelLeft() noexcept override - { - try - { - this->shim().MouseWheelLeft(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelRight() noexcept override - { - try - { - this->shim().MouseWheelRight(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetHorizontalOffset(double offset) noexcept override - { - try - { - this->shim().SetHorizontalOffset(offset); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetVerticalOffset(double offset) noexcept override - { - try - { - this->shim().SetVerticalOffset(offset); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MakeVisible(abi_arg_in visual, abi_arg_in rectangle, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().MakeVisible(*reinterpret_cast(&visual), *reinterpret_cast(&rectangle))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnConfirmed() noexcept override - { - try - { - this->shim().OnConfirmed(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShouldShowConfirmationButtons(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ShouldShowConfirmationButtons()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TitleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTitle(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetTitle(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetTitle(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetTitle(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Child(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Child()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Child(abi_arg_in value) noexcept override - { - try - { - this->shim().Child(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOpen(bool value) noexcept override - { - try - { - this->shim().IsOpen(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalOffset(double value) noexcept override - { - try - { - this->shim().HorizontalOffset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalOffset(double value) noexcept override - { - try - { - this->shim().VerticalOffset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChildTransitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ChildTransitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChildTransitions(abi_arg_in> value) noexcept override - { - try - { - this->shim().ChildTransitions(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLightDismissEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsLightDismissEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsLightDismissEnabled(bool value) noexcept override - { - try - { - this->shim().IsLightDismissEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Opened(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Opened(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Opened(event_token token) noexcept override - { - try - { - this->shim().Opened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closed(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closed(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token token) noexcept override - { - try - { - this->shim().Closed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode * value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) noexcept override - { - try - { - this->shim().LightDismissOverlayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ChildProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChildProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOpenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsOpenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalOffsetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalOffsetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalOffsetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalOffsetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChildTransitionsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChildTransitionsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLightDismissEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsLightDismissEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EllipseDiameter(double * value) noexcept override - { - try - { - *value = detach(this->shim().EllipseDiameter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EllipseOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().EllipseOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EllipseAnimationWellPosition(double * value) noexcept override - { - try - { - *value = detach(this->shim().EllipseAnimationWellPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EllipseAnimationEndPosition(double * value) noexcept override - { - try - { - *value = detach(this->shim().EllipseAnimationEndPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContainerAnimationStartPosition(double * value) noexcept override - { - try - { - *value = detach(this->shim().ContainerAnimationStartPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContainerAnimationEndPosition(double * value) noexcept override - { - try - { - *value = detach(this->shim().ContainerAnimationEndPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IndicatorLengthDelta(double * value) noexcept override - { - try - { - *value = detach(this->shim().IndicatorLengthDelta()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_EllipseDiameter(double * value) noexcept override - { - try - { - *value = detach(this->shim().EllipseDiameter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_EllipseOffset(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().EllipseOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxSideLength(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxSideLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Minimum(double * value) noexcept override - { - try - { - *value = detach(this->shim().Minimum()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Minimum(double value) noexcept override - { - try - { - this->shim().Minimum(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Maximum(double * value) noexcept override - { - try - { - *value = detach(this->shim().Maximum()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Maximum(double value) noexcept override - { - try - { - this->shim().Maximum(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmallChange(double * value) noexcept override - { - try - { - *value = detach(this->shim().SmallChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SmallChange(double value) noexcept override - { - try - { - this->shim().SmallChange(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LargeChange(double * value) noexcept override - { - try - { - *value = detach(this->shim().LargeChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LargeChange(double value) noexcept override - { - try - { - this->shim().LargeChange(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Value(double * value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Value(double value) noexcept override - { - try - { - this->shim().Value(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ValueChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ValueChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ValueChanged(event_token token) noexcept override - { - try - { - this->shim().ValueChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnMinimumChanged(double oldMinimum, double newMinimum) noexcept override - { - try - { - this->shim().OnMinimumChanged(oldMinimum, newMinimum); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnMaximumChanged(double oldMaximum, double newMaximum) noexcept override - { - try - { - this->shim().OnMaximumChanged(oldMaximum, newMaximum); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnValueChanged(double oldValue, double newValue) noexcept override - { - try - { - this->shim().OnValueChanged(oldValue, newValue); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MinimumProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinimumProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaximumProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaximumProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SmallChangeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SmallChangeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LargeChangeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LargeChangeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ValueProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ValueProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OldValue(double * value) noexcept override - { - try - { - *value = detach(this->shim().OldValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewValue(double * value) noexcept override - { - try - { - *value = detach(this->shim().NewValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Delay(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Delay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Delay(int32_t value) noexcept override - { - try - { - this->shim().Delay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Interval(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Interval()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Interval(int32_t value) noexcept override - { - try - { - this->shim().Interval(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DelayProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DelayProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IntervalProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IntervalProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Orientation(Windows::UI::Xaml::Controls::Orientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::UI::Xaml::Controls::Orientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().ViewportSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ViewportSize(double value) noexcept override - { - try - { - this->shim().ViewportSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IndicatorMode(Windows::UI::Xaml::Controls::Primitives::ScrollingIndicatorMode * value) noexcept override - { - try - { - *value = detach(this->shim().IndicatorMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IndicatorMode(Windows::UI::Xaml::Controls::Primitives::ScrollingIndicatorMode value) noexcept override - { - try - { - this->shim().IndicatorMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Scroll(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Scroll(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Scroll(event_token token) noexcept override - { - try - { - this->shim().Scroll(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OrientationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OrientationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ViewportSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IndicatorModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IndicatorModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NewValue(double * value) noexcept override - { - try - { - *value = detach(this->shim().NewValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollEventType(Windows::UI::Xaml::Controls::Primitives::ScrollEventType * value) noexcept override - { - try - { - *value = detach(this->shim().ScrollEventType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreHorizontalSnapPointsRegular(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AreHorizontalSnapPointsRegular()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AreVerticalSnapPointsRegular(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AreVerticalSnapPointsRegular()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_HorizontalSnapPointsChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().HorizontalSnapPointsChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_HorizontalSnapPointsChanged(event_token token) noexcept override - { - try - { - this->shim().HorizontalSnapPointsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VerticalSnapPointsChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VerticalSnapPointsChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VerticalSnapPointsChanged(event_token token) noexcept override - { - try - { - this->shim().VerticalSnapPointsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIrregularSnapPoints(Windows::UI::Xaml::Controls::Orientation orientation, Windows::UI::Xaml::Controls::Primitives::SnapPointsAlignment alignment, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetIrregularSnapPoints(orientation, alignment)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRegularSnapPoints(Windows::UI::Xaml::Controls::Orientation orientation, Windows::UI::Xaml::Controls::Primitives::SnapPointsAlignment alignment, float * offset, float * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetRegularSnapPoints(orientation, alignment, *offset)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedIndex(int32_t value) noexcept override - { - try - { - this->shim().SelectedIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedItem(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedItem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedValue(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedValue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedValue(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedValue(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedValuePath(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedValuePath()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedValuePath(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedValuePath(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSynchronizedWithCurrentItem(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IsSynchronizedWithCurrentItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSynchronizedWithCurrentItem(abi_arg_in> value) noexcept override - { - try - { - this->shim().IsSynchronizedWithCurrentItem(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SelectionChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SelectionChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectionChanged(event_token token) noexcept override - { - try - { - this->shim().SelectionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSelected(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSelected()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSelected(bool value) noexcept override - { - try - { - this->shim().IsSelected(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSelectedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSelectedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedItemProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItemProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedValueProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedValueProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedValuePathProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedValuePathProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSynchronizedWithCurrentItemProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSynchronizedWithCurrentItemProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsSelectionActive(abi_arg_in element, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetIsSelectionActive(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThickness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IconSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IconSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTransitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ContentTransitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OpenPaneLength(double * value) noexcept override - { - try - { - *value = detach(this->shim().OpenPaneLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NegativeOpenPaneLength(double * value) noexcept override - { - try - { - *value = detach(this->shim().NegativeOpenPaneLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OpenPaneLengthMinusCompactLength(double * value) noexcept override - { - try - { - *value = detach(this->shim().OpenPaneLengthMinusCompactLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NegativeOpenPaneLengthMinusCompactLength(double * value) noexcept override - { - try - { - *value = detach(this->shim().NegativeOpenPaneLengthMinusCompactLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OpenPaneGridLength(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OpenPaneGridLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompactPaneGridLength(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompactPaneGridLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsDragging(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDragging()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DragStarted(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DragStarted(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DragStarted(event_token token) noexcept override - { - try - { - this->shim().DragStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DragDelta(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DragDelta(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DragDelta(event_token token) noexcept override - { - try - { - this->shim().DragDelta(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DragCompleted(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DragCompleted(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DragCompleted(event_token token) noexcept override - { - try - { - this->shim().DragCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CancelDrag() noexcept override - { - try - { - this->shim().CancelDrag(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsDraggingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsDraggingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Fill(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Fill()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Fill(abi_arg_in value) noexcept override - { - try - { - this->shim().Fill(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FillProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FillProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsChecked(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().IsChecked()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsChecked(abi_arg_in> value) noexcept override - { - try - { - this->shim().IsChecked(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsThreeState(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsThreeState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsThreeState(bool value) noexcept override - { - try - { - this->shim().IsThreeState(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Checked(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Checked(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Checked(event_token token) noexcept override - { - try - { - this->shim().Checked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Unchecked(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Unchecked(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Unchecked(event_token token) noexcept override - { - try - { - this->shim().Unchecked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Indeterminate(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Indeterminate(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Indeterminate(event_token token) noexcept override - { - try - { - this->shim().Indeterminate(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnToggle() noexcept override - { - try - { - this->shim().OnToggle(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsCheckedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsCheckedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsThreeStateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsThreeStateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_KnobCurrentToOnOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().KnobCurrentToOnOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KnobCurrentToOffOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().KnobCurrentToOffOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KnobOnToOffOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().KnobOnToOffOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KnobOffToOnOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().KnobOffToOnOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurtainCurrentToOnOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().CurtainCurrentToOnOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurtainCurrentToOffOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().CurtainCurrentToOffOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurtainOnToOffOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().CurtainOnToOffOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurtainOffToOnOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().CurtainOffToOnOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FromHorizontalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().FromHorizontalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FromVerticalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().FromVerticalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Xaml::Controls::Primitives { - -template bool impl_IScrollSnapPointsInfo::AreHorizontalSnapPointsRegular() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AreHorizontalSnapPointsRegular(&value)); - return value; -} - -template bool impl_IScrollSnapPointsInfo::AreVerticalSnapPointsRegular() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AreVerticalSnapPointsRegular(&value)); - return value; -} - -template event_token impl_IScrollSnapPointsInfo::HorizontalSnapPointsChanged(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_HorizontalSnapPointsChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IScrollSnapPointsInfo::HorizontalSnapPointsChanged(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo::remove_HorizontalSnapPointsChanged, HorizontalSnapPointsChanged(value)); -} - -template void impl_IScrollSnapPointsInfo::HorizontalSnapPointsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_HorizontalSnapPointsChanged(token)); -} - -template event_token impl_IScrollSnapPointsInfo::VerticalSnapPointsChanged(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VerticalSnapPointsChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IScrollSnapPointsInfo::VerticalSnapPointsChanged(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo::remove_VerticalSnapPointsChanged, VerticalSnapPointsChanged(value)); -} - -template void impl_IScrollSnapPointsInfo::VerticalSnapPointsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VerticalSnapPointsChanged(token)); -} - -template Windows::Foundation::Collections::IVectorView impl_IScrollSnapPointsInfo::GetIrregularSnapPoints(Windows::UI::Xaml::Controls::Orientation orientation, Windows::UI::Xaml::Controls::Primitives::SnapPointsAlignment alignment) const -{ - Windows::Foundation::Collections::IVectorView returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetIrregularSnapPoints(orientation, alignment, put(returnValue))); - return returnValue; -} - -template float impl_IScrollSnapPointsInfo::GetRegularSnapPoints(Windows::UI::Xaml::Controls::Orientation orientation, Windows::UI::Xaml::Controls::Primitives::SnapPointsAlignment alignment, float & offset) const -{ - float returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetRegularSnapPoints(orientation, alignment, &offset, &returnValue)); - return returnValue; -} - -template int32_t impl_IItemsChangedEventArgs::Action() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Action(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::GeneratorPosition impl_IItemsChangedEventArgs::Position() const -{ - Windows::UI::Xaml::Controls::Primitives::GeneratorPosition value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::GeneratorPosition impl_IItemsChangedEventArgs::OldPosition() const -{ - Windows::UI::Xaml::Controls::Primitives::GeneratorPosition value {}; - check_hresult(static_cast(static_cast(*this))->get_OldPosition(put(value))); - return value; -} - -template int32_t impl_IItemsChangedEventArgs::ItemCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemCount(&value)); - return value; -} - -template int32_t impl_IItemsChangedEventArgs::ItemUICount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemUICount(&value)); - return value; -} - -template Windows::UI::Xaml::UIElement impl_ILayoutInformationStatics::GetLayoutExceptionElement(const Windows::IInspectable & dispatcher) const -{ - Windows::UI::Xaml::UIElement element { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetLayoutExceptionElement(get(dispatcher), put(element))); - return element; -} - -template Windows::Foundation::Rect impl_ILayoutInformationStatics::GetLayoutSlot(const Windows::UI::Xaml::FrameworkElement & element) const -{ - Windows::Foundation::Rect slot {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLayoutSlot(get(element), put(slot))); - return slot; -} - -template double impl_IComboBoxTemplateSettings::DropDownOpenedHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DropDownOpenedHeight(&value)); - return value; -} - -template double impl_IComboBoxTemplateSettings::DropDownClosedHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DropDownClosedHeight(&value)); - return value; -} - -template double impl_IComboBoxTemplateSettings::DropDownOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DropDownOffset(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::AnimationDirection impl_IComboBoxTemplateSettings::SelectedItemDirection() const -{ - Windows::UI::Xaml::Controls::Primitives::AnimationDirection value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedItemDirection(&value)); - return value; -} - -template double impl_IComboBoxTemplateSettings2::DropDownContentMinWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DropDownContentMinWidth(&value)); - return value; -} - -template double impl_IDragCompletedEventArgs::HorizontalChange() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalChange(&value)); - return value; -} - -template double impl_IDragCompletedEventArgs::VerticalChange() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalChange(&value)); - return value; -} - -template bool impl_IDragCompletedEventArgs::Canceled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Canceled(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::DragCompletedEventArgs impl_IDragCompletedEventArgsFactory::CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(double horizontalChange, double verticalChange, bool canceled, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::DragCompletedEventArgs instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(horizontalChange, verticalChange, canceled, get(outer), put(inner), put(instance))); - return instance; -} - -template double impl_IDragDeltaEventArgs::HorizontalChange() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalChange(&value)); - return value; -} - -template double impl_IDragDeltaEventArgs::VerticalChange() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalChange(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::DragDeltaEventArgs impl_IDragDeltaEventArgsFactory::CreateInstanceWithHorizontalChangeAndVerticalChange(double horizontalChange, double verticalChange, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::DragDeltaEventArgs instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithHorizontalChangeAndVerticalChange(horizontalChange, verticalChange, get(outer), put(inner), put(instance))); - return instance; -} - -template double impl_IDragStartedEventArgs::HorizontalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalOffset(&value)); - return value; -} - -template double impl_IDragStartedEventArgs::VerticalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalOffset(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::DragStartedEventArgs impl_IDragStartedEventArgsFactory::CreateInstanceWithHorizontalOffsetAndVerticalOffset(double horizontalOffset, double verticalOffset, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::DragStartedEventArgs instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithHorizontalOffsetAndVerticalOffset(horizontalOffset, verticalOffset, get(outer), put(inner), put(instance))); - return instance; -} - -template int32_t impl_IGridViewItemTemplateSettings::DragItemsCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DragItemsCount(&value)); - return value; -} - -template int32_t impl_IListViewItemTemplateSettings::DragItemsCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DragItemsCount(&value)); - return value; -} - -template double impl_IMenuFlyoutPresenterTemplateSettings::FlyoutContentMinWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FlyoutContentMinWidth(&value)); - return value; -} - -template double impl_IProgressBarTemplateSettings::EllipseDiameter() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_EllipseDiameter(&value)); - return value; -} - -template double impl_IProgressBarTemplateSettings::EllipseOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_EllipseOffset(&value)); - return value; -} - -template double impl_IProgressBarTemplateSettings::EllipseAnimationWellPosition() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_EllipseAnimationWellPosition(&value)); - return value; -} - -template double impl_IProgressBarTemplateSettings::EllipseAnimationEndPosition() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_EllipseAnimationEndPosition(&value)); - return value; -} - -template double impl_IProgressBarTemplateSettings::ContainerAnimationStartPosition() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ContainerAnimationStartPosition(&value)); - return value; -} - -template double impl_IProgressBarTemplateSettings::ContainerAnimationEndPosition() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ContainerAnimationEndPosition(&value)); - return value; -} - -template double impl_IProgressBarTemplateSettings::IndicatorLengthDelta() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_IndicatorLengthDelta(&value)); - return value; -} - -template double impl_IProgressRingTemplateSettings::EllipseDiameter() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_EllipseDiameter(&value)); - return value; -} - -template Windows::UI::Xaml::Thickness impl_IProgressRingTemplateSettings::EllipseOffset() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_EllipseOffset(put(value))); - return value; -} - -template double impl_IProgressRingTemplateSettings::MaxSideLength() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxSideLength(&value)); - return value; -} - -template double impl_IRangeBaseValueChangedEventArgs::OldValue() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OldValue(&value)); - return value; -} - -template double impl_IRangeBaseValueChangedEventArgs::NewValue() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_NewValue(&value)); - return value; -} - -template double impl_IScrollEventArgs::NewValue() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_NewValue(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::ScrollEventType impl_IScrollEventArgs::ScrollEventType() const -{ - Windows::UI::Xaml::Controls::Primitives::ScrollEventType value {}; - check_hresult(static_cast(static_cast(*this))->get_ScrollEventType(&value)); - return value; -} - -template Windows::UI::Xaml::Media::Brush impl_ISettingsFlyoutTemplateSettings::HeaderBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderBackground(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::Brush impl_ISettingsFlyoutTemplateSettings::HeaderForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderForeground(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::Brush impl_ISettingsFlyoutTemplateSettings::BorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderBrush(put(value))); - return value; -} - -template Windows::UI::Xaml::Thickness impl_ISettingsFlyoutTemplateSettings::BorderThickness() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_BorderThickness(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::ImageSource impl_ISettingsFlyoutTemplateSettings::IconSource() const -{ - Windows::UI::Xaml::Media::ImageSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IconSource(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::Animation::TransitionCollection impl_ISettingsFlyoutTemplateSettings::ContentTransitions() const -{ - Windows::UI::Xaml::Media::Animation::TransitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTransitions(put(value))); - return value; -} - -template double impl_IToggleSwitchTemplateSettings::KnobCurrentToOnOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_KnobCurrentToOnOffset(&value)); - return value; -} - -template double impl_IToggleSwitchTemplateSettings::KnobCurrentToOffOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_KnobCurrentToOffOffset(&value)); - return value; -} - -template double impl_IToggleSwitchTemplateSettings::KnobOnToOffOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_KnobOnToOffOffset(&value)); - return value; -} - -template double impl_IToggleSwitchTemplateSettings::KnobOffToOnOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_KnobOffToOnOffset(&value)); - return value; -} - -template double impl_IToggleSwitchTemplateSettings::CurtainCurrentToOnOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CurtainCurrentToOnOffset(&value)); - return value; -} - -template double impl_IToggleSwitchTemplateSettings::CurtainCurrentToOffOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CurtainCurrentToOffOffset(&value)); - return value; -} - -template double impl_IToggleSwitchTemplateSettings::CurtainOnToOffOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CurtainOnToOffOffset(&value)); - return value; -} - -template double impl_IToggleSwitchTemplateSettings::CurtainOffToOnOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CurtainOffToOnOffset(&value)); - return value; -} - -template double impl_IToolTipTemplateSettings::FromHorizontalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FromHorizontalOffset(&value)); - return value; -} - -template double impl_IToolTipTemplateSettings::FromVerticalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FromVerticalOffset(&value)); - return value; -} - -template Windows::UI::Xaml::UIElement impl_IPopup::Child() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Child(put(value))); - return value; -} - -template void impl_IPopup::Child(const Windows::UI::Xaml::UIElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Child(get(value))); -} - -template bool impl_IPopup::IsOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOpen(&value)); - return value; -} - -template void impl_IPopup::IsOpen(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOpen(value)); -} - -template double impl_IPopup::HorizontalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalOffset(&value)); - return value; -} - -template void impl_IPopup::HorizontalOffset(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HorizontalOffset(value)); -} - -template double impl_IPopup::VerticalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalOffset(&value)); - return value; -} - -template void impl_IPopup::VerticalOffset(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VerticalOffset(value)); -} - -template Windows::UI::Xaml::Media::Animation::TransitionCollection impl_IPopup::ChildTransitions() const -{ - Windows::UI::Xaml::Media::Animation::TransitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChildTransitions(put(value))); - return value; -} - -template void impl_IPopup::ChildTransitions(const Windows::UI::Xaml::Media::Animation::TransitionCollection & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChildTransitions(get(value))); -} - -template bool impl_IPopup::IsLightDismissEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsLightDismissEnabled(&value)); - return value; -} - -template void impl_IPopup::IsLightDismissEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsLightDismissEnabled(value)); -} - -template event_token impl_IPopup::Opened(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Opened(get(value), &token)); - return token; -} - -template event_revoker impl_IPopup::Opened(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IPopup::remove_Opened, Opened(value)); -} - -template void impl_IPopup::Opened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Opened(token)); -} - -template event_token impl_IPopup::Closed(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(value), &token)); - return token; -} - -template event_revoker impl_IPopup::Closed(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IPopup::remove_Closed, Closed(value)); -} - -template void impl_IPopup::Closed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IPopupStatics::ChildProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChildProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPopupStatics::IsOpenProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsOpenProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPopupStatics::HorizontalOffsetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HorizontalOffsetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPopupStatics::VerticalOffsetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VerticalOffsetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPopupStatics::ChildTransitionsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChildTransitionsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPopupStatics::IsLightDismissEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsLightDismissEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::LightDismissOverlayMode impl_IPopup2::LightDismissOverlayMode() const -{ - Windows::UI::Xaml::Controls::LightDismissOverlayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayMode(&value)); - return value; -} - -template void impl_IPopup2::LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LightDismissOverlayMode(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IPopupStatics2::LightDismissOverlayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::Brush impl_ITickBar::Fill() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Fill(put(value))); - return value; -} - -template void impl_ITickBar::Fill(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Fill(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_ITickBarStatics::FillProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FillProperty(put(value))); - return value; -} - -template double impl_IRangeBase::Minimum() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Minimum(&value)); - return value; -} - -template void impl_IRangeBase::Minimum(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Minimum(value)); -} - -template double impl_IRangeBase::Maximum() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Maximum(&value)); - return value; -} - -template void impl_IRangeBase::Maximum(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Maximum(value)); -} - -template double impl_IRangeBase::SmallChange() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_SmallChange(&value)); - return value; -} - -template void impl_IRangeBase::SmallChange(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SmallChange(value)); -} - -template double impl_IRangeBase::LargeChange() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_LargeChange(&value)); - return value; -} - -template void impl_IRangeBase::LargeChange(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LargeChange(value)); -} - -template double impl_IRangeBase::Value() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Value(&value)); - return value; -} - -template void impl_IRangeBase::Value(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Value(value)); -} - -template event_token impl_IRangeBase::ValueChanged(const Windows::UI::Xaml::Controls::Primitives::RangeBaseValueChangedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ValueChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IRangeBase::ValueChanged(auto_revoke_t, const Windows::UI::Xaml::Controls::Primitives::RangeBaseValueChangedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IRangeBase::remove_ValueChanged, ValueChanged(value)); -} - -template void impl_IRangeBase::ValueChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ValueChanged(token)); -} - -template void impl_IRangeBaseOverrides::OnMinimumChanged(double oldMinimum, double newMinimum) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnMinimumChanged(oldMinimum, newMinimum)); -} - -template void impl_IRangeBaseOverrides::OnMaximumChanged(double oldMaximum, double newMaximum) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnMaximumChanged(oldMaximum, newMaximum)); -} - -template void impl_IRangeBaseOverrides::OnValueChanged(double oldValue, double newValue) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnValueChanged(oldValue, newValue)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRangeBaseStatics::MinimumProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MinimumProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRangeBaseStatics::MaximumProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaximumProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRangeBaseStatics::SmallChangeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SmallChangeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRangeBaseStatics::LargeChangeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LargeChangeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRangeBaseStatics::ValueProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ValueProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::RangeBase impl_IRangeBaseFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::RangeBase instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_IThumb::IsDragging() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDragging(&value)); - return value; -} - -template event_token impl_IThumb::DragStarted(const Windows::UI::Xaml::Controls::Primitives::DragStartedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DragStarted(get(value), &token)); - return token; -} - -template event_revoker impl_IThumb::DragStarted(auto_revoke_t, const Windows::UI::Xaml::Controls::Primitives::DragStartedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IThumb::remove_DragStarted, DragStarted(value)); -} - -template void impl_IThumb::DragStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DragStarted(token)); -} - -template event_token impl_IThumb::DragDelta(const Windows::UI::Xaml::Controls::Primitives::DragDeltaEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DragDelta(get(value), &token)); - return token; -} - -template event_revoker impl_IThumb::DragDelta(auto_revoke_t, const Windows::UI::Xaml::Controls::Primitives::DragDeltaEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IThumb::remove_DragDelta, DragDelta(value)); -} - -template void impl_IThumb::DragDelta(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DragDelta(token)); -} - -template event_token impl_IThumb::DragCompleted(const Windows::UI::Xaml::Controls::Primitives::DragCompletedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DragCompleted(get(value), &token)); - return token; -} - -template event_revoker impl_IThumb::DragCompleted(auto_revoke_t, const Windows::UI::Xaml::Controls::Primitives::DragCompletedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IThumb::remove_DragCompleted, DragCompleted(value)); -} - -template void impl_IThumb::DragCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DragCompleted(token)); -} - -template void impl_IThumb::CancelDrag() const -{ - check_hresult(static_cast(static_cast(*this))->abi_CancelDrag()); -} - -template Windows::UI::Xaml::DependencyProperty impl_IThumbStatics::IsDraggingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsDraggingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ClickMode impl_IButtonBase::ClickMode() const -{ - Windows::UI::Xaml::Controls::ClickMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ClickMode(&value)); - return value; -} - -template void impl_IButtonBase::ClickMode(Windows::UI::Xaml::Controls::ClickMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ClickMode(value)); -} - -template bool impl_IButtonBase::IsPointerOver() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPointerOver(&value)); - return value; -} - -template bool impl_IButtonBase::IsPressed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPressed(&value)); - return value; -} - -template Windows::UI::Xaml::Input::ICommand impl_IButtonBase::Command() const -{ - Windows::UI::Xaml::Input::ICommand value; - check_hresult(static_cast(static_cast(*this))->get_Command(put(value))); - return value; -} - -template void impl_IButtonBase::Command(const Windows::UI::Xaml::Input::ICommand & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Command(get(value))); -} - -template Windows::IInspectable impl_IButtonBase::CommandParameter() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_CommandParameter(put(value))); - return value; -} - -template void impl_IButtonBase::CommandParameter(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CommandParameter(get(value))); -} - -template event_token impl_IButtonBase::Click(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Click(get(value), &token)); - return token; -} - -template event_revoker impl_IButtonBase::Click(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IButtonBase::remove_Click, Click(value)); -} - -template void impl_IButtonBase::Click(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Click(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IButtonBaseStatics::ClickModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ClickModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IButtonBaseStatics::IsPointerOverProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsPointerOverProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IButtonBaseStatics::IsPressedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsPressedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IButtonBaseStatics::CommandProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CommandProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IButtonBaseStatics::CommandParameterProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CommandParameterProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::ButtonBase impl_IButtonBaseFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::ButtonBase instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_ICarouselPanel::CanVerticallyScroll() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanVerticallyScroll(&value)); - return value; -} - -template void impl_ICarouselPanel::CanVerticallyScroll(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanVerticallyScroll(value)); -} - -template bool impl_ICarouselPanel::CanHorizontallyScroll() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanHorizontallyScroll(&value)); - return value; -} - -template void impl_ICarouselPanel::CanHorizontallyScroll(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanHorizontallyScroll(value)); -} - -template double impl_ICarouselPanel::ExtentWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtentWidth(&value)); - return value; -} - -template double impl_ICarouselPanel::ExtentHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtentHeight(&value)); - return value; -} - -template double impl_ICarouselPanel::ViewportWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewportWidth(&value)); - return value; -} - -template double impl_ICarouselPanel::ViewportHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewportHeight(&value)); - return value; -} - -template double impl_ICarouselPanel::HorizontalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalOffset(&value)); - return value; -} - -template double impl_ICarouselPanel::VerticalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalOffset(&value)); - return value; -} - -template Windows::IInspectable impl_ICarouselPanel::ScrollOwner() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_ScrollOwner(put(value))); - return value; -} - -template void impl_ICarouselPanel::ScrollOwner(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScrollOwner(get(value))); -} - -template void impl_ICarouselPanel::LineUp() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineUp()); -} - -template void impl_ICarouselPanel::LineDown() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineDown()); -} - -template void impl_ICarouselPanel::LineLeft() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineLeft()); -} - -template void impl_ICarouselPanel::LineRight() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineRight()); -} - -template void impl_ICarouselPanel::PageUp() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageUp()); -} - -template void impl_ICarouselPanel::PageDown() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageDown()); -} - -template void impl_ICarouselPanel::PageLeft() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageLeft()); -} - -template void impl_ICarouselPanel::PageRight() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageRight()); -} - -template void impl_ICarouselPanel::MouseWheelUp() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelUp()); -} - -template void impl_ICarouselPanel::MouseWheelDown() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelDown()); -} - -template void impl_ICarouselPanel::MouseWheelLeft() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelLeft()); -} - -template void impl_ICarouselPanel::MouseWheelRight() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelRight()); -} - -template void impl_ICarouselPanel::SetHorizontalOffset(double offset) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetHorizontalOffset(offset)); -} - -template void impl_ICarouselPanel::SetVerticalOffset(double offset) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetVerticalOffset(offset)); -} - -template Windows::Foundation::Rect impl_ICarouselPanel::MakeVisible(const Windows::UI::Xaml::UIElement & visual, const Windows::Foundation::Rect & rectangle) const -{ - Windows::Foundation::Rect returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_MakeVisible(get(visual), get(rectangle), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::Primitives::CarouselPanel impl_ICarouselPanelFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::CarouselPanel instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_IOrientedVirtualizingPanel::CanVerticallyScroll() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanVerticallyScroll(&value)); - return value; -} - -template void impl_IOrientedVirtualizingPanel::CanVerticallyScroll(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanVerticallyScroll(value)); -} - -template bool impl_IOrientedVirtualizingPanel::CanHorizontallyScroll() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanHorizontallyScroll(&value)); - return value; -} - -template void impl_IOrientedVirtualizingPanel::CanHorizontallyScroll(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanHorizontallyScroll(value)); -} - -template double impl_IOrientedVirtualizingPanel::ExtentWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtentWidth(&value)); - return value; -} - -template double impl_IOrientedVirtualizingPanel::ExtentHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtentHeight(&value)); - return value; -} - -template double impl_IOrientedVirtualizingPanel::ViewportWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewportWidth(&value)); - return value; -} - -template double impl_IOrientedVirtualizingPanel::ViewportHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewportHeight(&value)); - return value; -} - -template double impl_IOrientedVirtualizingPanel::HorizontalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalOffset(&value)); - return value; -} - -template double impl_IOrientedVirtualizingPanel::VerticalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalOffset(&value)); - return value; -} - -template Windows::IInspectable impl_IOrientedVirtualizingPanel::ScrollOwner() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_ScrollOwner(put(value))); - return value; -} - -template void impl_IOrientedVirtualizingPanel::ScrollOwner(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScrollOwner(get(value))); -} - -template void impl_IOrientedVirtualizingPanel::LineUp() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineUp()); -} - -template void impl_IOrientedVirtualizingPanel::LineDown() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineDown()); -} - -template void impl_IOrientedVirtualizingPanel::LineLeft() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineLeft()); -} - -template void impl_IOrientedVirtualizingPanel::LineRight() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineRight()); -} - -template void impl_IOrientedVirtualizingPanel::PageUp() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageUp()); -} - -template void impl_IOrientedVirtualizingPanel::PageDown() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageDown()); -} - -template void impl_IOrientedVirtualizingPanel::PageLeft() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageLeft()); -} - -template void impl_IOrientedVirtualizingPanel::PageRight() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageRight()); -} - -template void impl_IOrientedVirtualizingPanel::MouseWheelUp() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelUp()); -} - -template void impl_IOrientedVirtualizingPanel::MouseWheelDown() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelDown()); -} - -template void impl_IOrientedVirtualizingPanel::MouseWheelLeft() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelLeft()); -} - -template void impl_IOrientedVirtualizingPanel::MouseWheelRight() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelRight()); -} - -template void impl_IOrientedVirtualizingPanel::SetHorizontalOffset(double offset) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetHorizontalOffset(offset)); -} - -template void impl_IOrientedVirtualizingPanel::SetVerticalOffset(double offset) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetVerticalOffset(offset)); -} - -template Windows::Foundation::Rect impl_IOrientedVirtualizingPanel::MakeVisible(const Windows::UI::Xaml::UIElement & visual, const Windows::Foundation::Rect & rectangle) const -{ - Windows::Foundation::Rect returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_MakeVisible(get(visual), get(rectangle), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::Orientation impl_IScrollBar::Orientation() const -{ - Windows::UI::Xaml::Controls::Orientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_IScrollBar::Orientation(Windows::UI::Xaml::Controls::Orientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template double impl_IScrollBar::ViewportSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewportSize(&value)); - return value; -} - -template void impl_IScrollBar::ViewportSize(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ViewportSize(value)); -} - -template Windows::UI::Xaml::Controls::Primitives::ScrollingIndicatorMode impl_IScrollBar::IndicatorMode() const -{ - Windows::UI::Xaml::Controls::Primitives::ScrollingIndicatorMode value {}; - check_hresult(static_cast(static_cast(*this))->get_IndicatorMode(&value)); - return value; -} - -template void impl_IScrollBar::IndicatorMode(Windows::UI::Xaml::Controls::Primitives::ScrollingIndicatorMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IndicatorMode(value)); -} - -template event_token impl_IScrollBar::Scroll(const Windows::UI::Xaml::Controls::Primitives::ScrollEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Scroll(get(value), &token)); - return token; -} - -template event_revoker impl_IScrollBar::Scroll(auto_revoke_t, const Windows::UI::Xaml::Controls::Primitives::ScrollEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IScrollBar::remove_Scroll, Scroll(value)); -} - -template void impl_IScrollBar::Scroll(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Scroll(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IScrollBarStatics::OrientationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OrientationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IScrollBarStatics::ViewportSizeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ViewportSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IScrollBarStatics::IndicatorModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IndicatorModeProperty(put(value))); - return value; -} - -template int32_t impl_ISelector::SelectedIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedIndex(&value)); - return value; -} - -template void impl_ISelector::SelectedIndex(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedIndex(value)); -} - -template Windows::IInspectable impl_ISelector::SelectedItem() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_SelectedItem(put(value))); - return value; -} - -template void impl_ISelector::SelectedItem(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedItem(get(value))); -} - -template Windows::IInspectable impl_ISelector::SelectedValue() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_SelectedValue(put(value))); - return value; -} - -template void impl_ISelector::SelectedValue(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedValue(get(value))); -} - -template hstring impl_ISelector::SelectedValuePath() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SelectedValuePath(put(value))); - return value; -} - -template void impl_ISelector::SelectedValuePath(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedValuePath(get(value))); -} - -template Windows::Foundation::IReference impl_ISelector::IsSynchronizedWithCurrentItem() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_IsSynchronizedWithCurrentItem(put(value))); - return value; -} - -template void impl_ISelector::IsSynchronizedWithCurrentItem(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSynchronizedWithCurrentItem(get(value))); -} - -template event_token impl_ISelector::SelectionChanged(const Windows::UI::Xaml::Controls::SelectionChangedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SelectionChanged(get(value), &token)); - return token; -} - -template event_revoker impl_ISelector::SelectionChanged(auto_revoke_t, const Windows::UI::Xaml::Controls::SelectionChangedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::ISelector::remove_SelectionChanged, SelectionChanged(value)); -} - -template void impl_ISelector::SelectionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SelectionChanged(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ISelectorStatics::SelectedIndexProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedIndexProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISelectorStatics::SelectedItemProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedItemProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISelectorStatics::SelectedValueProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedValueProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISelectorStatics::SelectedValuePathProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedValuePathProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISelectorStatics::IsSynchronizedWithCurrentItemProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSynchronizedWithCurrentItemProperty(put(value))); - return value; -} - -template bool impl_ISelectorStatics::GetIsSelectionActive(const Windows::UI::Xaml::DependencyObject & element) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetIsSelectionActive(get(element), &returnValue)); - return returnValue; -} - -template bool impl_ISelectorItem::IsSelected() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSelected(&value)); - return value; -} - -template void impl_ISelectorItem::IsSelected(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSelected(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ISelectorItemStatics::IsSelectedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSelectedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::SelectorItem impl_ISelectorItemFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::SelectorItem instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template int32_t impl_IRepeatButton::Delay() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Delay(&value)); - return value; -} - -template void impl_IRepeatButton::Delay(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Delay(value)); -} - -template int32_t impl_IRepeatButton::Interval() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Interval(&value)); - return value; -} - -template void impl_IRepeatButton::Interval(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Interval(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRepeatButtonStatics::DelayProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DelayProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRepeatButtonStatics::IntervalProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IntervalProperty(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IToggleButton::IsChecked() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_IsChecked(put(value))); - return value; -} - -template void impl_IToggleButton::IsChecked(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsChecked(get(value))); -} - -template bool impl_IToggleButton::IsThreeState() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsThreeState(&value)); - return value; -} - -template void impl_IToggleButton::IsThreeState(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsThreeState(value)); -} - -template event_token impl_IToggleButton::Checked(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Checked(get(value), &token)); - return token; -} - -template event_revoker impl_IToggleButton::Checked(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IToggleButton::remove_Checked, Checked(value)); -} - -template void impl_IToggleButton::Checked(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Checked(token)); -} - -template event_token impl_IToggleButton::Unchecked(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Unchecked(get(value), &token)); - return token; -} - -template event_revoker impl_IToggleButton::Unchecked(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IToggleButton::remove_Unchecked, Unchecked(value)); -} - -template void impl_IToggleButton::Unchecked(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Unchecked(token)); -} - -template event_token impl_IToggleButton::Indeterminate(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Indeterminate(get(value), &token)); - return token; -} - -template event_revoker impl_IToggleButton::Indeterminate(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IToggleButton::remove_Indeterminate, Indeterminate(value)); -} - -template void impl_IToggleButton::Indeterminate(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Indeterminate(token)); -} - -template void impl_IToggleButtonOverrides::OnToggle() const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnToggle()); -} - -template Windows::UI::Xaml::DependencyProperty impl_IToggleButtonStatics::IsCheckedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsCheckedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IToggleButtonStatics::IsThreeStateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsThreeStateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::ToggleButton impl_IToggleButtonFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::ToggleButton instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::Foundation::Rect impl_IAppBarTemplateSettings::ClipRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_ClipRect(put(value))); - return value; -} - -template double impl_IAppBarTemplateSettings::CompactVerticalDelta() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CompactVerticalDelta(&value)); - return value; -} - -template Windows::UI::Xaml::Thickness impl_IAppBarTemplateSettings::CompactRootMargin() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_CompactRootMargin(put(value))); - return value; -} - -template double impl_IAppBarTemplateSettings::MinimalVerticalDelta() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimalVerticalDelta(&value)); - return value; -} - -template Windows::UI::Xaml::Thickness impl_IAppBarTemplateSettings::MinimalRootMargin() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_MinimalRootMargin(put(value))); - return value; -} - -template double impl_IAppBarTemplateSettings::HiddenVerticalDelta() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HiddenVerticalDelta(&value)); - return value; -} - -template Windows::UI::Xaml::Thickness impl_IAppBarTemplateSettings::HiddenRootMargin() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_HiddenRootMargin(put(value))); - return value; -} - -template double impl_ICalendarViewTemplateSettings::MinViewWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MinViewWidth(&value)); - return value; -} - -template hstring impl_ICalendarViewTemplateSettings::HeaderText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_HeaderText(put(value))); - return value; -} - -template hstring impl_ICalendarViewTemplateSettings::WeekDay1() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WeekDay1(put(value))); - return value; -} - -template hstring impl_ICalendarViewTemplateSettings::WeekDay2() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WeekDay2(put(value))); - return value; -} - -template hstring impl_ICalendarViewTemplateSettings::WeekDay3() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WeekDay3(put(value))); - return value; -} - -template hstring impl_ICalendarViewTemplateSettings::WeekDay4() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WeekDay4(put(value))); - return value; -} - -template hstring impl_ICalendarViewTemplateSettings::WeekDay5() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WeekDay5(put(value))); - return value; -} - -template hstring impl_ICalendarViewTemplateSettings::WeekDay6() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WeekDay6(put(value))); - return value; -} - -template hstring impl_ICalendarViewTemplateSettings::WeekDay7() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_WeekDay7(put(value))); - return value; -} - -template bool impl_ICalendarViewTemplateSettings::HasMoreContentAfter() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasMoreContentAfter(&value)); - return value; -} - -template bool impl_ICalendarViewTemplateSettings::HasMoreContentBefore() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasMoreContentBefore(&value)); - return value; -} - -template bool impl_ICalendarViewTemplateSettings::HasMoreViews() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasMoreViews(&value)); - return value; -} - -template Windows::Foundation::Rect impl_ICalendarViewTemplateSettings::ClipRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_ClipRect(put(value))); - return value; -} - -template double impl_ICalendarViewTemplateSettings::CenterX() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CenterX(&value)); - return value; -} - -template double impl_ICalendarViewTemplateSettings::CenterY() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CenterY(&value)); - return value; -} - -template double impl_ICommandBarTemplateSettings::ContentHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ContentHeight(&value)); - return value; -} - -template Windows::Foundation::Rect impl_ICommandBarTemplateSettings::OverflowContentClipRect() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_OverflowContentClipRect(put(value))); - return value; -} - -template double impl_ICommandBarTemplateSettings::OverflowContentMinWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OverflowContentMinWidth(&value)); - return value; -} - -template double impl_ICommandBarTemplateSettings::OverflowContentMaxHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OverflowContentMaxHeight(&value)); - return value; -} - -template double impl_ICommandBarTemplateSettings::OverflowContentHorizontalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OverflowContentHorizontalOffset(&value)); - return value; -} - -template double impl_ICommandBarTemplateSettings::OverflowContentHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OverflowContentHeight(&value)); - return value; -} - -template double impl_ICommandBarTemplateSettings::NegativeOverflowContentHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_NegativeOverflowContentHeight(&value)); - return value; -} - -template double impl_ICommandBarTemplateSettings2::OverflowContentMaxWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OverflowContentMaxWidth(&value)); - return value; -} - -template Windows::UI::Xaml::Visibility impl_ICommandBarTemplateSettings3::EffectiveOverflowButtonVisibility() const -{ - Windows::UI::Xaml::Visibility value {}; - check_hresult(static_cast(static_cast(*this))->get_EffectiveOverflowButtonVisibility(&value)); - return value; -} - -template double impl_ISplitViewTemplateSettings::OpenPaneLength() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OpenPaneLength(&value)); - return value; -} - -template double impl_ISplitViewTemplateSettings::NegativeOpenPaneLength() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_NegativeOpenPaneLength(&value)); - return value; -} - -template double impl_ISplitViewTemplateSettings::OpenPaneLengthMinusCompactLength() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OpenPaneLengthMinusCompactLength(&value)); - return value; -} - -template double impl_ISplitViewTemplateSettings::NegativeOpenPaneLengthMinusCompactLength() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_NegativeOpenPaneLengthMinusCompactLength(&value)); - return value; -} - -template Windows::UI::Xaml::GridLength impl_ISplitViewTemplateSettings::OpenPaneGridLength() const -{ - Windows::UI::Xaml::GridLength value {}; - check_hresult(static_cast(static_cast(*this))->get_OpenPaneGridLength(put(value))); - return value; -} - -template Windows::UI::Xaml::GridLength impl_ISplitViewTemplateSettings::CompactPaneGridLength() const -{ - Windows::UI::Xaml::GridLength value {}; - check_hresult(static_cast(static_cast(*this))->get_CompactPaneGridLength(put(value))); - return value; -} - -template bool impl_IGridViewItemPresenter::SelectionCheckMarkVisualEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectionCheckMarkVisualEnabled(&value)); - return value; -} - -template void impl_IGridViewItemPresenter::SelectionCheckMarkVisualEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionCheckMarkVisualEnabled(value)); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::CheckHintBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckHintBrush(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::CheckHintBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CheckHintBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::CheckSelectingBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckSelectingBrush(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::CheckSelectingBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CheckSelectingBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::CheckBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckBrush(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::CheckBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CheckBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::DragBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DragBackground(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::DragBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DragBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::DragForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DragForeground(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::DragForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DragForeground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::FocusBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FocusBorderBrush(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::FocusBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FocusBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::PlaceholderBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderBackground(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::PlaceholderBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaceholderBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::PointerOverBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PointerOverBackground(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::PointerOverBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PointerOverBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::SelectedBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedBackground(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::SelectedBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::SelectedForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedForeground(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::SelectedForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedForeground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::SelectedPointerOverBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPointerOverBackground(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::SelectedPointerOverBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedPointerOverBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IGridViewItemPresenter::SelectedPointerOverBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPointerOverBorderBrush(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::SelectedPointerOverBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedPointerOverBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IGridViewItemPresenter::SelectedBorderThickness() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedBorderThickness(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::SelectedBorderThickness(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedBorderThickness(get(value))); -} - -template double impl_IGridViewItemPresenter::DisabledOpacity() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DisabledOpacity(&value)); - return value; -} - -template void impl_IGridViewItemPresenter::DisabledOpacity(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisabledOpacity(value)); -} - -template double impl_IGridViewItemPresenter::DragOpacity() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DragOpacity(&value)); - return value; -} - -template void impl_IGridViewItemPresenter::DragOpacity(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DragOpacity(value)); -} - -template double impl_IGridViewItemPresenter::ReorderHintOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ReorderHintOffset(&value)); - return value; -} - -template void impl_IGridViewItemPresenter::ReorderHintOffset(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReorderHintOffset(value)); -} - -template Windows::UI::Xaml::HorizontalAlignment impl_IGridViewItemPresenter::GridViewItemPresenterHorizontalContentAlignment() const -{ - Windows::UI::Xaml::HorizontalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_GridViewItemPresenterHorizontalContentAlignment(&value)); - return value; -} - -template void impl_IGridViewItemPresenter::GridViewItemPresenterHorizontalContentAlignment(Windows::UI::Xaml::HorizontalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GridViewItemPresenterHorizontalContentAlignment(value)); -} - -template Windows::UI::Xaml::VerticalAlignment impl_IGridViewItemPresenter::GridViewItemPresenterVerticalContentAlignment() const -{ - Windows::UI::Xaml::VerticalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_GridViewItemPresenterVerticalContentAlignment(&value)); - return value; -} - -template void impl_IGridViewItemPresenter::GridViewItemPresenterVerticalContentAlignment(Windows::UI::Xaml::VerticalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GridViewItemPresenterVerticalContentAlignment(value)); -} - -template Windows::UI::Xaml::Thickness impl_IGridViewItemPresenter::GridViewItemPresenterPadding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_GridViewItemPresenterPadding(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::GridViewItemPresenterPadding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GridViewItemPresenterPadding(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IGridViewItemPresenter::PointerOverBackgroundMargin() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerOverBackgroundMargin(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::PointerOverBackgroundMargin(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PointerOverBackgroundMargin(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IGridViewItemPresenter::ContentMargin() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_ContentMargin(put(value))); - return value; -} - -template void impl_IGridViewItemPresenter::ContentMargin(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentMargin(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::SelectionCheckMarkVisualEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionCheckMarkVisualEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::CheckHintBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckHintBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::CheckSelectingBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckSelectingBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::CheckBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::DragBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DragBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::DragForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DragForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::FocusBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FocusBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::PlaceholderBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::PointerOverBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PointerOverBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::SelectedBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::SelectedForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::SelectedPointerOverBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPointerOverBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::SelectedPointerOverBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPointerOverBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::SelectedBorderThicknessProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedBorderThicknessProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::DisabledOpacityProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisabledOpacityProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::DragOpacityProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DragOpacityProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::ReorderHintOffsetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ReorderHintOffsetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::GridViewItemPresenterHorizontalContentAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GridViewItemPresenterHorizontalContentAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::GridViewItemPresenterVerticalContentAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GridViewItemPresenterVerticalContentAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::GridViewItemPresenterPaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GridViewItemPresenterPaddingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::PointerOverBackgroundMarginProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PointerOverBackgroundMarginProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridViewItemPresenterStatics::ContentMarginProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentMarginProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::GridViewItemPresenter impl_IGridViewItemPresenterFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::GridViewItemPresenter instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_IListViewItemPresenter::SelectionCheckMarkVisualEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectionCheckMarkVisualEnabled(&value)); - return value; -} - -template void impl_IListViewItemPresenter::SelectionCheckMarkVisualEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionCheckMarkVisualEnabled(value)); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::CheckHintBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckHintBrush(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::CheckHintBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CheckHintBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::CheckSelectingBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckSelectingBrush(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::CheckSelectingBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CheckSelectingBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::CheckBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckBrush(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::CheckBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CheckBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::DragBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DragBackground(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::DragBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DragBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::DragForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DragForeground(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::DragForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DragForeground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::FocusBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FocusBorderBrush(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::FocusBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FocusBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::PlaceholderBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderBackground(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::PlaceholderBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaceholderBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::PointerOverBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PointerOverBackground(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::PointerOverBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PointerOverBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::SelectedBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedBackground(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::SelectedBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::SelectedForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedForeground(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::SelectedForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedForeground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::SelectedPointerOverBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPointerOverBackground(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::SelectedPointerOverBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedPointerOverBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter::SelectedPointerOverBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPointerOverBorderBrush(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::SelectedPointerOverBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedPointerOverBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IListViewItemPresenter::SelectedBorderThickness() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedBorderThickness(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::SelectedBorderThickness(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedBorderThickness(get(value))); -} - -template double impl_IListViewItemPresenter::DisabledOpacity() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DisabledOpacity(&value)); - return value; -} - -template void impl_IListViewItemPresenter::DisabledOpacity(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisabledOpacity(value)); -} - -template double impl_IListViewItemPresenter::DragOpacity() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DragOpacity(&value)); - return value; -} - -template void impl_IListViewItemPresenter::DragOpacity(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DragOpacity(value)); -} - -template double impl_IListViewItemPresenter::ReorderHintOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ReorderHintOffset(&value)); - return value; -} - -template void impl_IListViewItemPresenter::ReorderHintOffset(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReorderHintOffset(value)); -} - -template Windows::UI::Xaml::HorizontalAlignment impl_IListViewItemPresenter::ListViewItemPresenterHorizontalContentAlignment() const -{ - Windows::UI::Xaml::HorizontalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_ListViewItemPresenterHorizontalContentAlignment(&value)); - return value; -} - -template void impl_IListViewItemPresenter::ListViewItemPresenterHorizontalContentAlignment(Windows::UI::Xaml::HorizontalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ListViewItemPresenterHorizontalContentAlignment(value)); -} - -template Windows::UI::Xaml::VerticalAlignment impl_IListViewItemPresenter::ListViewItemPresenterVerticalContentAlignment() const -{ - Windows::UI::Xaml::VerticalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_ListViewItemPresenterVerticalContentAlignment(&value)); - return value; -} - -template void impl_IListViewItemPresenter::ListViewItemPresenterVerticalContentAlignment(Windows::UI::Xaml::VerticalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ListViewItemPresenterVerticalContentAlignment(value)); -} - -template Windows::UI::Xaml::Thickness impl_IListViewItemPresenter::ListViewItemPresenterPadding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_ListViewItemPresenterPadding(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::ListViewItemPresenterPadding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ListViewItemPresenterPadding(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IListViewItemPresenter::PointerOverBackgroundMargin() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_PointerOverBackgroundMargin(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::PointerOverBackgroundMargin(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PointerOverBackgroundMargin(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IListViewItemPresenter::ContentMargin() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_ContentMargin(put(value))); - return value; -} - -template void impl_IListViewItemPresenter::ContentMargin(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentMargin(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::SelectionCheckMarkVisualEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionCheckMarkVisualEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::CheckHintBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckHintBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::CheckSelectingBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckSelectingBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::CheckBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::DragBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DragBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::DragForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DragForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::FocusBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FocusBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::PlaceholderBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::PointerOverBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PointerOverBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::SelectedBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::SelectedForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::SelectedPointerOverBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPointerOverBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::SelectedPointerOverBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPointerOverBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::SelectedBorderThicknessProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedBorderThicknessProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::DisabledOpacityProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisabledOpacityProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::DragOpacityProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DragOpacityProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::ReorderHintOffsetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ReorderHintOffsetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::ListViewItemPresenterHorizontalContentAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ListViewItemPresenterHorizontalContentAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::ListViewItemPresenterVerticalContentAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ListViewItemPresenterVerticalContentAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::ListViewItemPresenterPaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ListViewItemPresenterPaddingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::PointerOverBackgroundMarginProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PointerOverBackgroundMarginProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics::ContentMarginProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentMarginProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenter impl_IListViewItemPresenterFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenter instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter2::SelectedPressedBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPressedBackground(put(value))); - return value; -} - -template void impl_IListViewItemPresenter2::SelectedPressedBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedPressedBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter2::PressedBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PressedBackground(put(value))); - return value; -} - -template void impl_IListViewItemPresenter2::PressedBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PressedBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter2::CheckBoxBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckBoxBrush(put(value))); - return value; -} - -template void impl_IListViewItemPresenter2::CheckBoxBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CheckBoxBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter2::FocusSecondaryBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FocusSecondaryBorderBrush(put(value))); - return value; -} - -template void impl_IListViewItemPresenter2::FocusSecondaryBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FocusSecondaryBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenterCheckMode impl_IListViewItemPresenter2::CheckMode() const -{ - Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenterCheckMode value {}; - check_hresult(static_cast(static_cast(*this))->get_CheckMode(&value)); - return value; -} - -template void impl_IListViewItemPresenter2::CheckMode(Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenterCheckMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CheckMode(value)); -} - -template Windows::UI::Xaml::Media::Brush impl_IListViewItemPresenter2::PointerOverForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PointerOverForeground(put(value))); - return value; -} - -template void impl_IListViewItemPresenter2::PointerOverForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PointerOverForeground(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics2::SelectedPressedBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPressedBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics2::PressedBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PressedBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics2::CheckBoxBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckBoxBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics2::FocusSecondaryBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FocusSecondaryBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics2::CheckModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CheckModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewItemPresenterStatics2::PointerOverForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PointerOverForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::GeneratorPosition impl_IGeneratorPositionHelperStatics::FromIndexAndOffset(int32_t index, int32_t offset) const -{ - Windows::UI::Xaml::Controls::Primitives::GeneratorPosition returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_FromIndexAndOffset(index, offset, put(returnValue))); - return returnValue; -} - -template bool impl_IFlyoutBaseClosingEventArgs::Cancel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Cancel(&value)); - return value; -} - -template void impl_IFlyoutBaseClosingEventArgs::Cancel(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Cancel(value)); -} - -template Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode impl_IFlyoutBase::Placement() const -{ - Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Placement(&value)); - return value; -} - -template void impl_IFlyoutBase::Placement(Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Placement(value)); -} - -template event_token impl_IFlyoutBase::Opened(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Opened(get(value), &token)); - return token; -} - -template event_revoker impl_IFlyoutBase::Opened(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IFlyoutBase::remove_Opened, Opened(value)); -} - -template void impl_IFlyoutBase::Opened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Opened(token)); -} - -template event_token impl_IFlyoutBase::Closed(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(value), &token)); - return token; -} - -template event_revoker impl_IFlyoutBase::Closed(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IFlyoutBase::remove_Closed, Closed(value)); -} - -template void impl_IFlyoutBase::Closed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(token)); -} - -template event_token impl_IFlyoutBase::Opening(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Opening(get(value), &token)); - return token; -} - -template event_revoker impl_IFlyoutBase::Opening(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IFlyoutBase::remove_Opening, Opening(value)); -} - -template void impl_IFlyoutBase::Opening(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Opening(token)); -} - -template void impl_IFlyoutBase::ShowAt(const Windows::UI::Xaml::FrameworkElement & placementTarget) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowAt(get(placementTarget))); -} - -template void impl_IFlyoutBase::Hide() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Hide()); -} - -template Windows::UI::Xaml::Controls::Control impl_IFlyoutBaseOverrides::CreatePresenter() const -{ - Windows::UI::Xaml::Controls::Control returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreatePresenter(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_IFlyoutBaseStatics::PlacementProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlacementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IFlyoutBaseStatics::AttachedFlyoutProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AttachedFlyoutProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::FlyoutBase impl_IFlyoutBaseStatics::GetAttachedFlyout(const Windows::UI::Xaml::FrameworkElement & element) const -{ - Windows::UI::Xaml::Controls::Primitives::FlyoutBase value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAttachedFlyout(get(element), put(value))); - return value; -} - -template void impl_IFlyoutBaseStatics::SetAttachedFlyout(const Windows::UI::Xaml::FrameworkElement & element, const Windows::UI::Xaml::Controls::Primitives::FlyoutBase & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAttachedFlyout(get(element), get(value))); -} - -template void impl_IFlyoutBaseStatics::ShowAttachedFlyout(const Windows::UI::Xaml::FrameworkElement & flyoutOwner) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowAttachedFlyout(get(flyoutOwner))); -} - -template Windows::UI::Xaml::Controls::Primitives::FlyoutBase impl_IFlyoutBaseFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::FlyoutBase instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::FrameworkElement impl_IFlyoutBase2::Target() const -{ - Windows::UI::Xaml::FrameworkElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Target(put(value))); - return value; -} - -template bool impl_IFlyoutBase2::AllowFocusOnInteraction() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowFocusOnInteraction(&value)); - return value; -} - -template void impl_IFlyoutBase2::AllowFocusOnInteraction(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowFocusOnInteraction(value)); -} - -template Windows::UI::Xaml::Controls::LightDismissOverlayMode impl_IFlyoutBase2::LightDismissOverlayMode() const -{ - Windows::UI::Xaml::Controls::LightDismissOverlayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayMode(&value)); - return value; -} - -template void impl_IFlyoutBase2::LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LightDismissOverlayMode(value)); -} - -template bool impl_IFlyoutBase2::AllowFocusWhenDisabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AllowFocusWhenDisabled(&value)); - return value; -} - -template void impl_IFlyoutBase2::AllowFocusWhenDisabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowFocusWhenDisabled(value)); -} - -template Windows::UI::Xaml::ElementSoundMode impl_IFlyoutBase2::ElementSoundMode() const -{ - Windows::UI::Xaml::ElementSoundMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ElementSoundMode(&value)); - return value; -} - -template void impl_IFlyoutBase2::ElementSoundMode(Windows::UI::Xaml::ElementSoundMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ElementSoundMode(value)); -} - -template event_token impl_IFlyoutBase2::Closing(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closing(get(value), &token)); - return token; -} - -template event_revoker impl_IFlyoutBase2::Closing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::IFlyoutBase2::remove_Closing, Closing(value)); -} - -template void impl_IFlyoutBase2::Closing(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closing(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IFlyoutBaseStatics2::AllowFocusOnInteractionProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AllowFocusOnInteractionProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IFlyoutBaseStatics2::LightDismissOverlayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IFlyoutBaseStatics2::AllowFocusWhenDisabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AllowFocusWhenDisabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IFlyoutBaseStatics2::ElementSoundModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ElementSoundModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::Brush impl_IJumpListItemBackgroundConverter::Enabled() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Enabled(put(value))); - return value; -} - -template void impl_IJumpListItemBackgroundConverter::Enabled(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IJumpListItemBackgroundConverter::Disabled() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Disabled(put(value))); - return value; -} - -template void impl_IJumpListItemBackgroundConverter::Disabled(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Disabled(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IJumpListItemBackgroundConverterStatics::EnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IJumpListItemBackgroundConverterStatics::DisabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::Brush impl_IJumpListItemForegroundConverter::Enabled() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Enabled(put(value))); - return value; -} - -template void impl_IJumpListItemForegroundConverter::Enabled(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Enabled(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IJumpListItemForegroundConverter::Disabled() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Disabled(put(value))); - return value; -} - -template void impl_IJumpListItemForegroundConverter::Disabled(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Disabled(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IJumpListItemForegroundConverterStatics::EnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_EnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IJumpListItemForegroundConverterStatics::DisabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisabledProperty(put(value))); - return value; -} - -template void impl_IPickerFlyoutBaseOverrides::OnConfirmed() const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnConfirmed()); -} - -template bool impl_IPickerFlyoutBaseOverrides::ShouldShowConfirmationButtons() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_ShouldShowConfirmationButtons(&returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPickerFlyoutBaseStatics::TitleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TitleProperty(put(value))); - return value; -} - -template hstring impl_IPickerFlyoutBaseStatics::GetTitle(const Windows::UI::Xaml::DependencyObject & element) const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->abi_GetTitle(get(element), put(value))); - return value; -} - -template void impl_IPickerFlyoutBaseStatics::SetTitle(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetTitle(get(element), get(value))); -} - -template Windows::UI::Xaml::Controls::Primitives::PickerFlyoutBase impl_IPickerFlyoutBaseFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::PickerFlyoutBase instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_ILoopingSelector::ShouldLoop() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShouldLoop(&value)); - return value; -} - -template void impl_ILoopingSelector::ShouldLoop(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShouldLoop(value)); -} - -template Windows::Foundation::Collections::IVector impl_ILoopingSelector::Items() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Items(put(value))); - return value; -} - -template void impl_ILoopingSelector::Items(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Items(get(value))); -} - -template int32_t impl_ILoopingSelector::SelectedIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectedIndex(&value)); - return value; -} - -template void impl_ILoopingSelector::SelectedIndex(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedIndex(value)); -} - -template Windows::IInspectable impl_ILoopingSelector::SelectedItem() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_SelectedItem(put(value))); - return value; -} - -template void impl_ILoopingSelector::SelectedItem(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedItem(get(value))); -} - -template int32_t impl_ILoopingSelector::ItemWidth() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemWidth(&value)); - return value; -} - -template void impl_ILoopingSelector::ItemWidth(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemWidth(value)); -} - -template int32_t impl_ILoopingSelector::ItemHeight() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemHeight(&value)); - return value; -} - -template void impl_ILoopingSelector::ItemHeight(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemHeight(value)); -} - -template Windows::UI::Xaml::DataTemplate impl_ILoopingSelector::ItemTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemTemplate(put(value))); - return value; -} - -template void impl_ILoopingSelector::ItemTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemTemplate(get(value))); -} - -template event_token impl_ILoopingSelector::SelectionChanged(const Windows::UI::Xaml::Controls::SelectionChangedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SelectionChanged(get(value), &token)); - return token; -} - -template event_revoker impl_ILoopingSelector::SelectionChanged(auto_revoke_t, const Windows::UI::Xaml::Controls::SelectionChangedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::Primitives::ILoopingSelector::remove_SelectionChanged, SelectionChanged(value)); -} - -template void impl_ILoopingSelector::SelectionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SelectionChanged(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ILoopingSelectorStatics::ShouldLoopProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ShouldLoopProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ILoopingSelectorStatics::ItemsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ILoopingSelectorStatics::SelectedIndexProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedIndexProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ILoopingSelectorStatics::SelectedItemProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedItemProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ILoopingSelectorStatics::ItemWidthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemWidthProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ILoopingSelectorStatics::ItemHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemHeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ILoopingSelectorStatics::ItemTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::PivotHeaderItem impl_IPivotHeaderItemFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Primitives::PivotHeaderItem instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -inline Windows::UI::Xaml::DependencyProperty ButtonBase::ClickModeProperty() -{ - return get_activation_factory().ClickModeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ButtonBase::IsPointerOverProperty() -{ - return get_activation_factory().IsPointerOverProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ButtonBase::IsPressedProperty() -{ - return get_activation_factory().IsPressedProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ButtonBase::CommandProperty() -{ - return get_activation_factory().CommandProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ButtonBase::CommandParameterProperty() -{ - return get_activation_factory().CommandParameterProperty(); -} - -inline CalendarPanel::CalendarPanel() : - CalendarPanel(activate_instance()) -{} - -inline CarouselPanel::CarouselPanel() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline DragCompletedEventArgs::DragCompletedEventArgs(double horizontalChange, double verticalChange, bool canceled) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(horizontalChange, verticalChange, canceled, outer, inner)); -} - -inline DragDeltaEventArgs::DragDeltaEventArgs(double horizontalChange, double verticalChange) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithHorizontalChangeAndVerticalChange(horizontalChange, verticalChange, outer, inner)); -} - -inline DragStartedEventArgs::DragStartedEventArgs(double horizontalOffset, double verticalOffset) -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstanceWithHorizontalOffsetAndVerticalOffset(horizontalOffset, verticalOffset, outer, inner)); -} - -inline Windows::UI::Xaml::DependencyProperty FlyoutBase::PlacementProperty() -{ - return get_activation_factory().PlacementProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty FlyoutBase::AttachedFlyoutProperty() -{ - return get_activation_factory().AttachedFlyoutProperty(); -} - -inline Windows::UI::Xaml::Controls::Primitives::FlyoutBase FlyoutBase::GetAttachedFlyout(const Windows::UI::Xaml::FrameworkElement & element) -{ - return get_activation_factory().GetAttachedFlyout(element); -} - -inline void FlyoutBase::SetAttachedFlyout(const Windows::UI::Xaml::FrameworkElement & element, const Windows::UI::Xaml::Controls::Primitives::FlyoutBase & value) -{ - get_activation_factory().SetAttachedFlyout(element, value); -} - -inline void FlyoutBase::ShowAttachedFlyout(const Windows::UI::Xaml::FrameworkElement & flyoutOwner) -{ - get_activation_factory().ShowAttachedFlyout(flyoutOwner); -} - -inline Windows::UI::Xaml::DependencyProperty FlyoutBase::AllowFocusOnInteractionProperty() -{ - return get_activation_factory().AllowFocusOnInteractionProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty FlyoutBase::LightDismissOverlayModeProperty() -{ - return get_activation_factory().LightDismissOverlayModeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty FlyoutBase::AllowFocusWhenDisabledProperty() -{ - return get_activation_factory().AllowFocusWhenDisabledProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty FlyoutBase::ElementSoundModeProperty() -{ - return get_activation_factory().ElementSoundModeProperty(); -} - -inline Windows::UI::Xaml::Controls::Primitives::GeneratorPosition GeneratorPositionHelper::FromIndexAndOffset(int32_t index, int32_t offset) -{ - return get_activation_factory().FromIndexAndOffset(index, offset); -} - -inline GridViewItemPresenter::GridViewItemPresenter() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::SelectionCheckMarkVisualEnabledProperty() -{ - return get_activation_factory().SelectionCheckMarkVisualEnabledProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::CheckHintBrushProperty() -{ - return get_activation_factory().CheckHintBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::CheckSelectingBrushProperty() -{ - return get_activation_factory().CheckSelectingBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::CheckBrushProperty() -{ - return get_activation_factory().CheckBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::DragBackgroundProperty() -{ - return get_activation_factory().DragBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::DragForegroundProperty() -{ - return get_activation_factory().DragForegroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::FocusBorderBrushProperty() -{ - return get_activation_factory().FocusBorderBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::PlaceholderBackgroundProperty() -{ - return get_activation_factory().PlaceholderBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::PointerOverBackgroundProperty() -{ - return get_activation_factory().PointerOverBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::SelectedBackgroundProperty() -{ - return get_activation_factory().SelectedBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::SelectedForegroundProperty() -{ - return get_activation_factory().SelectedForegroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::SelectedPointerOverBackgroundProperty() -{ - return get_activation_factory().SelectedPointerOverBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::SelectedPointerOverBorderBrushProperty() -{ - return get_activation_factory().SelectedPointerOverBorderBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::SelectedBorderThicknessProperty() -{ - return get_activation_factory().SelectedBorderThicknessProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::DisabledOpacityProperty() -{ - return get_activation_factory().DisabledOpacityProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::DragOpacityProperty() -{ - return get_activation_factory().DragOpacityProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::ReorderHintOffsetProperty() -{ - return get_activation_factory().ReorderHintOffsetProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::GridViewItemPresenterHorizontalContentAlignmentProperty() -{ - return get_activation_factory().GridViewItemPresenterHorizontalContentAlignmentProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::GridViewItemPresenterVerticalContentAlignmentProperty() -{ - return get_activation_factory().GridViewItemPresenterVerticalContentAlignmentProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::GridViewItemPresenterPaddingProperty() -{ - return get_activation_factory().GridViewItemPresenterPaddingProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::PointerOverBackgroundMarginProperty() -{ - return get_activation_factory().PointerOverBackgroundMarginProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty GridViewItemPresenter::ContentMarginProperty() -{ - return get_activation_factory().ContentMarginProperty(); -} - -inline JumpListItemBackgroundConverter::JumpListItemBackgroundConverter() : - JumpListItemBackgroundConverter(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty JumpListItemBackgroundConverter::EnabledProperty() -{ - return get_activation_factory().EnabledProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty JumpListItemBackgroundConverter::DisabledProperty() -{ - return get_activation_factory().DisabledProperty(); -} - -inline JumpListItemForegroundConverter::JumpListItemForegroundConverter() : - JumpListItemForegroundConverter(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty JumpListItemForegroundConverter::EnabledProperty() -{ - return get_activation_factory().EnabledProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty JumpListItemForegroundConverter::DisabledProperty() -{ - return get_activation_factory().DisabledProperty(); -} - -inline Windows::UI::Xaml::UIElement LayoutInformation::GetLayoutExceptionElement(const Windows::IInspectable & dispatcher) -{ - return get_activation_factory().GetLayoutExceptionElement(dispatcher); -} - -inline Windows::Foundation::Rect LayoutInformation::GetLayoutSlot(const Windows::UI::Xaml::FrameworkElement & element) -{ - return get_activation_factory().GetLayoutSlot(element); -} - -inline ListViewItemPresenter::ListViewItemPresenter() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::SelectionCheckMarkVisualEnabledProperty() -{ - return get_activation_factory().SelectionCheckMarkVisualEnabledProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::CheckHintBrushProperty() -{ - return get_activation_factory().CheckHintBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::CheckSelectingBrushProperty() -{ - return get_activation_factory().CheckSelectingBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::CheckBrushProperty() -{ - return get_activation_factory().CheckBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::DragBackgroundProperty() -{ - return get_activation_factory().DragBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::DragForegroundProperty() -{ - return get_activation_factory().DragForegroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::FocusBorderBrushProperty() -{ - return get_activation_factory().FocusBorderBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::PlaceholderBackgroundProperty() -{ - return get_activation_factory().PlaceholderBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::PointerOverBackgroundProperty() -{ - return get_activation_factory().PointerOverBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::SelectedBackgroundProperty() -{ - return get_activation_factory().SelectedBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::SelectedForegroundProperty() -{ - return get_activation_factory().SelectedForegroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::SelectedPointerOverBackgroundProperty() -{ - return get_activation_factory().SelectedPointerOverBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::SelectedPointerOverBorderBrushProperty() -{ - return get_activation_factory().SelectedPointerOverBorderBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::SelectedBorderThicknessProperty() -{ - return get_activation_factory().SelectedBorderThicknessProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::DisabledOpacityProperty() -{ - return get_activation_factory().DisabledOpacityProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::DragOpacityProperty() -{ - return get_activation_factory().DragOpacityProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::ReorderHintOffsetProperty() -{ - return get_activation_factory().ReorderHintOffsetProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::ListViewItemPresenterHorizontalContentAlignmentProperty() -{ - return get_activation_factory().ListViewItemPresenterHorizontalContentAlignmentProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::ListViewItemPresenterVerticalContentAlignmentProperty() -{ - return get_activation_factory().ListViewItemPresenterVerticalContentAlignmentProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::ListViewItemPresenterPaddingProperty() -{ - return get_activation_factory().ListViewItemPresenterPaddingProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::PointerOverBackgroundMarginProperty() -{ - return get_activation_factory().PointerOverBackgroundMarginProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::ContentMarginProperty() -{ - return get_activation_factory().ContentMarginProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::SelectedPressedBackgroundProperty() -{ - return get_activation_factory().SelectedPressedBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::PressedBackgroundProperty() -{ - return get_activation_factory().PressedBackgroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::CheckBoxBrushProperty() -{ - return get_activation_factory().CheckBoxBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::FocusSecondaryBorderBrushProperty() -{ - return get_activation_factory().FocusSecondaryBorderBrushProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::CheckModeProperty() -{ - return get_activation_factory().CheckModeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ListViewItemPresenter::PointerOverForegroundProperty() -{ - return get_activation_factory().PointerOverForegroundProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty LoopingSelector::ShouldLoopProperty() -{ - return get_activation_factory().ShouldLoopProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty LoopingSelector::ItemsProperty() -{ - return get_activation_factory().ItemsProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty LoopingSelector::SelectedIndexProperty() -{ - return get_activation_factory().SelectedIndexProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty LoopingSelector::SelectedItemProperty() -{ - return get_activation_factory().SelectedItemProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty LoopingSelector::ItemWidthProperty() -{ - return get_activation_factory().ItemWidthProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty LoopingSelector::ItemHeightProperty() -{ - return get_activation_factory().ItemHeightProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty LoopingSelector::ItemTemplateProperty() -{ - return get_activation_factory().ItemTemplateProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty PickerFlyoutBase::TitleProperty() -{ - return get_activation_factory().TitleProperty(); -} - -inline hstring PickerFlyoutBase::GetTitle(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetTitle(element); -} - -inline void PickerFlyoutBase::SetTitle(const Windows::UI::Xaml::DependencyObject & element, hstring_ref value) -{ - get_activation_factory().SetTitle(element, value); -} - -inline PivotHeaderItem::PivotHeaderItem() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline PivotHeaderPanel::PivotHeaderPanel() : - PivotHeaderPanel(activate_instance()) -{} - -inline PivotPanel::PivotPanel() : - PivotPanel(activate_instance()) -{} - -inline Popup::Popup() : - Popup(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty Popup::ChildProperty() -{ - return get_activation_factory().ChildProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty Popup::IsOpenProperty() -{ - return get_activation_factory().IsOpenProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty Popup::HorizontalOffsetProperty() -{ - return get_activation_factory().HorizontalOffsetProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty Popup::VerticalOffsetProperty() -{ - return get_activation_factory().VerticalOffsetProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty Popup::ChildTransitionsProperty() -{ - return get_activation_factory().ChildTransitionsProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty Popup::IsLightDismissEnabledProperty() -{ - return get_activation_factory().IsLightDismissEnabledProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty Popup::LightDismissOverlayModeProperty() -{ - return get_activation_factory().LightDismissOverlayModeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty RangeBase::MinimumProperty() -{ - return get_activation_factory().MinimumProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty RangeBase::MaximumProperty() -{ - return get_activation_factory().MaximumProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty RangeBase::SmallChangeProperty() -{ - return get_activation_factory().SmallChangeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty RangeBase::LargeChangeProperty() -{ - return get_activation_factory().LargeChangeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty RangeBase::ValueProperty() -{ - return get_activation_factory().ValueProperty(); -} - -inline RepeatButton::RepeatButton() : - RepeatButton(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty RepeatButton::DelayProperty() -{ - return get_activation_factory().DelayProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty RepeatButton::IntervalProperty() -{ - return get_activation_factory().IntervalProperty(); -} - -inline ScrollBar::ScrollBar() : - ScrollBar(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty ScrollBar::OrientationProperty() -{ - return get_activation_factory().OrientationProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ScrollBar::ViewportSizeProperty() -{ - return get_activation_factory().ViewportSizeProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ScrollBar::IndicatorModeProperty() -{ - return get_activation_factory().IndicatorModeProperty(); -} - -inline ScrollEventArgs::ScrollEventArgs() : - ScrollEventArgs(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty Selector::SelectedIndexProperty() -{ - return get_activation_factory().SelectedIndexProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty Selector::SelectedItemProperty() -{ - return get_activation_factory().SelectedItemProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty Selector::SelectedValueProperty() -{ - return get_activation_factory().SelectedValueProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty Selector::SelectedValuePathProperty() -{ - return get_activation_factory().SelectedValuePathProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty Selector::IsSynchronizedWithCurrentItemProperty() -{ - return get_activation_factory().IsSynchronizedWithCurrentItemProperty(); -} - -inline bool Selector::GetIsSelectionActive(const Windows::UI::Xaml::DependencyObject & element) -{ - return get_activation_factory().GetIsSelectionActive(element); -} - -inline Windows::UI::Xaml::DependencyProperty SelectorItem::IsSelectedProperty() -{ - return get_activation_factory().IsSelectedProperty(); -} - -inline Thumb::Thumb() : - Thumb(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty Thumb::IsDraggingProperty() -{ - return get_activation_factory().IsDraggingProperty(); -} - -inline TickBar::TickBar() : - TickBar(activate_instance()) -{} - -inline Windows::UI::Xaml::DependencyProperty TickBar::FillProperty() -{ - return get_activation_factory().FillProperty(); -} - -inline ToggleButton::ToggleButton() -{ - Windows::IInspectable outer, inner; - impl_move(get_activation_factory().CreateInstance(outer, inner)); -} - -inline Windows::UI::Xaml::DependencyProperty ToggleButton::IsCheckedProperty() -{ - return get_activation_factory().IsCheckedProperty(); -} - -inline Windows::UI::Xaml::DependencyProperty ToggleButton::IsThreeStateProperty() -{ - return get_activation_factory().IsThreeStateProperty(); -} - -} - -} diff --git a/10.0.14393.0/winrt/Windows.UI.Xaml.Controls.h b/10.0.14393.0/winrt/Windows.UI.Xaml.Controls.h deleted file mode 100644 index b6aa9d4a8..000000000 --- a/10.0.14393.0/winrt/Windows.UI.Xaml.Controls.h +++ /dev/null @@ -1,65886 +0,0 @@ -// C++ for the Windows Runtime v1.0.161012.5 -// Copyright (c) 2016 Microsoft Corporation. All rights reserved. - -#pragma once - -#include "internal/Windows.Foundation.3.h" -#include "internal/Windows.UI.Xaml.3.h" -#include "internal/Windows.UI.Xaml.Interop.3.h" -#include "internal/Windows.UI.Xaml.Controls.Primitives.3.h" -#include "internal/Windows.Foundation.Collections.3.h" -#include "internal/Windows.ApplicationModel.DataTransfer.3.h" -#include "internal/Windows.UI.Xaml.Media.3.h" -#include "internal/Windows.Media.Capture.3.h" -#include "internal/Windows.UI.Text.3.h" -#include "internal/Windows.Media.PlayTo.3.h" -#include "internal/Windows.Media.Casting.3.h" -#include "internal/Windows.UI.Composition.3.h" -#include "internal/Windows.UI.Xaml.Documents.3.h" -#include "internal/Windows.UI.Xaml.Input.3.h" -#include "internal/Windows.UI.Xaml.Data.3.h" -#include "internal/Windows.ApplicationModel.Search.3.h" -#include "internal/Windows.System.3.h" -#include "internal/Windows.Web.3.h" -#include "internal/Windows.UI.Input.Inking.3.h" -#include "internal/Windows.Media.Protection.3.h" -#include "internal/Windows.Storage.Streams.3.h" -#include "internal/Windows.Media.Core.3.h" -#include "internal/Windows.Media.Playback.3.h" -#include "internal/Windows.UI.Xaml.Navigation.3.h" -#include "internal/Windows.UI.3.h" -#include "internal/Windows.Web.Http.3.h" -#include "internal/Windows.Globalization.3.h" -#include "internal/Windows.UI.Xaml.Media.Animation.3.h" -#include "internal/Windows.UI.Core.3.h" -#include "internal/Windows.UI.Xaml.Controls.3.h" -#include "Windows.UI.Xaml.h" -#include "Windows.Foundation.Collections.h" -#include "Windows.UI.Xaml.Controls.Primitives.h" -#include "Windows.UI.Xaml.Data.h" -#include "Windows.UI.Xaml.Media.h" -#include "internal/Windows.UI.Xaml.Controls.4.h" -#include "internal/Windows.UI.Xaml.Controls.5.h" - -WINRT_EXPORT namespace winrt { - -namespace Windows::UI::Xaml::Controls { - -template BackClickEventHandler::BackClickEventHandler(L lambda) : - BackClickEventHandler(impl::make_delegate, BackClickEventHandler>(std::forward(lambda))) -{} - -template BackClickEventHandler::BackClickEventHandler(F * function) : - BackClickEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template BackClickEventHandler::BackClickEventHandler(O * object, M method) : - BackClickEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void BackClickEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::BackClickEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template CalendarViewDayItemChangingEventHandler::CalendarViewDayItemChangingEventHandler(L lambda) : - CalendarViewDayItemChangingEventHandler(impl::make_delegate, CalendarViewDayItemChangingEventHandler>(std::forward(lambda))) -{} - -template CalendarViewDayItemChangingEventHandler::CalendarViewDayItemChangingEventHandler(F * function) : - CalendarViewDayItemChangingEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template CalendarViewDayItemChangingEventHandler::CalendarViewDayItemChangingEventHandler(O * object, M method) : - CalendarViewDayItemChangingEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void CalendarViewDayItemChangingEventHandler::operator()(const Windows::UI::Xaml::Controls::CalendarView & sender, const Windows::UI::Xaml::Controls::CalendarViewDayItemChangingEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template CleanUpVirtualizedItemEventHandler::CleanUpVirtualizedItemEventHandler(L lambda) : - CleanUpVirtualizedItemEventHandler(impl::make_delegate, CleanUpVirtualizedItemEventHandler>(std::forward(lambda))) -{} - -template CleanUpVirtualizedItemEventHandler::CleanUpVirtualizedItemEventHandler(F * function) : - CleanUpVirtualizedItemEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template CleanUpVirtualizedItemEventHandler::CleanUpVirtualizedItemEventHandler(O * object, M method) : - CleanUpVirtualizedItemEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void CleanUpVirtualizedItemEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::CleanUpVirtualizedItemEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template ContextMenuOpeningEventHandler::ContextMenuOpeningEventHandler(L lambda) : - ContextMenuOpeningEventHandler(impl::make_delegate, ContextMenuOpeningEventHandler>(std::forward(lambda))) -{} - -template ContextMenuOpeningEventHandler::ContextMenuOpeningEventHandler(F * function) : - ContextMenuOpeningEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template ContextMenuOpeningEventHandler::ContextMenuOpeningEventHandler(O * object, M method) : - ContextMenuOpeningEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void ContextMenuOpeningEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::ContextMenuEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template DragItemsStartingEventHandler::DragItemsStartingEventHandler(L lambda) : - DragItemsStartingEventHandler(impl::make_delegate, DragItemsStartingEventHandler>(std::forward(lambda))) -{} - -template DragItemsStartingEventHandler::DragItemsStartingEventHandler(F * function) : - DragItemsStartingEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template DragItemsStartingEventHandler::DragItemsStartingEventHandler(O * object, M method) : - DragItemsStartingEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void DragItemsStartingEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::DragItemsStartingEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template HubSectionHeaderClickEventHandler::HubSectionHeaderClickEventHandler(L lambda) : - HubSectionHeaderClickEventHandler(impl::make_delegate, HubSectionHeaderClickEventHandler>(std::forward(lambda))) -{} - -template HubSectionHeaderClickEventHandler::HubSectionHeaderClickEventHandler(F * function) : - HubSectionHeaderClickEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template HubSectionHeaderClickEventHandler::HubSectionHeaderClickEventHandler(O * object, M method) : - HubSectionHeaderClickEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void HubSectionHeaderClickEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::HubSectionHeaderClickEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template ItemClickEventHandler::ItemClickEventHandler(L lambda) : - ItemClickEventHandler(impl::make_delegate, ItemClickEventHandler>(std::forward(lambda))) -{} - -template ItemClickEventHandler::ItemClickEventHandler(F * function) : - ItemClickEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template ItemClickEventHandler::ItemClickEventHandler(O * object, M method) : - ItemClickEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void ItemClickEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::ItemClickEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template ListViewItemToKeyHandler::ListViewItemToKeyHandler(L lambda) : - ListViewItemToKeyHandler(impl::make_delegate, ListViewItemToKeyHandler>(std::forward(lambda))) -{} - -template ListViewItemToKeyHandler::ListViewItemToKeyHandler(F * function) : - ListViewItemToKeyHandler([=](auto && ... args) { return function(args ...); }) -{} - -template ListViewItemToKeyHandler::ListViewItemToKeyHandler(O * object, M method) : - ListViewItemToKeyHandler([=](auto && ... args) { return ((*object).*(method))(args ...); }) -{} - -inline hstring ListViewItemToKeyHandler::operator()(const Windows::IInspectable & item) const -{ - hstring returnValue; - check_hresult((*this)->abi_Invoke(get(item), put(returnValue))); - return returnValue; -} - -template ListViewKeyToItemHandler::ListViewKeyToItemHandler(L lambda) : - ListViewKeyToItemHandler(impl::make_delegate, ListViewKeyToItemHandler>(std::forward(lambda))) -{} - -template ListViewKeyToItemHandler::ListViewKeyToItemHandler(F * function) : - ListViewKeyToItemHandler([=](auto && ... args) { return function(args ...); }) -{} - -template ListViewKeyToItemHandler::ListViewKeyToItemHandler(O * object, M method) : - ListViewKeyToItemHandler([=](auto && ... args) { return ((*object).*(method))(args ...); }) -{} - -inline Windows::Foundation::IAsyncOperation ListViewKeyToItemHandler::operator()(hstring_ref key) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult((*this)->abi_Invoke(get(key), put(returnValue))); - return returnValue; -} - -template NotifyEventHandler::NotifyEventHandler(L lambda) : - NotifyEventHandler(impl::make_delegate, NotifyEventHandler>(std::forward(lambda))) -{} - -template NotifyEventHandler::NotifyEventHandler(F * function) : - NotifyEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template NotifyEventHandler::NotifyEventHandler(O * object, M method) : - NotifyEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void NotifyEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::NotifyEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template SectionsInViewChangedEventHandler::SectionsInViewChangedEventHandler(L lambda) : - SectionsInViewChangedEventHandler(impl::make_delegate, SectionsInViewChangedEventHandler>(std::forward(lambda))) -{} - -template SectionsInViewChangedEventHandler::SectionsInViewChangedEventHandler(F * function) : - SectionsInViewChangedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template SectionsInViewChangedEventHandler::SectionsInViewChangedEventHandler(O * object, M method) : - SectionsInViewChangedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void SectionsInViewChangedEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::SectionsInViewChangedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template SelectionChangedEventHandler::SelectionChangedEventHandler(L lambda) : - SelectionChangedEventHandler(impl::make_delegate, SelectionChangedEventHandler>(std::forward(lambda))) -{} - -template SelectionChangedEventHandler::SelectionChangedEventHandler(F * function) : - SelectionChangedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template SelectionChangedEventHandler::SelectionChangedEventHandler(O * object, M method) : - SelectionChangedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void SelectionChangedEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::SelectionChangedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template SemanticZoomViewChangedEventHandler::SemanticZoomViewChangedEventHandler(L lambda) : - SemanticZoomViewChangedEventHandler(impl::make_delegate, SemanticZoomViewChangedEventHandler>(std::forward(lambda))) -{} - -template SemanticZoomViewChangedEventHandler::SemanticZoomViewChangedEventHandler(F * function) : - SemanticZoomViewChangedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template SemanticZoomViewChangedEventHandler::SemanticZoomViewChangedEventHandler(O * object, M method) : - SemanticZoomViewChangedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void SemanticZoomViewChangedEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::SemanticZoomViewChangedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template TextChangedEventHandler::TextChangedEventHandler(L lambda) : - TextChangedEventHandler(impl::make_delegate, TextChangedEventHandler>(std::forward(lambda))) -{} - -template TextChangedEventHandler::TextChangedEventHandler(F * function) : - TextChangedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template TextChangedEventHandler::TextChangedEventHandler(O * object, M method) : - TextChangedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void TextChangedEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::TextChangedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template TextControlPasteEventHandler::TextControlPasteEventHandler(L lambda) : - TextControlPasteEventHandler(impl::make_delegate, TextControlPasteEventHandler>(std::forward(lambda))) -{} - -template TextControlPasteEventHandler::TextControlPasteEventHandler(F * function) : - TextControlPasteEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template TextControlPasteEventHandler::TextControlPasteEventHandler(O * object, M method) : - TextControlPasteEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void TextControlPasteEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::TextControlPasteEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -template WebViewNavigationFailedEventHandler::WebViewNavigationFailedEventHandler(L lambda) : - WebViewNavigationFailedEventHandler(impl::make_delegate, WebViewNavigationFailedEventHandler>(std::forward(lambda))) -{} - -template WebViewNavigationFailedEventHandler::WebViewNavigationFailedEventHandler(F * function) : - WebViewNavigationFailedEventHandler([=](auto && ... args) { function(args ...); }) -{} - -template WebViewNavigationFailedEventHandler::WebViewNavigationFailedEventHandler(O * object, M method) : - WebViewNavigationFailedEventHandler([=](auto && ... args) { ((*object).*(method))(args ...); }) -{} - -inline void WebViewNavigationFailedEventHandler::operator()(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::WebViewNavigationFailedEventArgs & e) const -{ - check_hresult((*this)->abi_Invoke(get(sender), get(e))); -} - -} - -namespace impl { - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOpen(bool value) noexcept override - { - try - { - this->shim().IsOpen(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSticky(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSticky()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSticky(bool value) noexcept override - { - try - { - this->shim().IsSticky(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Opened(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Opened(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Opened(event_token token) noexcept override - { - try - { - this->shim().Opened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closed(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closed(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token token) noexcept override - { - try - { - this->shim().Closed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClosedDisplayMode(Windows::UI::Xaml::Controls::AppBarClosedDisplayMode * value) noexcept override - { - try - { - *value = detach(this->shim().ClosedDisplayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClosedDisplayMode(Windows::UI::Xaml::Controls::AppBarClosedDisplayMode value) noexcept override - { - try - { - this->shim().ClosedDisplayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Opening(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Opening(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Opening(event_token token) noexcept override - { - try - { - this->shim().Opening(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closing(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closing(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closing(event_token token) noexcept override - { - try - { - this->shim().Closing(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode * value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) noexcept override - { - try - { - this->shim().LightDismissOverlayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Label(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Label()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Label(abi_arg_in value) noexcept override - { - try - { - this->shim().Label(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Icon(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Icon()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Icon(abi_arg_in value) noexcept override - { - try - { - this->shim().Icon(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LabelPosition(Windows::UI::Xaml::Controls::CommandBarLabelPosition * value) noexcept override - { - try - { - *value = detach(this->shim().LabelPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LabelPosition(Windows::UI::Xaml::Controls::CommandBarLabelPosition value) noexcept override - { - try - { - this->shim().LabelPosition(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LabelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LabelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IconProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IconProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCompactProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsCompactProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LabelPositionProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LabelPositionProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInOverflowProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsInOverflowProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DynamicOverflowOrderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DynamicOverflowOrderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnClosed(abi_arg_in e) noexcept override - { - try - { - this->shim().OnClosed(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnOpened(abi_arg_in e) noexcept override - { - try - { - this->shim().OnOpened(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnClosing(abi_arg_in e) noexcept override - { - try - { - this->shim().OnClosing(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnOpening(abi_arg_in e) noexcept override - { - try - { - this->shim().OnOpening(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsCompactProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsCompactProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsInOverflowProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsInOverflowProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DynamicOverflowOrderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DynamicOverflowOrderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsOpenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsOpenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStickyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsStickyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClosedDisplayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClosedDisplayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Label(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Label()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Label(abi_arg_in value) noexcept override - { - try - { - this->shim().Label(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Icon(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Icon()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Icon(abi_arg_in value) noexcept override - { - try - { - this->shim().Icon(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LabelPosition(Windows::UI::Xaml::Controls::CommandBarLabelPosition * value) noexcept override - { - try - { - *value = detach(this->shim().LabelPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LabelPosition(Windows::UI::Xaml::Controls::CommandBarLabelPosition value) noexcept override - { - try - { - this->shim().LabelPosition(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LabelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LabelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IconProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IconProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCompactProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsCompactProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LabelPositionProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LabelPositionProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInOverflowProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsInOverflowProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DynamicOverflowOrderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DynamicOverflowOrderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxSuggestionListHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxSuggestionListHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxSuggestionListHeight(double value) noexcept override - { - try - { - this->shim().MaxSuggestionListHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSuggestionListOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSuggestionListOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSuggestionListOpen(bool value) noexcept override - { - try - { - this->shim().IsSuggestionListOpen(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextMemberPath(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextMemberPath()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextMemberPath(abi_arg_in value) noexcept override - { - try - { - this->shim().TextMemberPath(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpdateTextOnSelect(bool * value) noexcept override - { - try - { - *value = detach(this->shim().UpdateTextOnSelect()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UpdateTextOnSelect(bool value) noexcept override - { - try - { - this->shim().UpdateTextOnSelect(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaceholderText(abi_arg_in value) noexcept override - { - try - { - this->shim().PlaceholderText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoMaximizeSuggestionArea(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoMaximizeSuggestionArea()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoMaximizeSuggestionArea(bool value) noexcept override - { - try - { - this->shim().AutoMaximizeSuggestionArea(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextBoxStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextBoxStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextBoxStyle(abi_arg_in value) noexcept override - { - try - { - this->shim().TextBoxStyle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SuggestionChosen(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SuggestionChosen(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SuggestionChosen(event_token token) noexcept override - { - try - { - this->shim().SuggestionChosen(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TextChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextChanged(event_token token) noexcept override - { - try - { - this->shim().TextChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryIcon(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryIcon()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_QueryIcon(abi_arg_in value) noexcept override - { - try - { - this->shim().QueryIcon(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_QuerySubmitted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().QuerySubmitted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_QuerySubmitted(event_token token) noexcept override - { - try - { - this->shim().QuerySubmitted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode * value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) noexcept override - { - try - { - this->shim().LightDismissOverlayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChosenSuggestion(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChosenSuggestion()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxSuggestionListHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxSuggestionListHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSuggestionListOpenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSuggestionListOpenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextMemberPathProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextMemberPathProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UpdateTextOnSelectProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UpdateTextOnSelectProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoMaximizeSuggestionAreaProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutoMaximizeSuggestionAreaProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextBoxStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextBoxStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryIconProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryIconProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Reason(Windows::UI::Xaml::Controls::AutoSuggestionBoxTextChangeReason * value) noexcept override - { - try - { - *value = detach(this->shim().Reason()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Reason(Windows::UI::Xaml::Controls::AutoSuggestionBoxTextChangeReason value) noexcept override - { - try - { - this->shim().Reason(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CheckCurrent(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CheckCurrent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ReasonProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReasonProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UriSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UriSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UriSource(abi_arg_in value) noexcept override - { - try - { - this->shim().UriSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UriSourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UriSourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThickness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderThickness(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderThickness(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Background(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Background()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Background(abi_arg_in value) noexcept override - { - try - { - this->shim().Background(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CornerRadius(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CornerRadius()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CornerRadius(abi_arg_in value) noexcept override - { - try - { - this->shim().CornerRadius(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Padding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Padding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Padding(abi_arg_in value) noexcept override - { - try - { - this->shim().Padding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Child(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Child()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Child(abi_arg_in value) noexcept override - { - try - { - this->shim().Child(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChildTransitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ChildTransitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChildTransitions(abi_arg_in> value) noexcept override - { - try - { - this->shim().ChildTransitions(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThicknessProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThicknessProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CornerRadiusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CornerRadiusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChildTransitionsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChildTransitionsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FlyoutProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FlyoutProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Flyout(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Flyout()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Flyout(abi_arg_in value) noexcept override - { - try - { - this->shim().Flyout(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Date(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Date()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Date(abi_arg_in> value) noexcept override - { - try - { - this->shim().Date(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCalendarOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCalendarOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsCalendarOpen(bool value) noexcept override - { - try - { - this->shim().IsCalendarOpen(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DateFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().DateFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaceholderText(abi_arg_in value) noexcept override - { - try - { - this->shim().PlaceholderText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarViewStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarViewStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalendarViewStyle(abi_arg_in value) noexcept override - { - try - { - this->shim().CalendarViewStyle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinDate(abi_arg_in value) noexcept override - { - try - { - this->shim().MinDate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxDate(abi_arg_in value) noexcept override - { - try - { - this->shim().MaxDate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTodayHighlighted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTodayHighlighted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTodayHighlighted(bool value) noexcept override - { - try - { - this->shim().IsTodayHighlighted(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayMode(Windows::UI::Xaml::Controls::CalendarViewDisplayMode * value) noexcept override - { - try - { - *value = detach(this->shim().DisplayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayMode(Windows::UI::Xaml::Controls::CalendarViewDisplayMode value) noexcept override - { - try - { - this->shim().DisplayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstDayOfWeek(Windows::Globalization::DayOfWeek * value) noexcept override - { - try - { - *value = detach(this->shim().FirstDayOfWeek()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FirstDayOfWeek(Windows::Globalization::DayOfWeek value) noexcept override - { - try - { - this->shim().FirstDayOfWeek(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayOfWeekFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayOfWeekFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DayOfWeekFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().DayOfWeekFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalendarIdentifier(abi_arg_in value) noexcept override - { - try - { - this->shim().CalendarIdentifier(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOutOfScopeEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOutOfScopeEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOutOfScopeEnabled(bool value) noexcept override - { - try - { - this->shim().IsOutOfScopeEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGroupLabelVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGroupLabelVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsGroupLabelVisible(bool value) noexcept override - { - try - { - this->shim().IsGroupLabelVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CalendarViewDayItemChanging(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CalendarViewDayItemChanging(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CalendarViewDayItemChanging(event_token token) noexcept override - { - try - { - this->shim().CalendarViewDayItemChanging(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DateChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DateChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DateChanged(event_token token) noexcept override - { - try - { - this->shim().DateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Opened(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Opened(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Opened(event_token token) noexcept override - { - try - { - this->shim().Opened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closed(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closed(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token token) noexcept override - { - try - { - this->shim().Closed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDisplayDate(abi_arg_in date) noexcept override - { - try - { - this->shim().SetDisplayDate(*reinterpret_cast(&date)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetYearDecadeDisplayDimensions(int32_t columns, int32_t rows) noexcept override - { - try - { - this->shim().SetYearDecadeDisplayDimensions(columns, rows); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode * value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) noexcept override - { - try - { - this->shim().LightDismissOverlayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NewDate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().NewDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OldDate(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().OldDate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCalendarOpenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsCalendarOpenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateFormatProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateFormatProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarViewStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarViewStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinDateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinDateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxDateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTodayHighlightedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTodayHighlightedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstDayOfWeekProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstDayOfWeekProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayOfWeekFormatProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayOfWeekFormatProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarIdentifierProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarIdentifierProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOutOfScopeEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsOutOfScopeEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGroupLabelVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsGroupLabelVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CalendarIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalendarIdentifier(abi_arg_in value) noexcept override - { - try - { - this->shim().CalendarIdentifier(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayOfWeekFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayOfWeekFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DayOfWeekFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().DayOfWeekFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGroupLabelVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGroupLabelVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsGroupLabelVisible(bool value) noexcept override - { - try - { - this->shim().IsGroupLabelVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayMode(Windows::UI::Xaml::Controls::CalendarViewDisplayMode * value) noexcept override - { - try - { - *value = detach(this->shim().DisplayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayMode(Windows::UI::Xaml::Controls::CalendarViewDisplayMode value) noexcept override - { - try - { - this->shim().DisplayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstDayOfWeek(Windows::Globalization::DayOfWeek * value) noexcept override - { - try - { - *value = detach(this->shim().FirstDayOfWeek()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FirstDayOfWeek(Windows::Globalization::DayOfWeek value) noexcept override - { - try - { - this->shim().FirstDayOfWeek(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOutOfScopeEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOutOfScopeEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOutOfScopeEnabled(bool value) noexcept override - { - try - { - this->shim().IsOutOfScopeEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTodayHighlighted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTodayHighlighted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTodayHighlighted(bool value) noexcept override - { - try - { - this->shim().IsTodayHighlighted(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxDate(abi_arg_in value) noexcept override - { - try - { - this->shim().MaxDate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinDate(abi_arg_in value) noexcept override - { - try - { - this->shim().MinDate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfWeeksInView(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfWeeksInView()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NumberOfWeeksInView(int32_t value) noexcept override - { - try - { - this->shim().NumberOfWeeksInView(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedDates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SelectedDates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionMode(Windows::UI::Xaml::Controls::CalendarViewSelectionMode * value) noexcept override - { - try - { - *value = detach(this->shim().SelectionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionMode(Windows::UI::Xaml::Controls::CalendarViewSelectionMode value) noexcept override - { - try - { - this->shim().SelectionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FocusBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().FocusBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedHoverBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedHoverBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedHoverBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedHoverBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPressedBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPressedBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedPressedBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedPressedBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HoverBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HoverBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HoverBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().HoverBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PressedBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PressedBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PressedBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().PressedBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarItemBorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarItemBorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalendarItemBorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().CalendarItemBorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutOfScopeBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutOfScopeBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutOfScopeBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().OutOfScopeBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarItemBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarItemBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalendarItemBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().CalendarItemBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PressedForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PressedForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PressedForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().PressedForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TodayForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TodayForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TodayForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().TodayForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BlackoutForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BlackoutForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BlackoutForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().BlackoutForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutOfScopeForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutOfScopeForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OutOfScopeForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().OutOfScopeForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarItemForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarItemForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalendarItemForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().CalendarItemForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayItemFontFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayItemFontFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DayItemFontFamily(abi_arg_in value) noexcept override - { - try - { - this->shim().DayItemFontFamily(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayItemFontSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().DayItemFontSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DayItemFontSize(double value) noexcept override - { - try - { - this->shim().DayItemFontSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayItemFontStyle(Windows::UI::Text::FontStyle * value) noexcept override - { - try - { - *value = detach(this->shim().DayItemFontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DayItemFontStyle(Windows::UI::Text::FontStyle value) noexcept override - { - try - { - this->shim().DayItemFontStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayItemFontWeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayItemFontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DayItemFontWeight(abi_arg_in value) noexcept override - { - try - { - this->shim().DayItemFontWeight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TodayFontWeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TodayFontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TodayFontWeight(abi_arg_in value) noexcept override - { - try - { - this->shim().TodayFontWeight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfMonthLabelFontFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfMonthLabelFontFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FirstOfMonthLabelFontFamily(abi_arg_in value) noexcept override - { - try - { - this->shim().FirstOfMonthLabelFontFamily(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfMonthLabelFontSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfMonthLabelFontSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FirstOfMonthLabelFontSize(double value) noexcept override - { - try - { - this->shim().FirstOfMonthLabelFontSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfMonthLabelFontStyle(Windows::UI::Text::FontStyle * value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfMonthLabelFontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FirstOfMonthLabelFontStyle(Windows::UI::Text::FontStyle value) noexcept override - { - try - { - this->shim().FirstOfMonthLabelFontStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfMonthLabelFontWeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfMonthLabelFontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FirstOfMonthLabelFontWeight(abi_arg_in value) noexcept override - { - try - { - this->shim().FirstOfMonthLabelFontWeight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthYearItemFontFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthYearItemFontFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MonthYearItemFontFamily(abi_arg_in value) noexcept override - { - try - { - this->shim().MonthYearItemFontFamily(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthYearItemFontSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().MonthYearItemFontSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MonthYearItemFontSize(double value) noexcept override - { - try - { - this->shim().MonthYearItemFontSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthYearItemFontStyle(Windows::UI::Text::FontStyle * value) noexcept override - { - try - { - *value = detach(this->shim().MonthYearItemFontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MonthYearItemFontStyle(Windows::UI::Text::FontStyle value) noexcept override - { - try - { - this->shim().MonthYearItemFontStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthYearItemFontWeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthYearItemFontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MonthYearItemFontWeight(abi_arg_in value) noexcept override - { - try - { - this->shim().MonthYearItemFontWeight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfYearDecadeLabelFontFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfYearDecadeLabelFontFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FirstOfYearDecadeLabelFontFamily(abi_arg_in value) noexcept override - { - try - { - this->shim().FirstOfYearDecadeLabelFontFamily(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfYearDecadeLabelFontSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfYearDecadeLabelFontSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FirstOfYearDecadeLabelFontSize(double value) noexcept override - { - try - { - this->shim().FirstOfYearDecadeLabelFontSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfYearDecadeLabelFontStyle(Windows::UI::Text::FontStyle * value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfYearDecadeLabelFontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FirstOfYearDecadeLabelFontStyle(Windows::UI::Text::FontStyle value) noexcept override - { - try - { - this->shim().FirstOfYearDecadeLabelFontStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfYearDecadeLabelFontWeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfYearDecadeLabelFontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FirstOfYearDecadeLabelFontWeight(abi_arg_in value) noexcept override - { - try - { - this->shim().FirstOfYearDecadeLabelFontWeight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalDayItemAlignment(Windows::UI::Xaml::HorizontalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalDayItemAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalDayItemAlignment(Windows::UI::Xaml::HorizontalAlignment value) noexcept override - { - try - { - this->shim().HorizontalDayItemAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalDayItemAlignment(Windows::UI::Xaml::VerticalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalDayItemAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalDayItemAlignment(Windows::UI::Xaml::VerticalAlignment value) noexcept override - { - try - { - this->shim().VerticalDayItemAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalFirstOfMonthLabelAlignment(Windows::UI::Xaml::HorizontalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalFirstOfMonthLabelAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalFirstOfMonthLabelAlignment(Windows::UI::Xaml::HorizontalAlignment value) noexcept override - { - try - { - this->shim().HorizontalFirstOfMonthLabelAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalFirstOfMonthLabelAlignment(Windows::UI::Xaml::VerticalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalFirstOfMonthLabelAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalFirstOfMonthLabelAlignment(Windows::UI::Xaml::VerticalAlignment value) noexcept override - { - try - { - this->shim().VerticalFirstOfMonthLabelAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarItemBorderThickness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarItemBorderThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalendarItemBorderThickness(abi_arg_in value) noexcept override - { - try - { - this->shim().CalendarItemBorderThickness(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarViewDayItemStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarViewDayItemStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalendarViewDayItemStyle(abi_arg_in value) noexcept override - { - try - { - this->shim().CalendarViewDayItemStyle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CalendarViewDayItemChanging(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CalendarViewDayItemChanging(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CalendarViewDayItemChanging(event_token token) noexcept override - { - try - { - this->shim().CalendarViewDayItemChanging(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SelectedDatesChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SelectedDatesChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectedDatesChanged(event_token token) noexcept override - { - try - { - this->shim().SelectedDatesChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDisplayDate(abi_arg_in date) noexcept override - { - try - { - this->shim().SetDisplayDate(*reinterpret_cast(&date)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetYearDecadeDisplayDimensions(int32_t columns, int32_t rows) noexcept override - { - try - { - this->shim().SetYearDecadeDisplayDimensions(columns, rows); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsBlackout(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsBlackout()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsBlackout(bool value) noexcept override - { - try - { - this->shim().IsBlackout(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Date(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Date()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDensityColors(abi_arg_in> colors) noexcept override - { - try - { - this->shim().SetDensityColors(*reinterpret_cast *>(&colors)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InRecycleQueue(bool * value) noexcept override - { - try - { - *value = detach(this->shim().InRecycleQueue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Item(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Item()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Phase(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Phase()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterUpdateCallback(abi_arg_in> callback) noexcept override - { - try - { - this->shim().RegisterUpdateCallback(*reinterpret_cast *>(&callback)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterUpdateCallbackWithPhase(uint32_t callbackPhase, abi_arg_in> callback) noexcept override - { - try - { - this->shim().RegisterUpdateCallback(callbackPhase, *reinterpret_cast *>(&callback)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsBlackoutProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsBlackoutProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AddedDates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AddedDates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemovedDates(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RemovedDates()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CalendarIdentifierProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarIdentifierProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayOfWeekFormatProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayOfWeekFormatProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGroupLabelVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsGroupLabelVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstDayOfWeekProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstDayOfWeekProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOutOfScopeEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsOutOfScopeEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTodayHighlightedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTodayHighlightedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxDateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinDateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinDateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NumberOfWeeksInViewProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NumberOfWeeksInViewProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedDatesProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedDatesProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateSettingsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettingsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedHoverBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedHoverBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedPressedBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedPressedBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HoverBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HoverBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PressedBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PressedBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarItemBorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarItemBorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutOfScopeBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutOfScopeBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarItemBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarItemBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PressedForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PressedForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TodayForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TodayForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BlackoutForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BlackoutForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OutOfScopeForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OutOfScopeForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarItemForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarItemForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayItemFontFamilyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayItemFontFamilyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayItemFontSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayItemFontSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayItemFontStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayItemFontStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayItemFontWeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayItemFontWeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TodayFontWeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TodayFontWeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfMonthLabelFontFamilyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfMonthLabelFontFamilyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfMonthLabelFontSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfMonthLabelFontSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfMonthLabelFontStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfMonthLabelFontStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfMonthLabelFontWeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfMonthLabelFontWeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthYearItemFontFamilyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthYearItemFontFamilyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthYearItemFontSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthYearItemFontSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthYearItemFontStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthYearItemFontStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthYearItemFontWeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthYearItemFontWeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfYearDecadeLabelFontFamilyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfYearDecadeLabelFontFamilyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfYearDecadeLabelFontSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfYearDecadeLabelFontSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfYearDecadeLabelFontStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfYearDecadeLabelFontStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstOfYearDecadeLabelFontWeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FirstOfYearDecadeLabelFontWeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalDayItemAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalDayItemAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalDayItemAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalDayItemAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalFirstOfMonthLabelAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalFirstOfMonthLabelAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalFirstOfMonthLabelAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalFirstOfMonthLabelAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarItemBorderThicknessProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarItemBorderThicknessProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarViewDayItemStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarViewDayItemStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Bounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LeftProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LeftProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLeft(abi_arg_in element, double * length) noexcept override - { - try - { - *length = detach(this->shim().GetLeft(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLeft(abi_arg_in element, double length) noexcept override - { - try - { - this->shim().SetLeft(*reinterpret_cast(&element), length); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TopProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TopProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTop(abi_arg_in element, double * length) noexcept override - { - try - { - *length = detach(this->shim().GetTop(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetTop(abi_arg_in element, double length) noexcept override - { - try - { - this->shim().SetTop(*reinterpret_cast(&element), length); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetZIndex(abi_arg_in element, int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetZIndex(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetZIndex(abi_arg_in element, int32_t value) noexcept override - { - try - { - this->shim().SetZIndex(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Source(abi_arg_in value) noexcept override - { - try - { - this->shim().Source(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stretch(Windows::UI::Xaml::Media::Stretch * value) noexcept override - { - try - { - *value = detach(this->shim().Stretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Stretch(Windows::UI::Xaml::Media::Stretch value) noexcept override - { - try - { - this->shim().Stretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StretchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StretchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GroupHeaderContainer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupHeaderContainer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GroupHeaderContainer(abi_arg_in value) noexcept override - { - try - { - this->shim().GroupHeaderContainer(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GroupIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GroupIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Group(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Group()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ItemIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Item(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Item()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemContainer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemContainer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemContainer(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemContainer(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsContainerPrepared(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsContainerPrepared()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsContainerPrepared(bool value) noexcept override - { - try - { - this->shim().IsContainerPrepared(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_UIElement(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UIElement()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cancel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Cancel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Cancel(bool value) noexcept override - { - try - { - this->shim().Cancel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Width(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Width()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Width(abi_arg_in value) noexcept override - { - try - { - this->shim().Width(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxWidth(double value) noexcept override - { - try - { - this->shim().MaxWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().MinWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinWidth(double value) noexcept override - { - try - { - this->shim().MinWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActualWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ActualWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_WidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().WidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsDropDownOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDropDownOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDropDownOpen(bool value) noexcept override - { - try - { - this->shim().IsDropDownOpen(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEditable(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEditable()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSelectionBoxHighlighted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSelectionBoxHighlighted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDropDownHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxDropDownHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxDropDownHeight(double value) noexcept override - { - try - { - this->shim().MaxDropDownHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionBoxItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionBoxItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionBoxItemTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionBoxItemTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DropDownClosed(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DropDownClosed(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DropDownClosed(event_token token) noexcept override - { - try - { - this->shim().DropDownClosed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DropDownOpened(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DropDownOpened(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DropDownOpened(event_token token) noexcept override - { - try - { - this->shim().DropDownOpened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaceholderText(abi_arg_in value) noexcept override - { - try - { - this->shim().PlaceholderText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode * value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) noexcept override - { - try - { - this->shim().LightDismissOverlayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTextSearchEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTextSearchEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTextSearchEnabled(bool value) noexcept override - { - try - { - this->shim().IsTextSearchEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnDropDownClosed(abi_arg_in e) noexcept override - { - try - { - this->shim().OnDropDownClosed(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnDropDownOpened(abi_arg_in e) noexcept override - { - try - { - this->shim().OnDropDownOpened(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsDropDownOpenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsDropDownOpenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxDropDownHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxDropDownHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTextSearchEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTextSearchEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrimaryCommands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryCommands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryCommands(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryCommands()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CommandBarOverflowPresenterStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandBarOverflowPresenterStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CommandBarOverflowPresenterStyle(abi_arg_in value) noexcept override - { - try - { - this->shim().CommandBarOverflowPresenterStyle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommandBarTemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandBarTemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DefaultLabelPosition(Windows::UI::Xaml::Controls::CommandBarDefaultLabelPosition * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultLabelPosition()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultLabelPosition(Windows::UI::Xaml::Controls::CommandBarDefaultLabelPosition value) noexcept override - { - try - { - this->shim().DefaultLabelPosition(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OverflowButtonVisibility(Windows::UI::Xaml::Controls::CommandBarOverflowButtonVisibility * value) noexcept override - { - try - { - *value = detach(this->shim().OverflowButtonVisibility()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OverflowButtonVisibility(Windows::UI::Xaml::Controls::CommandBarOverflowButtonVisibility value) noexcept override - { - try - { - this->shim().OverflowButtonVisibility(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDynamicOverflowEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDynamicOverflowEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDynamicOverflowEnabled(bool value) noexcept override - { - try - { - this->shim().IsDynamicOverflowEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DynamicOverflowItemsChanging(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DynamicOverflowItemsChanging(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DynamicOverflowItemsChanging(event_token token) noexcept override - { - try - { - this->shim().DynamicOverflowItemsChanging(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsCompact(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCompact()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsCompact(bool value) noexcept override - { - try - { - this->shim().IsCompact(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsInOverflow(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInOverflow()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DynamicOverflowOrder(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DynamicOverflowOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DynamicOverflowOrder(int32_t value) noexcept override - { - try - { - this->shim().DynamicOverflowOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrimaryCommandsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryCommandsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryCommandsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryCommandsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CommandBarOverflowPresenterStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandBarOverflowPresenterStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DefaultLabelPositionProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultLabelPositionProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OverflowButtonVisibilityProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OverflowButtonVisibilityProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDynamicOverflowEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsDynamicOverflowEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemContainer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemContainer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InRecycleQueue(bool * value) noexcept override - { - try - { - *value = detach(this->shim().InRecycleQueue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().ItemIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Item(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Item()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Phase(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Phase()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterUpdateCallback(abi_arg_in> callback) noexcept override - { - try - { - this->shim().RegisterUpdateCallback(*reinterpret_cast *>(&callback)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RegisterUpdateCallbackWithPhase(uint32_t callbackPhase, abi_arg_in> callback) noexcept override - { - try - { - this->shim().RegisterUpdateCallback(callbackPhase, *reinterpret_cast *>(&callback)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Content(abi_arg_in value) noexcept override - { - try - { - this->shim().Content(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTemplateSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTemplateSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentTemplateSelector(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentTemplateSelector(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTransitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ContentTransitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentTransitions(abi_arg_in> value) noexcept override - { - try - { - this->shim().ContentTransitions(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentTemplateRoot(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTemplateRoot()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnContentChanged(abi_arg_in oldContent, abi_arg_in newContent) noexcept override - { - try - { - this->shim().OnContentChanged(*reinterpret_cast(&oldContent), *reinterpret_cast(&newContent)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnContentTemplateChanged(abi_arg_in oldContentTemplate, abi_arg_in newContentTemplate) noexcept override - { - try - { - this->shim().OnContentTemplateChanged(*reinterpret_cast(&oldContentTemplate), *reinterpret_cast(&newContentTemplate)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnContentTemplateSelectorChanged(abi_arg_in oldContentTemplateSelector, abi_arg_in newContentTemplateSelector) noexcept override - { - try - { - this->shim().OnContentTemplateSelectorChanged(*reinterpret_cast(&oldContentTemplateSelector), *reinterpret_cast(&newContentTemplateSelector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTemplateSelectorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTemplateSelectorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTransitionsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTransitionsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TitleTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TitleTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().TitleTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FullSizeDesired(bool * value) noexcept override - { - try - { - *value = detach(this->shim().FullSizeDesired()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FullSizeDesired(bool value) noexcept override - { - try - { - this->shim().FullSizeDesired(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryButtonText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryButtonText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PrimaryButtonText(abi_arg_in value) noexcept override - { - try - { - this->shim().PrimaryButtonText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryButtonText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryButtonText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SecondaryButtonText(abi_arg_in value) noexcept override - { - try - { - this->shim().SecondaryButtonText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryButtonCommand(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryButtonCommand()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PrimaryButtonCommand(abi_arg_in value) noexcept override - { - try - { - this->shim().PrimaryButtonCommand(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryButtonCommand(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryButtonCommand()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SecondaryButtonCommand(abi_arg_in value) noexcept override - { - try - { - this->shim().SecondaryButtonCommand(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryButtonCommandParameter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryButtonCommandParameter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PrimaryButtonCommandParameter(abi_arg_in value) noexcept override - { - try - { - this->shim().PrimaryButtonCommandParameter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryButtonCommandParameter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryButtonCommandParameter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SecondaryButtonCommandParameter(abi_arg_in value) noexcept override - { - try - { - this->shim().SecondaryButtonCommandParameter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPrimaryButtonEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPrimaryButtonEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPrimaryButtonEnabled(bool value) noexcept override - { - try - { - this->shim().IsPrimaryButtonEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSecondaryButtonEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSecondaryButtonEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSecondaryButtonEnabled(bool value) noexcept override - { - try - { - this->shim().IsSecondaryButtonEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closing(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closing(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closing(event_token token) noexcept override - { - try - { - this->shim().Closing(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closed(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closed(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token token) noexcept override - { - try - { - this->shim().Closed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Opened(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Opened(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Opened(event_token token) noexcept override - { - try - { - this->shim().Opened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PrimaryButtonClick(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PrimaryButtonClick(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PrimaryButtonClick(event_token token) noexcept override - { - try - { - this->shim().PrimaryButtonClick(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SecondaryButtonClick(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SecondaryButtonClick(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SecondaryButtonClick(event_token token) noexcept override - { - try - { - this->shim().SecondaryButtonClick(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Hide() noexcept override - { - try - { - this->shim().Hide(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAsync(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ShowAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Cancel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Cancel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Cancel(bool value) noexcept override - { - try - { - this->shim().Cancel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Result(Windows::UI::Xaml::Controls::ContentDialogResult * value) noexcept override - { - try - { - *value = detach(this->shim().Result()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Complete() noexcept override - { - try - { - this->shim().Complete(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Result(Windows::UI::Xaml::Controls::ContentDialogResult * value) noexcept override - { - try - { - *value = detach(this->shim().Result()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cancel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Cancel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Cancel(bool value) noexcept override - { - try - { - this->shim().Cancel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDeferral(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetDeferral()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TitleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TitleTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FullSizeDesiredProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FullSizeDesiredProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryButtonTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryButtonTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryButtonTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryButtonTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryButtonCommandProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryButtonCommandProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryButtonCommandProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryButtonCommandProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PrimaryButtonCommandParameterProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryButtonCommandParameterProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryButtonCommandParameterProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryButtonCommandParameterProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPrimaryButtonEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsPrimaryButtonEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSecondaryButtonEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSecondaryButtonEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Content(abi_arg_in value) noexcept override - { - try - { - this->shim().Content(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTemplateSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTemplateSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentTemplateSelector(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentTemplateSelector(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTransitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ContentTransitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentTransitions(abi_arg_in> value) noexcept override - { - try - { - this->shim().ContentTransitions(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().FontSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontSize(double value) noexcept override - { - try - { - this->shim().FontSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontFamily(abi_arg_in value) noexcept override - { - try - { - this->shim().FontFamily(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontWeight(abi_arg_in value) noexcept override - { - try - { - this->shim().FontWeight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyle(Windows::UI::Text::FontStyle * value) noexcept override - { - try - { - *value = detach(this->shim().FontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontStyle(Windows::UI::Text::FontStyle value) noexcept override - { - try - { - this->shim().FontStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStretch(Windows::UI::Text::FontStretch * value) noexcept override - { - try - { - *value = detach(this->shim().FontStretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontStretch(Windows::UI::Text::FontStretch value) noexcept override - { - try - { - this->shim().FontStretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacterSpacing(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CharacterSpacing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CharacterSpacing(int32_t value) noexcept override - { - try - { - this->shim().CharacterSpacing(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Foreground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Foreground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Foreground(abi_arg_in value) noexcept override - { - try - { - this->shim().Foreground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OpticalMarginAlignment(Windows::UI::Xaml::OpticalMarginAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().OpticalMarginAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OpticalMarginAlignment(Windows::UI::Xaml::OpticalMarginAlignment value) noexcept override - { - try - { - this->shim().OpticalMarginAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextLineBounds(Windows::UI::Xaml::TextLineBounds * value) noexcept override - { - try - { - *value = detach(this->shim().TextLineBounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextLineBounds(Windows::UI::Xaml::TextLineBounds value) noexcept override - { - try - { - this->shim().TextLineBounds(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTextScaleFactorEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTextScaleFactorEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept override - { - try - { - this->shim().IsTextScaleFactorEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextWrapping(Windows::UI::Xaml::TextWrapping * value) noexcept override - { - try - { - *value = detach(this->shim().TextWrapping()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextWrapping(Windows::UI::Xaml::TextWrapping value) noexcept override - { - try - { - this->shim().TextWrapping(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLines(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxLines()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxLines(int32_t value) noexcept override - { - try - { - this->shim().MaxLines(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineStackingStrategy(Windows::UI::Xaml::LineStackingStrategy * value) noexcept override - { - try - { - *value = detach(this->shim().LineStackingStrategy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LineStackingStrategy(Windows::UI::Xaml::LineStackingStrategy value) noexcept override - { - try - { - this->shim().LineStackingStrategy(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().LineHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LineHeight(double value) noexcept override - { - try - { - this->shim().LineHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThickness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderThickness(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderThickness(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CornerRadius(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CornerRadius()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CornerRadius(abi_arg_in value) noexcept override - { - try - { - this->shim().CornerRadius(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Padding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Padding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Padding(abi_arg_in value) noexcept override - { - try - { - this->shim().Padding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Background(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Background()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Background(abi_arg_in value) noexcept override - { - try - { - this->shim().Background(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalContentAlignment(Windows::UI::Xaml::HorizontalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalContentAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalContentAlignment(Windows::UI::Xaml::HorizontalAlignment value) noexcept override - { - try - { - this->shim().HorizontalContentAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalContentAlignment(Windows::UI::Xaml::VerticalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalContentAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalContentAlignment(Windows::UI::Xaml::VerticalAlignment value) noexcept override - { - try - { - this->shim().VerticalContentAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnContentTemplateChanged(abi_arg_in oldContentTemplate, abi_arg_in newContentTemplate) noexcept override - { - try - { - this->shim().OnContentTemplateChanged(*reinterpret_cast(&oldContentTemplate), *reinterpret_cast(&newContentTemplate)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnContentTemplateSelectorChanged(abi_arg_in oldContentTemplateSelector, abi_arg_in newContentTemplateSelector) noexcept override - { - try - { - this->shim().OnContentTemplateSelectorChanged(*reinterpret_cast(&oldContentTemplateSelector), *reinterpret_cast(&newContentTemplateSelector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTemplateSelectorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTemplateSelectorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTransitionsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTransitionsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontFamilyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamilyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontWeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStretchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontStretchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacterSpacingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CharacterSpacingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OpticalMarginAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OpticalMarginAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextLineBoundsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextLineBoundsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTextScaleFactorEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTextScaleFactorEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextWrappingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextWrappingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLinesProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxLinesProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineStackingStrategyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LineStackingStrategyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LineHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThicknessProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThicknessProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CornerRadiusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CornerRadiusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalContentAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalContentAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalContentAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalContentAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CursorLeft(double * value) noexcept override - { - try - { - *value = detach(this->shim().CursorLeft()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CursorTop(double * value) noexcept override - { - try - { - *value = detach(this->shim().CursorTop()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FontSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().FontSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontSize(double value) noexcept override - { - try - { - this->shim().FontSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontFamily(abi_arg_in value) noexcept override - { - try - { - this->shim().FontFamily(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontWeight(abi_arg_in value) noexcept override - { - try - { - this->shim().FontWeight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyle(Windows::UI::Text::FontStyle * value) noexcept override - { - try - { - *value = detach(this->shim().FontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontStyle(Windows::UI::Text::FontStyle value) noexcept override - { - try - { - this->shim().FontStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStretch(Windows::UI::Text::FontStretch * value) noexcept override - { - try - { - *value = detach(this->shim().FontStretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontStretch(Windows::UI::Text::FontStretch value) noexcept override - { - try - { - this->shim().FontStretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacterSpacing(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CharacterSpacing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CharacterSpacing(int32_t value) noexcept override - { - try - { - this->shim().CharacterSpacing(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Foreground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Foreground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Foreground(abi_arg_in value) noexcept override - { - try - { - this->shim().Foreground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTabStop(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTabStop()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTabStop(bool value) noexcept override - { - try - { - this->shim().IsTabStop(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsEnabled(bool value) noexcept override - { - try - { - this->shim().IsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TabIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().TabIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TabIndex(int32_t value) noexcept override - { - try - { - this->shim().TabIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TabNavigation(Windows::UI::Xaml::Input::KeyboardNavigationMode * value) noexcept override - { - try - { - *value = detach(this->shim().TabNavigation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TabNavigation(Windows::UI::Xaml::Input::KeyboardNavigationMode value) noexcept override - { - try - { - this->shim().TabNavigation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Template(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Template()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Template(abi_arg_in value) noexcept override - { - try - { - this->shim().Template(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Padding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Padding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Padding(abi_arg_in value) noexcept override - { - try - { - this->shim().Padding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalContentAlignment(Windows::UI::Xaml::HorizontalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalContentAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalContentAlignment(Windows::UI::Xaml::HorizontalAlignment value) noexcept override - { - try - { - this->shim().HorizontalContentAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalContentAlignment(Windows::UI::Xaml::VerticalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalContentAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalContentAlignment(Windows::UI::Xaml::VerticalAlignment value) noexcept override - { - try - { - this->shim().VerticalContentAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Background(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Background()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Background(abi_arg_in value) noexcept override - { - try - { - this->shim().Background(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThickness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderThickness(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderThickness(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusState(Windows::UI::Xaml::FocusState * value) noexcept override - { - try - { - *value = detach(this->shim().FocusState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_IsEnabledChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().IsEnabledChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_IsEnabledChanged(event_token token) noexcept override - { - try - { - this->shim().IsEnabledChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ApplyTemplate(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ApplyTemplate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Focus(Windows::UI::Xaml::FocusState value, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Focus(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTextScaleFactorEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTextScaleFactorEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept override - { - try - { - this->shim().IsTextScaleFactorEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UseSystemFocusVisuals(bool * value) noexcept override - { - try - { - *value = detach(this->shim().UseSystemFocusVisuals()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UseSystemFocusVisuals(bool value) noexcept override - { - try - { - this->shim().UseSystemFocusVisuals(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsFocusEngagementEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFocusEngagementEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFocusEngagementEnabled(bool value) noexcept override - { - try - { - this->shim().IsFocusEngagementEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFocusEngaged(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFocusEngaged()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFocusEngaged(bool value) noexcept override - { - try - { - this->shim().IsFocusEngaged(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequiresPointer(Windows::UI::Xaml::Controls::RequiresPointer * value) noexcept override - { - try - { - *value = detach(this->shim().RequiresPointer()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RequiresPointer(Windows::UI::Xaml::Controls::RequiresPointer value) noexcept override - { - try - { - this->shim().RequiresPointer(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusLeft(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusLeft()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_XYFocusLeft(abi_arg_in value) noexcept override - { - try - { - this->shim().XYFocusLeft(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusRight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusRight()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_XYFocusRight(abi_arg_in value) noexcept override - { - try - { - this->shim().XYFocusRight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusUp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusUp()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_XYFocusUp(abi_arg_in value) noexcept override - { - try - { - this->shim().XYFocusUp(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusDown(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusDown()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_XYFocusDown(abi_arg_in value) noexcept override - { - try - { - this->shim().XYFocusDown(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ElementSoundMode(Windows::UI::Xaml::ElementSoundMode * value) noexcept override - { - try - { - *value = detach(this->shim().ElementSoundMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ElementSoundMode(Windows::UI::Xaml::ElementSoundMode value) noexcept override - { - try - { - this->shim().ElementSoundMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FocusEngaged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FocusEngaged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FocusEngaged(event_token token) noexcept override - { - try - { - this->shim().FocusEngaged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FocusDisengaged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FocusDisengaged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FocusDisengaged(event_token token) noexcept override - { - try - { - this->shim().FocusDisengaged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveFocusEngagement() noexcept override - { - try - { - this->shim().RemoveFocusEngagement(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnPointerEntered(abi_arg_in e) noexcept override - { - try - { - this->shim().OnPointerEntered(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnPointerPressed(abi_arg_in e) noexcept override - { - try - { - this->shim().OnPointerPressed(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnPointerMoved(abi_arg_in e) noexcept override - { - try - { - this->shim().OnPointerMoved(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnPointerReleased(abi_arg_in e) noexcept override - { - try - { - this->shim().OnPointerReleased(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnPointerExited(abi_arg_in e) noexcept override - { - try - { - this->shim().OnPointerExited(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnPointerCaptureLost(abi_arg_in e) noexcept override - { - try - { - this->shim().OnPointerCaptureLost(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnPointerCanceled(abi_arg_in e) noexcept override - { - try - { - this->shim().OnPointerCanceled(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnPointerWheelChanged(abi_arg_in e) noexcept override - { - try - { - this->shim().OnPointerWheelChanged(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnTapped(abi_arg_in e) noexcept override - { - try - { - this->shim().OnTapped(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnDoubleTapped(abi_arg_in e) noexcept override - { - try - { - this->shim().OnDoubleTapped(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnHolding(abi_arg_in e) noexcept override - { - try - { - this->shim().OnHolding(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnRightTapped(abi_arg_in e) noexcept override - { - try - { - this->shim().OnRightTapped(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnManipulationStarting(abi_arg_in e) noexcept override - { - try - { - this->shim().OnManipulationStarting(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnManipulationInertiaStarting(abi_arg_in e) noexcept override - { - try - { - this->shim().OnManipulationInertiaStarting(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnManipulationStarted(abi_arg_in e) noexcept override - { - try - { - this->shim().OnManipulationStarted(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnManipulationDelta(abi_arg_in e) noexcept override - { - try - { - this->shim().OnManipulationDelta(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnManipulationCompleted(abi_arg_in e) noexcept override - { - try - { - this->shim().OnManipulationCompleted(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnKeyUp(abi_arg_in e) noexcept override - { - try - { - this->shim().OnKeyUp(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnKeyDown(abi_arg_in e) noexcept override - { - try - { - this->shim().OnKeyDown(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnGotFocus(abi_arg_in e) noexcept override - { - try - { - this->shim().OnGotFocus(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnLostFocus(abi_arg_in e) noexcept override - { - try - { - this->shim().OnLostFocus(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnDragEnter(abi_arg_in e) noexcept override - { - try - { - this->shim().OnDragEnter(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnDragLeave(abi_arg_in e) noexcept override - { - try - { - this->shim().OnDragLeave(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnDragOver(abi_arg_in e) noexcept override - { - try - { - this->shim().OnDragOver(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnDrop(abi_arg_in e) noexcept override - { - try - { - this->shim().OnDrop(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DefaultStyleKey(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultStyleKey()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultStyleKey(abi_arg_in value) noexcept override - { - try - { - this->shim().DefaultStyleKey(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetTemplateChild(abi_arg_in childName, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetTemplateChild(*reinterpret_cast(&childName))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FontSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontFamilyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamilyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontWeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStretchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontStretchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacterSpacingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CharacterSpacingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTabStopProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTabStopProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TabIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TabIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TabNavigationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TabNavigationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalContentAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalContentAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalContentAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalContentAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThicknessProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThicknessProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultStyleKeyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultStyleKeyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusStateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusStateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTextScaleFactorEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTextScaleFactorEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UseSystemFocusVisualsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UseSystemFocusVisualsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTemplateFocusTargetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTemplateFocusTargetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsTemplateFocusTarget(abi_arg_in element, bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetIsTemplateFocusTarget(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsTemplateFocusTarget(abi_arg_in element, bool value) noexcept override - { - try - { - this->shim().SetIsTemplateFocusTarget(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsFocusEngagementEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFocusEngagementEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFocusEngagedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFocusEngagedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RequiresPointerProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RequiresPointerProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusLeftProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusLeftProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusRightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusRightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusUpProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusUpProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusDownProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusDownProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ElementSoundModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ElementSoundModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TargetType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetType(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetType(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SelectTemplate(abi_arg_in item, abi_arg_in container, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().SelectTemplate(*reinterpret_cast(&item), *reinterpret_cast(&container))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SelectTemplateForItem(abi_arg_in item, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().SelectTemplate(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SelectTemplateCore(abi_arg_in item, abi_arg_in container, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().SelectTemplateCore(*reinterpret_cast(&item), *reinterpret_cast(&container))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SelectTemplateForItemCore(abi_arg_in item, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().SelectTemplateCore(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OldDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalendarIdentifier(abi_arg_in value) noexcept override - { - try - { - this->shim().CalendarIdentifier(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Date(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Date()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Date(abi_arg_in value) noexcept override - { - try - { - this->shim().Date(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DayVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DayVisible(bool value) noexcept override - { - try - { - this->shim().DayVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().MonthVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MonthVisible(bool value) noexcept override - { - try - { - this->shim().MonthVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YearVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().YearVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_YearVisible(bool value) noexcept override - { - try - { - this->shim().YearVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DayFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().DayFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MonthFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().MonthFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YearFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YearFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_YearFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().YearFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinYear(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinYear()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinYear(abi_arg_in value) noexcept override - { - try - { - this->shim().MinYear(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxYear(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxYear()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxYear(abi_arg_in value) noexcept override - { - try - { - this->shim().MaxYear(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::UI::Xaml::Controls::Orientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::UI::Xaml::Controls::Orientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DateChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DateChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DateChanged(event_token token) noexcept override - { - try - { - this->shim().DateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode * value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) noexcept override - { - try - { - this->shim().LightDismissOverlayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CalendarIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CalendarIdentifier(abi_arg_in value) noexcept override - { - try - { - this->shim().CalendarIdentifier(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Date(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Date()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Date(abi_arg_in value) noexcept override - { - try - { - this->shim().Date(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().DayVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DayVisible(bool value) noexcept override - { - try - { - this->shim().DayVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().MonthVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MonthVisible(bool value) noexcept override - { - try - { - this->shim().MonthVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YearVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().YearVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_YearVisible(bool value) noexcept override - { - try - { - this->shim().YearVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinYear(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinYear()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinYear(abi_arg_in value) noexcept override - { - try - { - this->shim().MinYear(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxYear(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxYear()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxYear(abi_arg_in value) noexcept override - { - try - { - this->shim().MaxYear(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DatePicked(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DatePicked(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DatePicked(event_token token) noexcept override - { - try - { - this->shim().DatePicked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAtAsync(abi_arg_in target, abi_arg_out>> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ShowAtAsync(*reinterpret_cast(&target))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DayFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DayFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().DayFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MonthFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().MonthFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YearFormat(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YearFormat()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_YearFormat(abi_arg_in value) noexcept override - { - try - { - this->shim().YearFormat(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrimaryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PrimaryText(abi_arg_in value) noexcept override - { - try - { - this->shim().PrimaryText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SecondaryText(abi_arg_in value) noexcept override - { - try - { - this->shim().SecondaryText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PrimaryTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PrimaryTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SecondaryTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SecondaryTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CalendarIdentifierProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarIdentifierProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YearVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YearVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinYearProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinYearProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxYearProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxYearProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DayFormatProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayFormatProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthFormatProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthFormatProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YearFormatProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YearFormatProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CalendarIdentifierProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CalendarIdentifierProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YearVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YearVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DayFormatProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DayFormatProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MonthFormatProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MonthFormatProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_YearFormatProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().YearFormatProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinYearProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinYearProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxYearProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxYearProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OrientationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OldDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewDate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewDate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DropResult(Windows::ApplicationModel::DataTransfer::DataPackageOperation * value) noexcept override - { - try - { - *value = detach(this->shim().DropResult()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Cancel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Cancel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Cancel(bool value) noexcept override - { - try - { - this->shim().Cancel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Action(Windows::UI::Xaml::Controls::CommandBarDynamicOverflowAction * value) noexcept override - { - try - { - *value = detach(this->shim().Action()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UseTouchAnimationsForAllNavigation(bool * value) noexcept override - { - try - { - *value = detach(this->shim().UseTouchAnimationsForAllNavigation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_UseTouchAnimationsForAllNavigation(bool value) noexcept override - { - try - { - this->shim().UseTouchAnimationsForAllNavigation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_UseTouchAnimationsForAllNavigationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().UseTouchAnimationsForAllNavigationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Content(abi_arg_in value) noexcept override - { - try - { - this->shim().Content(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlyoutPresenterStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FlyoutPresenterStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FlyoutPresenterStyle(abi_arg_in value) noexcept override - { - try - { - this->shim().FlyoutPresenterStyle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FlyoutPresenterStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FlyoutPresenterStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Glyph(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Glyph()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Glyph(abi_arg_in value) noexcept override - { - try - { - this->shim().Glyph(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().FontSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontSize(double value) noexcept override - { - try - { - this->shim().FontSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontFamily(abi_arg_in value) noexcept override - { - try - { - this->shim().FontFamily(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontWeight(abi_arg_in value) noexcept override - { - try - { - this->shim().FontWeight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyle(Windows::UI::Text::FontStyle * value) noexcept override - { - try - { - *value = detach(this->shim().FontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontStyle(Windows::UI::Text::FontStyle value) noexcept override - { - try - { - this->shim().FontStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTextScaleFactorEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTextScaleFactorEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept override - { - try - { - this->shim().IsTextScaleFactorEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MirroredWhenRightToLeft(bool * value) noexcept override - { - try - { - *value = detach(this->shim().MirroredWhenRightToLeft()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MirroredWhenRightToLeft(bool value) noexcept override - { - try - { - this->shim().MirroredWhenRightToLeft(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GlyphProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GlyphProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontFamilyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamilyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontWeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTextScaleFactorEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTextScaleFactorEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MirroredWhenRightToLeftProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MirroredWhenRightToLeftProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CacheSize(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CacheSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CacheSize(int32_t value) noexcept override - { - try - { - this->shim().CacheSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanGoBack(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanGoBack()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanGoForward(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanGoForward()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentSourcePageType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentSourcePageType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourcePageType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourcePageType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SourcePageType(abi_arg_in value) noexcept override - { - try - { - this->shim().SourcePageType(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackStackDepth(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().BackStackDepth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Navigated(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Navigated(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Navigated(event_token token) noexcept override - { - try - { - this->shim().Navigated(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Navigating(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Navigating(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Navigating(event_token token) noexcept override - { - try - { - this->shim().Navigating(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NavigationFailed(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NavigationFailed(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NavigationFailed(event_token token) noexcept override - { - try - { - this->shim().NavigationFailed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NavigationStopped(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NavigationStopped(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NavigationStopped(event_token token) noexcept override - { - try - { - this->shim().NavigationStopped(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GoBack() noexcept override - { - try - { - this->shim().GoBack(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GoForward() noexcept override - { - try - { - this->shim().GoForward(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Navigate(abi_arg_in sourcePageType, abi_arg_in parameter, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Navigate(*reinterpret_cast(&sourcePageType), *reinterpret_cast(¶meter))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetNavigationState(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetNavigationState()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetNavigationState(abi_arg_in navigationState) noexcept override - { - try - { - this->shim().SetNavigationState(*reinterpret_cast(&navigationState)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BackStack(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().BackStack()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForwardStack(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ForwardStack()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Navigate(abi_arg_in sourcePageType, abi_arg_in parameter, abi_arg_in infoOverride, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Navigate(*reinterpret_cast(&sourcePageType), *reinterpret_cast(¶meter), *reinterpret_cast(&infoOverride))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GoBack(abi_arg_in transitionInfoOverride) noexcept override - { - try - { - this->shim().GoBack(*reinterpret_cast(&transitionInfoOverride)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CacheSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CacheSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanGoBackProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanGoBackProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanGoForwardProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanGoForwardProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentSourcePageTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentSourcePageTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourcePageTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourcePageTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BackStackDepthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackStackDepthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BackStackProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackStackProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForwardStackProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForwardStackProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RowDefinitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RowDefinitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColumnDefinitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ColumnDefinitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThickness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderThickness(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderThickness(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CornerRadius(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CornerRadius()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CornerRadius(abi_arg_in value) noexcept override - { - try - { - this->shim().CornerRadius(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Padding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Padding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Padding(abi_arg_in value) noexcept override - { - try - { - this->shim().Padding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RowProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RowProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRow(abi_arg_in element, int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetRow(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRow(abi_arg_in element, int32_t value) noexcept override - { - try - { - this->shim().SetRow(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColumnProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ColumnProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetColumn(abi_arg_in element, int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetColumn(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetColumn(abi_arg_in element, int32_t value) noexcept override - { - try - { - this->shim().SetColumn(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RowSpanProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RowSpanProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRowSpan(abi_arg_in element, int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetRowSpan(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRowSpan(abi_arg_in element, int32_t value) noexcept override - { - try - { - this->shim().SetRowSpan(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColumnSpanProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ColumnSpanProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetColumnSpan(abi_arg_in element, int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetColumnSpan(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetColumnSpan(abi_arg_in element, int32_t value) noexcept override - { - try - { - this->shim().SetColumnSpan(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThicknessProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThicknessProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CornerRadiusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CornerRadiusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Panel(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Panel()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Panel(abi_arg_in value) noexcept override - { - try - { - this->shim().Panel(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContainerStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContainerStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContainerStyle(abi_arg_in value) noexcept override - { - try - { - this->shim().ContainerStyle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContainerStyleSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContainerStyleSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContainerStyleSelector(abi_arg_in value) noexcept override - { - try - { - this->shim().ContainerStyleSelector(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplateSelector(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplateSelector(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HidesIfEmpty(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HidesIfEmpty()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HidesIfEmpty(bool value) noexcept override - { - try - { - this->shim().HidesIfEmpty(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderContainerStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderContainerStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderContainerStyle(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderContainerStyle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SelectGroupStyle(abi_arg_in group, uint32_t level, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().SelectGroupStyle(*reinterpret_cast(&group), level)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SelectGroupStyleCore(abi_arg_in group, uint32_t level, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().SelectGroupStyleCore(*reinterpret_cast(&group), level)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::UI::Xaml::Controls::Orientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::UI::Xaml::Controls::Orientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultSectionIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultSectionIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultSectionIndex(int32_t value) noexcept override - { - try - { - this->shim().DefaultSectionIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Sections(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Sections()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SectionsInView(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SectionsInView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SectionHeaders(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SectionHeaders()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SectionHeaderClick(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SectionHeaderClick(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SectionHeaderClick(event_token token) noexcept override - { - try - { - this->shim().SectionHeaderClick(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SectionsInViewChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SectionsInViewChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SectionsInViewChanged(event_token token) noexcept override - { - try - { - this->shim().SectionsInViewChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ScrollToSection(abi_arg_in section) noexcept override - { - try - { - this->shim().ScrollToSection(*reinterpret_cast(§ion)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ContentTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().ContentTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHeaderInteractive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHeaderInteractive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsHeaderInteractive(bool value) noexcept override - { - try - { - this->shim().IsHeaderInteractive(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Section(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Section()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHeaderInteractiveProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsHeaderInteractiveProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OrientationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultSectionIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultSectionIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SemanticZoomOwnerProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SemanticZoomOwnerProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsActiveViewProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsActiveViewProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomedInViewProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomedInViewProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NavigateUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NavigateUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NavigateUri(abi_arg_in value) noexcept override - { - try - { - this->shim().NavigateUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NavigateUriProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NavigateUriProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Foreground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Foreground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Foreground(abi_arg_in value) noexcept override - { - try - { - this->shim().Foreground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Source(abi_arg_in value) noexcept override - { - try - { - this->shim().Source(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stretch(Windows::UI::Xaml::Media::Stretch * value) noexcept override - { - try - { - *value = detach(this->shim().Stretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Stretch(Windows::UI::Xaml::Media::Stretch value) noexcept override - { - try - { - this->shim().Stretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NineGrid(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NineGrid()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NineGrid(abi_arg_in value) noexcept override - { - try - { - this->shim().NineGrid(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlayToSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlayToSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ImageFailed(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ImageFailed(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ImageFailed(event_token token) noexcept override - { - try - { - this->shim().ImageFailed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ImageOpened(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ImageOpened(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ImageOpened(event_token token) noexcept override - { - try - { - this->shim().ImageOpened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAsCastingSource(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAsCastingSource()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAlphaMask(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAlphaMask()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StretchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StretchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NineGridProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NineGridProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlayToSourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlayToSourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InkPresenter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InkPresenter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InitialControls(Windows::UI::Xaml::Controls::InkToolbarInitialControls * value) noexcept override - { - try - { - *value = detach(this->shim().InitialControls()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InitialControls(Windows::UI::Xaml::Controls::InkToolbarInitialControls value) noexcept override - { - try - { - this->shim().InitialControls(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Children(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Children()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActiveTool(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActiveTool()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ActiveTool(abi_arg_in value) noexcept override - { - try - { - this->shim().ActiveTool(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InkDrawingAttributes(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InkDrawingAttributes()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRulerButtonChecked(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsRulerButtonChecked()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsRulerButtonChecked(bool value) noexcept override - { - try - { - this->shim().IsRulerButtonChecked(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetInkCanvas(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetInkCanvas()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TargetInkCanvas(abi_arg_in value) noexcept override - { - try - { - this->shim().TargetInkCanvas(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ActiveToolChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ActiveToolChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ActiveToolChanged(event_token token) noexcept override - { - try - { - this->shim().ActiveToolChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_InkDrawingAttributesChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().InkDrawingAttributesChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_InkDrawingAttributesChanged(event_token token) noexcept override - { - try - { - this->shim().InkDrawingAttributesChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_EraseAllClicked(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().EraseAllClicked(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_EraseAllClicked(event_token token) noexcept override - { - try - { - this->shim().EraseAllClicked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_IsRulerButtonCheckedChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().IsRulerButtonCheckedChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_IsRulerButtonCheckedChanged(event_token token) noexcept override - { - try - { - this->shim().IsRulerButtonCheckedChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetToolButton(Windows::UI::Xaml::Controls::InkToolbarTool tool, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetToolButton(tool)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetToggleButton(Windows::UI::Xaml::Controls::InkToolbarToggle tool, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetToggleButton(tool)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInkDrawingAttributes(abi_arg_in brush, double strokeWidth, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateInkDrawingAttributes(*reinterpret_cast(&brush), strokeWidth)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CustomPen(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomPen()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CustomPen(abi_arg_in value) noexcept override - { - try - { - this->shim().CustomPen(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConfigurationContent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConfigurationContent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ConfigurationContent(abi_arg_in value) noexcept override - { - try - { - this->shim().ConfigurationContent(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CustomPenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CustomPenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConfigurationContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConfigurationContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInkDrawingAttributesCore(abi_arg_in brush, double strokeWidth, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateInkDrawingAttributesCore(*reinterpret_cast(&brush), strokeWidth)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConfigurationContent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConfigurationContent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ConfigurationContent(abi_arg_in value) noexcept override - { - try - { - this->shim().ConfigurationContent(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ConfigurationContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConfigurationContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Palette(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Palette()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Palette(abi_arg_in> value) noexcept override - { - try - { - this->shim().Palette(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinStrokeWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().MinStrokeWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinStrokeWidth(double value) noexcept override - { - try - { - this->shim().MinStrokeWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxStrokeWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxStrokeWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxStrokeWidth(double value) noexcept override - { - try - { - this->shim().MaxStrokeWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBrushIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBrushIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedBrushIndex(int32_t value) noexcept override - { - try - { - this->shim().SelectedBrushIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedStrokeWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedStrokeWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedStrokeWidth(double value) noexcept override - { - try - { - this->shim().SelectedStrokeWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PaletteProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaletteProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinStrokeWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinStrokeWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxStrokeWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxStrokeWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedBrushIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedBrushIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedStrokeWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedStrokeWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PenButton(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PenButton()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PenButtonProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PenButtonProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Ruler(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Ruler()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_RulerProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RulerProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_InitialControlsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InitialControlsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChildrenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChildrenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActiveToolProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActiveToolProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InkDrawingAttributesProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InkDrawingAttributesProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsRulerButtonCheckedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsRulerButtonCheckedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TargetInkCanvasProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TargetInkCanvasProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ToggleKind(Windows::UI::Xaml::Controls::InkToolbarToggle * value) noexcept override - { - try - { - *value = detach(this->shim().ToggleKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ToolKind(Windows::UI::Xaml::Controls::InkToolbarTool * value) noexcept override - { - try - { - *value = detach(this->shim().ToolKind()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsExtensionGlyphShown(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsExtensionGlyphShown()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsExtensionGlyphShown(bool value) noexcept override - { - try - { - this->shim().IsExtensionGlyphShown(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsExtensionGlyphShownProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsExtensionGlyphShownProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetInsertionIndexes(abi_arg_in position, int32_t * first, int32_t * second) noexcept override - { - try - { - this->shim().GetInsertionIndexes(*reinterpret_cast(&position), *first, *second); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClickedItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClickedItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_ItemsChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ItemsChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemsChanged(event_token token) noexcept override - { - try - { - this->shim().ItemsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ItemFromContainer(abi_arg_in container, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ItemFromContainer(*reinterpret_cast(&container))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ContainerFromItem(abi_arg_in item, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ContainerFromItem(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IndexFromContainer(abi_arg_in container, int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IndexFromContainer(*reinterpret_cast(&container))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ContainerFromIndex(int32_t index, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ContainerFromIndex(index)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemContainerGeneratorForPanel(abi_arg_in panel, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetItemContainerGeneratorForPanel(*reinterpret_cast(&panel))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartAt(abi_arg_in position, Windows::UI::Xaml::Controls::Primitives::GeneratorDirection direction, bool allowStartAtRealizedItem) noexcept override - { - try - { - this->shim().StartAt(*reinterpret_cast(&position), direction, allowStartAtRealizedItem); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GenerateNext(bool * isNewlyRealized, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GenerateNext(*isNewlyRealized)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrepareItemContainer(abi_arg_in container) noexcept override - { - try - { - this->shim().PrepareItemContainer(*reinterpret_cast(&container)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAll() noexcept override - { - try - { - this->shim().RemoveAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Remove(abi_arg_in position, int32_t count) noexcept override - { - try - { - this->shim().Remove(*reinterpret_cast(&position), count); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GeneratorPositionFromIndex(int32_t itemIndex, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GeneratorPositionFromIndex(itemIndex)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IndexFromGeneratorPosition(abi_arg_in position, int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IndexFromGeneratorPosition(*reinterpret_cast(&position))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Recycle(abi_arg_in position, int32_t count) noexcept override - { - try - { - this->shim().Recycle(*reinterpret_cast(&position), count); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ItemFromContainer(abi_arg_in container, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ItemFromContainer(*reinterpret_cast(&container))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ContainerFromItem(abi_arg_in item, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ContainerFromItem(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IndexFromContainer(abi_arg_in container, int32_t * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IndexFromContainer(*reinterpret_cast(&container))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ContainerFromIndex(int32_t index, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ContainerFromIndex(index)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemsSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemsSource(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemsSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTemplateSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTemplateSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemTemplateSelector(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemTemplateSelector(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemsPanel(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsPanel()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemsPanel(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemsPanel(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayMemberPath(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayMemberPath()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayMemberPath(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayMemberPath(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemContainerStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemContainerStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemContainerStyle(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemContainerStyle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemContainerStyleSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemContainerStyleSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemContainerStyleSelector(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemContainerStyleSelector(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemContainerGenerator(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemContainerGenerator()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemContainerTransitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ItemContainerTransitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemContainerTransitions(abi_arg_in> value) noexcept override - { - try - { - this->shim().ItemContainerTransitions(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GroupStyle(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GroupStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GroupStyleSelector(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupStyleSelector()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GroupStyleSelector(abi_arg_in value) noexcept override - { - try - { - this->shim().GroupStyleSelector(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGrouping(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsGrouping()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemsPanelRoot(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsPanelRoot()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GroupHeaderContainerFromItemContainer(abi_arg_in itemContainer, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GroupHeaderContainerFromItemContainer(*reinterpret_cast(&itemContainer))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_IsItemItsOwnContainerOverride(abi_arg_in item, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsItemItsOwnContainerOverride(*reinterpret_cast(&item))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetContainerForItemOverride(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetContainerForItemOverride()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearContainerForItemOverride(abi_arg_in element, abi_arg_in item) noexcept override - { - try - { - this->shim().ClearContainerForItemOverride(*reinterpret_cast(&element), *reinterpret_cast(&item)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PrepareContainerForItemOverride(abi_arg_in element, abi_arg_in item) noexcept override - { - try - { - this->shim().PrepareContainerForItemOverride(*reinterpret_cast(&element), *reinterpret_cast(&item)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnItemsChanged(abi_arg_in e) noexcept override - { - try - { - this->shim().OnItemsChanged(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnItemContainerStyleChanged(abi_arg_in oldItemContainerStyle, abi_arg_in newItemContainerStyle) noexcept override - { - try - { - this->shim().OnItemContainerStyleChanged(*reinterpret_cast(&oldItemContainerStyle), *reinterpret_cast(&newItemContainerStyle)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnItemContainerStyleSelectorChanged(abi_arg_in oldItemContainerStyleSelector, abi_arg_in newItemContainerStyleSelector) noexcept override - { - try - { - this->shim().OnItemContainerStyleSelectorChanged(*reinterpret_cast(&oldItemContainerStyleSelector), *reinterpret_cast(&newItemContainerStyleSelector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnItemTemplateChanged(abi_arg_in oldItemTemplate, abi_arg_in newItemTemplate) noexcept override - { - try - { - this->shim().OnItemTemplateChanged(*reinterpret_cast(&oldItemTemplate), *reinterpret_cast(&newItemTemplate)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnItemTemplateSelectorChanged(abi_arg_in oldItemTemplateSelector, abi_arg_in newItemTemplateSelector) noexcept override - { - try - { - this->shim().OnItemTemplateSelectorChanged(*reinterpret_cast(&oldItemTemplateSelector), *reinterpret_cast(&newItemTemplateSelector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnGroupStyleSelectorChanged(abi_arg_in oldGroupStyleSelector, abi_arg_in newGroupStyleSelector) noexcept override - { - try - { - this->shim().OnGroupStyleSelectorChanged(*reinterpret_cast(&oldGroupStyleSelector), *reinterpret_cast(&newGroupStyleSelector)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemsSourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsSourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTemplateSelectorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTemplateSelectorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemsPanelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsPanelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayMemberPathProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayMemberPathProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemContainerStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemContainerStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemContainerStyleSelectorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemContainerStyleSelectorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemContainerTransitionsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemContainerTransitionsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GroupStyleSelectorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupStyleSelectorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsGroupingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsGroupingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetItemsOwner(abi_arg_in element, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetItemsOwner(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ItemsControlFromItemContainer(abi_arg_in container, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ItemsControlFromItemContainer(*reinterpret_cast(&container))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AddedItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AddedItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemovedItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RemovedItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTransitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTransitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTransitions(abi_arg_in> value) noexcept override - { - try - { - this->shim().HeaderTransitions(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Padding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Padding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Padding(abi_arg_in value) noexcept override - { - try - { - this->shim().Padding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Footer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Footer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Footer(abi_arg_in value) noexcept override - { - try - { - this->shim().Footer(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FooterTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FooterTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FooterTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().FooterTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FooterTransitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FooterTransitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FooterTransitions(abi_arg_in> value) noexcept override - { - try - { - this->shim().FooterTransitions(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTransitionsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTransitionsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FooterProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FooterProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FooterTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FooterTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FooterTransitionsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FooterTransitionsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GroupPadding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupPadding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GroupPadding(abi_arg_in value) noexcept override - { - try - { - this->shim().GroupPadding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::UI::Xaml::Controls::Orientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::UI::Xaml::Controls::Orientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstCacheIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstCacheIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstVisibleIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstVisibleIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastVisibleIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastVisibleIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastCacheIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastCacheIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollingDirection(Windows::UI::Xaml::Controls::PanelScrollingDirection * value) noexcept override - { - try - { - *value = detach(this->shim().ScrollingDirection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GroupHeaderPlacement(Windows::UI::Xaml::Controls::Primitives::GroupHeaderPlacement * value) noexcept override - { - try - { - *value = detach(this->shim().GroupHeaderPlacement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GroupHeaderPlacement(Windows::UI::Xaml::Controls::Primitives::GroupHeaderPlacement value) noexcept override - { - try - { - this->shim().GroupHeaderPlacement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemsUpdatingScrollMode(Windows::UI::Xaml::Controls::ItemsUpdatingScrollMode * value) noexcept override - { - try - { - *value = detach(this->shim().ItemsUpdatingScrollMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemsUpdatingScrollMode(Windows::UI::Xaml::Controls::ItemsUpdatingScrollMode value) noexcept override - { - try - { - this->shim().ItemsUpdatingScrollMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CacheLength(double * value) noexcept override - { - try - { - *value = detach(this->shim().CacheLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CacheLength(double value) noexcept override - { - try - { - this->shim().CacheLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreStickyGroupHeadersEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AreStickyGroupHeadersEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AreStickyGroupHeadersEnabled(bool value) noexcept override - { - try - { - this->shim().AreStickyGroupHeadersEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GroupPaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupPaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OrientationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GroupHeaderPlacementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupHeaderPlacementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CacheLengthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CacheLengthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreStickyGroupHeadersEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AreStickyGroupHeadersEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GroupPadding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupPadding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GroupPadding(abi_arg_in value) noexcept override - { - try - { - this->shim().GroupPadding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::UI::Xaml::Controls::Orientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::UI::Xaml::Controls::Orientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaximumRowsOrColumns(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaximumRowsOrColumns()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaximumRowsOrColumns(int32_t value) noexcept override - { - try - { - this->shim().MaximumRowsOrColumns(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ItemWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemWidth(double value) noexcept override - { - try - { - this->shim().ItemWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ItemHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemHeight(double value) noexcept override - { - try - { - this->shim().ItemHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstCacheIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstCacheIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FirstVisibleIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().FirstVisibleIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastVisibleIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastVisibleIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LastCacheIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().LastCacheIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollingDirection(Windows::UI::Xaml::Controls::PanelScrollingDirection * value) noexcept override - { - try - { - *value = detach(this->shim().ScrollingDirection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GroupHeaderPlacement(Windows::UI::Xaml::Controls::Primitives::GroupHeaderPlacement * value) noexcept override - { - try - { - *value = detach(this->shim().GroupHeaderPlacement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GroupHeaderPlacement(Windows::UI::Xaml::Controls::Primitives::GroupHeaderPlacement value) noexcept override - { - try - { - this->shim().GroupHeaderPlacement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CacheLength(double * value) noexcept override - { - try - { - *value = detach(this->shim().CacheLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CacheLength(double value) noexcept override - { - try - { - this->shim().CacheLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreStickyGroupHeadersEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AreStickyGroupHeadersEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AreStickyGroupHeadersEnabled(bool value) noexcept override - { - try - { - this->shim().AreStickyGroupHeadersEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GroupPaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupPaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OrientationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaximumRowsOrColumnsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaximumRowsOrColumnsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_GroupHeaderPlacementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupHeaderPlacementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CacheLengthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CacheLengthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreStickyGroupHeadersEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AreStickyGroupHeadersEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionMode(Windows::UI::Xaml::Controls::SelectionMode * value) noexcept override - { - try - { - *value = detach(this->shim().SelectionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionMode(Windows::UI::Xaml::Controls::SelectionMode value) noexcept override - { - try - { - this->shim().SelectionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ScrollIntoView(abi_arg_in item) noexcept override - { - try - { - this->shim().ScrollIntoView(*reinterpret_cast(&item)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectAll() noexcept override - { - try - { - this->shim().SelectAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SingleSelectionFollowsFocus(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SingleSelectionFollowsFocus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SingleSelectionFollowsFocus(bool value) noexcept override - { - try - { - this->shim().SingleSelectionFollowsFocus(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectionModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SingleSelectionFollowsFocusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SingleSelectionFollowsFocusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemsSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemsSource(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemsSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().ItemTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayMemberPath(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayMemberPath()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayMemberPath(abi_arg_in value) noexcept override - { - try - { - this->shim().DisplayMemberPath(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionMode(Windows::UI::Xaml::Controls::ListPickerFlyoutSelectionMode * value) noexcept override - { - try - { - *value = detach(this->shim().SelectionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionMode(Windows::UI::Xaml::Controls::ListPickerFlyoutSelectionMode value) noexcept override - { - try - { - this->shim().SelectionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedIndex(int32_t value) noexcept override - { - try - { - this->shim().SelectedIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedItem(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedItem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedValue(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedValue()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedValue(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedValue(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedValuePath(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedValuePath()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedValuePath(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedValuePath(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ItemsPicked(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ItemsPicked(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemsPicked(event_token token) noexcept override - { - try - { - this->shim().ItemsPicked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAtAsync(abi_arg_in target, abi_arg_out>> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ShowAtAsync(*reinterpret_cast(&target))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemsSourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemsSourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayMemberPathProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayMemberPathProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedItemProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItemProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedValueProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedValueProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedValuePathProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedValuePathProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionMode(Windows::UI::Xaml::Controls::ListViewSelectionMode * value) noexcept override - { - try - { - *value = detach(this->shim().SelectionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionMode(Windows::UI::Xaml::Controls::ListViewSelectionMode value) noexcept override - { - try - { - this->shim().SelectionMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSwipeEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSwipeEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSwipeEnabled(bool value) noexcept override - { - try - { - this->shim().IsSwipeEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanDragItems(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanDragItems()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanDragItems(bool value) noexcept override - { - try - { - this->shim().CanDragItems(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanReorderItems(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanReorderItems()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanReorderItems(bool value) noexcept override - { - try - { - this->shim().CanReorderItems(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsItemClickEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsItemClickEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsItemClickEnabled(bool value) noexcept override - { - try - { - this->shim().IsItemClickEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataFetchSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().DataFetchSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DataFetchSize(double value) noexcept override - { - try - { - this->shim().DataFetchSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncrementalLoadingThreshold(double * value) noexcept override - { - try - { - *value = detach(this->shim().IncrementalLoadingThreshold()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncrementalLoadingThreshold(double value) noexcept override - { - try - { - this->shim().IncrementalLoadingThreshold(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncrementalLoadingTrigger(Windows::UI::Xaml::Controls::IncrementalLoadingTrigger * value) noexcept override - { - try - { - *value = detach(this->shim().IncrementalLoadingTrigger()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IncrementalLoadingTrigger(Windows::UI::Xaml::Controls::IncrementalLoadingTrigger value) noexcept override - { - try - { - this->shim().IncrementalLoadingTrigger(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ItemClick(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ItemClick(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ItemClick(event_token token) noexcept override - { - try - { - this->shim().ItemClick(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DragItemsStarting(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DragItemsStarting(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DragItemsStarting(event_token token) noexcept override - { - try - { - this->shim().DragItemsStarting(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ScrollIntoView(abi_arg_in item) noexcept override - { - try - { - this->shim().ScrollIntoView(*reinterpret_cast(&item)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectAll() noexcept override - { - try - { - this->shim().SelectAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LoadMoreItemsAsync(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().LoadMoreItemsAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ScrollIntoViewWithAlignment(abi_arg_in item, Windows::UI::Xaml::Controls::ScrollIntoViewAlignment alignment) noexcept override - { - try - { - this->shim().ScrollIntoView(*reinterpret_cast(&item), alignment); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTransitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTransitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTransitions(abi_arg_in> value) noexcept override - { - try - { - this->shim().HeaderTransitions(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ShowsScrollingPlaceholders(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowsScrollingPlaceholders()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShowsScrollingPlaceholders(bool value) noexcept override - { - try - { - this->shim().ShowsScrollingPlaceholders(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContainerContentChanging(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ContainerContentChanging(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContainerContentChanging(event_token token) noexcept override - { - try - { - this->shim().ContainerContentChanging(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDesiredContainerUpdateDuration(abi_arg_in duration) noexcept override - { - try - { - this->shim().SetDesiredContainerUpdateDuration(*reinterpret_cast(&duration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Footer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Footer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Footer(abi_arg_in value) noexcept override - { - try - { - this->shim().Footer(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FooterTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FooterTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FooterTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().FooterTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FooterTransitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().FooterTransitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FooterTransitions(abi_arg_in> value) noexcept override - { - try - { - this->shim().FooterTransitions(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ReorderMode(Windows::UI::Xaml::Controls::ListViewReorderMode * value) noexcept override - { - try - { - *value = detach(this->shim().ReorderMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ReorderMode(Windows::UI::Xaml::Controls::ListViewReorderMode value) noexcept override - { - try - { - this->shim().ReorderMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectedRanges(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().SelectedRanges()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMultiSelectCheckBoxEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMultiSelectCheckBoxEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsMultiSelectCheckBoxEnabled(bool value) noexcept override - { - try - { - this->shim().IsMultiSelectCheckBoxEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DragItemsCompleted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DragItemsCompleted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DragItemsCompleted(event_token token) noexcept override - { - try - { - this->shim().DragItemsCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ChoosingItemContainer(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ChoosingItemContainer(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ChoosingItemContainer(event_token token) noexcept override - { - try - { - this->shim().ChoosingItemContainer(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ChoosingGroupHeaderContainer(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ChoosingGroupHeaderContainer(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ChoosingGroupHeaderContainer(event_token token) noexcept override - { - try - { - this->shim().ChoosingGroupHeaderContainer(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectRange(abi_arg_in itemIndexRange) noexcept override - { - try - { - this->shim().SelectRange(*reinterpret_cast(&itemIndexRange)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeselectRange(abi_arg_in itemIndexRange) noexcept override - { - try - { - this->shim().DeselectRange(*reinterpret_cast(&itemIndexRange)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SingleSelectionFollowsFocus(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SingleSelectionFollowsFocus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SingleSelectionFollowsFocus(bool value) noexcept override - { - try - { - this->shim().SingleSelectionFollowsFocus(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_IsDragSource(bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().IsDragSource()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectionModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSwipeEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSwipeEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanDragItemsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanDragItemsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanReorderItemsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanReorderItemsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsItemClickEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsItemClickEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataFetchSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataFetchSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncrementalLoadingThresholdProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IncrementalLoadingThresholdProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IncrementalLoadingTriggerProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IncrementalLoadingTriggerProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SemanticZoomOwnerProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SemanticZoomOwnerProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsActiveViewProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsActiveViewProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomedInViewProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomedInViewProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTransitionsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTransitionsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ShowsScrollingPlaceholdersProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShowsScrollingPlaceholdersProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FooterProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FooterProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FooterTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FooterTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FooterTransitionsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FooterTransitionsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ReorderModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ReorderModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsMultiSelectCheckBoxEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsMultiSelectCheckBoxEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SingleSelectionFollowsFocusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SingleSelectionFollowsFocusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetRelativeScrollPosition(abi_arg_in listViewBase, abi_arg_in itemToKeyHandler, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetRelativeScrollPosition(*reinterpret_cast(&listViewBase), *reinterpret_cast(&itemToKeyHandler))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRelativeScrollPositionAsync(abi_arg_in listViewBase, abi_arg_in relativeScrollPosition, abi_arg_in keyToItemHandler, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().SetRelativeScrollPositionAsync(*reinterpret_cast(&listViewBase), *reinterpret_cast(&relativeScrollPosition), *reinterpret_cast(&keyToItemHandler))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PosterSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PosterSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PosterSource(abi_arg_in value) noexcept override - { - try - { - this->shim().PosterSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Source(abi_arg_in value) noexcept override - { - try - { - this->shim().Source(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMuted(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsMuted()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsMuted(bool value) noexcept override - { - try - { - this->shim().IsMuted(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAudioOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsAudioOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoPlay(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoPlay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoPlay(bool value) noexcept override - { - try - { - this->shim().AutoPlay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Volume(double * value) noexcept override - { - try - { - *value = detach(this->shim().Volume()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Volume(double value) noexcept override - { - try - { - this->shim().Volume(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Balance(double * value) noexcept override - { - try - { - *value = detach(this->shim().Balance()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Balance(double value) noexcept override - { - try - { - this->shim().Balance(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalVideoHeight(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NaturalVideoHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalVideoWidth(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().NaturalVideoWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalDuration(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NaturalDuration()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Position(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Position()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Position(abi_arg_in value) noexcept override - { - try - { - this->shim().Position(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DownloadProgress(double * value) noexcept override - { - try - { - *value = detach(this->shim().DownloadProgress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BufferingProgress(double * value) noexcept override - { - try - { - *value = detach(this->shim().BufferingProgress()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DownloadProgressOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().DownloadProgressOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentState(Windows::UI::Xaml::Media::MediaElementState * value) noexcept override - { - try - { - *value = detach(this->shim().CurrentState()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Markers(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Markers()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanSeek(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanSeek()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanPause(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanPause()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioStreamCount(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AudioStreamCount()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioStreamIndex(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AudioStreamIndex()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioStreamIndex(abi_arg_in> value) noexcept override - { - try - { - this->shim().AudioStreamIndex(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackRate(double * value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaybackRate(double value) noexcept override - { - try - { - this->shim().PlaybackRate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLooping(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsLooping()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsLooping(bool value) noexcept override - { - try - { - this->shim().IsLooping(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlayToSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlayToSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultPlaybackRate(double * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultPlaybackRate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultPlaybackRate(double value) noexcept override - { - try - { - this->shim().DefaultPlaybackRate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AspectRatioWidth(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AspectRatioWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AspectRatioHeight(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().AspectRatioHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RealTimePlayback(bool * value) noexcept override - { - try - { - *value = detach(this->shim().RealTimePlayback()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RealTimePlayback(bool value) noexcept override - { - try - { - this->shim().RealTimePlayback(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioCategory(Windows::UI::Xaml::Media::AudioCategory * value) noexcept override - { - try - { - *value = detach(this->shim().AudioCategory()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioCategory(Windows::UI::Xaml::Media::AudioCategory value) noexcept override - { - try - { - this->shim().AudioCategory(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioDeviceType(Windows::UI::Xaml::Media::AudioDeviceType * value) noexcept override - { - try - { - *value = detach(this->shim().AudioDeviceType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AudioDeviceType(Windows::UI::Xaml::Media::AudioDeviceType value) noexcept override - { - try - { - this->shim().AudioDeviceType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtectionManager(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionManager()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ProtectionManager(abi_arg_in value) noexcept override - { - try - { - this->shim().ProtectionManager(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stereo3DVideoPackingMode(Windows::UI::Xaml::Media::Stereo3DVideoPackingMode * value) noexcept override - { - try - { - *value = detach(this->shim().Stereo3DVideoPackingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Stereo3DVideoPackingMode(Windows::UI::Xaml::Media::Stereo3DVideoPackingMode value) noexcept override - { - try - { - this->shim().Stereo3DVideoPackingMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stereo3DVideoRenderMode(Windows::UI::Xaml::Media::Stereo3DVideoRenderMode * value) noexcept override - { - try - { - *value = detach(this->shim().Stereo3DVideoRenderMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Stereo3DVideoRenderMode(Windows::UI::Xaml::Media::Stereo3DVideoRenderMode value) noexcept override - { - try - { - this->shim().Stereo3DVideoRenderMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStereo3DVideo(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStereo3DVideo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MediaOpened(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MediaOpened(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MediaOpened(event_token token) noexcept override - { - try - { - this->shim().MediaOpened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MediaEnded(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MediaEnded(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MediaEnded(event_token token) noexcept override - { - try - { - this->shim().MediaEnded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MediaFailed(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MediaFailed(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MediaFailed(event_token token) noexcept override - { - try - { - this->shim().MediaFailed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DownloadProgressChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DownloadProgressChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DownloadProgressChanged(event_token token) noexcept override - { - try - { - this->shim().DownloadProgressChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BufferingProgressChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BufferingProgressChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BufferingProgressChanged(event_token token) noexcept override - { - try - { - this->shim().BufferingProgressChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CurrentStateChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CurrentStateChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CurrentStateChanged(event_token token) noexcept override - { - try - { - this->shim().CurrentStateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_MarkerReached(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().MarkerReached(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_MarkerReached(event_token token) noexcept override - { - try - { - this->shim().MarkerReached(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_RateChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().RateChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_RateChanged(event_token token) noexcept override - { - try - { - this->shim().RateChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_VolumeChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().VolumeChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_VolumeChanged(event_token token) noexcept override - { - try - { - this->shim().VolumeChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SeekCompleted(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SeekCompleted(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SeekCompleted(event_token token) noexcept override - { - try - { - this->shim().SeekCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Play() noexcept override - { - try - { - this->shim().Play(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Pause() noexcept override - { - try - { - this->shim().Pause(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CanPlayType(abi_arg_in type, Windows::UI::Xaml::Media::MediaCanPlayResponse * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CanPlayType(*reinterpret_cast(&type))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetSource(abi_arg_in stream, abi_arg_in mimeType) noexcept override - { - try - { - this->shim().SetSource(*reinterpret_cast(&stream), *reinterpret_cast(&mimeType)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAudioStreamLanguage(abi_arg_in> index, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAudioStreamLanguage(*reinterpret_cast *>(&index))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddAudioEffect(abi_arg_in effectID, bool effectOptional, abi_arg_in effectConfiguration) noexcept override - { - try - { - this->shim().AddAudioEffect(*reinterpret_cast(&effectID), effectOptional, *reinterpret_cast(&effectConfiguration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddVideoEffect(abi_arg_in effectID, bool effectOptional, abi_arg_in effectConfiguration) noexcept override - { - try - { - this->shim().AddVideoEffect(*reinterpret_cast(&effectID), effectOptional, *reinterpret_cast(&effectConfiguration)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveAllEffects() noexcept override - { - try - { - this->shim().RemoveAllEffects(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActualStereo3DVideoPackingMode(Windows::UI::Xaml::Media::Stereo3DVideoPackingMode * value) noexcept override - { - try - { - *value = detach(this->shim().ActualStereo3DVideoPackingMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreTransportControlsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AreTransportControlsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AreTransportControlsEnabled(bool value) noexcept override - { - try - { - this->shim().AreTransportControlsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stretch(Windows::UI::Xaml::Media::Stretch * value) noexcept override - { - try - { - *value = detach(this->shim().Stretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Stretch(Windows::UI::Xaml::Media::Stretch value) noexcept override - { - try - { - this->shim().Stretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFullWindow(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFullWindow()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFullWindow(bool value) noexcept override - { - try - { - this->shim().IsFullWindow(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetMediaStreamSource(abi_arg_in source) noexcept override - { - try - { - this->shim().SetMediaStreamSource(*reinterpret_cast(&source)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlayToPreferredSourceUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlayToPreferredSourceUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlayToPreferredSourceUri(abi_arg_in value) noexcept override - { - try - { - this->shim().PlayToPreferredSourceUri(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TransportControls(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransportControls()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransportControls(abi_arg_in value) noexcept override - { - try - { - this->shim().TransportControls(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PartialMediaFailureDetected(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PartialMediaFailureDetected(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PartialMediaFailureDetected(event_token token) noexcept override - { - try - { - this->shim().PartialMediaFailureDetected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPlaybackSource(abi_arg_in source) noexcept override - { - try - { - this->shim().SetPlaybackSource(*reinterpret_cast(&source)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAsCastingSource(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAsCastingSource()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PosterSourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PosterSourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsMutedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsMutedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsAudioOnlyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsAudioOnlyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoPlayProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutoPlayProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VolumeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VolumeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BalanceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BalanceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalVideoHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NaturalVideoHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalVideoWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NaturalVideoWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NaturalDurationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NaturalDurationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PositionProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PositionProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DownloadProgressProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DownloadProgressProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BufferingProgressProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BufferingProgressProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DownloadProgressOffsetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DownloadProgressOffsetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CurrentStateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CurrentStateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanSeekProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanSeekProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanPauseProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanPauseProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioStreamCountProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioStreamCountProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioStreamIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioStreamIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaybackRateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaybackRateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLoopingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsLoopingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlayToSourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlayToSourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultPlaybackRateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultPlaybackRateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AspectRatioWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AspectRatioWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AspectRatioHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AspectRatioHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RealTimePlaybackProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RealTimePlaybackProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioCategoryProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioCategoryProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AudioDeviceTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AudioDeviceTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ProtectionManagerProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ProtectionManagerProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stereo3DVideoPackingModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Stereo3DVideoPackingModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stereo3DVideoRenderModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Stereo3DVideoRenderModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStereo3DVideoProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsStereo3DVideoProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActualStereo3DVideoPackingModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ActualStereo3DVideoPackingModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreTransportControlsEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AreTransportControlsEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StretchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StretchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFullWindowProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFullWindowProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlayToPreferredSourceUriProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlayToPreferredSourceUriProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Source(abi_arg_in value) noexcept override - { - try - { - this->shim().Source(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TransportControls(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TransportControls()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TransportControls(abi_arg_in value) noexcept override - { - try - { - this->shim().TransportControls(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AreTransportControlsEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AreTransportControlsEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AreTransportControlsEnabled(bool value) noexcept override - { - try - { - this->shim().AreTransportControlsEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PosterSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PosterSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PosterSource(abi_arg_in value) noexcept override - { - try - { - this->shim().PosterSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stretch(Windows::UI::Xaml::Media::Stretch * value) noexcept override - { - try - { - *value = detach(this->shim().Stretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Stretch(Windows::UI::Xaml::Media::Stretch value) noexcept override - { - try - { - this->shim().Stretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoPlay(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AutoPlay()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AutoPlay(bool value) noexcept override - { - try - { - this->shim().AutoPlay(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFullWindow(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFullWindow()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFullWindow(bool value) noexcept override - { - try - { - this->shim().IsFullWindow(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaPlayer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaPlayer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetMediaPlayer(abi_arg_in mediaPlayer) noexcept override - { - try - { - this->shim().SetMediaPlayer(*reinterpret_cast(&mediaPlayer)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AreTransportControlsEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AreTransportControlsEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PosterSourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PosterSourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StretchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StretchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AutoPlayProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AutoPlayProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFullWindowProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFullWindowProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MediaPlayerProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaPlayerProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MediaPlayer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaPlayer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MediaPlayer(abi_arg_in value) noexcept override - { - try - { - this->shim().MediaPlayer(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stretch(Windows::UI::Xaml::Media::Stretch * value) noexcept override - { - try - { - *value = detach(this->shim().Stretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Stretch(Windows::UI::Xaml::Media::Stretch value) noexcept override - { - try - { - this->shim().Stretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFullWindow(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFullWindow()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFullWindow(bool value) noexcept override - { - try - { - this->shim().IsFullWindow(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MediaPlayerProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaPlayerProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StretchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StretchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFullWindowProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFullWindowProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsFullWindowButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFullWindowButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFullWindowButtonVisible(bool value) noexcept override - { - try - { - this->shim().IsFullWindowButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFullWindowEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFullWindowEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFullWindowEnabled(bool value) noexcept override - { - try - { - this->shim().IsFullWindowEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsZoomButtonVisible(bool value) noexcept override - { - try - { - this->shim().IsZoomButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsZoomEnabled(bool value) noexcept override - { - try - { - this->shim().IsZoomEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFastForwardButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFastForwardButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFastForwardButtonVisible(bool value) noexcept override - { - try - { - this->shim().IsFastForwardButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFastForwardEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFastForwardEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFastForwardEnabled(bool value) noexcept override - { - try - { - this->shim().IsFastForwardEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFastRewindButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFastRewindButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFastRewindButtonVisible(bool value) noexcept override - { - try - { - this->shim().IsFastRewindButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFastRewindEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsFastRewindEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsFastRewindEnabled(bool value) noexcept override - { - try - { - this->shim().IsFastRewindEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStopButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStopButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsStopButtonVisible(bool value) noexcept override - { - try - { - this->shim().IsStopButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStopEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsStopEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsStopEnabled(bool value) noexcept override - { - try - { - this->shim().IsStopEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVolumeButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVolumeButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsVolumeButtonVisible(bool value) noexcept override - { - try - { - this->shim().IsVolumeButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVolumeEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVolumeEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsVolumeEnabled(bool value) noexcept override - { - try - { - this->shim().IsVolumeEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPlaybackRateButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPlaybackRateButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPlaybackRateButtonVisible(bool value) noexcept override - { - try - { - this->shim().IsPlaybackRateButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPlaybackRateEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPlaybackRateEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPlaybackRateEnabled(bool value) noexcept override - { - try - { - this->shim().IsPlaybackRateEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSeekBarVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSeekBarVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSeekBarVisible(bool value) noexcept override - { - try - { - this->shim().IsSeekBarVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSeekEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSeekEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSeekEnabled(bool value) noexcept override - { - try - { - this->shim().IsSeekEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCompact(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsCompact()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsCompact(bool value) noexcept override - { - try - { - this->shim().IsCompact(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSkipForwardButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSkipForwardButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSkipForwardButtonVisible(bool value) noexcept override - { - try - { - this->shim().IsSkipForwardButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSkipForwardEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSkipForwardEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSkipForwardEnabled(bool value) noexcept override - { - try - { - this->shim().IsSkipForwardEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSkipBackwardButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSkipBackwardButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSkipBackwardButtonVisible(bool value) noexcept override - { - try - { - this->shim().IsSkipBackwardButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSkipBackwardEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSkipBackwardEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSkipBackwardEnabled(bool value) noexcept override - { - try - { - this->shim().IsSkipBackwardEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsNextTrackButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsNextTrackButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsNextTrackButtonVisible(bool value) noexcept override - { - try - { - this->shim().IsNextTrackButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPreviousTrackButtonVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPreviousTrackButtonVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPreviousTrackButtonVisible(bool value) noexcept override - { - try - { - this->shim().IsPreviousTrackButtonVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FastPlayFallbackBehaviour(Windows::UI::Xaml::Media::FastPlayFallbackBehaviour * value) noexcept override - { - try - { - *value = detach(this->shim().FastPlayFallbackBehaviour()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FastPlayFallbackBehaviour(Windows::UI::Xaml::Media::FastPlayFallbackBehaviour value) noexcept override - { - try - { - this->shim().FastPlayFallbackBehaviour(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ThumbnailRequested(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ThumbnailRequested(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ThumbnailRequested(event_token token) noexcept override - { - try - { - this->shim().ThumbnailRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DropoutOrderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DropoutOrderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetDropoutOrder(abi_arg_in element, abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().GetDropoutOrder(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetDropoutOrder(abi_arg_in element, abi_arg_in> value) noexcept override - { - try - { - this->shim().SetDropoutOrder(*reinterpret_cast(&element), *reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsFullWindowButtonVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFullWindowButtonVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFullWindowEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFullWindowEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomButtonVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomButtonVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFastForwardButtonVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFastForwardButtonVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFastForwardEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFastForwardEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFastRewindButtonVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFastRewindButtonVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsFastRewindEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsFastRewindEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStopButtonVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsStopButtonVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsStopEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsStopEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVolumeButtonVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsVolumeButtonVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVolumeEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsVolumeEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPlaybackRateButtonVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsPlaybackRateButtonVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPlaybackRateEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsPlaybackRateEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSeekBarVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSeekBarVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSeekEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSeekEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsCompactProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsCompactProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSkipForwardButtonVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSkipForwardButtonVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSkipForwardEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSkipForwardEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSkipBackwardButtonVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSkipBackwardButtonVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSkipBackwardEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSkipBackwardEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsNextTrackButtonVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsNextTrackButtonVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPreviousTrackButtonVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsPreviousTrackButtonVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FastPlayFallbackBehaviourProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FastPlayFallbackBehaviourProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MenuFlyoutPresenterStyle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MenuFlyoutPresenterStyle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MenuFlyoutPresenterStyle(abi_arg_in value) noexcept override - { - try - { - this->shim().MenuFlyoutPresenterStyle(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_ShowAt(abi_arg_in targetElement, abi_arg_in point) noexcept override - { - try - { - this->shim().ShowAt(*reinterpret_cast(&targetElement), *reinterpret_cast(&point)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Command(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Command()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Command(abi_arg_in value) noexcept override - { - try - { - this->shim().Command(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommandParameter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandParameter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CommandParameter(abi_arg_in value) noexcept override - { - try - { - this->shim().CommandParameter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Click(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Click(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Click(event_token token) noexcept override - { - try - { - this->shim().Click(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommandProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CommandParameterProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CommandParameterProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MenuFlyoutPresenterStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MenuFlyoutPresenterStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Items(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Items()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Navigate(abi_arg_in sourcePageType, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Navigate(*reinterpret_cast(&sourcePageType))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Value(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Value()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CallingUri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CallingUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Frame(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Frame()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NavigationCacheMode(Windows::UI::Xaml::Navigation::NavigationCacheMode * value) noexcept override - { - try - { - *value = detach(this->shim().NavigationCacheMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_NavigationCacheMode(Windows::UI::Xaml::Navigation::NavigationCacheMode value) noexcept override - { - try - { - this->shim().NavigationCacheMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TopAppBar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TopAppBar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TopAppBar(abi_arg_in value) noexcept override - { - try - { - this->shim().TopAppBar(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BottomAppBar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BottomAppBar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BottomAppBar(abi_arg_in value) noexcept override - { - try - { - this->shim().BottomAppBar(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnNavigatedFrom(abi_arg_in e) noexcept override - { - try - { - this->shim().OnNavigatedFrom(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnNavigatedTo(abi_arg_in e) noexcept override - { - try - { - this->shim().OnNavigatedTo(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnNavigatingFrom(abi_arg_in e) noexcept override - { - try - { - this->shim().OnNavigatingFrom(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FrameProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FrameProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TopAppBarProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TopAppBarProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BottomAppBarProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BottomAppBarProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Children(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Children()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Background(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Background()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Background(abi_arg_in value) noexcept override - { - try - { - this->shim().Background(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsItemsHost(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsItemsHost()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChildrenTransitions(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ChildrenTransitions()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChildrenTransitions(abi_arg_in> value) noexcept override - { - try - { - this->shim().ChildrenTransitions(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsItemsHostProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsItemsHostProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChildrenTransitionsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChildrenTransitionsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Password(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Password()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Password(abi_arg_in value) noexcept override - { - try - { - this->shim().Password(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PasswordChar(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PasswordChar()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PasswordChar(abi_arg_in value) noexcept override - { - try - { - this->shim().PasswordChar(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPasswordRevealButtonEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPasswordRevealButtonEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPasswordRevealButtonEnabled(bool value) noexcept override - { - try - { - this->shim().IsPasswordRevealButtonEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLength(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxLength(int32_t value) noexcept override - { - try - { - this->shim().MaxLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PasswordChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PasswordChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PasswordChanged(event_token token) noexcept override - { - try - { - this->shim().PasswordChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContextMenuOpening(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ContextMenuOpening(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContextMenuOpening(event_token token) noexcept override - { - try - { - this->shim().ContextMenuOpening(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectAll() noexcept override - { - try - { - this->shim().SelectAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaceholderText(abi_arg_in value) noexcept override - { - try - { - this->shim().PlaceholderText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionHighlightColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionHighlightColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionHighlightColor(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectionHighlightColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreventKeyboardDisplayOnProgrammaticFocus(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PreventKeyboardDisplayOnProgrammaticFocus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreventKeyboardDisplayOnProgrammaticFocus(bool value) noexcept override - { - try - { - this->shim().PreventKeyboardDisplayOnProgrammaticFocus(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Paste(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Paste(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Paste(event_token token) noexcept override - { - try - { - this->shim().Paste(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PasswordRevealMode(Windows::UI::Xaml::Controls::PasswordRevealMode * value) noexcept override - { - try - { - *value = detach(this->shim().PasswordRevealMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PasswordRevealMode(Windows::UI::Xaml::Controls::PasswordRevealMode value) noexcept override - { - try - { - this->shim().PasswordRevealMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextReadingOrder(Windows::UI::Xaml::TextReadingOrder * value) noexcept override - { - try - { - *value = detach(this->shim().TextReadingOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextReadingOrder(Windows::UI::Xaml::TextReadingOrder value) noexcept override - { - try - { - this->shim().TextReadingOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputScope(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputScope()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InputScope(abi_arg_in value) noexcept override - { - try - { - this->shim().InputScope(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PasswordProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PasswordProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PasswordCharProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PasswordCharProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPasswordRevealButtonEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsPasswordRevealButtonEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLengthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxLengthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionHighlightColorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionHighlightColorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreventKeyboardDisplayOnProgrammaticFocusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreventKeyboardDisplayOnProgrammaticFocusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PasswordRevealModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PasswordRevealModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextReadingOrderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextReadingOrderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputScopeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputScopeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Data(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Data()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Data(abi_arg_in value) noexcept override - { - try - { - this->shim().Data(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DataProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Content(abi_arg_in value) noexcept override - { - try - { - this->shim().Content(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConfirmationButtonsVisible(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ConfirmationButtonsVisible()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ConfirmationButtonsVisible(bool value) noexcept override - { - try - { - this->shim().ConfirmationButtonsVisible(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Confirmed(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Confirmed(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Confirmed(event_token token) noexcept override - { - try - { - this->shim().Confirmed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAtAsync(abi_arg_in target, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ShowAtAsync(*reinterpret_cast(&target))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ConfirmationButtonsVisibleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ConfirmationButtonsVisibleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TitleTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TitleTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().TitleTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectedIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedIndex(int32_t value) noexcept override - { - try - { - this->shim().SelectedIndex(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedItem(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedItem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLocked(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsLocked()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsLocked(bool value) noexcept override - { - try - { - this->shim().IsLocked(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SelectionChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SelectionChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectionChanged(event_token token) noexcept override - { - try - { - this->shim().SelectionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PivotItemLoading(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PivotItemLoading(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PivotItemLoading(event_token token) noexcept override - { - try - { - this->shim().PivotItemLoading(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PivotItemLoaded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PivotItemLoaded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PivotItemLoaded(event_token token) noexcept override - { - try - { - this->shim().PivotItemLoaded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PivotItemUnloading(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PivotItemUnloading(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PivotItemUnloading(event_token token) noexcept override - { - try - { - this->shim().PivotItemUnloading(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PivotItemUnloaded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PivotItemUnloaded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PivotItemUnloaded(event_token token) noexcept override - { - try - { - this->shim().PivotItemUnloaded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LeftHeader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LeftHeader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LeftHeader(abi_arg_in value) noexcept override - { - try - { - this->shim().LeftHeader(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LeftHeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LeftHeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LeftHeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().LeftHeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightHeader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RightHeader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RightHeader(abi_arg_in value) noexcept override - { - try - { - this->shim().RightHeader(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightHeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RightHeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_RightHeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().RightHeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderFocusVisualPlacement(Windows::UI::Xaml::Controls::PivotHeaderFocusVisualPlacement * value) noexcept override - { - try - { - *value = detach(this->shim().HeaderFocusVisualPlacement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderFocusVisualPlacement(Windows::UI::Xaml::Controls::PivotHeaderFocusVisualPlacement value) noexcept override - { - try - { - this->shim().HeaderFocusVisualPlacement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHeaderItemsCarouselEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHeaderItemsCarouselEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsHeaderItemsCarouselEnabled(bool value) noexcept override - { - try - { - this->shim().IsHeaderItemsCarouselEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Item(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Item()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Item(abi_arg_in value) noexcept override - { - try - { - this->shim().Item(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TitleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TitleTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedIndexProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedIndexProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedItemProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedItemProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsLockedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsLockedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SlideInAnimationGroupProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SlideInAnimationGroupProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetSlideInAnimationGroup(abi_arg_in element, Windows::UI::Xaml::Controls::PivotSlideInAnimationGroup * value) noexcept override - { - try - { - *value = detach(this->shim().GetSlideInAnimationGroup(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetSlideInAnimationGroup(abi_arg_in element, Windows::UI::Xaml::Controls::PivotSlideInAnimationGroup value) noexcept override - { - try - { - this->shim().SetSlideInAnimationGroup(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LeftHeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LeftHeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LeftHeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LeftHeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightHeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RightHeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightHeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RightHeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderFocusVisualPlacementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderFocusVisualPlacementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHeaderItemsCarouselEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsHeaderItemsCarouselEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsIndeterminate(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIndeterminate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsIndeterminate(bool value) noexcept override - { - try - { - this->shim().IsIndeterminate(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowError(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowError()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShowError(bool value) noexcept override - { - try - { - this->shim().ShowError(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowPaused(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ShowPaused()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ShowPaused(bool value) noexcept override - { - try - { - this->shim().ShowPaused(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsIndeterminateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsIndeterminateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowErrorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShowErrorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ShowPausedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ShowPausedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsActive(bool value) noexcept override - { - try - { - this->shim().IsActive(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsActiveProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsActiveProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GroupName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_GroupName(abi_arg_in value) noexcept override - { - try - { - this->shim().GroupName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_GroupNameProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GroupNameProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThickness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderThickness(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderThickness(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CornerRadius(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CornerRadius()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CornerRadius(abi_arg_in value) noexcept override - { - try - { - this->shim().CornerRadius(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Padding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Padding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Padding(abi_arg_in value) noexcept override - { - try - { - this->shim().Padding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LeftOfProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LeftOfProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetLeftOf(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetLeftOf(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLeftOf(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetLeftOf(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AboveProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AboveProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAbove(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAbove(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAbove(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAbove(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RightOfProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RightOfProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRightOf(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetRightOf(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRightOf(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetRightOf(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BelowProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BelowProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBelow(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetBelow(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetBelow(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetBelow(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignHorizontalCenterWithProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignHorizontalCenterWithProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignHorizontalCenterWith(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignHorizontalCenterWith(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignHorizontalCenterWith(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAlignHorizontalCenterWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignVerticalCenterWithProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignVerticalCenterWithProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignVerticalCenterWith(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignVerticalCenterWith(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignVerticalCenterWith(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAlignVerticalCenterWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignLeftWithProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignLeftWithProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignLeftWith(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignLeftWith(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignLeftWith(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAlignLeftWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignTopWithProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignTopWithProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignTopWith(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignTopWith(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignTopWith(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAlignTopWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignRightWithProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignRightWithProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignRightWith(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignRightWith(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignRightWith(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAlignRightWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignBottomWithProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignBottomWithProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignBottomWith(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignBottomWith(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignBottomWith(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetAlignBottomWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignLeftWithPanelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignLeftWithPanelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignLeftWithPanel(abi_arg_in element, bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignLeftWithPanel(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignLeftWithPanel(abi_arg_in element, bool value) noexcept override - { - try - { - this->shim().SetAlignLeftWithPanel(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignTopWithPanelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignTopWithPanelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignTopWithPanel(abi_arg_in element, bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignTopWithPanel(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignTopWithPanel(abi_arg_in element, bool value) noexcept override - { - try - { - this->shim().SetAlignTopWithPanel(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignRightWithPanelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignRightWithPanelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignRightWithPanel(abi_arg_in element, bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignRightWithPanel(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignRightWithPanel(abi_arg_in element, bool value) noexcept override - { - try - { - this->shim().SetAlignRightWithPanel(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignBottomWithPanelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignBottomWithPanelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignBottomWithPanel(abi_arg_in element, bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignBottomWithPanel(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignBottomWithPanel(abi_arg_in element, bool value) noexcept override - { - try - { - this->shim().SetAlignBottomWithPanel(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignHorizontalCenterWithPanelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignHorizontalCenterWithPanelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignHorizontalCenterWithPanel(abi_arg_in element, bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignHorizontalCenterWithPanel(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignHorizontalCenterWithPanel(abi_arg_in element, bool value) noexcept override - { - try - { - this->shim().SetAlignHorizontalCenterWithPanel(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AlignVerticalCenterWithPanelProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AlignVerticalCenterWithPanelProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetAlignVerticalCenterWithPanel(abi_arg_in element, bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetAlignVerticalCenterWithPanel(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetAlignVerticalCenterWithPanel(abi_arg_in element, bool value) noexcept override - { - try - { - this->shim().SetAlignVerticalCenterWithPanel(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThicknessProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThicknessProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CornerRadiusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CornerRadiusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsReadOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsReadOnly(bool value) noexcept override - { - try - { - this->shim().IsReadOnly(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AcceptsReturn(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AcceptsReturn()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AcceptsReturn(bool value) noexcept override - { - try - { - this->shim().AcceptsReturn(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextAlignment(Windows::UI::Xaml::TextAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().TextAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextAlignment(Windows::UI::Xaml::TextAlignment value) noexcept override - { - try - { - this->shim().TextAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextWrapping(Windows::UI::Xaml::TextWrapping * value) noexcept override - { - try - { - *value = detach(this->shim().TextWrapping()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextWrapping(Windows::UI::Xaml::TextWrapping value) noexcept override - { - try - { - this->shim().TextWrapping(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSpellCheckEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSpellCheckEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSpellCheckEnabled(bool value) noexcept override - { - try - { - this->shim().IsSpellCheckEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTextPredictionEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTextPredictionEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTextPredictionEnabled(bool value) noexcept override - { - try - { - this->shim().IsTextPredictionEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Document(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Document()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputScope(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputScope()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InputScope(abi_arg_in value) noexcept override - { - try - { - this->shim().InputScope(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TextChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextChanged(event_token token) noexcept override - { - try - { - this->shim().TextChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SelectionChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SelectionChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectionChanged(event_token token) noexcept override - { - try - { - this->shim().SelectionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContextMenuOpening(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ContextMenuOpening(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContextMenuOpening(event_token token) noexcept override - { - try - { - this->shim().ContextMenuOpening(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaceholderText(abi_arg_in value) noexcept override - { - try - { - this->shim().PlaceholderText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionHighlightColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionHighlightColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionHighlightColor(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectionHighlightColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreventKeyboardDisplayOnProgrammaticFocus(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PreventKeyboardDisplayOnProgrammaticFocus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreventKeyboardDisplayOnProgrammaticFocus(bool value) noexcept override - { - try - { - this->shim().PreventKeyboardDisplayOnProgrammaticFocus(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsColorFontEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsColorFontEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsColorFontEnabled(bool value) noexcept override - { - try - { - this->shim().IsColorFontEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Paste(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Paste(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Paste(event_token token) noexcept override - { - try - { - this->shim().Paste(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_TextCompositionStarted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TextCompositionStarted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextCompositionStarted(event_token token) noexcept override - { - try - { - this->shim().TextCompositionStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextCompositionChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TextCompositionChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextCompositionChanged(event_token token) noexcept override - { - try - { - this->shim().TextCompositionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextCompositionEnded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TextCompositionEnded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextCompositionEnded(event_token token) noexcept override - { - try - { - this->shim().TextCompositionEnded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextReadingOrder(Windows::UI::Xaml::TextReadingOrder * value) noexcept override - { - try - { - *value = detach(this->shim().TextReadingOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextReadingOrder(Windows::UI::Xaml::TextReadingOrder value) noexcept override - { - try - { - this->shim().TextReadingOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredCandidateWindowAlignment(Windows::UI::Xaml::Controls::CandidateWindowAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredCandidateWindowAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredCandidateWindowAlignment(Windows::UI::Xaml::Controls::CandidateWindowAlignment value) noexcept override - { - try - { - this->shim().DesiredCandidateWindowAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CandidateWindowBoundsChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CandidateWindowBoundsChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CandidateWindowBoundsChanged(event_token token) noexcept override - { - try - { - this->shim().CandidateWindowBoundsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextChanging(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TextChanging(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextChanging(event_token token) noexcept override - { - try - { - this->shim().TextChanging(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetLinguisticAlternativesAsync(abi_arg_out>> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLinguisticAlternativesAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClipboardCopyFormat(Windows::UI::Xaml::Controls::RichEditClipboardFormat * value) noexcept override - { - try - { - *value = detach(this->shim().ClipboardCopyFormat()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClipboardCopyFormat(Windows::UI::Xaml::Controls::RichEditClipboardFormat value) noexcept override - { - try - { - this->shim().ClipboardCopyFormat(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsReadOnlyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnlyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AcceptsReturnProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AcceptsReturnProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextWrappingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextWrappingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSpellCheckEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSpellCheckEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTextPredictionEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTextPredictionEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputScopeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputScopeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionHighlightColorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionHighlightColorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreventKeyboardDisplayOnProgrammaticFocusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreventKeyboardDisplayOnProgrammaticFocusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsColorFontEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsColorFontEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DesiredCandidateWindowAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DesiredCandidateWindowAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextReadingOrderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextReadingOrderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClipboardCopyFormatProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClipboardCopyFormatProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FontSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().FontSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontSize(double value) noexcept override - { - try - { - this->shim().FontSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontFamily(abi_arg_in value) noexcept override - { - try - { - this->shim().FontFamily(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontWeight(abi_arg_in value) noexcept override - { - try - { - this->shim().FontWeight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyle(Windows::UI::Text::FontStyle * value) noexcept override - { - try - { - *value = detach(this->shim().FontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontStyle(Windows::UI::Text::FontStyle value) noexcept override - { - try - { - this->shim().FontStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStretch(Windows::UI::Text::FontStretch * value) noexcept override - { - try - { - *value = detach(this->shim().FontStretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontStretch(Windows::UI::Text::FontStretch value) noexcept override - { - try - { - this->shim().FontStretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Foreground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Foreground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Foreground(abi_arg_in value) noexcept override - { - try - { - this->shim().Foreground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextWrapping(Windows::UI::Xaml::TextWrapping * value) noexcept override - { - try - { - *value = detach(this->shim().TextWrapping()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextWrapping(Windows::UI::Xaml::TextWrapping value) noexcept override - { - try - { - this->shim().TextWrapping(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextTrimming(Windows::UI::Xaml::TextTrimming * value) noexcept override - { - try - { - *value = detach(this->shim().TextTrimming()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextTrimming(Windows::UI::Xaml::TextTrimming value) noexcept override - { - try - { - this->shim().TextTrimming(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextAlignment(Windows::UI::Xaml::TextAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().TextAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextAlignment(Windows::UI::Xaml::TextAlignment value) noexcept override - { - try - { - this->shim().TextAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Blocks(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Blocks()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Padding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Padding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Padding(abi_arg_in value) noexcept override - { - try - { - this->shim().Padding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().LineHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LineHeight(double value) noexcept override - { - try - { - this->shim().LineHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineStackingStrategy(Windows::UI::Xaml::LineStackingStrategy * value) noexcept override - { - try - { - *value = detach(this->shim().LineStackingStrategy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LineStackingStrategy(Windows::UI::Xaml::LineStackingStrategy value) noexcept override - { - try - { - this->shim().LineStackingStrategy(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacterSpacing(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CharacterSpacing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CharacterSpacing(int32_t value) noexcept override - { - try - { - this->shim().CharacterSpacing(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OverflowContentTarget(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OverflowContentTarget()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OverflowContentTarget(abi_arg_in value) noexcept override - { - try - { - this->shim().OverflowContentTarget(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTextSelectionEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTextSelectionEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTextSelectionEnabled(bool value) noexcept override - { - try - { - this->shim().IsTextSelectionEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasOverflowContent(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasOverflowContent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentStart(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentStart()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentEnd(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentEnd()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionStart(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionStart()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionEnd(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionEnd()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BaselineOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().BaselineOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SelectionChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SelectionChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectionChanged(event_token token) noexcept override - { - try - { - this->shim().SelectionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContextMenuOpening(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ContextMenuOpening(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContextMenuOpening(event_token token) noexcept override - { - try - { - this->shim().ContextMenuOpening(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectAll() noexcept override - { - try - { - this->shim().SelectAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Select(abi_arg_in start, abi_arg_in end) noexcept override - { - try - { - this->shim().Select(*reinterpret_cast(&start), *reinterpret_cast(&end)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPositionFromPoint(abi_arg_in point, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetPositionFromPoint(*reinterpret_cast(&point))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Focus(Windows::UI::Xaml::FocusState value, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Focus(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextIndent(double * value) noexcept override - { - try - { - *value = detach(this->shim().TextIndent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextIndent(double value) noexcept override - { - try - { - this->shim().TextIndent(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxLines(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxLines()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxLines(int32_t value) noexcept override - { - try - { - this->shim().MaxLines(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextLineBounds(Windows::UI::Xaml::TextLineBounds * value) noexcept override - { - try - { - *value = detach(this->shim().TextLineBounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextLineBounds(Windows::UI::Xaml::TextLineBounds value) noexcept override - { - try - { - this->shim().TextLineBounds(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionHighlightColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionHighlightColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionHighlightColor(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectionHighlightColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OpticalMarginAlignment(Windows::UI::Xaml::OpticalMarginAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().OpticalMarginAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OpticalMarginAlignment(Windows::UI::Xaml::OpticalMarginAlignment value) noexcept override - { - try - { - this->shim().OpticalMarginAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsColorFontEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsColorFontEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsColorFontEnabled(bool value) noexcept override - { - try - { - this->shim().IsColorFontEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextReadingOrder(Windows::UI::Xaml::TextReadingOrder * value) noexcept override - { - try - { - *value = detach(this->shim().TextReadingOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextReadingOrder(Windows::UI::Xaml::TextReadingOrder value) noexcept override - { - try - { - this->shim().TextReadingOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTextScaleFactorEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTextScaleFactorEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept override - { - try - { - this->shim().IsTextScaleFactorEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OverflowContentTarget(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OverflowContentTarget()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OverflowContentTarget(abi_arg_in value) noexcept override - { - try - { - this->shim().OverflowContentTarget(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Padding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Padding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Padding(abi_arg_in value) noexcept override - { - try - { - this->shim().Padding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasOverflowContent(bool * value) noexcept override - { - try - { - *value = detach(this->shim().HasOverflowContent()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentStart(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentStart()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentEnd(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentEnd()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BaselineOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().BaselineOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPositionFromPoint(abi_arg_in point, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetPositionFromPoint(*reinterpret_cast(&point))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Focus(Windows::UI::Xaml::FocusState value, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Focus(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxLines(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxLines()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxLines(int32_t value) noexcept override - { - try - { - this->shim().MaxLines(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OverflowContentTargetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OverflowContentTargetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasOverflowContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HasOverflowContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxLinesProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxLinesProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FontSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontFamilyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamilyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontWeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStretchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontStretchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextWrappingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextWrappingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextTrimmingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextTrimmingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LineHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineStackingStrategyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LineStackingStrategyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacterSpacingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CharacterSpacingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OverflowContentTargetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OverflowContentTargetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTextSelectionEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTextSelectionEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HasOverflowContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HasOverflowContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextIndentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextIndentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MaxLinesProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxLinesProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextLineBoundsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextLineBoundsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionHighlightColorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionHighlightColorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OpticalMarginAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OpticalMarginAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsColorFontEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsColorFontEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextReadingOrderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextReadingOrderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTextScaleFactorEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTextScaleFactorEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Height(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Height()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Height(abi_arg_in value) noexcept override - { - try - { - this->shim().Height(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().MaxHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxHeight(double value) noexcept override - { - try - { - this->shim().MaxHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().MinHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinHeight(double value) noexcept override - { - try - { - this->shim().MinHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ActualHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ActualHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanVerticallyScroll(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanVerticallyScroll()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanVerticallyScroll(bool value) noexcept override - { - try - { - this->shim().CanVerticallyScroll(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanHorizontallyScroll(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanHorizontallyScroll()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanHorizontallyScroll(bool value) noexcept override - { - try - { - this->shim().CanHorizontallyScroll(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtentWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ExtentWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtentHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ExtentHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ViewportWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ViewportHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollOwner(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScrollOwner()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ScrollOwner(abi_arg_in value) noexcept override - { - try - { - this->shim().ScrollOwner(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineUp() noexcept override - { - try - { - this->shim().LineUp(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineDown() noexcept override - { - try - { - this->shim().LineDown(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineLeft() noexcept override - { - try - { - this->shim().LineLeft(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_LineRight() noexcept override - { - try - { - this->shim().LineRight(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageUp() noexcept override - { - try - { - this->shim().PageUp(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageDown() noexcept override - { - try - { - this->shim().PageDown(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageLeft() noexcept override - { - try - { - this->shim().PageLeft(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_PageRight() noexcept override - { - try - { - this->shim().PageRight(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelUp() noexcept override - { - try - { - this->shim().MouseWheelUp(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelDown() noexcept override - { - try - { - this->shim().MouseWheelDown(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelLeft() noexcept override - { - try - { - this->shim().MouseWheelLeft(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MouseWheelRight() noexcept override - { - try - { - this->shim().MouseWheelRight(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetHorizontalOffset(double offset) noexcept override - { - try - { - this->shim().SetHorizontalOffset(offset); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetVerticalOffset(double offset) noexcept override - { - try - { - this->shim().SetVerticalOffset(offset); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MakeVisible(abi_arg_in visual, abi_arg_in rectangle, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().MakeVisible(*reinterpret_cast(&visual), *reinterpret_cast(&rectangle))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HorizontalScrollBarVisibility(Windows::UI::Xaml::Controls::ScrollBarVisibility * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalScrollBarVisibility()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalScrollBarVisibility(Windows::UI::Xaml::Controls::ScrollBarVisibility value) noexcept override - { - try - { - this->shim().HorizontalScrollBarVisibility(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalScrollBarVisibility(Windows::UI::Xaml::Controls::ScrollBarVisibility * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalScrollBarVisibility()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalScrollBarVisibility(Windows::UI::Xaml::Controls::ScrollBarVisibility value) noexcept override - { - try - { - this->shim().VerticalScrollBarVisibility(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHorizontalRailEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHorizontalRailEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsHorizontalRailEnabled(bool value) noexcept override - { - try - { - this->shim().IsHorizontalRailEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVerticalRailEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVerticalRailEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsVerticalRailEnabled(bool value) noexcept override - { - try - { - this->shim().IsVerticalRailEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHorizontalScrollChainingEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsHorizontalScrollChainingEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsHorizontalScrollChainingEnabled(bool value) noexcept override - { - try - { - this->shim().IsHorizontalScrollChainingEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVerticalScrollChainingEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsVerticalScrollChainingEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsVerticalScrollChainingEnabled(bool value) noexcept override - { - try - { - this->shim().IsVerticalScrollChainingEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomChainingEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomChainingEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsZoomChainingEnabled(bool value) noexcept override - { - try - { - this->shim().IsZoomChainingEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsScrollInertiaEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsScrollInertiaEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsScrollInertiaEnabled(bool value) noexcept override - { - try - { - this->shim().IsScrollInertiaEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomInertiaEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomInertiaEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsZoomInertiaEnabled(bool value) noexcept override - { - try - { - this->shim().IsZoomInertiaEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalScrollMode(Windows::UI::Xaml::Controls::ScrollMode * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalScrollMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalScrollMode(Windows::UI::Xaml::Controls::ScrollMode value) noexcept override - { - try - { - this->shim().HorizontalScrollMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalScrollMode(Windows::UI::Xaml::Controls::ScrollMode * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalScrollMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalScrollMode(Windows::UI::Xaml::Controls::ScrollMode value) noexcept override - { - try - { - this->shim().VerticalScrollMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomMode(Windows::UI::Xaml::Controls::ZoomMode * value) noexcept override - { - try - { - *value = detach(this->shim().ZoomMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ZoomMode(Windows::UI::Xaml::Controls::ZoomMode value) noexcept override - { - try - { - this->shim().ZoomMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalSnapPointsAlignment(Windows::UI::Xaml::Controls::Primitives::SnapPointsAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalSnapPointsAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalSnapPointsAlignment(Windows::UI::Xaml::Controls::Primitives::SnapPointsAlignment value) noexcept override - { - try - { - this->shim().HorizontalSnapPointsAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalSnapPointsAlignment(Windows::UI::Xaml::Controls::Primitives::SnapPointsAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalSnapPointsAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalSnapPointsAlignment(Windows::UI::Xaml::Controls::Primitives::SnapPointsAlignment value) noexcept override - { - try - { - this->shim().VerticalSnapPointsAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalSnapPointsType(Windows::UI::Xaml::Controls::SnapPointsType * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalSnapPointsType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalSnapPointsType(Windows::UI::Xaml::Controls::SnapPointsType value) noexcept override - { - try - { - this->shim().HorizontalSnapPointsType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalSnapPointsType(Windows::UI::Xaml::Controls::SnapPointsType * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalSnapPointsType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalSnapPointsType(Windows::UI::Xaml::Controls::SnapPointsType value) noexcept override - { - try - { - this->shim().VerticalSnapPointsType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomSnapPointsType(Windows::UI::Xaml::Controls::SnapPointsType * value) noexcept override - { - try - { - *value = detach(this->shim().ZoomSnapPointsType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ZoomSnapPointsType(Windows::UI::Xaml::Controls::SnapPointsType value) noexcept override - { - try - { - this->shim().ZoomSnapPointsType(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ViewportWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollableWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ScrollableWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ComputedHorizontalScrollBarVisibility(Windows::UI::Xaml::Visibility * value) noexcept override - { - try - { - *value = detach(this->shim().ComputedHorizontalScrollBarVisibility()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtentWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ExtentWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ViewportHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollableHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ScrollableHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ComputedVerticalScrollBarVisibility(Windows::UI::Xaml::Visibility * value) noexcept override - { - try - { - *value = detach(this->shim().ComputedVerticalScrollBarVisibility()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtentHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ExtentHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinZoomFactor(float * value) noexcept override - { - try - { - *value = detach(this->shim().MinZoomFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinZoomFactor(float value) noexcept override - { - try - { - this->shim().MinZoomFactor(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxZoomFactor(float * value) noexcept override - { - try - { - *value = detach(this->shim().MaxZoomFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxZoomFactor(float value) noexcept override - { - try - { - this->shim().MaxZoomFactor(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomFactor(float * value) noexcept override - { - try - { - *value = detach(this->shim().ZoomFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomSnapPoints(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().ZoomSnapPoints()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ViewChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ViewChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ViewChanged(event_token token) noexcept override - { - try - { - this->shim().ViewChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ScrollToHorizontalOffset(double offset) noexcept override - { - try - { - this->shim().ScrollToHorizontalOffset(offset); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ScrollToVerticalOffset(double offset) noexcept override - { - try - { - this->shim().ScrollToVerticalOffset(offset); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ZoomToFactor(float factor) noexcept override - { - try - { - this->shim().ZoomToFactor(factor); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InvalidateScrollInfo() noexcept override - { - try - { - this->shim().InvalidateScrollInfo(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDeferredScrollingEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDeferredScrollingEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDeferredScrollingEnabled(bool value) noexcept override - { - try - { - this->shim().IsDeferredScrollingEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BringIntoViewOnFocusChange(bool * value) noexcept override - { - try - { - *value = detach(this->shim().BringIntoViewOnFocusChange()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BringIntoViewOnFocusChange(bool value) noexcept override - { - try - { - this->shim().BringIntoViewOnFocusChange(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TopLeftHeader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TopLeftHeader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TopLeftHeader(abi_arg_in value) noexcept override - { - try - { - this->shim().TopLeftHeader(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LeftHeader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LeftHeader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LeftHeader(abi_arg_in value) noexcept override - { - try - { - this->shim().LeftHeader(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TopHeader(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TopHeader()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TopHeader(abi_arg_in value) noexcept override - { - try - { - this->shim().TopHeader(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ViewChanging(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ViewChanging(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ViewChanging(event_token token) noexcept override - { - try - { - this->shim().ViewChanging(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ChangeView(abi_arg_in> horizontalOffset, abi_arg_in> verticalOffset, abi_arg_in> zoomFactor, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ChangeView(*reinterpret_cast *>(&horizontalOffset), *reinterpret_cast *>(&verticalOffset), *reinterpret_cast *>(&zoomFactor))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ChangeViewWithOptionalAnimation(abi_arg_in> horizontalOffset, abi_arg_in> verticalOffset, abi_arg_in> zoomFactor, bool disableAnimation, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ChangeView(*reinterpret_cast *>(&horizontalOffset), *reinterpret_cast *>(&verticalOffset), *reinterpret_cast *>(&zoomFactor), disableAnimation)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_DirectManipulationStarted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DirectManipulationStarted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DirectManipulationStarted(event_token token) noexcept override - { - try - { - this->shim().DirectManipulationStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DirectManipulationCompleted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DirectManipulationCompleted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DirectManipulationCompleted(event_token token) noexcept override - { - try - { - this->shim().DirectManipulationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HorizontalSnapPointsAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalSnapPointsAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalSnapPointsAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalSnapPointsAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalSnapPointsTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalSnapPointsTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalSnapPointsTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalSnapPointsTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomSnapPointsTypeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomSnapPointsTypeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalOffsetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalOffsetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ViewportWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollableWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScrollableWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ComputedHorizontalScrollBarVisibilityProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ComputedHorizontalScrollBarVisibilityProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtentWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtentWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalOffsetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalOffsetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ViewportHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ViewportHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ScrollableHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ScrollableHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ComputedVerticalScrollBarVisibilityProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ComputedVerticalScrollBarVisibilityProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ExtentHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExtentHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinZoomFactorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinZoomFactorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxZoomFactorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxZoomFactorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomFactorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomFactorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomSnapPointsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomSnapPointsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalScrollBarVisibilityProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalScrollBarVisibilityProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHorizontalScrollBarVisibility(abi_arg_in element, Windows::UI::Xaml::Controls::ScrollBarVisibility * horizontalScrollBarVisibility) noexcept override - { - try - { - *horizontalScrollBarVisibility = detach(this->shim().GetHorizontalScrollBarVisibility(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetHorizontalScrollBarVisibility(abi_arg_in element, Windows::UI::Xaml::Controls::ScrollBarVisibility horizontalScrollBarVisibility) noexcept override - { - try - { - this->shim().SetHorizontalScrollBarVisibility(*reinterpret_cast(&element), horizontalScrollBarVisibility); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalScrollBarVisibilityProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalScrollBarVisibilityProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVerticalScrollBarVisibility(abi_arg_in element, Windows::UI::Xaml::Controls::ScrollBarVisibility * verticalScrollBarVisibility) noexcept override - { - try - { - *verticalScrollBarVisibility = detach(this->shim().GetVerticalScrollBarVisibility(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetVerticalScrollBarVisibility(abi_arg_in element, Windows::UI::Xaml::Controls::ScrollBarVisibility verticalScrollBarVisibility) noexcept override - { - try - { - this->shim().SetVerticalScrollBarVisibility(*reinterpret_cast(&element), verticalScrollBarVisibility); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHorizontalRailEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsHorizontalRailEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsHorizontalRailEnabled(abi_arg_in element, bool * isHorizontalRailEnabled) noexcept override - { - try - { - *isHorizontalRailEnabled = detach(this->shim().GetIsHorizontalRailEnabled(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsHorizontalRailEnabled(abi_arg_in element, bool isHorizontalRailEnabled) noexcept override - { - try - { - this->shim().SetIsHorizontalRailEnabled(*reinterpret_cast(&element), isHorizontalRailEnabled); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVerticalRailEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsVerticalRailEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsVerticalRailEnabled(abi_arg_in element, bool * isVerticalRailEnabled) noexcept override - { - try - { - *isVerticalRailEnabled = detach(this->shim().GetIsVerticalRailEnabled(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsVerticalRailEnabled(abi_arg_in element, bool isVerticalRailEnabled) noexcept override - { - try - { - this->shim().SetIsVerticalRailEnabled(*reinterpret_cast(&element), isVerticalRailEnabled); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsHorizontalScrollChainingEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsHorizontalScrollChainingEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsHorizontalScrollChainingEnabled(abi_arg_in element, bool * isHorizontalScrollChainingEnabled) noexcept override - { - try - { - *isHorizontalScrollChainingEnabled = detach(this->shim().GetIsHorizontalScrollChainingEnabled(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsHorizontalScrollChainingEnabled(abi_arg_in element, bool isHorizontalScrollChainingEnabled) noexcept override - { - try - { - this->shim().SetIsHorizontalScrollChainingEnabled(*reinterpret_cast(&element), isHorizontalScrollChainingEnabled); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVerticalScrollChainingEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsVerticalScrollChainingEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsVerticalScrollChainingEnabled(abi_arg_in element, bool * isVerticalScrollChainingEnabled) noexcept override - { - try - { - *isVerticalScrollChainingEnabled = detach(this->shim().GetIsVerticalScrollChainingEnabled(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsVerticalScrollChainingEnabled(abi_arg_in element, bool isVerticalScrollChainingEnabled) noexcept override - { - try - { - this->shim().SetIsVerticalScrollChainingEnabled(*reinterpret_cast(&element), isVerticalScrollChainingEnabled); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomChainingEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomChainingEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsZoomChainingEnabled(abi_arg_in element, bool * isZoomChainingEnabled) noexcept override - { - try - { - *isZoomChainingEnabled = detach(this->shim().GetIsZoomChainingEnabled(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsZoomChainingEnabled(abi_arg_in element, bool isZoomChainingEnabled) noexcept override - { - try - { - this->shim().SetIsZoomChainingEnabled(*reinterpret_cast(&element), isZoomChainingEnabled); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsScrollInertiaEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsScrollInertiaEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsScrollInertiaEnabled(abi_arg_in element, bool * isScrollInertiaEnabled) noexcept override - { - try - { - *isScrollInertiaEnabled = detach(this->shim().GetIsScrollInertiaEnabled(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsScrollInertiaEnabled(abi_arg_in element, bool isScrollInertiaEnabled) noexcept override - { - try - { - this->shim().SetIsScrollInertiaEnabled(*reinterpret_cast(&element), isScrollInertiaEnabled); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomInertiaEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomInertiaEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsZoomInertiaEnabled(abi_arg_in element, bool * isZoomInertiaEnabled) noexcept override - { - try - { - *isZoomInertiaEnabled = detach(this->shim().GetIsZoomInertiaEnabled(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsZoomInertiaEnabled(abi_arg_in element, bool isZoomInertiaEnabled) noexcept override - { - try - { - this->shim().SetIsZoomInertiaEnabled(*reinterpret_cast(&element), isZoomInertiaEnabled); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalScrollModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalScrollModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetHorizontalScrollMode(abi_arg_in element, Windows::UI::Xaml::Controls::ScrollMode * horizontalScrollMode) noexcept override - { - try - { - *horizontalScrollMode = detach(this->shim().GetHorizontalScrollMode(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetHorizontalScrollMode(abi_arg_in element, Windows::UI::Xaml::Controls::ScrollMode horizontalScrollMode) noexcept override - { - try - { - this->shim().SetHorizontalScrollMode(*reinterpret_cast(&element), horizontalScrollMode); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalScrollModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalScrollModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVerticalScrollMode(abi_arg_in element, Windows::UI::Xaml::Controls::ScrollMode * verticalScrollMode) noexcept override - { - try - { - *verticalScrollMode = detach(this->shim().GetVerticalScrollMode(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetVerticalScrollMode(abi_arg_in element, Windows::UI::Xaml::Controls::ScrollMode verticalScrollMode) noexcept override - { - try - { - this->shim().SetVerticalScrollMode(*reinterpret_cast(&element), verticalScrollMode); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetZoomMode(abi_arg_in element, Windows::UI::Xaml::Controls::ZoomMode * zoomMode) noexcept override - { - try - { - *zoomMode = detach(this->shim().GetZoomMode(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetZoomMode(abi_arg_in element, Windows::UI::Xaml::Controls::ZoomMode zoomMode) noexcept override - { - try - { - this->shim().SetZoomMode(*reinterpret_cast(&element), zoomMode); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDeferredScrollingEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsDeferredScrollingEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsDeferredScrollingEnabled(abi_arg_in element, bool * isDeferredScrollingEnabled) noexcept override - { - try - { - *isDeferredScrollingEnabled = detach(this->shim().GetIsDeferredScrollingEnabled(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetIsDeferredScrollingEnabled(abi_arg_in element, bool isDeferredScrollingEnabled) noexcept override - { - try - { - this->shim().SetIsDeferredScrollingEnabled(*reinterpret_cast(&element), isDeferredScrollingEnabled); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BringIntoViewOnFocusChangeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BringIntoViewOnFocusChangeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetBringIntoViewOnFocusChange(abi_arg_in element, bool * bringIntoViewOnFocusChange) noexcept override - { - try - { - *bringIntoViewOnFocusChange = detach(this->shim().GetBringIntoViewOnFocusChange(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetBringIntoViewOnFocusChange(abi_arg_in element, bool bringIntoViewOnFocusChange) noexcept override - { - try - { - this->shim().SetBringIntoViewOnFocusChange(*reinterpret_cast(&element), bringIntoViewOnFocusChange); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TopLeftHeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TopLeftHeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LeftHeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LeftHeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TopHeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TopHeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HorizontalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomFactor(float * value) noexcept override - { - try - { - *value = detach(this->shim().ZoomFactor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsIntermediate(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIntermediate()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_NextView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NextView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FinalView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FinalView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsInertial(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsInertial()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SearchHistoryEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().SearchHistoryEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SearchHistoryEnabled(bool value) noexcept override - { - try - { - this->shim().SearchHistoryEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SearchHistoryContext(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SearchHistoryContext()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SearchHistoryContext(abi_arg_in value) noexcept override - { - try - { - this->shim().SearchHistoryContext(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaceholderText(abi_arg_in value) noexcept override - { - try - { - this->shim().PlaceholderText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QueryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_QueryText(abi_arg_in value) noexcept override - { - try - { - this->shim().QueryText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusOnKeyboardInput(bool * value) noexcept override - { - try - { - *value = detach(this->shim().FocusOnKeyboardInput()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FocusOnKeyboardInput(bool value) noexcept override - { - try - { - this->shim().FocusOnKeyboardInput(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChooseSuggestionOnEnter(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ChooseSuggestionOnEnter()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ChooseSuggestionOnEnter(bool value) noexcept override - { - try - { - this->shim().ChooseSuggestionOnEnter(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_QueryChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().QueryChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_QueryChanged(event_token token) noexcept override - { - try - { - this->shim().QueryChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SuggestionsRequested(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SuggestionsRequested(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SuggestionsRequested(event_token token) noexcept override - { - try - { - this->shim().SuggestionsRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_QuerySubmitted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().QuerySubmitted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_QuerySubmitted(event_token token) noexcept override - { - try - { - this->shim().QuerySubmitted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ResultSuggestionChosen(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ResultSuggestionChosen(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ResultSuggestionChosen(event_token token) noexcept override - { - try - { - this->shim().ResultSuggestionChosen(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PrepareForFocusOnKeyboardInput(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PrepareForFocusOnKeyboardInput(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PrepareForFocusOnKeyboardInput(event_token token) noexcept override - { - try - { - this->shim().PrepareForFocusOnKeyboardInput(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetLocalContentSuggestionSettings(abi_arg_in settings) noexcept override - { - try - { - this->shim().SetLocalContentSuggestionSettings(*reinterpret_cast(&settings)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinguisticDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LinguisticDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinguisticDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LinguisticDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyModifiers(Windows::System::VirtualKeyModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().KeyModifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Tag(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Tag()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_KeyModifiers(Windows::System::VirtualKeyModifiers * value) noexcept override - { - try - { - *value = detach(this->shim().KeyModifiers()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SearchHistoryEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SearchHistoryEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SearchHistoryContextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SearchHistoryContextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_QueryTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FocusOnKeyboardInputProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FocusOnKeyboardInputProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ChooseSuggestionOnEnterProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ChooseSuggestionOnEnterProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_QueryText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().QueryText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Language(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Language()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LinguisticDetails(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LinguisticDetails()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Request(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Request()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AddedSections(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AddedSections()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemovedSections(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RemovedSections()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AddedItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AddedItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RemovedItems(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().RemovedItems()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithRemovedItemsAndAddedItems(abi_arg_in> removedItems, abi_arg_in> addedItems, abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithRemovedItemsAndAddedItems(*reinterpret_cast *>(&removedItems), *reinterpret_cast *>(&addedItems), *reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ZoomedInView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomedInView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ZoomedInView(abi_arg_in value) noexcept override - { - try - { - this->shim().ZoomedInView(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomedOutView(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomedOutView()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ZoomedOutView(abi_arg_in value) noexcept override - { - try - { - this->shim().ZoomedOutView(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomedInViewActive(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomedInViewActive()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsZoomedInViewActive(bool value) noexcept override - { - try - { - this->shim().IsZoomedInViewActive(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanChangeViews(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanChangeViews()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CanChangeViews(bool value) noexcept override - { - try - { - this->shim().CanChangeViews(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ViewChangeStarted(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ViewChangeStarted(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ViewChangeStarted(event_token token) noexcept override - { - try - { - this->shim().ViewChangeStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ViewChangeCompleted(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ViewChangeCompleted(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ViewChangeCompleted(event_token token) noexcept override - { - try - { - this->shim().ViewChangeCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ToggleActiveView() noexcept override - { - try - { - this->shim().ToggleActiveView(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomOutButtonEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomOutButtonEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsZoomOutButtonEnabled(bool value) noexcept override - { - try - { - this->shim().IsZoomOutButtonEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SemanticZoomOwner(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SemanticZoomOwner()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SemanticZoomOwner(abi_arg_in value) noexcept override - { - try - { - this->shim().SemanticZoomOwner(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsActiveView(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsActiveView()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsActiveView(bool value) noexcept override - { - try - { - this->shim().IsActiveView(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomedInView(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomedInView()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsZoomedInView(bool value) noexcept override - { - try - { - this->shim().IsZoomedInView(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InitializeViewChange() noexcept override - { - try - { - this->shim().InitializeViewChange(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CompleteViewChange() noexcept override - { - try - { - this->shim().CompleteViewChange(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_MakeVisible(abi_arg_in item) noexcept override - { - try - { - this->shim().MakeVisible(*reinterpret_cast(&item)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartViewChangeFrom(abi_arg_in source, abi_arg_in destination) noexcept override - { - try - { - this->shim().StartViewChangeFrom(*reinterpret_cast(&source), *reinterpret_cast(&destination)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_StartViewChangeTo(abi_arg_in source, abi_arg_in destination) noexcept override - { - try - { - this->shim().StartViewChangeTo(*reinterpret_cast(&source), *reinterpret_cast(&destination)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CompleteViewChangeFrom(abi_arg_in source, abi_arg_in destination) noexcept override - { - try - { - this->shim().CompleteViewChangeFrom(*reinterpret_cast(&source), *reinterpret_cast(&destination)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CompleteViewChangeTo(abi_arg_in source, abi_arg_in destination) noexcept override - { - try - { - this->shim().CompleteViewChangeTo(*reinterpret_cast(&source), *reinterpret_cast(&destination)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Item(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Item()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Item(abi_arg_in value) noexcept override - { - try - { - this->shim().Item(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Bounds(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Bounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Bounds(abi_arg_in value) noexcept override - { - try - { - this->shim().Bounds(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ZoomedInViewProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomedInViewProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ZoomedOutViewProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ZoomedOutViewProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomedInViewActiveProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomedInViewActiveProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanChangeViewsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanChangeViewsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsZoomOutButtonEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsZoomOutButtonEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsSourceZoomedInView(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSourceZoomedInView()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSourceZoomedInView(bool value) noexcept override - { - try - { - this->shim().IsSourceZoomedInView(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SourceItem(abi_arg_in value) noexcept override - { - try - { - this->shim().SourceItem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DestinationItem(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DestinationItem()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DestinationItem(abi_arg_in value) noexcept override - { - try - { - this->shim().DestinationItem(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Title(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Title()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Title(abi_arg_in value) noexcept override - { - try - { - this->shim().Title(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderForeground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderForeground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderForeground(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderForeground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IconSource(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IconSource()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IconSource(abi_arg_in value) noexcept override - { - try - { - this->shim().IconSource(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_BackClick(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().BackClick(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_BackClick(event_token token) noexcept override - { - try - { - this->shim().BackClick(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Show() noexcept override - { - try - { - this->shim().Show(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowIndependent() noexcept override - { - try - { - this->shim().ShowIndependent(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Hide() noexcept override - { - try - { - this->shim().Hide(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TitleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TitleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IconSourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IconSourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IntermediateValue(double * value) noexcept override - { - try - { - *value = detach(this->shim().IntermediateValue()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IntermediateValue(double value) noexcept override - { - try - { - this->shim().IntermediateValue(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StepFrequency(double * value) noexcept override - { - try - { - *value = detach(this->shim().StepFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StepFrequency(double value) noexcept override - { - try - { - this->shim().StepFrequency(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SnapsTo(Windows::UI::Xaml::Controls::Primitives::SliderSnapsTo * value) noexcept override - { - try - { - *value = detach(this->shim().SnapsTo()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SnapsTo(Windows::UI::Xaml::Controls::Primitives::SliderSnapsTo value) noexcept override - { - try - { - this->shim().SnapsTo(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TickFrequency(double * value) noexcept override - { - try - { - *value = detach(this->shim().TickFrequency()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TickFrequency(double value) noexcept override - { - try - { - this->shim().TickFrequency(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TickPlacement(Windows::UI::Xaml::Controls::Primitives::TickPlacement * value) noexcept override - { - try - { - *value = detach(this->shim().TickPlacement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TickPlacement(Windows::UI::Xaml::Controls::Primitives::TickPlacement value) noexcept override - { - try - { - this->shim().TickPlacement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::UI::Xaml::Controls::Orientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::UI::Xaml::Controls::Orientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDirectionReversed(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsDirectionReversed()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsDirectionReversed(bool value) noexcept override - { - try - { - this->shim().IsDirectionReversed(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsThumbToolTipEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsThumbToolTipEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsThumbToolTipEnabled(bool value) noexcept override - { - try - { - this->shim().IsThumbToolTipEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ThumbToolTipValueConverter(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ThumbToolTipValueConverter()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ThumbToolTipValueConverter(abi_arg_in value) noexcept override - { - try - { - this->shim().ThumbToolTipValueConverter(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IntermediateValueProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IntermediateValueProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StepFrequencyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StepFrequencyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SnapsToProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SnapsToProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TickFrequencyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TickFrequencyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TickPlacementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TickPlacementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OrientationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsDirectionReversedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsDirectionReversedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsThumbToolTipEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsThumbToolTipEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ThumbToolTipValueConverterProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ThumbToolTipValueConverterProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Content(abi_arg_in value) noexcept override - { - try - { - this->shim().Content(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Pane(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Pane()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Pane(abi_arg_in value) noexcept override - { - try - { - this->shim().Pane(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPaneOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsPaneOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsPaneOpen(bool value) noexcept override - { - try - { - this->shim().IsPaneOpen(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OpenPaneLength(double * value) noexcept override - { - try - { - *value = detach(this->shim().OpenPaneLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OpenPaneLength(double value) noexcept override - { - try - { - this->shim().OpenPaneLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompactPaneLength(double * value) noexcept override - { - try - { - *value = detach(this->shim().CompactPaneLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CompactPaneLength(double value) noexcept override - { - try - { - this->shim().CompactPaneLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PanePlacement(Windows::UI::Xaml::Controls::SplitViewPanePlacement * value) noexcept override - { - try - { - *value = detach(this->shim().PanePlacement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PanePlacement(Windows::UI::Xaml::Controls::SplitViewPanePlacement value) noexcept override - { - try - { - this->shim().PanePlacement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayMode(Windows::UI::Xaml::Controls::SplitViewDisplayMode * value) noexcept override - { - try - { - *value = detach(this->shim().DisplayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DisplayMode(Windows::UI::Xaml::Controls::SplitViewDisplayMode value) noexcept override - { - try - { - this->shim().DisplayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaneBackground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaneBackground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PaneBackground(abi_arg_in value) noexcept override - { - try - { - this->shim().PaneBackground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PaneClosing(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PaneClosing(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PaneClosing(event_token token) noexcept override - { - try - { - this->shim().PaneClosing(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PaneClosed(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PaneClosed(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PaneClosed(event_token token) noexcept override - { - try - { - this->shim().PaneClosed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode * value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) noexcept override - { - try - { - this->shim().LightDismissOverlayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Cancel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Cancel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Cancel(bool value) noexcept override - { - try - { - this->shim().Cancel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaneProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaneProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsPaneOpenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsPaneOpenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OpenPaneLengthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OpenPaneLengthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompactPaneLengthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompactPaneLengthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PanePlacementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PanePlacementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DisplayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DisplayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateSettingsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettingsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaneBackgroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaneBackgroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreScrollSnapPointsRegular(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AreScrollSnapPointsRegular()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AreScrollSnapPointsRegular(bool value) noexcept override - { - try - { - this->shim().AreScrollSnapPointsRegular(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::UI::Xaml::Controls::Orientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::UI::Xaml::Controls::Orientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BorderBrush(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrush()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderBrush(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderBrush(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThickness(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThickness()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_BorderThickness(abi_arg_in value) noexcept override - { - try - { - this->shim().BorderThickness(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CornerRadius(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CornerRadius()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CornerRadius(abi_arg_in value) noexcept override - { - try - { - this->shim().CornerRadius(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Padding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Padding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Padding(abi_arg_in value) noexcept override - { - try - { - this->shim().Padding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreScrollSnapPointsRegularProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AreScrollSnapPointsRegularProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OrientationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_BorderBrushProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderBrushProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BorderThicknessProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().BorderThicknessProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CornerRadiusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CornerRadiusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SelectStyle(abi_arg_in item, abi_arg_in container, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().SelectStyle(*reinterpret_cast(&item), *reinterpret_cast(&container))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_SelectStyleCore(abi_arg_in item, abi_arg_in container, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().SelectStyleCore(*reinterpret_cast(&item), *reinterpret_cast(&container))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateCoreIndependentInputSource(Windows::UI::Core::CoreInputDeviceTypes deviceTypes, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateCoreIndependentInputSource(deviceTypes)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CompositionScaleX(float * value) noexcept override - { - try - { - *value = detach(this->shim().CompositionScaleX()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompositionScaleY(float * value) noexcept override - { - try - { - *value = detach(this->shim().CompositionScaleY()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CompositionScaleChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CompositionScaleChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CompositionScaleChanged(event_token token) noexcept override - { - try - { - this->shim().CompositionScaleChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CreateCoreIndependentInputSource(Windows::UI::Core::CoreInputDeviceTypes deviceTypes, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CreateCoreIndependentInputSource(deviceTypes)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CompositionScaleXProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompositionScaleXProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CompositionScaleYProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CompositionScaleYProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Symbol(Windows::UI::Xaml::Controls::Symbol * value) noexcept override - { - try - { - *value = detach(this->shim().Symbol()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Symbol(Windows::UI::Xaml::Controls::Symbol value) noexcept override - { - try - { - this->shim().Symbol(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithSymbol(Windows::UI::Xaml::Controls::Symbol symbol, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithSymbol(symbol)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SymbolProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SymbolProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FontSize(double * value) noexcept override - { - try - { - *value = detach(this->shim().FontSize()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontSize(double value) noexcept override - { - try - { - this->shim().FontSize(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontFamily(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamily()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontFamily(abi_arg_in value) noexcept override - { - try - { - this->shim().FontFamily(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontWeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontWeight(abi_arg_in value) noexcept override - { - try - { - this->shim().FontWeight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyle(Windows::UI::Text::FontStyle * value) noexcept override - { - try - { - *value = detach(this->shim().FontStyle()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontStyle(Windows::UI::Text::FontStyle value) noexcept override - { - try - { - this->shim().FontStyle(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStretch(Windows::UI::Text::FontStretch * value) noexcept override - { - try - { - *value = detach(this->shim().FontStretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_FontStretch(Windows::UI::Text::FontStretch value) noexcept override - { - try - { - this->shim().FontStretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacterSpacing(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().CharacterSpacing()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_CharacterSpacing(int32_t value) noexcept override - { - try - { - this->shim().CharacterSpacing(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Foreground(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Foreground()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Foreground(abi_arg_in value) noexcept override - { - try - { - this->shim().Foreground(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextWrapping(Windows::UI::Xaml::TextWrapping * value) noexcept override - { - try - { - *value = detach(this->shim().TextWrapping()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextWrapping(Windows::UI::Xaml::TextWrapping value) noexcept override - { - try - { - this->shim().TextWrapping(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextTrimming(Windows::UI::Xaml::TextTrimming * value) noexcept override - { - try - { - *value = detach(this->shim().TextTrimming()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextTrimming(Windows::UI::Xaml::TextTrimming value) noexcept override - { - try - { - this->shim().TextTrimming(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextAlignment(Windows::UI::Xaml::TextAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().TextAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextAlignment(Windows::UI::Xaml::TextAlignment value) noexcept override - { - try - { - this->shim().TextAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Inlines(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().Inlines()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Padding(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Padding()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Padding(abi_arg_in value) noexcept override - { - try - { - this->shim().Padding(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().LineHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LineHeight(double value) noexcept override - { - try - { - this->shim().LineHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineStackingStrategy(Windows::UI::Xaml::LineStackingStrategy * value) noexcept override - { - try - { - *value = detach(this->shim().LineStackingStrategy()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LineStackingStrategy(Windows::UI::Xaml::LineStackingStrategy value) noexcept override - { - try - { - this->shim().LineStackingStrategy(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTextSelectionEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTextSelectionEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTextSelectionEnabled(bool value) noexcept override - { - try - { - this->shim().IsTextSelectionEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentStart(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentStart()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ContentEnd(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentEnd()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionStart(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionStart()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionEnd(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionEnd()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_BaselineOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().BaselineOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SelectionChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SelectionChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectionChanged(event_token token) noexcept override - { - try - { - this->shim().SelectionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContextMenuOpening(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ContextMenuOpening(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContextMenuOpening(event_token token) noexcept override - { - try - { - this->shim().ContextMenuOpening(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectAll() noexcept override - { - try - { - this->shim().SelectAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Select(abi_arg_in start, abi_arg_in end) noexcept override - { - try - { - this->shim().Select(*reinterpret_cast(&start), *reinterpret_cast(&end)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Focus(Windows::UI::Xaml::FocusState value, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Focus(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectionHighlightColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionHighlightColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionHighlightColor(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectionHighlightColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLines(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxLines()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxLines(int32_t value) noexcept override - { - try - { - this->shim().MaxLines(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextLineBounds(Windows::UI::Xaml::TextLineBounds * value) noexcept override - { - try - { - *value = detach(this->shim().TextLineBounds()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextLineBounds(Windows::UI::Xaml::TextLineBounds value) noexcept override - { - try - { - this->shim().TextLineBounds(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OpticalMarginAlignment(Windows::UI::Xaml::OpticalMarginAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().OpticalMarginAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OpticalMarginAlignment(Windows::UI::Xaml::OpticalMarginAlignment value) noexcept override - { - try - { - this->shim().OpticalMarginAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsColorFontEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsColorFontEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsColorFontEnabled(bool value) noexcept override - { - try - { - this->shim().IsColorFontEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextReadingOrder(Windows::UI::Xaml::TextReadingOrder * value) noexcept override - { - try - { - *value = detach(this->shim().TextReadingOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextReadingOrder(Windows::UI::Xaml::TextReadingOrder value) noexcept override - { - try - { - this->shim().TextReadingOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTextScaleFactorEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTextScaleFactorEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept override - { - try - { - this->shim().IsTextScaleFactorEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetAlphaMask(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetAlphaMask()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_FontSizeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontSizeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontFamilyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontFamilyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontWeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontWeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStyleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontStyleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_FontStretchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().FontStretchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CharacterSpacingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CharacterSpacingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ForegroundProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ForegroundProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextWrappingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextWrappingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextTrimmingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextTrimmingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PaddingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PaddingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LineHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_LineStackingStrategyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LineStackingStrategyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTextSelectionEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTextSelectionEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SelectionHighlightColorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionHighlightColorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLinesProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxLinesProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextLineBoundsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextLineBoundsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OpticalMarginAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OpticalMarginAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsColorFontEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsColorFontEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextReadingOrderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextReadingOrderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsTextScaleFactorEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTextScaleFactorEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Text(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Text()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Text(abi_arg_in value) noexcept override - { - try - { - this->shim().Text(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectedText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectedText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectedText(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectedText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionLength(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectionLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionLength(int32_t value) noexcept override - { - try - { - this->shim().SelectionLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionStart(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().SelectionStart()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionStart(int32_t value) noexcept override - { - try - { - this->shim().SelectionStart(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLength(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaxLength()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaxLength(int32_t value) noexcept override - { - try - { - this->shim().MaxLength(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsReadOnly(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnly()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsReadOnly(bool value) noexcept override - { - try - { - this->shim().IsReadOnly(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AcceptsReturn(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AcceptsReturn()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AcceptsReturn(bool value) noexcept override - { - try - { - this->shim().AcceptsReturn(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextAlignment(Windows::UI::Xaml::TextAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().TextAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextAlignment(Windows::UI::Xaml::TextAlignment value) noexcept override - { - try - { - this->shim().TextAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextWrapping(Windows::UI::Xaml::TextWrapping * value) noexcept override - { - try - { - *value = detach(this->shim().TextWrapping()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextWrapping(Windows::UI::Xaml::TextWrapping value) noexcept override - { - try - { - this->shim().TextWrapping(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSpellCheckEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSpellCheckEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsSpellCheckEnabled(bool value) noexcept override - { - try - { - this->shim().IsSpellCheckEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTextPredictionEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsTextPredictionEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsTextPredictionEnabled(bool value) noexcept override - { - try - { - this->shim().IsTextPredictionEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputScope(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputScope()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_InputScope(abi_arg_in value) noexcept override - { - try - { - this->shim().InputScope(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TextChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextChanged(event_token token) noexcept override - { - try - { - this->shim().TextChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_SelectionChanged(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().SelectionChanged(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_SelectionChanged(event_token token) noexcept override - { - try - { - this->shim().SelectionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContextMenuOpening(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ContextMenuOpening(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContextMenuOpening(event_token token) noexcept override - { - try - { - this->shim().ContextMenuOpening(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Select(int32_t start, int32_t length) noexcept override - { - try - { - this->shim().Select(start, length); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SelectAll() noexcept override - { - try - { - this->shim().SelectAll(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRectFromCharacterIndex(int32_t charIndex, bool trailingEdge, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetRectFromCharacterIndex(charIndex, trailingEdge)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderText(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderText()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlaceholderText(abi_arg_in value) noexcept override - { - try - { - this->shim().PlaceholderText(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionHighlightColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionHighlightColor()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SelectionHighlightColor(abi_arg_in value) noexcept override - { - try - { - this->shim().SelectionHighlightColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreventKeyboardDisplayOnProgrammaticFocus(bool * value) noexcept override - { - try - { - *value = detach(this->shim().PreventKeyboardDisplayOnProgrammaticFocus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PreventKeyboardDisplayOnProgrammaticFocus(bool value) noexcept override - { - try - { - this->shim().PreventKeyboardDisplayOnProgrammaticFocus(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsColorFontEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsColorFontEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsColorFontEnabled(bool value) noexcept override - { - try - { - this->shim().IsColorFontEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Paste(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Paste(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Paste(event_token token) noexcept override - { - try - { - this->shim().Paste(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall add_TextCompositionStarted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TextCompositionStarted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextCompositionStarted(event_token token) noexcept override - { - try - { - this->shim().TextCompositionStarted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextCompositionChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TextCompositionChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextCompositionChanged(event_token token) noexcept override - { - try - { - this->shim().TextCompositionChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextCompositionEnded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TextCompositionEnded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextCompositionEnded(event_token token) noexcept override - { - try - { - this->shim().TextCompositionEnded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextReadingOrder(Windows::UI::Xaml::TextReadingOrder * value) noexcept override - { - try - { - *value = detach(this->shim().TextReadingOrder()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_TextReadingOrder(Windows::UI::Xaml::TextReadingOrder value) noexcept override - { - try - { - this->shim().TextReadingOrder(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DesiredCandidateWindowAlignment(Windows::UI::Xaml::Controls::CandidateWindowAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().DesiredCandidateWindowAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DesiredCandidateWindowAlignment(Windows::UI::Xaml::Controls::CandidateWindowAlignment value) noexcept override - { - try - { - this->shim().DesiredCandidateWindowAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CandidateWindowBoundsChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CandidateWindowBoundsChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CandidateWindowBoundsChanged(event_token token) noexcept override - { - try - { - this->shim().CandidateWindowBoundsChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TextChanging(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TextChanging(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TextChanging(event_token token) noexcept override - { - try - { - this->shim().TextChanging(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_GetLinguisticAlternativesAsync(abi_arg_out>> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().GetLinguisticAlternativesAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_TextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaxLengthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaxLengthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsReadOnlyProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsReadOnlyProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AcceptsReturnProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AcceptsReturnProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextWrappingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextWrappingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSpellCheckEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsSpellCheckEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsTextPredictionEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsTextPredictionEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_InputScopeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().InputScopeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlaceholderTextProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlaceholderTextProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SelectionHighlightColorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SelectionHighlightColorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PreventKeyboardDisplayOnProgrammaticFocusProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PreventKeyboardDisplayOnProgrammaticFocusProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsColorFontEnabledProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsColorFontEnabledProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DesiredCandidateWindowAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DesiredCandidateWindowAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TextReadingOrderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TextReadingOrderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StartIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Length(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StartIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Length(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StartIndex(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().StartIndex()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Length(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Length()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OldTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClockIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClockIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClockIdentifier(abi_arg_in value) noexcept override - { - try - { - this->shim().ClockIdentifier(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinuteIncrement(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinuteIncrement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinuteIncrement(int32_t value) noexcept override - { - try - { - this->shim().MinuteIncrement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Time(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Time()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Time(abi_arg_in value) noexcept override - { - try - { - this->shim().Time(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TimeChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TimeChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TimeChanged(event_token token) noexcept override - { - try - { - this->shim().TimeChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode * value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) noexcept override - { - try - { - this->shim().LightDismissOverlayMode(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClockIdentifier(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClockIdentifier()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ClockIdentifier(abi_arg_in value) noexcept override - { - try - { - this->shim().ClockIdentifier(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Time(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Time()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Time(abi_arg_in value) noexcept override - { - try - { - this->shim().Time(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinuteIncrement(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MinuteIncrement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MinuteIncrement(int32_t value) noexcept override - { - try - { - this->shim().MinuteIncrement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_TimePicked(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().TimePicked(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_TimePicked(event_token token) noexcept override - { - try - { - this->shim().TimePicked(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ShowAtAsync(abi_arg_in target, abi_arg_out>> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ShowAtAsync(*reinterpret_cast(&target))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ClockIdentifierProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClockIdentifierProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinuteIncrementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinuteIncrementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ClockIdentifierProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ClockIdentifierProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MinuteIncrementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MinuteIncrementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TimeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TimeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_LightDismissOverlayModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().LightDismissOverlayModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_OldTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OldTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_NewTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().NewTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsChecked(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsChecked()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsChecked(bool value) noexcept override - { - try - { - this->shim().IsChecked(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsCheckedProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsCheckedProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsOn(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOn()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOn(bool value) noexcept override - { - try - { - this->shim().IsOn(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Header(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Header()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Header(abi_arg_in value) noexcept override - { - try - { - this->shim().Header(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HeaderTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().HeaderTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OnContent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OnContent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OnContent(abi_arg_in value) noexcept override - { - try - { - this->shim().OnContent(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OnContentTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OnContentTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OnContentTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().OnContentTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OffContent(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OffContent()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OffContent(abi_arg_in value) noexcept override - { - try - { - this->shim().OffContent(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OffContentTemplate(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OffContentTemplate()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_OffContentTemplate(abi_arg_in value) noexcept override - { - try - { - this->shim().OffContentTemplate(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Toggled(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Toggled(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Toggled(event_token token) noexcept override - { - try - { - this->shim().Toggled(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnToggled() noexcept override - { - try - { - this->shim().OnToggled(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnOnContentChanged(abi_arg_in oldContent, abi_arg_in newContent) noexcept override - { - try - { - this->shim().OnOnContentChanged(*reinterpret_cast(&oldContent), *reinterpret_cast(&newContent)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnOffContentChanged(abi_arg_in oldContent, abi_arg_in newContent) noexcept override - { - try - { - this->shim().OnOffContentChanged(*reinterpret_cast(&oldContent), *reinterpret_cast(&newContent)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnHeaderChanged(abi_arg_in oldContent, abi_arg_in newContent) noexcept override - { - try - { - this->shim().OnHeaderChanged(*reinterpret_cast(&oldContent), *reinterpret_cast(&newContent)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsOnProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsOnProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HeaderTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HeaderTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OnContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OnContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OnContentTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OnContentTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OffContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OffContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OffContentTemplateProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OffContentTemplateProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HorizontalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalOffset(double value) noexcept override - { - try - { - this->shim().HorizontalOffset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOpen(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsOpen()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsOpen(bool value) noexcept override - { - try - { - this->shim().IsOpen(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Placement(Windows::UI::Xaml::Controls::Primitives::PlacementMode * value) noexcept override - { - try - { - *value = detach(this->shim().Placement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Placement(Windows::UI::Xaml::Controls::Primitives::PlacementMode value) noexcept override - { - try - { - this->shim().Placement(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlacementTarget(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlacementTarget()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_PlacementTarget(abi_arg_in value) noexcept override - { - try - { - this->shim().PlacementTarget(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalOffset(double * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalOffset()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalOffset(double value) noexcept override - { - try - { - this->shim().VerticalOffset(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_TemplateSettings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().TemplateSettings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Closed(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Closed(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Closed(event_token token) noexcept override - { - try - { - this->shim().Closed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_Opened(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().Opened(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_Opened(event_token token) noexcept override - { - try - { - this->shim().Opened(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PlacementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlacementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPlacement(abi_arg_in element, Windows::UI::Xaml::Controls::Primitives::PlacementMode * value) noexcept override - { - try - { - *value = detach(this->shim().GetPlacement(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPlacement(abi_arg_in element, Windows::UI::Xaml::Controls::Primitives::PlacementMode value) noexcept override - { - try - { - this->shim().SetPlacement(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlacementTargetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlacementTargetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetPlacementTarget(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetPlacementTarget(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetPlacementTarget(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetPlacementTarget(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ToolTipProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ToolTipProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetToolTip(abi_arg_in element, abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().GetToolTip(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetToolTip(abi_arg_in element, abi_arg_in value) noexcept override - { - try - { - this->shim().SetToolTip(*reinterpret_cast(&element), *reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_HorizontalOffsetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalOffsetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsOpenProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsOpenProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlacementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlacementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PlacementTargetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PlacementTargetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalOffsetProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalOffsetProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_Move(uint32_t oldIndex, uint32_t newIndex) noexcept override - { - try - { - this->shim().Move(oldIndex, newIndex); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Content(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Content()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Content(abi_arg_in value) noexcept override - { - try - { - this->shim().Content(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstance(abi_arg_in outer, abi_arg_out inner, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstance(*reinterpret_cast(&outer), *inner)); - return S_OK; - } - catch (...) - { - *inner = nullptr; - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ItemHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemHeight(double value) noexcept override - { - try - { - this->shim().ItemHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ItemWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemWidth(double value) noexcept override - { - try - { - this->shim().ItemWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::UI::Xaml::Controls::Orientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::UI::Xaml::Controls::Orientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalChildrenAlignment(Windows::UI::Xaml::HorizontalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalChildrenAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalChildrenAlignment(Windows::UI::Xaml::HorizontalAlignment value) noexcept override - { - try - { - this->shim().HorizontalChildrenAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalChildrenAlignment(Windows::UI::Xaml::VerticalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalChildrenAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalChildrenAlignment(Windows::UI::Xaml::VerticalAlignment value) noexcept override - { - try - { - this->shim().VerticalChildrenAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaximumRowsOrColumns(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaximumRowsOrColumns()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaximumRowsOrColumns(int32_t value) noexcept override - { - try - { - this->shim().MaximumRowsOrColumns(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OrientationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalChildrenAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalChildrenAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalChildrenAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalChildrenAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaximumRowsOrColumnsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaximumRowsOrColumnsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_RowSpanProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().RowSpanProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetRowSpan(abi_arg_in element, int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetRowSpan(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetRowSpan(abi_arg_in element, int32_t value) noexcept override - { - try - { - this->shim().SetRowSpan(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ColumnSpanProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ColumnSpanProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetColumnSpan(abi_arg_in element, int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().GetColumnSpan(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetColumnSpan(abi_arg_in element, int32_t value) noexcept override - { - try - { - this->shim().SetColumnSpan(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Child(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Child()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Child(abi_arg_in value) noexcept override - { - try - { - this->shim().Child(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Stretch(Windows::UI::Xaml::Media::Stretch * value) noexcept override - { - try - { - *value = detach(this->shim().Stretch()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Stretch(Windows::UI::Xaml::Media::Stretch value) noexcept override - { - try - { - this->shim().Stretch(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StretchDirection(Windows::UI::Xaml::Controls::StretchDirection * value) noexcept override - { - try - { - *value = detach(this->shim().StretchDirection()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StretchDirection(Windows::UI::Xaml::Controls::StretchDirection value) noexcept override - { - try - { - this->shim().StretchDirection(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_StretchProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StretchProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StretchDirectionProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().StretchDirectionProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemContainerGenerator(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemContainerGenerator()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnItemsChanged(abi_arg_in sender, abi_arg_in args) noexcept override - { - try - { - this->shim().OnItemsChanged(*reinterpret_cast(&sender), *reinterpret_cast(&args)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_OnClearChildren() noexcept override - { - try - { - this->shim().OnClearChildren(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BringIndexIntoView(int32_t index) noexcept override - { - try - { - this->shim().BringIndexIntoView(index); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_AddInternalChild(abi_arg_in child) noexcept override - { - try - { - this->shim().AddInternalChild(*reinterpret_cast(&child)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InsertInternalChild(int32_t index, abi_arg_in child) noexcept override - { - try - { - this->shim().InsertInternalChild(index, *reinterpret_cast(&child)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_RemoveInternalChildRange(int32_t index, int32_t range) noexcept override - { - try - { - this->shim().RemoveInternalChildRange(index, range); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreScrollSnapPointsRegular(bool * value) noexcept override - { - try - { - *value = detach(this->shim().AreScrollSnapPointsRegular()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AreScrollSnapPointsRegular(bool value) noexcept override - { - try - { - this->shim().AreScrollSnapPointsRegular(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::UI::Xaml::Controls::Orientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::UI::Xaml::Controls::Orientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_CleanUpVirtualizedItemEvent(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().CleanUpVirtualizedItemEvent(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_CleanUpVirtualizedItemEvent(event_token token) noexcept override - { - try - { - this->shim().CleanUpVirtualizedItemEvent(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_OnCleanUpVirtualizedItem(abi_arg_in e) noexcept override - { - try - { - this->shim().OnCleanUpVirtualizedItem(*reinterpret_cast(&e)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AreScrollSnapPointsRegularProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AreScrollSnapPointsRegularProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OrientationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VirtualizationModeProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VirtualizationModeProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetVirtualizationMode(abi_arg_in element, Windows::UI::Xaml::Controls::VirtualizationMode * value) noexcept override - { - try - { - *value = detach(this->shim().GetVirtualizationMode(*reinterpret_cast(&element))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetVirtualizationMode(abi_arg_in element, Windows::UI::Xaml::Controls::VirtualizationMode value) noexcept override - { - try - { - this->shim().SetVirtualizationMode(*reinterpret_cast(&element), value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsVirtualizingProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().IsVirtualizingProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GetIsVirtualizing(abi_arg_in o, bool * value) noexcept override - { - try - { - *value = detach(this->shim().GetIsVirtualizing(*reinterpret_cast(&o))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Source(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Source()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Source(abi_arg_in value) noexcept override - { - try - { - this->shim().Source(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowedScriptNotifyUris(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AllowedScriptNotifyUris()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_AllowedScriptNotifyUris(abi_arg_in> value) noexcept override - { - try - { - this->shim().AllowedScriptNotifyUris(*reinterpret_cast *>(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataTransferPackage(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataTransferPackage()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LoadCompleted(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LoadCompleted(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LoadCompleted(event_token token) noexcept override - { - try - { - this->shim().LoadCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ScriptNotify(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ScriptNotify(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ScriptNotify(event_token token) noexcept override - { - try - { - this->shim().ScriptNotify(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NavigationFailed(abi_arg_in value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NavigationFailed(*reinterpret_cast(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NavigationFailed(event_token token) noexcept override - { - try - { - this->shim().NavigationFailed(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InvokeScript(abi_arg_in scriptName, uint32_t __argumentsSize, abi_arg_in * arguments, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().InvokeScript(*reinterpret_cast(&scriptName), *reinterpret_cast(&arguments))); - return S_OK; - } - catch (...) - { - *arguments = nullptr; - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Navigate(abi_arg_in source) noexcept override - { - try - { - this->shim().Navigate(*reinterpret_cast(&source)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NavigateToString(abi_arg_in text) noexcept override - { - try - { - this->shim().NavigateToString(*reinterpret_cast(&text)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanGoBack(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanGoBack()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanGoForward(bool * value) noexcept override - { - try - { - *value = detach(this->shim().CanGoForward()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DocumentTitle(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DocumentTitle()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NavigationStarting(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NavigationStarting(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NavigationStarting(event_token token) noexcept override - { - try - { - this->shim().NavigationStarting(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContentLoading(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ContentLoading(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContentLoading(event_token token) noexcept override - { - try - { - this->shim().ContentLoading(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_DOMContentLoaded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().DOMContentLoaded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_DOMContentLoaded(event_token token) noexcept override - { - try - { - this->shim().DOMContentLoaded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GoForward() noexcept override - { - try - { - this->shim().GoForward(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_GoBack() noexcept override - { - try - { - this->shim().GoBack(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Refresh() noexcept override - { - try - { - this->shim().Refresh(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Stop() noexcept override - { - try - { - this->shim().Stop(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CapturePreviewToStreamAsync(abi_arg_in stream, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CapturePreviewToStreamAsync(*reinterpret_cast(&stream))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_InvokeScriptAsync(abi_arg_in scriptName, abi_arg_in> arguments, abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().InvokeScriptAsync(*reinterpret_cast(&scriptName), *reinterpret_cast *>(&arguments))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_CaptureSelectedContentToDataPackageAsync(abi_arg_out> returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().CaptureSelectedContentToDataPackageAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NavigateToLocalStreamUri(abi_arg_in source, abi_arg_in streamResolver) noexcept override - { - try - { - this->shim().NavigateToLocalStreamUri(*reinterpret_cast(&source), *reinterpret_cast(&streamResolver)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_BuildLocalStreamUri(abi_arg_in contentIdentifier, abi_arg_in relativePath, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().BuildLocalStreamUri(*reinterpret_cast(&contentIdentifier), *reinterpret_cast(&relativePath))); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultBackgroundColor(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultBackgroundColor()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_DefaultBackgroundColor(abi_arg_in value) noexcept override - { - try - { - this->shim().DefaultBackgroundColor(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NavigationCompleted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NavigationCompleted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NavigationCompleted(event_token token) noexcept override - { - try - { - this->shim().NavigationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FrameNavigationStarting(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FrameNavigationStarting(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FrameNavigationStarting(event_token token) noexcept override - { - try - { - this->shim().FrameNavigationStarting(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FrameContentLoading(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FrameContentLoading(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FrameContentLoading(event_token token) noexcept override - { - try - { - this->shim().FrameContentLoading(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FrameDOMContentLoaded(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FrameDOMContentLoaded(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FrameDOMContentLoaded(event_token token) noexcept override - { - try - { - this->shim().FrameDOMContentLoaded(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_FrameNavigationCompleted(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().FrameNavigationCompleted(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_FrameNavigationCompleted(event_token token) noexcept override - { - try - { - this->shim().FrameNavigationCompleted(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_LongRunningScriptDetected(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().LongRunningScriptDetected(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_LongRunningScriptDetected(event_token token) noexcept override - { - try - { - this->shim().LongRunningScriptDetected(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UnsafeContentWarningDisplaying(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UnsafeContentWarningDisplaying(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UnsafeContentWarningDisplaying(event_token token) noexcept override - { - try - { - this->shim().UnsafeContentWarningDisplaying(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UnviewableContentIdentified(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UnviewableContentIdentified(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UnviewableContentIdentified(event_token token) noexcept override - { - try - { - this->shim().UnviewableContentIdentified(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_NavigateWithHttpRequestMessage(abi_arg_in requestMessage) noexcept override - { - try - { - this->shim().NavigateWithHttpRequestMessage(*reinterpret_cast(&requestMessage)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Focus(Windows::UI::Xaml::FocusState value, bool * returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().Focus(value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContainsFullScreenElement(bool * value) noexcept override - { - try - { - *value = detach(this->shim().ContainsFullScreenElement()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_ContainsFullScreenElementChanged(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().ContainsFullScreenElementChanged(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_ContainsFullScreenElementChanged(event_token token) noexcept override - { - try - { - this->shim().ContainsFullScreenElementChanged(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExecutionMode(Windows::UI::Xaml::Controls::WebViewExecutionMode * value) noexcept override - { - try - { - *value = detach(this->shim().ExecutionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DeferredPermissionRequests(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().DeferredPermissionRequests()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Settings(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Settings()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_UnsupportedUriSchemeIdentified(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().UnsupportedUriSchemeIdentified(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_UnsupportedUriSchemeIdentified(event_token token) noexcept override - { - try - { - this->shim().UnsupportedUriSchemeIdentified(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_NewWindowRequested(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().NewWindowRequested(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_NewWindowRequested(event_token token) noexcept override - { - try - { - this->shim().NewWindowRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall add_PermissionRequested(abi_arg_in> value, event_token * token) noexcept override - { - try - { - *token = detach(this->shim().PermissionRequested(*reinterpret_cast *>(&value))); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall remove_PermissionRequested(event_token token) noexcept override - { - try - { - this->shim().PermissionRequested(token); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_AddWebAllowedObject(abi_arg_in name, abi_arg_in pObject) noexcept override - { - try - { - this->shim().AddWebAllowedObject(*reinterpret_cast(&name), *reinterpret_cast(&pObject)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_DeferredPermissionRequestById(uint32_t id, abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().DeferredPermissionRequestById(id)); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_XYFocusLeft(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusLeft()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_XYFocusLeft(abi_arg_in value) noexcept override - { - try - { - this->shim().XYFocusLeft(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusRight(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusRight()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_XYFocusRight(abi_arg_in value) noexcept override - { - try - { - this->shim().XYFocusRight(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusUp(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusUp()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_XYFocusUp(abi_arg_in value) noexcept override - { - try - { - this->shim().XYFocusUp(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusDown(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusDown()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_XYFocusDown(abi_arg_in value) noexcept override - { - try - { - this->shim().XYFocusDown(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceName(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceName()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_SourceName(abi_arg_in value) noexcept override - { - try - { - this->shim().SourceName(*reinterpret_cast(&value)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Redraw() noexcept override - { - try - { - this->shim().Redraw(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_SetSource(abi_arg_in source) noexcept override - { - try - { - this->shim().SetSource(*reinterpret_cast(&source)); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_SourceNameProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceNameProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PermissionType(Windows::UI::Xaml::Controls::WebViewPermissionType * value) noexcept override - { - try - { - *value = detach(this->shim().PermissionType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Allow() noexcept override - { - try - { - this->shim().Allow(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Deny() noexcept override - { - try - { - this->shim().Deny(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall abi_CreateInstanceWithExecutionMode(Windows::UI::Xaml::Controls::WebViewExecutionMode executionMode, abi_arg_out instance) noexcept override - { - try - { - *instance = detach(this->shim().CreateInstanceWithExecutionMode(executionMode)); - return S_OK; - } - catch (...) - { - *instance = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ExecutionTime(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ExecutionTime()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_StopPageScriptExecution(bool * value) noexcept override - { - try - { - *value = detach(this->shim().StopPageScriptExecution()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_StopPageScriptExecution(bool value) noexcept override - { - try - { - this->shim().StopPageScriptExecution(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsSuccess(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsSuccess()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WebErrorStatus(Windows::Web::WebErrorStatus * value) noexcept override - { - try - { - *value = detach(this->shim().WebErrorStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_WebErrorStatus(Windows::Web::WebErrorStatus * value) noexcept override - { - try - { - *value = detach(this->shim().WebErrorStatus()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Cancel(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Cancel()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Cancel(bool value) noexcept override - { - try - { - this->shim().Cancel(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Referrer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Referrer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_PermissionType(Windows::UI::Xaml::Controls::WebViewPermissionType * value) noexcept override - { - try - { - *value = detach(this->shim().PermissionType()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Id(uint32_t * value) noexcept override - { - try - { - *value = detach(this->shim().Id()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_State(Windows::UI::Xaml::Controls::WebViewPermissionState * value) noexcept override - { - try - { - *value = detach(this->shim().State()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Defer() noexcept override - { - try - { - this->shim().Defer(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Allow() noexcept override - { - try - { - this->shim().Allow(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_Deny() noexcept override - { - try - { - this->shim().Deny(); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_PermissionRequest(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().PermissionRequest()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_IsJavaScriptEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsJavaScriptEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsJavaScriptEnabled(bool value) noexcept override - { - try - { - this->shim().IsJavaScriptEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_IsIndexedDBEnabled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().IsIndexedDBEnabled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_IsIndexedDBEnabled(bool value) noexcept override - { - try - { - this->shim().IsIndexedDBEnabled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_AnyScriptNotifyUri(abi_arg_out> value) noexcept override - { - try - { - *value = detach(this->shim().AnyScriptNotifyUri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_SourceProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().SourceProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_AllowedScriptNotifyUrisProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().AllowedScriptNotifyUrisProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DataTransferPackageProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DataTransferPackageProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_CanGoBackProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanGoBackProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_CanGoForwardProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().CanGoForwardProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DocumentTitleProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DocumentTitleProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_DefaultBackgroundColorProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().DefaultBackgroundColorProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ContainsFullScreenElementProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ContainsFullScreenElementProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_DefaultExecutionMode(Windows::UI::Xaml::Controls::WebViewExecutionMode * value) noexcept override - { - try - { - *value = detach(this->shim().DefaultExecutionMode()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall abi_ClearTemporaryWebDataAsync(abi_arg_out returnValue) noexcept override - { - try - { - *returnValue = detach(this->shim().ClearTemporaryWebDataAsync()); - return S_OK; - } - catch (...) - { - *returnValue = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_XYFocusLeftProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusLeftProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusRightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusRightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusUpProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusUpProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_XYFocusDownProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().XYFocusDownProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Handled(bool * value) noexcept override - { - try - { - *value = detach(this->shim().Handled()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Handled(bool value) noexcept override - { - try - { - this->shim().Handled(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_Uri(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Uri()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Referrer(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().Referrer()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_MediaType(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MediaType()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemWidth(double * value) noexcept override - { - try - { - *value = detach(this->shim().ItemWidth()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemWidth(double value) noexcept override - { - try - { - this->shim().ItemWidth(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemHeight(double * value) noexcept override - { - try - { - *value = detach(this->shim().ItemHeight()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_ItemHeight(double value) noexcept override - { - try - { - this->shim().ItemHeight(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_Orientation(Windows::UI::Xaml::Controls::Orientation * value) noexcept override - { - try - { - *value = detach(this->shim().Orientation()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_Orientation(Windows::UI::Xaml::Controls::Orientation value) noexcept override - { - try - { - this->shim().Orientation(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalChildrenAlignment(Windows::UI::Xaml::HorizontalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalChildrenAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_HorizontalChildrenAlignment(Windows::UI::Xaml::HorizontalAlignment value) noexcept override - { - try - { - this->shim().HorizontalChildrenAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalChildrenAlignment(Windows::UI::Xaml::VerticalAlignment * value) noexcept override - { - try - { - *value = detach(this->shim().VerticalChildrenAlignment()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_VerticalChildrenAlignment(Windows::UI::Xaml::VerticalAlignment value) noexcept override - { - try - { - this->shim().VerticalChildrenAlignment(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaximumRowsOrColumns(int32_t * value) noexcept override - { - try - { - *value = detach(this->shim().MaximumRowsOrColumns()); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } - - HRESULT __stdcall put_MaximumRowsOrColumns(int32_t value) noexcept override - { - try - { - this->shim().MaximumRowsOrColumns(value); - return S_OK; - } - catch (...) - { - return impl::to_hresult(); - } - } -}; - -template -struct produce : produce_base -{ - HRESULT __stdcall get_ItemWidthProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemWidthProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_ItemHeightProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().ItemHeightProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_OrientationProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().OrientationProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_HorizontalChildrenAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().HorizontalChildrenAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_VerticalChildrenAlignmentProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().VerticalChildrenAlignmentProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } - - HRESULT __stdcall get_MaximumRowsOrColumnsProperty(abi_arg_out value) noexcept override - { - try - { - *value = detach(this->shim().MaximumRowsOrColumnsProperty()); - return S_OK; - } - catch (...) - { - *value = nullptr; - return impl::to_hresult(); - } - } -}; - -} - -namespace Windows::UI::Xaml::Controls { - -template void impl_IInsertionPanel::GetInsertionIndexes(const Windows::Foundation::Point & position, int32_t & first, int32_t & second) const -{ - check_hresult(static_cast(static_cast(*this))->abi_GetInsertionIndexes(get(position), &first, &second)); -} - -template Windows::IInspectable impl_IItemContainerMapping::ItemFromContainer(const Windows::UI::Xaml::DependencyObject & container) const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_ItemFromContainer(get(container), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::DependencyObject impl_IItemContainerMapping::ContainerFromItem(const Windows::IInspectable & item) const -{ - Windows::UI::Xaml::DependencyObject returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ContainerFromItem(get(item), put(returnValue))); - return returnValue; -} - -template int32_t impl_IItemContainerMapping::IndexFromContainer(const Windows::UI::Xaml::DependencyObject & container) const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IndexFromContainer(get(container), &returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::DependencyObject impl_IItemContainerMapping::ContainerFromIndex(int32_t index) const -{ - Windows::UI::Xaml::DependencyObject returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ContainerFromIndex(index, put(returnValue))); - return returnValue; -} - -template bool impl_INavigate::Navigate(const Windows::UI::Xaml::Interop::TypeName & sourcePageType) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_Navigate(get(sourcePageType), &returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::Controls::SemanticZoom impl_ISemanticZoomInformation::SemanticZoomOwner() const -{ - Windows::UI::Xaml::Controls::SemanticZoom value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SemanticZoomOwner(put(value))); - return value; -} - -template void impl_ISemanticZoomInformation::SemanticZoomOwner(const Windows::UI::Xaml::Controls::SemanticZoom & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SemanticZoomOwner(get(value))); -} - -template bool impl_ISemanticZoomInformation::IsActiveView() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActiveView(&value)); - return value; -} - -template void impl_ISemanticZoomInformation::IsActiveView(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsActiveView(value)); -} - -template bool impl_ISemanticZoomInformation::IsZoomedInView() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsZoomedInView(&value)); - return value; -} - -template void impl_ISemanticZoomInformation::IsZoomedInView(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsZoomedInView(value)); -} - -template void impl_ISemanticZoomInformation::InitializeViewChange() const -{ - check_hresult(static_cast(static_cast(*this))->abi_InitializeViewChange()); -} - -template void impl_ISemanticZoomInformation::CompleteViewChange() const -{ - check_hresult(static_cast(static_cast(*this))->abi_CompleteViewChange()); -} - -template void impl_ISemanticZoomInformation::MakeVisible(const Windows::UI::Xaml::Controls::SemanticZoomLocation & item) const -{ - check_hresult(static_cast(static_cast(*this))->abi_MakeVisible(get(item))); -} - -template void impl_ISemanticZoomInformation::StartViewChangeFrom(const Windows::UI::Xaml::Controls::SemanticZoomLocation & source, const Windows::UI::Xaml::Controls::SemanticZoomLocation & destination) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartViewChangeFrom(get(source), get(destination))); -} - -template void impl_ISemanticZoomInformation::StartViewChangeTo(const Windows::UI::Xaml::Controls::SemanticZoomLocation & source, const Windows::UI::Xaml::Controls::SemanticZoomLocation & destination) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartViewChangeTo(get(source), get(destination))); -} - -template void impl_ISemanticZoomInformation::CompleteViewChangeFrom(const Windows::UI::Xaml::Controls::SemanticZoomLocation & source, const Windows::UI::Xaml::Controls::SemanticZoomLocation & destination) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CompleteViewChangeFrom(get(source), get(destination))); -} - -template void impl_ISemanticZoomInformation::CompleteViewChangeTo(const Windows::UI::Xaml::Controls::SemanticZoomLocation & source, const Windows::UI::Xaml::Controls::SemanticZoomLocation & destination) const -{ - check_hresult(static_cast(static_cast(*this))->abi_CompleteViewChangeTo(get(source), get(destination))); -} - -template bool impl_IBackClickEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IBackClickEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::Foundation::Rect impl_ICandidateWindowBoundsChangedEventArgs::Bounds() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_Bounds(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ListViewBaseHeaderItem impl_IChoosingGroupHeaderContainerEventArgs::GroupHeaderContainer() const -{ - Windows::UI::Xaml::Controls::ListViewBaseHeaderItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GroupHeaderContainer(put(value))); - return value; -} - -template void impl_IChoosingGroupHeaderContainerEventArgs::GroupHeaderContainer(const Windows::UI::Xaml::Controls::ListViewBaseHeaderItem & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GroupHeaderContainer(get(value))); -} - -template int32_t impl_IChoosingGroupHeaderContainerEventArgs::GroupIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_GroupIndex(&value)); - return value; -} - -template Windows::IInspectable impl_IChoosingGroupHeaderContainerEventArgs::Group() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Group(put(value))); - return value; -} - -template int32_t impl_IChoosingItemContainerEventArgs::ItemIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemIndex(&value)); - return value; -} - -template Windows::IInspectable impl_IChoosingItemContainerEventArgs::Item() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Item(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::SelectorItem impl_IChoosingItemContainerEventArgs::ItemContainer() const -{ - Windows::UI::Xaml::Controls::Primitives::SelectorItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemContainer(put(value))); - return value; -} - -template void impl_IChoosingItemContainerEventArgs::ItemContainer(const Windows::UI::Xaml::Controls::Primitives::SelectorItem & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemContainer(get(value))); -} - -template bool impl_IChoosingItemContainerEventArgs::IsContainerPrepared() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsContainerPrepared(&value)); - return value; -} - -template void impl_IChoosingItemContainerEventArgs::IsContainerPrepared(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsContainerPrepared(value)); -} - -template Windows::UI::Xaml::Controls::Primitives::SelectorItem impl_IContainerContentChangingEventArgs::ItemContainer() const -{ - Windows::UI::Xaml::Controls::Primitives::SelectorItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemContainer(put(value))); - return value; -} - -template bool impl_IContainerContentChangingEventArgs::InRecycleQueue() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_InRecycleQueue(&value)); - return value; -} - -template int32_t impl_IContainerContentChangingEventArgs::ItemIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemIndex(&value)); - return value; -} - -template Windows::IInspectable impl_IContainerContentChangingEventArgs::Item() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Item(put(value))); - return value; -} - -template uint32_t impl_IContainerContentChangingEventArgs::Phase() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Phase(&value)); - return value; -} - -template bool impl_IContainerContentChangingEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IContainerContentChangingEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template void impl_IContainerContentChangingEventArgs::RegisterUpdateCallback(const Windows::Foundation::TypedEventHandler & callback) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterUpdateCallback(get(callback))); -} - -template void impl_IContainerContentChangingEventArgs::RegisterUpdateCallback(uint32_t callbackPhase, const Windows::Foundation::TypedEventHandler & callback) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterUpdateCallbackWithPhase(callbackPhase, get(callback))); -} - -template Windows::UI::Xaml::DataTemplate impl_IDataTemplateSelector::SelectTemplate(const Windows::IInspectable & item, const Windows::UI::Xaml::DependencyObject & container) const -{ - Windows::UI::Xaml::DataTemplate returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SelectTemplate(get(item), get(container), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::DataTemplate impl_IDataTemplateSelectorOverrides::SelectTemplateCore(const Windows::IInspectable & item, const Windows::UI::Xaml::DependencyObject & container) const -{ - Windows::UI::Xaml::DataTemplate returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SelectTemplateCore(get(item), get(container), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::DataTemplateSelector impl_IDataTemplateSelectorFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::DataTemplateSelector instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::DataTemplate impl_IDataTemplateSelector2::SelectTemplate(const Windows::IInspectable & item) const -{ - Windows::UI::Xaml::DataTemplate returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SelectTemplateForItem(get(item), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::DataTemplate impl_IDataTemplateSelectorOverrides2::SelectTemplateCore(const Windows::IInspectable & item) const -{ - Windows::UI::Xaml::DataTemplate returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SelectTemplateForItemCore(get(item), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::Collections::IVectorView impl_IDragItemsCompletedEventArgs::Items() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_Items(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataPackageOperation impl_IDragItemsCompletedEventArgs::DropResult() const -{ - Windows::ApplicationModel::DataTransfer::DataPackageOperation value {}; - check_hresult(static_cast(static_cast(*this))->get_DropResult(&value)); - return value; -} - -template bool impl_IDragItemsStartingEventArgs::Cancel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Cancel(&value)); - return value; -} - -template void impl_IDragItemsStartingEventArgs::Cancel(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Cancel(value)); -} - -template Windows::Foundation::Collections::IVector impl_IDragItemsStartingEventArgs::Items() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Items(put(value))); - return value; -} - -template Windows::ApplicationModel::DataTransfer::DataPackage impl_IDragItemsStartingEventArgs::Data() const -{ - Windows::ApplicationModel::DataTransfer::DataPackage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ItemsPanelTemplate impl_IGroupStyle::Panel() const -{ - Windows::UI::Xaml::Controls::ItemsPanelTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Panel(put(value))); - return value; -} - -template void impl_IGroupStyle::Panel(const Windows::UI::Xaml::Controls::ItemsPanelTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Panel(get(value))); -} - -template Windows::UI::Xaml::Style impl_IGroupStyle::ContainerStyle() const -{ - Windows::UI::Xaml::Style value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContainerStyle(put(value))); - return value; -} - -template void impl_IGroupStyle::ContainerStyle(const Windows::UI::Xaml::Style & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContainerStyle(get(value))); -} - -template Windows::UI::Xaml::Controls::StyleSelector impl_IGroupStyle::ContainerStyleSelector() const -{ - Windows::UI::Xaml::Controls::StyleSelector value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContainerStyleSelector(put(value))); - return value; -} - -template void impl_IGroupStyle::ContainerStyleSelector(const Windows::UI::Xaml::Controls::StyleSelector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContainerStyleSelector(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IGroupStyle::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_IGroupStyle::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template Windows::UI::Xaml::Controls::DataTemplateSelector impl_IGroupStyle::HeaderTemplateSelector() const -{ - Windows::UI::Xaml::Controls::DataTemplateSelector value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateSelector(put(value))); - return value; -} - -template void impl_IGroupStyle::HeaderTemplateSelector(const Windows::UI::Xaml::Controls::DataTemplateSelector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplateSelector(get(value))); -} - -template bool impl_IGroupStyle::HidesIfEmpty() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HidesIfEmpty(&value)); - return value; -} - -template void impl_IGroupStyle::HidesIfEmpty(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HidesIfEmpty(value)); -} - -template Windows::UI::Xaml::Controls::GroupStyle impl_IGroupStyleFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::GroupStyle instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Style impl_IGroupStyle2::HeaderContainerStyle() const -{ - Windows::UI::Xaml::Style value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderContainerStyle(put(value))); - return value; -} - -template void impl_IGroupStyle2::HeaderContainerStyle(const Windows::UI::Xaml::Style & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderContainerStyle(get(value))); -} - -template Windows::UI::Xaml::Controls::GroupStyle impl_IGroupStyleSelector::SelectGroupStyle(const Windows::IInspectable & group, uint32_t level) const -{ - Windows::UI::Xaml::Controls::GroupStyle returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SelectGroupStyle(get(group), level, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::GroupStyle impl_IGroupStyleSelectorOverrides::SelectGroupStyleCore(const Windows::IInspectable & group, uint32_t level) const -{ - Windows::UI::Xaml::Controls::GroupStyle returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SelectGroupStyleCore(get(group), level, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::GroupStyleSelector impl_IGroupStyleSelectorFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::GroupStyleSelector instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template event_token impl_IItemContainerGenerator::ItemsChanged(const Windows::UI::Xaml::Controls::Primitives::ItemsChangedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ItemsChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IItemContainerGenerator::ItemsChanged(auto_revoke_t, const Windows::UI::Xaml::Controls::Primitives::ItemsChangedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IItemContainerGenerator::remove_ItemsChanged, ItemsChanged(value)); -} - -template void impl_IItemContainerGenerator::ItemsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemsChanged(token)); -} - -template Windows::IInspectable impl_IItemContainerGenerator::ItemFromContainer(const Windows::UI::Xaml::DependencyObject & container) const -{ - Windows::IInspectable returnValue; - check_hresult(static_cast(static_cast(*this))->abi_ItemFromContainer(get(container), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::DependencyObject impl_IItemContainerGenerator::ContainerFromItem(const Windows::IInspectable & item) const -{ - Windows::UI::Xaml::DependencyObject returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ContainerFromItem(get(item), put(returnValue))); - return returnValue; -} - -template int32_t impl_IItemContainerGenerator::IndexFromContainer(const Windows::UI::Xaml::DependencyObject & container) const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IndexFromContainer(get(container), &returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::DependencyObject impl_IItemContainerGenerator::ContainerFromIndex(int32_t index) const -{ - Windows::UI::Xaml::DependencyObject returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ContainerFromIndex(index, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::ItemContainerGenerator impl_IItemContainerGenerator::GetItemContainerGeneratorForPanel(const Windows::UI::Xaml::Controls::Panel & panel) const -{ - Windows::UI::Xaml::Controls::ItemContainerGenerator returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetItemContainerGeneratorForPanel(get(panel), put(returnValue))); - return returnValue; -} - -template void impl_IItemContainerGenerator::StartAt(const Windows::UI::Xaml::Controls::Primitives::GeneratorPosition & position, Windows::UI::Xaml::Controls::Primitives::GeneratorDirection direction, bool allowStartAtRealizedItem) const -{ - check_hresult(static_cast(static_cast(*this))->abi_StartAt(get(position), direction, allowStartAtRealizedItem)); -} - -template void impl_IItemContainerGenerator::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template Windows::UI::Xaml::DependencyObject impl_IItemContainerGenerator::GenerateNext(bool & isNewlyRealized) const -{ - Windows::UI::Xaml::DependencyObject returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GenerateNext(&isNewlyRealized, put(returnValue))); - return returnValue; -} - -template void impl_IItemContainerGenerator::PrepareItemContainer(const Windows::UI::Xaml::DependencyObject & container) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PrepareItemContainer(get(container))); -} - -template void impl_IItemContainerGenerator::RemoveAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveAll()); -} - -template void impl_IItemContainerGenerator::Remove(const Windows::UI::Xaml::Controls::Primitives::GeneratorPosition & position, int32_t count) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Remove(get(position), count)); -} - -template Windows::UI::Xaml::Controls::Primitives::GeneratorPosition impl_IItemContainerGenerator::GeneratorPositionFromIndex(int32_t itemIndex) const -{ - Windows::UI::Xaml::Controls::Primitives::GeneratorPosition returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GeneratorPositionFromIndex(itemIndex, put(returnValue))); - return returnValue; -} - -template int32_t impl_IItemContainerGenerator::IndexFromGeneratorPosition(const Windows::UI::Xaml::Controls::Primitives::GeneratorPosition & position) const -{ - int32_t returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IndexFromGeneratorPosition(get(position), &returnValue)); - return returnValue; -} - -template void impl_IItemContainerGenerator::Recycle(const Windows::UI::Xaml::Controls::Primitives::GeneratorPosition & position, int32_t count) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Recycle(get(position), count)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsHelperStatics::DropoutOrderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DropoutOrderProperty(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_IMediaTransportControlsHelperStatics::GetDropoutOrder(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->abi_GetDropoutOrder(get(element), put(value))); - return value; -} - -template void impl_IMediaTransportControlsHelperStatics::SetDropoutOrder(const Windows::UI::Xaml::UIElement & element, const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDropoutOrder(get(element), get(value))); -} - -template hstring impl_INotifyEventArgs::Value() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_INotifyEventArgs2::CallingUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CallingUri(put(value))); - return value; -} - -template Windows::IInspectable impl_ISemanticZoomLocation::Item() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Item(put(value))); - return value; -} - -template void impl_ISemanticZoomLocation::Item(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Item(get(value))); -} - -template Windows::Foundation::Rect impl_ISemanticZoomLocation::Bounds() const -{ - Windows::Foundation::Rect value {}; - check_hresult(static_cast(static_cast(*this))->get_Bounds(put(value))); - return value; -} - -template void impl_ISemanticZoomLocation::Bounds(const Windows::Foundation::Rect & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Bounds(get(value))); -} - -template bool impl_ISemanticZoomViewChangedEventArgs::IsSourceZoomedInView() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSourceZoomedInView(&value)); - return value; -} - -template void impl_ISemanticZoomViewChangedEventArgs::IsSourceZoomedInView(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSourceZoomedInView(value)); -} - -template Windows::UI::Xaml::Controls::SemanticZoomLocation impl_ISemanticZoomViewChangedEventArgs::SourceItem() const -{ - Windows::UI::Xaml::Controls::SemanticZoomLocation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceItem(put(value))); - return value; -} - -template void impl_ISemanticZoomViewChangedEventArgs::SourceItem(const Windows::UI::Xaml::Controls::SemanticZoomLocation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SourceItem(get(value))); -} - -template Windows::UI::Xaml::Controls::SemanticZoomLocation impl_ISemanticZoomViewChangedEventArgs::DestinationItem() const -{ - Windows::UI::Xaml::Controls::SemanticZoomLocation value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DestinationItem(put(value))); - return value; -} - -template void impl_ISemanticZoomViewChangedEventArgs::DestinationItem(const Windows::UI::Xaml::Controls::SemanticZoomLocation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DestinationItem(get(value))); -} - -template Windows::UI::Xaml::Style impl_IStyleSelector::SelectStyle(const Windows::IInspectable & item, const Windows::UI::Xaml::DependencyObject & container) const -{ - Windows::UI::Xaml::Style returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SelectStyle(get(item), get(container), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Style impl_IStyleSelectorOverrides::SelectStyleCore(const Windows::IInspectable & item, const Windows::UI::Xaml::DependencyObject & container) const -{ - Windows::UI::Xaml::Style returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_SelectStyleCore(get(item), get(container), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::StyleSelector impl_IStyleSelectorFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::StyleSelector instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template int32_t impl_ITextCompositionChangedEventArgs::StartIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StartIndex(&value)); - return value; -} - -template int32_t impl_ITextCompositionChangedEventArgs::Length() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template int32_t impl_ITextCompositionEndedEventArgs::StartIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StartIndex(&value)); - return value; -} - -template int32_t impl_ITextCompositionEndedEventArgs::Length() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template int32_t impl_ITextCompositionStartedEventArgs::StartIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_StartIndex(&value)); - return value; -} - -template int32_t impl_ITextCompositionStartedEventArgs::Length() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Length(&value)); - return value; -} - -template bool impl_ITextControlPasteEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_ITextControlPasteEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IToolTipServiceStatics::PlacementProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlacementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::PlacementMode impl_IToolTipServiceStatics::GetPlacement(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::UI::Xaml::Controls::Primitives::PlacementMode value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetPlacement(get(element), &value)); - return value; -} - -template void impl_IToolTipServiceStatics::SetPlacement(const Windows::UI::Xaml::DependencyObject & element, Windows::UI::Xaml::Controls::Primitives::PlacementMode value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPlacement(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IToolTipServiceStatics::PlacementTargetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlacementTargetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::UIElement impl_IToolTipServiceStatics::GetPlacementTarget(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetPlacementTarget(get(element), put(value))); - return value; -} - -template void impl_IToolTipServiceStatics::SetPlacementTarget(const Windows::UI::Xaml::DependencyObject & element, const Windows::UI::Xaml::UIElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPlacementTarget(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IToolTipServiceStatics::ToolTipProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ToolTipProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IToolTipServiceStatics::GetToolTip(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_GetToolTip(get(element), put(value))); - return value; -} - -template void impl_IToolTipServiceStatics::SetToolTip(const Windows::UI::Xaml::DependencyObject & element, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetToolTip(get(element), get(value))); -} - -template void impl_IUIElementCollection::Move(uint32_t oldIndex, uint32_t newIndex) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Move(oldIndex, newIndex)); -} - -template Windows::IInspectable impl_ICleanUpVirtualizedItemEventArgs::Value() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Value(put(value))); - return value; -} - -template Windows::UI::Xaml::UIElement impl_ICleanUpVirtualizedItemEventArgs::UIElement() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UIElement(put(value))); - return value; -} - -template bool impl_ICleanUpVirtualizedItemEventArgs::Cancel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Cancel(&value)); - return value; -} - -template void impl_ICleanUpVirtualizedItemEventArgs::Cancel(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Cancel(value)); -} - -template Windows::UI::Xaml::GridLength impl_IColumnDefinition::Width() const -{ - Windows::UI::Xaml::GridLength value {}; - check_hresult(static_cast(static_cast(*this))->get_Width(put(value))); - return value; -} - -template void impl_IColumnDefinition::Width(const Windows::UI::Xaml::GridLength & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Width(get(value))); -} - -template double impl_IColumnDefinition::MaxWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxWidth(&value)); - return value; -} - -template void impl_IColumnDefinition::MaxWidth(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxWidth(value)); -} - -template double impl_IColumnDefinition::MinWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MinWidth(&value)); - return value; -} - -template void impl_IColumnDefinition::MinWidth(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinWidth(value)); -} - -template double impl_IColumnDefinition::ActualWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ActualWidth(&value)); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IColumnDefinitionStatics::WidthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_WidthProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IColumnDefinitionStatics::MaxWidthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxWidthProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IColumnDefinitionStatics::MinWidthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MinWidthProperty(put(value))); - return value; -} - -template bool impl_IContextMenuEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IContextMenuEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template double impl_IContextMenuEventArgs::CursorLeft() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CursorLeft(&value)); - return value; -} - -template double impl_IContextMenuEventArgs::CursorTop() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CursorTop(&value)); - return value; -} - -template Windows::IInspectable impl_IItemClickEventArgs::ClickedItem() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_ClickedItem(put(value))); - return value; -} - -template Windows::UI::Xaml::GridLength impl_IRowDefinition::Height() const -{ - Windows::UI::Xaml::GridLength value {}; - check_hresult(static_cast(static_cast(*this))->get_Height(put(value))); - return value; -} - -template void impl_IRowDefinition::Height(const Windows::UI::Xaml::GridLength & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Height(get(value))); -} - -template double impl_IRowDefinition::MaxHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxHeight(&value)); - return value; -} - -template void impl_IRowDefinition::MaxHeight(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxHeight(value)); -} - -template double impl_IRowDefinition::MinHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MinHeight(&value)); - return value; -} - -template void impl_IRowDefinition::MinHeight(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinHeight(value)); -} - -template double impl_IRowDefinition::ActualHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ActualHeight(&value)); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRowDefinitionStatics::HeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRowDefinitionStatics::MaxHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxHeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRowDefinitionStatics::MinHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MinHeightProperty(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISelectionChangedEventArgs::AddedItems() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_AddedItems(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISelectionChangedEventArgs::RemovedItems() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_RemovedItems(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::SelectionChangedEventArgs impl_ISelectionChangedEventArgsFactory::CreateInstanceWithRemovedItemsAndAddedItems(const Windows::Foundation::Collections::IVector & removedItems, const Windows::Foundation::Collections::IVector & addedItems, const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::SelectionChangedEventArgs instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithRemovedItemsAndAddedItems(get(removedItems), get(addedItems), get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Media::Brush impl_IBorder::BorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderBrush(put(value))); - return value; -} - -template void impl_IBorder::BorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BorderBrush(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IBorder::BorderThickness() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_BorderThickness(put(value))); - return value; -} - -template void impl_IBorder::BorderThickness(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BorderThickness(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IBorder::Background() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Background(put(value))); - return value; -} - -template void impl_IBorder::Background(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Background(get(value))); -} - -template Windows::UI::Xaml::CornerRadius impl_IBorder::CornerRadius() const -{ - Windows::UI::Xaml::CornerRadius value {}; - check_hresult(static_cast(static_cast(*this))->get_CornerRadius(put(value))); - return value; -} - -template void impl_IBorder::CornerRadius(const Windows::UI::Xaml::CornerRadius & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CornerRadius(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IBorder::Padding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_Padding(put(value))); - return value; -} - -template void impl_IBorder::Padding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Padding(get(value))); -} - -template Windows::UI::Xaml::UIElement impl_IBorder::Child() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Child(put(value))); - return value; -} - -template void impl_IBorder::Child(const Windows::UI::Xaml::UIElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Child(get(value))); -} - -template Windows::UI::Xaml::Media::Animation::TransitionCollection impl_IBorder::ChildTransitions() const -{ - Windows::UI::Xaml::Media::Animation::TransitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChildTransitions(put(value))); - return value; -} - -template void impl_IBorder::ChildTransitions(const Windows::UI::Xaml::Media::Animation::TransitionCollection & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChildTransitions(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IBorderStatics::BorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IBorderStatics::BorderThicknessProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderThicknessProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IBorderStatics::BackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IBorderStatics::CornerRadiusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CornerRadiusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IBorderStatics::PaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaddingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IBorderStatics::ChildTransitionsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChildTransitionsProperty(put(value))); - return value; -} - -template Windows::Media::Capture::MediaCapture impl_ICaptureElement::Source() const -{ - Windows::Media::Capture::MediaCapture value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template void impl_ICaptureElement::Source(const Windows::Media::Capture::MediaCapture & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Source(get(value))); -} - -template Windows::UI::Xaml::Media::Stretch impl_ICaptureElement::Stretch() const -{ - Windows::UI::Xaml::Media::Stretch value {}; - check_hresult(static_cast(static_cast(*this))->get_Stretch(&value)); - return value; -} - -template void impl_ICaptureElement::Stretch(Windows::UI::Xaml::Media::Stretch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Stretch(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ICaptureElementStatics::SourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICaptureElementStatics::StretchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StretchProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IContentPresenter::Content() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template void impl_IContentPresenter::Content(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Content(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IContentPresenter::ContentTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTemplate(put(value))); - return value; -} - -template void impl_IContentPresenter::ContentTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentTemplate(get(value))); -} - -template Windows::UI::Xaml::Controls::DataTemplateSelector impl_IContentPresenter::ContentTemplateSelector() const -{ - Windows::UI::Xaml::Controls::DataTemplateSelector value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTemplateSelector(put(value))); - return value; -} - -template void impl_IContentPresenter::ContentTemplateSelector(const Windows::UI::Xaml::Controls::DataTemplateSelector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentTemplateSelector(get(value))); -} - -template Windows::UI::Xaml::Media::Animation::TransitionCollection impl_IContentPresenter::ContentTransitions() const -{ - Windows::UI::Xaml::Media::Animation::TransitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTransitions(put(value))); - return value; -} - -template void impl_IContentPresenter::ContentTransitions(const Windows::UI::Xaml::Media::Animation::TransitionCollection & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentTransitions(get(value))); -} - -template double impl_IContentPresenter::FontSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FontSize(&value)); - return value; -} - -template void impl_IContentPresenter::FontSize(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontSize(value)); -} - -template Windows::UI::Xaml::Media::FontFamily impl_IContentPresenter::FontFamily() const -{ - Windows::UI::Xaml::Media::FontFamily value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontFamily(put(value))); - return value; -} - -template void impl_IContentPresenter::FontFamily(const Windows::UI::Xaml::Media::FontFamily & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontFamily(get(value))); -} - -template Windows::UI::Text::FontWeight impl_IContentPresenter::FontWeight() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_FontWeight(put(value))); - return value; -} - -template void impl_IContentPresenter::FontWeight(const Windows::UI::Text::FontWeight & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontWeight(get(value))); -} - -template Windows::UI::Text::FontStyle impl_IContentPresenter::FontStyle() const -{ - Windows::UI::Text::FontStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_FontStyle(&value)); - return value; -} - -template void impl_IContentPresenter::FontStyle(Windows::UI::Text::FontStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontStyle(value)); -} - -template Windows::UI::Text::FontStretch impl_IContentPresenter::FontStretch() const -{ - Windows::UI::Text::FontStretch value {}; - check_hresult(static_cast(static_cast(*this))->get_FontStretch(&value)); - return value; -} - -template void impl_IContentPresenter::FontStretch(Windows::UI::Text::FontStretch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontStretch(value)); -} - -template int32_t impl_IContentPresenter::CharacterSpacing() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CharacterSpacing(&value)); - return value; -} - -template void impl_IContentPresenter::CharacterSpacing(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CharacterSpacing(value)); -} - -template Windows::UI::Xaml::Media::Brush impl_IContentPresenter::Foreground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Foreground(put(value))); - return value; -} - -template void impl_IContentPresenter::Foreground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Foreground(get(value))); -} - -template void impl_IContentPresenterOverrides::OnContentTemplateChanged(const Windows::UI::Xaml::DataTemplate & oldContentTemplate, const Windows::UI::Xaml::DataTemplate & newContentTemplate) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnContentTemplateChanged(get(oldContentTemplate), get(newContentTemplate))); -} - -template void impl_IContentPresenterOverrides::OnContentTemplateSelectorChanged(const Windows::UI::Xaml::Controls::DataTemplateSelector & oldContentTemplateSelector, const Windows::UI::Xaml::Controls::DataTemplateSelector & newContentTemplateSelector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnContentTemplateSelectorChanged(get(oldContentTemplateSelector), get(newContentTemplateSelector))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics::ContentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics::ContentTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics::ContentTemplateSelectorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTemplateSelectorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics::ContentTransitionsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTransitionsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics::FontSizeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics::FontFamilyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontFamilyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics::FontWeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontWeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics::FontStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics::FontStretchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontStretchProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics::CharacterSpacingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CharacterSpacingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics::ForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ContentPresenter impl_IContentPresenterFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::ContentPresenter instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::OpticalMarginAlignment impl_IContentPresenter2::OpticalMarginAlignment() const -{ - Windows::UI::Xaml::OpticalMarginAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_OpticalMarginAlignment(&value)); - return value; -} - -template void impl_IContentPresenter2::OpticalMarginAlignment(Windows::UI::Xaml::OpticalMarginAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OpticalMarginAlignment(value)); -} - -template Windows::UI::Xaml::TextLineBounds impl_IContentPresenter2::TextLineBounds() const -{ - Windows::UI::Xaml::TextLineBounds value {}; - check_hresult(static_cast(static_cast(*this))->get_TextLineBounds(&value)); - return value; -} - -template void impl_IContentPresenter2::TextLineBounds(Windows::UI::Xaml::TextLineBounds value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextLineBounds(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics2::OpticalMarginAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OpticalMarginAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics2::TextLineBoundsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextLineBoundsProperty(put(value))); - return value; -} - -template bool impl_IContentPresenter3::IsTextScaleFactorEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTextScaleFactorEnabled(&value)); - return value; -} - -template void impl_IContentPresenter3::IsTextScaleFactorEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTextScaleFactorEnabled(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics3::IsTextScaleFactorEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTextScaleFactorEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::TextWrapping impl_IContentPresenter4::TextWrapping() const -{ - Windows::UI::Xaml::TextWrapping value {}; - check_hresult(static_cast(static_cast(*this))->get_TextWrapping(&value)); - return value; -} - -template void impl_IContentPresenter4::TextWrapping(Windows::UI::Xaml::TextWrapping value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextWrapping(value)); -} - -template int32_t impl_IContentPresenter4::MaxLines() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxLines(&value)); - return value; -} - -template void impl_IContentPresenter4::MaxLines(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxLines(value)); -} - -template Windows::UI::Xaml::LineStackingStrategy impl_IContentPresenter4::LineStackingStrategy() const -{ - Windows::UI::Xaml::LineStackingStrategy value {}; - check_hresult(static_cast(static_cast(*this))->get_LineStackingStrategy(&value)); - return value; -} - -template void impl_IContentPresenter4::LineStackingStrategy(Windows::UI::Xaml::LineStackingStrategy value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LineStackingStrategy(value)); -} - -template double impl_IContentPresenter4::LineHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_LineHeight(&value)); - return value; -} - -template void impl_IContentPresenter4::LineHeight(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LineHeight(value)); -} - -template Windows::UI::Xaml::Media::Brush impl_IContentPresenter4::BorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderBrush(put(value))); - return value; -} - -template void impl_IContentPresenter4::BorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BorderBrush(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IContentPresenter4::BorderThickness() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_BorderThickness(put(value))); - return value; -} - -template void impl_IContentPresenter4::BorderThickness(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BorderThickness(get(value))); -} - -template Windows::UI::Xaml::CornerRadius impl_IContentPresenter4::CornerRadius() const -{ - Windows::UI::Xaml::CornerRadius value {}; - check_hresult(static_cast(static_cast(*this))->get_CornerRadius(put(value))); - return value; -} - -template void impl_IContentPresenter4::CornerRadius(const Windows::UI::Xaml::CornerRadius & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CornerRadius(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IContentPresenter4::Padding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_Padding(put(value))); - return value; -} - -template void impl_IContentPresenter4::Padding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Padding(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_IContentPresenter4::Background() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Background(put(value))); - return value; -} - -template void impl_IContentPresenter4::Background(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Background(get(value))); -} - -template Windows::UI::Xaml::HorizontalAlignment impl_IContentPresenter4::HorizontalContentAlignment() const -{ - Windows::UI::Xaml::HorizontalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalContentAlignment(&value)); - return value; -} - -template void impl_IContentPresenter4::HorizontalContentAlignment(Windows::UI::Xaml::HorizontalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HorizontalContentAlignment(value)); -} - -template Windows::UI::Xaml::VerticalAlignment impl_IContentPresenter4::VerticalContentAlignment() const -{ - Windows::UI::Xaml::VerticalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalContentAlignment(&value)); - return value; -} - -template void impl_IContentPresenter4::VerticalContentAlignment(Windows::UI::Xaml::VerticalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VerticalContentAlignment(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics4::TextWrappingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextWrappingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics4::MaxLinesProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxLinesProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics4::LineStackingStrategyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LineStackingStrategyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics4::LineHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LineHeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics4::BorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics4::BorderThicknessProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderThicknessProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics4::CornerRadiusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CornerRadiusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics4::PaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaddingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics4::BackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics4::HorizontalContentAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HorizontalContentAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentPresenterStatics4::VerticalContentAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VerticalContentAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::ImageSource impl_IImage::Source() const -{ - Windows::UI::Xaml::Media::ImageSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template void impl_IImage::Source(const Windows::UI::Xaml::Media::ImageSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Source(get(value))); -} - -template Windows::UI::Xaml::Media::Stretch impl_IImage::Stretch() const -{ - Windows::UI::Xaml::Media::Stretch value {}; - check_hresult(static_cast(static_cast(*this))->get_Stretch(&value)); - return value; -} - -template void impl_IImage::Stretch(Windows::UI::Xaml::Media::Stretch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Stretch(value)); -} - -template Windows::UI::Xaml::Thickness impl_IImage::NineGrid() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_NineGrid(put(value))); - return value; -} - -template void impl_IImage::NineGrid(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NineGrid(get(value))); -} - -template Windows::Media::PlayTo::PlayToSource impl_IImage::PlayToSource() const -{ - Windows::Media::PlayTo::PlayToSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlayToSource(put(value))); - return value; -} - -template event_token impl_IImage::ImageFailed(const Windows::UI::Xaml::ExceptionRoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ImageFailed(get(value), &token)); - return token; -} - -template event_revoker impl_IImage::ImageFailed(auto_revoke_t, const Windows::UI::Xaml::ExceptionRoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IImage::remove_ImageFailed, ImageFailed(value)); -} - -template void impl_IImage::ImageFailed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ImageFailed(token)); -} - -template event_token impl_IImage::ImageOpened(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ImageOpened(get(value), &token)); - return token; -} - -template event_revoker impl_IImage::ImageOpened(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IImage::remove_ImageOpened, ImageOpened(value)); -} - -template void impl_IImage::ImageOpened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ImageOpened(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IImageStatics::SourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IImageStatics::StretchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StretchProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IImageStatics::NineGridProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NineGridProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IImageStatics::PlayToSourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlayToSourceProperty(put(value))); - return value; -} - -template Windows::Media::Casting::CastingSource impl_IImage2::GetAsCastingSource() const -{ - Windows::Media::Casting::CastingSource returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAsCastingSource(put(returnValue))); - return returnValue; -} - -template Windows::UI::Composition::CompositionBrush impl_IImage3::GetAlphaMask() const -{ - Windows::UI::Composition::CompositionBrush returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAlphaMask(put(returnValue))); - return returnValue; -} - -template Windows::IInspectable impl_IItemsPresenter::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_IItemsPresenter::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IItemsPresenter::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_IItemsPresenter::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template Windows::UI::Xaml::Media::Animation::TransitionCollection impl_IItemsPresenter::HeaderTransitions() const -{ - Windows::UI::Xaml::Media::Animation::TransitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTransitions(put(value))); - return value; -} - -template void impl_IItemsPresenter::HeaderTransitions(const Windows::UI::Xaml::Media::Animation::TransitionCollection & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTransitions(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IItemsPresenter::Padding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_Padding(put(value))); - return value; -} - -template void impl_IItemsPresenter::Padding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Padding(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsPresenterStatics::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsPresenterStatics::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsPresenterStatics::HeaderTransitionsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTransitionsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsPresenterStatics::PaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaddingProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IItemsPresenter2::Footer() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Footer(put(value))); - return value; -} - -template void impl_IItemsPresenter2::Footer(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Footer(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IItemsPresenter2::FooterTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FooterTemplate(put(value))); - return value; -} - -template void impl_IItemsPresenter2::FooterTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FooterTemplate(get(value))); -} - -template Windows::UI::Xaml::Media::Animation::TransitionCollection impl_IItemsPresenter2::FooterTransitions() const -{ - Windows::UI::Xaml::Media::Animation::TransitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FooterTransitions(put(value))); - return value; -} - -template void impl_IItemsPresenter2::FooterTransitions(const Windows::UI::Xaml::Media::Animation::TransitionCollection & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FooterTransitions(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsPresenterStatics2::FooterProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FooterProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsPresenterStatics2::FooterTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FooterTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsPresenterStatics2::FooterTransitionsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FooterTransitionsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::UIElementCollection impl_IPanel::Children() const -{ - Windows::UI::Xaml::Controls::UIElementCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Children(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::Brush impl_IPanel::Background() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Background(put(value))); - return value; -} - -template void impl_IPanel::Background(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Background(get(value))); -} - -template bool impl_IPanel::IsItemsHost() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsItemsHost(&value)); - return value; -} - -template Windows::UI::Xaml::Media::Animation::TransitionCollection impl_IPanel::ChildrenTransitions() const -{ - Windows::UI::Xaml::Media::Animation::TransitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChildrenTransitions(put(value))); - return value; -} - -template void impl_IPanel::ChildrenTransitions(const Windows::UI::Xaml::Media::Animation::TransitionCollection & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChildrenTransitions(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IPanelStatics::BackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPanelStatics::IsItemsHostProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsItemsHostProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPanelStatics::ChildrenTransitionsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChildrenTransitionsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Panel impl_IPanelFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Panel instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template double impl_IRichTextBlock::FontSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FontSize(&value)); - return value; -} - -template void impl_IRichTextBlock::FontSize(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontSize(value)); -} - -template Windows::UI::Xaml::Media::FontFamily impl_IRichTextBlock::FontFamily() const -{ - Windows::UI::Xaml::Media::FontFamily value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontFamily(put(value))); - return value; -} - -template void impl_IRichTextBlock::FontFamily(const Windows::UI::Xaml::Media::FontFamily & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontFamily(get(value))); -} - -template Windows::UI::Text::FontWeight impl_IRichTextBlock::FontWeight() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_FontWeight(put(value))); - return value; -} - -template void impl_IRichTextBlock::FontWeight(const Windows::UI::Text::FontWeight & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontWeight(get(value))); -} - -template Windows::UI::Text::FontStyle impl_IRichTextBlock::FontStyle() const -{ - Windows::UI::Text::FontStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_FontStyle(&value)); - return value; -} - -template void impl_IRichTextBlock::FontStyle(Windows::UI::Text::FontStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontStyle(value)); -} - -template Windows::UI::Text::FontStretch impl_IRichTextBlock::FontStretch() const -{ - Windows::UI::Text::FontStretch value {}; - check_hresult(static_cast(static_cast(*this))->get_FontStretch(&value)); - return value; -} - -template void impl_IRichTextBlock::FontStretch(Windows::UI::Text::FontStretch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontStretch(value)); -} - -template Windows::UI::Xaml::Media::Brush impl_IRichTextBlock::Foreground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Foreground(put(value))); - return value; -} - -template void impl_IRichTextBlock::Foreground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Foreground(get(value))); -} - -template Windows::UI::Xaml::TextWrapping impl_IRichTextBlock::TextWrapping() const -{ - Windows::UI::Xaml::TextWrapping value {}; - check_hresult(static_cast(static_cast(*this))->get_TextWrapping(&value)); - return value; -} - -template void impl_IRichTextBlock::TextWrapping(Windows::UI::Xaml::TextWrapping value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextWrapping(value)); -} - -template Windows::UI::Xaml::TextTrimming impl_IRichTextBlock::TextTrimming() const -{ - Windows::UI::Xaml::TextTrimming value {}; - check_hresult(static_cast(static_cast(*this))->get_TextTrimming(&value)); - return value; -} - -template void impl_IRichTextBlock::TextTrimming(Windows::UI::Xaml::TextTrimming value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextTrimming(value)); -} - -template Windows::UI::Xaml::TextAlignment impl_IRichTextBlock::TextAlignment() const -{ - Windows::UI::Xaml::TextAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_TextAlignment(&value)); - return value; -} - -template void impl_IRichTextBlock::TextAlignment(Windows::UI::Xaml::TextAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextAlignment(value)); -} - -template Windows::UI::Xaml::Documents::BlockCollection impl_IRichTextBlock::Blocks() const -{ - Windows::UI::Xaml::Documents::BlockCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Blocks(put(value))); - return value; -} - -template Windows::UI::Xaml::Thickness impl_IRichTextBlock::Padding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_Padding(put(value))); - return value; -} - -template void impl_IRichTextBlock::Padding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Padding(get(value))); -} - -template double impl_IRichTextBlock::LineHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_LineHeight(&value)); - return value; -} - -template void impl_IRichTextBlock::LineHeight(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LineHeight(value)); -} - -template Windows::UI::Xaml::LineStackingStrategy impl_IRichTextBlock::LineStackingStrategy() const -{ - Windows::UI::Xaml::LineStackingStrategy value {}; - check_hresult(static_cast(static_cast(*this))->get_LineStackingStrategy(&value)); - return value; -} - -template void impl_IRichTextBlock::LineStackingStrategy(Windows::UI::Xaml::LineStackingStrategy value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LineStackingStrategy(value)); -} - -template int32_t impl_IRichTextBlock::CharacterSpacing() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CharacterSpacing(&value)); - return value; -} - -template void impl_IRichTextBlock::CharacterSpacing(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CharacterSpacing(value)); -} - -template Windows::UI::Xaml::Controls::RichTextBlockOverflow impl_IRichTextBlock::OverflowContentTarget() const -{ - Windows::UI::Xaml::Controls::RichTextBlockOverflow value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OverflowContentTarget(put(value))); - return value; -} - -template void impl_IRichTextBlock::OverflowContentTarget(const Windows::UI::Xaml::Controls::RichTextBlockOverflow & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OverflowContentTarget(get(value))); -} - -template bool impl_IRichTextBlock::IsTextSelectionEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTextSelectionEnabled(&value)); - return value; -} - -template void impl_IRichTextBlock::IsTextSelectionEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTextSelectionEnabled(value)); -} - -template bool impl_IRichTextBlock::HasOverflowContent() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasOverflowContent(&value)); - return value; -} - -template hstring impl_IRichTextBlock::SelectedText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SelectedText(put(value))); - return value; -} - -template Windows::UI::Xaml::Documents::TextPointer impl_IRichTextBlock::ContentStart() const -{ - Windows::UI::Xaml::Documents::TextPointer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentStart(put(value))); - return value; -} - -template Windows::UI::Xaml::Documents::TextPointer impl_IRichTextBlock::ContentEnd() const -{ - Windows::UI::Xaml::Documents::TextPointer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentEnd(put(value))); - return value; -} - -template Windows::UI::Xaml::Documents::TextPointer impl_IRichTextBlock::SelectionStart() const -{ - Windows::UI::Xaml::Documents::TextPointer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionStart(put(value))); - return value; -} - -template Windows::UI::Xaml::Documents::TextPointer impl_IRichTextBlock::SelectionEnd() const -{ - Windows::UI::Xaml::Documents::TextPointer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionEnd(put(value))); - return value; -} - -template double impl_IRichTextBlock::BaselineOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_BaselineOffset(&value)); - return value; -} - -template event_token impl_IRichTextBlock::SelectionChanged(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SelectionChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IRichTextBlock::SelectionChanged(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IRichTextBlock::remove_SelectionChanged, SelectionChanged(value)); -} - -template void impl_IRichTextBlock::SelectionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SelectionChanged(token)); -} - -template event_token impl_IRichTextBlock::ContextMenuOpening(const Windows::UI::Xaml::Controls::ContextMenuOpeningEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ContextMenuOpening(get(value), &token)); - return token; -} - -template event_revoker impl_IRichTextBlock::ContextMenuOpening(auto_revoke_t, const Windows::UI::Xaml::Controls::ContextMenuOpeningEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IRichTextBlock::remove_ContextMenuOpening, ContextMenuOpening(value)); -} - -template void impl_IRichTextBlock::ContextMenuOpening(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContextMenuOpening(token)); -} - -template void impl_IRichTextBlock::SelectAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SelectAll()); -} - -template void impl_IRichTextBlock::Select(const Windows::UI::Xaml::Documents::TextPointer & start, const Windows::UI::Xaml::Documents::TextPointer & end) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Select(get(start), get(end))); -} - -template Windows::UI::Xaml::Documents::TextPointer impl_IRichTextBlock::GetPositionFromPoint(const Windows::Foundation::Point & point) const -{ - Windows::UI::Xaml::Documents::TextPointer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetPositionFromPoint(get(point), put(returnValue))); - return returnValue; -} - -template bool impl_IRichTextBlock::Focus(Windows::UI::Xaml::FocusState value) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_Focus(value, &returnValue)); - return returnValue; -} - -template double impl_IRichTextBlock::TextIndent() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_TextIndent(&value)); - return value; -} - -template void impl_IRichTextBlock::TextIndent(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextIndent(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::FontSizeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::FontFamilyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontFamilyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::FontWeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontWeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::FontStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::FontStretchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontStretchProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::ForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::TextWrappingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextWrappingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::TextTrimmingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextTrimmingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::TextAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::PaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaddingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::LineHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LineHeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::LineStackingStrategyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LineStackingStrategyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::CharacterSpacingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CharacterSpacingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::OverflowContentTargetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OverflowContentTargetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::IsTextSelectionEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTextSelectionEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::HasOverflowContentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HasOverflowContentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::SelectedTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics::TextIndentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextIndentProperty(put(value))); - return value; -} - -template int32_t impl_IRichTextBlock2::MaxLines() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxLines(&value)); - return value; -} - -template void impl_IRichTextBlock2::MaxLines(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxLines(value)); -} - -template Windows::UI::Xaml::TextLineBounds impl_IRichTextBlock2::TextLineBounds() const -{ - Windows::UI::Xaml::TextLineBounds value {}; - check_hresult(static_cast(static_cast(*this))->get_TextLineBounds(&value)); - return value; -} - -template void impl_IRichTextBlock2::TextLineBounds(Windows::UI::Xaml::TextLineBounds value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextLineBounds(value)); -} - -template Windows::UI::Xaml::Media::SolidColorBrush impl_IRichTextBlock2::SelectionHighlightColor() const -{ - Windows::UI::Xaml::Media::SolidColorBrush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionHighlightColor(put(value))); - return value; -} - -template void impl_IRichTextBlock2::SelectionHighlightColor(const Windows::UI::Xaml::Media::SolidColorBrush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionHighlightColor(get(value))); -} - -template Windows::UI::Xaml::OpticalMarginAlignment impl_IRichTextBlock2::OpticalMarginAlignment() const -{ - Windows::UI::Xaml::OpticalMarginAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_OpticalMarginAlignment(&value)); - return value; -} - -template void impl_IRichTextBlock2::OpticalMarginAlignment(Windows::UI::Xaml::OpticalMarginAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OpticalMarginAlignment(value)); -} - -template bool impl_IRichTextBlock2::IsColorFontEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsColorFontEnabled(&value)); - return value; -} - -template void impl_IRichTextBlock2::IsColorFontEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsColorFontEnabled(value)); -} - -template Windows::UI::Xaml::TextReadingOrder impl_IRichTextBlock2::TextReadingOrder() const -{ - Windows::UI::Xaml::TextReadingOrder value {}; - check_hresult(static_cast(static_cast(*this))->get_TextReadingOrder(&value)); - return value; -} - -template void impl_IRichTextBlock2::TextReadingOrder(Windows::UI::Xaml::TextReadingOrder value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextReadingOrder(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics2::MaxLinesProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxLinesProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics2::TextLineBoundsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextLineBoundsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics2::SelectionHighlightColorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionHighlightColorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics2::OpticalMarginAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OpticalMarginAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics2::IsColorFontEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsColorFontEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics2::TextReadingOrderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextReadingOrderProperty(put(value))); - return value; -} - -template bool impl_IRichTextBlock3::IsTextScaleFactorEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTextScaleFactorEnabled(&value)); - return value; -} - -template void impl_IRichTextBlock3::IsTextScaleFactorEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTextScaleFactorEnabled(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockStatics3::IsTextScaleFactorEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTextScaleFactorEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::RichTextBlockOverflow impl_IRichTextBlockOverflow::OverflowContentTarget() const -{ - Windows::UI::Xaml::Controls::RichTextBlockOverflow value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OverflowContentTarget(put(value))); - return value; -} - -template void impl_IRichTextBlockOverflow::OverflowContentTarget(const Windows::UI::Xaml::Controls::RichTextBlockOverflow & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OverflowContentTarget(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IRichTextBlockOverflow::Padding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_Padding(put(value))); - return value; -} - -template void impl_IRichTextBlockOverflow::Padding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Padding(get(value))); -} - -template Windows::UI::Xaml::Controls::RichTextBlock impl_IRichTextBlockOverflow::ContentSource() const -{ - Windows::UI::Xaml::Controls::RichTextBlock value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentSource(put(value))); - return value; -} - -template bool impl_IRichTextBlockOverflow::HasOverflowContent() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_HasOverflowContent(&value)); - return value; -} - -template Windows::UI::Xaml::Documents::TextPointer impl_IRichTextBlockOverflow::ContentStart() const -{ - Windows::UI::Xaml::Documents::TextPointer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentStart(put(value))); - return value; -} - -template Windows::UI::Xaml::Documents::TextPointer impl_IRichTextBlockOverflow::ContentEnd() const -{ - Windows::UI::Xaml::Documents::TextPointer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentEnd(put(value))); - return value; -} - -template double impl_IRichTextBlockOverflow::BaselineOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_BaselineOffset(&value)); - return value; -} - -template Windows::UI::Xaml::Documents::TextPointer impl_IRichTextBlockOverflow::GetPositionFromPoint(const Windows::Foundation::Point & point) const -{ - Windows::UI::Xaml::Documents::TextPointer returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetPositionFromPoint(get(point), put(returnValue))); - return returnValue; -} - -template bool impl_IRichTextBlockOverflow::Focus(Windows::UI::Xaml::FocusState value) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_Focus(value, &returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockOverflowStatics::OverflowContentTargetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OverflowContentTargetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockOverflowStatics::PaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaddingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockOverflowStatics::HasOverflowContentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HasOverflowContentProperty(put(value))); - return value; -} - -template int32_t impl_IRichTextBlockOverflow2::MaxLines() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxLines(&value)); - return value; -} - -template void impl_IRichTextBlockOverflow2::MaxLines(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxLines(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichTextBlockOverflowStatics2::MaxLinesProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxLinesProperty(put(value))); - return value; -} - -template double impl_ITextBlock::FontSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FontSize(&value)); - return value; -} - -template void impl_ITextBlock::FontSize(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontSize(value)); -} - -template Windows::UI::Xaml::Media::FontFamily impl_ITextBlock::FontFamily() const -{ - Windows::UI::Xaml::Media::FontFamily value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontFamily(put(value))); - return value; -} - -template void impl_ITextBlock::FontFamily(const Windows::UI::Xaml::Media::FontFamily & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontFamily(get(value))); -} - -template Windows::UI::Text::FontWeight impl_ITextBlock::FontWeight() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_FontWeight(put(value))); - return value; -} - -template void impl_ITextBlock::FontWeight(const Windows::UI::Text::FontWeight & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontWeight(get(value))); -} - -template Windows::UI::Text::FontStyle impl_ITextBlock::FontStyle() const -{ - Windows::UI::Text::FontStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_FontStyle(&value)); - return value; -} - -template void impl_ITextBlock::FontStyle(Windows::UI::Text::FontStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontStyle(value)); -} - -template Windows::UI::Text::FontStretch impl_ITextBlock::FontStretch() const -{ - Windows::UI::Text::FontStretch value {}; - check_hresult(static_cast(static_cast(*this))->get_FontStretch(&value)); - return value; -} - -template void impl_ITextBlock::FontStretch(Windows::UI::Text::FontStretch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontStretch(value)); -} - -template int32_t impl_ITextBlock::CharacterSpacing() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CharacterSpacing(&value)); - return value; -} - -template void impl_ITextBlock::CharacterSpacing(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CharacterSpacing(value)); -} - -template Windows::UI::Xaml::Media::Brush impl_ITextBlock::Foreground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Foreground(put(value))); - return value; -} - -template void impl_ITextBlock::Foreground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Foreground(get(value))); -} - -template Windows::UI::Xaml::TextWrapping impl_ITextBlock::TextWrapping() const -{ - Windows::UI::Xaml::TextWrapping value {}; - check_hresult(static_cast(static_cast(*this))->get_TextWrapping(&value)); - return value; -} - -template void impl_ITextBlock::TextWrapping(Windows::UI::Xaml::TextWrapping value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextWrapping(value)); -} - -template Windows::UI::Xaml::TextTrimming impl_ITextBlock::TextTrimming() const -{ - Windows::UI::Xaml::TextTrimming value {}; - check_hresult(static_cast(static_cast(*this))->get_TextTrimming(&value)); - return value; -} - -template void impl_ITextBlock::TextTrimming(Windows::UI::Xaml::TextTrimming value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextTrimming(value)); -} - -template Windows::UI::Xaml::TextAlignment impl_ITextBlock::TextAlignment() const -{ - Windows::UI::Xaml::TextAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_TextAlignment(&value)); - return value; -} - -template void impl_ITextBlock::TextAlignment(Windows::UI::Xaml::TextAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextAlignment(value)); -} - -template hstring impl_ITextBlock::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_ITextBlock::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template Windows::UI::Xaml::Documents::InlineCollection impl_ITextBlock::Inlines() const -{ - Windows::UI::Xaml::Documents::InlineCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Inlines(put(value))); - return value; -} - -template Windows::UI::Xaml::Thickness impl_ITextBlock::Padding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_Padding(put(value))); - return value; -} - -template void impl_ITextBlock::Padding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Padding(get(value))); -} - -template double impl_ITextBlock::LineHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_LineHeight(&value)); - return value; -} - -template void impl_ITextBlock::LineHeight(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LineHeight(value)); -} - -template Windows::UI::Xaml::LineStackingStrategy impl_ITextBlock::LineStackingStrategy() const -{ - Windows::UI::Xaml::LineStackingStrategy value {}; - check_hresult(static_cast(static_cast(*this))->get_LineStackingStrategy(&value)); - return value; -} - -template void impl_ITextBlock::LineStackingStrategy(Windows::UI::Xaml::LineStackingStrategy value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LineStackingStrategy(value)); -} - -template bool impl_ITextBlock::IsTextSelectionEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTextSelectionEnabled(&value)); - return value; -} - -template void impl_ITextBlock::IsTextSelectionEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTextSelectionEnabled(value)); -} - -template hstring impl_ITextBlock::SelectedText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SelectedText(put(value))); - return value; -} - -template Windows::UI::Xaml::Documents::TextPointer impl_ITextBlock::ContentStart() const -{ - Windows::UI::Xaml::Documents::TextPointer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentStart(put(value))); - return value; -} - -template Windows::UI::Xaml::Documents::TextPointer impl_ITextBlock::ContentEnd() const -{ - Windows::UI::Xaml::Documents::TextPointer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentEnd(put(value))); - return value; -} - -template Windows::UI::Xaml::Documents::TextPointer impl_ITextBlock::SelectionStart() const -{ - Windows::UI::Xaml::Documents::TextPointer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionStart(put(value))); - return value; -} - -template Windows::UI::Xaml::Documents::TextPointer impl_ITextBlock::SelectionEnd() const -{ - Windows::UI::Xaml::Documents::TextPointer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionEnd(put(value))); - return value; -} - -template double impl_ITextBlock::BaselineOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_BaselineOffset(&value)); - return value; -} - -template event_token impl_ITextBlock::SelectionChanged(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SelectionChanged(get(value), &token)); - return token; -} - -template event_revoker impl_ITextBlock::SelectionChanged(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITextBlock::remove_SelectionChanged, SelectionChanged(value)); -} - -template void impl_ITextBlock::SelectionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SelectionChanged(token)); -} - -template event_token impl_ITextBlock::ContextMenuOpening(const Windows::UI::Xaml::Controls::ContextMenuOpeningEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ContextMenuOpening(get(value), &token)); - return token; -} - -template event_revoker impl_ITextBlock::ContextMenuOpening(auto_revoke_t, const Windows::UI::Xaml::Controls::ContextMenuOpeningEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITextBlock::remove_ContextMenuOpening, ContextMenuOpening(value)); -} - -template void impl_ITextBlock::ContextMenuOpening(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContextMenuOpening(token)); -} - -template void impl_ITextBlock::SelectAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SelectAll()); -} - -template void impl_ITextBlock::Select(const Windows::UI::Xaml::Documents::TextPointer & start, const Windows::UI::Xaml::Documents::TextPointer & end) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Select(get(start), get(end))); -} - -template bool impl_ITextBlock::Focus(Windows::UI::Xaml::FocusState value) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_Focus(value, &returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::FontSizeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::FontFamilyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontFamilyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::FontWeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontWeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::FontStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::FontStretchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontStretchProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::CharacterSpacingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CharacterSpacingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::ForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::TextWrappingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextWrappingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::TextTrimmingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextTrimmingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::TextAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::TextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::PaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaddingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::LineHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LineHeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::LineStackingStrategyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LineStackingStrategyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::IsTextSelectionEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTextSelectionEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics::SelectedTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::SolidColorBrush impl_ITextBlock2::SelectionHighlightColor() const -{ - Windows::UI::Xaml::Media::SolidColorBrush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionHighlightColor(put(value))); - return value; -} - -template void impl_ITextBlock2::SelectionHighlightColor(const Windows::UI::Xaml::Media::SolidColorBrush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionHighlightColor(get(value))); -} - -template int32_t impl_ITextBlock2::MaxLines() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxLines(&value)); - return value; -} - -template void impl_ITextBlock2::MaxLines(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxLines(value)); -} - -template Windows::UI::Xaml::TextLineBounds impl_ITextBlock2::TextLineBounds() const -{ - Windows::UI::Xaml::TextLineBounds value {}; - check_hresult(static_cast(static_cast(*this))->get_TextLineBounds(&value)); - return value; -} - -template void impl_ITextBlock2::TextLineBounds(Windows::UI::Xaml::TextLineBounds value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextLineBounds(value)); -} - -template Windows::UI::Xaml::OpticalMarginAlignment impl_ITextBlock2::OpticalMarginAlignment() const -{ - Windows::UI::Xaml::OpticalMarginAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_OpticalMarginAlignment(&value)); - return value; -} - -template void impl_ITextBlock2::OpticalMarginAlignment(Windows::UI::Xaml::OpticalMarginAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OpticalMarginAlignment(value)); -} - -template bool impl_ITextBlock2::IsColorFontEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsColorFontEnabled(&value)); - return value; -} - -template void impl_ITextBlock2::IsColorFontEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsColorFontEnabled(value)); -} - -template Windows::UI::Xaml::TextReadingOrder impl_ITextBlock2::TextReadingOrder() const -{ - Windows::UI::Xaml::TextReadingOrder value {}; - check_hresult(static_cast(static_cast(*this))->get_TextReadingOrder(&value)); - return value; -} - -template void impl_ITextBlock2::TextReadingOrder(Windows::UI::Xaml::TextReadingOrder value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextReadingOrder(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics2::SelectionHighlightColorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionHighlightColorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics2::MaxLinesProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxLinesProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics2::TextLineBoundsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextLineBoundsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics2::OpticalMarginAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OpticalMarginAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics2::IsColorFontEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsColorFontEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics2::TextReadingOrderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextReadingOrderProperty(put(value))); - return value; -} - -template bool impl_ITextBlock3::IsTextScaleFactorEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTextScaleFactorEnabled(&value)); - return value; -} - -template void impl_ITextBlock3::IsTextScaleFactorEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTextScaleFactorEnabled(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBlockStatics3::IsTextScaleFactorEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTextScaleFactorEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Composition::CompositionBrush impl_ITextBlock4::GetAlphaMask() const -{ - Windows::UI::Composition::CompositionBrush returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAlphaMask(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::UIElement impl_IViewbox::Child() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Child(put(value))); - return value; -} - -template void impl_IViewbox::Child(const Windows::UI::Xaml::UIElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Child(get(value))); -} - -template Windows::UI::Xaml::Media::Stretch impl_IViewbox::Stretch() const -{ - Windows::UI::Xaml::Media::Stretch value {}; - check_hresult(static_cast(static_cast(*this))->get_Stretch(&value)); - return value; -} - -template void impl_IViewbox::Stretch(Windows::UI::Xaml::Media::Stretch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Stretch(value)); -} - -template Windows::UI::Xaml::Controls::StretchDirection impl_IViewbox::StretchDirection() const -{ - Windows::UI::Xaml::Controls::StretchDirection value {}; - check_hresult(static_cast(static_cast(*this))->get_StretchDirection(&value)); - return value; -} - -template void impl_IViewbox::StretchDirection(Windows::UI::Xaml::Controls::StretchDirection value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StretchDirection(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IViewboxStatics::StretchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StretchProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IViewboxStatics::StretchDirectionProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StretchDirectionProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICanvasStatics::LeftProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LeftProperty(put(value))); - return value; -} - -template double impl_ICanvasStatics::GetLeft(const Windows::UI::Xaml::UIElement & element) const -{ - double length {}; - check_hresult(static_cast(static_cast(*this))->abi_GetLeft(get(element), &length)); - return length; -} - -template void impl_ICanvasStatics::SetLeft(const Windows::UI::Xaml::UIElement & element, double length) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLeft(get(element), length)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ICanvasStatics::TopProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TopProperty(put(value))); - return value; -} - -template double impl_ICanvasStatics::GetTop(const Windows::UI::Xaml::UIElement & element) const -{ - double length {}; - check_hresult(static_cast(static_cast(*this))->abi_GetTop(get(element), &length)); - return length; -} - -template void impl_ICanvasStatics::SetTop(const Windows::UI::Xaml::UIElement & element, double length) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetTop(get(element), length)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ICanvasStatics::ZIndexProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ZIndexProperty(put(value))); - return value; -} - -template int32_t impl_ICanvasStatics::GetZIndex(const Windows::UI::Xaml::UIElement & element) const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetZIndex(get(element), &value)); - return value; -} - -template void impl_ICanvasStatics::SetZIndex(const Windows::UI::Xaml::UIElement & element, int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetZIndex(get(element), value)); -} - -template Windows::UI::Xaml::Controls::Canvas impl_ICanvasFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Canvas instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::IInspectable impl_IContentControl::Content() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template void impl_IContentControl::Content(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Content(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IContentControl::ContentTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTemplate(put(value))); - return value; -} - -template void impl_IContentControl::ContentTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentTemplate(get(value))); -} - -template Windows::UI::Xaml::Controls::DataTemplateSelector impl_IContentControl::ContentTemplateSelector() const -{ - Windows::UI::Xaml::Controls::DataTemplateSelector value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTemplateSelector(put(value))); - return value; -} - -template void impl_IContentControl::ContentTemplateSelector(const Windows::UI::Xaml::Controls::DataTemplateSelector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentTemplateSelector(get(value))); -} - -template Windows::UI::Xaml::Media::Animation::TransitionCollection impl_IContentControl::ContentTransitions() const -{ - Windows::UI::Xaml::Media::Animation::TransitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTransitions(put(value))); - return value; -} - -template void impl_IContentControl::ContentTransitions(const Windows::UI::Xaml::Media::Animation::TransitionCollection & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentTransitions(get(value))); -} - -template void impl_IContentControlOverrides::OnContentChanged(const Windows::IInspectable & oldContent, const Windows::IInspectable & newContent) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnContentChanged(get(oldContent), get(newContent))); -} - -template void impl_IContentControlOverrides::OnContentTemplateChanged(const Windows::UI::Xaml::DataTemplate & oldContentTemplate, const Windows::UI::Xaml::DataTemplate & newContentTemplate) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnContentTemplateChanged(get(oldContentTemplate), get(newContentTemplate))); -} - -template void impl_IContentControlOverrides::OnContentTemplateSelectorChanged(const Windows::UI::Xaml::Controls::DataTemplateSelector & oldContentTemplateSelector, const Windows::UI::Xaml::Controls::DataTemplateSelector & newContentTemplateSelector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnContentTemplateSelectorChanged(get(oldContentTemplateSelector), get(newContentTemplateSelector))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentControlStatics::ContentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentControlStatics::ContentTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentControlStatics::ContentTemplateSelectorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTemplateSelectorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentControlStatics::ContentTransitionsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTransitionsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ContentControl impl_IContentControlFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::ContentControl instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::UIElement impl_IContentControl2::ContentTemplateRoot() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTemplateRoot(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::RowDefinitionCollection impl_IGrid::RowDefinitions() const -{ - Windows::UI::Xaml::Controls::RowDefinitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RowDefinitions(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ColumnDefinitionCollection impl_IGrid::ColumnDefinitions() const -{ - Windows::UI::Xaml::Controls::ColumnDefinitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ColumnDefinitions(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridStatics::RowProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RowProperty(put(value))); - return value; -} - -template int32_t impl_IGridStatics::GetRow(const Windows::UI::Xaml::FrameworkElement & element) const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetRow(get(element), &value)); - return value; -} - -template void impl_IGridStatics::SetRow(const Windows::UI::Xaml::FrameworkElement & element, int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetRow(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridStatics::ColumnProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ColumnProperty(put(value))); - return value; -} - -template int32_t impl_IGridStatics::GetColumn(const Windows::UI::Xaml::FrameworkElement & element) const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetColumn(get(element), &value)); - return value; -} - -template void impl_IGridStatics::SetColumn(const Windows::UI::Xaml::FrameworkElement & element, int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetColumn(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridStatics::RowSpanProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RowSpanProperty(put(value))); - return value; -} - -template int32_t impl_IGridStatics::GetRowSpan(const Windows::UI::Xaml::FrameworkElement & element) const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetRowSpan(get(element), &value)); - return value; -} - -template void impl_IGridStatics::SetRowSpan(const Windows::UI::Xaml::FrameworkElement & element, int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetRowSpan(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridStatics::ColumnSpanProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ColumnSpanProperty(put(value))); - return value; -} - -template int32_t impl_IGridStatics::GetColumnSpan(const Windows::UI::Xaml::FrameworkElement & element) const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetColumnSpan(get(element), &value)); - return value; -} - -template void impl_IGridStatics::SetColumnSpan(const Windows::UI::Xaml::FrameworkElement & element, int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetColumnSpan(get(element), value)); -} - -template Windows::UI::Xaml::Controls::Grid impl_IGridFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Grid instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Media::Brush impl_IGrid2::BorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderBrush(put(value))); - return value; -} - -template void impl_IGrid2::BorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BorderBrush(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IGrid2::BorderThickness() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_BorderThickness(put(value))); - return value; -} - -template void impl_IGrid2::BorderThickness(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BorderThickness(get(value))); -} - -template Windows::UI::Xaml::CornerRadius impl_IGrid2::CornerRadius() const -{ - Windows::UI::Xaml::CornerRadius value {}; - check_hresult(static_cast(static_cast(*this))->get_CornerRadius(put(value))); - return value; -} - -template void impl_IGrid2::CornerRadius(const Windows::UI::Xaml::CornerRadius & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CornerRadius(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IGrid2::Padding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_Padding(put(value))); - return value; -} - -template void impl_IGrid2::Padding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Padding(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridStatics2::BorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridStatics2::BorderThicknessProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderThicknessProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridStatics2::CornerRadiusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CornerRadiusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IGridStatics2::PaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaddingProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IItemsControl::ItemsSource() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_ItemsSource(put(value))); - return value; -} - -template void impl_IItemsControl::ItemsSource(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemsSource(get(value))); -} - -template Windows::UI::Xaml::Controls::ItemCollection impl_IItemsControl::Items() const -{ - Windows::UI::Xaml::Controls::ItemCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Items(put(value))); - return value; -} - -template Windows::UI::Xaml::DataTemplate impl_IItemsControl::ItemTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemTemplate(put(value))); - return value; -} - -template void impl_IItemsControl::ItemTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemTemplate(get(value))); -} - -template Windows::UI::Xaml::Controls::DataTemplateSelector impl_IItemsControl::ItemTemplateSelector() const -{ - Windows::UI::Xaml::Controls::DataTemplateSelector value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemTemplateSelector(put(value))); - return value; -} - -template void impl_IItemsControl::ItemTemplateSelector(const Windows::UI::Xaml::Controls::DataTemplateSelector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemTemplateSelector(get(value))); -} - -template Windows::UI::Xaml::Controls::ItemsPanelTemplate impl_IItemsControl::ItemsPanel() const -{ - Windows::UI::Xaml::Controls::ItemsPanelTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemsPanel(put(value))); - return value; -} - -template void impl_IItemsControl::ItemsPanel(const Windows::UI::Xaml::Controls::ItemsPanelTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemsPanel(get(value))); -} - -template hstring impl_IItemsControl::DisplayMemberPath() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DisplayMemberPath(put(value))); - return value; -} - -template void impl_IItemsControl::DisplayMemberPath(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayMemberPath(get(value))); -} - -template Windows::UI::Xaml::Style impl_IItemsControl::ItemContainerStyle() const -{ - Windows::UI::Xaml::Style value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemContainerStyle(put(value))); - return value; -} - -template void impl_IItemsControl::ItemContainerStyle(const Windows::UI::Xaml::Style & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemContainerStyle(get(value))); -} - -template Windows::UI::Xaml::Controls::StyleSelector impl_IItemsControl::ItemContainerStyleSelector() const -{ - Windows::UI::Xaml::Controls::StyleSelector value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemContainerStyleSelector(put(value))); - return value; -} - -template void impl_IItemsControl::ItemContainerStyleSelector(const Windows::UI::Xaml::Controls::StyleSelector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemContainerStyleSelector(get(value))); -} - -template Windows::UI::Xaml::Controls::ItemContainerGenerator impl_IItemsControl::ItemContainerGenerator() const -{ - Windows::UI::Xaml::Controls::ItemContainerGenerator value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemContainerGenerator(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::Animation::TransitionCollection impl_IItemsControl::ItemContainerTransitions() const -{ - Windows::UI::Xaml::Media::Animation::TransitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemContainerTransitions(put(value))); - return value; -} - -template void impl_IItemsControl::ItemContainerTransitions(const Windows::UI::Xaml::Media::Animation::TransitionCollection & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemContainerTransitions(get(value))); -} - -template Windows::Foundation::Collections::IObservableVector impl_IItemsControl::GroupStyle() const -{ - Windows::Foundation::Collections::IObservableVector value; - check_hresult(static_cast(static_cast(*this))->get_GroupStyle(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::GroupStyleSelector impl_IItemsControl::GroupStyleSelector() const -{ - Windows::UI::Xaml::Controls::GroupStyleSelector value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GroupStyleSelector(put(value))); - return value; -} - -template void impl_IItemsControl::GroupStyleSelector(const Windows::UI::Xaml::Controls::GroupStyleSelector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GroupStyleSelector(get(value))); -} - -template bool impl_IItemsControl::IsGrouping() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsGrouping(&value)); - return value; -} - -template bool impl_IItemsControlOverrides::IsItemItsOwnContainerOverride(const Windows::IInspectable & item) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsItemItsOwnContainerOverride(get(item), &returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::DependencyObject impl_IItemsControlOverrides::GetContainerForItemOverride() const -{ - Windows::UI::Xaml::DependencyObject returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetContainerForItemOverride(put(returnValue))); - return returnValue; -} - -template void impl_IItemsControlOverrides::ClearContainerForItemOverride(const Windows::UI::Xaml::DependencyObject & element, const Windows::IInspectable & item) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ClearContainerForItemOverride(get(element), get(item))); -} - -template void impl_IItemsControlOverrides::PrepareContainerForItemOverride(const Windows::UI::Xaml::DependencyObject & element, const Windows::IInspectable & item) const -{ - check_hresult(static_cast(static_cast(*this))->abi_PrepareContainerForItemOverride(get(element), get(item))); -} - -template void impl_IItemsControlOverrides::OnItemsChanged(const Windows::IInspectable & e) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnItemsChanged(get(e))); -} - -template void impl_IItemsControlOverrides::OnItemContainerStyleChanged(const Windows::UI::Xaml::Style & oldItemContainerStyle, const Windows::UI::Xaml::Style & newItemContainerStyle) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnItemContainerStyleChanged(get(oldItemContainerStyle), get(newItemContainerStyle))); -} - -template void impl_IItemsControlOverrides::OnItemContainerStyleSelectorChanged(const Windows::UI::Xaml::Controls::StyleSelector & oldItemContainerStyleSelector, const Windows::UI::Xaml::Controls::StyleSelector & newItemContainerStyleSelector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnItemContainerStyleSelectorChanged(get(oldItemContainerStyleSelector), get(newItemContainerStyleSelector))); -} - -template void impl_IItemsControlOverrides::OnItemTemplateChanged(const Windows::UI::Xaml::DataTemplate & oldItemTemplate, const Windows::UI::Xaml::DataTemplate & newItemTemplate) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnItemTemplateChanged(get(oldItemTemplate), get(newItemTemplate))); -} - -template void impl_IItemsControlOverrides::OnItemTemplateSelectorChanged(const Windows::UI::Xaml::Controls::DataTemplateSelector & oldItemTemplateSelector, const Windows::UI::Xaml::Controls::DataTemplateSelector & newItemTemplateSelector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnItemTemplateSelectorChanged(get(oldItemTemplateSelector), get(newItemTemplateSelector))); -} - -template void impl_IItemsControlOverrides::OnGroupStyleSelectorChanged(const Windows::UI::Xaml::Controls::GroupStyleSelector & oldGroupStyleSelector, const Windows::UI::Xaml::Controls::GroupStyleSelector & newGroupStyleSelector) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnGroupStyleSelectorChanged(get(oldGroupStyleSelector), get(newGroupStyleSelector))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsControlStatics::ItemsSourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemsSourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsControlStatics::ItemTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsControlStatics::ItemTemplateSelectorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemTemplateSelectorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsControlStatics::ItemsPanelProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemsPanelProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsControlStatics::DisplayMemberPathProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisplayMemberPathProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsControlStatics::ItemContainerStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemContainerStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsControlStatics::ItemContainerStyleSelectorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemContainerStyleSelectorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsControlStatics::ItemContainerTransitionsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemContainerTransitionsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsControlStatics::GroupStyleSelectorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GroupStyleSelectorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsControlStatics::IsGroupingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsGroupingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ItemsControl impl_IItemsControlStatics::GetItemsOwner(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::UI::Xaml::Controls::ItemsControl returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetItemsOwner(get(element), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::ItemsControl impl_IItemsControlStatics::ItemsControlFromItemContainer(const Windows::UI::Xaml::DependencyObject & container) const -{ - Windows::UI::Xaml::Controls::ItemsControl returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_ItemsControlFromItemContainer(get(container), put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::ItemsControl impl_IItemsControlFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::ItemsControl instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Panel impl_IItemsControl2::ItemsPanelRoot() const -{ - Windows::UI::Xaml::Controls::Panel value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemsPanelRoot(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyObject impl_IItemsControl3::GroupHeaderContainerFromItemContainer(const Windows::UI::Xaml::DependencyObject & itemContainer) const -{ - Windows::UI::Xaml::DependencyObject returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GroupHeaderContainerFromItemContainer(get(itemContainer), put(returnValue))); - return returnValue; -} - -template bool impl_IMediaTransportControls::IsFullWindowButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFullWindowButtonVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsFullWindowButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFullWindowButtonVisible(value)); -} - -template bool impl_IMediaTransportControls::IsFullWindowEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFullWindowEnabled(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsFullWindowEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFullWindowEnabled(value)); -} - -template bool impl_IMediaTransportControls::IsZoomButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsZoomButtonVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsZoomButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsZoomButtonVisible(value)); -} - -template bool impl_IMediaTransportControls::IsZoomEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsZoomEnabled(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsZoomEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsZoomEnabled(value)); -} - -template bool impl_IMediaTransportControls::IsFastForwardButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFastForwardButtonVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsFastForwardButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFastForwardButtonVisible(value)); -} - -template bool impl_IMediaTransportControls::IsFastForwardEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFastForwardEnabled(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsFastForwardEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFastForwardEnabled(value)); -} - -template bool impl_IMediaTransportControls::IsFastRewindButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFastRewindButtonVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsFastRewindButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFastRewindButtonVisible(value)); -} - -template bool impl_IMediaTransportControls::IsFastRewindEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFastRewindEnabled(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsFastRewindEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFastRewindEnabled(value)); -} - -template bool impl_IMediaTransportControls::IsStopButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStopButtonVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsStopButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsStopButtonVisible(value)); -} - -template bool impl_IMediaTransportControls::IsStopEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStopEnabled(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsStopEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsStopEnabled(value)); -} - -template bool impl_IMediaTransportControls::IsVolumeButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVolumeButtonVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsVolumeButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsVolumeButtonVisible(value)); -} - -template bool impl_IMediaTransportControls::IsVolumeEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsVolumeEnabled(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsVolumeEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsVolumeEnabled(value)); -} - -template bool impl_IMediaTransportControls::IsPlaybackRateButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPlaybackRateButtonVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsPlaybackRateButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPlaybackRateButtonVisible(value)); -} - -template bool impl_IMediaTransportControls::IsPlaybackRateEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPlaybackRateEnabled(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsPlaybackRateEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPlaybackRateEnabled(value)); -} - -template bool impl_IMediaTransportControls::IsSeekBarVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSeekBarVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsSeekBarVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSeekBarVisible(value)); -} - -template bool impl_IMediaTransportControls::IsSeekEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSeekEnabled(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsSeekEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSeekEnabled(value)); -} - -template bool impl_IMediaTransportControls::IsCompact() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCompact(&value)); - return value; -} - -template void impl_IMediaTransportControls::IsCompact(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsCompact(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsFullWindowButtonVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsFullWindowButtonVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsFullWindowEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsFullWindowEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsZoomButtonVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsZoomButtonVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsZoomEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsZoomEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsFastForwardButtonVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsFastForwardButtonVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsFastForwardEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsFastForwardEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsFastRewindButtonVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsFastRewindButtonVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsFastRewindEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsFastRewindEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsStopButtonVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsStopButtonVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsStopEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsStopEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsVolumeButtonVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsVolumeButtonVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsVolumeEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsVolumeEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsPlaybackRateButtonVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsPlaybackRateButtonVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsPlaybackRateEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsPlaybackRateEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsSeekBarVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSeekBarVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsSeekEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSeekEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics::IsCompactProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsCompactProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::MediaTransportControls impl_IMediaTransportControlsFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::MediaTransportControls instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_IMediaTransportControls2::IsSkipForwardButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSkipForwardButtonVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls2::IsSkipForwardButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSkipForwardButtonVisible(value)); -} - -template bool impl_IMediaTransportControls2::IsSkipForwardEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSkipForwardEnabled(&value)); - return value; -} - -template void impl_IMediaTransportControls2::IsSkipForwardEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSkipForwardEnabled(value)); -} - -template bool impl_IMediaTransportControls2::IsSkipBackwardButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSkipBackwardButtonVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls2::IsSkipBackwardButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSkipBackwardButtonVisible(value)); -} - -template bool impl_IMediaTransportControls2::IsSkipBackwardEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSkipBackwardEnabled(&value)); - return value; -} - -template void impl_IMediaTransportControls2::IsSkipBackwardEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSkipBackwardEnabled(value)); -} - -template bool impl_IMediaTransportControls2::IsNextTrackButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsNextTrackButtonVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls2::IsNextTrackButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsNextTrackButtonVisible(value)); -} - -template bool impl_IMediaTransportControls2::IsPreviousTrackButtonVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPreviousTrackButtonVisible(&value)); - return value; -} - -template void impl_IMediaTransportControls2::IsPreviousTrackButtonVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPreviousTrackButtonVisible(value)); -} - -template Windows::UI::Xaml::Media::FastPlayFallbackBehaviour impl_IMediaTransportControls2::FastPlayFallbackBehaviour() const -{ - Windows::UI::Xaml::Media::FastPlayFallbackBehaviour value {}; - check_hresult(static_cast(static_cast(*this))->get_FastPlayFallbackBehaviour(&value)); - return value; -} - -template void impl_IMediaTransportControls2::FastPlayFallbackBehaviour(Windows::UI::Xaml::Media::FastPlayFallbackBehaviour value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FastPlayFallbackBehaviour(value)); -} - -template event_token impl_IMediaTransportControls2::ThumbnailRequested(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ThumbnailRequested(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaTransportControls2::ThumbnailRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaTransportControls2::remove_ThumbnailRequested, ThumbnailRequested(value)); -} - -template void impl_IMediaTransportControls2::ThumbnailRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ThumbnailRequested(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics2::IsSkipForwardButtonVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSkipForwardButtonVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics2::IsSkipForwardEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSkipForwardEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics2::IsSkipBackwardButtonVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSkipBackwardButtonVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics2::IsSkipBackwardEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSkipBackwardEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics2::IsNextTrackButtonVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsNextTrackButtonVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics2::IsPreviousTrackButtonVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsPreviousTrackButtonVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaTransportControlsStatics2::FastPlayFallbackBehaviourProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FastPlayFallbackBehaviourProperty(put(value))); - return value; -} - -template hstring impl_IPasswordBox::Password() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Password(put(value))); - return value; -} - -template void impl_IPasswordBox::Password(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Password(get(value))); -} - -template hstring impl_IPasswordBox::PasswordChar() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PasswordChar(put(value))); - return value; -} - -template void impl_IPasswordBox::PasswordChar(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PasswordChar(get(value))); -} - -template bool impl_IPasswordBox::IsPasswordRevealButtonEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPasswordRevealButtonEnabled(&value)); - return value; -} - -template void impl_IPasswordBox::IsPasswordRevealButtonEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPasswordRevealButtonEnabled(value)); -} - -template int32_t impl_IPasswordBox::MaxLength() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxLength(&value)); - return value; -} - -template void impl_IPasswordBox::MaxLength(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxLength(value)); -} - -template event_token impl_IPasswordBox::PasswordChanged(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PasswordChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IPasswordBox::PasswordChanged(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IPasswordBox::remove_PasswordChanged, PasswordChanged(value)); -} - -template void impl_IPasswordBox::PasswordChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PasswordChanged(token)); -} - -template event_token impl_IPasswordBox::ContextMenuOpening(const Windows::UI::Xaml::Controls::ContextMenuOpeningEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ContextMenuOpening(get(value), &token)); - return token; -} - -template event_revoker impl_IPasswordBox::ContextMenuOpening(auto_revoke_t, const Windows::UI::Xaml::Controls::ContextMenuOpeningEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IPasswordBox::remove_ContextMenuOpening, ContextMenuOpening(value)); -} - -template void impl_IPasswordBox::ContextMenuOpening(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContextMenuOpening(token)); -} - -template void impl_IPasswordBox::SelectAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SelectAll()); -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics::PasswordProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PasswordProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics::PasswordCharProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PasswordCharProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics::IsPasswordRevealButtonEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsPasswordRevealButtonEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics::MaxLengthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxLengthProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IPasswordBox2::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_IPasswordBox2::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IPasswordBox2::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_IPasswordBox2::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template hstring impl_IPasswordBox2::PlaceholderText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderText(put(value))); - return value; -} - -template void impl_IPasswordBox2::PlaceholderText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaceholderText(get(value))); -} - -template Windows::UI::Xaml::Media::SolidColorBrush impl_IPasswordBox2::SelectionHighlightColor() const -{ - Windows::UI::Xaml::Media::SolidColorBrush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionHighlightColor(put(value))); - return value; -} - -template void impl_IPasswordBox2::SelectionHighlightColor(const Windows::UI::Xaml::Media::SolidColorBrush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionHighlightColor(get(value))); -} - -template bool impl_IPasswordBox2::PreventKeyboardDisplayOnProgrammaticFocus() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PreventKeyboardDisplayOnProgrammaticFocus(&value)); - return value; -} - -template void impl_IPasswordBox2::PreventKeyboardDisplayOnProgrammaticFocus(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreventKeyboardDisplayOnProgrammaticFocus(value)); -} - -template event_token impl_IPasswordBox2::Paste(const Windows::UI::Xaml::Controls::TextControlPasteEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Paste(get(value), &token)); - return token; -} - -template event_revoker impl_IPasswordBox2::Paste(auto_revoke_t, const Windows::UI::Xaml::Controls::TextControlPasteEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IPasswordBox2::remove_Paste, Paste(value)); -} - -template void impl_IPasswordBox2::Paste(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Paste(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics2::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics2::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics2::PlaceholderTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics2::SelectionHighlightColorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionHighlightColorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics2::PreventKeyboardDisplayOnProgrammaticFocusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PreventKeyboardDisplayOnProgrammaticFocusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::PasswordRevealMode impl_IPasswordBox3::PasswordRevealMode() const -{ - Windows::UI::Xaml::Controls::PasswordRevealMode value {}; - check_hresult(static_cast(static_cast(*this))->get_PasswordRevealMode(&value)); - return value; -} - -template void impl_IPasswordBox3::PasswordRevealMode(Windows::UI::Xaml::Controls::PasswordRevealMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PasswordRevealMode(value)); -} - -template Windows::UI::Xaml::TextReadingOrder impl_IPasswordBox3::TextReadingOrder() const -{ - Windows::UI::Xaml::TextReadingOrder value {}; - check_hresult(static_cast(static_cast(*this))->get_TextReadingOrder(&value)); - return value; -} - -template void impl_IPasswordBox3::TextReadingOrder(Windows::UI::Xaml::TextReadingOrder value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextReadingOrder(value)); -} - -template Windows::UI::Xaml::Input::InputScope impl_IPasswordBox3::InputScope() const -{ - Windows::UI::Xaml::Input::InputScope value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputScope(put(value))); - return value; -} - -template void impl_IPasswordBox3::InputScope(const Windows::UI::Xaml::Input::InputScope & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InputScope(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics3::PasswordRevealModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PasswordRevealModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics3::TextReadingOrderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextReadingOrderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IPasswordBoxStatics3::InputScopeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputScopeProperty(put(value))); - return value; -} - -template bool impl_IProgressRing::IsActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsActive(&value)); - return value; -} - -template void impl_IProgressRing::IsActive(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsActive(value)); -} - -template Windows::UI::Xaml::Controls::Primitives::ProgressRingTemplateSettings impl_IProgressRing::TemplateSettings() const -{ - Windows::UI::Xaml::Controls::Primitives::ProgressRingTemplateSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemplateSettings(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IProgressRingStatics::IsActiveProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsActiveProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::Brush impl_IRelativePanel::BorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderBrush(put(value))); - return value; -} - -template void impl_IRelativePanel::BorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BorderBrush(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IRelativePanel::BorderThickness() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_BorderThickness(put(value))); - return value; -} - -template void impl_IRelativePanel::BorderThickness(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BorderThickness(get(value))); -} - -template Windows::UI::Xaml::CornerRadius impl_IRelativePanel::CornerRadius() const -{ - Windows::UI::Xaml::CornerRadius value {}; - check_hresult(static_cast(static_cast(*this))->get_CornerRadius(put(value))); - return value; -} - -template void impl_IRelativePanel::CornerRadius(const Windows::UI::Xaml::CornerRadius & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CornerRadius(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IRelativePanel::Padding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_Padding(put(value))); - return value; -} - -template void impl_IRelativePanel::Padding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Padding(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::LeftOfProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LeftOfProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IRelativePanelStatics::GetLeftOf(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_GetLeftOf(get(element), put(value))); - return value; -} - -template void impl_IRelativePanelStatics::SetLeftOf(const Windows::UI::Xaml::UIElement & element, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLeftOf(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AboveProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AboveProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IRelativePanelStatics::GetAbove(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_GetAbove(get(element), put(value))); - return value; -} - -template void impl_IRelativePanelStatics::SetAbove(const Windows::UI::Xaml::UIElement & element, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAbove(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::RightOfProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RightOfProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IRelativePanelStatics::GetRightOf(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_GetRightOf(get(element), put(value))); - return value; -} - -template void impl_IRelativePanelStatics::SetRightOf(const Windows::UI::Xaml::UIElement & element, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetRightOf(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::BelowProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BelowProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IRelativePanelStatics::GetBelow(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_GetBelow(get(element), put(value))); - return value; -} - -template void impl_IRelativePanelStatics::SetBelow(const Windows::UI::Xaml::UIElement & element, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetBelow(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignHorizontalCenterWithProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignHorizontalCenterWithProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IRelativePanelStatics::GetAlignHorizontalCenterWith(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignHorizontalCenterWith(get(element), put(value))); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignHorizontalCenterWith(const Windows::UI::Xaml::UIElement & element, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignHorizontalCenterWith(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignVerticalCenterWithProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignVerticalCenterWithProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IRelativePanelStatics::GetAlignVerticalCenterWith(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignVerticalCenterWith(get(element), put(value))); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignVerticalCenterWith(const Windows::UI::Xaml::UIElement & element, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignVerticalCenterWith(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignLeftWithProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignLeftWithProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IRelativePanelStatics::GetAlignLeftWith(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignLeftWith(get(element), put(value))); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignLeftWith(const Windows::UI::Xaml::UIElement & element, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignLeftWith(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignTopWithProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignTopWithProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IRelativePanelStatics::GetAlignTopWith(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignTopWith(get(element), put(value))); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignTopWith(const Windows::UI::Xaml::UIElement & element, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignTopWith(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignRightWithProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignRightWithProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IRelativePanelStatics::GetAlignRightWith(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignRightWith(get(element), put(value))); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignRightWith(const Windows::UI::Xaml::UIElement & element, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignRightWith(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignBottomWithProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignBottomWithProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IRelativePanelStatics::GetAlignBottomWith(const Windows::UI::Xaml::UIElement & element) const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignBottomWith(get(element), put(value))); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignBottomWith(const Windows::UI::Xaml::UIElement & element, const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignBottomWith(get(element), get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignLeftWithPanelProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignLeftWithPanelProperty(put(value))); - return value; -} - -template bool impl_IRelativePanelStatics::GetAlignLeftWithPanel(const Windows::UI::Xaml::UIElement & element) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignLeftWithPanel(get(element), &value)); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignLeftWithPanel(const Windows::UI::Xaml::UIElement & element, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignLeftWithPanel(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignTopWithPanelProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignTopWithPanelProperty(put(value))); - return value; -} - -template bool impl_IRelativePanelStatics::GetAlignTopWithPanel(const Windows::UI::Xaml::UIElement & element) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignTopWithPanel(get(element), &value)); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignTopWithPanel(const Windows::UI::Xaml::UIElement & element, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignTopWithPanel(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignRightWithPanelProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignRightWithPanelProperty(put(value))); - return value; -} - -template bool impl_IRelativePanelStatics::GetAlignRightWithPanel(const Windows::UI::Xaml::UIElement & element) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignRightWithPanel(get(element), &value)); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignRightWithPanel(const Windows::UI::Xaml::UIElement & element, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignRightWithPanel(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignBottomWithPanelProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignBottomWithPanelProperty(put(value))); - return value; -} - -template bool impl_IRelativePanelStatics::GetAlignBottomWithPanel(const Windows::UI::Xaml::UIElement & element) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignBottomWithPanel(get(element), &value)); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignBottomWithPanel(const Windows::UI::Xaml::UIElement & element, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignBottomWithPanel(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignHorizontalCenterWithPanelProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignHorizontalCenterWithPanelProperty(put(value))); - return value; -} - -template bool impl_IRelativePanelStatics::GetAlignHorizontalCenterWithPanel(const Windows::UI::Xaml::UIElement & element) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignHorizontalCenterWithPanel(get(element), &value)); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignHorizontalCenterWithPanel(const Windows::UI::Xaml::UIElement & element, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignHorizontalCenterWithPanel(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::AlignVerticalCenterWithPanelProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AlignVerticalCenterWithPanelProperty(put(value))); - return value; -} - -template bool impl_IRelativePanelStatics::GetAlignVerticalCenterWithPanel(const Windows::UI::Xaml::UIElement & element) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetAlignVerticalCenterWithPanel(get(element), &value)); - return value; -} - -template void impl_IRelativePanelStatics::SetAlignVerticalCenterWithPanel(const Windows::UI::Xaml::UIElement & element, bool value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetAlignVerticalCenterWithPanel(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::BorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::BorderThicknessProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderThicknessProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::CornerRadiusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CornerRadiusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRelativePanelStatics::PaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaddingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::RelativePanel impl_IRelativePanelFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::RelativePanel instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_IRichEditBox::IsReadOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnly(&value)); - return value; -} - -template void impl_IRichEditBox::IsReadOnly(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsReadOnly(value)); -} - -template bool impl_IRichEditBox::AcceptsReturn() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AcceptsReturn(&value)); - return value; -} - -template void impl_IRichEditBox::AcceptsReturn(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AcceptsReturn(value)); -} - -template Windows::UI::Xaml::TextAlignment impl_IRichEditBox::TextAlignment() const -{ - Windows::UI::Xaml::TextAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_TextAlignment(&value)); - return value; -} - -template void impl_IRichEditBox::TextAlignment(Windows::UI::Xaml::TextAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextAlignment(value)); -} - -template Windows::UI::Xaml::TextWrapping impl_IRichEditBox::TextWrapping() const -{ - Windows::UI::Xaml::TextWrapping value {}; - check_hresult(static_cast(static_cast(*this))->get_TextWrapping(&value)); - return value; -} - -template void impl_IRichEditBox::TextWrapping(Windows::UI::Xaml::TextWrapping value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextWrapping(value)); -} - -template bool impl_IRichEditBox::IsSpellCheckEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSpellCheckEnabled(&value)); - return value; -} - -template void impl_IRichEditBox::IsSpellCheckEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSpellCheckEnabled(value)); -} - -template bool impl_IRichEditBox::IsTextPredictionEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTextPredictionEnabled(&value)); - return value; -} - -template void impl_IRichEditBox::IsTextPredictionEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTextPredictionEnabled(value)); -} - -template Windows::UI::Text::ITextDocument impl_IRichEditBox::Document() const -{ - Windows::UI::Text::ITextDocument value; - check_hresult(static_cast(static_cast(*this))->get_Document(put(value))); - return value; -} - -template Windows::UI::Xaml::Input::InputScope impl_IRichEditBox::InputScope() const -{ - Windows::UI::Xaml::Input::InputScope value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputScope(put(value))); - return value; -} - -template void impl_IRichEditBox::InputScope(const Windows::UI::Xaml::Input::InputScope & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InputScope(get(value))); -} - -template event_token impl_IRichEditBox::TextChanged(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TextChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IRichEditBox::TextChanged(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IRichEditBox::remove_TextChanged, TextChanged(value)); -} - -template void impl_IRichEditBox::TextChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextChanged(token)); -} - -template event_token impl_IRichEditBox::SelectionChanged(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SelectionChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IRichEditBox::SelectionChanged(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IRichEditBox::remove_SelectionChanged, SelectionChanged(value)); -} - -template void impl_IRichEditBox::SelectionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SelectionChanged(token)); -} - -template event_token impl_IRichEditBox::ContextMenuOpening(const Windows::UI::Xaml::Controls::ContextMenuOpeningEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ContextMenuOpening(get(value), &token)); - return token; -} - -template event_revoker impl_IRichEditBox::ContextMenuOpening(auto_revoke_t, const Windows::UI::Xaml::Controls::ContextMenuOpeningEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IRichEditBox::remove_ContextMenuOpening, ContextMenuOpening(value)); -} - -template void impl_IRichEditBox::ContextMenuOpening(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContextMenuOpening(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics::IsReadOnlyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnlyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics::AcceptsReturnProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AcceptsReturnProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics::TextAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics::TextWrappingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextWrappingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics::IsSpellCheckEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSpellCheckEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics::IsTextPredictionEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTextPredictionEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics::InputScopeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputScopeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::RichEditBox impl_IRichEditBoxFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::RichEditBox instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::IInspectable impl_IRichEditBox2::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_IRichEditBox2::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IRichEditBox2::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_IRichEditBox2::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template hstring impl_IRichEditBox2::PlaceholderText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderText(put(value))); - return value; -} - -template void impl_IRichEditBox2::PlaceholderText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaceholderText(get(value))); -} - -template Windows::UI::Xaml::Media::SolidColorBrush impl_IRichEditBox2::SelectionHighlightColor() const -{ - Windows::UI::Xaml::Media::SolidColorBrush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionHighlightColor(put(value))); - return value; -} - -template void impl_IRichEditBox2::SelectionHighlightColor(const Windows::UI::Xaml::Media::SolidColorBrush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionHighlightColor(get(value))); -} - -template bool impl_IRichEditBox2::PreventKeyboardDisplayOnProgrammaticFocus() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PreventKeyboardDisplayOnProgrammaticFocus(&value)); - return value; -} - -template void impl_IRichEditBox2::PreventKeyboardDisplayOnProgrammaticFocus(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreventKeyboardDisplayOnProgrammaticFocus(value)); -} - -template bool impl_IRichEditBox2::IsColorFontEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsColorFontEnabled(&value)); - return value; -} - -template void impl_IRichEditBox2::IsColorFontEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsColorFontEnabled(value)); -} - -template event_token impl_IRichEditBox2::Paste(const Windows::UI::Xaml::Controls::TextControlPasteEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Paste(get(value), &token)); - return token; -} - -template event_revoker impl_IRichEditBox2::Paste(auto_revoke_t, const Windows::UI::Xaml::Controls::TextControlPasteEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IRichEditBox2::remove_Paste, Paste(value)); -} - -template void impl_IRichEditBox2::Paste(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Paste(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics2::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics2::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics2::PlaceholderTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics2::SelectionHighlightColorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionHighlightColorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics2::PreventKeyboardDisplayOnProgrammaticFocusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PreventKeyboardDisplayOnProgrammaticFocusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics2::IsColorFontEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsColorFontEnabledProperty(put(value))); - return value; -} - -template event_token impl_IRichEditBox3::TextCompositionStarted(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TextCompositionStarted(get(value), &token)); - return token; -} - -template event_revoker impl_IRichEditBox3::TextCompositionStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IRichEditBox3::remove_TextCompositionStarted, TextCompositionStarted(value)); -} - -template void impl_IRichEditBox3::TextCompositionStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextCompositionStarted(token)); -} - -template event_token impl_IRichEditBox3::TextCompositionChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TextCompositionChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IRichEditBox3::TextCompositionChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IRichEditBox3::remove_TextCompositionChanged, TextCompositionChanged(value)); -} - -template void impl_IRichEditBox3::TextCompositionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextCompositionChanged(token)); -} - -template event_token impl_IRichEditBox3::TextCompositionEnded(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TextCompositionEnded(get(value), &token)); - return token; -} - -template event_revoker impl_IRichEditBox3::TextCompositionEnded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IRichEditBox3::remove_TextCompositionEnded, TextCompositionEnded(value)); -} - -template void impl_IRichEditBox3::TextCompositionEnded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextCompositionEnded(token)); -} - -template Windows::UI::Xaml::TextReadingOrder impl_IRichEditBox3::TextReadingOrder() const -{ - Windows::UI::Xaml::TextReadingOrder value {}; - check_hresult(static_cast(static_cast(*this))->get_TextReadingOrder(&value)); - return value; -} - -template void impl_IRichEditBox3::TextReadingOrder(Windows::UI::Xaml::TextReadingOrder value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextReadingOrder(value)); -} - -template Windows::UI::Xaml::Controls::CandidateWindowAlignment impl_IRichEditBox3::DesiredCandidateWindowAlignment() const -{ - Windows::UI::Xaml::Controls::CandidateWindowAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredCandidateWindowAlignment(&value)); - return value; -} - -template void impl_IRichEditBox3::DesiredCandidateWindowAlignment(Windows::UI::Xaml::Controls::CandidateWindowAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredCandidateWindowAlignment(value)); -} - -template event_token impl_IRichEditBox3::CandidateWindowBoundsChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CandidateWindowBoundsChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IRichEditBox3::CandidateWindowBoundsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IRichEditBox3::remove_CandidateWindowBoundsChanged, CandidateWindowBoundsChanged(value)); -} - -template void impl_IRichEditBox3::CandidateWindowBoundsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CandidateWindowBoundsChanged(token)); -} - -template event_token impl_IRichEditBox3::TextChanging(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TextChanging(get(value), &token)); - return token; -} - -template event_revoker impl_IRichEditBox3::TextChanging(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IRichEditBox3::remove_TextChanging, TextChanging(value)); -} - -template void impl_IRichEditBox3::TextChanging(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextChanging(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics3::DesiredCandidateWindowAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DesiredCandidateWindowAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics3::TextReadingOrderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextReadingOrderProperty(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_IRichEditBox4::GetLinguisticAlternativesAsync() const -{ - Windows::Foundation::IAsyncOperation> returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetLinguisticAlternativesAsync(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::RichEditClipboardFormat impl_IRichEditBox4::ClipboardCopyFormat() const -{ - Windows::UI::Xaml::Controls::RichEditClipboardFormat value {}; - check_hresult(static_cast(static_cast(*this))->get_ClipboardCopyFormat(&value)); - return value; -} - -template void impl_IRichEditBox4::ClipboardCopyFormat(Windows::UI::Xaml::Controls::RichEditClipboardFormat value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ClipboardCopyFormat(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRichEditBoxStatics4::ClipboardCopyFormatProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ClipboardCopyFormatProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ISemanticZoomInformation impl_ISemanticZoom::ZoomedInView() const -{ - Windows::UI::Xaml::Controls::ISemanticZoomInformation value; - check_hresult(static_cast(static_cast(*this))->get_ZoomedInView(put(value))); - return value; -} - -template void impl_ISemanticZoom::ZoomedInView(const Windows::UI::Xaml::Controls::ISemanticZoomInformation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ZoomedInView(get(value))); -} - -template Windows::UI::Xaml::Controls::ISemanticZoomInformation impl_ISemanticZoom::ZoomedOutView() const -{ - Windows::UI::Xaml::Controls::ISemanticZoomInformation value; - check_hresult(static_cast(static_cast(*this))->get_ZoomedOutView(put(value))); - return value; -} - -template void impl_ISemanticZoom::ZoomedOutView(const Windows::UI::Xaml::Controls::ISemanticZoomInformation & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ZoomedOutView(get(value))); -} - -template bool impl_ISemanticZoom::IsZoomedInViewActive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsZoomedInViewActive(&value)); - return value; -} - -template void impl_ISemanticZoom::IsZoomedInViewActive(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsZoomedInViewActive(value)); -} - -template bool impl_ISemanticZoom::CanChangeViews() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanChangeViews(&value)); - return value; -} - -template void impl_ISemanticZoom::CanChangeViews(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanChangeViews(value)); -} - -template event_token impl_ISemanticZoom::ViewChangeStarted(const Windows::UI::Xaml::Controls::SemanticZoomViewChangedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ViewChangeStarted(get(value), &token)); - return token; -} - -template event_revoker impl_ISemanticZoom::ViewChangeStarted(auto_revoke_t, const Windows::UI::Xaml::Controls::SemanticZoomViewChangedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ISemanticZoom::remove_ViewChangeStarted, ViewChangeStarted(value)); -} - -template void impl_ISemanticZoom::ViewChangeStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ViewChangeStarted(token)); -} - -template event_token impl_ISemanticZoom::ViewChangeCompleted(const Windows::UI::Xaml::Controls::SemanticZoomViewChangedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ViewChangeCompleted(get(value), &token)); - return token; -} - -template event_revoker impl_ISemanticZoom::ViewChangeCompleted(auto_revoke_t, const Windows::UI::Xaml::Controls::SemanticZoomViewChangedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ISemanticZoom::remove_ViewChangeCompleted, ViewChangeCompleted(value)); -} - -template void impl_ISemanticZoom::ViewChangeCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ViewChangeCompleted(token)); -} - -template void impl_ISemanticZoom::ToggleActiveView() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ToggleActiveView()); -} - -template bool impl_ISemanticZoom::IsZoomOutButtonEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsZoomOutButtonEnabled(&value)); - return value; -} - -template void impl_ISemanticZoom::IsZoomOutButtonEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsZoomOutButtonEnabled(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ISemanticZoomStatics::ZoomedInViewProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ZoomedInViewProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISemanticZoomStatics::ZoomedOutViewProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ZoomedOutViewProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISemanticZoomStatics::IsZoomedInViewActiveProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsZoomedInViewActiveProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISemanticZoomStatics::CanChangeViewsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanChangeViewsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISemanticZoomStatics::IsZoomOutButtonEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsZoomOutButtonEnabledProperty(put(value))); - return value; -} - -template bool impl_IStackPanel::AreScrollSnapPointsRegular() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AreScrollSnapPointsRegular(&value)); - return value; -} - -template void impl_IStackPanel::AreScrollSnapPointsRegular(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AreScrollSnapPointsRegular(value)); -} - -template Windows::UI::Xaml::Controls::Orientation impl_IStackPanel::Orientation() const -{ - Windows::UI::Xaml::Controls::Orientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_IStackPanel::Orientation(Windows::UI::Xaml::Controls::Orientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IStackPanelStatics::AreScrollSnapPointsRegularProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AreScrollSnapPointsRegularProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IStackPanelStatics::OrientationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OrientationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::StackPanel impl_IStackPanelFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::StackPanel instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Media::Brush impl_IStackPanel2::BorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderBrush(put(value))); - return value; -} - -template void impl_IStackPanel2::BorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BorderBrush(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IStackPanel2::BorderThickness() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_BorderThickness(put(value))); - return value; -} - -template void impl_IStackPanel2::BorderThickness(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BorderThickness(get(value))); -} - -template Windows::UI::Xaml::CornerRadius impl_IStackPanel2::CornerRadius() const -{ - Windows::UI::Xaml::CornerRadius value {}; - check_hresult(static_cast(static_cast(*this))->get_CornerRadius(put(value))); - return value; -} - -template void impl_IStackPanel2::CornerRadius(const Windows::UI::Xaml::CornerRadius & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CornerRadius(get(value))); -} - -template Windows::UI::Xaml::Thickness impl_IStackPanel2::Padding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_Padding(put(value))); - return value; -} - -template void impl_IStackPanel2::Padding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Padding(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IStackPanelStatics2::BorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IStackPanelStatics2::BorderThicknessProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BorderThicknessProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IStackPanelStatics2::CornerRadiusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CornerRadiusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IStackPanelStatics2::PaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaddingProperty(put(value))); - return value; -} - -template hstring impl_ITextBox::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_ITextBox::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template hstring impl_ITextBox::SelectedText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SelectedText(put(value))); - return value; -} - -template void impl_ITextBox::SelectedText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedText(get(value))); -} - -template int32_t impl_ITextBox::SelectionLength() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectionLength(&value)); - return value; -} - -template void impl_ITextBox::SelectionLength(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionLength(value)); -} - -template int32_t impl_ITextBox::SelectionStart() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectionStart(&value)); - return value; -} - -template void impl_ITextBox::SelectionStart(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionStart(value)); -} - -template int32_t impl_ITextBox::MaxLength() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxLength(&value)); - return value; -} - -template void impl_ITextBox::MaxLength(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxLength(value)); -} - -template bool impl_ITextBox::IsReadOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnly(&value)); - return value; -} - -template void impl_ITextBox::IsReadOnly(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsReadOnly(value)); -} - -template bool impl_ITextBox::AcceptsReturn() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AcceptsReturn(&value)); - return value; -} - -template void impl_ITextBox::AcceptsReturn(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AcceptsReturn(value)); -} - -template Windows::UI::Xaml::TextAlignment impl_ITextBox::TextAlignment() const -{ - Windows::UI::Xaml::TextAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_TextAlignment(&value)); - return value; -} - -template void impl_ITextBox::TextAlignment(Windows::UI::Xaml::TextAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextAlignment(value)); -} - -template Windows::UI::Xaml::TextWrapping impl_ITextBox::TextWrapping() const -{ - Windows::UI::Xaml::TextWrapping value {}; - check_hresult(static_cast(static_cast(*this))->get_TextWrapping(&value)); - return value; -} - -template void impl_ITextBox::TextWrapping(Windows::UI::Xaml::TextWrapping value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextWrapping(value)); -} - -template bool impl_ITextBox::IsSpellCheckEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSpellCheckEnabled(&value)); - return value; -} - -template void impl_ITextBox::IsSpellCheckEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSpellCheckEnabled(value)); -} - -template bool impl_ITextBox::IsTextPredictionEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTextPredictionEnabled(&value)); - return value; -} - -template void impl_ITextBox::IsTextPredictionEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTextPredictionEnabled(value)); -} - -template Windows::UI::Xaml::Input::InputScope impl_ITextBox::InputScope() const -{ - Windows::UI::Xaml::Input::InputScope value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputScope(put(value))); - return value; -} - -template void impl_ITextBox::InputScope(const Windows::UI::Xaml::Input::InputScope & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_InputScope(get(value))); -} - -template event_token impl_ITextBox::TextChanged(const Windows::UI::Xaml::Controls::TextChangedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TextChanged(get(value), &token)); - return token; -} - -template event_revoker impl_ITextBox::TextChanged(auto_revoke_t, const Windows::UI::Xaml::Controls::TextChangedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITextBox::remove_TextChanged, TextChanged(value)); -} - -template void impl_ITextBox::TextChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextChanged(token)); -} - -template event_token impl_ITextBox::SelectionChanged(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SelectionChanged(get(value), &token)); - return token; -} - -template event_revoker impl_ITextBox::SelectionChanged(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITextBox::remove_SelectionChanged, SelectionChanged(value)); -} - -template void impl_ITextBox::SelectionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SelectionChanged(token)); -} - -template event_token impl_ITextBox::ContextMenuOpening(const Windows::UI::Xaml::Controls::ContextMenuOpeningEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ContextMenuOpening(get(value), &token)); - return token; -} - -template event_revoker impl_ITextBox::ContextMenuOpening(auto_revoke_t, const Windows::UI::Xaml::Controls::ContextMenuOpeningEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITextBox::remove_ContextMenuOpening, ContextMenuOpening(value)); -} - -template void impl_ITextBox::ContextMenuOpening(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContextMenuOpening(token)); -} - -template void impl_ITextBox::Select(int32_t start, int32_t length) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Select(start, length)); -} - -template void impl_ITextBox::SelectAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SelectAll()); -} - -template Windows::Foundation::Rect impl_ITextBox::GetRectFromCharacterIndex(int32_t charIndex, bool trailingEdge) const -{ - Windows::Foundation::Rect returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_GetRectFromCharacterIndex(charIndex, trailingEdge, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics::TextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics::MaxLengthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxLengthProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics::IsReadOnlyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsReadOnlyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics::AcceptsReturnProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AcceptsReturnProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics::TextAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics::TextWrappingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextWrappingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics::IsSpellCheckEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSpellCheckEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics::IsTextPredictionEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTextPredictionEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics::InputScopeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InputScopeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::TextBox impl_ITextBoxFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::TextBox instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::IInspectable impl_ITextBox2::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_ITextBox2::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_ITextBox2::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_ITextBox2::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template hstring impl_ITextBox2::PlaceholderText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderText(put(value))); - return value; -} - -template void impl_ITextBox2::PlaceholderText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaceholderText(get(value))); -} - -template Windows::UI::Xaml::Media::SolidColorBrush impl_ITextBox2::SelectionHighlightColor() const -{ - Windows::UI::Xaml::Media::SolidColorBrush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionHighlightColor(put(value))); - return value; -} - -template void impl_ITextBox2::SelectionHighlightColor(const Windows::UI::Xaml::Media::SolidColorBrush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionHighlightColor(get(value))); -} - -template bool impl_ITextBox2::PreventKeyboardDisplayOnProgrammaticFocus() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_PreventKeyboardDisplayOnProgrammaticFocus(&value)); - return value; -} - -template void impl_ITextBox2::PreventKeyboardDisplayOnProgrammaticFocus(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PreventKeyboardDisplayOnProgrammaticFocus(value)); -} - -template bool impl_ITextBox2::IsColorFontEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsColorFontEnabled(&value)); - return value; -} - -template void impl_ITextBox2::IsColorFontEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsColorFontEnabled(value)); -} - -template event_token impl_ITextBox2::Paste(const Windows::UI::Xaml::Controls::TextControlPasteEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Paste(get(value), &token)); - return token; -} - -template event_revoker impl_ITextBox2::Paste(auto_revoke_t, const Windows::UI::Xaml::Controls::TextControlPasteEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITextBox2::remove_Paste, Paste(value)); -} - -template void impl_ITextBox2::Paste(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Paste(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics2::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics2::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics2::PlaceholderTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics2::SelectionHighlightColorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionHighlightColorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics2::PreventKeyboardDisplayOnProgrammaticFocusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PreventKeyboardDisplayOnProgrammaticFocusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics2::IsColorFontEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsColorFontEnabledProperty(put(value))); - return value; -} - -template event_token impl_ITextBox3::TextCompositionStarted(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TextCompositionStarted(get(value), &token)); - return token; -} - -template event_revoker impl_ITextBox3::TextCompositionStarted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITextBox3::remove_TextCompositionStarted, TextCompositionStarted(value)); -} - -template void impl_ITextBox3::TextCompositionStarted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextCompositionStarted(token)); -} - -template event_token impl_ITextBox3::TextCompositionChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TextCompositionChanged(get(value), &token)); - return token; -} - -template event_revoker impl_ITextBox3::TextCompositionChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITextBox3::remove_TextCompositionChanged, TextCompositionChanged(value)); -} - -template void impl_ITextBox3::TextCompositionChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextCompositionChanged(token)); -} - -template event_token impl_ITextBox3::TextCompositionEnded(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TextCompositionEnded(get(value), &token)); - return token; -} - -template event_revoker impl_ITextBox3::TextCompositionEnded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITextBox3::remove_TextCompositionEnded, TextCompositionEnded(value)); -} - -template void impl_ITextBox3::TextCompositionEnded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextCompositionEnded(token)); -} - -template Windows::UI::Xaml::TextReadingOrder impl_ITextBox3::TextReadingOrder() const -{ - Windows::UI::Xaml::TextReadingOrder value {}; - check_hresult(static_cast(static_cast(*this))->get_TextReadingOrder(&value)); - return value; -} - -template void impl_ITextBox3::TextReadingOrder(Windows::UI::Xaml::TextReadingOrder value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextReadingOrder(value)); -} - -template Windows::UI::Xaml::Controls::CandidateWindowAlignment impl_ITextBox3::DesiredCandidateWindowAlignment() const -{ - Windows::UI::Xaml::Controls::CandidateWindowAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_DesiredCandidateWindowAlignment(&value)); - return value; -} - -template void impl_ITextBox3::DesiredCandidateWindowAlignment(Windows::UI::Xaml::Controls::CandidateWindowAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DesiredCandidateWindowAlignment(value)); -} - -template event_token impl_ITextBox3::CandidateWindowBoundsChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CandidateWindowBoundsChanged(get(value), &token)); - return token; -} - -template event_revoker impl_ITextBox3::CandidateWindowBoundsChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITextBox3::remove_CandidateWindowBoundsChanged, CandidateWindowBoundsChanged(value)); -} - -template void impl_ITextBox3::CandidateWindowBoundsChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CandidateWindowBoundsChanged(token)); -} - -template event_token impl_ITextBox3::TextChanging(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TextChanging(get(value), &token)); - return token; -} - -template event_revoker impl_ITextBox3::TextChanging(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITextBox3::remove_TextChanging, TextChanging(value)); -} - -template void impl_ITextBox3::TextChanging(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextChanging(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics3::DesiredCandidateWindowAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DesiredCandidateWindowAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITextBoxStatics3::TextReadingOrderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextReadingOrderProperty(put(value))); - return value; -} - -template Windows::Foundation::IAsyncOperation> impl_ITextBox4::GetLinguisticAlternativesAsync() const -{ - Windows::Foundation::IAsyncOperation> returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetLinguisticAlternativesAsync(put(returnValue))); - return returnValue; -} - -template bool impl_IToggleSwitch::IsOn() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOn(&value)); - return value; -} - -template void impl_IToggleSwitch::IsOn(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOn(value)); -} - -template Windows::IInspectable impl_IToggleSwitch::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_IToggleSwitch::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IToggleSwitch::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_IToggleSwitch::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template Windows::IInspectable impl_IToggleSwitch::OnContent() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_OnContent(put(value))); - return value; -} - -template void impl_IToggleSwitch::OnContent(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OnContent(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IToggleSwitch::OnContentTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OnContentTemplate(put(value))); - return value; -} - -template void impl_IToggleSwitch::OnContentTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OnContentTemplate(get(value))); -} - -template Windows::IInspectable impl_IToggleSwitch::OffContent() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_OffContent(put(value))); - return value; -} - -template void impl_IToggleSwitch::OffContent(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OffContent(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IToggleSwitch::OffContentTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OffContentTemplate(put(value))); - return value; -} - -template void impl_IToggleSwitch::OffContentTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OffContentTemplate(get(value))); -} - -template Windows::UI::Xaml::Controls::Primitives::ToggleSwitchTemplateSettings impl_IToggleSwitch::TemplateSettings() const -{ - Windows::UI::Xaml::Controls::Primitives::ToggleSwitchTemplateSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemplateSettings(put(value))); - return value; -} - -template event_token impl_IToggleSwitch::Toggled(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Toggled(get(value), &token)); - return token; -} - -template event_revoker impl_IToggleSwitch::Toggled(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IToggleSwitch::remove_Toggled, Toggled(value)); -} - -template void impl_IToggleSwitch::Toggled(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Toggled(token)); -} - -template void impl_IToggleSwitchOverrides::OnToggled() const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnToggled()); -} - -template void impl_IToggleSwitchOverrides::OnOnContentChanged(const Windows::IInspectable & oldContent, const Windows::IInspectable & newContent) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnOnContentChanged(get(oldContent), get(newContent))); -} - -template void impl_IToggleSwitchOverrides::OnOffContentChanged(const Windows::IInspectable & oldContent, const Windows::IInspectable & newContent) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnOffContentChanged(get(oldContent), get(newContent))); -} - -template void impl_IToggleSwitchOverrides::OnHeaderChanged(const Windows::IInspectable & oldContent, const Windows::IInspectable & newContent) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnHeaderChanged(get(oldContent), get(newContent))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IToggleSwitchStatics::IsOnProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsOnProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IToggleSwitchStatics::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IToggleSwitchStatics::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IToggleSwitchStatics::OnContentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OnContentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IToggleSwitchStatics::OnContentTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OnContentTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IToggleSwitchStatics::OffContentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OffContentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IToggleSwitchStatics::OffContentTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OffContentTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::UIElement impl_IUserControl::Content() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template void impl_IUserControl::Content(const Windows::UI::Xaml::UIElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Content(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IUserControlStatics::ContentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::UserControl impl_IUserControlFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::UserControl instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template double impl_IVariableSizedWrapGrid::ItemHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemHeight(&value)); - return value; -} - -template void impl_IVariableSizedWrapGrid::ItemHeight(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemHeight(value)); -} - -template double impl_IVariableSizedWrapGrid::ItemWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemWidth(&value)); - return value; -} - -template void impl_IVariableSizedWrapGrid::ItemWidth(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemWidth(value)); -} - -template Windows::UI::Xaml::Controls::Orientation impl_IVariableSizedWrapGrid::Orientation() const -{ - Windows::UI::Xaml::Controls::Orientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_IVariableSizedWrapGrid::Orientation(Windows::UI::Xaml::Controls::Orientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template Windows::UI::Xaml::HorizontalAlignment impl_IVariableSizedWrapGrid::HorizontalChildrenAlignment() const -{ - Windows::UI::Xaml::HorizontalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalChildrenAlignment(&value)); - return value; -} - -template void impl_IVariableSizedWrapGrid::HorizontalChildrenAlignment(Windows::UI::Xaml::HorizontalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HorizontalChildrenAlignment(value)); -} - -template Windows::UI::Xaml::VerticalAlignment impl_IVariableSizedWrapGrid::VerticalChildrenAlignment() const -{ - Windows::UI::Xaml::VerticalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalChildrenAlignment(&value)); - return value; -} - -template void impl_IVariableSizedWrapGrid::VerticalChildrenAlignment(Windows::UI::Xaml::VerticalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VerticalChildrenAlignment(value)); -} - -template int32_t impl_IVariableSizedWrapGrid::MaximumRowsOrColumns() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaximumRowsOrColumns(&value)); - return value; -} - -template void impl_IVariableSizedWrapGrid::MaximumRowsOrColumns(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaximumRowsOrColumns(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IVariableSizedWrapGridStatics::ItemHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemHeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IVariableSizedWrapGridStatics::ItemWidthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemWidthProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IVariableSizedWrapGridStatics::OrientationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OrientationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IVariableSizedWrapGridStatics::HorizontalChildrenAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HorizontalChildrenAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IVariableSizedWrapGridStatics::VerticalChildrenAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VerticalChildrenAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IVariableSizedWrapGridStatics::MaximumRowsOrColumnsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaximumRowsOrColumnsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IVariableSizedWrapGridStatics::RowSpanProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RowSpanProperty(put(value))); - return value; -} - -template int32_t impl_IVariableSizedWrapGridStatics::GetRowSpan(const Windows::UI::Xaml::UIElement & element) const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetRowSpan(get(element), &value)); - return value; -} - -template void impl_IVariableSizedWrapGridStatics::SetRowSpan(const Windows::UI::Xaml::UIElement & element, int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetRowSpan(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IVariableSizedWrapGridStatics::ColumnSpanProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ColumnSpanProperty(put(value))); - return value; -} - -template int32_t impl_IVariableSizedWrapGridStatics::GetColumnSpan(const Windows::UI::Xaml::UIElement & element) const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetColumnSpan(get(element), &value)); - return value; -} - -template void impl_IVariableSizedWrapGridStatics::SetColumnSpan(const Windows::UI::Xaml::UIElement & element, int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetColumnSpan(get(element), value)); -} - -template Windows::UI::Xaml::Controls::ItemContainerGenerator impl_IVirtualizingPanel::ItemContainerGenerator() const -{ - Windows::UI::Xaml::Controls::ItemContainerGenerator value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemContainerGenerator(put(value))); - return value; -} - -template void impl_IVirtualizingPanelOverrides::OnItemsChanged(const Windows::IInspectable & sender, const Windows::UI::Xaml::Controls::Primitives::ItemsChangedEventArgs & args) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnItemsChanged(get(sender), get(args))); -} - -template void impl_IVirtualizingPanelOverrides::OnClearChildren() const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnClearChildren()); -} - -template void impl_IVirtualizingPanelOverrides::BringIndexIntoView(int32_t index) const -{ - check_hresult(static_cast(static_cast(*this))->abi_BringIndexIntoView(index)); -} - -template void impl_IVirtualizingPanelProtected::AddInternalChild(const Windows::UI::Xaml::UIElement & child) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddInternalChild(get(child))); -} - -template void impl_IVirtualizingPanelProtected::InsertInternalChild(int32_t index, const Windows::UI::Xaml::UIElement & child) const -{ - check_hresult(static_cast(static_cast(*this))->abi_InsertInternalChild(index, get(child))); -} - -template void impl_IVirtualizingPanelProtected::RemoveInternalChildRange(int32_t index, int32_t range) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveInternalChildRange(index, range)); -} - -template Windows::UI::Xaml::Controls::GroupItem impl_IGroupItemFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::GroupItem instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_IProgressBar::IsIndeterminate() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsIndeterminate(&value)); - return value; -} - -template void impl_IProgressBar::IsIndeterminate(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsIndeterminate(value)); -} - -template bool impl_IProgressBar::ShowError() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShowError(&value)); - return value; -} - -template void impl_IProgressBar::ShowError(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShowError(value)); -} - -template bool impl_IProgressBar::ShowPaused() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShowPaused(&value)); - return value; -} - -template void impl_IProgressBar::ShowPaused(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShowPaused(value)); -} - -template Windows::UI::Xaml::Controls::Primitives::ProgressBarTemplateSettings impl_IProgressBar::TemplateSettings() const -{ - Windows::UI::Xaml::Controls::Primitives::ProgressBarTemplateSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemplateSettings(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IProgressBarStatics::IsIndeterminateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsIndeterminateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IProgressBarStatics::ShowErrorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ShowErrorProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IProgressBarStatics::ShowPausedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ShowPausedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ProgressBar impl_IProgressBarFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::ProgressBar instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template hstring impl_ISettingsFlyout::Title() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_ISettingsFlyout::Title(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ISettingsFlyout::HeaderBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderBackground(put(value))); - return value; -} - -template void impl_ISettingsFlyout::HeaderBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ISettingsFlyout::HeaderForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderForeground(put(value))); - return value; -} - -template void impl_ISettingsFlyout::HeaderForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderForeground(get(value))); -} - -template Windows::UI::Xaml::Media::ImageSource impl_ISettingsFlyout::IconSource() const -{ - Windows::UI::Xaml::Media::ImageSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IconSource(put(value))); - return value; -} - -template void impl_ISettingsFlyout::IconSource(const Windows::UI::Xaml::Media::ImageSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IconSource(get(value))); -} - -template Windows::UI::Xaml::Controls::Primitives::SettingsFlyoutTemplateSettings impl_ISettingsFlyout::TemplateSettings() const -{ - Windows::UI::Xaml::Controls::Primitives::SettingsFlyoutTemplateSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemplateSettings(put(value))); - return value; -} - -template event_token impl_ISettingsFlyout::BackClick(const Windows::UI::Xaml::Controls::BackClickEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BackClick(get(value), &token)); - return token; -} - -template event_revoker impl_ISettingsFlyout::BackClick(auto_revoke_t, const Windows::UI::Xaml::Controls::BackClickEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ISettingsFlyout::remove_BackClick, BackClick(value)); -} - -template void impl_ISettingsFlyout::BackClick(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BackClick(token)); -} - -template void impl_ISettingsFlyout::Show() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Show()); -} - -template void impl_ISettingsFlyout::ShowIndependent() const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowIndependent()); -} - -template void impl_ISettingsFlyout::Hide() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Hide()); -} - -template Windows::UI::Xaml::DependencyProperty impl_ISettingsFlyoutStatics::TitleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TitleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISettingsFlyoutStatics::HeaderBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISettingsFlyoutStatics::HeaderForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISettingsFlyoutStatics::IconSourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IconSourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::SettingsFlyout impl_ISettingsFlyoutFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::SettingsFlyout instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template double impl_ISlider::IntermediateValue() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_IntermediateValue(&value)); - return value; -} - -template void impl_ISlider::IntermediateValue(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IntermediateValue(value)); -} - -template double impl_ISlider::StepFrequency() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_StepFrequency(&value)); - return value; -} - -template void impl_ISlider::StepFrequency(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StepFrequency(value)); -} - -template Windows::UI::Xaml::Controls::Primitives::SliderSnapsTo impl_ISlider::SnapsTo() const -{ - Windows::UI::Xaml::Controls::Primitives::SliderSnapsTo value {}; - check_hresult(static_cast(static_cast(*this))->get_SnapsTo(&value)); - return value; -} - -template void impl_ISlider::SnapsTo(Windows::UI::Xaml::Controls::Primitives::SliderSnapsTo value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SnapsTo(value)); -} - -template double impl_ISlider::TickFrequency() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_TickFrequency(&value)); - return value; -} - -template void impl_ISlider::TickFrequency(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TickFrequency(value)); -} - -template Windows::UI::Xaml::Controls::Primitives::TickPlacement impl_ISlider::TickPlacement() const -{ - Windows::UI::Xaml::Controls::Primitives::TickPlacement value {}; - check_hresult(static_cast(static_cast(*this))->get_TickPlacement(&value)); - return value; -} - -template void impl_ISlider::TickPlacement(Windows::UI::Xaml::Controls::Primitives::TickPlacement value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TickPlacement(value)); -} - -template Windows::UI::Xaml::Controls::Orientation impl_ISlider::Orientation() const -{ - Windows::UI::Xaml::Controls::Orientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_ISlider::Orientation(Windows::UI::Xaml::Controls::Orientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template bool impl_ISlider::IsDirectionReversed() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDirectionReversed(&value)); - return value; -} - -template void impl_ISlider::IsDirectionReversed(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDirectionReversed(value)); -} - -template bool impl_ISlider::IsThumbToolTipEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsThumbToolTipEnabled(&value)); - return value; -} - -template void impl_ISlider::IsThumbToolTipEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsThumbToolTipEnabled(value)); -} - -template Windows::UI::Xaml::Data::IValueConverter impl_ISlider::ThumbToolTipValueConverter() const -{ - Windows::UI::Xaml::Data::IValueConverter value; - check_hresult(static_cast(static_cast(*this))->get_ThumbToolTipValueConverter(put(value))); - return value; -} - -template void impl_ISlider::ThumbToolTipValueConverter(const Windows::UI::Xaml::Data::IValueConverter & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ThumbToolTipValueConverter(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_ISliderStatics::IntermediateValueProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IntermediateValueProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISliderStatics::StepFrequencyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StepFrequencyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISliderStatics::SnapsToProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SnapsToProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISliderStatics::TickFrequencyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TickFrequencyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISliderStatics::TickPlacementProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TickPlacementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISliderStatics::OrientationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OrientationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISliderStatics::IsDirectionReversedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsDirectionReversedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISliderStatics::IsThumbToolTipEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsThumbToolTipEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISliderStatics::ThumbToolTipValueConverterProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ThumbToolTipValueConverterProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Slider impl_ISliderFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Slider instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::IInspectable impl_ISlider2::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_ISlider2::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_ISlider2::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_ISlider2::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_ISliderStatics2::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISliderStatics2::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template double impl_IToolTip::HorizontalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalOffset(&value)); - return value; -} - -template void impl_IToolTip::HorizontalOffset(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HorizontalOffset(value)); -} - -template bool impl_IToolTip::IsOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOpen(&value)); - return value; -} - -template void impl_IToolTip::IsOpen(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOpen(value)); -} - -template Windows::UI::Xaml::Controls::Primitives::PlacementMode impl_IToolTip::Placement() const -{ - Windows::UI::Xaml::Controls::Primitives::PlacementMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Placement(&value)); - return value; -} - -template void impl_IToolTip::Placement(Windows::UI::Xaml::Controls::Primitives::PlacementMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Placement(value)); -} - -template Windows::UI::Xaml::UIElement impl_IToolTip::PlacementTarget() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlacementTarget(put(value))); - return value; -} - -template void impl_IToolTip::PlacementTarget(const Windows::UI::Xaml::UIElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlacementTarget(get(value))); -} - -template double impl_IToolTip::VerticalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalOffset(&value)); - return value; -} - -template void impl_IToolTip::VerticalOffset(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VerticalOffset(value)); -} - -template Windows::UI::Xaml::Controls::Primitives::ToolTipTemplateSettings impl_IToolTip::TemplateSettings() const -{ - Windows::UI::Xaml::Controls::Primitives::ToolTipTemplateSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemplateSettings(put(value))); - return value; -} - -template event_token impl_IToolTip::Closed(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(value), &token)); - return token; -} - -template event_revoker impl_IToolTip::Closed(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IToolTip::remove_Closed, Closed(value)); -} - -template void impl_IToolTip::Closed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(token)); -} - -template event_token impl_IToolTip::Opened(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Opened(get(value), &token)); - return token; -} - -template event_revoker impl_IToolTip::Opened(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IToolTip::remove_Opened, Opened(value)); -} - -template void impl_IToolTip::Opened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Opened(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IToolTipStatics::HorizontalOffsetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HorizontalOffsetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IToolTipStatics::IsOpenProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsOpenProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IToolTipStatics::PlacementProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlacementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IToolTipStatics::PlacementTargetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlacementTargetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IToolTipStatics::VerticalOffsetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VerticalOffsetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ToolTip impl_IToolTipFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::ToolTip instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Button impl_IButtonFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Button instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::Primitives::FlyoutBase impl_IButtonWithFlyout::Flyout() const -{ - Windows::UI::Xaml::Controls::Primitives::FlyoutBase value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Flyout(put(value))); - return value; -} - -template void impl_IButtonWithFlyout::Flyout(const Windows::UI::Xaml::Controls::Primitives::FlyoutBase & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Flyout(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IButtonStaticsWithFlyout::FlyoutProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FlyoutProperty(put(value))); - return value; -} - -template bool impl_IComboBox::IsDropDownOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsDropDownOpen(&value)); - return value; -} - -template void impl_IComboBox::IsDropDownOpen(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsDropDownOpen(value)); -} - -template bool impl_IComboBox::IsEditable() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsEditable(&value)); - return value; -} - -template bool impl_IComboBox::IsSelectionBoxHighlighted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSelectionBoxHighlighted(&value)); - return value; -} - -template double impl_IComboBox::MaxDropDownHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxDropDownHeight(&value)); - return value; -} - -template void impl_IComboBox::MaxDropDownHeight(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxDropDownHeight(value)); -} - -template Windows::IInspectable impl_IComboBox::SelectionBoxItem() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_SelectionBoxItem(put(value))); - return value; -} - -template Windows::UI::Xaml::DataTemplate impl_IComboBox::SelectionBoxItemTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionBoxItemTemplate(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::ComboBoxTemplateSettings impl_IComboBox::TemplateSettings() const -{ - Windows::UI::Xaml::Controls::Primitives::ComboBoxTemplateSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemplateSettings(put(value))); - return value; -} - -template event_token impl_IComboBox::DropDownClosed(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DropDownClosed(get(value), &token)); - return token; -} - -template event_revoker impl_IComboBox::DropDownClosed(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IComboBox::remove_DropDownClosed, DropDownClosed(value)); -} - -template void impl_IComboBox::DropDownClosed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DropDownClosed(token)); -} - -template event_token impl_IComboBox::DropDownOpened(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DropDownOpened(get(value), &token)); - return token; -} - -template event_revoker impl_IComboBox::DropDownOpened(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IComboBox::remove_DropDownOpened, DropDownOpened(value)); -} - -template void impl_IComboBox::DropDownOpened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DropDownOpened(token)); -} - -template void impl_IComboBoxOverrides::OnDropDownClosed(const Windows::IInspectable & e) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnDropDownClosed(get(e))); -} - -template void impl_IComboBoxOverrides::OnDropDownOpened(const Windows::IInspectable & e) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnDropDownOpened(get(e))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IComboBoxStatics::IsDropDownOpenProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsDropDownOpenProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IComboBoxStatics::MaxDropDownHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxDropDownHeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ComboBox impl_IComboBoxFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::ComboBox instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::IInspectable impl_IComboBox2::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_IComboBox2::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IComboBox2::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_IComboBox2::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template hstring impl_IComboBox2::PlaceholderText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderText(put(value))); - return value; -} - -template void impl_IComboBox2::PlaceholderText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaceholderText(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IComboBoxStatics2::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IComboBoxStatics2::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IComboBoxStatics2::PlaceholderTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::LightDismissOverlayMode impl_IComboBox3::LightDismissOverlayMode() const -{ - Windows::UI::Xaml::Controls::LightDismissOverlayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayMode(&value)); - return value; -} - -template void impl_IComboBox3::LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LightDismissOverlayMode(value)); -} - -template bool impl_IComboBox3::IsTextSearchEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTextSearchEnabled(&value)); - return value; -} - -template void impl_IComboBox3::IsTextSearchEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTextSearchEnabled(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IComboBoxStatics3::LightDismissOverlayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IComboBoxStatics3::IsTextSearchEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTextSearchEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ComboBoxItem impl_IComboBoxItemFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::ComboBoxItem instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::FlipView impl_IFlipViewFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::FlipView instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_IFlipView2::UseTouchAnimationsForAllNavigation() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_UseTouchAnimationsForAllNavigation(&value)); - return value; -} - -template void impl_IFlipView2::UseTouchAnimationsForAllNavigation(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UseTouchAnimationsForAllNavigation(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IFlipViewStatics2::UseTouchAnimationsForAllNavigationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UseTouchAnimationsForAllNavigationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::FlipViewItem impl_IFlipViewItemFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::FlipViewItem instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::Foundation::Uri impl_IHyperlinkButton::NavigateUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NavigateUri(put(value))); - return value; -} - -template void impl_IHyperlinkButton::NavigateUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NavigateUri(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IHyperlinkButtonStatics::NavigateUriProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NavigateUriProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::HyperlinkButton impl_IHyperlinkButtonFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::HyperlinkButton instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::Foundation::Collections::IVector impl_IListBox::SelectedItems() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SelectedItems(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::SelectionMode impl_IListBox::SelectionMode() const -{ - Windows::UI::Xaml::Controls::SelectionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectionMode(&value)); - return value; -} - -template void impl_IListBox::SelectionMode(Windows::UI::Xaml::Controls::SelectionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionMode(value)); -} - -template void impl_IListBox::ScrollIntoView(const Windows::IInspectable & item) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ScrollIntoView(get(item))); -} - -template void impl_IListBox::SelectAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SelectAll()); -} - -template Windows::UI::Xaml::DependencyProperty impl_IListBoxStatics::SelectionModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ListBox impl_IListBoxFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::ListBox instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_IListBox2::SingleSelectionFollowsFocus() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SingleSelectionFollowsFocus(&value)); - return value; -} - -template void impl_IListBox2::SingleSelectionFollowsFocus(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SingleSelectionFollowsFocus(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IListBoxStatics2::SingleSelectionFollowsFocusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SingleSelectionFollowsFocusProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ListBoxItem impl_IListBoxItemFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::ListBoxItem instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::Foundation::Collections::IVector impl_IListViewBase::SelectedItems() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SelectedItems(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ListViewSelectionMode impl_IListViewBase::SelectionMode() const -{ - Windows::UI::Xaml::Controls::ListViewSelectionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectionMode(&value)); - return value; -} - -template void impl_IListViewBase::SelectionMode(Windows::UI::Xaml::Controls::ListViewSelectionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionMode(value)); -} - -template bool impl_IListViewBase::IsSwipeEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSwipeEnabled(&value)); - return value; -} - -template void impl_IListViewBase::IsSwipeEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSwipeEnabled(value)); -} - -template bool impl_IListViewBase::CanDragItems() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanDragItems(&value)); - return value; -} - -template void impl_IListViewBase::CanDragItems(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanDragItems(value)); -} - -template bool impl_IListViewBase::CanReorderItems() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanReorderItems(&value)); - return value; -} - -template void impl_IListViewBase::CanReorderItems(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanReorderItems(value)); -} - -template bool impl_IListViewBase::IsItemClickEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsItemClickEnabled(&value)); - return value; -} - -template void impl_IListViewBase::IsItemClickEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsItemClickEnabled(value)); -} - -template double impl_IListViewBase::DataFetchSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DataFetchSize(&value)); - return value; -} - -template void impl_IListViewBase::DataFetchSize(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DataFetchSize(value)); -} - -template double impl_IListViewBase::IncrementalLoadingThreshold() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_IncrementalLoadingThreshold(&value)); - return value; -} - -template void impl_IListViewBase::IncrementalLoadingThreshold(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncrementalLoadingThreshold(value)); -} - -template Windows::UI::Xaml::Controls::IncrementalLoadingTrigger impl_IListViewBase::IncrementalLoadingTrigger() const -{ - Windows::UI::Xaml::Controls::IncrementalLoadingTrigger value {}; - check_hresult(static_cast(static_cast(*this))->get_IncrementalLoadingTrigger(&value)); - return value; -} - -template void impl_IListViewBase::IncrementalLoadingTrigger(Windows::UI::Xaml::Controls::IncrementalLoadingTrigger value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IncrementalLoadingTrigger(value)); -} - -template event_token impl_IListViewBase::ItemClick(const Windows::UI::Xaml::Controls::ItemClickEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ItemClick(get(value), &token)); - return token; -} - -template event_revoker impl_IListViewBase::ItemClick(auto_revoke_t, const Windows::UI::Xaml::Controls::ItemClickEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IListViewBase::remove_ItemClick, ItemClick(value)); -} - -template void impl_IListViewBase::ItemClick(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ItemClick(token)); -} - -template event_token impl_IListViewBase::DragItemsStarting(const Windows::UI::Xaml::Controls::DragItemsStartingEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DragItemsStarting(get(value), &token)); - return token; -} - -template event_revoker impl_IListViewBase::DragItemsStarting(auto_revoke_t, const Windows::UI::Xaml::Controls::DragItemsStartingEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IListViewBase::remove_DragItemsStarting, DragItemsStarting(value)); -} - -template void impl_IListViewBase::DragItemsStarting(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DragItemsStarting(token)); -} - -template void impl_IListViewBase::ScrollIntoView(const Windows::IInspectable & item) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ScrollIntoView(get(item))); -} - -template void impl_IListViewBase::SelectAll() const -{ - check_hresult(static_cast(static_cast(*this))->abi_SelectAll()); -} - -template Windows::Foundation::IAsyncOperation impl_IListViewBase::LoadMoreItemsAsync() const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_LoadMoreItemsAsync(put(returnValue))); - return returnValue; -} - -template void impl_IListViewBase::ScrollIntoView(const Windows::IInspectable & item, Windows::UI::Xaml::Controls::ScrollIntoViewAlignment alignment) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ScrollIntoViewWithAlignment(get(item), alignment)); -} - -template Windows::IInspectable impl_IListViewBase::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_IListViewBase::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IListViewBase::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_IListViewBase::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template Windows::UI::Xaml::Media::Animation::TransitionCollection impl_IListViewBase::HeaderTransitions() const -{ - Windows::UI::Xaml::Media::Animation::TransitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTransitions(put(value))); - return value; -} - -template void impl_IListViewBase::HeaderTransitions(const Windows::UI::Xaml::Media::Animation::TransitionCollection & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTransitions(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::SelectionModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::IsSwipeEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSwipeEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::CanDragItemsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanDragItemsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::CanReorderItemsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanReorderItemsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::IsItemClickEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsItemClickEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::DataFetchSizeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DataFetchSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::IncrementalLoadingThresholdProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IncrementalLoadingThresholdProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::IncrementalLoadingTriggerProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IncrementalLoadingTriggerProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::SemanticZoomOwnerProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SemanticZoomOwnerProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::IsActiveViewProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsActiveViewProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::IsZoomedInViewProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsZoomedInViewProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics::HeaderTransitionsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTransitionsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ListViewBase impl_IListViewBaseFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::ListViewBase instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_IListViewBase2::ShowsScrollingPlaceholders() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ShowsScrollingPlaceholders(&value)); - return value; -} - -template void impl_IListViewBase2::ShowsScrollingPlaceholders(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ShowsScrollingPlaceholders(value)); -} - -template event_token impl_IListViewBase2::ContainerContentChanging(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ContainerContentChanging(get(value), &token)); - return token; -} - -template event_revoker impl_IListViewBase2::ContainerContentChanging(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IListViewBase2::remove_ContainerContentChanging, ContainerContentChanging(value)); -} - -template void impl_IListViewBase2::ContainerContentChanging(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContainerContentChanging(token)); -} - -template void impl_IListViewBase2::SetDesiredContainerUpdateDuration(const Windows::Foundation::TimeSpan & duration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDesiredContainerUpdateDuration(get(duration))); -} - -template Windows::IInspectable impl_IListViewBase2::Footer() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Footer(put(value))); - return value; -} - -template void impl_IListViewBase2::Footer(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Footer(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IListViewBase2::FooterTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FooterTemplate(put(value))); - return value; -} - -template void impl_IListViewBase2::FooterTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FooterTemplate(get(value))); -} - -template Windows::UI::Xaml::Media::Animation::TransitionCollection impl_IListViewBase2::FooterTransitions() const -{ - Windows::UI::Xaml::Media::Animation::TransitionCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FooterTransitions(put(value))); - return value; -} - -template void impl_IListViewBase2::FooterTransitions(const Windows::UI::Xaml::Media::Animation::TransitionCollection & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FooterTransitions(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics2::ShowsScrollingPlaceholdersProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ShowsScrollingPlaceholdersProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics2::FooterProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FooterProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics2::FooterTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FooterTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics2::FooterTransitionsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FooterTransitionsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ListViewReorderMode impl_IListViewBase3::ReorderMode() const -{ - Windows::UI::Xaml::Controls::ListViewReorderMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ReorderMode(&value)); - return value; -} - -template void impl_IListViewBase3::ReorderMode(Windows::UI::Xaml::Controls::ListViewReorderMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ReorderMode(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics3::ReorderModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ReorderModeProperty(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_IListViewBase4::SelectedRanges() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_SelectedRanges(put(value))); - return value; -} - -template bool impl_IListViewBase4::IsMultiSelectCheckBoxEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMultiSelectCheckBoxEnabled(&value)); - return value; -} - -template void impl_IListViewBase4::IsMultiSelectCheckBoxEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsMultiSelectCheckBoxEnabled(value)); -} - -template event_token impl_IListViewBase4::DragItemsCompleted(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DragItemsCompleted(get(value), &token)); - return token; -} - -template event_revoker impl_IListViewBase4::DragItemsCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IListViewBase4::remove_DragItemsCompleted, DragItemsCompleted(value)); -} - -template void impl_IListViewBase4::DragItemsCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DragItemsCompleted(token)); -} - -template event_token impl_IListViewBase4::ChoosingItemContainer(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ChoosingItemContainer(get(value), &token)); - return token; -} - -template event_revoker impl_IListViewBase4::ChoosingItemContainer(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IListViewBase4::remove_ChoosingItemContainer, ChoosingItemContainer(value)); -} - -template void impl_IListViewBase4::ChoosingItemContainer(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ChoosingItemContainer(token)); -} - -template event_token impl_IListViewBase4::ChoosingGroupHeaderContainer(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ChoosingGroupHeaderContainer(get(value), &token)); - return token; -} - -template event_revoker impl_IListViewBase4::ChoosingGroupHeaderContainer(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IListViewBase4::remove_ChoosingGroupHeaderContainer, ChoosingGroupHeaderContainer(value)); -} - -template void impl_IListViewBase4::ChoosingGroupHeaderContainer(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ChoosingGroupHeaderContainer(token)); -} - -template void impl_IListViewBase4::SelectRange(const Windows::UI::Xaml::Data::ItemIndexRange & itemIndexRange) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SelectRange(get(itemIndexRange))); -} - -template void impl_IListViewBase4::DeselectRange(const Windows::UI::Xaml::Data::ItemIndexRange & itemIndexRange) const -{ - check_hresult(static_cast(static_cast(*this))->abi_DeselectRange(get(itemIndexRange))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics4::IsMultiSelectCheckBoxEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsMultiSelectCheckBoxEnabledProperty(put(value))); - return value; -} - -template bool impl_IListViewBase5::SingleSelectionFollowsFocus() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SingleSelectionFollowsFocus(&value)); - return value; -} - -template void impl_IListViewBase5::SingleSelectionFollowsFocus(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SingleSelectionFollowsFocus(value)); -} - -template bool impl_IListViewBase5::IsDragSource() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_IsDragSource(&returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_IListViewBaseStatics5::SingleSelectionFollowsFocusProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SingleSelectionFollowsFocusProperty(put(value))); - return value; -} - -template bool impl_IVirtualizingStackPanel::AreScrollSnapPointsRegular() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AreScrollSnapPointsRegular(&value)); - return value; -} - -template void impl_IVirtualizingStackPanel::AreScrollSnapPointsRegular(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AreScrollSnapPointsRegular(value)); -} - -template Windows::UI::Xaml::Controls::Orientation impl_IVirtualizingStackPanel::Orientation() const -{ - Windows::UI::Xaml::Controls::Orientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_IVirtualizingStackPanel::Orientation(Windows::UI::Xaml::Controls::Orientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template event_token impl_IVirtualizingStackPanel::CleanUpVirtualizedItemEvent(const Windows::UI::Xaml::Controls::CleanUpVirtualizedItemEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CleanUpVirtualizedItemEvent(get(value), &token)); - return token; -} - -template event_revoker impl_IVirtualizingStackPanel::CleanUpVirtualizedItemEvent(auto_revoke_t, const Windows::UI::Xaml::Controls::CleanUpVirtualizedItemEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IVirtualizingStackPanel::remove_CleanUpVirtualizedItemEvent, CleanUpVirtualizedItemEvent(value)); -} - -template void impl_IVirtualizingStackPanel::CleanUpVirtualizedItemEvent(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CleanUpVirtualizedItemEvent(token)); -} - -template void impl_IVirtualizingStackPanelOverrides::OnCleanUpVirtualizedItem(const Windows::UI::Xaml::Controls::CleanUpVirtualizedItemEventArgs & e) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnCleanUpVirtualizedItem(get(e))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IVirtualizingStackPanelStatics::AreScrollSnapPointsRegularProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AreScrollSnapPointsRegularProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IVirtualizingStackPanelStatics::OrientationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OrientationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IVirtualizingStackPanelStatics::VirtualizationModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VirtualizationModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::VirtualizationMode impl_IVirtualizingStackPanelStatics::GetVirtualizationMode(const Windows::UI::Xaml::DependencyObject & element) const -{ - Windows::UI::Xaml::Controls::VirtualizationMode value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetVirtualizationMode(get(element), &value)); - return value; -} - -template void impl_IVirtualizingStackPanelStatics::SetVirtualizationMode(const Windows::UI::Xaml::DependencyObject & element, Windows::UI::Xaml::Controls::VirtualizationMode value) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetVirtualizationMode(get(element), value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IVirtualizingStackPanelStatics::IsVirtualizingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsVirtualizingProperty(put(value))); - return value; -} - -template bool impl_IVirtualizingStackPanelStatics::GetIsVirtualizing(const Windows::UI::Xaml::DependencyObject & o) const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->abi_GetIsVirtualizing(get(o), &value)); - return value; -} - -template Windows::UI::Xaml::Controls::CheckBox impl_ICheckBoxFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::CheckBox instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template hstring impl_IRadioButton::GroupName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_GroupName(put(value))); - return value; -} - -template void impl_IRadioButton::GroupName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GroupName(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IRadioButtonStatics::GroupNameProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GroupNameProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::RadioButton impl_IRadioButtonFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::RadioButton instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_ICommandBarElement::IsCompact() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCompact(&value)); - return value; -} - -template void impl_ICommandBarElement::IsCompact(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsCompact(value)); -} - -template bool impl_ICommandBarElement2::IsInOverflow() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInOverflow(&value)); - return value; -} - -template int32_t impl_ICommandBarElement2::DynamicOverflowOrder() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DynamicOverflowOrder(&value)); - return value; -} - -template void impl_ICommandBarElement2::DynamicOverflowOrder(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DynamicOverflowOrder(value)); -} - -template Windows::Foundation::IReference impl_ICalendarDatePickerDateChangedEventArgs::NewDate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_NewDate(put(value))); - return value; -} - -template Windows::Foundation::IReference impl_ICalendarDatePickerDateChangedEventArgs::OldDate() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_OldDate(put(value))); - return value; -} - -template bool impl_ICalendarViewDayItemChangingEventArgs::InRecycleQueue() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_InRecycleQueue(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::CalendarViewDayItem impl_ICalendarViewDayItemChangingEventArgs::Item() const -{ - Windows::UI::Xaml::Controls::CalendarViewDayItem value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Item(put(value))); - return value; -} - -template uint32_t impl_ICalendarViewDayItemChangingEventArgs::Phase() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Phase(&value)); - return value; -} - -template void impl_ICalendarViewDayItemChangingEventArgs::RegisterUpdateCallback(const Windows::Foundation::TypedEventHandler & callback) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterUpdateCallback(get(callback))); -} - -template void impl_ICalendarViewDayItemChangingEventArgs::RegisterUpdateCallback(uint32_t callbackPhase, const Windows::Foundation::TypedEventHandler & callback) const -{ - check_hresult(static_cast(static_cast(*this))->abi_RegisterUpdateCallbackWithPhase(callbackPhase, get(callback))); -} - -template Windows::Foundation::Collections::IVectorView impl_ICalendarViewSelectedDatesChangedEventArgs::AddedDates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_AddedDates(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVectorView impl_ICalendarViewSelectedDatesChangedEventArgs::RemovedDates() const -{ - Windows::Foundation::Collections::IVectorView value; - check_hresult(static_cast(static_cast(*this))->get_RemovedDates(put(value))); - return value; -} - -template void impl_IContentDialogButtonClickDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template bool impl_IContentDialogButtonClickEventArgs::Cancel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Cancel(&value)); - return value; -} - -template void impl_IContentDialogButtonClickEventArgs::Cancel(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Cancel(value)); -} - -template Windows::UI::Xaml::Controls::ContentDialogButtonClickDeferral impl_IContentDialogButtonClickEventArgs::GetDeferral() const -{ - Windows::UI::Xaml::Controls::ContentDialogButtonClickDeferral returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::ContentDialogResult impl_IContentDialogClosedEventArgs::Result() const -{ - Windows::UI::Xaml::Controls::ContentDialogResult value {}; - check_hresult(static_cast(static_cast(*this))->get_Result(&value)); - return value; -} - -template void impl_IContentDialogClosingDeferral::Complete() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Complete()); -} - -template Windows::UI::Xaml::Controls::ContentDialogResult impl_IContentDialogClosingEventArgs::Result() const -{ - Windows::UI::Xaml::Controls::ContentDialogResult value {}; - check_hresult(static_cast(static_cast(*this))->get_Result(&value)); - return value; -} - -template bool impl_IContentDialogClosingEventArgs::Cancel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Cancel(&value)); - return value; -} - -template void impl_IContentDialogClosingEventArgs::Cancel(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Cancel(value)); -} - -template Windows::UI::Xaml::Controls::ContentDialogClosingDeferral impl_IContentDialogClosingEventArgs::GetDeferral() const -{ - Windows::UI::Xaml::Controls::ContentDialogClosingDeferral returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetDeferral(put(returnValue))); - return returnValue; -} - -template Windows::Foundation::DateTime impl_IDatePickerValueChangedEventArgs::OldDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_OldDate(put(value))); - return value; -} - -template Windows::Foundation::DateTime impl_IDatePickerValueChangedEventArgs::NewDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_NewDate(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::CommandBarDynamicOverflowAction impl_IDynamicOverflowItemsChangingEventArgs::Action() const -{ - Windows::UI::Xaml::Controls::CommandBarDynamicOverflowAction value {}; - check_hresult(static_cast(static_cast(*this))->get_Action(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::HubSection impl_IHubSectionHeaderClickEventArgs::Section() const -{ - Windows::UI::Xaml::Controls::HubSection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Section(put(value))); - return value; -} - -template hstring impl_IListViewPersistenceHelperStatics::GetRelativeScrollPosition(const Windows::UI::Xaml::Controls::ListViewBase & listViewBase, const Windows::UI::Xaml::Controls::ListViewItemToKeyHandler & itemToKeyHandler) const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetRelativeScrollPosition(get(listViewBase), get(itemToKeyHandler), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncAction impl_IListViewPersistenceHelperStatics::SetRelativeScrollPositionAsync(const Windows::UI::Xaml::Controls::ListViewBase & listViewBase, hstring_ref relativeScrollPosition, const Windows::UI::Xaml::Controls::ListViewKeyToItemHandler & keyToItemHandler) const -{ - Windows::Foundation::IAsyncAction returnValue; - check_hresult(static_cast(static_cast(*this))->abi_SetRelativeScrollPositionAsync(get(listViewBase), get(relativeScrollPosition), get(keyToItemHandler), put(returnValue))); - return returnValue; -} - -template double impl_IScrollViewerView::HorizontalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalOffset(&value)); - return value; -} - -template double impl_IScrollViewerView::VerticalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalOffset(&value)); - return value; -} - -template float impl_IScrollViewerView::ZoomFactor() const -{ - float value {}; - check_hresult(static_cast(static_cast(*this))->get_ZoomFactor(&value)); - return value; -} - -template bool impl_IScrollViewerViewChangedEventArgs::IsIntermediate() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsIntermediate(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::ScrollViewerView impl_IScrollViewerViewChangingEventArgs::NextView() const -{ - Windows::UI::Xaml::Controls::ScrollViewerView value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NextView(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ScrollViewerView impl_IScrollViewerViewChangingEventArgs::FinalView() const -{ - Windows::UI::Xaml::Controls::ScrollViewerView value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FinalView(put(value))); - return value; -} - -template bool impl_IScrollViewerViewChangingEventArgs::IsInertial() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsInertial(&value)); - return value; -} - -template hstring impl_ISearchBoxQueryChangedEventArgs::QueryText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QueryText(put(value))); - return value; -} - -template hstring impl_ISearchBoxQueryChangedEventArgs::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template Windows::ApplicationModel::Search::SearchQueryLinguisticDetails impl_ISearchBoxQueryChangedEventArgs::LinguisticDetails() const -{ - Windows::ApplicationModel::Search::SearchQueryLinguisticDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LinguisticDetails(put(value))); - return value; -} - -template hstring impl_ISearchBoxQuerySubmittedEventArgs::QueryText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QueryText(put(value))); - return value; -} - -template hstring impl_ISearchBoxQuerySubmittedEventArgs::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template Windows::ApplicationModel::Search::SearchQueryLinguisticDetails impl_ISearchBoxQuerySubmittedEventArgs::LinguisticDetails() const -{ - Windows::ApplicationModel::Search::SearchQueryLinguisticDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LinguisticDetails(put(value))); - return value; -} - -template Windows::System::VirtualKeyModifiers impl_ISearchBoxQuerySubmittedEventArgs::KeyModifiers() const -{ - Windows::System::VirtualKeyModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyModifiers(&value)); - return value; -} - -template hstring impl_ISearchBoxResultSuggestionChosenEventArgs::Tag() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Tag(put(value))); - return value; -} - -template Windows::System::VirtualKeyModifiers impl_ISearchBoxResultSuggestionChosenEventArgs::KeyModifiers() const -{ - Windows::System::VirtualKeyModifiers value {}; - check_hresult(static_cast(static_cast(*this))->get_KeyModifiers(&value)); - return value; -} - -template hstring impl_ISearchBoxSuggestionsRequestedEventArgs::QueryText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QueryText(put(value))); - return value; -} - -template hstring impl_ISearchBoxSuggestionsRequestedEventArgs::Language() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Language(put(value))); - return value; -} - -template Windows::ApplicationModel::Search::SearchQueryLinguisticDetails impl_ISearchBoxSuggestionsRequestedEventArgs::LinguisticDetails() const -{ - Windows::ApplicationModel::Search::SearchQueryLinguisticDetails value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LinguisticDetails(put(value))); - return value; -} - -template Windows::ApplicationModel::Search::SearchSuggestionsRequest impl_ISearchBoxSuggestionsRequestedEventArgs::Request() const -{ - Windows::ApplicationModel::Search::SearchSuggestionsRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Request(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISectionsInViewChangedEventArgs::AddedSections() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_AddedSections(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_ISectionsInViewChangedEventArgs::RemovedSections() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_RemovedSections(put(value))); - return value; -} - -template bool impl_ISplitViewPaneClosingEventArgs::Cancel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Cancel(&value)); - return value; -} - -template void impl_ISplitViewPaneClosingEventArgs::Cancel(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Cancel(value)); -} - -template Windows::Foundation::TimeSpan impl_ITimePickerValueChangedEventArgs::OldTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_OldTime(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_ITimePickerValueChangedEventArgs::NewTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_NewTime(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IWebViewContentLoadingEventArgs::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IWebViewDeferredPermissionRequest::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::WebViewPermissionType impl_IWebViewDeferredPermissionRequest::PermissionType() const -{ - Windows::UI::Xaml::Controls::WebViewPermissionType value {}; - check_hresult(static_cast(static_cast(*this))->get_PermissionType(&value)); - return value; -} - -template uint32_t impl_IWebViewDeferredPermissionRequest::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template void impl_IWebViewDeferredPermissionRequest::Allow() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Allow()); -} - -template void impl_IWebViewDeferredPermissionRequest::Deny() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Deny()); -} - -template Windows::Foundation::Uri impl_IWebViewDOMContentLoadedEventArgs::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IWebViewLongRunningScriptDetectedEventArgs::ExecutionTime() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_ExecutionTime(put(value))); - return value; -} - -template bool impl_IWebViewLongRunningScriptDetectedEventArgs::StopPageScriptExecution() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_StopPageScriptExecution(&value)); - return value; -} - -template void impl_IWebViewLongRunningScriptDetectedEventArgs::StopPageScriptExecution(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_StopPageScriptExecution(value)); -} - -template Windows::Foundation::Uri impl_IWebViewNavigationCompletedEventArgs::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template bool impl_IWebViewNavigationCompletedEventArgs::IsSuccess() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSuccess(&value)); - return value; -} - -template Windows::Web::WebErrorStatus impl_IWebViewNavigationCompletedEventArgs::WebErrorStatus() const -{ - Windows::Web::WebErrorStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_WebErrorStatus(&value)); - return value; -} - -template Windows::Foundation::Uri impl_IWebViewNavigationFailedEventArgs::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template Windows::Web::WebErrorStatus impl_IWebViewNavigationFailedEventArgs::WebErrorStatus() const -{ - Windows::Web::WebErrorStatus value {}; - check_hresult(static_cast(static_cast(*this))->get_WebErrorStatus(&value)); - return value; -} - -template Windows::Foundation::Uri impl_IWebViewNavigationStartingEventArgs::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template bool impl_IWebViewNavigationStartingEventArgs::Cancel() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Cancel(&value)); - return value; -} - -template void impl_IWebViewNavigationStartingEventArgs::Cancel(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Cancel(value)); -} - -template Windows::Foundation::Uri impl_IWebViewNewWindowRequestedEventArgs::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IWebViewNewWindowRequestedEventArgs::Referrer() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Referrer(put(value))); - return value; -} - -template bool impl_IWebViewNewWindowRequestedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IWebViewNewWindowRequestedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::Foundation::Uri impl_IWebViewPermissionRequest::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::WebViewPermissionType impl_IWebViewPermissionRequest::PermissionType() const -{ - Windows::UI::Xaml::Controls::WebViewPermissionType value {}; - check_hresult(static_cast(static_cast(*this))->get_PermissionType(&value)); - return value; -} - -template uint32_t impl_IWebViewPermissionRequest::Id() const -{ - uint32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_Id(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::WebViewPermissionState impl_IWebViewPermissionRequest::State() const -{ - Windows::UI::Xaml::Controls::WebViewPermissionState value {}; - check_hresult(static_cast(static_cast(*this))->get_State(&value)); - return value; -} - -template void impl_IWebViewPermissionRequest::Defer() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Defer()); -} - -template void impl_IWebViewPermissionRequest::Allow() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Allow()); -} - -template void impl_IWebViewPermissionRequest::Deny() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Deny()); -} - -template Windows::UI::Xaml::Controls::WebViewPermissionRequest impl_IWebViewPermissionRequestedEventArgs::PermissionRequest() const -{ - Windows::UI::Xaml::Controls::WebViewPermissionRequest value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PermissionRequest(put(value))); - return value; -} - -template bool impl_IWebViewSettings::IsJavaScriptEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsJavaScriptEnabled(&value)); - return value; -} - -template void impl_IWebViewSettings::IsJavaScriptEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsJavaScriptEnabled(value)); -} - -template bool impl_IWebViewSettings::IsIndexedDBEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsIndexedDBEnabled(&value)); - return value; -} - -template void impl_IWebViewSettings::IsIndexedDBEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsIndexedDBEnabled(value)); -} - -template Windows::Foundation::Uri impl_IWebViewUnsupportedUriSchemeIdentifiedEventArgs::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template bool impl_IWebViewUnsupportedUriSchemeIdentifiedEventArgs::Handled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_Handled(&value)); - return value; -} - -template void impl_IWebViewUnsupportedUriSchemeIdentifiedEventArgs::Handled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Handled(value)); -} - -template Windows::Foundation::Uri impl_IWebViewUnviewableContentIdentifiedEventArgs::Uri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Uri(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IWebViewUnviewableContentIdentifiedEventArgs::Referrer() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Referrer(put(value))); - return value; -} - -template hstring impl_IWebViewUnviewableContentIdentifiedEventArgs2::MediaType() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MediaType(put(value))); - return value; -} - -template hstring impl_IAutoSuggestBoxQuerySubmittedEventArgs::QueryText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QueryText(put(value))); - return value; -} - -template Windows::IInspectable impl_IAutoSuggestBoxQuerySubmittedEventArgs::ChosenSuggestion() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_ChosenSuggestion(put(value))); - return value; -} - -template Windows::IInspectable impl_IAutoSuggestBoxSuggestionChosenEventArgs::SelectedItem() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_SelectedItem(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::AutoSuggestionBoxTextChangeReason impl_IAutoSuggestBoxTextChangedEventArgs::Reason() const -{ - Windows::UI::Xaml::Controls::AutoSuggestionBoxTextChangeReason value {}; - check_hresult(static_cast(static_cast(*this))->get_Reason(&value)); - return value; -} - -template void impl_IAutoSuggestBoxTextChangedEventArgs::Reason(Windows::UI::Xaml::Controls::AutoSuggestionBoxTextChangeReason value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Reason(value)); -} - -template bool impl_IAutoSuggestBoxTextChangedEventArgs::CheckCurrent() const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_CheckCurrent(&returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxTextChangedEventArgsStatics::ReasonProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ReasonProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::UIElement impl_IFlyout::Content() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template void impl_IFlyout::Content(const Windows::UI::Xaml::UIElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Content(get(value))); -} - -template Windows::UI::Xaml::Style impl_IFlyout::FlyoutPresenterStyle() const -{ - Windows::UI::Xaml::Style value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FlyoutPresenterStyle(put(value))); - return value; -} - -template void impl_IFlyout::FlyoutPresenterStyle(const Windows::UI::Xaml::Style & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FlyoutPresenterStyle(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IFlyoutStatics::ContentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IFlyoutStatics::FlyoutPresenterStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FlyoutPresenterStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Flyout impl_IFlyoutFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Flyout instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::Foundation::Collections::IVector impl_IMenuFlyout::Items() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Items(put(value))); - return value; -} - -template Windows::UI::Xaml::Style impl_IMenuFlyout::MenuFlyoutPresenterStyle() const -{ - Windows::UI::Xaml::Style value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MenuFlyoutPresenterStyle(put(value))); - return value; -} - -template void impl_IMenuFlyout::MenuFlyoutPresenterStyle(const Windows::UI::Xaml::Style & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MenuFlyoutPresenterStyle(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMenuFlyoutStatics::MenuFlyoutPresenterStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MenuFlyoutPresenterStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::MenuFlyout impl_IMenuFlyoutFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::MenuFlyout instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template void impl_IMenuFlyout2::ShowAt(const Windows::UI::Xaml::UIElement & targetElement, const Windows::Foundation::Point & point) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ShowAt(get(targetElement), get(point))); -} - -template Windows::UI::Xaml::Media::Brush impl_IIconElement::Foreground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Foreground(put(value))); - return value; -} - -template void impl_IIconElement::Foreground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Foreground(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IIconElementStatics::ForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Input::Inking::InkPresenter impl_IInkCanvas::InkPresenter() const -{ - Windows::UI::Input::Inking::InkPresenter value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_InkPresenter(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::InkCanvas impl_IInkCanvasFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::InkCanvas instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Media::ImageSource impl_IMediaElement::PosterSource() const -{ - Windows::UI::Xaml::Media::ImageSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PosterSource(put(value))); - return value; -} - -template void impl_IMediaElement::PosterSource(const Windows::UI::Xaml::Media::ImageSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PosterSource(get(value))); -} - -template Windows::Foundation::Uri impl_IMediaElement::Source() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template void impl_IMediaElement::Source(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Source(get(value))); -} - -template bool impl_IMediaElement::IsMuted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsMuted(&value)); - return value; -} - -template void impl_IMediaElement::IsMuted(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsMuted(value)); -} - -template bool impl_IMediaElement::IsAudioOnly() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsAudioOnly(&value)); - return value; -} - -template bool impl_IMediaElement::AutoPlay() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoPlay(&value)); - return value; -} - -template void impl_IMediaElement::AutoPlay(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoPlay(value)); -} - -template double impl_IMediaElement::Volume() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Volume(&value)); - return value; -} - -template void impl_IMediaElement::Volume(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Volume(value)); -} - -template double impl_IMediaElement::Balance() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_Balance(&value)); - return value; -} - -template void impl_IMediaElement::Balance(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Balance(value)); -} - -template int32_t impl_IMediaElement::NaturalVideoHeight() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NaturalVideoHeight(&value)); - return value; -} - -template int32_t impl_IMediaElement::NaturalVideoWidth() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NaturalVideoWidth(&value)); - return value; -} - -template Windows::UI::Xaml::Duration impl_IMediaElement::NaturalDuration() const -{ - Windows::UI::Xaml::Duration value {}; - check_hresult(static_cast(static_cast(*this))->get_NaturalDuration(put(value))); - return value; -} - -template Windows::Foundation::TimeSpan impl_IMediaElement::Position() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Position(put(value))); - return value; -} - -template void impl_IMediaElement::Position(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Position(get(value))); -} - -template double impl_IMediaElement::DownloadProgress() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DownloadProgress(&value)); - return value; -} - -template double impl_IMediaElement::BufferingProgress() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_BufferingProgress(&value)); - return value; -} - -template double impl_IMediaElement::DownloadProgressOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DownloadProgressOffset(&value)); - return value; -} - -template Windows::UI::Xaml::Media::MediaElementState impl_IMediaElement::CurrentState() const -{ - Windows::UI::Xaml::Media::MediaElementState value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentState(&value)); - return value; -} - -template Windows::UI::Xaml::Media::TimelineMarkerCollection impl_IMediaElement::Markers() const -{ - Windows::UI::Xaml::Media::TimelineMarkerCollection value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Markers(put(value))); - return value; -} - -template bool impl_IMediaElement::CanSeek() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanSeek(&value)); - return value; -} - -template bool impl_IMediaElement::CanPause() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanPause(&value)); - return value; -} - -template int32_t impl_IMediaElement::AudioStreamCount() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioStreamCount(&value)); - return value; -} - -template Windows::Foundation::IReference impl_IMediaElement::AudioStreamIndex() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_AudioStreamIndex(put(value))); - return value; -} - -template void impl_IMediaElement::AudioStreamIndex(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioStreamIndex(get(value))); -} - -template double impl_IMediaElement::PlaybackRate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_PlaybackRate(&value)); - return value; -} - -template void impl_IMediaElement::PlaybackRate(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaybackRate(value)); -} - -template bool impl_IMediaElement::IsLooping() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsLooping(&value)); - return value; -} - -template void impl_IMediaElement::IsLooping(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsLooping(value)); -} - -template Windows::Media::PlayTo::PlayToSource impl_IMediaElement::PlayToSource() const -{ - Windows::Media::PlayTo::PlayToSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlayToSource(put(value))); - return value; -} - -template double impl_IMediaElement::DefaultPlaybackRate() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultPlaybackRate(&value)); - return value; -} - -template void impl_IMediaElement::DefaultPlaybackRate(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultPlaybackRate(value)); -} - -template int32_t impl_IMediaElement::AspectRatioWidth() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AspectRatioWidth(&value)); - return value; -} - -template int32_t impl_IMediaElement::AspectRatioHeight() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_AspectRatioHeight(&value)); - return value; -} - -template bool impl_IMediaElement::RealTimePlayback() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_RealTimePlayback(&value)); - return value; -} - -template void impl_IMediaElement::RealTimePlayback(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_RealTimePlayback(value)); -} - -template Windows::UI::Xaml::Media::AudioCategory impl_IMediaElement::AudioCategory() const -{ - Windows::UI::Xaml::Media::AudioCategory value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioCategory(&value)); - return value; -} - -template void impl_IMediaElement::AudioCategory(Windows::UI::Xaml::Media::AudioCategory value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioCategory(value)); -} - -template Windows::UI::Xaml::Media::AudioDeviceType impl_IMediaElement::AudioDeviceType() const -{ - Windows::UI::Xaml::Media::AudioDeviceType value {}; - check_hresult(static_cast(static_cast(*this))->get_AudioDeviceType(&value)); - return value; -} - -template void impl_IMediaElement::AudioDeviceType(Windows::UI::Xaml::Media::AudioDeviceType value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AudioDeviceType(value)); -} - -template Windows::Media::Protection::MediaProtectionManager impl_IMediaElement::ProtectionManager() const -{ - Windows::Media::Protection::MediaProtectionManager value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProtectionManager(put(value))); - return value; -} - -template void impl_IMediaElement::ProtectionManager(const Windows::Media::Protection::MediaProtectionManager & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ProtectionManager(get(value))); -} - -template Windows::UI::Xaml::Media::Stereo3DVideoPackingMode impl_IMediaElement::Stereo3DVideoPackingMode() const -{ - Windows::UI::Xaml::Media::Stereo3DVideoPackingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Stereo3DVideoPackingMode(&value)); - return value; -} - -template void impl_IMediaElement::Stereo3DVideoPackingMode(Windows::UI::Xaml::Media::Stereo3DVideoPackingMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Stereo3DVideoPackingMode(value)); -} - -template Windows::UI::Xaml::Media::Stereo3DVideoRenderMode impl_IMediaElement::Stereo3DVideoRenderMode() const -{ - Windows::UI::Xaml::Media::Stereo3DVideoRenderMode value {}; - check_hresult(static_cast(static_cast(*this))->get_Stereo3DVideoRenderMode(&value)); - return value; -} - -template void impl_IMediaElement::Stereo3DVideoRenderMode(Windows::UI::Xaml::Media::Stereo3DVideoRenderMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Stereo3DVideoRenderMode(value)); -} - -template bool impl_IMediaElement::IsStereo3DVideo() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsStereo3DVideo(&value)); - return value; -} - -template event_token impl_IMediaElement::MediaOpened(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MediaOpened(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaElement::MediaOpened(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaElement::remove_MediaOpened, MediaOpened(value)); -} - -template void impl_IMediaElement::MediaOpened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MediaOpened(token)); -} - -template event_token impl_IMediaElement::MediaEnded(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MediaEnded(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaElement::MediaEnded(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaElement::remove_MediaEnded, MediaEnded(value)); -} - -template void impl_IMediaElement::MediaEnded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MediaEnded(token)); -} - -template event_token impl_IMediaElement::MediaFailed(const Windows::UI::Xaml::ExceptionRoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MediaFailed(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaElement::MediaFailed(auto_revoke_t, const Windows::UI::Xaml::ExceptionRoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaElement::remove_MediaFailed, MediaFailed(value)); -} - -template void impl_IMediaElement::MediaFailed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MediaFailed(token)); -} - -template event_token impl_IMediaElement::DownloadProgressChanged(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DownloadProgressChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaElement::DownloadProgressChanged(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaElement::remove_DownloadProgressChanged, DownloadProgressChanged(value)); -} - -template void impl_IMediaElement::DownloadProgressChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DownloadProgressChanged(token)); -} - -template event_token impl_IMediaElement::BufferingProgressChanged(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_BufferingProgressChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaElement::BufferingProgressChanged(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaElement::remove_BufferingProgressChanged, BufferingProgressChanged(value)); -} - -template void impl_IMediaElement::BufferingProgressChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_BufferingProgressChanged(token)); -} - -template event_token impl_IMediaElement::CurrentStateChanged(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CurrentStateChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaElement::CurrentStateChanged(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaElement::remove_CurrentStateChanged, CurrentStateChanged(value)); -} - -template void impl_IMediaElement::CurrentStateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CurrentStateChanged(token)); -} - -template event_token impl_IMediaElement::MarkerReached(const Windows::UI::Xaml::Media::TimelineMarkerRoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_MarkerReached(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaElement::MarkerReached(auto_revoke_t, const Windows::UI::Xaml::Media::TimelineMarkerRoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaElement::remove_MarkerReached, MarkerReached(value)); -} - -template void impl_IMediaElement::MarkerReached(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_MarkerReached(token)); -} - -template event_token impl_IMediaElement::RateChanged(const Windows::UI::Xaml::Media::RateChangedRoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_RateChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaElement::RateChanged(auto_revoke_t, const Windows::UI::Xaml::Media::RateChangedRoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaElement::remove_RateChanged, RateChanged(value)); -} - -template void impl_IMediaElement::RateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_RateChanged(token)); -} - -template event_token impl_IMediaElement::VolumeChanged(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_VolumeChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaElement::VolumeChanged(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaElement::remove_VolumeChanged, VolumeChanged(value)); -} - -template void impl_IMediaElement::VolumeChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_VolumeChanged(token)); -} - -template event_token impl_IMediaElement::SeekCompleted(const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SeekCompleted(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaElement::SeekCompleted(auto_revoke_t, const Windows::UI::Xaml::RoutedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaElement::remove_SeekCompleted, SeekCompleted(value)); -} - -template void impl_IMediaElement::SeekCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SeekCompleted(token)); -} - -template void impl_IMediaElement::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template void impl_IMediaElement::Play() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Play()); -} - -template void impl_IMediaElement::Pause() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Pause()); -} - -template Windows::UI::Xaml::Media::MediaCanPlayResponse impl_IMediaElement::CanPlayType(hstring_ref type) const -{ - Windows::UI::Xaml::Media::MediaCanPlayResponse returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_CanPlayType(get(type), &returnValue)); - return returnValue; -} - -template void impl_IMediaElement::SetSource(const Windows::Storage::Streams::IRandomAccessStream & stream, hstring_ref mimeType) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSource(get(stream), get(mimeType))); -} - -template hstring impl_IMediaElement::GetAudioStreamLanguage(const Windows::Foundation::IReference & index) const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_GetAudioStreamLanguage(get(index), put(returnValue))); - return returnValue; -} - -template void impl_IMediaElement::AddAudioEffect(hstring_ref effectID, bool effectOptional, const Windows::Foundation::Collections::IPropertySet & effectConfiguration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddAudioEffect(get(effectID), effectOptional, get(effectConfiguration))); -} - -template void impl_IMediaElement::AddVideoEffect(hstring_ref effectID, bool effectOptional, const Windows::Foundation::Collections::IPropertySet & effectConfiguration) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddVideoEffect(get(effectID), effectOptional, get(effectConfiguration))); -} - -template void impl_IMediaElement::RemoveAllEffects() const -{ - check_hresult(static_cast(static_cast(*this))->abi_RemoveAllEffects()); -} - -template Windows::UI::Xaml::Media::Stereo3DVideoPackingMode impl_IMediaElement::ActualStereo3DVideoPackingMode() const -{ - Windows::UI::Xaml::Media::Stereo3DVideoPackingMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ActualStereo3DVideoPackingMode(&value)); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::PosterSourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PosterSourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::SourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::IsMutedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsMutedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::IsAudioOnlyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsAudioOnlyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::AutoPlayProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AutoPlayProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::VolumeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VolumeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::BalanceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BalanceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::NaturalVideoHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NaturalVideoHeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::NaturalVideoWidthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NaturalVideoWidthProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::NaturalDurationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NaturalDurationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::PositionProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PositionProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::DownloadProgressProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DownloadProgressProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::BufferingProgressProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BufferingProgressProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::DownloadProgressOffsetProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DownloadProgressOffsetProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::CurrentStateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CurrentStateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::CanSeekProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanSeekProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::CanPauseProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanPauseProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::AudioStreamCountProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AudioStreamCountProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::AudioStreamIndexProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AudioStreamIndexProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::PlaybackRateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaybackRateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::IsLoopingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsLoopingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::PlayToSourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlayToSourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::DefaultPlaybackRateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DefaultPlaybackRateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::AspectRatioWidthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AspectRatioWidthProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::AspectRatioHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AspectRatioHeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::RealTimePlaybackProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_RealTimePlaybackProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::AudioCategoryProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AudioCategoryProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::AudioDeviceTypeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AudioDeviceTypeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::ProtectionManagerProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ProtectionManagerProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::Stereo3DVideoPackingModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Stereo3DVideoPackingModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::Stereo3DVideoRenderModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Stereo3DVideoRenderModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::IsStereo3DVideoProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsStereo3DVideoProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics::ActualStereo3DVideoPackingModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ActualStereo3DVideoPackingModeProperty(put(value))); - return value; -} - -template bool impl_IMediaElement2::AreTransportControlsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AreTransportControlsEnabled(&value)); - return value; -} - -template void impl_IMediaElement2::AreTransportControlsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AreTransportControlsEnabled(value)); -} - -template Windows::UI::Xaml::Media::Stretch impl_IMediaElement2::Stretch() const -{ - Windows::UI::Xaml::Media::Stretch value {}; - check_hresult(static_cast(static_cast(*this))->get_Stretch(&value)); - return value; -} - -template void impl_IMediaElement2::Stretch(Windows::UI::Xaml::Media::Stretch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Stretch(value)); -} - -template bool impl_IMediaElement2::IsFullWindow() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFullWindow(&value)); - return value; -} - -template void impl_IMediaElement2::IsFullWindow(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFullWindow(value)); -} - -template void impl_IMediaElement2::SetMediaStreamSource(const Windows::Media::Core::IMediaSource & source) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetMediaStreamSource(get(source))); -} - -template Windows::Foundation::Uri impl_IMediaElement2::PlayToPreferredSourceUri() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlayToPreferredSourceUri(put(value))); - return value; -} - -template void impl_IMediaElement2::PlayToPreferredSourceUri(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlayToPreferredSourceUri(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics2::AreTransportControlsEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AreTransportControlsEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics2::StretchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StretchProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics2::IsFullWindowProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsFullWindowProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaElementStatics2::PlayToPreferredSourceUriProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlayToPreferredSourceUriProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::MediaTransportControls impl_IMediaElement3::TransportControls() const -{ - Windows::UI::Xaml::Controls::MediaTransportControls value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TransportControls(put(value))); - return value; -} - -template void impl_IMediaElement3::TransportControls(const Windows::UI::Xaml::Controls::MediaTransportControls & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransportControls(get(value))); -} - -template event_token impl_IMediaElement3::PartialMediaFailureDetected(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PartialMediaFailureDetected(get(value), &token)); - return token; -} - -template event_revoker impl_IMediaElement3::PartialMediaFailureDetected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IMediaElement3::remove_PartialMediaFailureDetected, PartialMediaFailureDetected(value)); -} - -template void impl_IMediaElement3::PartialMediaFailureDetected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PartialMediaFailureDetected(token)); -} - -template void impl_IMediaElement3::SetPlaybackSource(const Windows::Media::Playback::IMediaPlaybackSource & source) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetPlaybackSource(get(source))); -} - -template Windows::Media::Casting::CastingSource impl_IMediaElement3::GetAsCastingSource() const -{ - Windows::Media::Casting::CastingSource returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_GetAsCastingSource(put(returnValue))); - return returnValue; -} - -template Windows::Media::Playback::MediaPlayer impl_IMediaPlayerPresenter::MediaPlayer() const -{ - Windows::Media::Playback::MediaPlayer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaPlayer(put(value))); - return value; -} - -template void impl_IMediaPlayerPresenter::MediaPlayer(const Windows::Media::Playback::MediaPlayer & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MediaPlayer(get(value))); -} - -template Windows::UI::Xaml::Media::Stretch impl_IMediaPlayerPresenter::Stretch() const -{ - Windows::UI::Xaml::Media::Stretch value {}; - check_hresult(static_cast(static_cast(*this))->get_Stretch(&value)); - return value; -} - -template void impl_IMediaPlayerPresenter::Stretch(Windows::UI::Xaml::Media::Stretch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Stretch(value)); -} - -template bool impl_IMediaPlayerPresenter::IsFullWindow() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFullWindow(&value)); - return value; -} - -template void impl_IMediaPlayerPresenter::IsFullWindow(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFullWindow(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaPlayerPresenterStatics::MediaPlayerProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaPlayerProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaPlayerPresenterStatics::StretchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StretchProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaPlayerPresenterStatics::IsFullWindowProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsFullWindowProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::MediaPlayerPresenter impl_IMediaPlayerPresenterFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::MediaPlayerPresenter instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::Foundation::Uri impl_IWebView::Source() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template void impl_IWebView::Source(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Source(get(value))); -} - -template Windows::Foundation::Collections::IVector impl_IWebView::AllowedScriptNotifyUris() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_AllowedScriptNotifyUris(put(value))); - return value; -} - -template void impl_IWebView::AllowedScriptNotifyUris(const Windows::Foundation::Collections::IVector & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AllowedScriptNotifyUris(get(value))); -} - -template Windows::ApplicationModel::DataTransfer::DataPackage impl_IWebView::DataTransferPackage() const -{ - Windows::ApplicationModel::DataTransfer::DataPackage value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DataTransferPackage(put(value))); - return value; -} - -template event_token impl_IWebView::LoadCompleted(const Windows::UI::Xaml::Navigation::LoadCompletedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LoadCompleted(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView::LoadCompleted(auto_revoke_t, const Windows::UI::Xaml::Navigation::LoadCompletedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView::remove_LoadCompleted, LoadCompleted(value)); -} - -template void impl_IWebView::LoadCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LoadCompleted(token)); -} - -template event_token impl_IWebView::ScriptNotify(const Windows::UI::Xaml::Controls::NotifyEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ScriptNotify(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView::ScriptNotify(auto_revoke_t, const Windows::UI::Xaml::Controls::NotifyEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView::remove_ScriptNotify, ScriptNotify(value)); -} - -template void impl_IWebView::ScriptNotify(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ScriptNotify(token)); -} - -template event_token impl_IWebView::NavigationFailed(const Windows::UI::Xaml::Controls::WebViewNavigationFailedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NavigationFailed(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView::NavigationFailed(auto_revoke_t, const Windows::UI::Xaml::Controls::WebViewNavigationFailedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView::remove_NavigationFailed, NavigationFailed(value)); -} - -template void impl_IWebView::NavigationFailed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NavigationFailed(token)); -} - -template hstring impl_IWebView::InvokeScript(hstring_ref scriptName, array_ref arguments) const -{ - hstring returnValue; - check_hresult(static_cast(static_cast(*this))->abi_InvokeScript(get(scriptName), arguments.size(), get(arguments), put(returnValue))); - return returnValue; -} - -template void impl_IWebView::Navigate(const Windows::Foundation::Uri & source) const -{ - check_hresult(static_cast(static_cast(*this))->abi_Navigate(get(source))); -} - -template void impl_IWebView::NavigateToString(hstring_ref text) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NavigateToString(get(text))); -} - -template Windows::Foundation::Collections::IVector impl_IWebViewStatics::AnyScriptNotifyUri() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_AnyScriptNotifyUri(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics::SourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics::AllowedScriptNotifyUrisProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AllowedScriptNotifyUrisProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics::DataTransferPackageProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DataTransferPackageProperty(put(value))); - return value; -} - -template bool impl_IWebView2::CanGoBack() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanGoBack(&value)); - return value; -} - -template bool impl_IWebView2::CanGoForward() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanGoForward(&value)); - return value; -} - -template hstring impl_IWebView2::DocumentTitle() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DocumentTitle(put(value))); - return value; -} - -template event_token impl_IWebView2::NavigationStarting(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NavigationStarting(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView2::NavigationStarting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView2::remove_NavigationStarting, NavigationStarting(value)); -} - -template void impl_IWebView2::NavigationStarting(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NavigationStarting(token)); -} - -template event_token impl_IWebView2::ContentLoading(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ContentLoading(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView2::ContentLoading(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView2::remove_ContentLoading, ContentLoading(value)); -} - -template void impl_IWebView2::ContentLoading(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContentLoading(token)); -} - -template event_token impl_IWebView2::DOMContentLoaded(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DOMContentLoaded(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView2::DOMContentLoaded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView2::remove_DOMContentLoaded, DOMContentLoaded(value)); -} - -template void impl_IWebView2::DOMContentLoaded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DOMContentLoaded(token)); -} - -template void impl_IWebView2::GoForward() const -{ - check_hresult(static_cast(static_cast(*this))->abi_GoForward()); -} - -template void impl_IWebView2::GoBack() const -{ - check_hresult(static_cast(static_cast(*this))->abi_GoBack()); -} - -template void impl_IWebView2::Refresh() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Refresh()); -} - -template void impl_IWebView2::Stop() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Stop()); -} - -template Windows::Foundation::IAsyncAction impl_IWebView2::CapturePreviewToStreamAsync(const Windows::Storage::Streams::IRandomAccessStream & stream) const -{ - Windows::Foundation::IAsyncAction returnValue; - check_hresult(static_cast(static_cast(*this))->abi_CapturePreviewToStreamAsync(get(stream), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IWebView2::InvokeScriptAsync(hstring_ref scriptName, const Windows::Foundation::Collections::IIterable & arguments) const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_InvokeScriptAsync(get(scriptName), get(arguments), put(returnValue))); - return returnValue; -} - -template Windows::Foundation::IAsyncOperation impl_IWebView2::CaptureSelectedContentToDataPackageAsync() const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_CaptureSelectedContentToDataPackageAsync(put(returnValue))); - return returnValue; -} - -template void impl_IWebView2::NavigateToLocalStreamUri(const Windows::Foundation::Uri & source, const Windows::Web::IUriToStreamResolver & streamResolver) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NavigateToLocalStreamUri(get(source), get(streamResolver))); -} - -template Windows::Foundation::Uri impl_IWebView2::BuildLocalStreamUri(hstring_ref contentIdentifier, hstring_ref relativePath) const -{ - Windows::Foundation::Uri returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_BuildLocalStreamUri(get(contentIdentifier), get(relativePath), put(returnValue))); - return returnValue; -} - -template Windows::UI::Color impl_IWebView2::DefaultBackgroundColor() const -{ - Windows::UI::Color value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultBackgroundColor(put(value))); - return value; -} - -template void impl_IWebView2::DefaultBackgroundColor(const Windows::UI::Color & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultBackgroundColor(get(value))); -} - -template event_token impl_IWebView2::NavigationCompleted(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NavigationCompleted(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView2::NavigationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView2::remove_NavigationCompleted, NavigationCompleted(value)); -} - -template void impl_IWebView2::NavigationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NavigationCompleted(token)); -} - -template event_token impl_IWebView2::FrameNavigationStarting(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FrameNavigationStarting(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView2::FrameNavigationStarting(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView2::remove_FrameNavigationStarting, FrameNavigationStarting(value)); -} - -template void impl_IWebView2::FrameNavigationStarting(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FrameNavigationStarting(token)); -} - -template event_token impl_IWebView2::FrameContentLoading(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FrameContentLoading(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView2::FrameContentLoading(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView2::remove_FrameContentLoading, FrameContentLoading(value)); -} - -template void impl_IWebView2::FrameContentLoading(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FrameContentLoading(token)); -} - -template event_token impl_IWebView2::FrameDOMContentLoaded(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FrameDOMContentLoaded(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView2::FrameDOMContentLoaded(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView2::remove_FrameDOMContentLoaded, FrameDOMContentLoaded(value)); -} - -template void impl_IWebView2::FrameDOMContentLoaded(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FrameDOMContentLoaded(token)); -} - -template event_token impl_IWebView2::FrameNavigationCompleted(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_FrameNavigationCompleted(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView2::FrameNavigationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView2::remove_FrameNavigationCompleted, FrameNavigationCompleted(value)); -} - -template void impl_IWebView2::FrameNavigationCompleted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_FrameNavigationCompleted(token)); -} - -template event_token impl_IWebView2::LongRunningScriptDetected(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_LongRunningScriptDetected(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView2::LongRunningScriptDetected(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView2::remove_LongRunningScriptDetected, LongRunningScriptDetected(value)); -} - -template void impl_IWebView2::LongRunningScriptDetected(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_LongRunningScriptDetected(token)); -} - -template event_token impl_IWebView2::UnsafeContentWarningDisplaying(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UnsafeContentWarningDisplaying(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView2::UnsafeContentWarningDisplaying(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView2::remove_UnsafeContentWarningDisplaying, UnsafeContentWarningDisplaying(value)); -} - -template void impl_IWebView2::UnsafeContentWarningDisplaying(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UnsafeContentWarningDisplaying(token)); -} - -template event_token impl_IWebView2::UnviewableContentIdentified(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UnviewableContentIdentified(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView2::UnviewableContentIdentified(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView2::remove_UnviewableContentIdentified, UnviewableContentIdentified(value)); -} - -template void impl_IWebView2::UnviewableContentIdentified(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UnviewableContentIdentified(token)); -} - -template void impl_IWebView2::NavigateWithHttpRequestMessage(const Windows::Web::Http::HttpRequestMessage & requestMessage) const -{ - check_hresult(static_cast(static_cast(*this))->abi_NavigateWithHttpRequestMessage(get(requestMessage))); -} - -template bool impl_IWebView2::Focus(Windows::UI::Xaml::FocusState value) const -{ - bool returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_Focus(value, &returnValue)); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics2::CanGoBackProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanGoBackProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics2::CanGoForwardProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CanGoForwardProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics2::DocumentTitleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DocumentTitleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics2::DefaultBackgroundColorProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DefaultBackgroundColorProperty(put(value))); - return value; -} - -template bool impl_IWebView3::ContainsFullScreenElement() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ContainsFullScreenElement(&value)); - return value; -} - -template event_token impl_IWebView3::ContainsFullScreenElementChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ContainsFullScreenElementChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView3::ContainsFullScreenElementChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView3::remove_ContainsFullScreenElementChanged, ContainsFullScreenElementChanged(value)); -} - -template void impl_IWebView3::ContainsFullScreenElementChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ContainsFullScreenElementChanged(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics3::ContainsFullScreenElementProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContainsFullScreenElementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::WebViewExecutionMode impl_IWebView4::ExecutionMode() const -{ - Windows::UI::Xaml::Controls::WebViewExecutionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ExecutionMode(&value)); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IWebView4::DeferredPermissionRequests() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_DeferredPermissionRequests(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::WebViewSettings impl_IWebView4::Settings() const -{ - Windows::UI::Xaml::Controls::WebViewSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Settings(put(value))); - return value; -} - -template event_token impl_IWebView4::UnsupportedUriSchemeIdentified(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_UnsupportedUriSchemeIdentified(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView4::UnsupportedUriSchemeIdentified(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView4::remove_UnsupportedUriSchemeIdentified, UnsupportedUriSchemeIdentified(value)); -} - -template void impl_IWebView4::UnsupportedUriSchemeIdentified(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_UnsupportedUriSchemeIdentified(token)); -} - -template event_token impl_IWebView4::NewWindowRequested(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_NewWindowRequested(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView4::NewWindowRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView4::remove_NewWindowRequested, NewWindowRequested(value)); -} - -template void impl_IWebView4::NewWindowRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_NewWindowRequested(token)); -} - -template event_token impl_IWebView4::PermissionRequested(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PermissionRequested(get(value), &token)); - return token; -} - -template event_revoker impl_IWebView4::PermissionRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IWebView4::remove_PermissionRequested, PermissionRequested(value)); -} - -template void impl_IWebView4::PermissionRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PermissionRequested(token)); -} - -template void impl_IWebView4::AddWebAllowedObject(hstring_ref name, const Windows::IInspectable & pObject) const -{ - check_hresult(static_cast(static_cast(*this))->abi_AddWebAllowedObject(get(name), get(pObject))); -} - -template Windows::UI::Xaml::Controls::WebViewDeferredPermissionRequest impl_IWebView4::DeferredPermissionRequestById(uint32_t id) const -{ - Windows::UI::Xaml::Controls::WebViewDeferredPermissionRequest returnValue { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_DeferredPermissionRequestById(id, put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::WebViewExecutionMode impl_IWebViewStatics4::DefaultExecutionMode() const -{ - Windows::UI::Xaml::Controls::WebViewExecutionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultExecutionMode(&value)); - return value; -} - -template Windows::Foundation::IAsyncAction impl_IWebViewStatics4::ClearTemporaryWebDataAsync() const -{ - Windows::Foundation::IAsyncAction returnValue; - check_hresult(static_cast(static_cast(*this))->abi_ClearTemporaryWebDataAsync(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::Controls::WebView impl_IWebViewFactory4::CreateInstanceWithExecutionMode(Windows::UI::Xaml::Controls::WebViewExecutionMode executionMode) const -{ - Windows::UI::Xaml::Controls::WebView instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithExecutionMode(executionMode, put(instance))); - return instance; -} - -template Windows::UI::Xaml::DependencyObject impl_IWebView5::XYFocusLeft() const -{ - Windows::UI::Xaml::DependencyObject value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_XYFocusLeft(put(value))); - return value; -} - -template void impl_IWebView5::XYFocusLeft(const Windows::UI::Xaml::DependencyObject & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_XYFocusLeft(get(value))); -} - -template Windows::UI::Xaml::DependencyObject impl_IWebView5::XYFocusRight() const -{ - Windows::UI::Xaml::DependencyObject value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_XYFocusRight(put(value))); - return value; -} - -template void impl_IWebView5::XYFocusRight(const Windows::UI::Xaml::DependencyObject & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_XYFocusRight(get(value))); -} - -template Windows::UI::Xaml::DependencyObject impl_IWebView5::XYFocusUp() const -{ - Windows::UI::Xaml::DependencyObject value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_XYFocusUp(put(value))); - return value; -} - -template void impl_IWebView5::XYFocusUp(const Windows::UI::Xaml::DependencyObject & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_XYFocusUp(get(value))); -} - -template Windows::UI::Xaml::DependencyObject impl_IWebView5::XYFocusDown() const -{ - Windows::UI::Xaml::DependencyObject value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_XYFocusDown(put(value))); - return value; -} - -template void impl_IWebView5::XYFocusDown(const Windows::UI::Xaml::DependencyObject & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_XYFocusDown(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics5::XYFocusLeftProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_XYFocusLeftProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics5::XYFocusRightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_XYFocusRightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics5::XYFocusUpProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_XYFocusUpProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewStatics5::XYFocusDownProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_XYFocusDownProperty(put(value))); - return value; -} - -template hstring impl_IWebViewBrush::SourceName() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SourceName(put(value))); - return value; -} - -template void impl_IWebViewBrush::SourceName(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SourceName(get(value))); -} - -template void impl_IWebViewBrush::Redraw() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Redraw()); -} - -template void impl_IWebViewBrush::SetSource(const Windows::UI::Xaml::Controls::WebView & source) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetSource(get(source))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IWebViewBrushStatics::SourceNameProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceNameProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAppBarSeparatorStatics::IsCompactProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsCompactProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::AppBarSeparator impl_IAppBarSeparatorFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::AppBarSeparator instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAppBarSeparatorStatics3::IsInOverflowProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsInOverflowProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAppBarSeparatorStatics3::DynamicOverflowOrderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DynamicOverflowOrderProperty(put(value))); - return value; -} - -template Windows::Foundation::Uri impl_IBitmapIcon::UriSource() const -{ - Windows::Foundation::Uri value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UriSource(put(value))); - return value; -} - -template void impl_IBitmapIcon::UriSource(const Windows::Foundation::Uri & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UriSource(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IBitmapIconStatics::UriSourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UriSourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::BitmapIcon impl_IBitmapIconFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::BitmapIcon instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::Foundation::IReference impl_ICalendarDatePicker::Date() const -{ - Windows::Foundation::IReference value; - check_hresult(static_cast(static_cast(*this))->get_Date(put(value))); - return value; -} - -template void impl_ICalendarDatePicker::Date(const Windows::Foundation::IReference & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Date(get(value))); -} - -template bool impl_ICalendarDatePicker::IsCalendarOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsCalendarOpen(&value)); - return value; -} - -template void impl_ICalendarDatePicker::IsCalendarOpen(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsCalendarOpen(value)); -} - -template hstring impl_ICalendarDatePicker::DateFormat() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DateFormat(put(value))); - return value; -} - -template void impl_ICalendarDatePicker::DateFormat(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DateFormat(get(value))); -} - -template hstring impl_ICalendarDatePicker::PlaceholderText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderText(put(value))); - return value; -} - -template void impl_ICalendarDatePicker::PlaceholderText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaceholderText(get(value))); -} - -template Windows::IInspectable impl_ICalendarDatePicker::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_ICalendarDatePicker::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_ICalendarDatePicker::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_ICalendarDatePicker::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template Windows::UI::Xaml::Style impl_ICalendarDatePicker::CalendarViewStyle() const -{ - Windows::UI::Xaml::Style value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarViewStyle(put(value))); - return value; -} - -template void impl_ICalendarDatePicker::CalendarViewStyle(const Windows::UI::Xaml::Style & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalendarViewStyle(get(value))); -} - -template Windows::Foundation::DateTime impl_ICalendarDatePicker::MinDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_MinDate(put(value))); - return value; -} - -template void impl_ICalendarDatePicker::MinDate(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinDate(get(value))); -} - -template Windows::Foundation::DateTime impl_ICalendarDatePicker::MaxDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxDate(put(value))); - return value; -} - -template void impl_ICalendarDatePicker::MaxDate(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxDate(get(value))); -} - -template bool impl_ICalendarDatePicker::IsTodayHighlighted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTodayHighlighted(&value)); - return value; -} - -template void impl_ICalendarDatePicker::IsTodayHighlighted(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTodayHighlighted(value)); -} - -template Windows::UI::Xaml::Controls::CalendarViewDisplayMode impl_ICalendarDatePicker::DisplayMode() const -{ - Windows::UI::Xaml::Controls::CalendarViewDisplayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_DisplayMode(&value)); - return value; -} - -template void impl_ICalendarDatePicker::DisplayMode(Windows::UI::Xaml::Controls::CalendarViewDisplayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayMode(value)); -} - -template Windows::Globalization::DayOfWeek impl_ICalendarDatePicker::FirstDayOfWeek() const -{ - Windows::Globalization::DayOfWeek value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstDayOfWeek(&value)); - return value; -} - -template void impl_ICalendarDatePicker::FirstDayOfWeek(Windows::Globalization::DayOfWeek value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FirstDayOfWeek(value)); -} - -template hstring impl_ICalendarDatePicker::DayOfWeekFormat() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DayOfWeekFormat(put(value))); - return value; -} - -template void impl_ICalendarDatePicker::DayOfWeekFormat(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DayOfWeekFormat(get(value))); -} - -template hstring impl_ICalendarDatePicker::CalendarIdentifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CalendarIdentifier(put(value))); - return value; -} - -template void impl_ICalendarDatePicker::CalendarIdentifier(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalendarIdentifier(get(value))); -} - -template bool impl_ICalendarDatePicker::IsOutOfScopeEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOutOfScopeEnabled(&value)); - return value; -} - -template void impl_ICalendarDatePicker::IsOutOfScopeEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOutOfScopeEnabled(value)); -} - -template bool impl_ICalendarDatePicker::IsGroupLabelVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsGroupLabelVisible(&value)); - return value; -} - -template void impl_ICalendarDatePicker::IsGroupLabelVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsGroupLabelVisible(value)); -} - -template event_token impl_ICalendarDatePicker::CalendarViewDayItemChanging(const Windows::UI::Xaml::Controls::CalendarViewDayItemChangingEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CalendarViewDayItemChanging(get(value), &token)); - return token; -} - -template event_revoker impl_ICalendarDatePicker::CalendarViewDayItemChanging(auto_revoke_t, const Windows::UI::Xaml::Controls::CalendarViewDayItemChangingEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ICalendarDatePicker::remove_CalendarViewDayItemChanging, CalendarViewDayItemChanging(value)); -} - -template void impl_ICalendarDatePicker::CalendarViewDayItemChanging(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CalendarViewDayItemChanging(token)); -} - -template event_token impl_ICalendarDatePicker::DateChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DateChanged(get(value), &token)); - return token; -} - -template event_revoker impl_ICalendarDatePicker::DateChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ICalendarDatePicker::remove_DateChanged, DateChanged(value)); -} - -template void impl_ICalendarDatePicker::DateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DateChanged(token)); -} - -template event_token impl_ICalendarDatePicker::Opened(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Opened(get(value), &token)); - return token; -} - -template event_revoker impl_ICalendarDatePicker::Opened(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ICalendarDatePicker::remove_Opened, Opened(value)); -} - -template void impl_ICalendarDatePicker::Opened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Opened(token)); -} - -template event_token impl_ICalendarDatePicker::Closed(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(value), &token)); - return token; -} - -template event_revoker impl_ICalendarDatePicker::Closed(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ICalendarDatePicker::remove_Closed, Closed(value)); -} - -template void impl_ICalendarDatePicker::Closed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(token)); -} - -template void impl_ICalendarDatePicker::SetDisplayDate(const Windows::Foundation::DateTime & date) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDisplayDate(get(date))); -} - -template void impl_ICalendarDatePicker::SetYearDecadeDisplayDimensions(int32_t columns, int32_t rows) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetYearDecadeDisplayDimensions(columns, rows)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::DateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::IsCalendarOpenProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsCalendarOpenProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::DateFormatProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DateFormatProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::PlaceholderTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::CalendarViewStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarViewStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::MinDateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MinDateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::MaxDateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxDateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::IsTodayHighlightedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTodayHighlightedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::DisplayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisplayModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::FirstDayOfWeekProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstDayOfWeekProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::DayOfWeekFormatProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DayOfWeekFormatProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::CalendarIdentifierProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarIdentifierProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::IsOutOfScopeEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsOutOfScopeEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics::IsGroupLabelVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsGroupLabelVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::CalendarDatePicker impl_ICalendarDatePickerFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::CalendarDatePicker instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::LightDismissOverlayMode impl_ICalendarDatePicker2::LightDismissOverlayMode() const -{ - Windows::UI::Xaml::Controls::LightDismissOverlayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayMode(&value)); - return value; -} - -template void impl_ICalendarDatePicker2::LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LightDismissOverlayMode(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarDatePickerStatics2::LightDismissOverlayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayModeProperty(put(value))); - return value; -} - -template hstring impl_ICalendarView::CalendarIdentifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CalendarIdentifier(put(value))); - return value; -} - -template void impl_ICalendarView::CalendarIdentifier(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalendarIdentifier(get(value))); -} - -template hstring impl_ICalendarView::DayOfWeekFormat() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DayOfWeekFormat(put(value))); - return value; -} - -template void impl_ICalendarView::DayOfWeekFormat(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DayOfWeekFormat(get(value))); -} - -template bool impl_ICalendarView::IsGroupLabelVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsGroupLabelVisible(&value)); - return value; -} - -template void impl_ICalendarView::IsGroupLabelVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsGroupLabelVisible(value)); -} - -template Windows::UI::Xaml::Controls::CalendarViewDisplayMode impl_ICalendarView::DisplayMode() const -{ - Windows::UI::Xaml::Controls::CalendarViewDisplayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_DisplayMode(&value)); - return value; -} - -template void impl_ICalendarView::DisplayMode(Windows::UI::Xaml::Controls::CalendarViewDisplayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayMode(value)); -} - -template Windows::Globalization::DayOfWeek impl_ICalendarView::FirstDayOfWeek() const -{ - Windows::Globalization::DayOfWeek value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstDayOfWeek(&value)); - return value; -} - -template void impl_ICalendarView::FirstDayOfWeek(Windows::Globalization::DayOfWeek value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FirstDayOfWeek(value)); -} - -template bool impl_ICalendarView::IsOutOfScopeEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOutOfScopeEnabled(&value)); - return value; -} - -template void impl_ICalendarView::IsOutOfScopeEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOutOfScopeEnabled(value)); -} - -template bool impl_ICalendarView::IsTodayHighlighted() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTodayHighlighted(&value)); - return value; -} - -template void impl_ICalendarView::IsTodayHighlighted(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTodayHighlighted(value)); -} - -template Windows::Foundation::DateTime impl_ICalendarView::MaxDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxDate(put(value))); - return value; -} - -template void impl_ICalendarView::MaxDate(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxDate(get(value))); -} - -template Windows::Foundation::DateTime impl_ICalendarView::MinDate() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_MinDate(put(value))); - return value; -} - -template void impl_ICalendarView::MinDate(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinDate(get(value))); -} - -template int32_t impl_ICalendarView::NumberOfWeeksInView() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_NumberOfWeeksInView(&value)); - return value; -} - -template void impl_ICalendarView::NumberOfWeeksInView(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_NumberOfWeeksInView(value)); -} - -template Windows::Foundation::Collections::IVector impl_ICalendarView::SelectedDates() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SelectedDates(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::CalendarViewSelectionMode impl_ICalendarView::SelectionMode() const -{ - Windows::UI::Xaml::Controls::CalendarViewSelectionMode value {}; - check_hresult(static_cast(static_cast(*this))->get_SelectionMode(&value)); - return value; -} - -template void impl_ICalendarView::SelectionMode(Windows::UI::Xaml::Controls::CalendarViewSelectionMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectionMode(value)); -} - -template Windows::UI::Xaml::Controls::Primitives::CalendarViewTemplateSettings impl_ICalendarView::TemplateSettings() const -{ - Windows::UI::Xaml::Controls::Primitives::CalendarViewTemplateSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemplateSettings(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::FocusBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FocusBorderBrush(put(value))); - return value; -} - -template void impl_ICalendarView::FocusBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FocusBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::SelectedHoverBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedHoverBorderBrush(put(value))); - return value; -} - -template void impl_ICalendarView::SelectedHoverBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedHoverBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::SelectedPressedBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPressedBorderBrush(put(value))); - return value; -} - -template void impl_ICalendarView::SelectedPressedBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedPressedBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::SelectedBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedBorderBrush(put(value))); - return value; -} - -template void impl_ICalendarView::SelectedBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::HoverBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HoverBorderBrush(put(value))); - return value; -} - -template void impl_ICalendarView::HoverBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HoverBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::PressedBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PressedBorderBrush(put(value))); - return value; -} - -template void impl_ICalendarView::PressedBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PressedBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::CalendarItemBorderBrush() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarItemBorderBrush(put(value))); - return value; -} - -template void impl_ICalendarView::CalendarItemBorderBrush(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalendarItemBorderBrush(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::OutOfScopeBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OutOfScopeBackground(put(value))); - return value; -} - -template void impl_ICalendarView::OutOfScopeBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutOfScopeBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::CalendarItemBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarItemBackground(put(value))); - return value; -} - -template void impl_ICalendarView::CalendarItemBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalendarItemBackground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::PressedForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PressedForeground(put(value))); - return value; -} - -template void impl_ICalendarView::PressedForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PressedForeground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::TodayForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TodayForeground(put(value))); - return value; -} - -template void impl_ICalendarView::TodayForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TodayForeground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::BlackoutForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BlackoutForeground(put(value))); - return value; -} - -template void impl_ICalendarView::BlackoutForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_BlackoutForeground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::SelectedForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedForeground(put(value))); - return value; -} - -template void impl_ICalendarView::SelectedForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SelectedForeground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::OutOfScopeForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OutOfScopeForeground(put(value))); - return value; -} - -template void impl_ICalendarView::OutOfScopeForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OutOfScopeForeground(get(value))); -} - -template Windows::UI::Xaml::Media::Brush impl_ICalendarView::CalendarItemForeground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarItemForeground(put(value))); - return value; -} - -template void impl_ICalendarView::CalendarItemForeground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalendarItemForeground(get(value))); -} - -template Windows::UI::Xaml::Media::FontFamily impl_ICalendarView::DayItemFontFamily() const -{ - Windows::UI::Xaml::Media::FontFamily value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DayItemFontFamily(put(value))); - return value; -} - -template void impl_ICalendarView::DayItemFontFamily(const Windows::UI::Xaml::Media::FontFamily & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DayItemFontFamily(get(value))); -} - -template double impl_ICalendarView::DayItemFontSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_DayItemFontSize(&value)); - return value; -} - -template void impl_ICalendarView::DayItemFontSize(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DayItemFontSize(value)); -} - -template Windows::UI::Text::FontStyle impl_ICalendarView::DayItemFontStyle() const -{ - Windows::UI::Text::FontStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_DayItemFontStyle(&value)); - return value; -} - -template void impl_ICalendarView::DayItemFontStyle(Windows::UI::Text::FontStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DayItemFontStyle(value)); -} - -template Windows::UI::Text::FontWeight impl_ICalendarView::DayItemFontWeight() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_DayItemFontWeight(put(value))); - return value; -} - -template void impl_ICalendarView::DayItemFontWeight(const Windows::UI::Text::FontWeight & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DayItemFontWeight(get(value))); -} - -template Windows::UI::Text::FontWeight impl_ICalendarView::TodayFontWeight() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_TodayFontWeight(put(value))); - return value; -} - -template void impl_ICalendarView::TodayFontWeight(const Windows::UI::Text::FontWeight & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TodayFontWeight(get(value))); -} - -template Windows::UI::Xaml::Media::FontFamily impl_ICalendarView::FirstOfMonthLabelFontFamily() const -{ - Windows::UI::Xaml::Media::FontFamily value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstOfMonthLabelFontFamily(put(value))); - return value; -} - -template void impl_ICalendarView::FirstOfMonthLabelFontFamily(const Windows::UI::Xaml::Media::FontFamily & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FirstOfMonthLabelFontFamily(get(value))); -} - -template double impl_ICalendarView::FirstOfMonthLabelFontSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstOfMonthLabelFontSize(&value)); - return value; -} - -template void impl_ICalendarView::FirstOfMonthLabelFontSize(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FirstOfMonthLabelFontSize(value)); -} - -template Windows::UI::Text::FontStyle impl_ICalendarView::FirstOfMonthLabelFontStyle() const -{ - Windows::UI::Text::FontStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstOfMonthLabelFontStyle(&value)); - return value; -} - -template void impl_ICalendarView::FirstOfMonthLabelFontStyle(Windows::UI::Text::FontStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FirstOfMonthLabelFontStyle(value)); -} - -template Windows::UI::Text::FontWeight impl_ICalendarView::FirstOfMonthLabelFontWeight() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstOfMonthLabelFontWeight(put(value))); - return value; -} - -template void impl_ICalendarView::FirstOfMonthLabelFontWeight(const Windows::UI::Text::FontWeight & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FirstOfMonthLabelFontWeight(get(value))); -} - -template Windows::UI::Xaml::Media::FontFamily impl_ICalendarView::MonthYearItemFontFamily() const -{ - Windows::UI::Xaml::Media::FontFamily value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MonthYearItemFontFamily(put(value))); - return value; -} - -template void impl_ICalendarView::MonthYearItemFontFamily(const Windows::UI::Xaml::Media::FontFamily & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MonthYearItemFontFamily(get(value))); -} - -template double impl_ICalendarView::MonthYearItemFontSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MonthYearItemFontSize(&value)); - return value; -} - -template void impl_ICalendarView::MonthYearItemFontSize(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MonthYearItemFontSize(value)); -} - -template Windows::UI::Text::FontStyle impl_ICalendarView::MonthYearItemFontStyle() const -{ - Windows::UI::Text::FontStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_MonthYearItemFontStyle(&value)); - return value; -} - -template void impl_ICalendarView::MonthYearItemFontStyle(Windows::UI::Text::FontStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MonthYearItemFontStyle(value)); -} - -template Windows::UI::Text::FontWeight impl_ICalendarView::MonthYearItemFontWeight() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_MonthYearItemFontWeight(put(value))); - return value; -} - -template void impl_ICalendarView::MonthYearItemFontWeight(const Windows::UI::Text::FontWeight & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MonthYearItemFontWeight(get(value))); -} - -template Windows::UI::Xaml::Media::FontFamily impl_ICalendarView::FirstOfYearDecadeLabelFontFamily() const -{ - Windows::UI::Xaml::Media::FontFamily value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstOfYearDecadeLabelFontFamily(put(value))); - return value; -} - -template void impl_ICalendarView::FirstOfYearDecadeLabelFontFamily(const Windows::UI::Xaml::Media::FontFamily & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FirstOfYearDecadeLabelFontFamily(get(value))); -} - -template double impl_ICalendarView::FirstOfYearDecadeLabelFontSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstOfYearDecadeLabelFontSize(&value)); - return value; -} - -template void impl_ICalendarView::FirstOfYearDecadeLabelFontSize(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FirstOfYearDecadeLabelFontSize(value)); -} - -template Windows::UI::Text::FontStyle impl_ICalendarView::FirstOfYearDecadeLabelFontStyle() const -{ - Windows::UI::Text::FontStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstOfYearDecadeLabelFontStyle(&value)); - return value; -} - -template void impl_ICalendarView::FirstOfYearDecadeLabelFontStyle(Windows::UI::Text::FontStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FirstOfYearDecadeLabelFontStyle(value)); -} - -template Windows::UI::Text::FontWeight impl_ICalendarView::FirstOfYearDecadeLabelFontWeight() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstOfYearDecadeLabelFontWeight(put(value))); - return value; -} - -template void impl_ICalendarView::FirstOfYearDecadeLabelFontWeight(const Windows::UI::Text::FontWeight & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FirstOfYearDecadeLabelFontWeight(get(value))); -} - -template Windows::UI::Xaml::HorizontalAlignment impl_ICalendarView::HorizontalDayItemAlignment() const -{ - Windows::UI::Xaml::HorizontalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalDayItemAlignment(&value)); - return value; -} - -template void impl_ICalendarView::HorizontalDayItemAlignment(Windows::UI::Xaml::HorizontalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HorizontalDayItemAlignment(value)); -} - -template Windows::UI::Xaml::VerticalAlignment impl_ICalendarView::VerticalDayItemAlignment() const -{ - Windows::UI::Xaml::VerticalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalDayItemAlignment(&value)); - return value; -} - -template void impl_ICalendarView::VerticalDayItemAlignment(Windows::UI::Xaml::VerticalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VerticalDayItemAlignment(value)); -} - -template Windows::UI::Xaml::HorizontalAlignment impl_ICalendarView::HorizontalFirstOfMonthLabelAlignment() const -{ - Windows::UI::Xaml::HorizontalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalFirstOfMonthLabelAlignment(&value)); - return value; -} - -template void impl_ICalendarView::HorizontalFirstOfMonthLabelAlignment(Windows::UI::Xaml::HorizontalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HorizontalFirstOfMonthLabelAlignment(value)); -} - -template Windows::UI::Xaml::VerticalAlignment impl_ICalendarView::VerticalFirstOfMonthLabelAlignment() const -{ - Windows::UI::Xaml::VerticalAlignment value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalFirstOfMonthLabelAlignment(&value)); - return value; -} - -template void impl_ICalendarView::VerticalFirstOfMonthLabelAlignment(Windows::UI::Xaml::VerticalAlignment value) const -{ - check_hresult(static_cast(static_cast(*this))->put_VerticalFirstOfMonthLabelAlignment(value)); -} - -template Windows::UI::Xaml::Thickness impl_ICalendarView::CalendarItemBorderThickness() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_CalendarItemBorderThickness(put(value))); - return value; -} - -template void impl_ICalendarView::CalendarItemBorderThickness(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalendarItemBorderThickness(get(value))); -} - -template Windows::UI::Xaml::Style impl_ICalendarView::CalendarViewDayItemStyle() const -{ - Windows::UI::Xaml::Style value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarViewDayItemStyle(put(value))); - return value; -} - -template void impl_ICalendarView::CalendarViewDayItemStyle(const Windows::UI::Xaml::Style & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalendarViewDayItemStyle(get(value))); -} - -template event_token impl_ICalendarView::CalendarViewDayItemChanging(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_CalendarViewDayItemChanging(get(value), &token)); - return token; -} - -template event_revoker impl_ICalendarView::CalendarViewDayItemChanging(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ICalendarView::remove_CalendarViewDayItemChanging, CalendarViewDayItemChanging(value)); -} - -template void impl_ICalendarView::CalendarViewDayItemChanging(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_CalendarViewDayItemChanging(token)); -} - -template event_token impl_ICalendarView::SelectedDatesChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SelectedDatesChanged(get(value), &token)); - return token; -} - -template event_revoker impl_ICalendarView::SelectedDatesChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ICalendarView::remove_SelectedDatesChanged, SelectedDatesChanged(value)); -} - -template void impl_ICalendarView::SelectedDatesChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SelectedDatesChanged(token)); -} - -template void impl_ICalendarView::SetDisplayDate(const Windows::Foundation::DateTime & date) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDisplayDate(get(date))); -} - -template void impl_ICalendarView::SetYearDecadeDisplayDimensions(int32_t columns, int32_t rows) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetYearDecadeDisplayDimensions(columns, rows)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::CalendarIdentifierProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarIdentifierProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::DayOfWeekFormatProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DayOfWeekFormatProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::IsGroupLabelVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsGroupLabelVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::DisplayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisplayModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::FirstDayOfWeekProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstDayOfWeekProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::IsOutOfScopeEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsOutOfScopeEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::IsTodayHighlightedProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTodayHighlightedProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::MaxDateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxDateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::MinDateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MinDateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::NumberOfWeeksInViewProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_NumberOfWeeksInViewProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::SelectedDatesProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedDatesProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::SelectionModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectionModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::TemplateSettingsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemplateSettingsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::FocusBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FocusBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::SelectedHoverBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedHoverBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::SelectedPressedBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedPressedBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::SelectedBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::HoverBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HoverBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::PressedBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PressedBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::CalendarItemBorderBrushProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarItemBorderBrushProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::OutOfScopeBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OutOfScopeBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::CalendarItemBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarItemBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::PressedForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PressedForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::TodayForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TodayForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::BlackoutForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_BlackoutForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::SelectedForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SelectedForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::OutOfScopeForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OutOfScopeForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::CalendarItemForegroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarItemForegroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::DayItemFontFamilyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DayItemFontFamilyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::DayItemFontSizeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DayItemFontSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::DayItemFontStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DayItemFontStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::DayItemFontWeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DayItemFontWeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::TodayFontWeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TodayFontWeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::FirstOfMonthLabelFontFamilyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstOfMonthLabelFontFamilyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::FirstOfMonthLabelFontSizeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstOfMonthLabelFontSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::FirstOfMonthLabelFontStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstOfMonthLabelFontStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::FirstOfMonthLabelFontWeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstOfMonthLabelFontWeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::MonthYearItemFontFamilyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MonthYearItemFontFamilyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::MonthYearItemFontSizeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MonthYearItemFontSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::MonthYearItemFontStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MonthYearItemFontStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::MonthYearItemFontWeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MonthYearItemFontWeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::FirstOfYearDecadeLabelFontFamilyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstOfYearDecadeLabelFontFamilyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::FirstOfYearDecadeLabelFontSizeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstOfYearDecadeLabelFontSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::FirstOfYearDecadeLabelFontStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstOfYearDecadeLabelFontStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::FirstOfYearDecadeLabelFontWeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FirstOfYearDecadeLabelFontWeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::HorizontalDayItemAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HorizontalDayItemAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::VerticalDayItemAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VerticalDayItemAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::HorizontalFirstOfMonthLabelAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HorizontalFirstOfMonthLabelAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::VerticalFirstOfMonthLabelAlignmentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_VerticalFirstOfMonthLabelAlignmentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::CalendarItemBorderThicknessProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarItemBorderThicknessProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewStatics::CalendarViewDayItemStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarViewDayItemStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::CalendarView impl_ICalendarViewFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::CalendarView instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_ICalendarViewDayItem::IsBlackout() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsBlackout(&value)); - return value; -} - -template void impl_ICalendarViewDayItem::IsBlackout(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsBlackout(value)); -} - -template Windows::Foundation::DateTime impl_ICalendarViewDayItem::Date() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Date(put(value))); - return value; -} - -template void impl_ICalendarViewDayItem::SetDensityColors(const Windows::Foundation::Collections::IIterable & colors) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetDensityColors(get(colors))); -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewDayItemStatics::IsBlackoutProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsBlackoutProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ICalendarViewDayItemStatics::DateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::CalendarViewDayItem impl_ICalendarViewDayItemFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::CalendarViewDayItem instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::IInspectable impl_IDatePicker::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_IDatePicker::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IDatePicker::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_IDatePicker::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template hstring impl_IDatePicker::CalendarIdentifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_CalendarIdentifier(put(value))); - return value; -} - -template void impl_IDatePicker::CalendarIdentifier(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CalendarIdentifier(get(value))); -} - -template Windows::Foundation::DateTime impl_IDatePicker::Date() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_Date(put(value))); - return value; -} - -template void impl_IDatePicker::Date(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Date(get(value))); -} - -template bool impl_IDatePicker::DayVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_DayVisible(&value)); - return value; -} - -template void impl_IDatePicker::DayVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DayVisible(value)); -} - -template bool impl_IDatePicker::MonthVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_MonthVisible(&value)); - return value; -} - -template void impl_IDatePicker::MonthVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MonthVisible(value)); -} - -template bool impl_IDatePicker::YearVisible() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_YearVisible(&value)); - return value; -} - -template void impl_IDatePicker::YearVisible(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_YearVisible(value)); -} - -template hstring impl_IDatePicker::DayFormat() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_DayFormat(put(value))); - return value; -} - -template void impl_IDatePicker::DayFormat(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DayFormat(get(value))); -} - -template hstring impl_IDatePicker::MonthFormat() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_MonthFormat(put(value))); - return value; -} - -template void impl_IDatePicker::MonthFormat(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MonthFormat(get(value))); -} - -template hstring impl_IDatePicker::YearFormat() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_YearFormat(put(value))); - return value; -} - -template void impl_IDatePicker::YearFormat(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_YearFormat(get(value))); -} - -template Windows::Foundation::DateTime impl_IDatePicker::MinYear() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_MinYear(put(value))); - return value; -} - -template void impl_IDatePicker::MinYear(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinYear(get(value))); -} - -template Windows::Foundation::DateTime impl_IDatePicker::MaxYear() const -{ - Windows::Foundation::DateTime value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxYear(put(value))); - return value; -} - -template void impl_IDatePicker::MaxYear(const Windows::Foundation::DateTime & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxYear(get(value))); -} - -template Windows::UI::Xaml::Controls::Orientation impl_IDatePicker::Orientation() const -{ - Windows::UI::Xaml::Controls::Orientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_IDatePicker::Orientation(Windows::UI::Xaml::Controls::Orientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template event_token impl_IDatePicker::DateChanged(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_DateChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IDatePicker::DateChanged(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IDatePicker::remove_DateChanged, DateChanged(value)); -} - -template void impl_IDatePicker::DateChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_DateChanged(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::CalendarIdentifierProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CalendarIdentifierProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::DateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::DayVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DayVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::MonthVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MonthVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::YearVisibleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_YearVisibleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::DayFormatProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DayFormatProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::MonthFormatProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MonthFormatProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::YearFormatProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_YearFormatProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::MinYearProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MinYearProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::MaxYearProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxYearProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics::OrientationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OrientationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::DatePicker impl_IDatePickerFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::DatePicker instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::LightDismissOverlayMode impl_IDatePicker2::LightDismissOverlayMode() const -{ - Windows::UI::Xaml::Controls::LightDismissOverlayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayMode(&value)); - return value; -} - -template void impl_IDatePicker2::LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LightDismissOverlayMode(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IDatePickerStatics2::LightDismissOverlayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayModeProperty(put(value))); - return value; -} - -template hstring impl_IFontIcon::Glyph() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Glyph(put(value))); - return value; -} - -template void impl_IFontIcon::Glyph(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Glyph(get(value))); -} - -template double impl_IFontIcon::FontSize() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_FontSize(&value)); - return value; -} - -template void impl_IFontIcon::FontSize(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontSize(value)); -} - -template Windows::UI::Xaml::Media::FontFamily impl_IFontIcon::FontFamily() const -{ - Windows::UI::Xaml::Media::FontFamily value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontFamily(put(value))); - return value; -} - -template void impl_IFontIcon::FontFamily(const Windows::UI::Xaml::Media::FontFamily & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontFamily(get(value))); -} - -template Windows::UI::Text::FontWeight impl_IFontIcon::FontWeight() const -{ - Windows::UI::Text::FontWeight value {}; - check_hresult(static_cast(static_cast(*this))->get_FontWeight(put(value))); - return value; -} - -template void impl_IFontIcon::FontWeight(const Windows::UI::Text::FontWeight & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontWeight(get(value))); -} - -template Windows::UI::Text::FontStyle impl_IFontIcon::FontStyle() const -{ - Windows::UI::Text::FontStyle value {}; - check_hresult(static_cast(static_cast(*this))->get_FontStyle(&value)); - return value; -} - -template void impl_IFontIcon::FontStyle(Windows::UI::Text::FontStyle value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FontStyle(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IFontIconStatics::GlyphProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GlyphProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IFontIconStatics::FontSizeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontSizeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IFontIconStatics::FontFamilyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontFamilyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IFontIconStatics::FontWeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontWeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IFontIconStatics::FontStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FontStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::FontIcon impl_IFontIconFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::FontIcon instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_IFontIcon2::IsTextScaleFactorEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsTextScaleFactorEnabled(&value)); - return value; -} - -template void impl_IFontIcon2::IsTextScaleFactorEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsTextScaleFactorEnabled(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IFontIconStatics2::IsTextScaleFactorEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsTextScaleFactorEnabledProperty(put(value))); - return value; -} - -template bool impl_IFontIcon3::MirroredWhenRightToLeft() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_MirroredWhenRightToLeft(&value)); - return value; -} - -template void impl_IFontIcon3::MirroredWhenRightToLeft(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MirroredWhenRightToLeft(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IFontIconStatics3::MirroredWhenRightToLeftProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MirroredWhenRightToLeftProperty(put(value))); - return value; -} - -template Windows::IInspectable impl_IHub::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_IHub::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IHub::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_IHub::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template Windows::UI::Xaml::Controls::Orientation impl_IHub::Orientation() const -{ - Windows::UI::Xaml::Controls::Orientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_IHub::Orientation(Windows::UI::Xaml::Controls::Orientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template int32_t impl_IHub::DefaultSectionIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_DefaultSectionIndex(&value)); - return value; -} - -template void impl_IHub::DefaultSectionIndex(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DefaultSectionIndex(value)); -} - -template Windows::Foundation::Collections::IVector impl_IHub::Sections() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_Sections(put(value))); - return value; -} - -template Windows::Foundation::Collections::IVector impl_IHub::SectionsInView() const -{ - Windows::Foundation::Collections::IVector value; - check_hresult(static_cast(static_cast(*this))->get_SectionsInView(put(value))); - return value; -} - -template Windows::Foundation::Collections::IObservableVector impl_IHub::SectionHeaders() const -{ - Windows::Foundation::Collections::IObservableVector value; - check_hresult(static_cast(static_cast(*this))->get_SectionHeaders(put(value))); - return value; -} - -template event_token impl_IHub::SectionHeaderClick(const Windows::UI::Xaml::Controls::HubSectionHeaderClickEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SectionHeaderClick(get(value), &token)); - return token; -} - -template event_revoker impl_IHub::SectionHeaderClick(auto_revoke_t, const Windows::UI::Xaml::Controls::HubSectionHeaderClickEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IHub::remove_SectionHeaderClick, SectionHeaderClick(value)); -} - -template void impl_IHub::SectionHeaderClick(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SectionHeaderClick(token)); -} - -template event_token impl_IHub::SectionsInViewChanged(const Windows::UI::Xaml::Controls::SectionsInViewChangedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SectionsInViewChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IHub::SectionsInViewChanged(auto_revoke_t, const Windows::UI::Xaml::Controls::SectionsInViewChangedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IHub::remove_SectionsInViewChanged, SectionsInViewChanged(value)); -} - -template void impl_IHub::SectionsInViewChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SectionsInViewChanged(token)); -} - -template void impl_IHub::ScrollToSection(const Windows::UI::Xaml::Controls::HubSection & section) const -{ - check_hresult(static_cast(static_cast(*this))->abi_ScrollToSection(get(section))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IHubStatics::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IHubStatics::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IHubStatics::OrientationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OrientationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IHubStatics::DefaultSectionIndexProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DefaultSectionIndexProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IHubStatics::SemanticZoomOwnerProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SemanticZoomOwnerProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IHubStatics::IsActiveViewProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsActiveViewProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IHubStatics::IsZoomedInViewProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsZoomedInViewProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Hub impl_IHubFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::Hub instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::IInspectable impl_IHubSection::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_IHubSection::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IHubSection::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_IHubSection::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IHubSection::ContentTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTemplate(put(value))); - return value; -} - -template void impl_IHubSection::ContentTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ContentTemplate(get(value))); -} - -template bool impl_IHubSection::IsHeaderInteractive() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsHeaderInteractive(&value)); - return value; -} - -template void impl_IHubSection::IsHeaderInteractive(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsHeaderInteractive(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IHubSectionStatics::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IHubSectionStatics::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IHubSectionStatics::ContentTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IHubSectionStatics::IsHeaderInteractiveProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsHeaderInteractiveProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::HubSection impl_IHubSectionFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::HubSection instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Thickness impl_IItemsStackPanel::GroupPadding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_GroupPadding(put(value))); - return value; -} - -template void impl_IItemsStackPanel::GroupPadding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GroupPadding(get(value))); -} - -template Windows::UI::Xaml::Controls::Orientation impl_IItemsStackPanel::Orientation() const -{ - Windows::UI::Xaml::Controls::Orientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_IItemsStackPanel::Orientation(Windows::UI::Xaml::Controls::Orientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template int32_t impl_IItemsStackPanel::FirstCacheIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstCacheIndex(&value)); - return value; -} - -template int32_t impl_IItemsStackPanel::FirstVisibleIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstVisibleIndex(&value)); - return value; -} - -template int32_t impl_IItemsStackPanel::LastVisibleIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastVisibleIndex(&value)); - return value; -} - -template int32_t impl_IItemsStackPanel::LastCacheIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastCacheIndex(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::PanelScrollingDirection impl_IItemsStackPanel::ScrollingDirection() const -{ - Windows::UI::Xaml::Controls::PanelScrollingDirection value {}; - check_hresult(static_cast(static_cast(*this))->get_ScrollingDirection(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::GroupHeaderPlacement impl_IItemsStackPanel::GroupHeaderPlacement() const -{ - Windows::UI::Xaml::Controls::Primitives::GroupHeaderPlacement value {}; - check_hresult(static_cast(static_cast(*this))->get_GroupHeaderPlacement(&value)); - return value; -} - -template void impl_IItemsStackPanel::GroupHeaderPlacement(Windows::UI::Xaml::Controls::Primitives::GroupHeaderPlacement value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GroupHeaderPlacement(value)); -} - -template Windows::UI::Xaml::Controls::ItemsUpdatingScrollMode impl_IItemsStackPanel::ItemsUpdatingScrollMode() const -{ - Windows::UI::Xaml::Controls::ItemsUpdatingScrollMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemsUpdatingScrollMode(&value)); - return value; -} - -template void impl_IItemsStackPanel::ItemsUpdatingScrollMode(Windows::UI::Xaml::Controls::ItemsUpdatingScrollMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemsUpdatingScrollMode(value)); -} - -template double impl_IItemsStackPanel::CacheLength() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CacheLength(&value)); - return value; -} - -template void impl_IItemsStackPanel::CacheLength(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CacheLength(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsStackPanelStatics::GroupPaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GroupPaddingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsStackPanelStatics::OrientationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OrientationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsStackPanelStatics::GroupHeaderPlacementProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GroupHeaderPlacementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsStackPanelStatics::CacheLengthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CacheLengthProperty(put(value))); - return value; -} - -template bool impl_IItemsStackPanel2::AreStickyGroupHeadersEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AreStickyGroupHeadersEnabled(&value)); - return value; -} - -template void impl_IItemsStackPanel2::AreStickyGroupHeadersEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AreStickyGroupHeadersEnabled(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsStackPanelStatics2::AreStickyGroupHeadersEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AreStickyGroupHeadersEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Thickness impl_IItemsWrapGrid::GroupPadding() const -{ - Windows::UI::Xaml::Thickness value {}; - check_hresult(static_cast(static_cast(*this))->get_GroupPadding(put(value))); - return value; -} - -template void impl_IItemsWrapGrid::GroupPadding(const Windows::UI::Xaml::Thickness & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GroupPadding(get(value))); -} - -template Windows::UI::Xaml::Controls::Orientation impl_IItemsWrapGrid::Orientation() const -{ - Windows::UI::Xaml::Controls::Orientation value {}; - check_hresult(static_cast(static_cast(*this))->get_Orientation(&value)); - return value; -} - -template void impl_IItemsWrapGrid::Orientation(Windows::UI::Xaml::Controls::Orientation value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Orientation(value)); -} - -template int32_t impl_IItemsWrapGrid::MaximumRowsOrColumns() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MaximumRowsOrColumns(&value)); - return value; -} - -template void impl_IItemsWrapGrid::MaximumRowsOrColumns(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaximumRowsOrColumns(value)); -} - -template double impl_IItemsWrapGrid::ItemWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemWidth(&value)); - return value; -} - -template void impl_IItemsWrapGrid::ItemWidth(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemWidth(value)); -} - -template double impl_IItemsWrapGrid::ItemHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ItemHeight(&value)); - return value; -} - -template void impl_IItemsWrapGrid::ItemHeight(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ItemHeight(value)); -} - -template int32_t impl_IItemsWrapGrid::FirstCacheIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstCacheIndex(&value)); - return value; -} - -template int32_t impl_IItemsWrapGrid::FirstVisibleIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_FirstVisibleIndex(&value)); - return value; -} - -template int32_t impl_IItemsWrapGrid::LastVisibleIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastVisibleIndex(&value)); - return value; -} - -template int32_t impl_IItemsWrapGrid::LastCacheIndex() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_LastCacheIndex(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::PanelScrollingDirection impl_IItemsWrapGrid::ScrollingDirection() const -{ - Windows::UI::Xaml::Controls::PanelScrollingDirection value {}; - check_hresult(static_cast(static_cast(*this))->get_ScrollingDirection(&value)); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::GroupHeaderPlacement impl_IItemsWrapGrid::GroupHeaderPlacement() const -{ - Windows::UI::Xaml::Controls::Primitives::GroupHeaderPlacement value {}; - check_hresult(static_cast(static_cast(*this))->get_GroupHeaderPlacement(&value)); - return value; -} - -template void impl_IItemsWrapGrid::GroupHeaderPlacement(Windows::UI::Xaml::Controls::Primitives::GroupHeaderPlacement value) const -{ - check_hresult(static_cast(static_cast(*this))->put_GroupHeaderPlacement(value)); -} - -template double impl_IItemsWrapGrid::CacheLength() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CacheLength(&value)); - return value; -} - -template void impl_IItemsWrapGrid::CacheLength(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CacheLength(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsWrapGridStatics::GroupPaddingProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GroupPaddingProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsWrapGridStatics::OrientationProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OrientationProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsWrapGridStatics::MaximumRowsOrColumnsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaximumRowsOrColumnsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsWrapGridStatics::ItemWidthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemWidthProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsWrapGridStatics::ItemHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ItemHeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsWrapGridStatics::GroupHeaderPlacementProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_GroupHeaderPlacementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsWrapGridStatics::CacheLengthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CacheLengthProperty(put(value))); - return value; -} - -template bool impl_IItemsWrapGrid2::AreStickyGroupHeadersEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AreStickyGroupHeadersEnabled(&value)); - return value; -} - -template void impl_IItemsWrapGrid2::AreStickyGroupHeadersEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AreStickyGroupHeadersEnabled(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IItemsWrapGridStatics2::AreStickyGroupHeadersEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AreStickyGroupHeadersEnabledProperty(put(value))); - return value; -} - -template Windows::Media::Playback::IMediaPlaybackSource impl_IMediaPlayerElement::Source() const -{ - Windows::Media::Playback::IMediaPlaybackSource value; - check_hresult(static_cast(static_cast(*this))->get_Source(put(value))); - return value; -} - -template void impl_IMediaPlayerElement::Source(const Windows::Media::Playback::IMediaPlaybackSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Source(get(value))); -} - -template Windows::UI::Xaml::Controls::MediaTransportControls impl_IMediaPlayerElement::TransportControls() const -{ - Windows::UI::Xaml::Controls::MediaTransportControls value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TransportControls(put(value))); - return value; -} - -template void impl_IMediaPlayerElement::TransportControls(const Windows::UI::Xaml::Controls::MediaTransportControls & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TransportControls(get(value))); -} - -template bool impl_IMediaPlayerElement::AreTransportControlsEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AreTransportControlsEnabled(&value)); - return value; -} - -template void impl_IMediaPlayerElement::AreTransportControlsEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AreTransportControlsEnabled(value)); -} - -template Windows::UI::Xaml::Media::ImageSource impl_IMediaPlayerElement::PosterSource() const -{ - Windows::UI::Xaml::Media::ImageSource value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PosterSource(put(value))); - return value; -} - -template void impl_IMediaPlayerElement::PosterSource(const Windows::UI::Xaml::Media::ImageSource & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PosterSource(get(value))); -} - -template Windows::UI::Xaml::Media::Stretch impl_IMediaPlayerElement::Stretch() const -{ - Windows::UI::Xaml::Media::Stretch value {}; - check_hresult(static_cast(static_cast(*this))->get_Stretch(&value)); - return value; -} - -template void impl_IMediaPlayerElement::Stretch(Windows::UI::Xaml::Media::Stretch value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Stretch(value)); -} - -template bool impl_IMediaPlayerElement::AutoPlay() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoPlay(&value)); - return value; -} - -template void impl_IMediaPlayerElement::AutoPlay(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoPlay(value)); -} - -template bool impl_IMediaPlayerElement::IsFullWindow() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsFullWindow(&value)); - return value; -} - -template void impl_IMediaPlayerElement::IsFullWindow(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsFullWindow(value)); -} - -template Windows::Media::Playback::MediaPlayer impl_IMediaPlayerElement::MediaPlayer() const -{ - Windows::Media::Playback::MediaPlayer value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaPlayer(put(value))); - return value; -} - -template void impl_IMediaPlayerElement::SetMediaPlayer(const Windows::Media::Playback::MediaPlayer & mediaPlayer) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetMediaPlayer(get(mediaPlayer))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaPlayerElementStatics::SourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaPlayerElementStatics::AreTransportControlsEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AreTransportControlsEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaPlayerElementStatics::PosterSourceProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PosterSourceProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaPlayerElementStatics::StretchProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_StretchProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaPlayerElementStatics::AutoPlayProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AutoPlayProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaPlayerElementStatics::IsFullWindowProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsFullWindowProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IMediaPlayerElementStatics::MediaPlayerProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MediaPlayerProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::MediaPlayerElement impl_IMediaPlayerElementFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::MediaPlayerElement instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Media::Geometry impl_IPathIcon::Data() const -{ - Windows::UI::Xaml::Media::Geometry value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Data(put(value))); - return value; -} - -template void impl_IPathIcon::Data(const Windows::UI::Xaml::Media::Geometry & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Data(get(value))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IPathIconStatics::DataProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DataProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::PathIcon impl_IPathIconFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::PathIcon instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template bool impl_IScrollContentPresenter::CanVerticallyScroll() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanVerticallyScroll(&value)); - return value; -} - -template void impl_IScrollContentPresenter::CanVerticallyScroll(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanVerticallyScroll(value)); -} - -template bool impl_IScrollContentPresenter::CanHorizontallyScroll() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanHorizontallyScroll(&value)); - return value; -} - -template void impl_IScrollContentPresenter::CanHorizontallyScroll(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CanHorizontallyScroll(value)); -} - -template double impl_IScrollContentPresenter::ExtentWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtentWidth(&value)); - return value; -} - -template double impl_IScrollContentPresenter::ExtentHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ExtentHeight(&value)); - return value; -} - -template double impl_IScrollContentPresenter::ViewportWidth() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewportWidth(&value)); - return value; -} - -template double impl_IScrollContentPresenter::ViewportHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_ViewportHeight(&value)); - return value; -} - -template double impl_IScrollContentPresenter::HorizontalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_HorizontalOffset(&value)); - return value; -} - -template double impl_IScrollContentPresenter::VerticalOffset() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_VerticalOffset(&value)); - return value; -} - -template Windows::IInspectable impl_IScrollContentPresenter::ScrollOwner() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_ScrollOwner(put(value))); - return value; -} - -template void impl_IScrollContentPresenter::ScrollOwner(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ScrollOwner(get(value))); -} - -template void impl_IScrollContentPresenter::LineUp() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineUp()); -} - -template void impl_IScrollContentPresenter::LineDown() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineDown()); -} - -template void impl_IScrollContentPresenter::LineLeft() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineLeft()); -} - -template void impl_IScrollContentPresenter::LineRight() const -{ - check_hresult(static_cast(static_cast(*this))->abi_LineRight()); -} - -template void impl_IScrollContentPresenter::PageUp() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageUp()); -} - -template void impl_IScrollContentPresenter::PageDown() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageDown()); -} - -template void impl_IScrollContentPresenter::PageLeft() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageLeft()); -} - -template void impl_IScrollContentPresenter::PageRight() const -{ - check_hresult(static_cast(static_cast(*this))->abi_PageRight()); -} - -template void impl_IScrollContentPresenter::MouseWheelUp() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelUp()); -} - -template void impl_IScrollContentPresenter::MouseWheelDown() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelDown()); -} - -template void impl_IScrollContentPresenter::MouseWheelLeft() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelLeft()); -} - -template void impl_IScrollContentPresenter::MouseWheelRight() const -{ - check_hresult(static_cast(static_cast(*this))->abi_MouseWheelRight()); -} - -template void impl_IScrollContentPresenter::SetHorizontalOffset(double offset) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetHorizontalOffset(offset)); -} - -template void impl_IScrollContentPresenter::SetVerticalOffset(double offset) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetVerticalOffset(offset)); -} - -template Windows::Foundation::Rect impl_IScrollContentPresenter::MakeVisible(const Windows::UI::Xaml::UIElement & visual, const Windows::Foundation::Rect & rectangle) const -{ - Windows::Foundation::Rect returnValue {}; - check_hresult(static_cast(static_cast(*this))->abi_MakeVisible(get(visual), get(rectangle), put(returnValue))); - return returnValue; -} - -template bool impl_ISearchBox::SearchHistoryEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_SearchHistoryEnabled(&value)); - return value; -} - -template void impl_ISearchBox::SearchHistoryEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SearchHistoryEnabled(value)); -} - -template hstring impl_ISearchBox::SearchHistoryContext() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SearchHistoryContext(put(value))); - return value; -} - -template void impl_ISearchBox::SearchHistoryContext(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SearchHistoryContext(get(value))); -} - -template hstring impl_ISearchBox::PlaceholderText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderText(put(value))); - return value; -} - -template void impl_ISearchBox::PlaceholderText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaceholderText(get(value))); -} - -template hstring impl_ISearchBox::QueryText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_QueryText(put(value))); - return value; -} - -template void impl_ISearchBox::QueryText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_QueryText(get(value))); -} - -template bool impl_ISearchBox::FocusOnKeyboardInput() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_FocusOnKeyboardInput(&value)); - return value; -} - -template void impl_ISearchBox::FocusOnKeyboardInput(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FocusOnKeyboardInput(value)); -} - -template bool impl_ISearchBox::ChooseSuggestionOnEnter() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_ChooseSuggestionOnEnter(&value)); - return value; -} - -template void impl_ISearchBox::ChooseSuggestionOnEnter(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ChooseSuggestionOnEnter(value)); -} - -template event_token impl_ISearchBox::QueryChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_QueryChanged(get(value), &token)); - return token; -} - -template event_revoker impl_ISearchBox::QueryChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ISearchBox::remove_QueryChanged, QueryChanged(value)); -} - -template void impl_ISearchBox::QueryChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_QueryChanged(token)); -} - -template event_token impl_ISearchBox::SuggestionsRequested(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SuggestionsRequested(get(value), &token)); - return token; -} - -template event_revoker impl_ISearchBox::SuggestionsRequested(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ISearchBox::remove_SuggestionsRequested, SuggestionsRequested(value)); -} - -template void impl_ISearchBox::SuggestionsRequested(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SuggestionsRequested(token)); -} - -template event_token impl_ISearchBox::QuerySubmitted(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_QuerySubmitted(get(value), &token)); - return token; -} - -template event_revoker impl_ISearchBox::QuerySubmitted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ISearchBox::remove_QuerySubmitted, QuerySubmitted(value)); -} - -template void impl_ISearchBox::QuerySubmitted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_QuerySubmitted(token)); -} - -template event_token impl_ISearchBox::ResultSuggestionChosen(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_ResultSuggestionChosen(get(value), &token)); - return token; -} - -template event_revoker impl_ISearchBox::ResultSuggestionChosen(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ISearchBox::remove_ResultSuggestionChosen, ResultSuggestionChosen(value)); -} - -template void impl_ISearchBox::ResultSuggestionChosen(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_ResultSuggestionChosen(token)); -} - -template event_token impl_ISearchBox::PrepareForFocusOnKeyboardInput(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PrepareForFocusOnKeyboardInput(get(value), &token)); - return token; -} - -template event_revoker impl_ISearchBox::PrepareForFocusOnKeyboardInput(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ISearchBox::remove_PrepareForFocusOnKeyboardInput, PrepareForFocusOnKeyboardInput(value)); -} - -template void impl_ISearchBox::PrepareForFocusOnKeyboardInput(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PrepareForFocusOnKeyboardInput(token)); -} - -template void impl_ISearchBox::SetLocalContentSuggestionSettings(const Windows::ApplicationModel::Search::LocalContentSuggestionSettings & settings) const -{ - check_hresult(static_cast(static_cast(*this))->abi_SetLocalContentSuggestionSettings(get(settings))); -} - -template Windows::UI::Xaml::DependencyProperty impl_ISearchBoxStatics::SearchHistoryEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SearchHistoryEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISearchBoxStatics::SearchHistoryContextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SearchHistoryContextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISearchBoxStatics::PlaceholderTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISearchBoxStatics::QueryTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_QueryTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISearchBoxStatics::FocusOnKeyboardInputProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FocusOnKeyboardInputProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISearchBoxStatics::ChooseSuggestionOnEnterProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ChooseSuggestionOnEnterProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::SearchBox impl_ISearchBoxFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::SearchBox instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::UIElement impl_ISplitView::Content() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Content(put(value))); - return value; -} - -template void impl_ISplitView::Content(const Windows::UI::Xaml::UIElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Content(get(value))); -} - -template Windows::UI::Xaml::UIElement impl_ISplitView::Pane() const -{ - Windows::UI::Xaml::UIElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_Pane(put(value))); - return value; -} - -template void impl_ISplitView::Pane(const Windows::UI::Xaml::UIElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Pane(get(value))); -} - -template bool impl_ISplitView::IsPaneOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPaneOpen(&value)); - return value; -} - -template void impl_ISplitView::IsPaneOpen(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPaneOpen(value)); -} - -template double impl_ISplitView::OpenPaneLength() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_OpenPaneLength(&value)); - return value; -} - -template void impl_ISplitView::OpenPaneLength(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_OpenPaneLength(value)); -} - -template double impl_ISplitView::CompactPaneLength() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_CompactPaneLength(&value)); - return value; -} - -template void impl_ISplitView::CompactPaneLength(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CompactPaneLength(value)); -} - -template Windows::UI::Xaml::Controls::SplitViewPanePlacement impl_ISplitView::PanePlacement() const -{ - Windows::UI::Xaml::Controls::SplitViewPanePlacement value {}; - check_hresult(static_cast(static_cast(*this))->get_PanePlacement(&value)); - return value; -} - -template void impl_ISplitView::PanePlacement(Windows::UI::Xaml::Controls::SplitViewPanePlacement value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PanePlacement(value)); -} - -template Windows::UI::Xaml::Controls::SplitViewDisplayMode impl_ISplitView::DisplayMode() const -{ - Windows::UI::Xaml::Controls::SplitViewDisplayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_DisplayMode(&value)); - return value; -} - -template void impl_ISplitView::DisplayMode(Windows::UI::Xaml::Controls::SplitViewDisplayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_DisplayMode(value)); -} - -template Windows::UI::Xaml::Controls::Primitives::SplitViewTemplateSettings impl_ISplitView::TemplateSettings() const -{ - Windows::UI::Xaml::Controls::Primitives::SplitViewTemplateSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemplateSettings(put(value))); - return value; -} - -template Windows::UI::Xaml::Media::Brush impl_ISplitView::PaneBackground() const -{ - Windows::UI::Xaml::Media::Brush value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaneBackground(put(value))); - return value; -} - -template void impl_ISplitView::PaneBackground(const Windows::UI::Xaml::Media::Brush & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PaneBackground(get(value))); -} - -template event_token impl_ISplitView::PaneClosing(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PaneClosing(get(value), &token)); - return token; -} - -template event_revoker impl_ISplitView::PaneClosing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ISplitView::remove_PaneClosing, PaneClosing(value)); -} - -template void impl_ISplitView::PaneClosing(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PaneClosing(token)); -} - -template event_token impl_ISplitView::PaneClosed(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PaneClosed(get(value), &token)); - return token; -} - -template event_revoker impl_ISplitView::PaneClosed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ISplitView::remove_PaneClosed, PaneClosed(value)); -} - -template void impl_ISplitView::PaneClosed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PaneClosed(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ISplitViewStatics::ContentProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ContentProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISplitViewStatics::PaneProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaneProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISplitViewStatics::IsPaneOpenProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsPaneOpenProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISplitViewStatics::OpenPaneLengthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_OpenPaneLengthProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISplitViewStatics::CompactPaneLengthProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_CompactPaneLengthProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISplitViewStatics::PanePlacementProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PanePlacementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISplitViewStatics::DisplayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_DisplayModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISplitViewStatics::TemplateSettingsProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemplateSettingsProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ISplitViewStatics::PaneBackgroundProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PaneBackgroundProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::SplitView impl_ISplitViewFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::SplitView instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::LightDismissOverlayMode impl_ISplitView2::LightDismissOverlayMode() const -{ - Windows::UI::Xaml::Controls::LightDismissOverlayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayMode(&value)); - return value; -} - -template void impl_ISplitView2::LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LightDismissOverlayMode(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ISplitViewStatics2::LightDismissOverlayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Symbol impl_ISymbolIcon::Symbol() const -{ - Windows::UI::Xaml::Controls::Symbol value {}; - check_hresult(static_cast(static_cast(*this))->get_Symbol(&value)); - return value; -} - -template void impl_ISymbolIcon::Symbol(Windows::UI::Xaml::Controls::Symbol value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Symbol(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ISymbolIconStatics::SymbolProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SymbolProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::SymbolIcon impl_ISymbolIconFactory::CreateInstanceWithSymbol(Windows::UI::Xaml::Controls::Symbol symbol) const -{ - Windows::UI::Xaml::Controls::SymbolIcon instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstanceWithSymbol(symbol, put(instance))); - return instance; -} - -template Windows::IInspectable impl_ITimePicker::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_ITimePicker::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_ITimePicker::HeaderTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplate(put(value))); - return value; -} - -template void impl_ITimePicker::HeaderTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_HeaderTemplate(get(value))); -} - -template hstring impl_ITimePicker::ClockIdentifier() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_ClockIdentifier(put(value))); - return value; -} - -template void impl_ITimePicker::ClockIdentifier(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ClockIdentifier(get(value))); -} - -template int32_t impl_ITimePicker::MinuteIncrement() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_MinuteIncrement(&value)); - return value; -} - -template void impl_ITimePicker::MinuteIncrement(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MinuteIncrement(value)); -} - -template Windows::Foundation::TimeSpan impl_ITimePicker::Time() const -{ - Windows::Foundation::TimeSpan value {}; - check_hresult(static_cast(static_cast(*this))->get_Time(put(value))); - return value; -} - -template void impl_ITimePicker::Time(const Windows::Foundation::TimeSpan & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Time(get(value))); -} - -template event_token impl_ITimePicker::TimeChanged(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TimeChanged(get(value), &token)); - return token; -} - -template event_revoker impl_ITimePicker::TimeChanged(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::ITimePicker::remove_TimeChanged, TimeChanged(value)); -} - -template void impl_ITimePicker::TimeChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TimeChanged(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ITimePickerStatics::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITimePickerStatics::HeaderTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITimePickerStatics::ClockIdentifierProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ClockIdentifierProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITimePickerStatics::MinuteIncrementProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MinuteIncrementProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_ITimePickerStatics::TimeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TimeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::TimePicker impl_ITimePickerFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::TimePicker instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::LightDismissOverlayMode impl_ITimePicker2::LightDismissOverlayMode() const -{ - Windows::UI::Xaml::Controls::LightDismissOverlayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayMode(&value)); - return value; -} - -template void impl_ITimePicker2::LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LightDismissOverlayMode(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_ITimePickerStatics2::LightDismissOverlayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayModeProperty(put(value))); - return value; -} - -template bool impl_IAppBar::IsOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsOpen(&value)); - return value; -} - -template void impl_IAppBar::IsOpen(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsOpen(value)); -} - -template bool impl_IAppBar::IsSticky() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSticky(&value)); - return value; -} - -template void impl_IAppBar::IsSticky(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSticky(value)); -} - -template event_token impl_IAppBar::Opened(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Opened(get(value), &token)); - return token; -} - -template event_revoker impl_IAppBar::Opened(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IAppBar::remove_Opened, Opened(value)); -} - -template void impl_IAppBar::Opened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Opened(token)); -} - -template event_token impl_IAppBar::Closed(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(value), &token)); - return token; -} - -template event_revoker impl_IAppBar::Closed(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IAppBar::remove_Closed, Closed(value)); -} - -template void impl_IAppBar::Closed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(token)); -} - -template void impl_IAppBarOverrides::OnClosed(const Windows::IInspectable & e) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnClosed(get(e))); -} - -template void impl_IAppBarOverrides::OnOpened(const Windows::IInspectable & e) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnOpened(get(e))); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAppBarStatics::IsOpenProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsOpenProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAppBarStatics::IsStickyProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsStickyProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::AppBar impl_IAppBarFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::AppBar instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::AppBarClosedDisplayMode impl_IAppBar2::ClosedDisplayMode() const -{ - Windows::UI::Xaml::Controls::AppBarClosedDisplayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_ClosedDisplayMode(&value)); - return value; -} - -template void impl_IAppBar2::ClosedDisplayMode(Windows::UI::Xaml::Controls::AppBarClosedDisplayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_ClosedDisplayMode(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAppBarStatics2::ClosedDisplayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_ClosedDisplayModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::Primitives::AppBarTemplateSettings impl_IAppBar3::TemplateSettings() const -{ - Windows::UI::Xaml::Controls::Primitives::AppBarTemplateSettings value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TemplateSettings(put(value))); - return value; -} - -template event_token impl_IAppBar3::Opening(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Opening(get(value), &token)); - return token; -} - -template event_revoker impl_IAppBar3::Opening(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IAppBar3::remove_Opening, Opening(value)); -} - -template void impl_IAppBar3::Opening(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Opening(token)); -} - -template event_token impl_IAppBar3::Closing(const Windows::Foundation::EventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closing(get(value), &token)); - return token; -} - -template event_revoker impl_IAppBar3::Closing(auto_revoke_t, const Windows::Foundation::EventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IAppBar3::remove_Closing, Closing(value)); -} - -template void impl_IAppBar3::Closing(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closing(token)); -} - -template void impl_IAppBarOverrides3::OnClosing(const Windows::IInspectable & e) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnClosing(get(e))); -} - -template void impl_IAppBarOverrides3::OnOpening(const Windows::IInspectable & e) const -{ - check_hresult(static_cast(static_cast(*this))->abi_OnOpening(get(e))); -} - -template Windows::UI::Xaml::Controls::LightDismissOverlayMode impl_IAppBar4::LightDismissOverlayMode() const -{ - Windows::UI::Xaml::Controls::LightDismissOverlayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayMode(&value)); - return value; -} - -template void impl_IAppBar4::LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LightDismissOverlayMode(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAppBarStatics4::LightDismissOverlayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayModeProperty(put(value))); - return value; -} - -template double impl_IAutoSuggestBox::MaxSuggestionListHeight() const -{ - double value {}; - check_hresult(static_cast(static_cast(*this))->get_MaxSuggestionListHeight(&value)); - return value; -} - -template void impl_IAutoSuggestBox::MaxSuggestionListHeight(double value) const -{ - check_hresult(static_cast(static_cast(*this))->put_MaxSuggestionListHeight(value)); -} - -template bool impl_IAutoSuggestBox::IsSuggestionListOpen() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSuggestionListOpen(&value)); - return value; -} - -template void impl_IAutoSuggestBox::IsSuggestionListOpen(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSuggestionListOpen(value)); -} - -template hstring impl_IAutoSuggestBox::TextMemberPath() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_TextMemberPath(put(value))); - return value; -} - -template void impl_IAutoSuggestBox::TextMemberPath(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextMemberPath(get(value))); -} - -template hstring impl_IAutoSuggestBox::Text() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_Text(put(value))); - return value; -} - -template void impl_IAutoSuggestBox::Text(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Text(get(value))); -} - -template bool impl_IAutoSuggestBox::UpdateTextOnSelect() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_UpdateTextOnSelect(&value)); - return value; -} - -template void impl_IAutoSuggestBox::UpdateTextOnSelect(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_UpdateTextOnSelect(value)); -} - -template hstring impl_IAutoSuggestBox::PlaceholderText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderText(put(value))); - return value; -} - -template void impl_IAutoSuggestBox::PlaceholderText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PlaceholderText(get(value))); -} - -template Windows::IInspectable impl_IAutoSuggestBox::Header() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Header(put(value))); - return value; -} - -template void impl_IAutoSuggestBox::Header(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Header(get(value))); -} - -template bool impl_IAutoSuggestBox::AutoMaximizeSuggestionArea() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_AutoMaximizeSuggestionArea(&value)); - return value; -} - -template void impl_IAutoSuggestBox::AutoMaximizeSuggestionArea(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_AutoMaximizeSuggestionArea(value)); -} - -template Windows::UI::Xaml::Style impl_IAutoSuggestBox::TextBoxStyle() const -{ - Windows::UI::Xaml::Style value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextBoxStyle(put(value))); - return value; -} - -template void impl_IAutoSuggestBox::TextBoxStyle(const Windows::UI::Xaml::Style & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TextBoxStyle(get(value))); -} - -template event_token impl_IAutoSuggestBox::SuggestionChosen(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SuggestionChosen(get(value), &token)); - return token; -} - -template event_revoker impl_IAutoSuggestBox::SuggestionChosen(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IAutoSuggestBox::remove_SuggestionChosen, SuggestionChosen(value)); -} - -template void impl_IAutoSuggestBox::SuggestionChosen(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SuggestionChosen(token)); -} - -template event_token impl_IAutoSuggestBox::TextChanged(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_TextChanged(get(value), &token)); - return token; -} - -template event_revoker impl_IAutoSuggestBox::TextChanged(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IAutoSuggestBox::remove_TextChanged, TextChanged(value)); -} - -template void impl_IAutoSuggestBox::TextChanged(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_TextChanged(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxStatics::MaxSuggestionListHeightProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_MaxSuggestionListHeightProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxStatics::IsSuggestionListOpenProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSuggestionListOpenProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxStatics::TextMemberPathProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextMemberPathProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxStatics::TextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxStatics::UpdateTextOnSelectProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_UpdateTextOnSelectProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxStatics::PlaceholderTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PlaceholderTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxStatics::HeaderProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_HeaderProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxStatics::AutoMaximizeSuggestionAreaProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_AutoMaximizeSuggestionAreaProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxStatics::TextBoxStyleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TextBoxStyleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::IconElement impl_IAutoSuggestBox2::QueryIcon() const -{ - Windows::UI::Xaml::Controls::IconElement value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_QueryIcon(put(value))); - return value; -} - -template void impl_IAutoSuggestBox2::QueryIcon(const Windows::UI::Xaml::Controls::IconElement & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_QueryIcon(get(value))); -} - -template event_token impl_IAutoSuggestBox2::QuerySubmitted(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_QuerySubmitted(get(value), &token)); - return token; -} - -template event_revoker impl_IAutoSuggestBox2::QuerySubmitted(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IAutoSuggestBox2::remove_QuerySubmitted, QuerySubmitted(value)); -} - -template void impl_IAutoSuggestBox2::QuerySubmitted(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_QuerySubmitted(token)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxStatics2::QueryIconProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_QueryIconProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::LightDismissOverlayMode impl_IAutoSuggestBox3::LightDismissOverlayMode() const -{ - Windows::UI::Xaml::Controls::LightDismissOverlayMode value {}; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayMode(&value)); - return value; -} - -template void impl_IAutoSuggestBox3::LightDismissOverlayMode(Windows::UI::Xaml::Controls::LightDismissOverlayMode value) const -{ - check_hresult(static_cast(static_cast(*this))->put_LightDismissOverlayMode(value)); -} - -template Windows::UI::Xaml::DependencyProperty impl_IAutoSuggestBoxStatics3::LightDismissOverlayModeProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_LightDismissOverlayModeProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::CommandBarOverflowPresenter impl_ICommandBarOverflowPresenterFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::CommandBarOverflowPresenter instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::IInspectable impl_IContentDialog::Title() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_Title(put(value))); - return value; -} - -template void impl_IContentDialog::Title(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_Title(get(value))); -} - -template Windows::UI::Xaml::DataTemplate impl_IContentDialog::TitleTemplate() const -{ - Windows::UI::Xaml::DataTemplate value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TitleTemplate(put(value))); - return value; -} - -template void impl_IContentDialog::TitleTemplate(const Windows::UI::Xaml::DataTemplate & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_TitleTemplate(get(value))); -} - -template bool impl_IContentDialog::FullSizeDesired() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_FullSizeDesired(&value)); - return value; -} - -template void impl_IContentDialog::FullSizeDesired(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_FullSizeDesired(value)); -} - -template hstring impl_IContentDialog::PrimaryButtonText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_PrimaryButtonText(put(value))); - return value; -} - -template void impl_IContentDialog::PrimaryButtonText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PrimaryButtonText(get(value))); -} - -template hstring impl_IContentDialog::SecondaryButtonText() const -{ - hstring value; - check_hresult(static_cast(static_cast(*this))->get_SecondaryButtonText(put(value))); - return value; -} - -template void impl_IContentDialog::SecondaryButtonText(hstring_ref value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SecondaryButtonText(get(value))); -} - -template Windows::UI::Xaml::Input::ICommand impl_IContentDialog::PrimaryButtonCommand() const -{ - Windows::UI::Xaml::Input::ICommand value; - check_hresult(static_cast(static_cast(*this))->get_PrimaryButtonCommand(put(value))); - return value; -} - -template void impl_IContentDialog::PrimaryButtonCommand(const Windows::UI::Xaml::Input::ICommand & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PrimaryButtonCommand(get(value))); -} - -template Windows::UI::Xaml::Input::ICommand impl_IContentDialog::SecondaryButtonCommand() const -{ - Windows::UI::Xaml::Input::ICommand value; - check_hresult(static_cast(static_cast(*this))->get_SecondaryButtonCommand(put(value))); - return value; -} - -template void impl_IContentDialog::SecondaryButtonCommand(const Windows::UI::Xaml::Input::ICommand & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SecondaryButtonCommand(get(value))); -} - -template Windows::IInspectable impl_IContentDialog::PrimaryButtonCommandParameter() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_PrimaryButtonCommandParameter(put(value))); - return value; -} - -template void impl_IContentDialog::PrimaryButtonCommandParameter(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_PrimaryButtonCommandParameter(get(value))); -} - -template Windows::IInspectable impl_IContentDialog::SecondaryButtonCommandParameter() const -{ - Windows::IInspectable value; - check_hresult(static_cast(static_cast(*this))->get_SecondaryButtonCommandParameter(put(value))); - return value; -} - -template void impl_IContentDialog::SecondaryButtonCommandParameter(const Windows::IInspectable & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SecondaryButtonCommandParameter(get(value))); -} - -template bool impl_IContentDialog::IsPrimaryButtonEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsPrimaryButtonEnabled(&value)); - return value; -} - -template void impl_IContentDialog::IsPrimaryButtonEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsPrimaryButtonEnabled(value)); -} - -template bool impl_IContentDialog::IsSecondaryButtonEnabled() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_IsSecondaryButtonEnabled(&value)); - return value; -} - -template void impl_IContentDialog::IsSecondaryButtonEnabled(bool value) const -{ - check_hresult(static_cast(static_cast(*this))->put_IsSecondaryButtonEnabled(value)); -} - -template event_token impl_IContentDialog::Closing(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closing(get(value), &token)); - return token; -} - -template event_revoker impl_IContentDialog::Closing(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IContentDialog::remove_Closing, Closing(value)); -} - -template void impl_IContentDialog::Closing(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closing(token)); -} - -template event_token impl_IContentDialog::Closed(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Closed(get(value), &token)); - return token; -} - -template event_revoker impl_IContentDialog::Closed(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IContentDialog::remove_Closed, Closed(value)); -} - -template void impl_IContentDialog::Closed(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Closed(token)); -} - -template event_token impl_IContentDialog::Opened(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Opened(get(value), &token)); - return token; -} - -template event_revoker impl_IContentDialog::Opened(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IContentDialog::remove_Opened, Opened(value)); -} - -template void impl_IContentDialog::Opened(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_Opened(token)); -} - -template event_token impl_IContentDialog::PrimaryButtonClick(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_PrimaryButtonClick(get(value), &token)); - return token; -} - -template event_revoker impl_IContentDialog::PrimaryButtonClick(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IContentDialog::remove_PrimaryButtonClick, PrimaryButtonClick(value)); -} - -template void impl_IContentDialog::PrimaryButtonClick(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_PrimaryButtonClick(token)); -} - -template event_token impl_IContentDialog::SecondaryButtonClick(const Windows::Foundation::TypedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_SecondaryButtonClick(get(value), &token)); - return token; -} - -template event_revoker impl_IContentDialog::SecondaryButtonClick(auto_revoke_t, const Windows::Foundation::TypedEventHandler & value) const -{ - return impl::make_event_revoker(this, &ABI::Windows::UI::Xaml::Controls::IContentDialog::remove_SecondaryButtonClick, SecondaryButtonClick(value)); -} - -template void impl_IContentDialog::SecondaryButtonClick(event_token token) const -{ - check_hresult(static_cast(static_cast(*this))->remove_SecondaryButtonClick(token)); -} - -template void impl_IContentDialog::Hide() const -{ - check_hresult(static_cast(static_cast(*this))->abi_Hide()); -} - -template Windows::Foundation::IAsyncOperation impl_IContentDialog::ShowAsync() const -{ - Windows::Foundation::IAsyncOperation returnValue; - check_hresult(static_cast(static_cast(*this))->abi_ShowAsync(put(returnValue))); - return returnValue; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentDialogStatics::TitleProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TitleProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentDialogStatics::TitleTemplateProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_TitleTemplateProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentDialogStatics::FullSizeDesiredProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_FullSizeDesiredProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentDialogStatics::PrimaryButtonTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PrimaryButtonTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentDialogStatics::SecondaryButtonTextProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SecondaryButtonTextProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentDialogStatics::PrimaryButtonCommandProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PrimaryButtonCommandProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentDialogStatics::SecondaryButtonCommandProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SecondaryButtonCommandProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentDialogStatics::PrimaryButtonCommandParameterProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_PrimaryButtonCommandParameterProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentDialogStatics::SecondaryButtonCommandParameterProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_SecondaryButtonCommandParameterProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentDialogStatics::IsPrimaryButtonEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsPrimaryButtonEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::DependencyProperty impl_IContentDialogStatics::IsSecondaryButtonEnabledProperty() const -{ - Windows::UI::Xaml::DependencyProperty value { nullptr }; - check_hresult(static_cast(static_cast(*this))->get_IsSecondaryButtonEnabledProperty(put(value))); - return value; -} - -template Windows::UI::Xaml::Controls::ContentDialog impl_IContentDialogFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::ContentDialog instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template Windows::UI::Xaml::Controls::FlyoutPresenter impl_IFlyoutPresenterFactory::CreateInstance(const Windows::IInspectable & outer, Windows::IInspectable & inner) const -{ - Windows::UI::Xaml::Controls::FlyoutPresenter instance { nullptr }; - check_hresult(static_cast(static_cast(*this))->abi_CreateInstance(get(outer), put(inner), put(instance))); - return instance; -} - -template int32_t impl_IFrame::CacheSize() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_CacheSize(&value)); - return value; -} - -template void impl_IFrame::CacheSize(int32_t value) const -{ - check_hresult(static_cast(static_cast(*this))->put_CacheSize(value)); -} - -template bool impl_IFrame::CanGoBack() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanGoBack(&value)); - return value; -} - -template bool impl_IFrame::CanGoForward() const -{ - bool value {}; - check_hresult(static_cast(static_cast(*this))->get_CanGoForward(&value)); - return value; -} - -template Windows::UI::Xaml::Interop::TypeName impl_IFrame::CurrentSourcePageType() const -{ - Windows::UI::Xaml::Interop::TypeName value {}; - check_hresult(static_cast(static_cast(*this))->get_CurrentSourcePageType(put(value))); - return value; -} - -template Windows::UI::Xaml::Interop::TypeName impl_IFrame::SourcePageType() const -{ - Windows::UI::Xaml::Interop::TypeName value {}; - check_hresult(static_cast(static_cast(*this))->get_SourcePageType(put(value))); - return value; -} - -template void impl_IFrame::SourcePageType(const Windows::UI::Xaml::Interop::TypeName & value) const -{ - check_hresult(static_cast(static_cast(*this))->put_SourcePageType(get(value))); -} - -template int32_t impl_IFrame::BackStackDepth() const -{ - int32_t value {}; - check_hresult(static_cast(static_cast(*this))->get_BackStackDepth(&value)); - return value; -} - -template event_token impl_IFrame::Navigated(const Windows::UI::Xaml::Navigation::NavigatedEventHandler & value) const -{ - event_token token {}; - check_hresult(static_cast(static_cast(*this))->add_Navigated(get(value), &token)); - return token; -} - -template event_revoker